@v-miniapp/ui-react 1.0.41 → 1.0.45
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/README.md +1 -1
- package/dist/external/index.js +1993 -2004
- package/dist/index.js +1011 -1022
- package/dist-storybook/assets/ANIMATION-CUdn1GTK.js +99 -0
- package/dist-storybook/assets/APP_FRAMEWORK-ljbIOHYd.js +197 -0
- package/dist-storybook/assets/BOTTOM_TAB_BAR-DxCwCfBK.js +175 -0
- package/dist-storybook/assets/CUSTOM_ERROR_BOUNDARY-B4wTQNZc.js +250 -0
- package/dist-storybook/assets/Color-AVL7NMMY-1_8XTICv.js +1 -0
- package/dist-storybook/assets/DARK_MODE-CoHseCDO.js +57 -0
- package/dist-storybook/assets/DocsRenderer-PQXLIZUC-BO86igwd.js +2 -0
- package/dist-storybook/assets/GETTING_STARTED-H_vVi5cv.js +77 -0
- package/dist-storybook/assets/INFINITE_SCROLL-BtM3uoX0.js +111 -0
- package/dist-storybook/assets/KEEP_ALIVE-CL2au0al.js +126 -0
- package/dist-storybook/assets/LOCALE-XTCey55y.js +465 -0
- package/dist-storybook/assets/MIGRATION_GUIDE-2LONslE4.js +449 -0
- package/dist-storybook/assets/MOBILE_BEHAVIOURS-DZ6alKTX.js +177 -0
- package/dist-storybook/assets/PAGE_LAYOUT-BuOpN-1Y.js +192 -0
- package/dist-storybook/assets/ROUTING_NAVIGATION-BCPHXNto.js +335 -0
- package/dist-storybook/assets/TAILWIND_INTEGRATION-_T-VfvkM.js +87 -0
- package/dist-storybook/assets/_setToString-CbM921C9.js +1 -0
- package/dist-storybook/assets/alert-DLW8CoyB.js +1 -0
- package/dist-storybook/assets/alert.stories-B-vuojPh.js +110 -0
- package/dist-storybook/assets/avatar-GxcYPA1p.js +1 -0
- package/dist-storybook/assets/avatar.stories-KYFztAc8.js +136 -0
- package/dist-storybook/assets/axe-CmvD4WV5.js +20 -0
- package/dist-storybook/assets/badge-D_LzMVtw.js +1 -0
- package/dist-storybook/assets/badge.stories-Be2ItCmQ.js +262 -0
- package/dist-storybook/assets/blocks-BuaOUtiH.js +1243 -0
- package/dist-storybook/assets/bottom-tab-bar-CtcTAxuI.js +115 -0
- package/dist-storybook/assets/bottom-tab-bar.stories-CDmEve6z.js +186 -0
- package/dist-storybook/assets/button-CL7GeC23.js +1 -0
- package/dist-storybook/assets/button.stories-CaqLWQiY.js +287 -0
- package/dist-storybook/assets/calendar-dOCsjhVU.js +1 -0
- package/dist-storybook/assets/calendar.stories-DLWZldet.js +189 -0
- package/dist-storybook/assets/carousel-1Kww3hIz.js +37 -0
- package/dist-storybook/assets/carousel.stories-B8YbGOOr.js +217 -0
- package/dist-storybook/assets/checkbox-MGytNNRt.js +1 -0
- package/dist-storybook/assets/checkbox.stories-CLvfZPiw.js +201 -0
- package/dist-storybook/assets/chip-kG4p82WT.js +247 -0
- package/dist-storybook/assets/chip.stories-BbwJb5eD.js +442 -0
- package/dist-storybook/assets/classname-CUR_zgkh.js +1 -0
- package/dist-storybook/assets/colors-_6nFGM3e.js +1 -0
- package/dist-storybook/assets/date-Cg-Uk_pp.js +1 -0
- package/dist-storybook/assets/date-field.stories-Diptwqfv.js +129 -0
- package/dist-storybook/assets/date-picker-Dnq_-0Md.js +1 -0
- package/dist-storybook/assets/date-picker.stories-BuGWvzFL.js +123 -0
- package/dist-storybook/assets/default-error-BcnD8fFO.png +0 -0
- package/dist-storybook/assets/dialog.stories-DJ0WsSkA.js +212 -0
- package/dist-storybook/assets/dropdown.stories-D6JUYP73.js +200 -0
- package/dist-storybook/assets/embla-carousel-react.esm-BYjpaHZ9.js +1 -0
- package/dist-storybook/assets/en-Cs9O0XWn.js +15 -0
- package/dist-storybook/assets/icon-DdQsMyRa.js +1 -0
- package/dist-storybook/assets/icon.stories-B-ZvRzFf.js +365 -0
- package/dist-storybook/assets/iframe-CQAwSt4E.js +1071 -0
- package/dist-storybook/assets/iframe-yMKl6hJA.css +1 -0
- package/dist-storybook/assets/image-C3EsNRhz.js +9 -0
- package/dist-storybook/assets/image.stories-C4l8D3ju.js +255 -0
- package/dist-storybook/assets/index-B-Ksafg0.js +1 -0
- package/dist-storybook/assets/index-BV0AJWP6.js +1 -0
- package/dist-storybook/assets/index-CgMRTj-o.js +1 -0
- package/dist-storybook/assets/index-DHiZ-gXR.js +1 -0
- package/dist-storybook/assets/input-wrapper-BKHgnPy6.js +1 -0
- package/dist-storybook/assets/label-DV2iCDmN.js +27 -0
- package/dist-storybook/assets/label.stories-BwTIPFXX.js +138 -0
- package/dist-storybook/assets/matchers-7Z3WT2CE-Dw4MQV_s.js +14 -0
- package/dist-storybook/assets/navigation-bar-vI-FPasP.js +79 -0
- package/dist-storybook/assets/navigation-bar.stories-DYuFaJFD.js +73 -0
- package/dist-storybook/assets/number-field-CXKmnfKe.js +1 -0
- package/dist-storybook/assets/number-field.stories--fn26TJu.js +167 -0
- package/dist-storybook/assets/omit-Bsx5nTI0.js +1 -0
- package/dist-storybook/assets/option-item-LRh_OyV4.js +1 -0
- package/dist-storybook/assets/option-item.stories-snjAvgay.js +66 -0
- package/dist-storybook/assets/pagination-DZHoBs_4.js +1 -0
- package/dist-storybook/assets/pagination.stories-BoEs0jzS.js +91 -0
- package/dist-storybook/assets/pick-BhmhLmLe.js +1 -0
- package/dist-storybook/assets/preload-helper-PPVm8Dsz.js +1 -0
- package/dist-storybook/assets/radio-B5NJxG_l.js +1 -0
- package/dist-storybook/assets/radio.stories-DuN-Awi_.js +183 -0
- package/dist-storybook/assets/rating-BdXViYBv.js +1 -0
- package/dist-storybook/assets/rating.stories-BCcQjMEx.js +117 -0
- package/dist-storybook/assets/react-18-CNyWQ7je.js +9 -0
- package/dist-storybook/assets/react-hufnxGVs.js +1 -0
- package/dist-storybook/assets/search-field-CQqgFbfg.js +1 -0
- package/dist-storybook/assets/search-field.stories-DiCZbhng.js +79 -0
- package/dist-storybook/assets/section-content-DGNB4eLN.js +1 -0
- package/dist-storybook/assets/section.stories-C2I_kKhu.js +69 -0
- package/dist-storybook/assets/sheet.stories-wk1JaKU5.js +152 -0
- package/dist-storybook/assets/skeleton-C91JgehG.js +1 -0
- package/dist-storybook/assets/skeleton.stories-BCmX-VNr.js +139 -0
- package/dist-storybook/assets/store-CPumdfcU.js +1 -0
- package/dist-storybook/assets/store-D2RudmNr.js +18 -0
- package/dist-storybook/assets/switch-p-aXI-ev.js +1 -0
- package/dist-storybook/assets/switch.stories-BqPLNKB9.js +250 -0
- package/dist-storybook/assets/tab-bar-CSeCmtIZ.js +31 -0
- package/dist-storybook/assets/tab-bar.stories-Cb6v8H2w.js +136 -0
- package/dist-storybook/assets/text-area-DwSXyqOe.js +1 -0
- package/dist-storybook/assets/text-area.stories-By8bCfgc.js +87 -0
- package/dist-storybook/assets/text-field-jK6rpOo2.js +1 -0
- package/dist-storybook/assets/text-field.stories-CrWBAhvI.js +92 -0
- package/dist-storybook/assets/toast-provider-DurnMJhd.js +9 -0
- package/dist-storybook/assets/toast.stories-iWAToAZA.js +201 -0
- package/dist-storybook/assets/tooltip-QDdel5My.js +1 -0
- package/dist-storybook/assets/tooltip.stories-RC6SuPPD.js +153 -0
- package/dist-storybook/assets/typography-DEpAJl_i.js +1 -0
- package/dist-storybook/assets/typography.stories-Bu8qFugR.js +202 -0
- package/dist-storybook/assets/uploader.stories-B2wW9qVy.js +65 -0
- package/dist-storybook/assets/use-app-pause-B_tWHKJK.js +29 -0
- package/dist-storybook/assets/use-app-resume--900G-dV.js +29 -0
- package/dist-storybook/assets/use-custom-icon-event-3VExRzvC.js +29 -0
- package/dist-storybook/assets/use-did-hide-BUsL73ab.js +48 -0
- package/dist-storybook/assets/use-did-show-C1-VLDxi.js +49 -0
- package/dist-storybook/assets/use-histories-E4E2jJEY.js +50 -0
- package/dist-storybook/assets/use-history-o1im8IDj.js +67 -0
- package/dist-storybook/assets/use-location-CUEaBO4P.js +56 -0
- package/dist-storybook/assets/use-navigate-C4CTuFSZ.js +84 -0
- package/dist-storybook/assets/use-navigation-type-Dcz4hgKo.js +44 -0
- package/dist-storybook/assets/use-page-config-DSJBVQbq.js +48 -0
- package/dist-storybook/assets/use-page-scroll-dY-U1Vv4.js +69 -0
- package/dist-storybook/assets/use-page-state-CtNpwGPN.js +79 -0
- package/dist-storybook/assets/use-settings-changed-BBJwIHTE.js +29 -0
- package/dist-storybook/assets/v-mini-icon-Dn1BmJzb.woff2 +0 -0
- package/dist-storybook/assets/visibility-sensor-CwrzJO06.js +1 -0
- package/dist-storybook/iframe.html +670 -0
- package/dist-storybook/index.html +132 -0
- package/dist-storybook/index.json +1 -0
- package/dist-storybook/project.json +1 -0
- package/dist-storybook/sb-addons/a11y-2/manager-bundle.js +5 -0
- package/dist-storybook/sb-addons/docs-1/manager-bundle.js +151 -0
- package/dist-storybook/sb-addons/storybook-build-3/manager-bundle.js +3 -0
- package/dist-storybook/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +971 -0
- package/dist-storybook/sb-manager/globals-module-info.js +799 -0
- package/dist-storybook/sb-manager/globals-runtime.js +69791 -0
- package/dist-storybook/sb-manager/globals.js +34 -0
- package/dist-storybook/sb-manager/runtime.js +13198 -0
- package/dist-storybook/stories-data.json +374 -0
- package/dist-storybook/vite-inject-mocker-entry.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1071 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./alert.stories-B-vuojPh.js","./blocks-BuaOUtiH.js","./preload-helper-PPVm8Dsz.js","./index-DHiZ-gXR.js","./alert-DLW8CoyB.js","./icon-DdQsMyRa.js","./colors-_6nFGM3e.js","./classname-CUR_zgkh.js","./typography-DEpAJl_i.js","./button-CL7GeC23.js","./store-D2RudmNr.js","./avatar.stories-KYFztAc8.js","./avatar-GxcYPA1p.js","./image-C3EsNRhz.js","./visibility-sensor-CwrzJO06.js","./index-B-Ksafg0.js","./badge.stories-Be2ItCmQ.js","./badge-D_LzMVtw.js","./bottom-tab-bar.stories-CDmEve6z.js","./bottom-tab-bar-CtcTAxuI.js","./button.stories-CaqLWQiY.js","./calendar.stories-DLWZldet.js","./calendar-dOCsjhVU.js","./date-Cg-Uk_pp.js","./index-BV0AJWP6.js","./store-CPumdfcU.js","./_setToString-CbM921C9.js","./react-hufnxGVs.js","./carousel.stories-B8YbGOOr.js","./carousel-1Kww3hIz.js","./embla-carousel-react.esm-BYjpaHZ9.js","./pagination-DZHoBs_4.js","./checkbox.stories-CLvfZPiw.js","./checkbox-MGytNNRt.js","./chip.stories-BbwJb5eD.js","./chip-kG4p82WT.js","./navigation-bar-vI-FPasP.js","./omit-Bsx5nTI0.js","./pick-BhmhLmLe.js","./toast-provider-DurnMJhd.js","./section-content-DGNB4eLN.js","./option-item-LRh_OyV4.js","./skeleton-C91JgehG.js","./label-DV2iCDmN.js","./input-wrapper-BKHgnPy6.js","./text-field-jK6rpOo2.js","./number-field-CXKmnfKe.js","./radio-B5NJxG_l.js","./date-picker-Dnq_-0Md.js","./search-field-CQqgFbfg.js","./text-area-DwSXyqOe.js","./switch-p-aXI-ev.js","./tab-bar-CSeCmtIZ.js","./rating-BdXViYBv.js","./tooltip-QDdel5My.js","./date-field.stories-Diptwqfv.js","./date-picker.stories-BuGWvzFL.js","./dialog.stories-DJ0WsSkA.js","./dropdown.stories-D6JUYP73.js","./icon.stories-B-ZvRzFf.js","./image.stories-C4l8D3ju.js","./label.stories-BwTIPFXX.js","./navigation-bar.stories-DYuFaJFD.js","./number-field.stories--fn26TJu.js","./option-item.stories-snjAvgay.js","./pagination.stories-BoEs0jzS.js","./radio.stories-DuN-Awi_.js","./rating.stories-BCcQjMEx.js","./search-field.stories-DiCZbhng.js","./section.stories-C2I_kKhu.js","./sheet.stories-wk1JaKU5.js","./skeleton.stories-BCmX-VNr.js","./switch.stories-BqPLNKB9.js","./tab-bar.stories-Cb6v8H2w.js","./text-area.stories-By8bCfgc.js","./text-field.stories-CrWBAhvI.js","./toast.stories-iWAToAZA.js","./tooltip.stories-RC6SuPPD.js","./typography.stories-Bu8qFugR.js","./uploader.stories-B2wW9qVy.js","./ANIMATION-CUdn1GTK.js","./index-CgMRTj-o.js","./APP_FRAMEWORK-ljbIOHYd.js","./BOTTOM_TAB_BAR-DxCwCfBK.js","./CUSTOM_ERROR_BOUNDARY-B4wTQNZc.js","./DARK_MODE-CoHseCDO.js","./GETTING_STARTED-H_vVi5cv.js","./INFINITE_SCROLL-BtM3uoX0.js","./KEEP_ALIVE-CL2au0al.js","./LOCALE-XTCey55y.js","./MIGRATION_GUIDE-2LONslE4.js","./MOBILE_BEHAVIOURS-DZ6alKTX.js","./PAGE_LAYOUT-BuOpN-1Y.js","./ROUTING_NAVIGATION-BCPHXNto.js","./TAILWIND_INTEGRATION-_T-VfvkM.js","./use-app-pause-B_tWHKJK.js","./use-app-resume--900G-dV.js","./use-custom-icon-event-3VExRzvC.js","./use-did-hide-BUsL73ab.js","./use-did-show-C1-VLDxi.js","./use-histories-E4E2jJEY.js","./use-history-o1im8IDj.js","./use-location-CUEaBO4P.js","./use-navigate-C4CTuFSZ.js","./use-navigation-type-Dcz4hgKo.js","./use-page-config-DSJBVQbq.js","./use-page-scroll-dY-U1Vv4.js","./use-page-state-CtNpwGPN.js","./use-settings-changed-BBJwIHTE.js","./react-18-CNyWQ7je.js","./DocsRenderer-PQXLIZUC-BO86igwd.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as Ee}from"./preload-helper-PPVm8Dsz.js";function WN(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const o=Object.getOwnPropertyDescriptor(n,a);o&&Object.defineProperty(e,a,o.get?o:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&n(i)}).observe(document,{childList:!0,subtree:!0});function r(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=r(a);fetch(a.href,o)}})();var Kp={},YN=Object.create,es=Object.defineProperty,KN=Object.getOwnPropertyDescriptor,XN=Object.getOwnPropertyNames,QN=Object.getPrototypeOf,ZN=Object.prototype.hasOwnProperty,s=(e,t)=>es(e,"name",{value:t,configurable:!0}),Os=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')}),ek=(e,t)=>()=>(e&&(t=e(e=0)),t),O=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jt=(e,t)=>{for(var r in t)es(e,r,{get:t[r],enumerable:!0})},UE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of XN(t))!ZN.call(e,a)&&a!==r&&es(e,a,{get:()=>t[a],enumerable:!(n=KN(t,a))||n.enumerable});return e},Et=(e,t,r)=>(r=e!=null?YN(QN(e)):{},UE(t||!e||!e.__esModule?es(r,"default",{value:e,enumerable:!0}):r,e)),tk=e=>UE(es({},"__esModule",{value:!0}),e),rk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isEqual=(function(){var t=Object.prototype.toString,r=Object.getPrototypeOf,n=Object.getOwnPropertySymbols?function(a){return Object.keys(a).concat(Object.getOwnPropertySymbols(a))}:Object.keys;return function(a,o){return s(function i(l,u,c){var p,d,h,f=t.call(l),m=t.call(u);if(l===u)return!0;if(l==null||u==null)return!1;if(c.indexOf(l)>-1&&c.indexOf(u)>-1)return!0;if(c.push(l,u),f!=m||(p=n(l),d=n(u),p.length!=d.length||p.some(function(y){return!i(l[y],u[y],c)})))return!1;switch(f.slice(8,-1)){case"Symbol":return l.valueOf()==u.valueOf();case"Date":case"Number":return+l==+u||+l!=+l&&+u!=+u;case"RegExp":case"Function":case"String":case"Boolean":return""+l==""+u;case"Set":case"Map":p=l.entries(),d=u.entries();do if(!i((h=p.next()).value,d.next().value,c))return!1;while(!h.done);return!0;case"ArrayBuffer":l=new Uint8Array(l),u=new Uint8Array(u);case"DataView":l=new Uint8Array(l.buffer),u=new Uint8Array(u.buffer);case"Float32Array":case"Float64Array":case"Int8Array":case"Int16Array":case"Int32Array":case"Uint8Array":case"Uint16Array":case"Uint32Array":case"Uint8ClampedArray":case"Arguments":case"Array":if(l.length!=u.length)return!1;for(h=0;h<l.length;h++)if((h in l||h in u)&&(h in l!=h in u||!i(l[h],u[h],c)))return!1;return!0;case"Object":return i(r(l),r(u),c);default:return!1}},"n")(a,o,[])}})()}),nk=O((e,t)=>{t.exports=r=>{let n=r.match(/^[ \t]*(?=\S)/gm);return n?n.reduce((a,o)=>Math.min(a,o.length),1/0):0}}),ak=O((e,t)=>{var r=nk();t.exports=n=>{let a=r(n);if(a===0)return n;let o=new RegExp(`^[ \\t]{${a}}`,"gm");return n.replace(o,"")}}),ok=O((e,t)=>{t.exports=(r,n=1,a)=>{if(a={indent:" ",includeEmptyLines:!1,...a},typeof r!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof r}\``);if(typeof n!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof n}\``);if(typeof a.indent!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof a.indent}\``);if(n===0)return r;let o=a.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return r.replace(o,a.indent.repeat(n))}}),VE=O((e,t)=>{var r=ak(),n=ok();t.exports=(a,o=0,i)=>n(r(a),o,i)}),ik=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var r=this,n=0,a={"@@iterator":s(function(){return a},"iterator"),next:s(function(){if(n<r.length){var o=r[n];return n=n+1,{done:!1,value:o}}else return{done:!0}},"next")};return a}s(t,"iteratorProxy"),e.default=t}),ts=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(ik());function r(o){return o&&o.__esModule?o:{default:o}}s(r,"_interopRequireDefault");function n(o){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},n(o)}s(n,"_typeof");function a(o,i){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:t.default.bind(i)}),o}s(a,"iterationDecorator")}),sk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ts());function r(d){return d&&d.__esModule?d:{default:d}}s(r,"_interopRequireDefault");function n(d,h){return u(d)||l(d,h)||o(d,h)||a()}s(n,"_slicedToArray");function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(a,"_nonIterableRest");function o(d,h){if(d){if(typeof d=="string")return i(d,h);var f={}.toString.call(d).slice(8,-1);return f==="Object"&&d.constructor&&(f=d.constructor.name),f==="Map"||f==="Set"?Array.from(d):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?i(d,h):void 0}}s(o,"_unsupportedIterableToArray");function i(d,h){(h==null||h>d.length)&&(h=d.length);for(var f=0,m=Array(h);f<h;f++)m[f]=d[f];return m}s(i,"_arrayLikeToArray");function l(d,h){var f=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(f!=null){var m,y,b,g,v=[],D=!0,S=!1;try{if(b=(f=f.call(d)).next,h===0){if(Object(f)!==f)return;D=!1}else for(;!(D=(m=b.call(f)).done)&&(v.push(m.value),v.length!==h);D=!0);}catch(P){S=!0,y=P}finally{try{if(!D&&f.return!=null&&(g=f.return(),Object(g)!==g))return}finally{if(S)throw y}}return v}}s(l,"_iterableToArrayLimit");function u(d){if(Array.isArray(d))return d}s(u,"_arrayWithHoles");var c=[["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"}]],p={entries:s(function(){return c},"entries"),forEach:s(function(d){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=0,m=c;f<m.length;f++){var y=n(m[f],2),b=y[0],g=y[1];d.call(h,g,b,c)}},"forEach"),get:s(function(d){var h=c.filter(function(f){return f[0]===d})[0];return h&&h[1]},"get"),has:s(function(d){return!!p.get(d)},"has"),keys:s(function(){return c.map(function(d){var h=n(d,1),f=h[0];return f})},"keys"),values:s(function(){return c.map(function(d){var h=n(d,2),f=h[1];return f})},"values")};e.default=(0,t.default)(p,p.entries())}),lk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(ts());function r(d){return d&&d.__esModule?d:{default:d}}s(r,"_interopRequireDefault");function n(d,h){return u(d)||l(d,h)||o(d,h)||a()}s(n,"_slicedToArray");function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
4
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(a,"_nonIterableRest");function o(d,h){if(d){if(typeof d=="string")return i(d,h);var f={}.toString.call(d).slice(8,-1);return f==="Object"&&d.constructor&&(f=d.constructor.name),f==="Map"||f==="Set"?Array.from(d):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?i(d,h):void 0}}s(o,"_unsupportedIterableToArray");function i(d,h){(h==null||h>d.length)&&(h=d.length);for(var f=0,m=Array(h);f<h;f++)m[f]=d[f];return m}s(i,"_arrayLikeToArray");function l(d,h){var f=d==null?null:typeof Symbol<"u"&&d[Symbol.iterator]||d["@@iterator"];if(f!=null){var m,y,b,g,v=[],D=!0,S=!1;try{if(b=(f=f.call(d)).next,h===0){if(Object(f)!==f)return;D=!1}else for(;!(D=(m=b.call(f)).done)&&(v.push(m.value),v.length!==h);D=!0);}catch(P){S=!0,y=P}finally{try{if(!D&&f.return!=null&&(g=f.return(),Object(g)!==g))return}finally{if(S)throw y}}return v}}s(l,"_iterableToArrayLimit");function u(d){if(Array.isArray(d))return d}s(u,"_arrayWithHoles");var c=[["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}]],p={entries:s(function(){return c},"entries"),forEach:s(function(d){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=0,m=c;f<m.length;f++){var y=n(m[f],2),b=y[0],g=y[1];d.call(h,g,b,c)}},"forEach"),get:s(function(d){var h=c.filter(function(f){return f[0]===d})[0];return h&&h[1]},"get"),has:s(function(d){return!!p.get(d)},"has"),keys:s(function(){return c.map(function(d){var h=n(d,1),f=h[0];return f})},"keys"),values:s(function(){return c.map(function(d){var h=n(d,2),f=h[1];return f})},"values")};e.default=(0,t.default)(p,p.entries())}),uk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}),ck=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}),pk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]};e.default=t}),dk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),fk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),hk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}),mk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),yk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),gk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]};e.default=t}),bk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}),vk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}),Ek=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]};e.default=t}),Ck=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=f(uk()),r=f(ck()),n=f(pk()),a=f(dk()),o=f(fk()),i=f(hk()),l=f(mk()),u=f(yk()),c=f(gk()),p=f(bk()),d=f(vk()),h=f(Ek());function f(y){return y&&y.__esModule?y:{default:y}}s(f,"_interopRequireDefault");var m=[["command",t.default],["composite",r.default],["input",n.default],["landmark",a.default],["range",o.default],["roletype",i.default],["section",l.default],["sectionhead",u.default],["select",c.default],["structure",p.default],["widget",d.default],["window",h.default]];e.default=m}),wk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),xk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]};e.default=t}),Ak=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),Sk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}),_k=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Tk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Pk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}),Dk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Ok=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Rk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}),Fk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Ik=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}),Nk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]};e.default=t}),kk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element","scoped to the main element"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-label"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],constraints:["scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"aside"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Bk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),jk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),qk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Mk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]};e.default=t}),Lk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}),$k=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),Uk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Vk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]};e.default=t}),Hk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Jk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),zk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),Gk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]};e.default=t}),Wk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]};e.default=t}),Yk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Kk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]};e.default=t}),Xk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Qk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Zk=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}),eB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),tB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}),rB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),nB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),aB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),oB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),iB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),sB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),lB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}),uB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]};e.default=t}),cB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]};e.default=t}),pB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]};e.default=t}),dB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]};e.default=t}),fB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]};e.default=t}),hB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),mB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]};e.default=t}),yB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),gB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]};e.default=t}),bB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),vB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),EB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}),CB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]};e.default=t}),wB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}),xB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),AB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]};e.default=t}),SB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),_B=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]};e.default=t}),TB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]};e.default=t}),PB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),DB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]};e.default=t}),OB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]};e.default=t}),RB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}),FB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]};e.default=t}),IB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),NB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),kB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),BB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),jB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]};e.default=t}),qB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]};e.default=t}),MB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),LB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]};e.default=t}),$B=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),UB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),VB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]};e.default=t}),HB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),JB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]};e.default=t}),zB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}),GB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),WB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]};e.default=t}),YB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]};e.default=t}),KB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]};e.default=t}),XB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=T(wk()),r=T(xk()),n=T(Ak()),a=T(Sk()),o=T(_k()),i=T(Tk()),l=T(Pk()),u=T(Dk()),c=T(Ok()),p=T(Rk()),d=T(Fk()),h=T(Ik()),f=T(Nk()),m=T(kk()),y=T(Bk()),b=T(jk()),g=T(qk()),v=T(Mk()),D=T(Lk()),S=T($k()),P=T(Uk()),w=T(Vk()),E=T(Hk()),C=T(Jk()),_=T(zk()),k=T(Gk()),B=T(Wk()),W=T(Yk()),z=T(Kk()),R=T(Xk()),U=T(Qk()),j=T(Zk()),Y=T(eB()),Q=T(tB()),ae=T(rB()),le=T(nB()),M=T(aB()),L=T(oB()),K=T(iB()),X=T(sB()),ie=T(lB()),te=T(uB()),ue=T(cB()),ve=T(pB()),je=T(dB()),st=T(fB()),Z=T(hB()),pe=T(mB()),ye=T(yB()),ge=T(gB()),Ce=T(bB()),Se=T(vB()),_e=T(EB()),Ge=T(CB()),lt=T(wB()),Dt=T(xB()),Gt=T(AB()),_t=T(SB()),Vt=T(_B()),kt=T(TB()),Pe=T(PB()),ut=T(DB()),Ae=T(OB()),ct=T(RB()),Qe=T(FB()),Zn=T(IB()),ea=T(NB()),Bt=T(kB()),An=T(BB()),pr=T(jB()),tt=T(qB()),Sn=T(MB()),ta=T(LB()),Ze=T($B()),wt=T(UB()),xr=T(VB()),Nr=T(HB()),kr=T(JB()),_n=T(zB()),dr=T(GB()),A=T(WB()),N=T(YB()),F=T(KB());function T(oe){return oe&&oe.__esModule?oe:{default:oe}}s(T,"_interopRequireDefault");var V=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",a.default],["banner",o.default],["blockquote",i.default],["button",l.default],["caption",u.default],["cell",c.default],["checkbox",p.default],["code",d.default],["columnheader",h.default],["combobox",f.default],["complementary",m.default],["contentinfo",y.default],["definition",b.default],["deletion",g.default],["dialog",v.default],["directory",D.default],["document",S.default],["emphasis",P.default],["feed",w.default],["figure",E.default],["form",C.default],["generic",_.default],["grid",k.default],["gridcell",B.default],["group",W.default],["heading",z.default],["img",R.default],["insertion",U.default],["link",j.default],["list",Y.default],["listbox",Q.default],["listitem",ae.default],["log",le.default],["main",M.default],["mark",L.default],["marquee",K.default],["math",X.default],["menu",ie.default],["menubar",te.default],["menuitem",ue.default],["menuitemcheckbox",ve.default],["menuitemradio",je.default],["meter",st.default],["navigation",Z.default],["none",pe.default],["note",ye.default],["option",ge.default],["paragraph",Ce.default],["presentation",Se.default],["progressbar",_e.default],["radio",Ge.default],["radiogroup",lt.default],["region",Dt.default],["row",Gt.default],["rowgroup",_t.default],["rowheader",Vt.default],["scrollbar",kt.default],["search",Pe.default],["searchbox",ut.default],["separator",Ae.default],["slider",ct.default],["spinbutton",Qe.default],["status",Zn.default],["strong",ea.default],["subscript",Bt.default],["superscript",An.default],["switch",pr.default],["tab",tt.default],["table",Sn.default],["tablist",ta.default],["tabpanel",Ze.default],["term",wt.default],["textbox",xr.default],["time",Nr.default],["timer",kr.default],["toolbar",_n.default],["tooltip",dr.default],["tree",A.default],["treegrid",N.default],["treeitem",F.default]];e.default=V}),QB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),ZB=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),ej=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),tj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),rj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}),nj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}),aj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),oj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}),ij=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),sj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),lj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),uj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}),cj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),pj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),dj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),fj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]};e.default=t}),hj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),mj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),yj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),gj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),bj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),vj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Ej=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Cj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),wj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}),xj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}),Aj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Sj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]};e.default=t}),_j=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}),Tj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]};e.default=t}),Pj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Dj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null,"aria-disabled":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Oj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}),Rj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Fj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Ij=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]};e.default=t}),Nj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]};e.default=t}),kj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]};e.default=t}),Bj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]};e.default=t}),jj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]};e.default=t}),qj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]};e.default=t}),Mj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=te(QB()),r=te(ZB()),n=te(ej()),a=te(tj()),o=te(rj()),i=te(nj()),l=te(aj()),u=te(oj()),c=te(ij()),p=te(sj()),d=te(lj()),h=te(uj()),f=te(cj()),m=te(pj()),y=te(dj()),b=te(fj()),g=te(hj()),v=te(mj()),D=te(yj()),S=te(gj()),P=te(bj()),w=te(vj()),E=te(Ej()),C=te(Cj()),_=te(wj()),k=te(xj()),B=te(Aj()),W=te(Sj()),z=te(_j()),R=te(Tj()),U=te(Pj()),j=te(Dj()),Y=te(Oj()),Q=te(Rj()),ae=te(Fj()),le=te(Ij()),M=te(Nj()),L=te(kj()),K=te(Bj()),X=te(jj()),ie=te(qj());function te(ve){return ve&&ve.__esModule?ve:{default:ve}}s(te,"_interopRequireDefault");var ue=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",a.default],["doc-backlink",o.default],["doc-biblioentry",i.default],["doc-bibliography",l.default],["doc-biblioref",u.default],["doc-chapter",c.default],["doc-colophon",p.default],["doc-conclusion",d.default],["doc-cover",h.default],["doc-credit",f.default],["doc-credits",m.default],["doc-dedication",y.default],["doc-endnote",b.default],["doc-endnotes",g.default],["doc-epigraph",v.default],["doc-epilogue",D.default],["doc-errata",S.default],["doc-example",P.default],["doc-footnote",w.default],["doc-foreword",E.default],["doc-glossary",C.default],["doc-glossref",_.default],["doc-index",k.default],["doc-introduction",B.default],["doc-noteref",W.default],["doc-notice",z.default],["doc-pagebreak",R.default],["doc-pagefooter",U.default],["doc-pageheader",j.default],["doc-pagelist",Y.default],["doc-part",Q.default],["doc-preface",ae.default],["doc-prologue",le.default],["doc-pullquote",M.default],["doc-qna",L.default],["doc-subtitle",K.default],["doc-tip",X.default],["doc-toc",ie.default]];e.default=ue}),Lj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]};e.default=t}),$j=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]};e.default=t}),Uj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]};e.default=t}),Vj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(Lj()),r=a($j()),n=a(Uj());function a(i){return i&&i.__esModule?i:{default:i}}s(a,"_interopRequireDefault");var o=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]];e.default=o}),gh=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(Ck()),r=i(XB()),n=i(Mj()),a=i(Vj()),o=i(ts());function i(b){return b&&b.__esModule?b:{default:b}}s(i,"_interopRequireDefault");function l(b,g){var v=typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(!v){if(Array.isArray(b)||(v=p(b))||g&&b&&typeof b.length=="number"){v&&(b=v);var D=0,S=s(function(){},"F");return{s:S,n:s(function(){return D>=b.length?{done:!0}:{done:!1,value:b[D++]}},"n"),e:s(function(C){throw C},"e"),f:S}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var P,w=!0,E=!1;return{s:s(function(){v=v.call(b)},"s"),n:s(function(){var C=v.next();return w=C.done,C},"n"),e:s(function(C){E=!0,P=C},"e"),f:s(function(){try{w||v.return==null||v.return()}finally{if(E)throw P}},"f")}}s(l,"_createForOfIteratorHelper");function u(b,g){return f(b)||h(b,g)||p(b,g)||c()}s(u,"_slicedToArray");function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(c,"_nonIterableRest");function p(b,g){if(b){if(typeof b=="string")return d(b,g);var v={}.toString.call(b).slice(8,-1);return v==="Object"&&b.constructor&&(v=b.constructor.name),v==="Map"||v==="Set"?Array.from(b):v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v)?d(b,g):void 0}}s(p,"_unsupportedIterableToArray");function d(b,g){(g==null||g>b.length)&&(g=b.length);for(var v=0,D=Array(g);v<g;v++)D[v]=b[v];return D}s(d,"_arrayLikeToArray");function h(b,g){var v=b==null?null:typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(v!=null){var D,S,P,w,E=[],C=!0,_=!1;try{if(P=(v=v.call(b)).next,g===0){if(Object(v)!==v)return;C=!1}else for(;!(C=(D=P.call(v)).done)&&(E.push(D.value),E.length!==g);C=!0);}catch(k){_=!0,S=k}finally{try{if(!C&&v.return!=null&&(w=v.return(),Object(w)!==w))return}finally{if(_)throw S}}return E}}s(h,"_iterableToArrayLimit");function f(b){if(Array.isArray(b))return b}s(f,"_arrayWithHoles");var m=[].concat(t.default,r.default,n.default,a.default);m.forEach(function(b){var g=u(b,2),v=g[1],D=l(v.superClass),S;try{for(D.s();!(S=D.n()).done;){var P=S.value,w=l(P),E;try{var C=s(function(){var _=E.value,k=m.filter(function(U){var j=u(U,1),Y=j[0];return Y===_})[0];if(k)for(var B=k[1],W=0,z=Object.keys(B.props);W<z.length;W++){var R=z[W];Object.prototype.hasOwnProperty.call(v.props,R)||(v.props[R]=B.props[R])}},"_loop");for(w.s();!(E=w.n()).done;)C()}catch(_){w.e(_)}finally{w.f()}}}catch(_){D.e(_)}finally{D.f()}});var y={entries:s(function(){return m},"entries"),forEach:s(function(b){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,v=l(m),D;try{for(v.s();!(D=v.n()).done;){var S=u(D.value,2),P=S[0],w=S[1];b.call(g,w,P,m)}}catch(E){v.e(E)}finally{v.f()}},"forEach"),get:s(function(b){var g=m.filter(function(v){return v[0]===b})[0];return g&&g[1]},"get"),has:s(function(b){return!!y.get(b)},"has"),keys:s(function(){return m.map(function(b){var g=u(b,1),v=g[0];return v})},"keys"),values:s(function(){return m.map(function(b){var g=u(b,2),v=g[1];return v})},"values")};e.default=(0,o.default)(y,y.entries())}),Hj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ts()),r=n(gh());function n(w){return w&&w.__esModule?w:{default:w}}s(n,"_interopRequireDefault");function a(w,E){return c(w)||u(w,E)||i(w,E)||o()}s(a,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
7
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(o,"_nonIterableRest");function i(w,E){if(w){if(typeof w=="string")return l(w,E);var C={}.toString.call(w).slice(8,-1);return C==="Object"&&w.constructor&&(C=w.constructor.name),C==="Map"||C==="Set"?Array.from(w):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?l(w,E):void 0}}s(i,"_unsupportedIterableToArray");function l(w,E){(E==null||E>w.length)&&(E=w.length);for(var C=0,_=Array(E);C<E;C++)_[C]=w[C];return _}s(l,"_arrayLikeToArray");function u(w,E){var C=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(C!=null){var _,k,B,W,z=[],R=!0,U=!1;try{if(B=(C=C.call(w)).next,E===0){if(Object(C)!==C)return;R=!1}else for(;!(R=(_=B.call(C)).done)&&(z.push(_.value),z.length!==E);R=!0);}catch(j){U=!0,k=j}finally{try{if(!R&&C.return!=null&&(W=C.return(),Object(W)!==W))return}finally{if(U)throw k}}return z}}s(u,"_iterableToArrayLimit");function c(w){if(Array.isArray(w))return w}s(c,"_arrayWithHoles");var p=[],d=r.default.keys();for(g=0;g<d.length;g++)if(h=d[g],f=r.default.get(h),f)for(m=[].concat(f.baseConcepts,f.relatedConcepts),y=s(function(){var w=m[b];if(w.module==="HTML"){var E=w.concept;if(E){var C=p.filter(function(W){return D(W[0],E)})[0],_;C?_=C[1]:_=[];for(var k=!0,B=0;B<_.length;B++)if(_[B]===h){k=!1;break}k&&_.push(h),C||p.push([E,_])}}},"_loop"),b=0;b<m.length;b++)y();var h,f,m,y,b,g,v={entries:s(function(){return p},"entries"),forEach:s(function(w){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,C=0,_=p;C<_.length;C++){var k=a(_[C],2),B=k[0],W=k[1];w.call(E,W,B,p)}},"forEach"),get:s(function(w){var E=p.filter(function(C){return w.name===C[0].name&&P(w.attributes,C[0].attributes)})[0];return E&&E[1]},"get"),has:s(function(w){return!!v.get(w)},"has"),keys:s(function(){return p.map(function(w){var E=a(w,1),C=E[0];return C})},"keys"),values:s(function(){return p.map(function(w){var E=a(w,2),C=E[1];return C})},"values")};function D(w,E){return w.name===E.name&&S(w.constraints,E.constraints)&&P(w.attributes,E.attributes)}s(D,"ariaRoleRelationConceptEquals");function S(w,E){if(w===void 0&&E!==void 0||w!==void 0&&E===void 0)return!1;if(w!==void 0&&E!==void 0){if(w.length!==E.length)return!1;for(var C=0;C<w.length;C++)if(w[C]!==E[C])return!1}return!0}s(S,"ariaRoleRelationConstraintsEquals");function P(w,E){if(w===void 0&&E!==void 0||w!==void 0&&E===void 0)return!1;if(w!==void 0&&E!==void 0){if(w.length!==E.length)return!1;for(var C=0;C<w.length;C++){if(w[C].name!==E[C].name||w[C].value!==E[C].value||w[C].constraints===void 0&&E[C].constraints!==void 0||w[C].constraints!==void 0&&E[C].constraints===void 0)return!1;if(w[C].constraints!==void 0&&E[C].constraints!==void 0){if(w[C].constraints.length!==E[C].constraints.length)return!1;for(var _=0;_<w[C].constraints.length;_++)if(w[C].constraints[_]!==E[C].constraints[_])return!1}}}return!0}s(P,"ariaRoleRelationConceptAttributeEquals"),e.default=(0,t.default)(v,v.entries())}),Jj=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ts()),r=n(gh());function n(P){return P&&P.__esModule?P:{default:P}}s(n,"_interopRequireDefault");function a(P,w){return c(P)||u(P,w)||i(P,w)||o()}s(a,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(o,"_nonIterableRest");function i(P,w){if(P){if(typeof P=="string")return l(P,w);var E={}.toString.call(P).slice(8,-1);return E==="Object"&&P.constructor&&(E=P.constructor.name),E==="Map"||E==="Set"?Array.from(P):E==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(E)?l(P,w):void 0}}s(i,"_unsupportedIterableToArray");function l(P,w){(w==null||w>P.length)&&(w=P.length);for(var E=0,C=Array(w);E<w;E++)C[E]=P[E];return C}s(l,"_arrayLikeToArray");function u(P,w){var E=P==null?null:typeof Symbol<"u"&&P[Symbol.iterator]||P["@@iterator"];if(E!=null){var C,_,k,B,W=[],z=!0,R=!1;try{if(k=(E=E.call(P)).next,w===0){if(Object(E)!==E)return;z=!1}else for(;!(z=(C=k.call(E)).done)&&(W.push(C.value),W.length!==w);z=!0);}catch(U){R=!0,_=U}finally{try{if(!z&&E.return!=null&&(B=E.return(),Object(B)!==B))return}finally{if(R)throw _}}return W}}s(u,"_iterableToArrayLimit");function c(P){if(Array.isArray(P))return P}s(c,"_arrayWithHoles");var p=[],d=r.default.keys();for(D=0;D<d.length;D++)if(h=d[D],f=r.default.get(h),m=[],f){for(y=[].concat(f.baseConcepts,f.relatedConcepts),v=0;v<y.length;v++)b=y[v],b.module==="HTML"&&(g=b.concept,g!=null&&m.push(g));m.length>0&&p.push([h,m])}var h,f,m,y,b,g,v,D,S={entries:s(function(){return p},"entries"),forEach:s(function(P){for(var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,E=0,C=p;E<C.length;E++){var _=a(C[E],2),k=_[0],B=_[1];P.call(w,B,k,p)}},"forEach"),get:s(function(P){var w=p.filter(function(E){return E[0]===P})[0];return w&&w[1]},"get"),has:s(function(P){return!!S.get(P)},"has"),keys:s(function(){return p.map(function(P){var w=a(P,1),E=w[0];return E})},"keys"),values:s(function(){return p.map(function(P){var w=a(P,2),E=w[1];return E})},"values")};e.default=(0,t.default)(S,S.entries())}),HE=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=i(sk()),r=i(lk()),n=i(gh()),a=i(Hj()),o=i(Jj());function i(l){return l&&l.__esModule?l:{default:l}}s(i,"_interopRequireDefault"),e.aria=t.default,e.dom=r.default,e.roles=n.default,e.elementRoles=a.default,e.roleElements=o.default}),zj=O((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]}}),JE=O((e,t)=>{var r=zj(),n={};for(let i of Object.keys(r))n[r[i]]=i;var a={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=a;for(let i of Object.keys(a)){if(!("channels"in a[i]))throw new Error("missing channels property: "+i);if(!("labels"in a[i]))throw new Error("missing channel labels property: "+i);if(a[i].labels.length!==a[i].channels)throw new Error("channel and label counts mismatch: "+i);let{channels:l,labels:u}=a[i];delete a[i].channels,delete a[i].labels,Object.defineProperty(a[i],"channels",{value:l}),Object.defineProperty(a[i],"labels",{value:u})}a.rgb.hsl=function(i){let l=i[0]/255,u=i[1]/255,c=i[2]/255,p=Math.min(l,u,c),d=Math.max(l,u,c),h=d-p,f,m;d===p?f=0:l===d?f=(u-c)/h:u===d?f=2+(c-l)/h:c===d&&(f=4+(l-u)/h),f=Math.min(f*60,360),f<0&&(f+=360);let y=(p+d)/2;return d===p?m=0:y<=.5?m=h/(d+p):m=h/(2-d-p),[f,m*100,y*100]},a.rgb.hsv=function(i){let l,u,c,p,d,h=i[0]/255,f=i[1]/255,m=i[2]/255,y=Math.max(h,f,m),b=y-Math.min(h,f,m),g=s(function(v){return(y-v)/6/b+1/2},"diffc");return b===0?(p=0,d=0):(d=b/y,l=g(h),u=g(f),c=g(m),h===y?p=c-u:f===y?p=1/3+l-c:m===y&&(p=2/3+u-l),p<0?p+=1:p>1&&(p-=1)),[p*360,d*100,y*100]},a.rgb.hwb=function(i){let l=i[0],u=i[1],c=i[2],p=a.rgb.hsl(i)[0],d=1/255*Math.min(l,Math.min(u,c));return c=1-1/255*Math.max(l,Math.max(u,c)),[p,d*100,c*100]},a.rgb.cmyk=function(i){let l=i[0]/255,u=i[1]/255,c=i[2]/255,p=Math.min(1-l,1-u,1-c),d=(1-l-p)/(1-p)||0,h=(1-u-p)/(1-p)||0,f=(1-c-p)/(1-p)||0;return[d*100,h*100,f*100,p*100]};function o(i,l){return(i[0]-l[0])**2+(i[1]-l[1])**2+(i[2]-l[2])**2}s(o,"comparativeDistance"),a.rgb.keyword=function(i){let l=n[i];if(l)return l;let u=1/0,c;for(let p of Object.keys(r)){let d=r[p],h=o(i,d);h<u&&(u=h,c=p)}return c},a.keyword.rgb=function(i){return r[i]},a.rgb.xyz=function(i){let l=i[0]/255,u=i[1]/255,c=i[2]/255;l=l>.04045?((l+.055)/1.055)**2.4:l/12.92,u=u>.04045?((u+.055)/1.055)**2.4:u/12.92,c=c>.04045?((c+.055)/1.055)**2.4:c/12.92;let p=l*.4124+u*.3576+c*.1805,d=l*.2126+u*.7152+c*.0722,h=l*.0193+u*.1192+c*.9505;return[p*100,d*100,h*100]},a.rgb.lab=function(i){let l=a.rgb.xyz(i),u=l[0],c=l[1],p=l[2];u/=95.047,c/=100,p/=108.883,u=u>.008856?u**(1/3):7.787*u+16/116,c=c>.008856?c**(1/3):7.787*c+16/116,p=p>.008856?p**(1/3):7.787*p+16/116;let d=116*c-16,h=500*(u-c),f=200*(c-p);return[d,h,f]},a.hsl.rgb=function(i){let l=i[0]/360,u=i[1]/100,c=i[2]/100,p,d,h;if(u===0)return h=c*255,[h,h,h];c<.5?p=c*(1+u):p=c+u-c*u;let f=2*c-p,m=[0,0,0];for(let y=0;y<3;y++)d=l+1/3*-(y-1),d<0&&d++,d>1&&d--,6*d<1?h=f+(p-f)*6*d:2*d<1?h=p:3*d<2?h=f+(p-f)*(2/3-d)*6:h=f,m[y]=h*255;return m},a.hsl.hsv=function(i){let l=i[0],u=i[1]/100,c=i[2]/100,p=u,d=Math.max(c,.01);c*=2,u*=c<=1?c:2-c,p*=d<=1?d:2-d;let h=(c+u)/2,f=c===0?2*p/(d+p):2*u/(c+u);return[l,f*100,h*100]},a.hsv.rgb=function(i){let l=i[0]/60,u=i[1]/100,c=i[2]/100,p=Math.floor(l)%6,d=l-Math.floor(l),h=255*c*(1-u),f=255*c*(1-u*d),m=255*c*(1-u*(1-d));switch(c*=255,p){case 0:return[c,m,h];case 1:return[f,c,h];case 2:return[h,c,m];case 3:return[h,f,c];case 4:return[m,h,c];case 5:return[c,h,f]}},a.hsv.hsl=function(i){let l=i[0],u=i[1]/100,c=i[2]/100,p=Math.max(c,.01),d,h;h=(2-u)*c;let f=(2-u)*p;return d=u*p,d/=f<=1?f:2-f,d=d||0,h/=2,[l,d*100,h*100]},a.hwb.rgb=function(i){let l=i[0]/360,u=i[1]/100,c=i[2]/100,p=u+c,d;p>1&&(u/=p,c/=p);let h=Math.floor(6*l),f=1-c;d=6*l-h,(h&1)!==0&&(d=1-d);let m=u+d*(f-u),y,b,g;switch(h){default:case 6:case 0:y=f,b=m,g=u;break;case 1:y=m,b=f,g=u;break;case 2:y=u,b=f,g=m;break;case 3:y=u,b=m,g=f;break;case 4:y=m,b=u,g=f;break;case 5:y=f,b=u,g=m;break}return[y*255,b*255,g*255]},a.cmyk.rgb=function(i){let l=i[0]/100,u=i[1]/100,c=i[2]/100,p=i[3]/100,d=1-Math.min(1,l*(1-p)+p),h=1-Math.min(1,u*(1-p)+p),f=1-Math.min(1,c*(1-p)+p);return[d*255,h*255,f*255]},a.xyz.rgb=function(i){let l=i[0]/100,u=i[1]/100,c=i[2]/100,p,d,h;return p=l*3.2406+u*-1.5372+c*-.4986,d=l*-.9689+u*1.8758+c*.0415,h=l*.0557+u*-.204+c*1.057,p=p>.0031308?1.055*p**(1/2.4)-.055:p*12.92,d=d>.0031308?1.055*d**(1/2.4)-.055:d*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,p=Math.min(Math.max(0,p),1),d=Math.min(Math.max(0,d),1),h=Math.min(Math.max(0,h),1),[p*255,d*255,h*255]},a.xyz.lab=function(i){let l=i[0],u=i[1],c=i[2];l/=95.047,u/=100,c/=108.883,l=l>.008856?l**(1/3):7.787*l+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,c=c>.008856?c**(1/3):7.787*c+16/116;let p=116*u-16,d=500*(l-u),h=200*(u-c);return[p,d,h]},a.lab.xyz=function(i){let l=i[0],u=i[1],c=i[2],p,d,h;d=(l+16)/116,p=u/500+d,h=d-c/200;let f=d**3,m=p**3,y=h**3;return d=f>.008856?f:(d-16/116)/7.787,p=m>.008856?m:(p-16/116)/7.787,h=y>.008856?y:(h-16/116)/7.787,p*=95.047,d*=100,h*=108.883,[p,d,h]},a.lab.lch=function(i){let l=i[0],u=i[1],c=i[2],p;p=Math.atan2(c,u)*360/2/Math.PI,p<0&&(p+=360);let d=Math.sqrt(u*u+c*c);return[l,d,p]},a.lch.lab=function(i){let l=i[0],u=i[1],c=i[2]/360*2*Math.PI,p=u*Math.cos(c),d=u*Math.sin(c);return[l,p,d]},a.rgb.ansi16=function(i,l=null){let[u,c,p]=i,d=l===null?a.rgb.hsv(i)[2]:l;if(d=Math.round(d/50),d===0)return 30;let h=30+(Math.round(p/255)<<2|Math.round(c/255)<<1|Math.round(u/255));return d===2&&(h+=60),h},a.hsv.ansi16=function(i){return a.rgb.ansi16(a.hsv.rgb(i),i[2])},a.rgb.ansi256=function(i){let l=i[0],u=i[1],c=i[2];return l===u&&u===c?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(u/255*5)+Math.round(c/255*5)},a.ansi16.rgb=function(i){let l=i%10;if(l===0||l===7)return i>50&&(l+=3.5),l=l/10.5*255,[l,l,l];let u=(~~(i>50)+1)*.5,c=(l&1)*u*255,p=(l>>1&1)*u*255,d=(l>>2&1)*u*255;return[c,p,d]},a.ansi256.rgb=function(i){if(i>=232){let d=(i-232)*10+8;return[d,d,d]}i-=16;let l,u=Math.floor(i/36)/5*255,c=Math.floor((l=i%36)/6)/5*255,p=l%6/5*255;return[u,c,p]},a.rgb.hex=function(i){let l=(((Math.round(i[0])&255)<<16)+((Math.round(i[1])&255)<<8)+(Math.round(i[2])&255)).toString(16).toUpperCase();return"000000".substring(l.length)+l},a.hex.rgb=function(i){let l=i.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!l)return[0,0,0];let u=l[0];l[0].length===3&&(u=u.split("").map(f=>f+f).join(""));let c=parseInt(u,16),p=c>>16&255,d=c>>8&255,h=c&255;return[p,d,h]},a.rgb.hcg=function(i){let l=i[0]/255,u=i[1]/255,c=i[2]/255,p=Math.max(Math.max(l,u),c),d=Math.min(Math.min(l,u),c),h=p-d,f,m;return h<1?f=d/(1-h):f=0,h<=0?m=0:p===l?m=(u-c)/h%6:p===u?m=2+(c-l)/h:m=4+(l-u)/h,m/=6,m%=1,[m*360,h*100,f*100]},a.hsl.hcg=function(i){let l=i[1]/100,u=i[2]/100,c=u<.5?2*l*u:2*l*(1-u),p=0;return c<1&&(p=(u-.5*c)/(1-c)),[i[0],c*100,p*100]},a.hsv.hcg=function(i){let l=i[1]/100,u=i[2]/100,c=l*u,p=0;return c<1&&(p=(u-c)/(1-c)),[i[0],c*100,p*100]},a.hcg.rgb=function(i){let l=i[0]/360,u=i[1]/100,c=i[2]/100;if(u===0)return[c*255,c*255,c*255];let p=[0,0,0],d=l%1*6,h=d%1,f=1-h,m=0;switch(Math.floor(d)){case 0:p[0]=1,p[1]=h,p[2]=0;break;case 1:p[0]=f,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=h;break;case 3:p[0]=0,p[1]=f,p[2]=1;break;case 4:p[0]=h,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=f}return m=(1-u)*c,[(u*p[0]+m)*255,(u*p[1]+m)*255,(u*p[2]+m)*255]},a.hcg.hsv=function(i){let l=i[1]/100,u=i[2]/100,c=l+u*(1-l),p=0;return c>0&&(p=l/c),[i[0],p*100,c*100]},a.hcg.hsl=function(i){let l=i[1]/100,u=i[2]/100*(1-l)+.5*l,c=0;return u>0&&u<.5?c=l/(2*u):u>=.5&&u<1&&(c=l/(2*(1-u))),[i[0],c*100,u*100]},a.hcg.hwb=function(i){let l=i[1]/100,u=i[2]/100,c=l+u*(1-l);return[i[0],(c-l)*100,(1-c)*100]},a.hwb.hcg=function(i){let l=i[1]/100,u=1-i[2]/100,c=u-l,p=0;return c<1&&(p=(u-c)/(1-c)),[i[0],c*100,p*100]},a.apple.rgb=function(i){return[i[0]/65535*255,i[1]/65535*255,i[2]/65535*255]},a.rgb.apple=function(i){return[i[0]/255*65535,i[1]/255*65535,i[2]/255*65535]},a.gray.rgb=function(i){return[i[0]/100*255,i[0]/100*255,i[0]/100*255]},a.gray.hsl=function(i){return[0,0,i[0]]},a.gray.hsv=a.gray.hsl,a.gray.hwb=function(i){return[0,100,i[0]]},a.gray.cmyk=function(i){return[0,0,0,i[0]]},a.gray.lab=function(i){return[i[0],0,0]},a.gray.hex=function(i){let l=Math.round(i[0]/100*255)&255,u=((l<<16)+(l<<8)+l).toString(16).toUpperCase();return"000000".substring(u.length)+u},a.rgb.gray=function(i){return[(i[0]+i[1]+i[2])/3/255*100]}}),Gj=O((e,t)=>{var r=JE();function n(){let l={},u=Object.keys(r);for(let c=u.length,p=0;p<c;p++)l[u[p]]={distance:-1,parent:null};return l}s(n,"buildGraph");function a(l){let u=n(),c=[l];for(u[l].distance=0;c.length;){let p=c.pop(),d=Object.keys(r[p]);for(let h=d.length,f=0;f<h;f++){let m=d[f],y=u[m];y.distance===-1&&(y.distance=u[p].distance+1,y.parent=p,c.unshift(m))}}return u}s(a,"deriveBFS");function o(l,u){return function(c){return u(l(c))}}s(o,"link");function i(l,u){let c=[u[l].parent,l],p=r[u[l].parent][l],d=u[l].parent;for(;u[d].parent;)c.unshift(u[d].parent),p=o(r[u[d].parent][d],p),d=u[d].parent;return p.conversion=c,p}s(i,"wrapConversion"),t.exports=function(l){let u=a(l),c={},p=Object.keys(u);for(let d=p.length,h=0;h<d;h++){let f=p[h];u[f].parent!==null&&(c[f]=i(f,u))}return c}}),Wj=O((e,t)=>{var r=JE(),n=Gj(),a={},o=Object.keys(r);function i(u){let c=s(function(...p){let d=p[0];return d==null?d:(d.length>1&&(p=d),u(p))},"wrappedFn");return"conversion"in u&&(c.conversion=u.conversion),c}s(i,"wrapRaw");function l(u){let c=s(function(...p){let d=p[0];if(d==null)return d;d.length>1&&(p=d);let h=u(p);if(typeof h=="object")for(let f=h.length,m=0;m<f;m++)h[m]=Math.round(h[m]);return h},"wrappedFn");return"conversion"in u&&(c.conversion=u.conversion),c}s(l,"wrapRounded"),o.forEach(u=>{a[u]={},Object.defineProperty(a[u],"channels",{value:r[u].channels}),Object.defineProperty(a[u],"labels",{value:r[u].labels});let c=n(u);Object.keys(c).forEach(p=>{let d=c[p];a[u][p]=l(d),a[u][p].raw=i(d)})}),t.exports=a}),Yj=O((e,t)=>{var r=s((d,h)=>(...f)=>`\x1B[${d(...f)+h}m`,"wrapAnsi16"),n=s((d,h)=>(...f)=>{let m=d(...f);return`\x1B[${38+h};5;${m}m`},"wrapAnsi256"),a=s((d,h)=>(...f)=>{let m=d(...f);return`\x1B[${38+h};2;${m[0]};${m[1]};${m[2]}m`},"wrapAnsi16m"),o=s(d=>d,"ansi2ansi"),i=s((d,h,f)=>[d,h,f],"rgb2rgb"),l=s((d,h,f)=>{Object.defineProperty(d,h,{get:s(()=>{let m=f();return Object.defineProperty(d,h,{value:m,enumerable:!0,configurable:!0}),m},"get"),enumerable:!0,configurable:!0})},"setLazyProperty"),u,c=s((d,h,f,m)=>{u===void 0&&(u=Wj());let y=m?10:0,b={};for(let[g,v]of Object.entries(u)){let D=g==="ansi16"?"ansi":g;g===h?b[D]=d(f,y):typeof v=="object"&&(b[D]=d(v[h],y))}return b},"makeDynamicStyles");function p(){let d=new Map,h={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]}};h.color.gray=h.color.blackBright,h.bgColor.bgGray=h.bgColor.bgBlackBright,h.color.grey=h.color.blackBright,h.bgColor.bgGrey=h.bgColor.bgBlackBright;for(let[f,m]of Object.entries(h)){for(let[y,b]of Object.entries(m))h[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},m[y]=h[y],d.set(b[0],b[1]);Object.defineProperty(h,f,{value:m,enumerable:!1})}return Object.defineProperty(h,"codes",{value:d,enumerable:!1}),h.color.close="\x1B[39m",h.bgColor.close="\x1B[49m",l(h.color,"ansi",()=>c(r,"ansi16",o,!1)),l(h.color,"ansi256",()=>c(n,"ansi256",o,!1)),l(h.color,"ansi16m",()=>c(a,"rgb",i,!1)),l(h.bgColor,"ansi",()=>c(r,"ansi16",o,!0)),l(h.bgColor,"ansi256",()=>c(n,"ansi256",o,!0)),l(h.bgColor,"ansi16m",()=>c(a,"rgb",i,!0)),h}s(p,"assembleStyles"),Object.defineProperty(t,"exports",{enumerable:!0,get:p})}),Kj=O((e,t)=>{t.exports={stdout:!1,stderr:!1}}),Xj=O((e,t)=>{var r=s((a,o,i)=>{let l=a.indexOf(o);if(l===-1)return a;let u=o.length,c=0,p="";do p+=a.substr(c,l-c)+o+i,c=l+u,l=a.indexOf(o,c);while(l!==-1);return p+=a.substr(c),p},"stringReplaceAll"),n=s((a,o,i,l)=>{let u=0,c="";do{let p=a[l-1]==="\r";c+=a.substr(u,(p?l-1:l)-u)+o+(p?`\r
|
|
9
|
+
`:`
|
|
10
|
+
`)+i,u=l+1,l=a.indexOf(`
|
|
11
|
+
`,u)}while(l!==-1);return c+=a.substr(u),c},"stringEncaseCRLFWithFirstIndex");t.exports={stringReplaceAll:r,stringEncaseCRLFWithFirstIndex:n}}),Qj=O((e,t)=>{var r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,a=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,o=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,i=new Map([["n",`
|
|
12
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function l(d){let h=d[0]==="u",f=d[1]==="{";return h&&!f&&d.length===5||d[0]==="x"&&d.length===3?String.fromCharCode(parseInt(d.slice(1),16)):h&&f?String.fromCodePoint(parseInt(d.slice(2,-1),16)):i.get(d)||d}s(l,"unescape");function u(d,h){let f=[],m=h.trim().split(/\s*,\s*/g),y;for(let b of m){let g=Number(b);if(!Number.isNaN(g))f.push(g);else if(y=b.match(a))f.push(y[2].replace(o,(v,D,S)=>D?l(D):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${d}')`)}return f}s(u,"parseArguments");function c(d){n.lastIndex=0;let h=[],f;for(;(f=n.exec(d))!==null;){let m=f[1];if(f[2]){let y=u(m,f[2]);h.push([m].concat(y))}else h.push([m])}return h}s(c,"parseStyle");function p(d,h){let f={};for(let y of h)for(let b of y.styles)f[b[0]]=y.inverse?null:b.slice(1);let m=d;for(let[y,b]of Object.entries(f))if(Array.isArray(b)){if(!(y in m))throw new Error(`Unknown Chalk style: ${y}`);m=b.length>0?m[y](...b):m[y]}return m}s(p,"buildStyle"),t.exports=(d,h)=>{let f=[],m=[],y=[];if(h.replace(r,(b,g,v,D,S,P)=>{if(g)y.push(l(g));else if(D){let w=y.join("");y=[],m.push(f.length===0?w:p(d,f)(w)),f.push({inverse:v,styles:c(D)})}else if(S){if(f.length===0)throw new Error("Found extraneous } in Chalk template literal");m.push(p(d,f)(y.join(""))),y=[],f.pop()}else y.push(P)}),m.push(y.join("")),f.length>0){let b=`Chalk template literal is missing ${f.length} closing bracket${f.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return m.join("")}}),zE=O((e,t)=>{var r=Yj(),{stdout:n,stderr:a}=Kj(),{stringReplaceAll:o,stringEncaseCRLFWithFirstIndex:i}=Xj(),l=["ansi","ansi","ansi256","ansi16m"],u=Object.create(null),c=s((w,E={})=>{if(E.level>3||E.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let C=n?n.level:0;w.level=E.level===void 0?C:E.level},"applyOptions"),p=class{constructor(E){return h(E)}};s(p,"ChalkClass");var d=p,h=s(w=>{let E={};return c(E,w),E.template=(...C)=>S(E.template,...C),Object.setPrototypeOf(E,f.prototype),Object.setPrototypeOf(E.template,E),E.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},E.template.Instance=d,E.template},"chalkFactory");function f(w){return h(w)}s(f,"Chalk");for(let[w,E]of Object.entries(r))u[w]={get(){let C=g(this,b(E.open,E.close,this._styler),this._isEmpty);return Object.defineProperty(this,w,{value:C}),C}};u.visible={get(){let w=g(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:w}),w}};var m=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let w of m)u[w]={get(){let{level:E}=this;return function(...C){let _=b(r.color[l[E]][w](...C),r.color.close,this._styler);return g(this,_,this._isEmpty)}}};for(let w of m){let E="bg"+w[0].toUpperCase()+w.slice(1);u[E]={get(){let{level:C}=this;return function(..._){let k=b(r.bgColor[l[C]][w](..._),r.bgColor.close,this._styler);return g(this,k,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...u,level:{enumerable:!0,get(){return this._generator.level},set(w){this._generator.level=w}}}),b=s((w,E,C)=>{let _,k;return C===void 0?(_=w,k=E):(_=C.openAll+w,k=E+C.closeAll),{open:w,close:E,openAll:_,closeAll:k,parent:C}},"createStyler"),g=s((w,E,C)=>{let _=s((...k)=>v(_,k.length===1?""+k[0]:k.join(" ")),"builder");return _.__proto__=y,_._generator=w,_._styler=E,_._isEmpty=C,_},"createBuilder"),v=s((w,E)=>{if(w.level<=0||!E)return w._isEmpty?"":E;let C=w._styler;if(C===void 0)return E;let{openAll:_,closeAll:k}=C;if(E.indexOf("\x1B")!==-1)for(;C!==void 0;)E=o(E,C.close,C.open),C=C.parent;let B=E.indexOf(`
|
|
13
|
+
`);return B!==-1&&(E=i(E,k,_,B)),_+E+k},"applyStyle"),D,S=s((w,...E)=>{let[C]=E;if(!Array.isArray(C))return E.join(" ");let _=E.slice(1),k=[C.raw[0]];for(let B=1;B<C.length;B++)k.push(String(_[B-1]).replace(/[{}\\]/g,"\\$&"),String(C.raw[B]));return D===void 0&&(D=Qj()),D(w,k.join(""))},"chalkTag");Object.defineProperties(f.prototype,u);var P=f();P.supportsColor=n,P.stderr=f({level:a?a.level:0}),P.stderr.supportsColor=a,P.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},t.exports=P}),Zj=O((e,t)=>{function r(){this.__data__=[],this.size=0}s(r,"listCacheClear"),t.exports=r}),GE=O((e,t)=>{function r(n,a){return n===a||n!==n&&a!==a}s(r,"eq"),t.exports=r}),uu=O((e,t)=>{var r=GE();function n(a,o){for(var i=a.length;i--;)if(r(a[i][0],o))return i;return-1}s(n,"assocIndexOf"),t.exports=n}),eq=O((e,t)=>{var r=uu(),n=Array.prototype,a=n.splice;function o(i){var l=this.__data__,u=r(l,i);if(u<0)return!1;var c=l.length-1;return u==c?l.pop():a.call(l,u,1),--this.size,!0}s(o,"listCacheDelete"),t.exports=o}),tq=O((e,t)=>{var r=uu();function n(a){var o=this.__data__,i=r(o,a);return i<0?void 0:o[i][1]}s(n,"listCacheGet"),t.exports=n}),rq=O((e,t)=>{var r=uu();function n(a){return r(this.__data__,a)>-1}s(n,"listCacheHas"),t.exports=n}),nq=O((e,t)=>{var r=uu();function n(a,o){var i=this.__data__,l=r(i,a);return l<0?(++this.size,i.push([a,o])):i[l][1]=o,this}s(n,"listCacheSet"),t.exports=n}),cu=O((e,t)=>{var r=Zj(),n=eq(),a=tq(),o=rq(),i=nq();function l(u){var c=-1,p=u==null?0:u.length;for(this.clear();++c<p;){var d=u[c];this.set(d[0],d[1])}}s(l,"ListCache"),l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=a,l.prototype.has=o,l.prototype.set=i,t.exports=l}),aq=O((e,t)=>{var r=cu();function n(){this.__data__=new r,this.size=0}s(n,"stackClear"),t.exports=n}),oq=O((e,t)=>{function r(n){var a=this.__data__,o=a.delete(n);return this.size=a.size,o}s(r,"stackDelete"),t.exports=r}),iq=O((e,t)=>{function r(n){return this.__data__.get(n)}s(r,"stackGet"),t.exports=r}),sq=O((e,t)=>{function r(n){return this.__data__.has(n)}s(r,"stackHas"),t.exports=r}),WE=O((e,t)=>{var r=typeof global=="object"&&global&&global.Object===Object&&global;t.exports=r}),En=O((e,t)=>{var r=WE(),n=typeof self=="object"&&self&&self.Object===Object&&self,a=r||n||Function("return this")();t.exports=a}),bh=O((e,t)=>{var r=En(),n=r.Symbol;t.exports=n}),lq=O((e,t)=>{var r=bh(),n=Object.prototype,a=n.hasOwnProperty,o=n.toString,i=r?r.toStringTag:void 0;function l(u){var c=a.call(u,i),p=u[i];try{u[i]=void 0;var d=!0}catch{}var h=o.call(u);return d&&(c?u[i]=p:delete u[i]),h}s(l,"getRawTag"),t.exports=l}),uq=O((e,t)=>{var r=Object.prototype,n=r.toString;function a(o){return n.call(o)}s(a,"objectToString"),t.exports=a}),pu=O((e,t)=>{var r=bh(),n=lq(),a=uq(),o="[object Null]",i="[object Undefined]",l=r?r.toStringTag:void 0;function u(c){return c==null?c===void 0?i:o:l&&l in Object(c)?n(c):a(c)}s(u,"baseGetTag"),t.exports=u}),YE=O((e,t)=>{function r(n){var a=typeof n;return n!=null&&(a=="object"||a=="function")}s(r,"isObject"),t.exports=r}),KE=O((e,t)=>{var r=pu(),n=YE(),a="[object AsyncFunction]",o="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function u(c){if(!n(c))return!1;var p=r(c);return p==o||p==i||p==a||p==l}s(u,"isFunction"),t.exports=u}),cq=O((e,t)=>{var r=En(),n=r["__core-js_shared__"];t.exports=n}),pq=O((e,t)=>{var r=cq(),n=(function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})();function a(o){return!!n&&n in o}s(a,"isMasked"),t.exports=a}),XE=O((e,t)=>{var r=Function.prototype,n=r.toString;function a(o){if(o!=null){try{return n.call(o)}catch{}try{return o+""}catch{}}return""}s(a,"toSource"),t.exports=a}),dq=O((e,t)=>{var r=KE(),n=pq(),a=YE(),o=XE(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,p=u.toString,d=c.hasOwnProperty,h=RegExp("^"+p.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(m){if(!a(m)||n(m))return!1;var y=r(m)?h:l;return y.test(o(m))}s(f,"baseIsNative"),t.exports=f}),fq=O((e,t)=>{function r(n,a){return n?.[a]}s(r,"getValue"),t.exports=r}),Fo=O((e,t)=>{var r=dq(),n=fq();function a(o,i){var l=n(o,i);return r(l)?l:void 0}s(a,"getNative"),t.exports=a}),vh=O((e,t)=>{var r=Fo(),n=En(),a=r(n,"Map");t.exports=a}),du=O((e,t)=>{var r=Fo(),n=r(Object,"create");t.exports=n}),hq=O((e,t)=>{var r=du();function n(){this.__data__=r?r(null):{},this.size=0}s(n,"hashClear"),t.exports=n}),mq=O((e,t)=>{function r(n){var a=this.has(n)&&delete this.__data__[n];return this.size-=a?1:0,a}s(r,"hashDelete"),t.exports=r}),yq=O((e,t)=>{var r=du(),n="__lodash_hash_undefined__",a=Object.prototype,o=a.hasOwnProperty;function i(l){var u=this.__data__;if(r){var c=u[l];return c===n?void 0:c}return o.call(u,l)?u[l]:void 0}s(i,"hashGet"),t.exports=i}),gq=O((e,t)=>{var r=du(),n=Object.prototype,a=n.hasOwnProperty;function o(i){var l=this.__data__;return r?l[i]!==void 0:a.call(l,i)}s(o,"hashHas"),t.exports=o}),bq=O((e,t)=>{var r=du(),n="__lodash_hash_undefined__";function a(o,i){var l=this.__data__;return this.size+=this.has(o)?0:1,l[o]=r&&i===void 0?n:i,this}s(a,"hashSet"),t.exports=a}),vq=O((e,t)=>{var r=hq(),n=mq(),a=yq(),o=gq(),i=bq();function l(u){var c=-1,p=u==null?0:u.length;for(this.clear();++c<p;){var d=u[c];this.set(d[0],d[1])}}s(l,"Hash"),l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=a,l.prototype.has=o,l.prototype.set=i,t.exports=l}),Eq=O((e,t)=>{var r=vq(),n=cu(),a=vh();function o(){this.size=0,this.__data__={hash:new r,map:new(a||n),string:new r}}s(o,"mapCacheClear"),t.exports=o}),Cq=O((e,t)=>{function r(n){var a=typeof n;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?n!=="__proto__":n===null}s(r,"isKeyable"),t.exports=r}),fu=O((e,t)=>{var r=Cq();function n(a,o){var i=a.__data__;return r(o)?i[typeof o=="string"?"string":"hash"]:i.map}s(n,"getMapData"),t.exports=n}),wq=O((e,t)=>{var r=fu();function n(a){var o=r(this,a).delete(a);return this.size-=o?1:0,o}s(n,"mapCacheDelete"),t.exports=n}),xq=O((e,t)=>{var r=fu();function n(a){return r(this,a).get(a)}s(n,"mapCacheGet"),t.exports=n}),Aq=O((e,t)=>{var r=fu();function n(a){return r(this,a).has(a)}s(n,"mapCacheHas"),t.exports=n}),Sq=O((e,t)=>{var r=fu();function n(a,o){var i=r(this,a),l=i.size;return i.set(a,o),this.size+=i.size==l?0:1,this}s(n,"mapCacheSet"),t.exports=n}),QE=O((e,t)=>{var r=Eq(),n=wq(),a=xq(),o=Aq(),i=Sq();function l(u){var c=-1,p=u==null?0:u.length;for(this.clear();++c<p;){var d=u[c];this.set(d[0],d[1])}}s(l,"MapCache"),l.prototype.clear=r,l.prototype.delete=n,l.prototype.get=a,l.prototype.has=o,l.prototype.set=i,t.exports=l}),_q=O((e,t)=>{var r=cu(),n=vh(),a=QE(),o=200;function i(l,u){var c=this.__data__;if(c instanceof r){var p=c.__data__;if(!n||p.length<o-1)return p.push([l,u]),this.size=++c.size,this;c=this.__data__=new a(p)}return c.set(l,u),this.size=c.size,this}s(i,"stackSet"),t.exports=i}),Tq=O((e,t)=>{var r=cu(),n=aq(),a=oq(),o=iq(),i=sq(),l=_q();function u(c){var p=this.__data__=new r(c);this.size=p.size}s(u,"Stack"),u.prototype.clear=n,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=i,u.prototype.set=l,t.exports=u}),Pq=O((e,t)=>{var r="__lodash_hash_undefined__";function n(a){return this.__data__.set(a,r),this}s(n,"setCacheAdd"),t.exports=n}),Dq=O((e,t)=>{function r(n){return this.__data__.has(n)}s(r,"setCacheHas"),t.exports=r}),Oq=O((e,t)=>{var r=QE(),n=Pq(),a=Dq();function o(i){var l=-1,u=i==null?0:i.length;for(this.__data__=new r;++l<u;)this.add(i[l])}s(o,"SetCache"),o.prototype.add=o.prototype.push=n,o.prototype.has=a,t.exports=o}),Rq=O((e,t)=>{function r(n,a){for(var o=-1,i=n==null?0:n.length;++o<i;)if(a(n[o],o,n))return!0;return!1}s(r,"arraySome"),t.exports=r}),Fq=O((e,t)=>{function r(n,a){return n.has(a)}s(r,"cacheHas"),t.exports=r}),ZE=O((e,t)=>{var r=Oq(),n=Rq(),a=Fq(),o=1,i=2;function l(u,c,p,d,h,f){var m=p&o,y=u.length,b=c.length;if(y!=b&&!(m&&b>y))return!1;var g=f.get(u),v=f.get(c);if(g&&v)return g==c&&v==u;var D=-1,S=!0,P=p&i?new r:void 0;for(f.set(u,c),f.set(c,u);++D<y;){var w=u[D],E=c[D];if(d)var C=m?d(E,w,D,c,u,f):d(w,E,D,u,c,f);if(C!==void 0){if(C)continue;S=!1;break}if(P){if(!n(c,function(_,k){if(!a(P,k)&&(w===_||h(w,_,p,d,f)))return P.push(k)})){S=!1;break}}else if(!(w===E||h(w,E,p,d,f))){S=!1;break}}return f.delete(u),f.delete(c),S}s(l,"equalArrays"),t.exports=l}),Iq=O((e,t)=>{var r=En(),n=r.Uint8Array;t.exports=n}),Nq=O((e,t)=>{function r(n){var a=-1,o=Array(n.size);return n.forEach(function(i,l){o[++a]=[l,i]}),o}s(r,"mapToArray"),t.exports=r}),kq=O((e,t)=>{function r(n){var a=-1,o=Array(n.size);return n.forEach(function(i){o[++a]=i}),o}s(r,"setToArray"),t.exports=r}),Bq=O((e,t)=>{var r=bh(),n=Iq(),a=GE(),o=ZE(),i=Nq(),l=kq(),u=1,c=2,p="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Map]",m="[object Number]",y="[object RegExp]",b="[object Set]",g="[object String]",v="[object Symbol]",D="[object ArrayBuffer]",S="[object DataView]",P=r?r.prototype:void 0,w=P?P.valueOf:void 0;function E(C,_,k,B,W,z,R){switch(k){case S:if(C.byteLength!=_.byteLength||C.byteOffset!=_.byteOffset)return!1;C=C.buffer,_=_.buffer;case D:return!(C.byteLength!=_.byteLength||!z(new n(C),new n(_)));case p:case d:case m:return a(+C,+_);case h:return C.name==_.name&&C.message==_.message;case y:case g:return C==_+"";case f:var U=i;case b:var j=B&u;if(U||(U=l),C.size!=_.size&&!j)return!1;var Y=R.get(C);if(Y)return Y==_;B|=c,R.set(C,_);var Q=o(U(C),U(_),B,W,z,R);return R.delete(C),Q;case v:if(w)return w.call(C)==w.call(_)}return!1}s(E,"equalByTag"),t.exports=E}),jq=O((e,t)=>{function r(n,a){for(var o=-1,i=a.length,l=n.length;++o<i;)n[l+o]=a[o];return n}s(r,"arrayPush"),t.exports=r}),Eh=O((e,t)=>{var r=Array.isArray;t.exports=r}),qq=O((e,t)=>{var r=jq(),n=Eh();function a(o,i,l){var u=i(o);return n(o)?u:r(u,l(o))}s(a,"baseGetAllKeys"),t.exports=a}),Mq=O((e,t)=>{function r(n,a){for(var o=-1,i=n==null?0:n.length,l=0,u=[];++o<i;){var c=n[o];a(c,o,n)&&(u[l++]=c)}return u}s(r,"arrayFilter"),t.exports=r}),Lq=O((e,t)=>{function r(){return[]}s(r,"stubArray"),t.exports=r}),$q=O((e,t)=>{var r=Mq(),n=Lq(),a=Object.prototype,o=a.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(u){return u==null?[]:(u=Object(u),r(i(u),function(c){return o.call(u,c)}))}:n;t.exports=l}),Uq=O((e,t)=>{function r(n,a){for(var o=-1,i=Array(n);++o<n;)i[o]=a(o);return i}s(r,"baseTimes"),t.exports=r}),hu=O((e,t)=>{function r(n){return n!=null&&typeof n=="object"}s(r,"isObjectLike"),t.exports=r}),Vq=O((e,t)=>{var r=pu(),n=hu(),a="[object Arguments]";function o(i){return n(i)&&r(i)==a}s(o,"baseIsArguments"),t.exports=o}),Hq=O((e,t)=>{var r=Vq(),n=hu(),a=Object.prototype,o=a.hasOwnProperty,i=a.propertyIsEnumerable,l=r((function(){return arguments})())?r:function(u){return n(u)&&o.call(u,"callee")&&!i.call(u,"callee")};t.exports=l}),Jq=O((e,t)=>{function r(){return!1}s(r,"stubFalse"),t.exports=r}),eC=O((e,t)=>{var r=En(),n=Jq(),a=typeof e=="object"&&e&&!e.nodeType&&e,o=a&&typeof t=="object"&&t&&!t.nodeType&&t,i=o&&o.exports===a,l=i?r.Buffer:void 0,u=l?l.isBuffer:void 0,c=u||n;t.exports=c}),zq=O((e,t)=>{var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;function a(o,i){var l=typeof o;return i=i??r,!!i&&(l=="number"||l!="symbol"&&n.test(o))&&o>-1&&o%1==0&&o<i}s(a,"isIndex"),t.exports=a}),tC=O((e,t)=>{var r=9007199254740991;function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=r}s(n,"isLength"),t.exports=n}),Gq=O((e,t)=>{var r=pu(),n=tC(),a=hu(),o="[object Arguments]",i="[object Array]",l="[object Boolean]",u="[object Date]",c="[object Error]",p="[object Function]",d="[object Map]",h="[object Number]",f="[object Object]",m="[object RegExp]",y="[object Set]",b="[object String]",g="[object WeakMap]",v="[object ArrayBuffer]",D="[object DataView]",S="[object Float32Array]",P="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",_="[object Uint8Array]",k="[object Uint8ClampedArray]",B="[object Uint16Array]",W="[object Uint32Array]",z={};z[S]=z[P]=z[w]=z[E]=z[C]=z[_]=z[k]=z[B]=z[W]=!0,z[o]=z[i]=z[v]=z[l]=z[D]=z[u]=z[c]=z[p]=z[d]=z[h]=z[f]=z[m]=z[y]=z[b]=z[g]=!1;function R(U){return a(U)&&n(U.length)&&!!z[r(U)]}s(R,"baseIsTypedArray"),t.exports=R}),Wq=O((e,t)=>{function r(n){return function(a){return n(a)}}s(r,"baseUnary"),t.exports=r}),Yq=O((e,t)=>{var r=WE(),n=typeof e=="object"&&e&&!e.nodeType&&e,a=n&&typeof t=="object"&&t&&!t.nodeType&&t,o=a&&a.exports===n,i=o&&r.process,l=(function(){try{var u=a&&a.require&&a.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}})();t.exports=l}),rC=O((e,t)=>{var r=Gq(),n=Wq(),a=Yq(),o=a&&a.isTypedArray,i=o?n(o):r;t.exports=i}),Kq=O((e,t)=>{var r=Uq(),n=Hq(),a=Eh(),o=eC(),i=zq(),l=rC(),u=Object.prototype,c=u.hasOwnProperty;function p(d,h){var f=a(d),m=!f&&n(d),y=!f&&!m&&o(d),b=!f&&!m&&!y&&l(d),g=f||m||y||b,v=g?r(d.length,String):[],D=v.length;for(var S in d)(h||c.call(d,S))&&!(g&&(S=="length"||y&&(S=="offset"||S=="parent")||b&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||i(S,D)))&&v.push(S);return v}s(p,"arrayLikeKeys"),t.exports=p}),Xq=O((e,t)=>{var r=Object.prototype;function n(a){var o=a&&a.constructor,i=typeof o=="function"&&o.prototype||r;return a===i}s(n,"isPrototype"),t.exports=n}),Qq=O((e,t)=>{function r(n,a){return function(o){return n(a(o))}}s(r,"overArg"),t.exports=r}),Zq=O((e,t)=>{var r=Qq(),n=r(Object.keys,Object);t.exports=n}),eM=O((e,t)=>{var r=Xq(),n=Zq(),a=Object.prototype,o=a.hasOwnProperty;function i(l){if(!r(l))return n(l);var u=[];for(var c in Object(l))o.call(l,c)&&c!="constructor"&&u.push(c);return u}s(i,"baseKeys"),t.exports=i}),tM=O((e,t)=>{var r=KE(),n=tC();function a(o){return o!=null&&n(o.length)&&!r(o)}s(a,"isArrayLike"),t.exports=a}),rM=O((e,t)=>{var r=Kq(),n=eM(),a=tM();function o(i){return a(i)?r(i):n(i)}s(o,"keys"),t.exports=o}),nM=O((e,t)=>{var r=qq(),n=$q(),a=rM();function o(i){return r(i,a,n)}s(o,"getAllKeys"),t.exports=o}),aM=O((e,t)=>{var r=nM(),n=1,a=Object.prototype,o=a.hasOwnProperty;function i(l,u,c,p,d,h){var f=c&n,m=r(l),y=m.length,b=r(u),g=b.length;if(y!=g&&!f)return!1;for(var v=y;v--;){var D=m[v];if(!(f?D in u:o.call(u,D)))return!1}var S=h.get(l),P=h.get(u);if(S&&P)return S==u&&P==l;var w=!0;h.set(l,u),h.set(u,l);for(var E=f;++v<y;){D=m[v];var C=l[D],_=u[D];if(p)var k=f?p(_,C,D,u,l,h):p(C,_,D,l,u,h);if(!(k===void 0?C===_||d(C,_,c,p,h):k)){w=!1;break}E||(E=D=="constructor")}if(w&&!E){var B=l.constructor,W=u.constructor;B!=W&&"constructor"in l&&"constructor"in u&&!(typeof B=="function"&&B instanceof B&&typeof W=="function"&&W instanceof W)&&(w=!1)}return h.delete(l),h.delete(u),w}s(i,"equalObjects"),t.exports=i}),oM=O((e,t)=>{var r=Fo(),n=En(),a=r(n,"DataView");t.exports=a}),iM=O((e,t)=>{var r=Fo(),n=En(),a=r(n,"Promise");t.exports=a}),sM=O((e,t)=>{var r=Fo(),n=En(),a=r(n,"Set");t.exports=a}),lM=O((e,t)=>{var r=Fo(),n=En(),a=r(n,"WeakMap");t.exports=a}),uM=O((e,t)=>{var r=oM(),n=vh(),a=iM(),o=sM(),i=lM(),l=pu(),u=XE(),c="[object Map]",p="[object Object]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",y=u(r),b=u(n),g=u(a),v=u(o),D=u(i),S=l;(r&&S(new r(new ArrayBuffer(1)))!=m||n&&S(new n)!=c||a&&S(a.resolve())!=d||o&&S(new o)!=h||i&&S(new i)!=f)&&(S=s(function(P){var w=l(P),E=w==p?P.constructor:void 0,C=E?u(E):"";if(C)switch(C){case y:return m;case b:return c;case g:return d;case v:return h;case D:return f}return w},"getTag")),t.exports=S}),cM=O((e,t)=>{var r=Tq(),n=ZE(),a=Bq(),o=aM(),i=uM(),l=Eh(),u=eC(),c=rC(),p=1,d="[object Arguments]",h="[object Array]",f="[object Object]",m=Object.prototype,y=m.hasOwnProperty;function b(g,v,D,S,P,w){var E=l(g),C=l(v),_=E?h:i(g),k=C?h:i(v);_=_==d?f:_,k=k==d?f:k;var B=_==f,W=k==f,z=_==k;if(z&&u(g)){if(!u(v))return!1;E=!0,B=!1}if(z&&!B)return w||(w=new r),E||c(g)?n(g,v,D,S,P,w):a(g,v,_,D,S,P,w);if(!(D&p)){var R=B&&y.call(g,"__wrapped__"),U=W&&y.call(v,"__wrapped__");if(R||U){var j=R?g.value():g,Y=U?v.value():v;return w||(w=new r),P(j,Y,D,S,w)}}return z?(w||(w=new r),o(g,v,D,S,P,w)):!1}s(b,"baseIsEqualDeep"),t.exports=b}),pM=O((e,t)=>{var r=cM(),n=hu();function a(o,i,l,u,c){return o===i?!0:o==null||i==null||!n(o)&&!n(i)?o!==o&&i!==i:r(o,i,l,u,a,c)}s(a,"baseIsEqual"),t.exports=a}),nC=O((e,t)=>{var r=pM();function n(a,o,i){i=typeof i=="function"?i:void 0;var l=i?i(a,o):void 0;return l===void 0?r(a,o,void 0,i):!!l}s(n,"isEqualWith"),t.exports=n}),aC=O((e,t)=>{(function(r,n){typeof e=="object"?t.exports=n(r):typeof define=="function"&&define.amd?define([],n.bind(r,r)):n(r)})(typeof global<"u"?global:e,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=s(function(a){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var o=String(a),i=o.length,l=-1,u,c="",p=o.charCodeAt(0);++l<i;){if(u=o.charCodeAt(l),u==0){c+="�";continue}if(u>=1&&u<=31||u==127||l==0&&u>=48&&u<=57||l==1&&u>=48&&u<=57&&p==45){c+="\\"+u.toString(16)+" ";continue}if(l==0&&i==1&&u==45){c+="\\"+o.charAt(l);continue}if(u>=128||u==45||u==95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122){c+=o.charAt(l);continue}c+="\\"+o.charAt(l)}return c},"cssEscape");return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}),oC=O((e,t)=>{var r=s((o=0)=>i=>`\x1B[${38+o};5;${i}m`,"wrapAnsi256"),n=s((o=0)=>(i,l,u)=>`\x1B[${38+o};2;${i};${l};${u}m`,"wrapAnsi16m");function a(){let o=new Map,i={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]}};i.color.gray=i.color.blackBright,i.bgColor.bgGray=i.bgColor.bgBlackBright,i.color.grey=i.color.blackBright,i.bgColor.bgGrey=i.bgColor.bgBlackBright;for(let[l,u]of Object.entries(i)){for(let[c,p]of Object.entries(u))i[c]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[c]=i[c],o.set(p[0],p[1]);Object.defineProperty(i,l,{value:u,enumerable:!1})}return Object.defineProperty(i,"codes",{value:o,enumerable:!1}),i.color.close="\x1B[39m",i.bgColor.close="\x1B[49m",i.color.ansi256=r(),i.color.ansi16m=n(),i.bgColor.ansi256=r(10),i.bgColor.ansi16m=n(10),Object.defineProperties(i,{rgbToAnsi256:{value:s((l,u,c)=>l===u&&u===c?l<8?16:l>248?231:Math.round((l-8)/247*24)+232:16+36*Math.round(l/255*5)+6*Math.round(u/255*5)+Math.round(c/255*5),"value"),enumerable:!1},hexToRgb:{value:s(l=>{let u=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(l.toString(16));if(!u)return[0,0,0];let{colorString:c}=u.groups;c.length===3&&(c=c.split("").map(d=>d+d).join(""));let p=Number.parseInt(c,16);return[p>>16&255,p>>8&255,p&255]},"value"),enumerable:!1},hexToAnsi256:{value:s(l=>i.rgbToAnsi256(...i.hexToRgb(l)),"value"),enumerable:!1}}),i}s(a,"assembleStyles"),Object.defineProperty(t,"exports",{enumerable:!0,get:a})}),mu=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.printIteratorEntries=r,e.printIteratorValues=n,e.printListItems=a,e.printObjectProperties=o;var t=s((i,l)=>{let u=Object.keys(i).sort(l);return Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(i).forEach(c=>{Object.getOwnPropertyDescriptor(i,c).enumerable&&u.push(c)}),u},"getKeysOfEnumerableProperties");function r(i,l,u,c,p,d,h=": "){let f="",m=i.next();if(!m.done){f+=l.spacingOuter;let y=u+l.indent;for(;!m.done;){let b=d(m.value[0],l,y,c,p),g=d(m.value[1],l,y,c,p);f+=y+b+h+g,m=i.next(),m.done?l.min||(f+=","):f+=","+l.spacingInner}f+=l.spacingOuter+u}return f}s(r,"printIteratorEntries");function n(i,l,u,c,p,d){let h="",f=i.next();if(!f.done){h+=l.spacingOuter;let m=u+l.indent;for(;!f.done;)h+=m+d(f.value,l,m,c,p),f=i.next(),f.done?l.min||(h+=","):h+=","+l.spacingInner;h+=l.spacingOuter+u}return h}s(n,"printIteratorValues");function a(i,l,u,c,p,d){let h="";if(i.length){h+=l.spacingOuter;let f=u+l.indent;for(let m=0;m<i.length;m++)h+=f,m in i&&(h+=d(i[m],l,f,c,p)),m<i.length-1?h+=","+l.spacingInner:l.min||(h+=",");h+=l.spacingOuter+u}return h}s(a,"printListItems");function o(i,l,u,c,p,d){let h="",f=t(i,l.compareKeys);if(f.length){h+=l.spacingOuter;let m=u+l.indent;for(let y=0;y<f.length;y++){let b=f[y],g=d(b,l,m,c,p),v=d(i[b],l,m,c,p);h+=m+g+": "+v,y<f.length-1?h+=","+l.spacingInner:l.min||(h+=",")}h+=l.spacingOuter+u}return h}s(o,"printObjectProperties")}),dM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=mu(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,a=typeof n=="function"&&n.for?n.for("jest.asymmetricMatcher"):1267621,o=" ",i=s((p,d,h,f,m,y)=>{let b=p.toString();return b==="ArrayContaining"||b==="ArrayNotContaining"?++f>d.maxDepth?"["+b+"]":b+o+"["+(0,t.printListItems)(p.sample,d,h,f,m,y)+"]":b==="ObjectContaining"||b==="ObjectNotContaining"?++f>d.maxDepth?"["+b+"]":b+o+"{"+(0,t.printObjectProperties)(p.sample,d,h,f,m,y)+"}":b==="StringMatching"||b==="StringNotMatching"||b==="StringContaining"||b==="StringNotContaining"?b+o+y(p.sample,d,h,f,m):p.toAsymmetricMatcher()},"serialize");e.serialize=i;var l=s(p=>p&&p.$$typeof===a,"test");e.test=l;var u={serialize:i,test:l},c=u;e.default=c}),fM=O((e,t)=>{t.exports=({onlyFirst:r=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,r?void 0:"g")}}),hM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=n(fM()),r=n(oC());function n(c){return c&&c.__esModule?c:{default:c}}s(n,"_interopRequireDefault");var a=s(c=>c.replace((0,t.default)(),p=>{switch(p){case r.default.red.close:case r.default.green.close:case r.default.cyan.close:case r.default.gray.close:case r.default.white.close:case r.default.yellow.close:case r.default.bgRed.close:case r.default.bgGreen.close:case r.default.bgYellow.close:case r.default.inverse.close:case r.default.dim.close:case r.default.bold.close:case r.default.reset.open:case r.default.reset.close:return"</>";case r.default.red.open:return"<red>";case r.default.green.open:return"<green>";case r.default.cyan.open:return"<cyan>";case r.default.gray.open:return"<gray>";case r.default.white.open:return"<white>";case r.default.yellow.open:return"<yellow>";case r.default.bgRed.open:return"<bgRed>";case r.default.bgGreen.open:return"<bgGreen>";case r.default.bgYellow.open:return"<bgYellow>";case r.default.inverse.open:return"<inverse>";case r.default.dim.open:return"<dim>";case r.default.bold.open:return"<bold>";default:return""}}),"toHumanReadableAnsi"),o=s(c=>typeof c=="string"&&!!c.match((0,t.default)()),"test");e.test=o;var i=s((c,p,d,h,f,m)=>m(a(c),p,d,h,f),"serialize");e.serialize=i;var l={serialize:i,test:o},u=l;e.default=u}),mM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=mu(),r=" ",n=["DOMStringMap","NamedNodeMap"],a=/^(HTML\w*Collection|NodeList)$/,o=s(d=>n.indexOf(d)!==-1||a.test(d),"testName"),i=s(d=>d&&d.constructor&&!!d.constructor.name&&o(d.constructor.name),"test");e.test=i;var l=s(d=>d.constructor.name==="NamedNodeMap","isNamedNodeMap"),u=s((d,h,f,m,y,b)=>{let g=d.constructor.name;return++m>h.maxDepth?"["+g+"]":(h.min?"":g+r)+(n.indexOf(g)!==-1?"{"+(0,t.printObjectProperties)(l(d)?Array.from(d).reduce((v,D)=>(v[D.name]=D.value,v),{}):{...d},h,f,m,y,b)+"}":"["+(0,t.printListItems)(Array.from(d),h,f,m,y,b)+"]")},"serialize");e.serialize=u;var c={serialize:u,test:i},p=c;e.default=p}),yM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r){return r.replace(/</g,"<").replace(/>/g,">")}s(t,"escapeHTML")}),Ch=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.printText=e.printProps=e.printElementAsLeaf=e.printElement=e.printComment=e.printChildren=void 0;var t=r(yM());function r(c){return c&&c.__esModule?c:{default:c}}s(r,"_interopRequireDefault");var n=s((c,p,d,h,f,m,y)=>{let b=h+d.indent,g=d.colors;return c.map(v=>{let D=p[v],S=y(D,d,b,f,m);return typeof D!="string"&&(S.indexOf(`
|
|
14
|
+
`)!==-1&&(S=d.spacingOuter+b+S+d.spacingOuter+h),S="{"+S+"}"),d.spacingInner+h+g.prop.open+v+g.prop.close+"="+g.value.open+S+g.value.close}).join("")},"printProps");e.printProps=n;var a=s((c,p,d,h,f,m)=>c.map(y=>p.spacingOuter+d+(typeof y=="string"?o(y,p):m(y,p,d,h,f))).join(""),"printChildren");e.printChildren=a;var o=s((c,p)=>{let d=p.colors.content;return d.open+(0,t.default)(c)+d.close},"printText");e.printText=o;var i=s((c,p)=>{let d=p.colors.comment;return d.open+"<!--"+(0,t.default)(c)+"-->"+d.close},"printComment");e.printComment=i;var l=s((c,p,d,h,f)=>{let m=h.colors.tag;return m.open+"<"+c+(p&&m.close+p+h.spacingOuter+f+m.open)+(d?">"+m.close+d+h.spacingOuter+f+m.open+"</"+c:(p&&!h.min?"":" ")+"/")+">"+m.close},"printElement");e.printElement=l;var u=s((c,p)=>{let d=p.colors.tag;return d.open+"<"+c+d.close+" …"+d.open+" />"+d.close},"printElementAsLeaf");e.printElementAsLeaf=u}),gM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Ch(),r=1,n=3,a=8,o=11,i=/^((HTML|SVG)\w*)?Element$/,l=s(b=>{try{return typeof b.hasAttribute=="function"&&b.hasAttribute("is")}catch{return!1}},"testHasAttribute"),u=s(b=>{let g=b.constructor.name,{nodeType:v,tagName:D}=b,S=typeof D=="string"&&D.includes("-")||l(b);return v===r&&(i.test(g)||S)||v===n&&g==="Text"||v===a&&g==="Comment"||v===o&&g==="DocumentFragment"},"testNode"),c=s(b=>{var g;return(b==null||(g=b.constructor)===null||g===void 0?void 0:g.name)&&u(b)},"test");e.test=c;function p(b){return b.nodeType===n}s(p,"nodeIsText");function d(b){return b.nodeType===a}s(d,"nodeIsComment");function h(b){return b.nodeType===o}s(h,"nodeIsFragment");var f=s((b,g,v,D,S,P)=>{if(p(b))return(0,t.printText)(b.data,g);if(d(b))return(0,t.printComment)(b.data,g);let w=h(b)?"DocumentFragment":b.tagName.toLowerCase();return++D>g.maxDepth?(0,t.printElementAsLeaf)(w,g):(0,t.printElement)(w,(0,t.printProps)(h(b)?[]:Array.from(b.attributes).map(E=>E.name).sort(),h(b)?{}:Array.from(b.attributes).reduce((E,C)=>(E[C.name]=C.value,E),{}),g,v+g.indent,D,S,P),(0,t.printChildren)(Array.prototype.slice.call(b.childNodes||b.children),g,v+g.indent,D,S,P),g,v)},"serialize");e.serialize=f;var m={serialize:f,test:c},y=m;e.default=y}),bM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=mu(),r="@@__IMMUTABLE_ITERABLE__@@",n="@@__IMMUTABLE_LIST__@@",a="@@__IMMUTABLE_KEYED__@@",o="@@__IMMUTABLE_MAP__@@",i="@@__IMMUTABLE_ORDERED__@@",l="@@__IMMUTABLE_RECORD__@@",u="@@__IMMUTABLE_SEQ__@@",c="@@__IMMUTABLE_SET__@@",p="@@__IMMUTABLE_STACK__@@",d=s(C=>"Immutable."+C,"getImmutableName"),h=s(C=>"["+C+"]","printAsLeaf"),f=" ",m="…",y=s((C,_,k,B,W,z,R)=>++B>_.maxDepth?h(d(R)):d(R)+f+"{"+(0,t.printIteratorEntries)(C.entries(),_,k,B,W,z)+"}","printImmutableEntries");function b(C){let _=0;return{next(){if(_<C._keys.length){let k=C._keys[_++];return{done:!1,value:[k,C.get(k)]}}return{done:!0,value:void 0}}}}s(b,"getRecordEntries");var g=s((C,_,k,B,W,z)=>{let R=d(C._name||"Record");return++B>_.maxDepth?h(R):R+f+"{"+(0,t.printIteratorEntries)(b(C),_,k,B,W,z)+"}"},"printImmutableRecord"),v=s((C,_,k,B,W,z)=>{let R=d("Seq");return++B>_.maxDepth?h(R):C[a]?R+f+"{"+(C._iter||C._object?(0,t.printIteratorEntries)(C.entries(),_,k,B,W,z):m)+"}":R+f+"["+(C._iter||C._array||C._collection||C._iterable?(0,t.printIteratorValues)(C.values(),_,k,B,W,z):m)+"]"},"printImmutableSeq"),D=s((C,_,k,B,W,z,R)=>++B>_.maxDepth?h(d(R)):d(R)+f+"["+(0,t.printIteratorValues)(C.values(),_,k,B,W,z)+"]","printImmutableValues"),S=s((C,_,k,B,W,z)=>C[o]?y(C,_,k,B,W,z,C[i]?"OrderedMap":"Map"):C[n]?D(C,_,k,B,W,z,"List"):C[c]?D(C,_,k,B,W,z,C[i]?"OrderedSet":"Set"):C[p]?D(C,_,k,B,W,z,"Stack"):C[u]?v(C,_,k,B,W,z):g(C,_,k,B,W,z),"serialize");e.serialize=S;var P=s(C=>C&&(C[r]===!0||C[l]===!0),"test");e.test=P;var w={serialize:S,test:P},E=w;e.default=E}),vM=O(e=>{var t=60103,r=60106,n=60107,a=60108,o=60114,i=60109,l=60110,u=60112,c=60113,p=60120,d=60115,h=60116,f=60121,m=60122,y=60117,b=60129,g=60131;typeof Symbol=="function"&&Symbol.for&&(v=Symbol.for,t=v("react.element"),r=v("react.portal"),n=v("react.fragment"),a=v("react.strict_mode"),o=v("react.profiler"),i=v("react.provider"),l=v("react.context"),u=v("react.forward_ref"),c=v("react.suspense"),p=v("react.suspense_list"),d=v("react.memo"),h=v("react.lazy"),f=v("react.block"),m=v("react.server.block"),y=v("react.fundamental"),b=v("react.debug_trace_mode"),g=v("react.legacy_hidden"));var v;function D(R){if(typeof R=="object"&&R!==null){var U=R.$$typeof;switch(U){case t:switch(R=R.type,R){case n:case o:case a:case c:case p:return R;default:switch(R=R&&R.$$typeof,R){case l:case u:case h:case d:case i:return R;default:return U}}case r:return U}}}s(D,"y");var S=i,P=t,w=u,E=n,C=h,_=d,k=r,B=o,W=a,z=c;e.ContextConsumer=l,e.ContextProvider=S,e.Element=P,e.ForwardRef=w,e.Fragment=E,e.Lazy=C,e.Memo=_,e.Portal=k,e.Profiler=B,e.StrictMode=W,e.Suspense=z,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(R){return D(R)===l},e.isContextProvider=function(R){return D(R)===i},e.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===t},e.isForwardRef=function(R){return D(R)===u},e.isFragment=function(R){return D(R)===n},e.isLazy=function(R){return D(R)===h},e.isMemo=function(R){return D(R)===d},e.isPortal=function(R){return D(R)===r},e.isProfiler=function(R){return D(R)===o},e.isStrictMode=function(R){return D(R)===a},e.isSuspense=function(R){return D(R)===c},e.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===n||R===o||R===b||R===a||R===c||R===p||R===g||typeof R=="object"&&R!==null&&(R.$$typeof===h||R.$$typeof===d||R.$$typeof===i||R.$$typeof===l||R.$$typeof===u||R.$$typeof===y||R.$$typeof===f||R[0]===m)},e.typeOf=D}),EM=O((e,t)=>{t.exports=vM()}),CM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=a(EM()),r=Ch();function n(h){if(typeof WeakMap!="function")return null;var f=new WeakMap,m=new WeakMap;return(n=s(function(y){return y?m:f},"_getRequireWildcardCache"))(h)}s(n,"_getRequireWildcardCache");function a(h,f){if(!f&&h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var m=n(f);if(m&&m.has(h))return m.get(h);var y={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in h)if(g!=="default"&&Object.prototype.hasOwnProperty.call(h,g)){var v=b?Object.getOwnPropertyDescriptor(h,g):null;v&&(v.get||v.set)?Object.defineProperty(y,g,v):y[g]=h[g]}return y.default=h,m&&m.set(h,y),y}s(a,"_interopRequireWildcard");var o=s((h,f=[])=>(Array.isArray(h)?h.forEach(m=>{o(m,f)}):h!=null&&h!==!1&&f.push(h),f),"getChildren"),i=s(h=>{let f=h.type;if(typeof f=="string")return f;if(typeof f=="function")return f.displayName||f.name||"Unknown";if(t.isFragment(h))return"React.Fragment";if(t.isSuspense(h))return"React.Suspense";if(typeof f=="object"&&f!==null){if(t.isContextProvider(h))return"Context.Provider";if(t.isContextConsumer(h))return"Context.Consumer";if(t.isForwardRef(h)){if(f.displayName)return f.displayName;let m=f.render.displayName||f.render.name||"";return m!==""?"ForwardRef("+m+")":"ForwardRef"}if(t.isMemo(h)){let m=f.displayName||f.type.displayName||f.type.name||"";return m!==""?"Memo("+m+")":"Memo"}}return"UNDEFINED"},"getType"),l=s(h=>{let{props:f}=h;return Object.keys(f).filter(m=>m!=="children"&&f[m]!==void 0).sort()},"getPropKeys"),u=s((h,f,m,y,b,g)=>++y>f.maxDepth?(0,r.printElementAsLeaf)(i(h),f):(0,r.printElement)(i(h),(0,r.printProps)(l(h),h.props,f,m+f.indent,y,b,g),(0,r.printChildren)(o(h.props.children),f,m+f.indent,y,b,g),f,m),"serialize");e.serialize=u;var c=s(h=>h!=null&&t.isElement(h),"test");e.test=c;var p={serialize:u,test:c},d=p;e.default=d}),wM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.test=e.serialize=e.default=void 0;var t=Ch(),r=(function(){return typeof globalThis<"u"?globalThis:typeof r<"u"?r:typeof self<"u"?self:typeof window<"u"?window:Function("return this")()})(),n=r["jest-symbol-do-not-touch"]||r.Symbol,a=typeof n=="function"&&n.for?n.for("react.test.json"):245830487,o=s(p=>{let{props:d}=p;return d?Object.keys(d).filter(h=>d[h]!==void 0).sort():[]},"getPropKeys"),i=s((p,d,h,f,m,y)=>++f>d.maxDepth?(0,t.printElementAsLeaf)(p.type,d):(0,t.printElement)(p.type,p.props?(0,t.printProps)(o(p),p.props,d,h+d.indent,f,m,y):"",p.children?(0,t.printChildren)(p.children,d,h+d.indent,f,m,y):"",d,h),"serialize");e.serialize=i;var l=s(p=>p&&p.$$typeof===a,"test");e.test=l;var u={serialize:i,test:l},c=u;e.default=c}),xM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DEFAULT_OPTIONS=void 0,e.format=ve,e.plugins=void 0;var t=p(oC()),r=mu(),n=p(dM()),a=p(hM()),o=p(mM()),i=p(gM()),l=p(bM()),u=p(CM()),c=p(wM());function p(Z){return Z&&Z.__esModule?Z:{default:Z}}s(p,"_interopRequireDefault");var d=Object.prototype.toString,h=Date.prototype.toISOString,f=Error.prototype.toString,m=RegExp.prototype.toString,y=s(Z=>typeof Z.constructor=="function"&&Z.constructor.name||"Object","getConstructorName"),b=s(Z=>typeof window<"u"&&Z===window,"isWindow"),g=/^Symbol\((.*)\)(.*)$/,v=/\n/gi,D=class extends Error{constructor(pe,ye){super(pe),this.stack=ye,this.name=this.constructor.name}};s(D,"PrettyFormatPluginError");var S=D;function P(Z){return Z==="[object Array]"||Z==="[object ArrayBuffer]"||Z==="[object DataView]"||Z==="[object Float32Array]"||Z==="[object Float64Array]"||Z==="[object Int8Array]"||Z==="[object Int16Array]"||Z==="[object Int32Array]"||Z==="[object Uint8Array]"||Z==="[object Uint8ClampedArray]"||Z==="[object Uint16Array]"||Z==="[object Uint32Array]"}s(P,"isToStringedArrayType");function w(Z){return Object.is(Z,-0)?"-0":String(Z)}s(w,"printNumber");function E(Z){return`${Z}n`}s(E,"printBigInt");function C(Z,pe){return pe?"[Function "+(Z.name||"anonymous")+"]":"[Function]"}s(C,"printFunction");function _(Z){return String(Z).replace(g,"Symbol($1)")}s(_,"printSymbol");function k(Z){return"["+f.call(Z)+"]"}s(k,"printError");function B(Z,pe,ye,ge){if(Z===!0||Z===!1)return""+Z;if(Z===void 0)return"undefined";if(Z===null)return"null";let Ce=typeof Z;if(Ce==="number")return w(Z);if(Ce==="bigint")return E(Z);if(Ce==="string")return ge?'"'+Z.replace(/"|\\/g,"\\$&")+'"':'"'+Z+'"';if(Ce==="function")return C(Z,pe);if(Ce==="symbol")return _(Z);let Se=d.call(Z);return Se==="[object WeakMap]"?"WeakMap {}":Se==="[object WeakSet]"?"WeakSet {}":Se==="[object Function]"||Se==="[object GeneratorFunction]"?C(Z,pe):Se==="[object Symbol]"?_(Z):Se==="[object Date]"?isNaN(+Z)?"Date { NaN }":h.call(Z):Se==="[object Error]"?k(Z):Se==="[object RegExp]"?ye?m.call(Z).replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"):m.call(Z):Z instanceof Error?k(Z):null}s(B,"printBasicValue");function W(Z,pe,ye,ge,Ce,Se){if(Ce.indexOf(Z)!==-1)return"[Circular]";Ce=Ce.slice(),Ce.push(Z);let _e=++ge>pe.maxDepth,Ge=pe.min;if(pe.callToJSON&&!_e&&Z.toJSON&&typeof Z.toJSON=="function"&&!Se)return j(Z.toJSON(),pe,ye,ge,Ce,!0);let lt=d.call(Z);return lt==="[object Arguments]"?_e?"[Arguments]":(Ge?"":"Arguments ")+"["+(0,r.printListItems)(Z,pe,ye,ge,Ce,j)+"]":P(lt)?_e?"["+Z.constructor.name+"]":(Ge||!pe.printBasicPrototype&&Z.constructor.name==="Array"?"":Z.constructor.name+" ")+"["+(0,r.printListItems)(Z,pe,ye,ge,Ce,j)+"]":lt==="[object Map]"?_e?"[Map]":"Map {"+(0,r.printIteratorEntries)(Z.entries(),pe,ye,ge,Ce,j," => ")+"}":lt==="[object Set]"?_e?"[Set]":"Set {"+(0,r.printIteratorValues)(Z.values(),pe,ye,ge,Ce,j)+"}":_e||b(Z)?"["+y(Z)+"]":(Ge||!pe.printBasicPrototype&&y(Z)==="Object"?"":y(Z)+" ")+"{"+(0,r.printObjectProperties)(Z,pe,ye,ge,Ce,j)+"}"}s(W,"printComplexValue");function z(Z){return Z.serialize!=null}s(z,"isNewPlugin");function R(Z,pe,ye,ge,Ce,Se){let _e;try{_e=z(Z)?Z.serialize(pe,ye,ge,Ce,Se,j):Z.print(pe,Ge=>j(Ge,ye,ge,Ce,Se),Ge=>{let lt=ge+ye.indent;return lt+Ge.replace(v,`
|
|
15
|
+
`+lt)},{edgeSpacing:ye.spacingOuter,min:ye.min,spacing:ye.spacingInner},ye.colors)}catch(Ge){throw new S(Ge.message,Ge.stack)}if(typeof _e!="string")throw new Error(`pretty-format: Plugin must return type "string" but instead returned "${typeof _e}".`);return _e}s(R,"printPlugin");function U(Z,pe){for(let ye=0;ye<Z.length;ye++)try{if(Z[ye].test(pe))return Z[ye]}catch(ge){throw new S(ge.message,ge.stack)}return null}s(U,"findPlugin");function j(Z,pe,ye,ge,Ce,Se){let _e=U(pe.plugins,Z);if(_e!==null)return R(_e,Z,pe,ye,ge,Ce);let Ge=B(Z,pe.printFunctionName,pe.escapeRegex,pe.escapeString);return Ge!==null?Ge:W(Z,pe,ye,ge,Ce,Se)}s(j,"printer");var Y={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Q=Object.keys(Y),ae={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:1/0,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:Y};e.DEFAULT_OPTIONS=ae;function le(Z){if(Object.keys(Z).forEach(pe=>{if(!ae.hasOwnProperty(pe))throw new Error(`pretty-format: Unknown option "${pe}".`)}),Z.min&&Z.indent!==void 0&&Z.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.');if(Z.theme!==void 0){if(Z.theme===null)throw new Error('pretty-format: Option "theme" must not be null.');if(typeof Z.theme!="object")throw new Error(`pretty-format: Option "theme" must be of type "object" but instead received "${typeof Z.theme}".`)}}s(le,"validateOptions");var M=s(Z=>Q.reduce((pe,ye)=>{let ge=Z.theme&&Z.theme[ye]!==void 0?Z.theme[ye]:Y[ye],Ce=ge&&t.default[ge];if(Ce&&typeof Ce.close=="string"&&typeof Ce.open=="string")pe[ye]=Ce;else throw new Error(`pretty-format: Option "theme" has a key "${ye}" whose value "${ge}" is undefined in ansi-styles.`);return pe},Object.create(null)),"getColorsHighlight"),L=s(()=>Q.reduce((Z,pe)=>(Z[pe]={close:"",open:""},Z),Object.create(null)),"getColorsEmpty"),K=s(Z=>Z&&Z.printFunctionName!==void 0?Z.printFunctionName:ae.printFunctionName,"getPrintFunctionName"),X=s(Z=>Z&&Z.escapeRegex!==void 0?Z.escapeRegex:ae.escapeRegex,"getEscapeRegex"),ie=s(Z=>Z&&Z.escapeString!==void 0?Z.escapeString:ae.escapeString,"getEscapeString"),te=s(Z=>{var pe;return{callToJSON:Z&&Z.callToJSON!==void 0?Z.callToJSON:ae.callToJSON,colors:Z&&Z.highlight?M(Z):L(),compareKeys:Z&&typeof Z.compareKeys=="function"?Z.compareKeys:ae.compareKeys,escapeRegex:X(Z),escapeString:ie(Z),indent:Z&&Z.min?"":ue(Z&&Z.indent!==void 0?Z.indent:ae.indent),maxDepth:Z&&Z.maxDepth!==void 0?Z.maxDepth:ae.maxDepth,min:Z&&Z.min!==void 0?Z.min:ae.min,plugins:Z&&Z.plugins!==void 0?Z.plugins:ae.plugins,printBasicPrototype:(pe=Z?.printBasicPrototype)!==null&&pe!==void 0?pe:!0,printFunctionName:K(Z),spacingInner:Z&&Z.min?" ":`
|
|
16
|
+
`,spacingOuter:Z&&Z.min?"":`
|
|
17
|
+
`}},"getConfig");function ue(Z){return new Array(Z+1).join(" ")}s(ue,"createIndent");function ve(Z,pe){if(pe&&(le(pe),pe.plugins)){let ge=U(pe.plugins,Z);if(ge!==null)return R(ge,Z,te(pe),"",0,[])}let ye=B(Z,K(pe),X(pe),ie(pe));return ye!==null?ye:W(Z,te(pe),"",0,[])}s(ve,"format");var je={AsymmetricMatcher:n.default,ConvertAnsi:a.default,DOMCollection:o.default,DOMElement:i.default,Immutable:l.default,ReactElement:u.default,ReactTestComponent:c.default};e.plugins=je;var st=ve;e.default=st}),AM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(){var n=this,a=0,o={"@@iterator":s(function(){return o},"iterator"),next:s(function(){if(a<n.length){var i=n[a];return a=a+1,{done:!1,value:i}}else return{done:!0}},"next")};return o}s(t,"iteratorProxy");var r=t;e.default=r}),rs=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=r(AM());function r(o){return o&&o.__esModule?o:{default:o}}s(r,"_interopRequireDefault");function n(o){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},n(o)}s(n,"_typeof");function a(o,i){return typeof Symbol=="function"&&n(Symbol.iterator)==="symbol"&&Object.defineProperty(o,Symbol.iterator,{value:t.default.bind(i)}),o}s(a,"iterationDecorator")}),SM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(rs());function r(f){return f&&f.__esModule?f:{default:f}}s(r,"_interopRequireDefault");function n(f,m){return i(f)||o(f,m)||u(f,m)||a()}s(n,"_slicedToArray");function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(a,"_nonIterableRest");function o(f,m){var y=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var b=[],g=!0,v=!1,D,S;try{for(y=y.call(f);!(g=(D=y.next()).done)&&(b.push(D.value),!(m&&b.length===m));g=!0);}catch(P){v=!0,S=P}finally{try{!g&&y.return!=null&&y.return()}finally{if(v)throw S}}return b}}s(o,"_iterableToArrayLimit");function i(f){if(Array.isArray(f))return f}s(i,"_arrayWithHoles");function l(f,m){var y=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!y){if(Array.isArray(f)||(y=u(f))||m&&f&&typeof f.length=="number"){y&&(f=y);var b=0,g=s(function(){},"F");return{s:g,n:s(function(){return b>=f.length?{done:!0}:{done:!1,value:f[b++]}},"n"),e:s(function(P){throw P},"e"),f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,D=!1,S;return{s:s(function(){y=y.call(f)},"s"),n:s(function(){var P=y.next();return v=P.done,P},"n"),e:s(function(P){D=!0,S=P},"e"),f:s(function(){try{!v&&y.return!=null&&y.return()}finally{if(D)throw S}},"f")}}s(l,"_createForOfIteratorHelper");function u(f,m){if(f){if(typeof f=="string")return c(f,m);var y=Object.prototype.toString.call(f).slice(8,-1);if(y==="Object"&&f.constructor&&(y=f.constructor.name),y==="Map"||y==="Set")return Array.from(f);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return c(f,m)}}s(u,"_unsupportedIterableToArray");function c(f,m){(m==null||m>f.length)&&(m=f.length);for(var y=0,b=new Array(m);y<m;y++)b[y]=f[y];return b}s(c,"_arrayLikeToArray");var p=[["aria-activedescendant",{type:"id"}],["aria-atomic",{type:"boolean"}],["aria-autocomplete",{type:"token",values:["inline","list","both","none"]}],["aria-braillelabel",{type:"string"}],["aria-brailleroledescription",{type:"string"}],["aria-busy",{type:"boolean"}],["aria-checked",{type:"tristate"}],["aria-colcount",{type:"integer"}],["aria-colindex",{type:"integer"}],["aria-colspan",{type:"integer"}],["aria-controls",{type:"idlist"}],["aria-current",{type:"token",values:["page","step","location","date","time",!0,!1]}],["aria-describedby",{type:"idlist"}],["aria-description",{type:"string"}],["aria-details",{type:"id"}],["aria-disabled",{type:"boolean"}],["aria-dropeffect",{type:"tokenlist",values:["copy","execute","link","move","none","popup"]}],["aria-errormessage",{type:"id"}],["aria-expanded",{type:"boolean",allowundefined:!0}],["aria-flowto",{type:"idlist"}],["aria-grabbed",{type:"boolean",allowundefined:!0}],["aria-haspopup",{type:"token",values:[!1,!0,"menu","listbox","tree","grid","dialog"]}],["aria-hidden",{type:"boolean",allowundefined:!0}],["aria-invalid",{type:"token",values:["grammar",!1,"spelling",!0]}],["aria-keyshortcuts",{type:"string"}],["aria-label",{type:"string"}],["aria-labelledby",{type:"idlist"}],["aria-level",{type:"integer"}],["aria-live",{type:"token",values:["assertive","off","polite"]}],["aria-modal",{type:"boolean"}],["aria-multiline",{type:"boolean"}],["aria-multiselectable",{type:"boolean"}],["aria-orientation",{type:"token",values:["vertical","undefined","horizontal"]}],["aria-owns",{type:"idlist"}],["aria-placeholder",{type:"string"}],["aria-posinset",{type:"integer"}],["aria-pressed",{type:"tristate"}],["aria-readonly",{type:"boolean"}],["aria-relevant",{type:"tokenlist",values:["additions","all","removals","text"]}],["aria-required",{type:"boolean"}],["aria-roledescription",{type:"string"}],["aria-rowcount",{type:"integer"}],["aria-rowindex",{type:"integer"}],["aria-rowspan",{type:"integer"}],["aria-selected",{type:"boolean",allowundefined:!0}],["aria-setsize",{type:"integer"}],["aria-sort",{type:"token",values:["ascending","descending","none","other"]}],["aria-valuemax",{type:"number"}],["aria-valuemin",{type:"number"}],["aria-valuenow",{type:"number"}],["aria-valuetext",{type:"string"}]],d={entries:s(function(){return p},"entries"),forEach:s(function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=l(p),b;try{for(y.s();!(b=y.n()).done;){var g=n(b.value,2),v=g[0],D=g[1];f.call(m,D,v,p)}}catch(S){y.e(S)}finally{y.f()}},"forEach"),get:s(function(f){var m=p.find(function(y){return y[0]===f});return m&&m[1]},"get"),has:s(function(f){return!!d.get(f)},"has"),keys:s(function(){return p.map(function(f){var m=n(f,1),y=m[0];return y})},"keys"),values:s(function(){return p.map(function(f){var m=n(f,2),y=m[1];return y})},"values")},h=(0,t.default)(d,d.entries());e.default=h}),_M=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(rs());function r(f){return f&&f.__esModule?f:{default:f}}s(r,"_interopRequireDefault");function n(f,m){return i(f)||o(f,m)||u(f,m)||a()}s(n,"_slicedToArray");function a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
20
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(a,"_nonIterableRest");function o(f,m){var y=f==null?null:typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(y!=null){var b=[],g=!0,v=!1,D,S;try{for(y=y.call(f);!(g=(D=y.next()).done)&&(b.push(D.value),!(m&&b.length===m));g=!0);}catch(P){v=!0,S=P}finally{try{!g&&y.return!=null&&y.return()}finally{if(v)throw S}}return b}}s(o,"_iterableToArrayLimit");function i(f){if(Array.isArray(f))return f}s(i,"_arrayWithHoles");function l(f,m){var y=typeof Symbol<"u"&&f[Symbol.iterator]||f["@@iterator"];if(!y){if(Array.isArray(f)||(y=u(f))||m&&f&&typeof f.length=="number"){y&&(f=y);var b=0,g=s(function(){},"F");return{s:g,n:s(function(){return b>=f.length?{done:!0}:{done:!1,value:f[b++]}},"n"),e:s(function(P){throw P},"e"),f:g}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,D=!1,S;return{s:s(function(){y=y.call(f)},"s"),n:s(function(){var P=y.next();return v=P.done,P},"n"),e:s(function(P){D=!0,S=P},"e"),f:s(function(){try{!v&&y.return!=null&&y.return()}finally{if(D)throw S}},"f")}}s(l,"_createForOfIteratorHelper");function u(f,m){if(f){if(typeof f=="string")return c(f,m);var y=Object.prototype.toString.call(f).slice(8,-1);if(y==="Object"&&f.constructor&&(y=f.constructor.name),y==="Map"||y==="Set")return Array.from(f);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return c(f,m)}}s(u,"_unsupportedIterableToArray");function c(f,m){(m==null||m>f.length)&&(m=f.length);for(var y=0,b=new Array(m);y<m;y++)b[y]=f[y];return b}s(c,"_arrayLikeToArray");var p=[["a",{reserved:!1}],["abbr",{reserved:!1}],["acronym",{reserved:!1}],["address",{reserved:!1}],["applet",{reserved:!1}],["area",{reserved:!1}],["article",{reserved:!1}],["aside",{reserved:!1}],["audio",{reserved:!1}],["b",{reserved:!1}],["base",{reserved:!0}],["bdi",{reserved:!1}],["bdo",{reserved:!1}],["big",{reserved:!1}],["blink",{reserved:!1}],["blockquote",{reserved:!1}],["body",{reserved:!1}],["br",{reserved:!1}],["button",{reserved:!1}],["canvas",{reserved:!1}],["caption",{reserved:!1}],["center",{reserved:!1}],["cite",{reserved:!1}],["code",{reserved:!1}],["col",{reserved:!0}],["colgroup",{reserved:!0}],["content",{reserved:!1}],["data",{reserved:!1}],["datalist",{reserved:!1}],["dd",{reserved:!1}],["del",{reserved:!1}],["details",{reserved:!1}],["dfn",{reserved:!1}],["dialog",{reserved:!1}],["dir",{reserved:!1}],["div",{reserved:!1}],["dl",{reserved:!1}],["dt",{reserved:!1}],["em",{reserved:!1}],["embed",{reserved:!1}],["fieldset",{reserved:!1}],["figcaption",{reserved:!1}],["figure",{reserved:!1}],["font",{reserved:!1}],["footer",{reserved:!1}],["form",{reserved:!1}],["frame",{reserved:!1}],["frameset",{reserved:!1}],["h1",{reserved:!1}],["h2",{reserved:!1}],["h3",{reserved:!1}],["h4",{reserved:!1}],["h5",{reserved:!1}],["h6",{reserved:!1}],["head",{reserved:!0}],["header",{reserved:!1}],["hgroup",{reserved:!1}],["hr",{reserved:!1}],["html",{reserved:!0}],["i",{reserved:!1}],["iframe",{reserved:!1}],["img",{reserved:!1}],["input",{reserved:!1}],["ins",{reserved:!1}],["kbd",{reserved:!1}],["keygen",{reserved:!1}],["label",{reserved:!1}],["legend",{reserved:!1}],["li",{reserved:!1}],["link",{reserved:!0}],["main",{reserved:!1}],["map",{reserved:!1}],["mark",{reserved:!1}],["marquee",{reserved:!1}],["menu",{reserved:!1}],["menuitem",{reserved:!1}],["meta",{reserved:!0}],["meter",{reserved:!1}],["nav",{reserved:!1}],["noembed",{reserved:!0}],["noscript",{reserved:!0}],["object",{reserved:!1}],["ol",{reserved:!1}],["optgroup",{reserved:!1}],["option",{reserved:!1}],["output",{reserved:!1}],["p",{reserved:!1}],["param",{reserved:!0}],["picture",{reserved:!0}],["pre",{reserved:!1}],["progress",{reserved:!1}],["q",{reserved:!1}],["rp",{reserved:!1}],["rt",{reserved:!1}],["rtc",{reserved:!1}],["ruby",{reserved:!1}],["s",{reserved:!1}],["samp",{reserved:!1}],["script",{reserved:!0}],["section",{reserved:!1}],["select",{reserved:!1}],["small",{reserved:!1}],["source",{reserved:!0}],["spacer",{reserved:!1}],["span",{reserved:!1}],["strike",{reserved:!1}],["strong",{reserved:!1}],["style",{reserved:!0}],["sub",{reserved:!1}],["summary",{reserved:!1}],["sup",{reserved:!1}],["table",{reserved:!1}],["tbody",{reserved:!1}],["td",{reserved:!1}],["textarea",{reserved:!1}],["tfoot",{reserved:!1}],["th",{reserved:!1}],["thead",{reserved:!1}],["time",{reserved:!1}],["title",{reserved:!0}],["tr",{reserved:!1}],["track",{reserved:!0}],["tt",{reserved:!1}],["u",{reserved:!1}],["ul",{reserved:!1}],["var",{reserved:!1}],["video",{reserved:!1}],["wbr",{reserved:!1}],["xmp",{reserved:!1}]],d={entries:s(function(){return p},"entries"),forEach:s(function(f){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,y=l(p),b;try{for(y.s();!(b=y.n()).done;){var g=n(b.value,2),v=g[0],D=g[1];f.call(m,D,v,p)}}catch(S){y.e(S)}finally{y.f()}},"forEach"),get:s(function(f){var m=p.find(function(y){return y[0]===f});return m&&m[1]},"get"),has:s(function(f){return!!d.get(f)},"has"),keys:s(function(){return p.map(function(f){var m=n(f,1),y=m[0];return y})},"keys"),values:s(function(){return p.map(function(f){var m=n(f,2),y=m[1];return y})},"values")},h=(0,t.default)(d,d.entries());e.default=h}),TM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r}),PM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r}),DM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null},relatedConcepts:[{concept:{name:"input"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget"]]},r=t;e.default=r}),OM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),RM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),FM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{"aria-atomic":null,"aria-busy":null,"aria-controls":null,"aria-current":null,"aria-describedby":null,"aria-details":null,"aria-dropeffect":null,"aria-flowto":null,"aria-grabbed":null,"aria-hidden":null,"aria-keyshortcuts":null,"aria-label":null,"aria-labelledby":null,"aria-live":null,"aria-owns":null,"aria-relevant":null,"aria-roledescription":null},relatedConcepts:[{concept:{name:"role"},module:"XHTML"},{concept:{name:"type"},module:"Dublin Core"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},r=t;e.default=r}),IM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"frontmatter"},module:"DTB"},{concept:{name:"level"},module:"DTB"},{concept:{name:"level"},module:"SMIL"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),NM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),kM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","group"]]},r=t;e.default=r}),BM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r}),jM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r}),qM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!0,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-modal":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype"]]},r=t;e.default=r}),MM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=f(TM()),r=f(PM()),n=f(DM()),a=f(OM()),o=f(RM()),i=f(FM()),l=f(IM()),u=f(NM()),c=f(kM()),p=f(BM()),d=f(jM()),h=f(qM());function f(b){return b&&b.__esModule?b:{default:b}}s(f,"_interopRequireDefault");var m=[["command",t.default],["composite",r.default],["input",n.default],["landmark",a.default],["range",o.default],["roletype",i.default],["section",l.default],["sectionhead",u.default],["select",c.default],["structure",p.default],["widget",d.default],["window",h.default]],y=m;e.default=y}),LM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"assertive"},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),$M=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"alert"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","alert"],["roletype","window","dialog"]]},r=t;e.default=r}),UM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),VM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"article"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},r=t;e.default=r}),HM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"header"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),JM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"blockquote"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),zM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-pressed":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"button"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"image"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"reset"}],name:"input"},module:"HTML"},{concept:{attributes:[{name:"type",value:"submit"}],name:"input"},module:"HTML"},{concept:{name:"button"},module:"HTML"},{concept:{name:"trigger"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r}),GM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"caption"},module:"HTML"}],requireContextRole:["figure","grid","table"],requiredContextRole:["figure","grid","table"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),WM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-colspan":null,"aria-rowindex":null,"aria-rowspan":null},relatedConcepts:[{concept:{constraints:["ancestor table element has table role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),YM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"checkbox"}],name:"input"},module:"HTML"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),KM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"code"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),XM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"col"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"colgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},r=t;e.default=r}),QM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-expanded":"false","aria-haspopup":"listbox"},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"email"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"search"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"tel"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"text"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"list"},{name:"type",value:"url"}],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"multiple"},{constraints:["undefined"],name:"size"}],constraints:["the multiple attribute is not set and the size attribute does not have a value greater than 1"],name:"select"},module:"HTML"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-expanded":"false"},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),ZM=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"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"]]},r=t;e.default=r}),eL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{constraints:["scoped to the body element"],name:"footer"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),tL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dd"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),rL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"del"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),nL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dialog"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","window"]]},r=t;e.default=r}),aL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{module:"DAISY Guide"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","list"]]},r=t;e.default=r}),oL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"Device Independence Delivery Unit"}},{concept:{name:"html"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),iL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"em"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),sL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["article"]],requiredProps:{},superClass:[["roletype","structure","section","list"]]},r=t;e.default=r}),lL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"figure"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),uL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"form"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"name"}],name:"form"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),cL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"a"},module:"HTML"},{concept:{name:"area"},module:"HTML"},{concept:{name:"aside"},module:"HTML"},{concept:{name:"b"},module:"HTML"},{concept:{name:"bdo"},module:"HTML"},{concept:{name:"body"},module:"HTML"},{concept:{name:"data"},module:"HTML"},{concept:{name:"div"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"footer"},module:"HTML"},{concept:{constraints:["scoped to the main element","scoped to a sectioning content element","scoped to a sectioning root element other than body"],name:"header"},module:"HTML"},{concept:{name:"hgroup"},module:"HTML"},{concept:{name:"i"},module:"HTML"},{concept:{name:"pre"},module:"HTML"},{concept:{name:"q"},module:"HTML"},{concept:{name:"samp"},module:"HTML"},{concept:{name:"section"},module:"HTML"},{concept:{name:"small"},module:"HTML"},{concept:{name:"span"},module:"HTML"},{concept:{name:"u"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),pL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-multiselectable":null,"aria-readonly":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","structure","section","table"]]},r=t;e.default=r}),dL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-selected":null},relatedConcepts:[{concept:{constraints:["ancestor table element has grid role","ancestor table element has treegrid role"],name:"td"},module:"HTML"}],requireContextRole:["row"],requiredContextRole:["row"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","widget"]]},r=t;e.default=r}),fL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-disabled":null},relatedConcepts:[{concept:{name:"details"},module:"HTML"},{concept:{name:"fieldset"},module:"HTML"},{concept:{name:"optgroup"},module:"HTML"},{concept:{name:"address"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),hL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-level":"2"},relatedConcepts:[{concept:{name:"h1"},module:"HTML"},{concept:{name:"h2"},module:"HTML"},{concept:{name:"h3"},module:"HTML"},{concept:{name:"h4"},module:"HTML"},{concept:{name:"h5"},module:"HTML"},{concept:{name:"h6"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-level":"2"},superClass:[["roletype","structure","sectionhead"]]},r=t;e.default=r}),mL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"alt"}],name:"img"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"alt"}],name:"img"},module:"HTML"},{concept:{name:"imggroup"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),yL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"ins"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),gL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"href"}],name:"a"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"href"}],name:"area"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r}),bL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menu"},module:"HTML"},{concept:{name:"ol"},module:"HTML"},{concept:{name:"ul"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["listitem"]],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),vL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-invalid":null,"aria-multiselectable":null,"aria-readonly":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[{concept:{attributes:[{constraints:[">1"],name:"size"}],constraints:["the size attribute value is greater than 1"],name:"select"},module:"HTML"},{concept:{attributes:[{name:"multiple"}],name:"select"},module:"HTML"},{concept:{name:"datalist"},module:"HTML"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["option","group"],["option"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r}),EL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{constraints:["direct descendant of ol","direct descendant of ul","direct descendant of menu"],name:"li"},module:"HTML"},{concept:{name:"item"},module:"XForms"}],requireContextRole:["directory","list"],requiredContextRole:["directory","list"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),CL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-live":"polite"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),wL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"main"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),xL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:[],props:{"aria-braillelabel":null,"aria-brailleroledescription":null,"aria-description":null},relatedConcepts:[{concept:{name:"mark"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),AL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),SL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"math"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),_L=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"vertical"},relatedConcepts:[{concept:{name:"MENU"},module:"JAPI"},{concept:{name:"list"},module:"ARIA"},{concept:{name:"select"},module:"XForms"},{concept:{name:"sidebar"},module:"DTB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r}),TL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"toolbar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["menuitem","group"],["menuitemradio","group"],["menuitemcheckbox","group"],["menuitem"],["menuitemcheckbox"],["menuitemradio"]],requiredProps:{},superClass:[["roletype","widget","composite","select","menu"],["roletype","structure","section","group","select","menu"]]},r=t;e.default=r}),PL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"MENU_ITEM"},module:"JAPI"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command"]]},r=t;e.default=r}),DL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"],["roletype","widget","command","menuitem"]]},r=t;e.default=r}),OL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"menuitem"},module:"ARIA"}],requireContextRole:["group","menu","menubar"],requiredContextRole:["group","menu","menubar"],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox","menuitemcheckbox"],["roletype","widget","command","menuitem","menuitemcheckbox"],["roletype","widget","input","radio"]]},r=t;e.default=r}),RL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null,"aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{name:"meter"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","structure","range"]]},r=t;e.default=r}),FL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"nav"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),IL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:[],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[]},r=t;e.default=r}),NL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),kL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[{concept:{name:"item"},module:"XForms"},{concept:{name:"listitem"},module:"ARIA"},{concept:{name:"option"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-selected":"false"},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),BL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"p"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),jL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{attributes:[{name:"alt",value:""}],name:"img"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),qL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-valuetext":null},relatedConcepts:[{concept:{name:"progress"},module:"HTML"},{concept:{name:"status"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","range"],["roletype","widget"]]},r=t;e.default=r}),ML=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-checked":null,"aria-posinset":null,"aria-setsize":null},relatedConcepts:[{concept:{attributes:[{name:"type",value:"radio"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),LL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{name:"list"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["radio"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r}),$L=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["set"],name:"aria-label"}],name:"section"},module:"HTML"},{concept:{attributes:[{constraints:["set"],name:"aria-labelledby"}],name:"section"},module:"HTML"},{concept:{name:"Device Independence Glossart perceivable unit"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),UL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-colindex":null,"aria-expanded":null,"aria-level":null,"aria-posinset":null,"aria-rowindex":null,"aria-selected":null,"aria-setsize":null},relatedConcepts:[{concept:{name:"tr"},module:"HTML"}],requireContextRole:["grid","rowgroup","table","treegrid"],requiredContextRole:["grid","rowgroup","table","treegrid"],requiredOwnedElements:[["cell"],["columnheader"],["gridcell"],["rowheader"]],requiredProps:{},superClass:[["roletype","structure","section","group"],["roletype","widget"]]},r=t;e.default=r}),VL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"tbody"},module:"HTML"},{concept:{name:"tfoot"},module:"HTML"},{concept:{name:"thead"},module:"HTML"}],requireContextRole:["grid","table","treegrid"],requiredContextRole:["grid","table","treegrid"],requiredOwnedElements:[["row"]],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),HL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-sort":null},relatedConcepts:[{concept:{attributes:[{name:"scope",value:"row"}],name:"th"},module:"HTML"},{concept:{attributes:[{name:"scope",value:"rowgroup"}],name:"th"},module:"HTML"}],requireContextRole:["row","rowgroup"],requiredContextRole:["row","rowgroup"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","cell"],["roletype","structure","section","cell","gridcell"],["roletype","widget","gridcell"],["roletype","structure","sectionhead"]]},r=t;e.default=r}),JL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-valuetext":null,"aria-orientation":"vertical","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-controls":null,"aria-valuenow":null},superClass:[["roletype","structure","range"],["roletype","widget"]]},r=t;e.default=r}),zL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),GL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"search"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input","textbox"]]},r=t;e.default=r}),WL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0","aria-valuenow":null,"aria-valuetext":null},relatedConcepts:[{concept:{name:"hr"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure"]]},r=t;e.default=r}),YL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-readonly":null,"aria-valuetext":null,"aria-orientation":"horizontal","aria-valuemax":"100","aria-valuemin":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"range"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-valuenow":null},superClass:[["roletype","widget","input"],["roletype","structure","range"]]},r=t;e.default=r}),KL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-readonly":null,"aria-required":null,"aria-valuetext":null,"aria-valuenow":"0"},relatedConcepts:[{concept:{attributes:[{name:"type",value:"number"}],name:"input"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","composite"],["roletype","widget","input"],["roletype","structure","range"]]},r=t;e.default=r}),XL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-atomic":"true","aria-live":"polite"},relatedConcepts:[{concept:{name:"output"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),QL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"strong"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),ZL=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sub"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),e3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["prohibited"],prohibitedProps:["aria-label","aria-labelledby"],props:{},relatedConcepts:[{concept:{name:"sup"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),t3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"button"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{"aria-checked":null},superClass:[["roletype","widget","input","checkbox"]]},r=t;e.default=r}),r3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!0,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-disabled":null,"aria-expanded":null,"aria-haspopup":null,"aria-posinset":null,"aria-setsize":null,"aria-selected":"false"},relatedConcepts:[],requireContextRole:["tablist"],requiredContextRole:["tablist"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"],["roletype","widget"]]},r=t;e.default=r}),n3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-colcount":null,"aria-rowcount":null},relatedConcepts:[{concept:{name:"table"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),a3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-level":null,"aria-multiselectable":null,"aria-orientation":"horizontal"},relatedConcepts:[{module:"DAISY",concept:{name:"guide"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["tab"]],requiredProps:{},superClass:[["roletype","widget","composite"]]},r=t;e.default=r}),o3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),i3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"dfn"},module:"HTML"},{concept:{name:"dt"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),s3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-activedescendant":null,"aria-autocomplete":null,"aria-errormessage":null,"aria-haspopup":null,"aria-invalid":null,"aria-multiline":null,"aria-placeholder":null,"aria-readonly":null,"aria-required":null},relatedConcepts:[{concept:{attributes:[{constraints:["undefined"],name:"type"},{constraints:["undefined"],name:"list"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"email"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"tel"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"text"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{attributes:[{constraints:["undefined"],name:"list"},{name:"type",value:"url"}],constraints:["the list attribute is not set"],name:"input"},module:"HTML"},{concept:{name:"input"},module:"XForms"},{concept:{name:"textarea"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","input"]]},r=t;e.default=r}),l3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"time"},module:"HTML"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),u3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","status"]]},r=t;e.default=r}),c3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-orientation":"horizontal"},relatedConcepts:[{concept:{name:"menubar"},module:"ARIA"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},r=t;e.default=r}),p3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),d3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null,"aria-multiselectable":null,"aria-required":null,"aria-orientation":"vertical"},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["treeitem","group"],["treeitem"]],requiredProps:{},superClass:[["roletype","widget","composite","select"],["roletype","structure","section","group","select"]]},r=t;e.default=r}),f3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["row"],["row","rowgroup"]],requiredProps:{},superClass:[["roletype","widget","composite","grid"],["roletype","structure","section","table","grid"],["roletype","widget","composite","select","tree"],["roletype","structure","section","group","select","tree"]]},r=t;e.default=r}),h3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-expanded":null,"aria-haspopup":null},relatedConcepts:[],requireContextRole:["group","tree"],requiredContextRole:["group","tree"],requiredOwnedElements:[],requiredProps:{"aria-selected":null},superClass:[["roletype","structure","section","listitem"],["roletype","widget","input","option"]]},r=t;e.default=r}),m3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=T(LM()),r=T($M()),n=T(UM()),a=T(VM()),o=T(HM()),i=T(JM()),l=T(zM()),u=T(GM()),c=T(WM()),p=T(YM()),d=T(KM()),h=T(XM()),f=T(QM()),m=T(ZM()),y=T(eL()),b=T(tL()),g=T(rL()),v=T(nL()),D=T(aL()),S=T(oL()),P=T(iL()),w=T(sL()),E=T(lL()),C=T(uL()),_=T(cL()),k=T(pL()),B=T(dL()),W=T(fL()),z=T(hL()),R=T(mL()),U=T(yL()),j=T(gL()),Y=T(bL()),Q=T(vL()),ae=T(EL()),le=T(CL()),M=T(wL()),L=T(xL()),K=T(AL()),X=T(SL()),ie=T(_L()),te=T(TL()),ue=T(PL()),ve=T(DL()),je=T(OL()),st=T(RL()),Z=T(FL()),pe=T(IL()),ye=T(NL()),ge=T(kL()),Ce=T(BL()),Se=T(jL()),_e=T(qL()),Ge=T(ML()),lt=T(LL()),Dt=T($L()),Gt=T(UL()),_t=T(VL()),Vt=T(HL()),kt=T(JL()),Pe=T(zL()),ut=T(GL()),Ae=T(WL()),ct=T(YL()),Qe=T(KL()),Zn=T(XL()),ea=T(QL()),Bt=T(ZL()),An=T(e3()),pr=T(t3()),tt=T(r3()),Sn=T(n3()),ta=T(a3()),Ze=T(o3()),wt=T(i3()),xr=T(s3()),Nr=T(l3()),kr=T(u3()),_n=T(c3()),dr=T(p3()),A=T(d3()),N=T(f3()),F=T(h3());function T(se){return se&&se.__esModule?se:{default:se}}s(T,"_interopRequireDefault");var V=[["alert",t.default],["alertdialog",r.default],["application",n.default],["article",a.default],["banner",o.default],["blockquote",i.default],["button",l.default],["caption",u.default],["cell",c.default],["checkbox",p.default],["code",d.default],["columnheader",h.default],["combobox",f.default],["complementary",m.default],["contentinfo",y.default],["definition",b.default],["deletion",g.default],["dialog",v.default],["directory",D.default],["document",S.default],["emphasis",P.default],["feed",w.default],["figure",E.default],["form",C.default],["generic",_.default],["grid",k.default],["gridcell",B.default],["group",W.default],["heading",z.default],["img",R.default],["insertion",U.default],["link",j.default],["list",Y.default],["listbox",Q.default],["listitem",ae.default],["log",le.default],["main",M.default],["mark",L.default],["marquee",K.default],["math",X.default],["menu",ie.default],["menubar",te.default],["menuitem",ue.default],["menuitemcheckbox",ve.default],["menuitemradio",je.default],["meter",st.default],["navigation",Z.default],["none",pe.default],["note",ye.default],["option",ge.default],["paragraph",Ce.default],["presentation",Se.default],["progressbar",_e.default],["radio",Ge.default],["radiogroup",lt.default],["region",Dt.default],["row",Gt.default],["rowgroup",_t.default],["rowheader",Vt.default],["scrollbar",kt.default],["search",Pe.default],["searchbox",ut.default],["separator",Ae.default],["slider",ct.default],["spinbutton",Qe.default],["status",Zn.default],["strong",ea.default],["subscript",Bt.default],["superscript",An.default],["switch",pr.default],["tab",tt.default],["table",Sn.default],["tablist",ta.default],["tabpanel",Ze.default],["term",wt.default],["textbox",xr.default],["time",Nr.default],["timer",kr.default],["toolbar",_n.default],["tooltip",dr.default],["tree",A.default],["treegrid",N.default],["treeitem",F.default]],oe=V;e.default=oe}),y3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"abstract [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),g3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"acknowledgments [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),b3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"afterword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),v3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"appendix [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),E3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"referrer [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r}),C3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"EPUB biblioentry [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-bibliography"],requiredContextRole:["doc-bibliography"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},r=t;e.default=r}),w3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"bibliography [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-biblioentry"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),x3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"biblioref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r}),A3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"chapter [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),S3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"colophon [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),_3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"conclusion [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),T3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"cover [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},r=t;e.default=r}),P3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credit [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),D3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"credits [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),O3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"dedication [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),R3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:["doc-endnotes"],requiredContextRole:["doc-endnotes"],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","listitem"]]},r=t;e.default=r}),F3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"rearnotes [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["doc-endnote"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),I3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epigraph [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),N3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"epilogue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),k3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"errata [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),B3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),j3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"footnote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),q3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"foreword [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),M3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossary [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[["definition"],["term"]],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),L3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"glossref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r}),$3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"index [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r}),U3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"introduction [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),V3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"noteref [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","widget","command","link"]]},r=t;e.default=r}),H3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"notice [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},r=t;e.default=r}),J3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"pagebreak [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","separator"]]},r=t;e.default=r}),z3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"page-list [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r}),G3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"part [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),W3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"preface [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),Y3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"prologue [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark"]]},r=t;e.default=r}),K3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{},relatedConcepts:[{concept:{name:"pullquote [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["none"]]},r=t;e.default=r}),X3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"qna [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section"]]},r=t;e.default=r}),Q3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"subtitle [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","sectionhead"]]},r=t;e.default=r}),Z3=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"help [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","note"]]},r=t;e.default=r}),e5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{concept:{name:"toc [EPUB-SSV]"},module:"EPUB"}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","landmark","navigation"]]},r=t;e.default=r}),t5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=X(y3()),r=X(g3()),n=X(b3()),a=X(v3()),o=X(E3()),i=X(C3()),l=X(w3()),u=X(x3()),c=X(A3()),p=X(S3()),d=X(_3()),h=X(T3()),f=X(P3()),m=X(D3()),y=X(O3()),b=X(R3()),g=X(F3()),v=X(I3()),D=X(N3()),S=X(k3()),P=X(B3()),w=X(j3()),E=X(q3()),C=X(M3()),_=X(L3()),k=X($3()),B=X(U3()),W=X(V3()),z=X(H3()),R=X(J3()),U=X(z3()),j=X(G3()),Y=X(W3()),Q=X(Y3()),ae=X(K3()),le=X(X3()),M=X(Q3()),L=X(Z3()),K=X(e5());function X(ue){return ue&&ue.__esModule?ue:{default:ue}}s(X,"_interopRequireDefault");var ie=[["doc-abstract",t.default],["doc-acknowledgments",r.default],["doc-afterword",n.default],["doc-appendix",a.default],["doc-backlink",o.default],["doc-biblioentry",i.default],["doc-bibliography",l.default],["doc-biblioref",u.default],["doc-chapter",c.default],["doc-colophon",p.default],["doc-conclusion",d.default],["doc-cover",h.default],["doc-credit",f.default],["doc-credits",m.default],["doc-dedication",y.default],["doc-endnote",b.default],["doc-endnotes",g.default],["doc-epigraph",v.default],["doc-epilogue",D.default],["doc-errata",S.default],["doc-example",P.default],["doc-footnote",w.default],["doc-foreword",E.default],["doc-glossary",C.default],["doc-glossref",_.default],["doc-index",k.default],["doc-introduction",B.default],["doc-noteref",W.default],["doc-notice",z.default],["doc-pagebreak",R.default],["doc-pagelist",U.default],["doc-part",j.default],["doc-preface",Y.default],["doc-prologue",Q.default],["doc-pullquote",ae.default],["doc-qna",le.default],["doc-subtitle",M.default],["doc-tip",L.default],["doc-toc",K.default]],te=ie;e.default=te}),r5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!1,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-object"}},{module:"ARIA",concept:{name:"img"}},{module:"ARIA",concept:{name:"article"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","document"]]},r=t;e.default=r}),n5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!1,baseConcepts:[],childrenPresentational:!1,nameFrom:["author","contents"],prohibitedProps:[],props:{"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[{module:"GRAPHICS",concept:{name:"graphics-document"}},{module:"ARIA",concept:{name:"group"}},{module:"ARIA",concept:{name:"img"}},{module:"GRAPHICS",concept:{name:"graphics-symbol"}}],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","group"]]},r=t;e.default=r}),a5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={abstract:!1,accessibleNameRequired:!0,baseConcepts:[],childrenPresentational:!0,nameFrom:["author"],prohibitedProps:[],props:{"aria-disabled":null,"aria-errormessage":null,"aria-expanded":null,"aria-haspopup":null,"aria-invalid":null},relatedConcepts:[],requireContextRole:[],requiredContextRole:[],requiredOwnedElements:[],requiredProps:{},superClass:[["roletype","structure","section","img"]]},r=t;e.default=r}),o5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(r5()),r=a(n5()),n=a(a5());function a(l){return l&&l.__esModule?l:{default:l}}s(a,"_interopRequireDefault");var o=[["graphics-document",t.default],["graphics-object",r.default],["graphics-symbol",n.default]],i=o;e.default=i}),wh=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(MM()),r=i(m3()),n=i(t5()),a=i(o5()),o=i(rs());function i(v){return v&&v.__esModule?v:{default:v}}s(i,"_interopRequireDefault");function l(v,D,S){return D in v?Object.defineProperty(v,D,{value:S,enumerable:!0,configurable:!0,writable:!0}):v[D]=S,v}s(l,"_defineProperty");function u(v,D){var S=typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(!S){if(Array.isArray(v)||(S=d(v))||D&&v&&typeof v.length=="number"){S&&(v=S);var P=0,w=s(function(){},"F");return{s:w,n:s(function(){return P>=v.length?{done:!0}:{done:!1,value:v[P++]}},"n"),e:s(function(k){throw k},"e"),f:w}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var E=!0,C=!1,_;return{s:s(function(){S=S.call(v)},"s"),n:s(function(){var k=S.next();return E=k.done,k},"n"),e:s(function(k){C=!0,_=k},"e"),f:s(function(){try{!E&&S.return!=null&&S.return()}finally{if(C)throw _}},"f")}}s(u,"_createForOfIteratorHelper");function c(v,D){return m(v)||f(v,D)||d(v,D)||p()}s(c,"_slicedToArray");function p(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(p,"_nonIterableRest");function d(v,D){if(v){if(typeof v=="string")return h(v,D);var S=Object.prototype.toString.call(v).slice(8,-1);if(S==="Object"&&v.constructor&&(S=v.constructor.name),S==="Map"||S==="Set")return Array.from(v);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return h(v,D)}}s(d,"_unsupportedIterableToArray");function h(v,D){(D==null||D>v.length)&&(D=v.length);for(var S=0,P=new Array(D);S<D;S++)P[S]=v[S];return P}s(h,"_arrayLikeToArray");function f(v,D){var S=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(S!=null){var P=[],w=!0,E=!1,C,_;try{for(S=S.call(v);!(w=(C=S.next()).done)&&(P.push(C.value),!(D&&P.length===D));w=!0);}catch(k){E=!0,_=k}finally{try{!w&&S.return!=null&&S.return()}finally{if(E)throw _}}return P}}s(f,"_iterableToArrayLimit");function m(v){if(Array.isArray(v))return v}s(m,"_arrayWithHoles");var y=[].concat(t.default,r.default,n.default,a.default);y.forEach(function(v){var D=c(v,2),S=D[1],P=u(S.superClass),w;try{for(P.s();!(w=P.n()).done;){var E=w.value,C=u(E),_;try{var k=s(function(){var B=_.value,W=y.find(function(Y){var Q=c(Y,1),ae=Q[0];return ae===B});if(W)for(var z=W[1],R=0,U=Object.keys(z.props);R<U.length;R++){var j=U[R];Object.prototype.hasOwnProperty.call(S.props,j)||Object.assign(S.props,l({},j,z.props[j]))}},"_loop");for(C.s();!(_=C.n()).done;)k()}catch(B){C.e(B)}finally{C.f()}}}catch(B){P.e(B)}finally{P.f()}});var b={entries:s(function(){return y},"entries"),forEach:s(function(v){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,S=u(y),P;try{for(S.s();!(P=S.n()).done;){var w=c(P.value,2),E=w[0],C=w[1];v.call(D,C,E,y)}}catch(_){S.e(_)}finally{S.f()}},"forEach"),get:s(function(v){var D=y.find(function(S){return S[0]===v});return D&&D[1]},"get"),has:s(function(v){return!!b.get(v)},"has"),keys:s(function(){return y.map(function(v){var D=c(v,1),S=D[0];return S})},"keys"),values:s(function(){return y.map(function(v){var D=c(v,2),S=D[1];return S})},"values")},g=(0,o.default)(b,b.entries());e.default=g}),iC={};Jt(iC,{dequal:()=>dl});function dl(e,t){var r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&dl(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Xp.call(e,r)&&++n&&!Xp.call(t,r)||!(r in t)||!dl(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}var Xp,i5=ek(()=>{Xp=Object.prototype.hasOwnProperty,s(dl,"dequal")}),s5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(i5(),tk(iC)),r=a(rs()),n=a(wh());function a(w){return w&&w.__esModule?w:{default:w}}s(a,"_interopRequireDefault");function o(w,E){return u(w)||l(w,E)||p(w,E)||i()}s(o,"_slicedToArray");function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(i,"_nonIterableRest");function l(w,E){var C=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(C!=null){var _=[],k=!0,B=!1,W,z;try{for(C=C.call(w);!(k=(W=C.next()).done)&&(_.push(W.value),!(E&&_.length===E));k=!0);}catch(R){B=!0,z=R}finally{try{!k&&C.return!=null&&C.return()}finally{if(B)throw z}}return _}}s(l,"_iterableToArrayLimit");function u(w){if(Array.isArray(w))return w}s(u,"_arrayWithHoles");function c(w,E){var C=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!C){if(Array.isArray(w)||(C=p(w))||E&&w&&typeof w.length=="number"){C&&(w=C);var _=0,k=s(function(){},"F");return{s:k,n:s(function(){return _>=w.length?{done:!0}:{done:!1,value:w[_++]}},"n"),e:s(function(R){throw R},"e"),f:k}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
25
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,W=!1,z;return{s:s(function(){C=C.call(w)},"s"),n:s(function(){var R=C.next();return B=R.done,R},"n"),e:s(function(R){W=!0,z=R},"e"),f:s(function(){try{!B&&C.return!=null&&C.return()}finally{if(W)throw z}},"f")}}s(c,"_createForOfIteratorHelper");function p(w,E){if(w){if(typeof w=="string")return d(w,E);var C=Object.prototype.toString.call(w).slice(8,-1);if(C==="Object"&&w.constructor&&(C=w.constructor.name),C==="Map"||C==="Set")return Array.from(w);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return d(w,E)}}s(p,"_unsupportedIterableToArray");function d(w,E){(E==null||E>w.length)&&(E=w.length);for(var C=0,_=new Array(E);C<E;C++)_[C]=w[C];return _}s(d,"_arrayLikeToArray");var h=[],f=n.default.keys();for(D=0;D<f.length;D++)if(m=f[D],y=n.default.get(m),y)for(b=[].concat(y.baseConcepts,y.relatedConcepts),v=0;v<b.length;v++)g=b[v],g.module==="HTML"&&(function(){var w=g.concept;if(w){var E=h.find(function(B){return(0,t.dequal)(B,w)}),C;E?C=E[1]:C=[];for(var _=!0,k=0;k<C.length;k++)if(C[k]===m){_=!1;break}_&&C.push(m),h.push([w,C])}})();var m,y,b,g,v,D,S={entries:s(function(){return h},"entries"),forEach:s(function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,C=c(h),_;try{for(C.s();!(_=C.n()).done;){var k=o(_.value,2),B=k[0],W=k[1];w.call(E,W,B,h)}}catch(z){C.e(z)}finally{C.f()}},"forEach"),get:s(function(w){var E=h.find(function(C){return w.name===C[0].name&&(0,t.dequal)(w.attributes,C[0].attributes)});return E&&E[1]},"get"),has:s(function(w){return!!S.get(w)},"has"),keys:s(function(){return h.map(function(w){var E=o(w,1),C=E[0];return C})},"keys"),values:s(function(){return h.map(function(w){var E=o(w,2),C=E[1];return C})},"values")},P=(0,r.default)(S,S.entries());e.default=P}),l5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(rs()),r=n(wh());function n(E){return E&&E.__esModule?E:{default:E}}s(n,"_interopRequireDefault");function a(E,C){return l(E)||i(E,C)||c(E,C)||o()}s(a,"_slicedToArray");function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
26
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}s(o,"_nonIterableRest");function i(E,C){var _=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(_!=null){var k=[],B=!0,W=!1,z,R;try{for(_=_.call(E);!(B=(z=_.next()).done)&&(k.push(z.value),!(C&&k.length===C));B=!0);}catch(U){W=!0,R=U}finally{try{!B&&_.return!=null&&_.return()}finally{if(W)throw R}}return k}}s(i,"_iterableToArrayLimit");function l(E){if(Array.isArray(E))return E}s(l,"_arrayWithHoles");function u(E,C){var _=typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(!_){if(Array.isArray(E)||(_=c(E))||C&&E&&typeof E.length=="number"){_&&(E=_);var k=0,B=s(function(){},"F");return{s:B,n:s(function(){return k>=E.length?{done:!0}:{done:!1,value:E[k++]}},"n"),e:s(function(U){throw U},"e"),f:B}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
27
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var W=!0,z=!1,R;return{s:s(function(){_=_.call(E)},"s"),n:s(function(){var U=_.next();return W=U.done,U},"n"),e:s(function(U){z=!0,R=U},"e"),f:s(function(){try{!W&&_.return!=null&&_.return()}finally{if(z)throw R}},"f")}}s(u,"_createForOfIteratorHelper");function c(E,C){if(E){if(typeof E=="string")return p(E,C);var _=Object.prototype.toString.call(E).slice(8,-1);if(_==="Object"&&E.constructor&&(_=E.constructor.name),_==="Map"||_==="Set")return Array.from(E);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return p(E,C)}}s(c,"_unsupportedIterableToArray");function p(E,C){(C==null||C>E.length)&&(C=E.length);for(var _=0,k=new Array(C);_<C;_++)k[_]=E[_];return k}s(p,"_arrayLikeToArray");var d=[],h=r.default.keys();for(S=0;S<h.length;S++)if(f=h[S],m=r.default.get(f),y=[],m){for(b=[].concat(m.baseConcepts,m.relatedConcepts),D=0;D<b.length;D++)g=b[D],g.module==="HTML"&&(v=g.concept,v!=null&&y.push(v));y.length>0&&d.push([f,y])}var f,m,y,b,g,v,D,S,P={entries:s(function(){return d},"entries"),forEach:s(function(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,_=u(d),k;try{for(_.s();!(k=_.n()).done;){var B=a(k.value,2),W=B[0],z=B[1];E.call(C,z,W,d)}}catch(R){_.e(R)}finally{_.f()}},"forEach"),get:s(function(E){var C=d.find(function(_){return _[0]===E});return C&&C[1]},"get"),has:s(function(E){return!!P.get(E)},"has"),keys:s(function(){return d.map(function(E){var C=a(E,1),_=C[0];return _})},"keys"),values:s(function(){return d.map(function(E){var C=a(E,2),_=C[1];return _})},"values")},w=(0,t.default)(P,P.entries());e.default=w}),u5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.roles=e.roleElements=e.elementRoles=e.dom=e.aria=void 0;var t=i(SM()),r=i(_M()),n=i(wh()),a=i(s5()),o=i(l5());function i(h){return h&&h.__esModule?h:{default:h}}s(i,"_interopRequireDefault");var l=t.default;e.aria=l;var u=r.default;e.dom=u;var c=n.default;e.roles=c;var p=a.default;e.elementRoles=p;var d=o.default;e.roleElements=d}),c5=O((e,t)=>{var r=(function(){var n=String.fromCharCode,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function l(c,p){if(!i[c]){i[c]={};for(var d=0;d<c.length;d++)i[c][c.charAt(d)]=d}return i[c][p]}s(l,"getBaseValue");var u={compressToBase64:s(function(c){if(c==null)return"";var p=u._compress(c,6,function(d){return a.charAt(d)});switch(p.length%4){default:case 0:return p;case 1:return p+"===";case 2:return p+"==";case 3:return p+"="}},"compressToBase64"),decompressFromBase64:s(function(c){return c==null?"":c==""?null:u._decompress(c.length,32,function(p){return l(a,c.charAt(p))})},"decompressFromBase64"),compressToUTF16:s(function(c){return c==null?"":u._compress(c,15,function(p){return n(p+32)})+" "},"compressToUTF16"),decompressFromUTF16:s(function(c){return c==null?"":c==""?null:u._decompress(c.length,16384,function(p){return c.charCodeAt(p)-32})},"decompressFromUTF16"),compressToUint8Array:s(function(c){for(var p=u.compress(c),d=new Uint8Array(p.length*2),h=0,f=p.length;h<f;h++){var m=p.charCodeAt(h);d[h*2]=m>>>8,d[h*2+1]=m%256}return d},"compressToUint8Array"),decompressFromUint8Array:s(function(c){if(c==null)return u.decompress(c);for(var p=new Array(c.length/2),d=0,h=p.length;d<h;d++)p[d]=c[d*2]*256+c[d*2+1];var f=[];return p.forEach(function(m){f.push(n(m))}),u.decompress(f.join(""))},"decompressFromUint8Array"),compressToEncodedURIComponent:s(function(c){return c==null?"":u._compress(c,6,function(p){return o.charAt(p)})},"compressToEncodedURIComponent"),decompressFromEncodedURIComponent:s(function(c){return c==null?"":c==""?null:(c=c.replace(/ /g,"+"),u._decompress(c.length,32,function(p){return l(o,c.charAt(p))}))},"decompressFromEncodedURIComponent"),compress:s(function(c){return u._compress(c,16,function(p){return n(p)})},"compress"),_compress:s(function(c,p,d){if(c==null)return"";var h,f,m={},y={},b="",g="",v="",D=2,S=3,P=2,w=[],E=0,C=0,_;for(_=0;_<c.length;_+=1)if(b=c.charAt(_),Object.prototype.hasOwnProperty.call(m,b)||(m[b]=S++,y[b]=!0),g=v+b,Object.prototype.hasOwnProperty.call(m,g))v=g;else{if(Object.prototype.hasOwnProperty.call(y,v)){if(v.charCodeAt(0)<256){for(h=0;h<P;h++)E=E<<1,C==p-1?(C=0,w.push(d(E)),E=0):C++;for(f=v.charCodeAt(0),h=0;h<8;h++)E=E<<1|f&1,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=f>>1}else{for(f=1,h=0;h<P;h++)E=E<<1|f,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=0;for(f=v.charCodeAt(0),h=0;h<16;h++)E=E<<1|f&1,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=f>>1}D--,D==0&&(D=Math.pow(2,P),P++),delete y[v]}else for(f=m[v],h=0;h<P;h++)E=E<<1|f&1,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=f>>1;D--,D==0&&(D=Math.pow(2,P),P++),m[g]=S++,v=String(b)}if(v!==""){if(Object.prototype.hasOwnProperty.call(y,v)){if(v.charCodeAt(0)<256){for(h=0;h<P;h++)E=E<<1,C==p-1?(C=0,w.push(d(E)),E=0):C++;for(f=v.charCodeAt(0),h=0;h<8;h++)E=E<<1|f&1,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=f>>1}else{for(f=1,h=0;h<P;h++)E=E<<1|f,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=0;for(f=v.charCodeAt(0),h=0;h<16;h++)E=E<<1|f&1,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=f>>1}D--,D==0&&(D=Math.pow(2,P),P++),delete y[v]}else for(f=m[v],h=0;h<P;h++)E=E<<1|f&1,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=f>>1;D--,D==0&&(D=Math.pow(2,P),P++)}for(f=2,h=0;h<P;h++)E=E<<1|f&1,C==p-1?(C=0,w.push(d(E)),E=0):C++,f=f>>1;for(;;)if(E=E<<1,C==p-1){w.push(d(E));break}else C++;return w.join("")},"_compress"),decompress:s(function(c){return c==null?"":c==""?null:u._decompress(c.length,32768,function(p){return c.charCodeAt(p)})},"decompress"),_decompress:s(function(c,p,d){var h=[],f=4,m=4,y=3,b="",g=[],v,D,S,P,w,E,C,_={val:d(0),position:p,index:1};for(v=0;v<3;v+=1)h[v]=v;for(S=0,w=Math.pow(2,2),E=1;E!=w;)P=_.val&_.position,_.position>>=1,_.position==0&&(_.position=p,_.val=d(_.index++)),S|=(P>0?1:0)*E,E<<=1;switch(S){case 0:for(S=0,w=Math.pow(2,8),E=1;E!=w;)P=_.val&_.position,_.position>>=1,_.position==0&&(_.position=p,_.val=d(_.index++)),S|=(P>0?1:0)*E,E<<=1;C=n(S);break;case 1:for(S=0,w=Math.pow(2,16),E=1;E!=w;)P=_.val&_.position,_.position>>=1,_.position==0&&(_.position=p,_.val=d(_.index++)),S|=(P>0?1:0)*E,E<<=1;C=n(S);break;case 2:return""}for(h[3]=C,D=C,g.push(C);;){if(_.index>c)return"";for(S=0,w=Math.pow(2,y),E=1;E!=w;)P=_.val&_.position,_.position>>=1,_.position==0&&(_.position=p,_.val=d(_.index++)),S|=(P>0?1:0)*E,E<<=1;switch(C=S){case 0:for(S=0,w=Math.pow(2,8),E=1;E!=w;)P=_.val&_.position,_.position>>=1,_.position==0&&(_.position=p,_.val=d(_.index++)),S|=(P>0?1:0)*E,E<<=1;h[m++]=n(S),C=m-1,f--;break;case 1:for(S=0,w=Math.pow(2,16),E=1;E!=w;)P=_.val&_.position,_.position>>=1,_.position==0&&(_.position=p,_.val=d(_.index++)),S|=(P>0?1:0)*E,E<<=1;h[m++]=n(S),C=m-1,f--;break;case 2:return g.join("")}if(f==0&&(f=Math.pow(2,y),y++),h[C])b=h[C];else if(C===m)b=D+D.charAt(0);else return null;g.push(b),h[m++]=D+b.charAt(0),f--,D=b,f==0&&(f=Math.pow(2,y),y++)}},"_decompress")};return u})();typeof define=="function"&&define.amd?define(function(){return r}):typeof t<"u"&&t!=null?t.exports=r:typeof angular<"u"&&angular!=null&&angular.module("LZString",[]).factory("LZString",function(){return r})}),sC=O((e,t)=>{(function(r){if(typeof e=="object"&&typeof t<"u")t.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var n;typeof window<"u"?n=window:typeof global<"u"?n=global:typeof self<"u"?n=self:n=this,n.memoizerific=r()}})(function(){return s(function r(n,a,o){function i(c,p){if(!a[c]){if(!n[c]){var d=typeof Os=="function"&&Os;if(!p&&d)return d(c,!0);if(l)return l(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var f=a[c]={exports:{}};n[c][0].call(f.exports,function(m){var y=n[c][1][m];return i(y||m)},f,f.exports,r,n,a,o)}return a[c].exports}s(i,"s");for(var l=typeof Os=="function"&&Os,u=0;u<o.length;u++)i(o[u]);return i},"e")({1:[function(r,n,a){n.exports=function(o){if(typeof Map!="function"||o){var i=r("./similar");return new i}else return new Map}},{"./similar":2}],2:[function(r,n,a){function o(){return this.list=[],this.lastItem=void 0,this.size=0,this}s(o,"Similar"),o.prototype.get=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i))return this.lastItem.val;if(l=this.indexOf(i),l>=0)return this.lastItem=this.list[l],this.list[l].val},o.prototype.set=function(i,l){var u;return this.lastItem&&this.isEqual(this.lastItem.key,i)?(this.lastItem.val=l,this):(u=this.indexOf(i),u>=0?(this.lastItem=this.list[u],this.list[u].val=l,this):(this.lastItem={key:i,val:l},this.list.push(this.lastItem),this.size++,this))},o.prototype.delete=function(i){var l;if(this.lastItem&&this.isEqual(this.lastItem.key,i)&&(this.lastItem=void 0),l=this.indexOf(i),l>=0)return this.size--,this.list.splice(l,1)[0]},o.prototype.has=function(i){var l;return this.lastItem&&this.isEqual(this.lastItem.key,i)?!0:(l=this.indexOf(i),l>=0?(this.lastItem=this.list[l],!0):!1)},o.prototype.forEach=function(i,l){var u;for(u=0;u<this.size;u++)i.call(l||this,this.list[u].val,this.list[u].key,this)},o.prototype.indexOf=function(i){var l;for(l=0;l<this.size;l++)if(this.isEqual(this.list[l].key,i))return l;return-1},o.prototype.isEqual=function(i,l){return i===l||i!==i&&l!==l},n.exports=o},{}],3:[function(r,n,a){var o=r("map-or-similar");n.exports=function(c){var p=new o(!1),d=[];return function(h){var f=s(function(){var m=p,y,b,g=arguments.length-1,v=Array(g+1),D=!0,S;if((f.numArgs||f.numArgs===0)&&f.numArgs!==g+1)throw new Error("Memoizerific functions should always be called with the same number of arguments");for(S=0;S<g;S++){if(v[S]={cacheItem:m,arg:arguments[S]},m.has(arguments[S])){m=m.get(arguments[S]);continue}D=!1,y=new o(!1),m.set(arguments[S],y),m=y}return D&&(m.has(arguments[g])?b=m.get(arguments[g]):D=!1),D||(b=h.apply(null,arguments),m.set(arguments[g],b)),c>0&&(v[g]={cacheItem:m,arg:arguments[g]},D?i(d,v):d.push(v),d.length>c&&l(d.shift())),f.wasMemoized=D,f.numArgs=g+1,b},"memoizerific");return f.limit=c,f.wasMemoized=!1,f.cache=p,f.lru=d,f}};function i(c,p){var d=c.length,h=p.length,f,m,y;for(m=0;m<d;m++){for(f=!0,y=0;y<h;y++)if(!u(c[m][y].arg,p[y].arg)){f=!1;break}if(f)break}c.push(c.splice(m,1)[0])}s(i,"moveToMostRecentLru");function l(c){var p=c.length,d=c[p-1],h,f;for(d.cacheItem.delete(d.arg),f=p-2;f>=0&&(d=c[f],h=d.cacheItem.get(d.arg),!h||!h.size);f--)d.cacheItem.delete(d.arg)}s(l,"removeCachedResult");function u(c,p){return c===p||c!==c&&p!==p}s(u,"isEqual")},{"map-or-similar":1}]},{},[3])(3)})}),lC=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.encodeString=n;var t=Array.from({length:256},(a,o)=>"%"+((o<16?"0":"")+o.toString(16)).toUpperCase()),r=new Int8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,1,0,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,0]);function n(a){let o=a.length;if(o===0)return"";let i="",l=0,u=0;e:for(;u<o;u++){let c=a.charCodeAt(u);for(;c<128;){if(r[c]!==1&&(l<u&&(i+=a.slice(l,u)),l=u+1,i+=t[c]),++u===o)break e;c=a.charCodeAt(u)}if(l<u&&(i+=a.slice(l,u)),c<2048){l=u+1,i+=t[192|c>>6]+t[128|c&63];continue}if(c<55296||c>=57344){l=u+1,i+=t[224|c>>12]+t[128|c>>6&63]+t[128|c&63];continue}if(++u,u>=o)throw new Error("URI malformed");let p=a.charCodeAt(u)&1023;l=u+1,c=65536+((c&1023)<<10|p),i+=t[240|c>>18]+t[128|c>>12&63]+t[128|c>>6&63]+t[128|c&63]}return l===0?a:l<o?i+a.slice(l):i}s(n,"encodeString")}),xh=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.defaultOptions=e.defaultShouldSerializeObject=e.defaultValueSerializer=void 0;var t=lC(),r=s(o=>{switch(typeof o){case"string":return(0,t.encodeString)(o);case"bigint":case"boolean":return""+o;case"number":if(Number.isFinite(o))return o<1e21?""+o:(0,t.encodeString)(""+o);break}return o instanceof Date?(0,t.encodeString)(o.toISOString()):""},"defaultValueSerializer");e.defaultValueSerializer=r;var n=s(o=>o instanceof Date,"defaultShouldSerializeObject");e.defaultShouldSerializeObject=n;var a=s(o=>o,"identityFunc");e.defaultOptions={nesting:!0,nestingSyntax:"dot",arrayRepeat:!1,arrayRepeatSyntax:"repeat",delimiter:38,valueDeserializer:a,valueSerializer:e.defaultValueSerializer,keyDeserializer:a,shouldSerializeObject:e.defaultShouldSerializeObject}}),uC=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getDeepObject=a,e.stringifyObject=p;var t=xh(),r=lC();function n(d){return d==="__proto__"||d==="constructor"||d==="prototype"}s(n,"isPrototypeKey");function a(d,h,f,m,y){if(n(h))return d;let b=d[h];return typeof b=="object"&&b!==null?b:!m&&(y||typeof f=="number"||typeof f=="string"&&f*0===0&&f.indexOf(".")===-1)?d[h]=[]:d[h]={}}s(a,"getDeepObject");var o=20,i="[]",l="[",u="]",c=".";function p(d,h,f=0,m,y){let{nestingSyntax:b=t.defaultOptions.nestingSyntax,arrayRepeat:g=t.defaultOptions.arrayRepeat,arrayRepeatSyntax:v=t.defaultOptions.arrayRepeatSyntax,nesting:D=t.defaultOptions.nesting,delimiter:S=t.defaultOptions.delimiter,valueSerializer:P=t.defaultOptions.valueSerializer,shouldSerializeObject:w=t.defaultOptions.shouldSerializeObject}=h,E=typeof S=="number"?String.fromCharCode(S):S,C=y===!0&&g,_=b==="dot"||b==="js"&&!y;if(f>o)return"";let k="",B=!0,W=!1;for(let z in d){let R=d[z],U;m?(U=m,C?v==="bracket"&&(U+=i):_?(U+=c,U+=z):(U+=l,U+=z,U+=u)):U=z,B||(k+=E),typeof R=="object"&&R!==null&&!w(R)?(W=R.pop!==void 0,(D||g&&W)&&(k+=p(R,h,f+1,U,W))):(k+=(0,r.encodeString)(U),k+="=",k+=P(R,z)),B&&(B=!1)}return k}s(p,"stringifyObject")}),p5=O((e,t)=>{var r=12,n=0,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,7,7,7,7,7,7,7,7,7,7,7,7,8,7,7,10,9,9,9,11,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,24,36,48,60,72,84,96,0,12,12,12,0,0,0,0,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,0,0,24,24,24,0,0,0,0,0,0,0,0,0,24,24,0,0,0,0,0,0,0,0,0,0,48,48,48,0,0,0,0,0,0,0,0,0,0,48,48,0,0,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,127,63,63,63,0,31,15,15,15,7,7,7];function o(u){var c=u.indexOf("%");if(c===-1)return u;for(var p=u.length,d="",h=0,f=0,m=c,y=r;c>-1&&c<p;){var b=l(u[c+1],4),g=l(u[c+2],0),v=b|g,D=a[v];if(y=a[256+y+D],f=f<<6|v&a[364+D],y===r)d+=u.slice(h,m),d+=f<=65535?String.fromCharCode(f):String.fromCharCode(55232+(f>>10),56320+(f&1023)),f=0,h=c+3,c=m=u.indexOf("%",h);else{if(y===n)return null;if(c+=3,c<p&&u.charCodeAt(c)===37)continue;return null}}return d+u.slice(h)}s(o,"decodeURIComponent");var i={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function l(u,c){var p=i[u];return p===void 0?255:p<<c}s(l,"hexCodeToInt"),t.exports=o}),d5=O(e=>{var t=e&&e.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.numberValueDeserializer=e.numberKeyDeserializer=void 0,e.parse=p;var r=uC(),n=xh(),a=t(p5()),o=s(d=>{let h=Number(d);return Number.isNaN(h)?d:h},"numberKeyDeserializer");e.numberKeyDeserializer=o;var i=s(d=>{let h=Number(d);return Number.isNaN(h)?d:h},"numberValueDeserializer");e.numberValueDeserializer=i;var l=/\+/g,u=s(function(){},"Empty");u.prototype=Object.create(null);function c(d,h,f,m,y){let b=d.substring(h,f);return m&&(b=b.replace(l," ")),y&&(b=(0,a.default)(b)||b),b}s(c,"computeKeySlice");function p(d,h){let{valueDeserializer:f=n.defaultOptions.valueDeserializer,keyDeserializer:m=n.defaultOptions.keyDeserializer,arrayRepeatSyntax:y=n.defaultOptions.arrayRepeatSyntax,nesting:b=n.defaultOptions.nesting,arrayRepeat:g=n.defaultOptions.arrayRepeat,nestingSyntax:v=n.defaultOptions.nestingSyntax,delimiter:D=n.defaultOptions.delimiter}=h??{},S=typeof D=="string"?D.charCodeAt(0):D,P=v==="js",w=new u;if(typeof d!="string")return w;let E=d.length,C="",_=-1,k=-1,B=-1,W=w,z,R="",U="",j=!1,Y=!1,Q=!1,ae=!1,le=!1,M=!1,L=!1,K=0,X=-1,ie=-1,te=-1;for(let ue=0;ue<E+1;ue++){if(K=ue!==E?d.charCodeAt(ue):S,K===S){if(L=k>_,L||(k=ue),B!==k-1&&(U=c(d,B+1,X>-1?X:k,Q,j),R=m(U),z!==void 0&&(W=(0,r.getDeepObject)(W,z,R,P&&le,P&&M))),L||R!==""){L&&(C=d.slice(k+1,ue),ae&&(C=C.replace(l," ")),Y&&(C=(0,a.default)(C)||C));let ve=f(C,R);if(g){let je=W[R];je===void 0?X>-1?W[R]=[ve]:W[R]=ve:je.pop?je.push(ve):W[R]=[je,ve]}else W[R]=ve}C="",_=ue,k=ue,j=!1,Y=!1,Q=!1,ae=!1,le=!1,M=!1,X=-1,B=ue,W=w,z=void 0,R=""}else K===93?(g&&y==="bracket"&&te===91&&(X=ie),b&&(v==="index"||P)&&k<=_&&(B!==ie&&(U=c(d,B+1,ue,Q,j),R=m(U),z!==void 0&&(W=(0,r.getDeepObject)(W,z,R,void 0,P)),z=R,Q=!1,j=!1),B=ue,M=!0,le=!1)):K===46?b&&(v==="dot"||P)&&k<=_&&(B!==ie&&(U=c(d,B+1,ue,Q,j),R=m(U),z!==void 0&&(W=(0,r.getDeepObject)(W,z,R,P)),z=R,Q=!1,j=!1),le=!0,M=!1,B=ue):K===91?b&&(v==="index"||P)&&k<=_&&(B!==ie&&(U=c(d,B+1,ue,Q,j),R=m(U),P&&z!==void 0&&(W=(0,r.getDeepObject)(W,z,R,P)),z=R,Q=!1,j=!1,le=!1,M=!0),B=ue):K===61?k<=_?k=ue:Y=!0:K===43?k>_?ae=!0:Q=!0:K===37&&(k>_?Y=!0:j=!0);ie=ue,te=K}return w}s(p,"parse")}),f5=O(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=r;var t=uC();function r(n,a){if(n===null||typeof n!="object")return"";let o=a??{};return(0,t.stringifyObject)(n,o)}s(r,"stringify")}),Ah=O(e=>{var t=e&&e.__createBinding||(Object.create?function(o,i,l,u){u===void 0&&(u=l);var c=Object.getOwnPropertyDescriptor(i,l);(!c||("get"in c?!i.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:s(function(){return i[l]},"get")}),Object.defineProperty(o,u,c)}:function(o,i,l,u){u===void 0&&(u=l),o[u]=i[l]}),r=e&&e.__exportStar||function(o,i){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(i,l)&&t(i,o,l)};Object.defineProperty(e,"__esModule",{value:!0}),e.stringify=e.parse=void 0;var n=d5();Object.defineProperty(e,"parse",{enumerable:!0,get:s(function(){return n.parse},"get")});var a=f5();Object.defineProperty(e,"stringify",{enumerable:!0,get:s(function(){return a.stringify},"get")}),r(xh(),e)}),cC=O((e,t)=>{t.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
28
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}}),h5=O((e,t)=>{t.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}}),pC=O((e,t)=>{t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}}),m5=O((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}}),y5=O(e=>{var t=e&&e.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0});var r=t(m5()),n=String.fromCodePoint||function(o){var i="";return o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),i};function a(o){return o>=55296&&o<=57343||o>1114111?"�":(o in r.default&&(o=r.default[o]),n(o))}s(a,"decodeCodePoint"),e.default=a}),sv=O(e=>{var t=e&&e.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeHTML=e.decodeHTMLStrict=e.decodeXML=void 0;var r=t(cC()),n=t(h5()),a=t(pC()),o=t(y5()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;e.decodeXML=l(a.default),e.decodeHTMLStrict=l(r.default);function l(p){var d=c(p);return function(h){return String(h).replace(i,d)}}s(l,"getStrictDecoder");var u=s(function(p,d){return p<d?1:-1},"sorter");e.decodeHTML=(function(){for(var p=Object.keys(n.default).sort(u),d=Object.keys(r.default).sort(u),h=0,f=0;h<d.length;h++)p[f]===d[h]?(d[h]+=";?",f++):d[h]+=";";var m=new RegExp("&(?:"+d.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),y=c(r.default);function b(g){return g.substr(-1)!==";"&&(g+=";"),y(g)}return s(b,"replacer"),function(g){return String(g).replace(m,b)}})();function c(p){return s(function(d){if(d.charAt(1)==="#"){var h=d.charAt(2);return h==="X"||h==="x"?o.default(parseInt(d.substr(3),16)):o.default(parseInt(d.substr(2),10))}return p[d.slice(1,-1)]||d},"replace")}s(c,"getReplacer")}),lv=O(e=>{var t=e&&e.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(e,"__esModule",{value:!0}),e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=void 0;var r=t(pC()),n=u(r.default),a=c(n);e.encodeXML=g(n);var o=t(cC()),i=u(o.default),l=c(i);e.encodeHTML=f(i,l),e.encodeNonAsciiHTML=g(i);function u(v){return Object.keys(v).sort().reduce(function(D,S){return D[v[S]]="&"+S+";",D},{})}s(u,"getInverseObj");function c(v){for(var D=[],S=[],P=0,w=Object.keys(v);P<w.length;P++){var E=w[P];E.length===1?D.push("\\"+E):S.push(E)}D.sort();for(var C=0;C<D.length-1;C++){for(var _=C;_<D.length-1&&D[_].charCodeAt(1)+1===D[_+1].charCodeAt(1);)_+=1;var k=1+_-C;k<3||D.splice(C,k,D[C]+"-"+D[_])}return S.unshift("["+D.join("")+"]"),new RegExp(S.join("|"),"g")}s(c,"getInverseReplacer");var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,d=String.prototype.codePointAt!=null?(function(v){return v.codePointAt(0)}):(function(v){return(v.charCodeAt(0)-55296)*1024+v.charCodeAt(1)-56320+65536});function h(v){return"&#x"+(v.length>1?d(v):v.charCodeAt(0)).toString(16).toUpperCase()+";"}s(h,"singleCharReplacer");function f(v,D){return function(S){return S.replace(D,function(P){return v[P]}).replace(p,h)}}s(f,"getInverse");var m=new RegExp(a.source+"|"+p.source,"g");function y(v){return v.replace(m,h)}s(y,"escape"),e.escape=y;function b(v){return v.replace(a,h)}s(b,"escapeUTF8"),e.escapeUTF8=b;function g(v){return function(D){return D.replace(m,function(S){return v[S]||h(S)})}}s(g,"getASCIIEncoder")}),g5=O(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=sv(),r=lv();function n(u,c){return(!c||c<=0?t.decodeXML:t.decodeHTML)(u)}s(n,"decode"),e.decode=n;function a(u,c){return(!c||c<=0?t.decodeXML:t.decodeHTMLStrict)(u)}s(a,"decodeStrict"),e.decodeStrict=a;function o(u,c){return(!c||c<=0?r.encodeXML:r.encodeHTML)(u)}s(o,"encode"),e.encode=o;var i=lv();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:s(function(){return i.encodeXML},"get")}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:s(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:s(function(){return i.encodeNonAsciiHTML},"get")}),Object.defineProperty(e,"escape",{enumerable:!0,get:s(function(){return i.escape},"get")}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:s(function(){return i.escapeUTF8},"get")}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:s(function(){return i.encodeHTML},"get")}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:s(function(){return i.encodeHTML},"get")});var l=sv();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:s(function(){return l.decodeXML},"get")}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:s(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:s(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:s(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:s(function(){return l.decodeHTML},"get")}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:s(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:s(function(){return l.decodeHTMLStrict},"get")}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:s(function(){return l.decodeXML},"get")})}),b5=O((e,t)=>{function r(R,U){if(!(R instanceof U))throw new TypeError("Cannot call a class as a function")}s(r,"_classCallCheck");function n(R,U){for(var j=0;j<U.length;j++){var Y=U[j];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(R,Y.key,Y)}}s(n,"_defineProperties");function a(R,U,j){return U&&n(R.prototype,U),j&&n(R,j),R}s(a,"_createClass");function o(R,U){var j=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!j){if(Array.isArray(R)||(j=i(R))||U&&R&&typeof R.length=="number"){j&&(R=j);var Y=0,Q=s(function(){},"F");return{s:Q,n:s(function(){return Y>=R.length?{done:!0}:{done:!1,value:R[Y++]}},"n"),e:s(function(L){throw L},"e"),f:Q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ae=!0,le=!1,M;return{s:s(function(){j=j.call(R)},"s"),n:s(function(){var L=j.next();return ae=L.done,L},"n"),e:s(function(L){le=!0,M=L},"e"),f:s(function(){try{!ae&&j.return!=null&&j.return()}finally{if(le)throw M}},"f")}}s(o,"_createForOfIteratorHelper");function i(R,U){if(R){if(typeof R=="string")return l(R,U);var j=Object.prototype.toString.call(R).slice(8,-1);if(j==="Object"&&R.constructor&&(j=R.constructor.name),j==="Map"||j==="Set")return Array.from(R);if(j==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(j))return l(R,U)}}s(i,"_unsupportedIterableToArray");function l(R,U){(U==null||U>R.length)&&(U=R.length);for(var j=0,Y=new Array(U);j<U;j++)Y[j]=R[j];return Y}s(l,"_arrayLikeToArray");var u=g5(),c={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:p()};function p(){var R={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return v(0,5).forEach(function(U){v(0,5).forEach(function(j){v(0,5).forEach(function(Y){return d(U,j,Y,R)})})}),v(0,23).forEach(function(U){var j=U+232,Y=h(U*10+8);R[j]="#"+Y+Y+Y}),R}s(p,"getDefaultColors");function d(R,U,j,Y){var Q=16+R*36+U*6+j,ae=R>0?R*40+55:0,le=U>0?U*40+55:0,M=j>0?j*40+55:0;Y[Q]=f([ae,le,M])}s(d,"setStyleColor");function h(R){for(var U=R.toString(16);U.length<2;)U="0"+U;return U}s(h,"toHexString");function f(R){var U=[],j=o(R),Y;try{for(j.s();!(Y=j.n()).done;){var Q=Y.value;U.push(h(Q))}}catch(ae){j.e(ae)}finally{j.f()}return"#"+U.join("")}s(f,"toColorHexString");function m(R,U,j,Y){var Q;return U==="text"?Q=P(j,Y):U==="display"?Q=b(R,j,Y):U==="xterm256Foreground"?Q=C(R,Y.colors[j]):U==="xterm256Background"?Q=_(R,Y.colors[j]):U==="rgb"&&(Q=y(R,j)),Q}s(m,"generateOutput");function y(R,U){U=U.substring(2).slice(0,-1);var j=+U.substr(0,2),Y=U.substring(5).split(";"),Q=Y.map(function(ae){return("0"+Number(ae).toString(16)).substr(-2)}).join("");return E(R,(j===38?"color:#":"background-color:#")+Q)}s(y,"handleRgb");function b(R,U,j){U=parseInt(U,10);var Y={"-1":s(function(){return"<br/>"},"_"),0:s(function(){return R.length&&g(R)},"_"),1:s(function(){return w(R,"b")},"_"),3:s(function(){return w(R,"i")},"_"),4:s(function(){return w(R,"u")},"_"),8:s(function(){return E(R,"display:none")},"_"),9:s(function(){return w(R,"strike")},"_"),22:s(function(){return E(R,"font-weight:normal;text-decoration:none;font-style:normal")},"_"),23:s(function(){return k(R,"i")},"_"),24:s(function(){return k(R,"u")},"_"),39:s(function(){return C(R,j.fg)},"_"),49:s(function(){return _(R,j.bg)},"_"),53:s(function(){return E(R,"text-decoration:overline")},"_")},Q;return Y[U]?Q=Y[U]():4<U&&U<7?Q=w(R,"blink"):29<U&&U<38?Q=C(R,j.colors[U-30]):39<U&&U<48?Q=_(R,j.colors[U-40]):89<U&&U<98?Q=C(R,j.colors[8+(U-90)]):99<U&&U<108&&(Q=_(R,j.colors[8+(U-100)])),Q}s(b,"handleDisplay");function g(R){var U=R.slice(0);return R.length=0,U.reverse().map(function(j){return"</"+j+">"}).join("")}s(g,"resetStyles");function v(R,U){for(var j=[],Y=R;Y<=U;Y++)j.push(Y);return j}s(v,"range");function D(R){return function(U){return(R===null||U.category!==R)&&R!=="all"}}s(D,"notCategory");function S(R){R=parseInt(R,10);var U=null;return R===0?U="all":R===1?U="bold":2<R&&R<5?U="underline":4<R&&R<7?U="blink":R===8?U="hide":R===9?U="strike":29<R&&R<38||R===39||89<R&&R<98?U="foreground-color":(39<R&&R<48||R===49||99<R&&R<108)&&(U="background-color"),U}s(S,"categoryForCode");function P(R,U){return U.escapeXML?u.encodeXML(R):R}s(P,"pushText");function w(R,U,j){return j||(j=""),R.push(U),"<".concat(U).concat(j?' style="'.concat(j,'"'):"",">")}s(w,"pushTag");function E(R,U){return w(R,"span",U)}s(E,"pushStyle");function C(R,U){return w(R,"span","color:"+U)}s(C,"pushForegroundColor");function _(R,U){return w(R,"span","background-color:"+U)}s(_,"pushBackgroundColor");function k(R,U){var j;if(R.slice(-1)[0]===U&&(j=R.pop()),j)return"</"+U+">"}s(k,"closeTag");function B(R,U,j){var Y=!1,Q=3;function ae(){return""}s(ae,"remove");function le(Ce,Se){return j("xterm256Foreground",Se),""}s(le,"removeXterm256Foreground");function M(Ce,Se){return j("xterm256Background",Se),""}s(M,"removeXterm256Background");function L(Ce){return U.newline?j("display",-1):j("text",Ce),""}s(L,"newline");function K(Ce,Se){Y=!0,Se.trim().length===0&&(Se="0"),Se=Se.trimRight(";").split(";");var _e=o(Se),Ge;try{for(_e.s();!(Ge=_e.n()).done;){var lt=Ge.value;j("display",lt)}}catch(Dt){_e.e(Dt)}finally{_e.f()}return""}s(K,"ansiMess");function X(Ce){return j("text",Ce),""}s(X,"realText");function ie(Ce){return j("rgb",Ce),""}s(ie,"rgb");var te=[{pattern:/^\x08+/,sub:ae},{pattern:/^\x1b\[[012]?K/,sub:ae},{pattern:/^\x1b\[\(B/,sub:ae},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:ie},{pattern:/^\x1b\[38;5;(\d+)m/,sub:le},{pattern:/^\x1b\[48;5;(\d+)m/,sub:M},{pattern:/^\n/,sub:L},{pattern:/^\r+\n/,sub:L},{pattern:/^\r/,sub:L},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:K},{pattern:/^\x1b\[\d?J/,sub:ae},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:ae},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:ae},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:X}];function ue(Ce,Se){Se>Q&&Y||(Y=!1,R=R.replace(Ce.pattern,Ce.sub))}s(ue,"process");var ve=[],je=R,st=je.length;e:for(;st>0;){for(var Z=0,pe=0,ye=te.length;pe<ye;Z=++pe){var ge=te[Z];if(ue(ge,Z),R.length!==st){st=R.length;continue e}}if(R.length===st)break;ve.push(0),st=R.length}return ve}s(B,"tokenize");function W(R,U,j){return U!=="text"&&(R=R.filter(D(S(j))),R.push({token:U,data:j,category:S(j)})),R}s(W,"updateStickyStack");var z=(function(){function R(U){r(this,R),U=U||{},U.colors&&(U.colors=Object.assign({},c.colors,U.colors)),this.options=Object.assign({},c,U),this.stack=[],this.stickyStack=[]}return s(R,"Filter"),a(R,[{key:"toHtml",value:s(function(U){var j=this;U=typeof U=="string"?[U]:U;var Y=this.stack,Q=this.options,ae=[];return this.stickyStack.forEach(function(le){var M=m(Y,le.token,le.data,Q);M&&ae.push(M)}),B(U.join(""),Q,function(le,M){var L=m(Y,le,M,Q);L&&ae.push(L),Q.stream&&(j.stickyStack=W(j.stickyStack,le,M))}),Y.length&&ae.push(g(Y)),ae.join("")},"toHtml")}]),R})();t.exports=z}),v5=O((e,t)=>{(function(r,n){typeof e=="object"&&typeof t<"u"?t.exports=n():typeof define=="function"&&define.amd?define(n):(r=typeof globalThis<"u"?globalThis:r||self).BrowserDetector=n()})(e,function(){function r(u,c){for(var p=0;p<c.length;p++){var d=c[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(u,(h=d.key,f=void 0,typeof(f=(function(m,y){if(typeof m!="object"||m===null)return m;var b=m[Symbol.toPrimitive];if(b!==void 0){var g=b.call(m,y);if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(m)})(h,"string"))=="symbol"?f:String(f)),d)}var h,f}s(r,"e");var n={chrome:"Google Chrome",brave:"Brave",crios:"Google Chrome",edge:"Microsoft Edge",edg:"Microsoft Edge",edgios:"Microsoft Edge",fennec:"Mozilla Firefox",jsdom:"JsDOM",mozilla:"Mozilla Firefox",fxios:"Mozilla Firefox",msie:"Microsoft Internet Explorer",opera:"Opera",opios:"Opera",opr:"Opera",opt:"Opera",rv:"Microsoft Internet Explorer",safari:"Safari",samsungbrowser:"Samsung Browser",electron:"Electron"},a={android:"Android",androidTablet:"Android Tablet",cros:"Chrome OS",fennec:"Android Tablet",ipad:"IPad",iphone:"IPhone",jsdom:"JsDOM",linux:"Linux",mac:"Macintosh",tablet:"Android Tablet",win:"Windows","windows phone":"Windows Phone",xbox:"Microsoft Xbox"},o=s(function(u){var c=new RegExp("^-?\\d+(?:.\\d{0,".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,"})?")),p=Number(u).toString().match(c);return p?p[0]:null},"n"),i=s(function(){return typeof window<"u"?window.navigator:null},"i"),l=(function(){function u(h){var f;(function(m,y){if(!(m instanceof y))throw new TypeError("Cannot call a class as a function")})(this,u),this.userAgent=h||((f=i())===null||f===void 0?void 0:f.userAgent)||null}s(u,"t");var c,p,d;return c=u,p=[{key:"parseUserAgent",value:s(function(h){var f,m,y,b={},g=h||this.userAgent||"",v=g.toLowerCase().replace(/\s\s+/g," "),D=/(edge)\/([\w.]+)/.exec(v)||/(edg)[/]([\w.]+)/.exec(v)||/(opr)[/]([\w.]+)/.exec(v)||/(opt)[/]([\w.]+)/.exec(v)||/(fxios)[/]([\w.]+)/.exec(v)||/(edgios)[/]([\w.]+)/.exec(v)||/(jsdom)[/]([\w.]+)/.exec(v)||/(samsungbrowser)[/]([\w.]+)/.exec(v)||/(electron)[/]([\w.]+)/.exec(v)||/(chrome)[/]([\w.]+)/.exec(v)||/(crios)[/]([\w.]+)/.exec(v)||/(opios)[/]([\w.]+)/.exec(v)||/(version)(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(v)||/(webkit)[/]([\w.]+).*(version)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(v)||/(applewebkit)[/]([\w.]+).*(safari)[/]([\w.]+)/.exec(v)||/(webkit)[/]([\w.]+)/.exec(v)||/(opera)(?:.*version|)[/]([\w.]+)/.exec(v)||/(msie) ([\w.]+)/.exec(v)||/(fennec)[/]([\w.]+)/.exec(v)||v.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(v)||v.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(v)||[],S=/(ipad)/.exec(v)||/(ipod)/.exec(v)||/(iphone)/.exec(v)||/(jsdom)/.exec(v)||/(windows phone)/.exec(v)||/(xbox)/.exec(v)||/(win)/.exec(v)||/(tablet)/.exec(v)||/(android)/.test(v)&&/(mobile)/.test(v)===!1&&["androidTablet"]||/(android)/.exec(v)||/(mac)/.exec(v)||/(linux)/.exec(v)||/(cros)/.exec(v)||[],P=D[5]||D[3]||D[1]||null,w=S[0]||null,E=D[4]||D[2]||null,C=i();P==="chrome"&&typeof(C==null||(f=C.brave)===null||f===void 0?void 0:f.isBrave)=="function"&&(P="brave"),P&&(b[P]=!0),w&&(b[w]=!0);var _=!!(b.tablet||b.android||b.androidTablet),k=!!(b.ipad||b.tablet||b.androidTablet),B=!!(b.android||b.androidTablet||b.tablet||b.ipad||b.ipod||b.iphone||b["windows phone"]),W=!!(b.cros||b.mac||b.linux||b.win),z=!!(b.brave||b.chrome||b.crios||b.opr||b.safari||b.edg||b.electron),R=!!(b.msie||b.rv);return{name:(m=n[P])!==null&&m!==void 0?m:null,platform:(y=a[w])!==null&&y!==void 0?y:null,userAgent:g,version:E,shortVersion:E?o(parseFloat(E),2):null,isAndroid:_,isTablet:k,isMobile:B,isDesktop:W,isWebkit:z,isIE:R}},"value")},{key:"getBrowserInfo",value:s(function(){var h=this.parseUserAgent();return{name:h.name,platform:h.platform,userAgent:h.userAgent,version:h.version,shortVersion:h.shortVersion}},"value")}],d=[{key:"VERSION",get:s(function(){return"3.4.0"},"get")}],p&&r(c.prototype,p),d&&r(c,d),Object.defineProperty(c,"prototype",{writable:!1}),u})();return l})}),Sh={};Jt(Sh,{ARGTYPES_INFO_REQUEST:()=>FC,ARGTYPES_INFO_RESPONSE:()=>td,CHANNEL_CREATED:()=>C5,CHANNEL_WS_DISCONNECT:()=>dC,CONFIG_ERROR:()=>fC,CREATE_NEW_STORYFILE_REQUEST:()=>w5,CREATE_NEW_STORYFILE_RESPONSE:()=>x5,CURRENT_STORY_WAS_SET:()=>Qp,DOCS_PREPARED:()=>hC,DOCS_RENDERED:()=>Th,FILE_COMPONENT_SEARCH_REQUEST:()=>A5,FILE_COMPONENT_SEARCH_RESPONSE:()=>S5,FORCE_REMOUNT:()=>fl,FORCE_RE_RENDER:()=>Ph,GLOBALS_UPDATED:()=>Di,NAVIGATE_URL:()=>_5,PLAY_FUNCTION_THREW_EXCEPTION:()=>mC,PRELOAD_ENTRIES:()=>gC,PREVIEW_BUILDER_PROGRESS:()=>T5,PREVIEW_INITIALIZED:()=>bC,PREVIEW_KEYDOWN:()=>vC,REGISTER_SUBSCRIPTION:()=>P5,REQUEST_WHATS_NEW_DATA:()=>q5,RESET_STORY_ARGS:()=>Dh,RESULT_WHATS_NEW_DATA:()=>M5,SAVE_STORY_REQUEST:()=>U5,SAVE_STORY_RESPONSE:()=>V5,SELECT_STORY:()=>D5,SET_CONFIG:()=>O5,SET_CURRENT_STORY:()=>Oh,SET_FILTER:()=>R5,SET_GLOBALS:()=>EC,SET_INDEX:()=>F5,SET_STORIES:()=>I5,SET_WHATS_NEW_CACHE:()=>L5,SHARED_STATE_CHANGED:()=>N5,SHARED_STATE_SET:()=>k5,STORIES_COLLAPSE_ALL:()=>B5,STORIES_EXPAND_ALL:()=>j5,STORY_ARGS_UPDATED:()=>CC,STORY_CHANGED:()=>wC,STORY_ERRORED:()=>xC,STORY_FINISHED:()=>ed,STORY_HOT_UPDATED:()=>DC,STORY_INDEX_INVALIDATED:()=>AC,STORY_MISSING:()=>Zp,STORY_PREPARED:()=>SC,STORY_RENDERED:()=>hl,STORY_RENDER_PHASE_CHANGED:()=>va,STORY_SPECIFIED:()=>_C,STORY_THREW_EXCEPTION:()=>TC,STORY_UNCHANGED:()=>PC,TELEMETRY_ERROR:()=>RC,TOGGLE_WHATS_NEW_NOTIFICATIONS:()=>$5,UNHANDLED_ERRORS_WHILE_PLAYING:()=>yC,UPDATE_GLOBALS:()=>Rh,UPDATE_QUERY_PARAMS:()=>OC,UPDATE_STORY_ARGS:()=>Fh,default:()=>E5});var _h=(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))(_h||{}),E5=_h,{CHANNEL_WS_DISCONNECT:dC,CHANNEL_CREATED:C5,CONFIG_ERROR:fC,CREATE_NEW_STORYFILE_REQUEST:w5,CREATE_NEW_STORYFILE_RESPONSE:x5,CURRENT_STORY_WAS_SET:Qp,DOCS_PREPARED:hC,DOCS_RENDERED:Th,FILE_COMPONENT_SEARCH_REQUEST:A5,FILE_COMPONENT_SEARCH_RESPONSE:S5,FORCE_RE_RENDER:Ph,FORCE_REMOUNT:fl,GLOBALS_UPDATED:Di,NAVIGATE_URL:_5,PLAY_FUNCTION_THREW_EXCEPTION:mC,UNHANDLED_ERRORS_WHILE_PLAYING:yC,PRELOAD_ENTRIES:gC,PREVIEW_INITIALIZED:bC,PREVIEW_BUILDER_PROGRESS:T5,PREVIEW_KEYDOWN:vC,REGISTER_SUBSCRIPTION:P5,RESET_STORY_ARGS:Dh,SELECT_STORY:D5,SET_CONFIG:O5,SET_CURRENT_STORY:Oh,SET_FILTER:R5,SET_GLOBALS:EC,SET_INDEX:F5,SET_STORIES:I5,SHARED_STATE_CHANGED:N5,SHARED_STATE_SET:k5,STORIES_COLLAPSE_ALL:B5,STORIES_EXPAND_ALL:j5,STORY_ARGS_UPDATED:CC,STORY_CHANGED:wC,STORY_ERRORED:xC,STORY_INDEX_INVALIDATED:AC,STORY_MISSING:Zp,STORY_PREPARED:SC,STORY_RENDER_PHASE_CHANGED:va,STORY_RENDERED:hl,STORY_FINISHED:ed,STORY_SPECIFIED:_C,STORY_THREW_EXCEPTION:TC,STORY_UNCHANGED:PC,STORY_HOT_UPDATED:DC,UPDATE_GLOBALS:Rh,UPDATE_QUERY_PARAMS:OC,UPDATE_STORY_ARGS:Fh,REQUEST_WHATS_NEW_DATA:q5,RESULT_WHATS_NEW_DATA:M5,SET_WHATS_NEW_CACHE:L5,TOGGLE_WHATS_NEW_NOTIFICATIONS:$5,TELEMETRY_ERROR:RC,SAVE_STORY_REQUEST:U5,SAVE_STORY_RESPONSE:V5,ARGTYPES_INFO_REQUEST:FC,ARGTYPES_INFO_RESPONSE:td}=_h,IC={};Jt(IC,{global:()=>he});var he=(()=>{let e;return typeof window<"u"?e=window:typeof globalThis<"u"?e=globalThis:typeof global<"u"?e=global:typeof self<"u"?e=self:e={},e})(),NC={"@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__"},H5=Object.keys(NC),kC={};Jt(kC,{Channel:()=>yu,HEARTBEAT_INTERVAL:()=>zw,HEARTBEAT_MAX_LATENCY:()=>Gw,PostMessageTransport:()=>Jw,WebsocketTransport:()=>Yw,createBrowserChannel:()=>Kw,default:()=>y8});function Le(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(l,u){var c=u.match(/\n([\t ]+|(?!\s).)/g);return c?l.concat(c.map(function(p){var d,h;return(h=(d=p.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&h!==void 0?h:0})):l},[]);if(a.length){var o=new RegExp(`
|
|
30
|
+
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(l){return l.replace(o,`
|
|
31
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,u){var c=i.match(/(?:^|\n)( *)$/),p=c?c[1]:"",d=l;typeof l=="string"&&l.includes(`
|
|
32
|
+
`)&&(d=String(l).split(`
|
|
33
|
+
`).map(function(h,f){return f===0?h:""+p+h}).join(`
|
|
34
|
+
`)),i+=d+n[u+1]}),i}s(Le,"dedent");var J5=Le,uv=new Map,z5="UNIVERSAL_STORE:",fr={PENDING:"PENDING",RESOLVED:"RESOLVED",REJECTED:"REJECTED"},Pn=class Re{constructor(t,r){if(this.debugging=!1,this.listeners=new Map([["*",new Set]]),this.getState=s(()=>(this.debug("getState",{state:this.state}),this.state),"getState"),this.subscribe=s((n,a)=>{let o=typeof n=="function",i=o?"*":n,l=o?n:a;if(this.debug("subscribe",{eventType:i,listener:l}),!l)throw new TypeError(`Missing first subscribe argument, or second if first is the event type, when subscribing to a UniversalStore with id '${this.id}'`);return this.listeners.has(i)||this.listeners.set(i,new Set),this.listeners.get(i).add(l),()=>{this.debug("unsubscribe",{eventType:i,listener:l}),this.listeners.has(i)&&(this.listeners.get(i).delete(l),this.listeners.get(i)?.size===0&&this.listeners.delete(i))}},"subscribe"),this.send=s(n=>{if(this.debug("send",{event:n}),this.status!==Re.Status.READY)throw new TypeError(Le`Cannot send event before store is ready. You can get the current status with store.status,
|
|
35
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
36
|
+
${JSON.stringify({event:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.emitToListeners(n,{actor:this.actor}),this.emitToChannel(n,{actor:this.actor})},"send"),this.debugging=t.debug??!1,!Re.isInternalConstructing)throw new TypeError("UniversalStore is not constructable - use UniversalStore.create() instead");if(Re.isInternalConstructing=!1,this.id=t.id,this.actorId=Date.now().toString(36)+Math.random().toString(36).substring(2),this.actorType=t.leader?Re.ActorType.LEADER:Re.ActorType.FOLLOWER,this.state=t.initialState,this.channelEventName=`${z5}${this.id}`,this.debug("constructor",{options:t,environmentOverrides:r,channelEventName:this.channelEventName}),this.actor.type===Re.ActorType.LEADER)this.syncing={state:fr.RESOLVED,promise:Promise.resolve()};else{let n,a,o=new Promise((i,l)=>{n=s(()=>{this.syncing.state===fr.PENDING&&(this.syncing.state=fr.RESOLVED,i())},"syncingResolve"),a=s(u=>{this.syncing.state===fr.PENDING&&(this.syncing.state=fr.REJECTED,l(u))},"syncingReject")});this.syncing={state:fr.PENDING,promise:o,resolve:n,reject:a}}this.getState=this.getState.bind(this),this.setState=this.setState.bind(this),this.subscribe=this.subscribe.bind(this),this.onStateChange=this.onStateChange.bind(this),this.send=this.send.bind(this),this.emitToChannel=this.emitToChannel.bind(this),this.prepareThis=this.prepareThis.bind(this),this.emitToListeners=this.emitToListeners.bind(this),this.handleChannelEvents=this.handleChannelEvents.bind(this),this.debug=this.debug.bind(this),this.channel=r?.channel??Re.preparation.channel,this.environment=r?.environment??Re.preparation.environment,this.channel&&this.environment?(Re.preparation.resolve({channel:this.channel,environment:this.environment}),this.prepareThis({channel:this.channel,environment:this.environment})):Re.preparation.promise.then(this.prepareThis)}static setupPreparationPromise(){let t,r,n=new Promise((a,o)=>{t=s(i=>{a(i)},"resolveRef"),r=s((...i)=>{o(i)},"rejectRef")});Re.preparation={resolve:t,reject:r,promise:n}}get actor(){return Object.freeze({id:this.actorId,type:this.actorType,environment:this.environment??Re.Environment.UNKNOWN})}get status(){if(!this.channel||!this.environment)return Re.Status.UNPREPARED;switch(this.syncing?.state){case fr.PENDING:case void 0:return Re.Status.SYNCING;case fr.REJECTED:return Re.Status.ERROR;case fr.RESOLVED:default:return Re.Status.READY}}untilReady(){return Promise.all([Re.preparation.promise,this.syncing?.promise])}static create(t){if(!t||typeof t?.id!="string")throw new TypeError("id is required and must be a string, when creating a UniversalStore");t.debug&&console.debug(Le`[UniversalStore]
|
|
37
|
+
create`,{options:t});let r=uv.get(t.id);if(r)return console.warn(Le`UniversalStore with id "${t.id}" already exists in this environment, re-using existing.
|
|
38
|
+
You should reuse the existing instance instead of trying to create a new one.`),r;Re.isInternalConstructing=!0;let n=new Re(t);return uv.set(t.id,n),n}static __prepare(t,r){Re.preparation.channel=t,Re.preparation.environment=r,Re.preparation.resolve({channel:t,environment:r})}setState(t){let r=this.state,n=typeof t=="function"?t(r):t;if(this.debug("setState",{newState:n,previousState:r,updater:t}),this.status!==Re.Status.READY)throw new TypeError(Le`Cannot set state before store is ready. You can get the current status with store.status,
|
|
39
|
+
or await store.readyPromise to wait for the store to be ready before sending events.
|
|
40
|
+
${JSON.stringify({newState:n,id:this.id,actor:this.actor,environment:this.environment},null,2)}`);this.state=n;let a={type:Re.InternalEventType.SET_STATE,payload:{state:n,previousState:r}};this.emitToChannel(a,{actor:this.actor}),this.emitToListeners(a,{actor:this.actor})}onStateChange(t){return this.debug("onStateChange",{listener:t}),this.subscribe(Re.InternalEventType.SET_STATE,({payload:r},n)=>{t(r.state,r.previousState,n)})}emitToChannel(t,r){this.debug("emitToChannel",{event:t,eventInfo:r,channel:!!this.channel}),this.channel?.emit(this.channelEventName,{event:t,eventInfo:r})}prepareThis({channel:t,environment:r}){this.channel=t,this.environment=r,this.debug("prepared",{channel:!!t,environment:r}),this.channel.on(this.channelEventName,this.handleChannelEvents),this.actor.type===Re.ActorType.LEADER?this.emitToChannel({type:Re.InternalEventType.LEADER_CREATED},{actor:this.actor}):(this.emitToChannel({type:Re.InternalEventType.FOLLOWER_CREATED},{actor:this.actor}),this.emitToChannel({type:Re.InternalEventType.EXISTING_STATE_REQUEST},{actor:this.actor}),setTimeout(()=>{this.syncing.reject(new TypeError(`No existing state found for follower with id: '${this.id}'. Make sure a leader with the same id exists before creating a follower.`))},1e3))}emitToListeners(t,r){let n=this.listeners.get(t.type),a=this.listeners.get("*");this.debug("emitToListeners",{event:t,eventInfo:r,eventTypeListeners:n,everythingListeners:a}),[...n??[],...a??[]].forEach(o=>o(t,r))}handleChannelEvents(t){let{event:r,eventInfo:n}=t;if([n.actor.id,n.forwardingActor?.id].includes(this.actor.id)){this.debug("handleChannelEvents: Ignoring event from self",{channelEvent:t});return}else if(this.syncing?.state===fr.PENDING&&r.type!==Re.InternalEventType.EXISTING_STATE_RESPONSE){this.debug("handleChannelEvents: Ignoring event while syncing",{channelEvent:t});return}if(this.debug("handleChannelEvents",{channelEvent:t}),this.actor.type===Re.ActorType.LEADER){let a=!0;switch(r.type){case Re.InternalEventType.EXISTING_STATE_REQUEST:a=!1;let o={type:Re.InternalEventType.EXISTING_STATE_RESPONSE,payload:this.state};this.debug("handleChannelEvents: responding to existing state request",{responseEvent:o}),this.emitToChannel(o,{actor:this.actor}),this.emitToListeners(o,{actor:this.actor});break;case Re.InternalEventType.LEADER_CREATED:a=!1,this.syncing.state=fr.REJECTED,this.debug("handleChannelEvents: erroring due to second leader being created",{event:r}),console.error(Le`Detected multiple UniversalStore leaders created with the same id "${this.id}".
|
|
41
|
+
Only one leader can exists at a time, your stores are now in an invalid state.
|
|
42
|
+
Leaders detected:
|
|
43
|
+
this: ${JSON.stringify(this.actor,null,2)}
|
|
44
|
+
other: ${JSON.stringify(n.actor,null,2)}`);break}a&&(this.debug("handleChannelEvents: forwarding event",{channelEvent:t}),this.emitToChannel(r,{actor:n.actor,forwardingActor:this.actor}))}if(this.actor.type===Re.ActorType.FOLLOWER)switch(r.type){case Re.InternalEventType.EXISTING_STATE_RESPONSE:if(this.debug("handleChannelEvents: Setting state from leader's existing state response",{event:r}),this.syncing?.state!==fr.PENDING)break;this.syncing.resolve?.();let a={type:Re.InternalEventType.SET_STATE,payload:{state:r.payload,previousState:this.state}};this.state=r.payload,this.emitToListeners(a,n);break}switch(r.type){case Re.InternalEventType.SET_STATE:this.debug("handleChannelEvents: Setting state",{event:r}),this.state=r.payload.state;break}this.emitToListeners(r,{actor:n.actor})}debug(t,r){this.debugging&&console.debug(Le`[UniversalStore::${this.id}::${this.environment??Re.Environment.UNKNOWN}]
|
|
45
|
+
${t}`,JSON.stringify({data:r,actor:this.actor,state:this.state,status:this.status},null,2))}static __reset(){Re.preparation.reject(new Error("reset")),Re.setupPreparationPromise(),Re.isInternalConstructing=!1}};s(Pn,"UniversalStore"),Pn.ActorType={LEADER:"LEADER",FOLLOWER:"FOLLOWER"},Pn.Environment={SERVER:"SERVER",MANAGER:"MANAGER",PREVIEW:"PREVIEW",UNKNOWN:"UNKNOWN",MOCK:"MOCK"},Pn.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"},Pn.Status={UNPREPARED:"UNPREPARED",SYNCING:"SYNCING",READY:"READY",ERROR:"ERROR"},Pn.isInternalConstructing=!1,Pn.setupPreparationPromise();var ep=Pn,G5=s(e=>e.transports!==void 0,"isMulti"),W5=s(()=>Math.random().toString(16).slice(2),"generateRandomId"),BC=class{constructor(t={}){this.sender=W5(),this.events={},this.data={},this.transports=[],this.isAsync=t.async||!1,G5(t)?(this.transports=t.transports||[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})):this.transports=t.transport?[t.transport]:[],this.transports.forEach(r=>{r.setHandler(n=>this.handleEvent(n))})}get hasTransport(){return this.transports.length>0}addListener(t,r){this.events[t]=this.events[t]||[],this.events[t].push(r)}emit(t,...r){let n={type:t,args:r,from:this.sender},a={};r.length>=1&&r[0]&&r[0].options&&(a=r[0].options);let o=s(()=>{this.transports.forEach(i=>{i.send(n,a)}),this.handleEvent(n)},"handler");this.isAsync?setImmediate(o):o()}last(t){return this.data[t]}eventNames(){return Object.keys(this.events)}listenerCount(t){let r=this.listeners(t);return r?r.length:0}listeners(t){return this.events[t]||void 0}once(t,r){let n=this.onceListener(t,r);this.addListener(t,n)}removeAllListeners(t){t?this.events[t]&&delete this.events[t]:this.events={}}removeListener(t,r){let n=this.listeners(t);n&&(this.events[t]=n.filter(a=>a!==r))}on(t,r){this.addListener(t,r)}off(t,r){this.removeListener(t,r)}handleEvent(t){let r=this.listeners(t.type);r&&r.length&&r.forEach(n=>{n.apply(t,t.args)}),this.data[t.type]=t.args}onceListener(t,r){let n=s((...a)=>(this.removeListener(t,n),r(...a)),"onceListener");return n}};s(BC,"Channel");var yu=BC,jC={};Jt(jC,{deprecate:()=>Ih,logger:()=>it,once:()=>vt,pretty:()=>lr});var{LOGLEVEL:Y5}=he,Fn={trace:1,debug:2,info:3,warn:4,error:5,silent:10},K5=Y5,La=Fn[K5]||Fn.info,it={trace:s((e,...t)=>{La<=Fn.trace&&console.trace(e,...t)},"trace"),debug:s((e,...t)=>{La<=Fn.debug&&console.debug(e,...t)},"debug"),info:s((e,...t)=>{La<=Fn.info&&console.info(e,...t)},"info"),warn:s((e,...t)=>{La<=Fn.warn&&console.warn(e,...t)},"warn"),error:s((e,...t)=>{La<=Fn.error&&console.error(e,...t)},"error"),log:s((e,...t)=>{La<Fn.silent&&console.log(e,...t)},"log")},rd=new Set,vt=s(e=>(t,...r)=>{if(!rd.has(t))return rd.add(t),it[e](t,...r)},"once");vt.clear=()=>rd.clear();vt.trace=vt("trace");vt.debug=vt("debug");vt.info=vt("info");vt.warn=vt("warn");vt.error=vt("error");vt.log=vt("log");var Ih=vt("warn"),lr=s(e=>(...t)=>{let r=[];if(t.length){let n=/<span\s+style=(['"])([^'"]*)\1\s*>/gi,a=/<\/span>/gi,o;for(r.push(t[0].replace(n,"%c").replace(a,"%c"));o=n.exec(t[0]);)r.push(o[2]),r.push("");for(let i=1;i<t.length;i++)r.push(t[i])}it[e].apply(it,r)},"pretty");lr.trace=lr("trace");lr.debug=lr("debug");lr.info=lr("info");lr.warn=lr("warn");lr.error=lr("error");var X5=Object.create,qC=Object.defineProperty,Q5=Object.getOwnPropertyDescriptor,MC=Object.getOwnPropertyNames,Z5=Object.getPrototypeOf,e$=Object.prototype.hasOwnProperty,Be=s((e,t)=>s(function(){return t||(0,e[MC(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),t$=s((e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of MC(t))!e$.call(e,a)&&a!==r&&qC(e,a,{get:s(()=>t[a],"get"),enumerable:!(n=Q5(t,a))||n.enumerable});return e},"__copyProps"),Nh=s((e,t,r)=>(r=e!=null?X5(Z5(e)):{},t$(t||!e||!e.__esModule?qC(r,"default",{value:e,enumerable:!0}):r,e)),"__toESM"),r$=["bubbles","cancelBubble","cancelable","composed","currentTarget","defaultPrevented","eventPhase","isTrusted","returnValue","srcElement","target","timeStamp","type"],n$=["detail"];function LC(e){let t=r$.filter(r=>e[r]!==void 0).reduce((r,n)=>(r[n]=e[n],r),{});if(e instanceof CustomEvent)for(let r of n$.filter(n=>e[n]!==void 0))t[r]=e[r];return t}s(LC,"extractEventHiddenProperties");var $C=Be({"node_modules/.pnpm/es-object-atoms@1.1.1/node_modules/es-object-atoms/index.js"(e,t){t.exports=Object}}),a$=Be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/index.js"(e,t){t.exports=Error}}),o$=Be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/eval.js"(e,t){t.exports=EvalError}}),i$=Be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/range.js"(e,t){t.exports=RangeError}}),s$=Be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/ref.js"(e,t){t.exports=ReferenceError}}),l$=Be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/syntax.js"(e,t){t.exports=SyntaxError}}),kh=Be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/type.js"(e,t){t.exports=TypeError}}),u$=Be({"node_modules/.pnpm/es-errors@1.3.0/node_modules/es-errors/uri.js"(e,t){t.exports=URIError}}),c$=Be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/abs.js"(e,t){t.exports=Math.abs}}),p$=Be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/floor.js"(e,t){t.exports=Math.floor}}),d$=Be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/max.js"(e,t){t.exports=Math.max}}),f$=Be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/min.js"(e,t){t.exports=Math.min}}),h$=Be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/pow.js"(e,t){t.exports=Math.pow}}),m$=Be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/round.js"(e,t){t.exports=Math.round}}),y$=Be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/isNaN.js"(e,t){t.exports=Number.isNaN||s(function(r){return r!==r},"isNaN2")}}),g$=Be({"node_modules/.pnpm/math-intrinsics@1.1.0/node_modules/math-intrinsics/sign.js"(e,t){var r=y$();t.exports=s(function(n){return r(n)||n===0?n:n<0?-1:1},"sign")}}),b$=Be({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/gOPD.js"(e,t){t.exports=Object.getOwnPropertyDescriptor}}),Bh=Be({"node_modules/.pnpm/gopd@1.2.0/node_modules/gopd/index.js"(e,t){var r=b$();if(r)try{r([],"length")}catch{r=null}t.exports=r}}),v$=Be({"node_modules/.pnpm/es-define-property@1.0.1/node_modules/es-define-property/index.js"(e,t){var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch{r=!1}t.exports=r}}),UC=Be({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/shams.js"(e,t){t.exports=s(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},n=Symbol("test"),a=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;r[n]=o;for(var i in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var l=Object.getOwnPropertySymbols(r);if(l.length!==1||l[0]!==n||!Object.prototype.propertyIsEnumerable.call(r,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(r,n);if(u.value!==o||u.enumerable!==!0)return!1}return!0},"hasSymbols")}}),VC=Be({"node_modules/.pnpm/has-symbols@1.1.0/node_modules/has-symbols/index.js"(e,t){var r=typeof Symbol<"u"&&Symbol,n=UC();t.exports=s(function(){return typeof r!="function"||typeof Symbol!="function"||typeof r("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:n()},"hasNativeSymbols")}}),HC=Be({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Reflect.getPrototypeOf.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}}),JC=Be({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/Object.getPrototypeOf.js"(e,t){var r=$C();t.exports=r.getPrototypeOf||null}}),E$=Be({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/implementation.js"(e,t){var r="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,a=Math.max,o="[object Function]",i=s(function(c,p){for(var d=[],h=0;h<c.length;h+=1)d[h]=c[h];for(var f=0;f<p.length;f+=1)d[f+c.length]=p[f];return d},"concatty2"),l=s(function(c,p){for(var d=[],h=p||0,f=0;h<c.length;h+=1,f+=1)d[f]=c[h];return d},"slicy2"),u=s(function(c,p){for(var d="",h=0;h<c.length;h+=1)d+=c[h],h+1<c.length&&(d+=p);return d},"joiny");t.exports=s(function(c){var p=this;if(typeof p!="function"||n.apply(p)!==o)throw new TypeError(r+p);for(var d=l(arguments,1),h,f=s(function(){if(this instanceof h){var v=p.apply(this,i(d,arguments));return Object(v)===v?v:this}return p.apply(c,i(d,arguments))},"binder"),m=a(0,p.length-d.length),y=[],b=0;b<m;b++)y[b]="$"+b;if(h=Function("binder","return function ("+u(y,",")+"){ return binder.apply(this,arguments); }")(f),p.prototype){var g=s(function(){},"Empty2");g.prototype=p.prototype,h.prototype=new g,g.prototype=null}return h},"bind")}}),gu=Be({"node_modules/.pnpm/function-bind@1.1.2/node_modules/function-bind/index.js"(e,t){var r=E$();t.exports=Function.prototype.bind||r}}),jh=Be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionCall.js"(e,t){t.exports=Function.prototype.call}}),zC=Be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/functionApply.js"(e,t){t.exports=Function.prototype.apply}}),C$=Be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/reflectApply.js"(e,t){t.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}}),w$=Be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/actualApply.js"(e,t){var r=gu(),n=zC(),a=jh(),o=C$();t.exports=o||r.call(a,n)}}),GC=Be({"node_modules/.pnpm/call-bind-apply-helpers@1.0.2/node_modules/call-bind-apply-helpers/index.js"(e,t){var r=gu(),n=kh(),a=jh(),o=w$();t.exports=s(function(i){if(i.length<1||typeof i[0]!="function")throw new n("a function is required");return o(r,a,i)},"callBindBasic")}}),x$=Be({"node_modules/.pnpm/dunder-proto@1.0.1/node_modules/dunder-proto/get.js"(e,t){var r=GC(),n=Bh(),a;try{a=[].__proto__===Array.prototype}catch(u){if(!u||typeof u!="object"||!("code"in u)||u.code!=="ERR_PROTO_ACCESS")throw u}var o=!!a&&n&&n(Object.prototype,"__proto__"),i=Object,l=i.getPrototypeOf;t.exports=o&&typeof o.get=="function"?r([o.get]):typeof l=="function"?s(function(u){return l(u==null?u:i(u))},"getDunder"):!1}}),A$=Be({"node_modules/.pnpm/get-proto@1.0.1/node_modules/get-proto/index.js"(e,t){var r=HC(),n=JC(),a=x$();t.exports=r?s(function(o){return r(o)},"getProto"):n?s(function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return n(o)},"getProto"):a?s(function(o){return a(o)},"getProto"):null}}),WC=Be({"node_modules/.pnpm/hasown@2.0.2/node_modules/hasown/index.js"(e,t){var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,a=gu();t.exports=a.call(r,n)}}),S$=Be({"node_modules/.pnpm/get-intrinsic@1.3.0/node_modules/get-intrinsic/index.js"(e,t){var r,n=$C(),a=a$(),o=o$(),i=i$(),l=s$(),u=l$(),c=kh(),p=u$(),d=c$(),h=p$(),f=d$(),m=f$(),y=h$(),b=m$(),g=g$(),v=Function,D=s(function(Z){try{return v('"use strict"; return ('+Z+").constructor;")()}catch{}},"getEvalledConstructor"),S=Bh(),P=v$(),w=s(function(){throw new c},"throwTypeError"),E=S?(function(){try{return arguments.callee,w}catch{try{return S(arguments,"callee").get}catch{return w}}})():w,C=VC()(),_=A$(),k=JC(),B=HC(),W=zC(),z=jh(),R={},U=typeof Uint8Array>"u"||!_?r:_(Uint8Array),j={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":C&&_?_([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":R,"%AsyncGenerator%":R,"%AsyncGeneratorFunction%":R,"%AsyncIteratorPrototype%":R,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?r:Float16Array,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":R,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":C&&_?_(_([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!C||!_?r:_(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":i,"%ReferenceError%":l,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!C||!_?r:_(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":C&&_?_(""[Symbol.iterator]()):r,"%Symbol%":C?Symbol:r,"%SyntaxError%":u,"%ThrowTypeError%":E,"%TypedArray%":U,"%TypeError%":c,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":p,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet,"%Function.prototype.call%":z,"%Function.prototype.apply%":W,"%Object.defineProperty%":P,"%Object.getPrototypeOf%":k,"%Math.abs%":d,"%Math.floor%":h,"%Math.max%":f,"%Math.min%":m,"%Math.pow%":y,"%Math.round%":b,"%Math.sign%":g,"%Reflect.getPrototypeOf%":B};if(_)try{null.error}catch(Z){Y=_(_(Z)),j["%Error.prototype%"]=Y}var Y,Q=s(function Z(pe){var ye;if(pe==="%AsyncFunction%")ye=D("async function () {}");else if(pe==="%GeneratorFunction%")ye=D("function* () {}");else if(pe==="%AsyncGeneratorFunction%")ye=D("async function* () {}");else if(pe==="%AsyncGenerator%"){var ge=Z("%AsyncGeneratorFunction%");ge&&(ye=ge.prototype)}else if(pe==="%AsyncIteratorPrototype%"){var Ce=Z("%AsyncGenerator%");Ce&&_&&(ye=_(Ce.prototype))}return j[pe]=ye,ye},"doEval2"),ae={__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"]},le=gu(),M=WC(),L=le.call(z,Array.prototype.concat),K=le.call(W,Array.prototype.splice),X=le.call(z,String.prototype.replace),ie=le.call(z,String.prototype.slice),te=le.call(z,RegExp.prototype.exec),ue=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ve=/\\(\\)?/g,je=s(function(Z){var pe=ie(Z,0,1),ye=ie(Z,-1);if(pe==="%"&&ye!=="%")throw new u("invalid intrinsic syntax, expected closing `%`");if(ye==="%"&&pe!=="%")throw new u("invalid intrinsic syntax, expected opening `%`");var ge=[];return X(Z,ue,function(Ce,Se,_e,Ge){ge[ge.length]=_e?X(Ge,ve,"$1"):Se||Ce}),ge},"stringToPath3"),st=s(function(Z,pe){var ye=Z,ge;if(M(ae,ye)&&(ge=ae[ye],ye="%"+ge[0]+"%"),M(j,ye)){var Ce=j[ye];if(Ce===R&&(Ce=Q(ye)),typeof Ce>"u"&&!pe)throw new c("intrinsic "+Z+" exists, but is not available. Please file an issue!");return{alias:ge,name:ye,value:Ce}}throw new u("intrinsic "+Z+" does not exist!")},"getBaseIntrinsic2");t.exports=s(function(Z,pe){if(typeof Z!="string"||Z.length===0)throw new c("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof pe!="boolean")throw new c('"allowMissing" argument must be a boolean');if(te(/^%?[^%]*%?$/,Z)===null)throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ye=je(Z),ge=ye.length>0?ye[0]:"",Ce=st("%"+ge+"%",pe),Se=Ce.name,_e=Ce.value,Ge=!1,lt=Ce.alias;lt&&(ge=lt[0],K(ye,L([0,1],lt)));for(var Dt=1,Gt=!0;Dt<ye.length;Dt+=1){var _t=ye[Dt],Vt=ie(_t,0,1),kt=ie(_t,-1);if((Vt==='"'||Vt==="'"||Vt==="`"||kt==='"'||kt==="'"||kt==="`")&&Vt!==kt)throw new u("property names with quotes must have matching quotes");if((_t==="constructor"||!Gt)&&(Ge=!0),ge+="."+_t,Se="%"+ge+"%",M(j,Se))_e=j[Se];else if(_e!=null){if(!(_t in _e)){if(!pe)throw new c("base intrinsic for "+Z+" exists, but the property is not available.");return}if(S&&Dt+1>=ye.length){var Pe=S(_e,_t);Gt=!!Pe,Gt&&"get"in Pe&&!("originalValue"in Pe.get)?_e=Pe.get:_e=_e[_t]}else Gt=M(_e,_t),_e=_e[_t];Gt&&!Ge&&(j[Se]=_e)}}return _e},"GetIntrinsic")}}),qh=Be({"node_modules/.pnpm/call-bound@1.0.4/node_modules/call-bound/index.js"(e,t){var r=S$(),n=GC(),a=n([r("%String.prototype.indexOf%")]);t.exports=s(function(o,i){var l=r(o,!!i);return typeof l=="function"&&a(o,".prototype.")>-1?n([l]):l},"callBoundIntrinsic")}}),_$=Be({"node_modules/.pnpm/has-tostringtag@1.0.2/node_modules/has-tostringtag/shams.js"(e,t){var r=UC();t.exports=s(function(){return r()&&!!Symbol.toStringTag},"hasToStringTagShams")}}),YC=Be({"node_modules/.pnpm/is-regex@1.2.1/node_modules/is-regex/index.js"(e,t){var r=qh(),n=_$()(),a=WC(),o=Bh(),i;n?(l=r("RegExp.prototype.exec"),u={},c=s(function(){throw u},"throwRegexMarker"),p={toString:c,valueOf:c},typeof Symbol.toPrimitive=="symbol"&&(p[Symbol.toPrimitive]=c),i=s(function(f){if(!f||typeof f!="object")return!1;var m=o(f,"lastIndex"),y=m&&a(m,"value");if(!y)return!1;try{l(f,p)}catch(b){return b===u}},"isRegex")):(d=r("Object.prototype.toString"),h="[object RegExp]",i=s(function(f){return!f||typeof f!="object"&&typeof f!="function"?!1:d(f)===h},"isRegex"));var l,u,c,p,d,h;t.exports=i}}),T$=Be({"node_modules/.pnpm/is-function@1.0.2/node_modules/is-function/index.js"(e,t){t.exports=n;var r=Object.prototype.toString;function n(a){if(!a)return!1;var o=r.call(a);return o==="[object Function]"||typeof a=="function"&&o!=="[object RegExp]"||typeof window<"u"&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)}s(n,"isFunction3")}}),P$=Be({"node_modules/.pnpm/safe-regex-test@1.1.0/node_modules/safe-regex-test/index.js"(e,t){var r=qh(),n=YC(),a=r("RegExp.prototype.exec"),o=kh();t.exports=s(function(i){if(!n(i))throw new o("`regex` must be a RegExp");return s(function(l){return a(i,l)!==null},"test")},"regexTester")}}),D$=Be({"node_modules/.pnpm/is-symbol@1.1.1/node_modules/is-symbol/index.js"(e,t){var r=qh(),n=r("Object.prototype.toString"),a=VC()(),o=P$();a?(i=r("Symbol.prototype.toString"),l=o(/^Symbol\(.*\)$/),u=s(function(c){return typeof c.valueOf()!="symbol"?!1:l(i(c))},"isRealSymbolObject"),t.exports=s(function(c){if(typeof c=="symbol")return!0;if(!c||typeof c!="object"||n(c)!=="[object Symbol]")return!1;try{return u(c)}catch{return!1}},"isSymbol3")):t.exports=s(function(c){return!1},"isSymbol3");var i,l,u}}),O$=Nh(YC()),R$=Nh(T$()),F$=Nh(D$());function KC(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}s(KC,"isObject");var I$=typeof global=="object"&&global&&global.Object===Object&&global,N$=I$,k$=typeof self=="object"&&self&&self.Object===Object&&self,B$=N$||k$||Function("return this")(),Mh=B$,j$=Mh.Symbol,co=j$,XC=Object.prototype,q$=XC.hasOwnProperty,M$=XC.toString,Yo=co?co.toStringTag:void 0;function QC(e){var t=q$.call(e,Yo),r=e[Yo];try{e[Yo]=void 0;var n=!0}catch{}var a=M$.call(e);return n&&(t?e[Yo]=r:delete e[Yo]),a}s(QC,"getRawTag");var L$=QC,$$=Object.prototype,U$=$$.toString;function ZC(e){return U$.call(e)}s(ZC,"objectToString");var V$=ZC,H$="[object Null]",J$="[object Undefined]",cv=co?co.toStringTag:void 0;function ew(e){return e==null?e===void 0?J$:H$:cv&&cv in Object(e)?L$(e):V$(e)}s(ew,"baseGetTag");var tw=ew;function rw(e){return e!=null&&typeof e=="object"}s(rw,"isObjectLike");var z$=rw,G$="[object Symbol]";function nw(e){return typeof e=="symbol"||z$(e)&&tw(e)==G$}s(nw,"isSymbol");var Lh=nw;function aw(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}s(aw,"arrayMap");var W$=aw,Y$=Array.isArray,$h=Y$,pv=co?co.prototype:void 0,dv=pv?pv.toString:void 0;function Uh(e){if(typeof e=="string")return e;if($h(e))return W$(e,Uh)+"";if(Lh(e))return dv?dv.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}s(Uh,"baseToString");var K$=Uh;function ow(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}s(ow,"isObject2");var iw=ow,X$="[object AsyncFunction]",Q$="[object Function]",Z$="[object GeneratorFunction]",e6="[object Proxy]";function sw(e){if(!iw(e))return!1;var t=tw(e);return t==Q$||t==Z$||t==X$||t==e6}s(sw,"isFunction");var t6=sw,r6=Mh["__core-js_shared__"],tp=r6,fv=(function(){var e=/[^.]+$/.exec(tp&&tp.keys&&tp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function lw(e){return!!fv&&fv in e}s(lw,"isMasked");var n6=lw,a6=Function.prototype,o6=a6.toString;function uw(e){if(e!=null){try{return o6.call(e)}catch{}try{return e+""}catch{}}return""}s(uw,"toSource");var i6=uw,s6=/[\\^$.*+?()[\]{}|]/g,l6=/^\[object .+?Constructor\]$/,u6=Function.prototype,c6=Object.prototype,p6=u6.toString,d6=c6.hasOwnProperty,f6=RegExp("^"+p6.call(d6).replace(s6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cw(e){if(!iw(e)||n6(e))return!1;var t=t6(e)?f6:l6;return t.test(i6(e))}s(cw,"baseIsNative");var h6=cw;function pw(e,t){return e?.[t]}s(pw,"getValue");var m6=pw;function dw(e,t){var r=m6(e,t);return h6(r)?r:void 0}s(dw,"getNative");var fw=dw;function hw(e,t){return e===t||e!==e&&t!==t}s(hw,"eq");var y6=hw,g6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b6=/^\w*$/;function mw(e,t){if($h(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Lh(e)?!0:b6.test(e)||!g6.test(e)||t!=null&&e in Object(t)}s(mw,"isKey");var v6=mw,E6=fw(Object,"create"),Oi=E6;function yw(){this.__data__=Oi?Oi(null):{},this.size=0}s(yw,"hashClear");var C6=yw;function gw(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}s(gw,"hashDelete");var w6=gw,x6="__lodash_hash_undefined__",A6=Object.prototype,S6=A6.hasOwnProperty;function bw(e){var t=this.__data__;if(Oi){var r=t[e];return r===x6?void 0:r}return S6.call(t,e)?t[e]:void 0}s(bw,"hashGet");var _6=bw,T6=Object.prototype,P6=T6.hasOwnProperty;function vw(e){var t=this.__data__;return Oi?t[e]!==void 0:P6.call(t,e)}s(vw,"hashHas");var D6=vw,O6="__lodash_hash_undefined__";function Ew(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Oi&&t===void 0?O6:t,this}s(Ew,"hashSet");var R6=Ew;function Oa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s(Oa,"Hash");Oa.prototype.clear=C6;Oa.prototype.delete=w6;Oa.prototype.get=_6;Oa.prototype.has=D6;Oa.prototype.set=R6;var hv=Oa;function Cw(){this.__data__=[],this.size=0}s(Cw,"listCacheClear");var F6=Cw;function ww(e,t){for(var r=e.length;r--;)if(y6(e[r][0],t))return r;return-1}s(ww,"assocIndexOf");var bu=ww,I6=Array.prototype,N6=I6.splice;function xw(e){var t=this.__data__,r=bu(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():N6.call(t,r,1),--this.size,!0}s(xw,"listCacheDelete");var k6=xw;function Aw(e){var t=this.__data__,r=bu(t,e);return r<0?void 0:t[r][1]}s(Aw,"listCacheGet");var B6=Aw;function Sw(e){return bu(this.__data__,e)>-1}s(Sw,"listCacheHas");var j6=Sw;function _w(e,t){var r=this.__data__,n=bu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}s(_w,"listCacheSet");var q6=_w;function Ra(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s(Ra,"ListCache");Ra.prototype.clear=F6;Ra.prototype.delete=k6;Ra.prototype.get=B6;Ra.prototype.has=j6;Ra.prototype.set=q6;var M6=Ra,L6=fw(Mh,"Map"),$6=L6;function Tw(){this.size=0,this.__data__={hash:new hv,map:new($6||M6),string:new hv}}s(Tw,"mapCacheClear");var U6=Tw;function Pw(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}s(Pw,"isKeyable");var V6=Pw;function Dw(e,t){var r=e.__data__;return V6(t)?r[typeof t=="string"?"string":"hash"]:r.map}s(Dw,"getMapData");var vu=Dw;function Ow(e){var t=vu(this,e).delete(e);return this.size-=t?1:0,t}s(Ow,"mapCacheDelete");var H6=Ow;function Rw(e){return vu(this,e).get(e)}s(Rw,"mapCacheGet");var J6=Rw;function Fw(e){return vu(this,e).has(e)}s(Fw,"mapCacheHas");var z6=Fw;function Iw(e,t){var r=vu(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}s(Iw,"mapCacheSet");var G6=Iw;function Fa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s(Fa,"MapCache");Fa.prototype.clear=U6;Fa.prototype.delete=H6;Fa.prototype.get=J6;Fa.prototype.has=z6;Fa.prototype.set=G6;var Nw=Fa,W6="Expected a function";function Eu(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(W6);var r=s(function(){var n=arguments,a=t?t.apply(this,n):n[0],o=r.cache;if(o.has(a))return o.get(a);var i=e.apply(this,n);return r.cache=o.set(a,i)||o,i},"memoized");return r.cache=new(Eu.Cache||Nw),r}s(Eu,"memoize");Eu.Cache=Nw;var Y6=Eu,K6=500;function kw(e){var t=Y6(e,function(n){return r.size===K6&&r.clear(),n}),r=t.cache;return t}s(kw,"memoizeCapped");var X6=kw,Q6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z6=/\\(\\)?/g,e8=X6(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Q6,function(r,n,a,o){t.push(a?o.replace(Z6,"$1"):n||r)}),t}),t8=e8;function Bw(e){return e==null?"":K$(e)}s(Bw,"toString");var r8=Bw;function jw(e,t){return $h(e)?e:v6(e,t)?[e]:t8(r8(e))}s(jw,"castPath");var n8=jw;function qw(e){if(typeof e=="string"||Lh(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}s(qw,"toKey");var a8=qw;function Mw(e,t){t=n8(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[a8(t[r++])];return r&&r==n?e:void 0}s(Mw,"baseGet");var o8=Mw;function Lw(e,t,r){var n=e==null?void 0:o8(e,t);return n===void 0?r:n}s(Lw,"get");var i8=Lw,Vh=KC,s8=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/,Hh=s(e=>e.match(/^[\[\{\"\}].*[\]\}\"]$/),"isJSON");function Jh(e){if(!Vh(e))return e;let t=e,r=!1;return typeof Event<"u"&&e instanceof Event&&(t=LC(t),r=!0),t=Object.keys(t).reduce((n,a)=>{try{t[a]&&t[a].toJSON,n[a]=t[a]}catch{r=!0}return n},{}),r?t:e}s(Jh,"convertUnconventionalData");var l8=s(function(e){let t,r,n,a;return s(function(o,i){try{if(o==="")return a=[],t=new Map([[i,"[]"]]),r=new Map,n=[],i;let l=r.get(this)||this;for(;n.length&&l!==n[0];)n.shift(),a.pop();if(typeof i=="boolean")return i;if(i===void 0)return e.allowUndefined?"_undefined_":void 0;if(i===null)return null;if(typeof i=="number")return i===Number.NEGATIVE_INFINITY?"_-Infinity_":i===Number.POSITIVE_INFINITY?"_Infinity_":Number.isNaN(i)?"_NaN_":i;if(typeof i=="bigint")return`_bigint_${i.toString()}`;if(typeof i=="string")return s8.test(i)?e.allowDate?`_date_${i}`:void 0:i;if((0,O$.default)(i))return e.allowRegExp?`_regexp_${i.flags}|${i.source}`:void 0;if((0,R$.default)(i))return;if((0,F$.default)(i)){if(!e.allowSymbol)return;let c=Symbol.keyFor(i);return c!==void 0?`_gsymbol_${c}`:`_symbol_${i.toString().slice(7,-1)}`}if(n.length>=e.maxDepth)return Array.isArray(i)?`[Array(${i.length})]`:"[Object]";if(i===this)return`_duplicate_${JSON.stringify(a)}`;if(i instanceof Error&&e.allowError)return{__isConvertedError__:!0,errorProperties:{...i.cause?{cause:i.cause}:{},...i,name:i.name,message:i.message,stack:i.stack,"_constructor-name_":i.constructor.name}};if(i?.constructor?.name&&i.constructor.name!=="Object"&&!Array.isArray(i)){let c=t.get(i);if(!c){let p={__isClassInstance__:!0,__className__:i.constructor.name,...Object.getOwnPropertyNames(i).reduce((d,h)=>{try{d[h]=i[h]}catch{}return d},{})};return a.push(o),n.unshift(p),t.set(i,JSON.stringify(a)),i!==p&&r.set(i,p),p}return`_duplicate_${c}`}let u=t.get(i);if(!u){let c=Array.isArray(i)?i:Jh(i);return a.push(o),n.unshift(c),t.set(i,JSON.stringify(a)),i!==c&&r.set(i,c),c}return`_duplicate_${u}`}catch{return}},"replace")},"replacer2"),u8=s(function(e){let t=[],r;return s(function(n,a){if(n===""&&(r=a,t.forEach(({target:o,container:i,replacement:l})=>{let u=Hh(l)?JSON.parse(l):l.split(".");u.length===0?i[o]=r:i[o]=i8(r,u)})),n==="_constructor-name_")return a;if(Vh(a)&&a.__isConvertedError__){let{message:o,...i}=a.errorProperties,l=new Error(o);return Object.assign(l,i),l}if(typeof a=="string"&&a.startsWith("_regexp_")&&e.allowRegExp){let[,o,i]=a.match(/_regexp_([^|]*)\|(.*)/)||[];return new RegExp(i,o)}return typeof a=="string"&&a.startsWith("_date_")&&e.allowDate?new Date(a.replace("_date_","")):typeof a=="string"&&a.startsWith("_duplicate_")?(t.push({target:n,container:this,replacement:a.replace(/^_duplicate_/,"")}),null):typeof a=="string"&&a.startsWith("_symbol_")&&e.allowSymbol?Symbol(a.replace("_symbol_","")):typeof a=="string"&&a.startsWith("_gsymbol_")&&e.allowSymbol?Symbol.for(a.replace("_gsymbol_","")):typeof a=="string"&&a==="_-Infinity_"?Number.NEGATIVE_INFINITY:typeof a=="string"&&a==="_Infinity_"?Number.POSITIVE_INFINITY:typeof a=="string"&&a==="_NaN_"?Number.NaN:typeof a=="string"&&a.startsWith("_bigint_")&&typeof BigInt=="function"?BigInt(a.replace("_bigint_","")):a},"revive")},"reviver2"),$w={maxDepth:10,space:void 0,allowRegExp:!0,allowDate:!0,allowError:!0,allowUndefined:!0,allowSymbol:!0},Uw=s((e,t={})=>{let r={...$w,...t};return JSON.stringify(Jh(e),l8(r),t.space)},"stringify"),c8=s(()=>{let e=new Map;return s(function t(r){Vh(r)&&Object.entries(r).forEach(([n,a])=>{a==="_undefined_"?r[n]=void 0:e.get(a)||(e.set(a,!0),t(a))}),Array.isArray(r)&&r.forEach((n,a)=>{n==="_undefined_"?(e.set(n,!0),r[a]=void 0):e.get(n)||(e.set(n,!0),t(n))})},"mutateUndefined")},"mutator"),Vw=s((e,t={})=>{let r={...$w,...t},n=JSON.parse(e,u8(r));return c8()(n),n},"parse"),p8="Invariant failed";function Wr(e,t){if(!e)throw new Error(p8)}s(Wr,"invariant");var d8=s(e=>{let t=Array.from(document.querySelectorAll("iframe[data-is-storybook]")),[r,...n]=t.filter(o=>{try{return o.contentWindow?.location.origin===e.source.location.origin&&o.contentWindow?.location.pathname===e.source.location.pathname}catch{}try{return o.contentWindow===e.source}catch{}let i=o.getAttribute("src"),l;try{if(!i)return!1;({origin:l}=new URL(i,document.location.toString()))}catch{return!1}return l===e.origin}),a=r?.getAttribute("src");if(a&&n.length===0){let{protocol:o,host:i,pathname:l}=new URL(a,document.location.toString());return`${o}//${i}${l}`}return n.length>0&&it.error("found multiple candidates for event source"),null},"getEventSourceUrl"),{document:rp,location:np}=he,mv="storybook-channel",f8={maxDepth:25},Hw=class{constructor(t){if(this.config=t,this.connected=!1,this.buffer=[],typeof he?.addEventListener=="function"&&he.addEventListener("message",this.handleEvent.bind(this),!1),t.page!=="manager"&&t.page!=="preview")throw new Error(`postmsg-channel: "config.page" cannot be "${t.page}"`)}setHandler(t){this.handler=(...r)=>{t.apply(this,r),!this.connected&&this.getLocalFrame().length&&(this.flush(),this.connected=!0)}}send(t,r){let{target:n,allowRegExp:a,allowSymbol:o,allowDate:i,allowError:l,allowUndefined:u,maxDepth:c,space:p}=r||{},d=Object.fromEntries(Object.entries({allowRegExp:a,allowSymbol:o,allowDate:i,allowError:l,allowUndefined:u,maxDepth:c,space:p}).filter(([b,g])=>typeof g<"u")),h={...f8,...he.CHANNEL_OPTIONS||{},...d},f=this.getFrames(n),m=new URLSearchParams(np?.search||""),y=Uw({key:mv,event:t,refId:m.get("refId")},h);return f.length?(this.buffer.length&&this.flush(),f.forEach(b=>{try{b.postMessage(y,"*")}catch{it.error("sending over postmessage fail")}}),Promise.resolve(null)):new Promise((b,g)=>{this.buffer.push({event:t,resolve:b,reject:g})})}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>{this.send(r.event).then(r.resolve).catch(r.reject)})}getFrames(t){if(this.config.page==="manager"){let r=Array.from(rp.querySelectorAll("iframe[data-is-storybook][data-is-loaded]")).flatMap(n=>{try{return n.contentWindow&&n.dataset.isStorybook!==void 0&&n.id===t?[n.contentWindow]:[]}catch{return[]}});return r?.length?r:this.getCurrentFrames()}return he&&he.parent&&he.parent!==he.self?[he.parent]:[]}getCurrentFrames(){return this.config.page==="manager"?Array.from(rp.querySelectorAll('[data-is-storybook="true"]')).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):he&&he.parent?[he.parent]:[]}getLocalFrame(){return this.config.page==="manager"?Array.from(rp.querySelectorAll("#storybook-preview-iframe")).flatMap(t=>t.contentWindow?[t.contentWindow]:[]):he&&he.parent?[he.parent]:[]}handleEvent(t){try{let{data:r}=t,{key:n,event:a,refId:o}=typeof r=="string"&&Hh(r)?Vw(r,he.CHANNEL_OPTIONS||{}):r;if(n===mv){let i=this.config.page==="manager"?'<span style="color: #37D5D3; background: black"> manager </span>':'<span style="color: #1EA7FD; background: black"> preview </span>',l=Object.values(Sh).includes(a.type)?`<span style="color: #FF4785">${a.type}</span>`:`<span style="color: #FFAE00">${a.type}</span>`;if(o&&(a.refId=o),a.source=this.config.page==="preview"?t.origin:d8(t),!a.source){lr.error(`${i} received ${l} but was unable to determine the source of the event`);return}let u=`${i} received ${l} (${r.length})`;lr.debug(np.origin!==a.source?u:`${u} <span style="color: gray">(on ${np.origin} from ${a.source})</span>`,...a.args),Wr(this.handler,"ChannelHandler should be set"),this.handler(a)}}catch(r){it.error(r)}}};s(Hw,"PostMessageTransport");var Jw=Hw,{WebSocket:h8}=he,zw=15e3,Gw=5e3,Ww=class{constructor({url:t,onError:r,page:n}){this.buffer=[],this.isReady=!1,this.isClosed=!1,this.pingTimeout=0,this.socket=new h8(t),this.socket.onopen=()=>{this.isReady=!0,this.heartbeat(),this.flush()},this.socket.onmessage=({data:a})=>{let o=typeof a=="string"&&Hh(a)?Vw(a):a;Wr(this.handler),this.handler(o),o.type==="ping"&&(this.heartbeat(),this.send({type:"pong"}))},this.socket.onerror=a=>{r&&r(a)},this.socket.onclose=a=>{Wr(this.handler),this.handler({type:dC,args:[{reason:a.reason,code:a.code}],from:n||"preview"}),this.isClosed=!0,clearTimeout(this.pingTimeout)}}heartbeat(){clearTimeout(this.pingTimeout),this.pingTimeout=setTimeout(()=>{this.socket.close(3008,"timeout")},zw+Gw)}setHandler(t){this.handler=t}send(t){this.isClosed||(this.isReady?this.sendNow(t):this.sendLater(t))}sendLater(t){this.buffer.push(t)}sendNow(t){let r=Uw(t,{maxDepth:15,...he.CHANNEL_OPTIONS});this.socket.send(r)}flush(){let{buffer:t}=this;this.buffer=[],t.forEach(r=>this.send(r))}};s(Ww,"WebsocketTransport");var Yw=Ww,{CONFIG_TYPE:m8}=he,y8=yu;function Kw({page:e,extraTransports:t=[]}){let r=[new Jw({page:e}),...t];if(m8==="DEVELOPMENT"){let a=window.location.protocol==="http:"?"ws":"wss",{hostname:o,port:i}=window.location,l=`${a}://${o}:${i}/storybook-server-channel`;r.push(new Yw({url:l,onError:s(()=>{},"onError"),page:e}))}let n=new yu({transports:r});return ep.__prepare(n,e==="manager"?ep.Environment.MANAGER:ep.Environment.PREVIEW),n}s(Kw,"createBrowserChannel");var Xw={};Jt(Xw,{CalledExtractOnStoreError:()=>i1,CalledPreviewMethodBeforeInitializationError:()=>or,Category:()=>e1,ElementA11yParameterError:()=>w8,EmptyIndexError:()=>m1,ImplicitActionsDuringRendering:()=>a1,MdxFileWithNoCsfReferencesError:()=>f1,MissingRenderToCanvasError:()=>l1,MissingStoryAfterHmrError:()=>r1,MissingStoryFromCsfFileError:()=>v1,MountMustBeDestructuredError:()=>zh,NextJsSharpError:()=>b8,NextjsRouterMocksNotAvailable:()=>v8,NoRenderFunctionError:()=>A1,NoStoryMatchError:()=>g1,NoStoryMountedError:()=>_1,StatusTypeIdMismatchError:()=>g8,StoryIndexFetchError:()=>p1,StoryStoreAccessedBeforeInitializationError:()=>C1,UnknownArgTypesError:()=>E8,UnsupportedViewportDimensionError:()=>C8});function nd({code:e,category:t}){let r=String(e).padStart(4,"0");return`SB_${t}_${r}`}s(nd,"parseErrorCode");function ad(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}}s(ad,"appendErrorRef");var Qw=class Zw extends Error{constructor(t){super(Zw.getFullMessage(t)),this.data={},this.fromStorybook=!0,this.category=t.category,this.documentation=t.documentation??!1,this.code=t.code}get fullErrorCode(){return nd({code:this.code,category:this.category})}get name(){let t=this.constructor.name;return`${this.fullErrorCode} (${t})`}static getFullMessage({documentation:t,code:r,category:n,message:a}){let o;return t===!0?o=`https://storybook.js.org/error/${nd({code:r,category:n})}?ref=error`:typeof t=="string"?o=ad(t):Array.isArray(t)&&(o=`
|
|
46
|
+
${t.map(i=>` - ${ad(i)}`).join(`
|
|
47
|
+
`)}`),`${a}${o!=null?`
|
|
48
|
+
|
|
49
|
+
More info: ${o}
|
|
50
|
+
`:""}`}};s(Qw,"StorybookError");var Ct=Qw,e1=(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))(e1||{}),t1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:1,message:Le`
|
|
51
|
+
Couldn't find story matching id '${t.storyId}' after HMR.
|
|
52
|
+
- Did you just rename a story?
|
|
53
|
+
- Did you remove it from your CSF file?
|
|
54
|
+
- Are you sure a story with the id '${t.storyId}' exists?
|
|
55
|
+
- Please check the values in the stories field of your main.js config and see if they would match your CSF File.
|
|
56
|
+
- Also check the browser console and terminal for potential error messages.`}),this.data=t}};s(t1,"MissingStoryAfterHmrError");var r1=t1,n1=class extends Ct{constructor(t){super({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:Le`
|
|
57
|
+
We detected that you use an implicit action arg while ${t.phase} of your story.
|
|
58
|
+
${t.deprecated?`
|
|
59
|
+
This is deprecated and won't work in Storybook 8 anymore.
|
|
60
|
+
`:""}
|
|
61
|
+
Please provide an explicit spy to your args like this:
|
|
62
|
+
import { fn } from 'storybook/test';
|
|
63
|
+
...
|
|
64
|
+
args: {
|
|
65
|
+
${t.name}: fn()
|
|
66
|
+
}`}),this.data=t}};s(n1,"ImplicitActionsDuringRendering");var a1=n1,o1=class extends Ct{constructor(){super({category:"PREVIEW_API",code:3,message:Le`
|
|
67
|
+
Cannot call \`storyStore.extract()\` without calling \`storyStore.cacheAllCsfFiles()\` first.
|
|
68
|
+
|
|
69
|
+
You probably meant to call \`await preview.extract()\` which does the above for you.`})}};s(o1,"CalledExtractOnStoreError");var i1=o1,s1=class extends Ct{constructor(){super({category:"PREVIEW_API",code:4,message:Le`
|
|
70
|
+
Expected your framework's preset to export a \`renderToCanvas\` field.
|
|
71
|
+
|
|
72
|
+
Perhaps it needs to be upgraded for Storybook 7.0?`,documentation:"https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#mainjs-framework-field"})}};s(s1,"MissingRenderToCanvasError");var l1=s1,u1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:5,message:Le`
|
|
73
|
+
Called \`Preview.${t.methodName}()\` before initialization.
|
|
74
|
+
|
|
75
|
+
The preview needs to load the story index before most methods can be called. If you want
|
|
76
|
+
to call \`${t.methodName}\`, try \`await preview.initializationPromise;\` first.
|
|
77
|
+
|
|
78
|
+
If you didn't call the above code, then likely it was called by an addon that needs to
|
|
79
|
+
do the above.`}),this.data=t}};s(u1,"CalledPreviewMethodBeforeInitializationError");var or=u1,c1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:6,message:Le`
|
|
80
|
+
Error fetching \`/index.json\`:
|
|
81
|
+
|
|
82
|
+
${t.text}
|
|
83
|
+
|
|
84
|
+
If you are in development, this likely indicates a problem with your Storybook process,
|
|
85
|
+
check the terminal for errors.
|
|
86
|
+
|
|
87
|
+
If you are in a deployed Storybook, there may have been an issue deploying the full Storybook
|
|
88
|
+
build.`}),this.data=t}};s(c1,"StoryIndexFetchError");var p1=c1,d1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:7,message:Le`
|
|
89
|
+
Tried to render docs entry ${t.storyId} but it is a MDX file that has no CSF
|
|
90
|
+
references, or autodocs for a CSF file that some doesn't refer to itself.
|
|
91
|
+
|
|
92
|
+
This likely is an internal error in Storybook's indexing, or you've attached the
|
|
93
|
+
\`attached-mdx\` tag to an MDX file that is not attached.`}),this.data=t}};s(d1,"MdxFileWithNoCsfReferencesError");var f1=d1,h1=class extends Ct{constructor(){super({category:"PREVIEW_API",code:8,message:Le`
|
|
94
|
+
Couldn't find any stories in your Storybook.
|
|
95
|
+
|
|
96
|
+
- Please check your stories field of your main.js config: does it match correctly?
|
|
97
|
+
- Also check the browser console and terminal for error messages.`})}};s(h1,"EmptyIndexError");var m1=h1,y1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:9,message:Le`
|
|
98
|
+
Couldn't find story matching '${t.storySpecifier}'.
|
|
99
|
+
|
|
100
|
+
- Are you sure a story with that id exists?
|
|
101
|
+
- Please check your stories field of your main.js config.
|
|
102
|
+
- Also check the browser console and terminal for error messages.`}),this.data=t}};s(y1,"NoStoryMatchError");var g1=y1,b1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:10,message:Le`
|
|
103
|
+
Couldn't find story matching id '${t.storyId}' after importing a CSF file.
|
|
104
|
+
|
|
105
|
+
The file was indexed as if the story was there, but then after importing the file in the browser
|
|
106
|
+
we didn't find the story. Possible reasons:
|
|
107
|
+
- You are using a custom story indexer that is misbehaving.
|
|
108
|
+
- You have a custom file loader that is removing or renaming exports.
|
|
109
|
+
|
|
110
|
+
Please check your browser console and terminal for errors that may explain the issue.`}),this.data=t}};s(b1,"MissingStoryFromCsfFileError");var v1=b1,E1=class extends Ct{constructor(){super({category:"PREVIEW_API",code:11,message:Le`
|
|
111
|
+
Cannot access the Story Store until the index is ready.
|
|
112
|
+
|
|
113
|
+
It is not recommended to use methods directly on the Story Store anyway, in Storybook 9 we will
|
|
114
|
+
remove access to the store entirely`})}};s(E1,"StoryStoreAccessedBeforeInitializationError");var C1=E1,w1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:12,message:Le`
|
|
115
|
+
Incorrect use of mount in the play function.
|
|
116
|
+
|
|
117
|
+
To use mount in the play function, you must satisfy the following two requirements:
|
|
118
|
+
|
|
119
|
+
1. You *must* destructure the mount property from the \`context\` (the argument passed to your play function).
|
|
120
|
+
This makes sure that Storybook does not start rendering the story before the play function begins.
|
|
121
|
+
|
|
122
|
+
2. Your Storybook framework or builder must be configured to transpile to ES2017 or newer.
|
|
123
|
+
This is because destructuring statements and async/await usages are otherwise transpiled away,
|
|
124
|
+
which prevents Storybook from recognizing your usage of \`mount\`.
|
|
125
|
+
|
|
126
|
+
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill.
|
|
127
|
+
|
|
128
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error#run-code-before-the-component-gets-rendered
|
|
129
|
+
|
|
130
|
+
Received the following play function:
|
|
131
|
+
${t.playFunction}`}),this.data=t}};s(w1,"MountMustBeDestructuredError");var zh=w1,x1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:14,message:Le`
|
|
132
|
+
No render function available for storyId '${t.id}'
|
|
133
|
+
`}),this.data=t}};s(x1,"NoRenderFunctionError");var A1=x1,S1=class extends Ct{constructor(){super({category:"PREVIEW_API",code:15,message:Le`
|
|
134
|
+
No component is mounted in your story.
|
|
135
|
+
|
|
136
|
+
This usually occurs when you destructure mount in the play function, but forget to call it.
|
|
137
|
+
|
|
138
|
+
For example:
|
|
139
|
+
|
|
140
|
+
async play({ mount, canvasElement }) {
|
|
141
|
+
// 👈 mount should be called: await mount();
|
|
142
|
+
const canvas = within(canvasElement);
|
|
143
|
+
const button = await canvas.findByRole('button');
|
|
144
|
+
await userEvent.click(button);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
Make sure to either remove it or call mount in your play function.
|
|
148
|
+
`})}};s(S1,"NoStoryMountedError");var _1=S1,T1=class extends Ct{constructor(t){super({category:"PREVIEW_API",code:16,message:`Status has typeId "${t.status.typeId}" but was added to store with typeId "${t.typeId}". Full status: ${JSON.stringify(t.status,null,2)}`}),this.data=t}};s(T1,"StatusTypeIdMismatchError");var g8=T1,P1=class extends Ct{constructor(){super({category:"FRAMEWORK_NEXTJS",code:1,documentation:"https://storybook.js.org/docs/get-started/nextjs#faq",message:Le`
|
|
149
|
+
You are importing avif images, but you don't have sharp installed.
|
|
150
|
+
|
|
151
|
+
You have to install sharp in order to use image optimization features in Next.js.
|
|
152
|
+
`})}};s(P1,"NextJsSharpError");var b8=P1,D1=class extends Ct{constructor(t){super({category:"FRAMEWORK_NEXTJS",code:2,message:Le`
|
|
153
|
+
Tried to access router mocks from "${t.importType}" but they were not created yet. You might be running code in an unsupported environment.
|
|
154
|
+
`}),this.data=t}};s(D1,"NextjsRouterMocksNotAvailable");var v8=D1,O1=class extends Ct{constructor(t){super({category:"DOCS-TOOLS",code:1,documentation:"https://github.com/storybookjs/storybook/issues/26606",message:Le`
|
|
155
|
+
There was a failure when generating detailed ArgTypes in ${t.language} for:
|
|
156
|
+
${JSON.stringify(t.type,null,2)}
|
|
157
|
+
|
|
158
|
+
Storybook will fall back to use a generic type description instead.
|
|
159
|
+
|
|
160
|
+
This type is either not supported or it is a bug in the docgen generation in Storybook.
|
|
161
|
+
If you think this is a bug, please detail it as much as possible in the Github issue.
|
|
162
|
+
`}),this.data=t}};s(O1,"UnknownArgTypesError");var E8=O1,R1=class extends Ct{constructor(t){super({category:"ADDON_VITEST",code:1,message:Le`
|
|
163
|
+
Encountered an unsupported value "${t.value}" when setting the viewport ${t.dimension} dimension.
|
|
164
|
+
|
|
165
|
+
The Storybook plugin only supports values in the following units:
|
|
166
|
+
- px, vh, vw, em, rem and %.
|
|
167
|
+
|
|
168
|
+
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
|
|
169
|
+
`}),this.data=t}};s(R1,"UnsupportedViewportDimensionError");var C8=R1,F1=class extends Ct{constructor(){super({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.'})}};s(F1,"ElementA11yParameterError");var w8=F1,I1={};Jt(I1,{Addon_TypesEnum:()=>N1});var N1=(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))(N1||{}),k1={};Jt(k1,{ADDON_ID:()=>Cu,CLEAR_ID:()=>S8,CYCLIC_KEY:()=>_8,EVENT_ID:()=>B1,PANEL_ID:()=>A8,PARAM_KEY:()=>x8,action:()=>Ho,actions:()=>XJ,config:()=>Xi,configureActions:()=>WJ});var x8="actions",Cu="storybook/actions",A8=`${Cu}/panel`,B1=`${Cu}/action-event`,S8=`${Cu}/action-clear`,_8="$___storybook.isCyclic",od={};Jt(od,{DocsContext:()=>Pb,HooksContext:()=>Wh,Preview:()=>gI,PreviewWeb:()=>VJ,PreviewWithSelection:()=>TI,ReporterAPI:()=>Sb,StoryStore:()=>dI,UrlStore:()=>NI,WebView:()=>jI,addons:()=>Er,applyHooks:()=>L1,combineArgs:()=>ru,combineParameters:()=>Pa,composeConfigs:()=>Da,composeStepRunners:()=>wb,composeStories:()=>lI,composeStory:()=>Tb,createPlaywrightTest:()=>uI,decorateStory:()=>mb,defaultDecorateStory:()=>gb,emitTransformCode:()=>$I,filterArgTypes:()=>rI,getCsfFactoryAnnotations:()=>_b,inferControls:()=>Cb,makeDecorator:()=>O8,mockChannel:()=>Gh,normalizeArrays:()=>et,normalizeProjectAnnotations:()=>Ki,normalizeStory:()=>Yi,pauseAnimations:()=>qc,prepareMeta:()=>bb,prepareStory:()=>jc,sanitizeStoryContextUpdate:()=>yb,setDefaultProjectAnnotations:()=>oI,setProjectAnnotations:()=>sI,simulateDOMContentLoaded:()=>iu,simulatePageLoad:()=>LI,sortStoriesV7:()=>OJ,useArgs:()=>W1,useCallback:()=>po,useChannel:()=>z1,useEffect:()=>Vn,useGlobals:()=>Y1,useMemo:()=>Xh,useParameter:()=>G1,useReducer:()=>J1,useRef:()=>U1,useState:()=>H1,useStoryContext:()=>as,userOrAutoTitle:()=>TJ,userOrAutoTitleFromSpecifier:()=>hI,waitForAnimations:()=>Mc});function Gh(){let e={setHandler:s(()=>{},"setHandler"),send:s(()=>{},"send")};return new yu({transport:e})}s(Gh,"mockChannel");var j1=class{constructor(){this.getChannel=s(()=>{if(!this.channel){let t=Gh();return this.setChannel(t),t}return this.channel},"getChannel"),this.ready=s(()=>this.promise,"ready"),this.hasChannel=s(()=>!!this.channel,"hasChannel"),this.setChannel=s(t=>{this.channel=t,this.resolve()},"setChannel"),this.promise=new Promise(t=>{this.resolve=()=>t(this.getChannel())})}};s(j1,"AddonStore");var T8=j1,ap="__STORYBOOK_ADDONS_PREVIEW";function q1(){return he[ap]||(he[ap]=new T8),he[ap]}s(q1,"getAddonsStore");var Er=q1(),M1=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=s(t=>{t===this.currentContext?.id&&(this.triggerEffects(),this.currentContext=null,this.removeRenderListeners())},"renderListener"),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(t=>{t.destroy&&t.destroy()}),this.init(),this.removeRenderListeners()}getNextHook(){let t=this.currentHooks[this.nextHookIndex];return this.nextHookIndex+=1,t}triggerEffects(){this.prevEffects.forEach(t=>{!this.currentEffects.includes(t)&&t.destroy&&t.destroy()}),this.currentEffects.forEach(t=>{this.prevEffects.includes(t)||(t.destroy=t.create())}),this.prevEffects=this.currentEffects,this.currentEffects=[]}addRenderListeners(){this.removeRenderListeners(),Er.getChannel().on(hl,this.renderListener)}removeRenderListeners(){Er.getChannel().removeListener(hl,this.renderListener)}};s(M1,"HooksContext");var Wh=M1;function id(e){let t=s((...r)=>{let{hooks:n}=typeof r[0]=="function"?r[1]:r[0],a=n.currentPhase,o=n.currentHooks,i=n.nextHookIndex,l=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 u=he.STORYBOOK_HOOKS_CONTEXT;he.STORYBOOK_HOOKS_CONTEXT=n;let c=e(...r);if(he.STORYBOOK_HOOKS_CONTEXT=u,n.currentPhase==="UPDATE"&&n.getNextHook()!=null)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return n.currentPhase=a,n.currentHooks=o,n.nextHookIndex=i,n.currentDecoratorName=l,c},"hookified");return t.originalFn=e,t}s(id,"hookify");var op=0,P8=25,L1=s(e=>(t,r)=>{let n=e(id(t),r.map(a=>id(a)));return a=>{let{hooks:o}=a;o.prevMountedDecorators??=new Set,o.mountedDecorators=new Set([t,...r]),o.currentContext=a,o.hasUpdates=!1;let i=n(a);for(op=1;o.hasUpdates;)if(o.hasUpdates=!1,o.currentEffects=[],i=n(a),op+=1,op>P8)throw new Error("Too many re-renders. Storybook limits the number of renders to prevent an infinite loop.");return o.addRenderListeners(),i}},"applyHooks"),D8=s((e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),"areDepsEqual"),Yh=s(()=>new Error("Storybook preview hooks can only be called inside decorators and story functions."),"invalidHooksError");function Kh(){return he.STORYBOOK_HOOKS_CONTEXT||null}s(Kh,"getHooksContextOrNull");function wu(){let e=Kh();if(e==null)throw Yh();return e}s(wu,"getHooksContextOrThrow");function $1(e,t,r){let n=wu();if(n.currentPhase==="MOUNT"){r!=null&&!Array.isArray(r)&&it.warn(`${e} received a final argument that is not an array (instead, received ${r}). When specified, the final argument must be an array.`);let a={name:e,deps:r};return n.currentHooks.push(a),t(a),a}if(n.currentPhase==="UPDATE"){let a=n.getNextHook();if(a==null)throw new Error("Rendered more hooks than during the previous render.");return a.name!==e&&it.warn(`Storybook has detected a change in the order of Hooks${n.currentDecoratorName?` called by ${n.currentDecoratorName}`:""}. This will lead to bugs and errors if not fixed.`),r!=null&&a.deps==null&&it.warn(`${e} received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`),r!=null&&a.deps!=null&&r.length!==a.deps.length&&it.warn(`The final argument passed to ${e} changed size between renders. The order and size of this array must remain constant.
|
|
170
|
+
Previous: ${a.deps}
|
|
171
|
+
Incoming: ${r}`),(r==null||a.deps==null||!D8(r,a.deps))&&(t(a),a.deps=r),a}throw Yh()}s($1,"useHook");function ns(e,t,r){let{memoizedState:n}=$1(e,a=>{a.memoizedState=t()},r);return n}s(ns,"useMemoLike");function Xh(e,t){return ns("useMemo",e,t)}s(Xh,"useMemo");function po(e,t){return ns("useCallback",()=>e,t)}s(po,"useCallback");function Qh(e,t){return ns(e,()=>({current:t}),[])}s(Qh,"useRefLike");function U1(e){return Qh("useRef",e)}s(U1,"useRef");function V1(){let e=Kh();if(e!=null&&e.currentPhase!=="NONE")e.hasUpdates=!0;else try{Er.getChannel().emit(Ph)}catch{it.warn("State updates of Storybook preview hooks work only in browser")}}s(V1,"triggerUpdate");function Zh(e,t){let r=Qh(e,typeof t=="function"?t():t),n=s(a=>{r.current=typeof a=="function"?a(r.current):a,V1()},"setState");return[r.current,n]}s(Zh,"useStateLike");function H1(e){return Zh("useState",e)}s(H1,"useState");function J1(e,t,r){let n=r!=null?()=>r(t):t,[a,o]=Zh("useReducer",n);return[a,s(i=>o(l=>e(l,i)),"dispatch")]}s(J1,"useReducer");function Vn(e,t){let r=wu(),n=ns("useEffect",()=>({create:e}),t);r.currentEffects.includes(n)||r.currentEffects.push(n)}s(Vn,"useEffect");function z1(e,t=[]){let r=Er.getChannel();return Vn(()=>(Object.entries(e).forEach(([n,a])=>r.on(n,a)),()=>{Object.entries(e).forEach(([n,a])=>r.removeListener(n,a))}),[...Object.keys(e),...t]),po(r.emit.bind(r),[r])}s(z1,"useChannel");function as(){let{currentContext:e}=wu();if(e==null)throw Yh();return e}s(as,"useStoryContext");function G1(e,t){let{parameters:r}=as();if(e)return r[e]??t}s(G1,"useParameter");function W1(){let e=Er.getChannel(),{id:t,args:r}=as(),n=po(o=>e.emit(Fh,{storyId:t,updatedArgs:o}),[e,t]),a=po(o=>e.emit(Dh,{storyId:t,argNames:o}),[e,t]);return[r,n,a]}s(W1,"useArgs");function Y1(){let e=Er.getChannel(),{globals:t}=as(),r=po(n=>e.emit(Rh,{globals:n}),[e]);return[t,r]}s(Y1,"useGlobals");var O8=s(({name:e,parameterName:t,wrapper:r,skipIfNoParametersOrOptions:n=!1})=>{let a=s(o=>(i,l)=>{let u=l.parameters&&l.parameters[t];return u&&u.disable||n&&!o&&!u?i(l):r(i,l,{options:o,parameters:u})},"decorator");return(...o)=>typeof o[0]=="function"?a()(...o):(...i)=>{if(i.length>1)return o.length>1?a(o)(...i):a(...o)(...i);throw new Error(`Passing stories directly into ${e}() is not allowed,
|
|
172
|
+
instead use addDecorator(${e}) and pass options with the '${t}' parameter`)}},"makeDecorator");function K1(e){return e.replace(/_/g," ").replace(/-/g," ").replace(/\./g," ").replace(/([^\n])([A-Z])([a-z])/g,(t,r,n,a)=>`${r} ${n}${a}`).replace(/([a-z])([A-Z])/g,(t,r,n)=>`${r} ${n}`).replace(/([a-z])([0-9])/gi,(t,r,n)=>`${r} ${n}`).replace(/([0-9])([a-z])/gi,(t,r,n)=>`${r} ${n}`).replace(/(\s|^)(\w)/g,(t,r,n)=>`${r}${n.toUpperCase()}`).replace(/ +/g," ").trim()}s(K1,"toStartCaseStr");var yv=Et(rk(),1),X1=s(e=>e.map(t=>typeof t<"u").filter(Boolean).length,"count"),R8=s((e,t)=>{let{exists:r,eq:n,neq:a,truthy:o}=e;if(X1([r,n,a,o])>1)throw new Error(`Invalid conditional test ${JSON.stringify({exists:r,eq:n,neq:a})}`);if(typeof n<"u")return(0,yv.isEqual)(t,n);if(typeof a<"u")return!(0,yv.isEqual)(t,a);if(typeof r<"u"){let i=typeof t<"u";return r?i:!i}return typeof o>"u"||o?!!t:!t},"testValue"),F8=s((e,t,r)=>{if(!e.if)return!0;let{arg:n,global:a}=e.if;if(X1([n,a])!==1)throw new Error(`Invalid conditional value ${JSON.stringify({arg:n,global:a})}`);let o=n?t[n]:r[a];return R8(e.if,o)},"includeConditionalArg"),Q1={};Jt(Q1,{argsEnhancers:()=>k8});var Z1=s((e,t)=>typeof t[e]>"u"&&!(e in t),"isInInitialArgs"),I8=s(e=>{let{initialArgs:t,argTypes:r,id:n,parameters:{actions:a}}=e;if(!a||a.disable||!a.argTypesRegex||!r)return{};let o=new RegExp(a.argTypesRegex);return Object.entries(r).filter(([i])=>!!o.test(i)).reduce((i,[l,u])=>(Z1(l,t)&&(i[l]=Ho(l,{implicit:!0,id:n})),i),{})},"inferActionsFromArgTypesRegex"),N8=s(e=>{let{initialArgs:t,argTypes:r,parameters:{actions:n}}=e;return n?.disable||!r?{}:Object.entries(r).filter(([a,o])=>!!o.action).reduce((a,[o,i])=>(Z1(o,t)&&(a[o]=Ho(typeof i.action=="string"?i.action:o)),a),{})},"addActionsFromArgTypes"),k8=[N8,I8],ex={};Jt(ex,{loaders:()=>GV});var tx={};Jt(tx,{buildQueries:()=>_7,clearAllMocks:()=>ug,configure:()=>T7,createEvent:()=>P7,expect:()=>HV,findAllByAltText:()=>O7,findAllByDisplayValue:()=>R7,findAllByLabelText:()=>F7,findAllByPlaceholderText:()=>I7,findAllByRole:()=>N7,findAllByTestId:()=>k7,findAllByText:()=>B7,findAllByTitle:()=>j7,findByAltText:()=>q7,findByDisplayValue:()=>M7,findByLabelText:()=>L7,findByPlaceholderText:()=>$7,findByRole:()=>U7,findByTestId:()=>V7,findByText:()=>H7,findByTitle:()=>J7,fireEvent:()=>D7,fn:()=>sg,getAllByAltText:()=>z7,getAllByDisplayValue:()=>G7,getAllByLabelText:()=>W7,getAllByPlaceholderText:()=>Y7,getAllByRole:()=>K7,getAllByTestId:()=>X7,getAllByText:()=>Q7,getAllByTitle:()=>Z7,getByAltText:()=>eV,getByDisplayValue:()=>tV,getByLabelText:()=>rV,getByPlaceholderText:()=>nV,getByRole:()=>aV,getByTestId:()=>oV,getByText:()=>iV,getByTitle:()=>sV,getConfig:()=>lV,getDefaultNormalizer:()=>uV,getElementError:()=>cV,getNodeText:()=>pV,getQueriesForElement:()=>dV,getRoles:()=>fV,getSuggestedQuery:()=>hV,isInaccessible:()=>mV,isMockFunction:()=>ma,logDOM:()=>yV,logRoles:()=>gV,mocked:()=>xT,mocks:()=>bs,onMockCall:()=>ig,prettyDOM:()=>bV,prettyFormat:()=>UV,queries:()=>vV,queryAllByAltText:()=>EV,queryAllByAttribute:()=>CV,queryAllByDisplayValue:()=>wV,queryAllByLabelText:()=>xV,queryAllByPlaceholderText:()=>AV,queryAllByRole:()=>SV,queryAllByTestId:()=>_V,queryAllByText:()=>TV,queryAllByTitle:()=>PV,queryByAltText:()=>DV,queryByAttribute:()=>OV,queryByDisplayValue:()=>RV,queryByLabelText:()=>FV,queryByPlaceholderText:()=>IV,queryByRole:()=>NV,queryByTestId:()=>kV,queryByText:()=>BV,queryByTitle:()=>jV,queryHelpers:()=>qV,resetAllMocks:()=>cg,restoreAllMocks:()=>pg,sb:()=>JV,screen:()=>MV,spyOn:()=>vU,uninstrumentedUserEvent:()=>mF,userEvent:()=>VV,waitFor:()=>LV,waitForElementToBeRemoved:()=>$V,within:()=>hF});var B8={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]},j8=Object.entries(B8);function xu(e){return String(e)}s(xu,"a");xu.open="";xu.close="";function rx(e=!1){let t=typeof process<"u"?process:void 0,r=t?.env||{},n=t?.argv||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||t?.platform==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window<"u"&&!!window.chrome}s(rx,"C");function nx(e=!1){let t=rx(e),r=s((i,l,u,c)=>{let p="",d=0;do p+=i.substring(d,c)+u,d=c+l.length,c=i.indexOf(l,d);while(~c);return p+i.substring(d)},"i"),n=s((i,l,u=i)=>{let c=s(p=>{let d=String(p),h=d.indexOf(l,i.length);return~h?i+r(d,l,u,h)+l:i+d+l},"o");return c.open=i,c.close=l,c},"g"),a={isColorSupported:t},o=s(i=>`\x1B[${i}m`,"d");for(let[i,l]of j8)a[i]=t?n(o(l[0]),o(l[1]),l[2]):xu;return a}s(nx,"p");var bt=nx();function em(e,t){return t.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in e)){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:s(function(){return r[n]},"get")})}})}),Object.freeze(e)}s(em,"_mergeNamespaces");function ax(e,t){let r=Object.keys(e),n=t===null?r:r.sort(t);if(Object.getOwnPropertySymbols)for(let a of Object.getOwnPropertySymbols(e))Object.getOwnPropertyDescriptor(e,a).enumerable&&n.push(a);return n}s(ax,"getKeysOfEnumerableProperties");function Io(e,t,r,n,a,o,i=": "){let l="",u=0,c=e.next();if(!c.done){l+=t.spacingOuter;let p=r+t.indent;for(;!c.done;){if(l+=p,u++===t.maxWidth){l+="…";break}let d=o(c.value[0],t,p,n,a),h=o(c.value[1],t,p,n,a);l+=d+i+h,c=e.next(),c.done?t.min||(l+=","):l+=`,${t.spacingInner}`}l+=t.spacingOuter+r}return l}s(Io,"printIteratorEntries");function Au(e,t,r,n,a,o){let i="",l=0,u=e.next();if(!u.done){i+=t.spacingOuter;let c=r+t.indent;for(;!u.done;){if(i+=c,l++===t.maxWidth){i+="…";break}i+=o(u.value,t,c,n,a),u=e.next(),u.done?t.min||(i+=","):i+=`,${t.spacingInner}`}i+=t.spacingOuter+r}return i}s(Au,"printIteratorValues");function Ri(e,t,r,n,a,o){let i="";e=e instanceof ArrayBuffer?new DataView(e):e;let l=s(c=>c instanceof DataView,"isDataView"),u=l(e)?e.byteLength:e.length;if(u>0){i+=t.spacingOuter;let c=r+t.indent;for(let p=0;p<u;p++){if(i+=c,p===t.maxWidth){i+="…";break}(l(e)||p in e)&&(i+=o(l(e)?e.getInt8(p):e[p],t,c,n,a)),p<u-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}s(Ri,"printListItems");function Su(e,t,r,n,a,o){let i="",l=ax(e,t.compareKeys);if(l.length>0){i+=t.spacingOuter;let u=r+t.indent;for(let c=0;c<l.length;c++){let p=l[c],d=o(p,t,u,n,a),h=o(e[p],t,u,n,a);i+=`${u+d}: ${h}`,c<l.length-1?i+=`,${t.spacingInner}`:t.min||(i+=",")}i+=t.spacingOuter+r}return i}s(Su,"printObjectProperties");var q8=typeof Symbol=="function"&&Symbol.for?Symbol.for("jest.asymmetricMatcher"):1267621,ip=" ",M8=s((e,t,r,n,a,o)=>{let i=e.toString();if(i==="ArrayContaining"||i==="ArrayNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+ip}[${Ri(e.sample,t,r,n,a,o)}]`;if(i==="ObjectContaining"||i==="ObjectNotContaining")return++n>t.maxDepth?`[${i}]`:`${i+ip}{${Su(e.sample,t,r,n,a,o)}}`;if(i==="StringMatching"||i==="StringNotMatching"||i==="StringContaining"||i==="StringNotContaining")return i+ip+o(e.sample,t,r,n,a);if(typeof e.toAsymmetricMatcher!="function")throw new TypeError(`Asymmetric matcher ${e.constructor.name} does not implement toAsymmetricMatcher()`);return e.toAsymmetricMatcher()},"serialize$5"),L8=s(e=>e&&e.$$typeof===q8,"test$5"),$8={serialize:M8,test:L8},U8=" ",ox=new Set(["DOMStringMap","NamedNodeMap"]),V8=/^(?:HTML\w*Collection|NodeList)$/;function ix(e){return ox.has(e)||V8.test(e)}s(ix,"testName");var H8=s(e=>e&&e.constructor&&!!e.constructor.name&&ix(e.constructor.name),"test$4");function sx(e){return e.constructor.name==="NamedNodeMap"}s(sx,"isNamedNodeMap");var J8=s((e,t,r,n,a,o)=>{let i=e.constructor.name;return++n>t.maxDepth?`[${i}]`:(t.min?"":i+U8)+(ox.has(i)?`{${Su(sx(e)?[...e].reduce((l,u)=>(l[u.name]=u.value,l),{}):{...e},t,r,n,a,o)}}`:`[${Ri([...e],t,r,n,a,o)}]`)},"serialize$4"),z8={serialize:J8,test:H8};function tm(e){return e.replaceAll("<","<").replaceAll(">",">")}s(tm,"escapeHTML");function _u(e,t,r,n,a,o,i){let l=n+r.indent,u=r.colors;return e.map(c=>{let p=t[c],d=i(p,r,l,a,o);return typeof p!="string"&&(d.includes(`
|
|
173
|
+
`)&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d=`{${d}}`),`${r.spacingInner+n+u.prop.open+c+u.prop.close}=${u.value.open}${d}${u.value.close}`}).join("")}s(_u,"printProps");function Tu(e,t,r,n,a,o){return e.map(i=>t.spacingOuter+r+(typeof i=="string"?rm(i,t):o(i,t,r,n,a))).join("")}s(Tu,"printChildren");function rm(e,t){let r=t.colors.content;return r.open+tm(e)+r.close}s(rm,"printText");function lx(e,t){let r=t.colors.comment;return`${r.open}<!--${tm(e)}-->${r.close}`}s(lx,"printComment");function Pu(e,t,r,n,a){let o=n.colors.tag;return`${o.open}<${e}${t&&o.close+t+n.spacingOuter+a+o.open}${r?`>${o.close}${r}${n.spacingOuter}${a}${o.open}</${e}`:`${t&&!n.min?"":" "}/`}>${o.close}`}s(Pu,"printElement");function Du(e,t){let r=t.colors.tag;return`${r.open}<${e}${r.close} …${r.open} />${r.close}`}s(Du,"printElementAsLeaf");var G8=1,ux=3,cx=8,px=11,W8=/^(?:(?:HTML|SVG)\w*)?Element$/;function dx(e){try{return typeof e.hasAttribute=="function"&&e.hasAttribute("is")}catch{return!1}}s(dx,"testHasAttribute");function fx(e){let t=e.constructor.name,{nodeType:r,tagName:n}=e,a=typeof n=="string"&&n.includes("-")||dx(e);return r===G8&&(W8.test(t)||a)||r===ux&&t==="Text"||r===cx&&t==="Comment"||r===px&&t==="DocumentFragment"}s(fx,"testNode");var Y8=s(e=>{var t;return(e==null||(t=e.constructor)===null||t===void 0?void 0:t.name)&&fx(e)},"test$3");function hx(e){return e.nodeType===ux}s(hx,"nodeIsText");function mx(e){return e.nodeType===cx}s(mx,"nodeIsComment");function zs(e){return e.nodeType===px}s(zs,"nodeIsFragment");var K8=s((e,t,r,n,a,o)=>{if(hx(e))return rm(e.data,t);if(mx(e))return lx(e.data,t);let i=zs(e)?"DocumentFragment":e.tagName.toLowerCase();return++n>t.maxDepth?Du(i,t):Pu(i,_u(zs(e)?[]:Array.from(e.attributes,l=>l.name).sort(),zs(e)?{}:[...e.attributes].reduce((l,u)=>(l[u.name]=u.value,l),{}),t,r+t.indent,n,a,o),Tu(Array.prototype.slice.call(e.childNodes||e.children),t,r+t.indent,n,a,o),t,r)},"serialize$3"),X8={serialize:K8,test:Y8},Q8="@@__IMMUTABLE_ITERABLE__@@",Z8="@@__IMMUTABLE_LIST__@@",e9="@@__IMMUTABLE_KEYED__@@",t9="@@__IMMUTABLE_MAP__@@",gv="@@__IMMUTABLE_ORDERED__@@",r9="@@__IMMUTABLE_RECORD__@@",n9="@@__IMMUTABLE_SEQ__@@",a9="@@__IMMUTABLE_SET__@@",o9="@@__IMMUTABLE_STACK__@@",fo=s(e=>`Immutable.${e}`,"getImmutableName"),Ou=s(e=>`[${e}]`,"printAsLeaf"),Fi=" ",bv="…";function yx(e,t,r,n,a,o,i){return++n>t.maxDepth?Ou(fo(i)):`${fo(i)+Fi}{${Io(e.entries(),t,r,n,a,o)}}`}s(yx,"printImmutableEntries");function gx(e){let t=0;return{next(){if(t<e._keys.length){let r=e._keys[t++];return{done:!1,value:[r,e.get(r)]}}return{done:!0,value:void 0}}}}s(gx,"getRecordEntries");function bx(e,t,r,n,a,o){let i=fo(e._name||"Record");return++n>t.maxDepth?Ou(i):`${i+Fi}{${Io(gx(e),t,r,n,a,o)}}`}s(bx,"printImmutableRecord");function vx(e,t,r,n,a,o){let i=fo("Seq");return++n>t.maxDepth?Ou(i):e[e9]?`${i+Fi}{${e._iter||e._object?Io(e.entries(),t,r,n,a,o):bv}}`:`${i+Fi}[${e._iter||e._array||e._collection||e._iterable?Au(e.values(),t,r,n,a,o):bv}]`}s(vx,"printImmutableSeq");function Gs(e,t,r,n,a,o,i){return++n>t.maxDepth?Ou(fo(i)):`${fo(i)+Fi}[${Au(e.values(),t,r,n,a,o)}]`}s(Gs,"printImmutableValues");var i9=s((e,t,r,n,a,o)=>e[t9]?yx(e,t,r,n,a,o,e[gv]?"OrderedMap":"Map"):e[Z8]?Gs(e,t,r,n,a,o,"List"):e[a9]?Gs(e,t,r,n,a,o,e[gv]?"OrderedSet":"Set"):e[o9]?Gs(e,t,r,n,a,o,"Stack"):e[n9]?vx(e,t,r,n,a,o):bx(e,t,r,n,a,o),"serialize$2"),s9=s(e=>e&&(e[Q8]===!0||e[r9]===!0),"test$2"),l9={serialize:i9,test:s9};function nm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}s(nm,"getDefaultExportFromCjs");var vv={exports:{}},Xe={},Ev;function Ex(){if(Ev)return Xe;Ev=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function m(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case e:switch(y=y.type,y){case r:case a:case n:case u:case c:case h:return y;default:switch(y=y&&y.$$typeof,y){case i:case l:case d:case p:return y;case o:return y;default:return b}}case t:return b}}}return s(m,"typeOf"),Xe.ContextConsumer=o,Xe.ContextProvider=i,Xe.Element=e,Xe.ForwardRef=l,Xe.Fragment=r,Xe.Lazy=d,Xe.Memo=p,Xe.Portal=t,Xe.Profiler=a,Xe.StrictMode=n,Xe.Suspense=u,Xe.SuspenseList=c,Xe.isContextConsumer=function(y){return m(y)===o},Xe.isContextProvider=function(y){return m(y)===i},Xe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Xe.isForwardRef=function(y){return m(y)===l},Xe.isFragment=function(y){return m(y)===r},Xe.isLazy=function(y){return m(y)===d},Xe.isMemo=function(y){return m(y)===p},Xe.isPortal=function(y){return m(y)===t},Xe.isProfiler=function(y){return m(y)===a},Xe.isStrictMode=function(y){return m(y)===n},Xe.isSuspense=function(y){return m(y)===u},Xe.isSuspenseList=function(y){return m(y)===c},Xe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===a||y===n||y===u||y===c||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===p||y.$$typeof===i||y.$$typeof===o||y.$$typeof===l||y.$$typeof===f||y.getModuleId!==void 0)},Xe.typeOf=m,Xe}s(Ex,"requireReactIs_production");var Cv;function Cx(){return Cv||(Cv=1,vv.exports=Ex()),vv.exports}s(Cx,"requireReactIs$1");var wx=Cx(),u9=nm(wx),c9=em({__proto__:null,default:u9},[wx]),wv={exports:{}},Ye={},xv;function xx(){if(xv)return Ye;xv=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function y(b){if(typeof b=="object"&&b!==null){var g=b.$$typeof;switch(g){case e:switch(b=b.type,b){case r:case a:case n:case c:case p:return b;default:switch(b=b&&b.$$typeof,b){case l:case i:case u:case h:case d:case o:return b;default:return g}}case t:return g}}}return s(y,"v"),Ye.ContextConsumer=i,Ye.ContextProvider=o,Ye.Element=e,Ye.ForwardRef=u,Ye.Fragment=r,Ye.Lazy=h,Ye.Memo=d,Ye.Portal=t,Ye.Profiler=a,Ye.StrictMode=n,Ye.Suspense=c,Ye.SuspenseList=p,Ye.isAsyncMode=function(){return!1},Ye.isConcurrentMode=function(){return!1},Ye.isContextConsumer=function(b){return y(b)===i},Ye.isContextProvider=function(b){return y(b)===o},Ye.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},Ye.isForwardRef=function(b){return y(b)===u},Ye.isFragment=function(b){return y(b)===r},Ye.isLazy=function(b){return y(b)===h},Ye.isMemo=function(b){return y(b)===d},Ye.isPortal=function(b){return y(b)===t},Ye.isProfiler=function(b){return y(b)===a},Ye.isStrictMode=function(b){return y(b)===n},Ye.isSuspense=function(b){return y(b)===c},Ye.isSuspenseList=function(b){return y(b)===p},Ye.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===a||b===n||b===c||b===p||b===f||typeof b=="object"&&b!==null&&(b.$$typeof===h||b.$$typeof===d||b.$$typeof===o||b.$$typeof===i||b.$$typeof===u||b.$$typeof===m||b.getModuleId!==void 0)},Ye.typeOf=y,Ye}s(xx,"requireReactIs_production_min");var Av;function Ax(){return Av||(Av=1,wv.exports=xx()),wv.exports}s(Ax,"requireReactIs");var Sx=Ax(),p9=nm(Sx),d9=em({__proto__:null,default:p9},[Sx]),f9=["isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","isSuspenseList","isValidElementType"],aa=Object.fromEntries(f9.map(e=>[e,t=>d9[e](t)||c9[e](t)]));function am(e,t=[]){if(Array.isArray(e))for(let r of e)am(r,t);else e!=null&&e!==!1&&e!==""&&t.push(e);return t}s(am,"getChildren");function sd(e){let t=e.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Unknown";if(aa.isFragment(e))return"React.Fragment";if(aa.isSuspense(e))return"React.Suspense";if(typeof t=="object"&&t!==null){if(aa.isContextProvider(e))return"Context.Provider";if(aa.isContextConsumer(e))return"Context.Consumer";if(aa.isForwardRef(e)){if(t.displayName)return t.displayName;let r=t.render.displayName||t.render.name||"";return r===""?"ForwardRef":`ForwardRef(${r})`}if(aa.isMemo(e)){let r=t.displayName||t.type.displayName||t.type.name||"";return r===""?"Memo":`Memo(${r})`}}return"UNDEFINED"}s(sd,"getType");function _x(e){let{props:t}=e;return Object.keys(t).filter(r=>r!=="children"&&t[r]!==void 0).sort()}s(_x,"getPropKeys$1");var h9=s((e,t,r,n,a,o)=>++n>t.maxDepth?Du(sd(e),t):Pu(sd(e),_u(_x(e),e.props,t,r+t.indent,n,a,o),Tu(am(e.props.children),t,r+t.indent,n,a,o),t,r),"serialize$1"),m9=s(e=>e!=null&&aa.isElement(e),"test$1"),y9={serialize:h9,test:m9},g9=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.test.json"):245830487;function Tx(e){let{props:t}=e;return t?Object.keys(t).filter(r=>t[r]!==void 0).sort():[]}s(Tx,"getPropKeys");var b9=s((e,t,r,n,a,o)=>++n>t.maxDepth?Du(e.type,t):Pu(e.type,e.props?_u(Tx(e),e.props,t,r+t.indent,n,a,o):"",e.children?Tu(e.children,t,r+t.indent,n,a,o):"",t,r),"serialize"),v9=s(e=>e&&e.$$typeof===g9,"test"),E9={serialize:b9,test:v9},Px=Object.prototype.toString,C9=Date.prototype.toISOString,w9=Error.prototype.toString,Sv=RegExp.prototype.toString;function mi(e){return typeof e.constructor=="function"&&e.constructor.name||"Object"}s(mi,"getConstructorName");function Dx(e){return typeof window<"u"&&e===window}s(Dx,"isWindow");var x9=/^Symbol\((.*)\)(.*)$/,A9=/\n/g,Ox=class extends Error{constructor(t,r){super(t),this.stack=r,this.name=this.constructor.name}};s(Ox,"PrettyFormatPluginError");var Rx=Ox;function Fx(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]"}s(Fx,"isToStringedArrayType");function Ix(e){return Object.is(e,-0)?"-0":String(e)}s(Ix,"printNumber");function Nx(e){return`${e}n`}s(Nx,"printBigInt");function ld(e,t){return t?`[Function ${e.name||"anonymous"}]`:"[Function]"}s(ld,"printFunction");function ud(e){return String(e).replace(x9,"Symbol($1)")}s(ud,"printSymbol");function cd(e){return`[${w9.call(e)}]`}s(cd,"printError");function om(e,t,r,n){if(e===!0||e===!1)return`${e}`;if(e===void 0)return"undefined";if(e===null)return"null";let a=typeof e;if(a==="number")return Ix(e);if(a==="bigint")return Nx(e);if(a==="string")return n?`"${e.replaceAll(/"|\\/g,"\\$&")}"`:`"${e}"`;if(a==="function")return ld(e,t);if(a==="symbol")return ud(e);let o=Px.call(e);return o==="[object WeakMap]"?"WeakMap {}":o==="[object WeakSet]"?"WeakSet {}":o==="[object Function]"||o==="[object GeneratorFunction]"?ld(e,t):o==="[object Symbol]"?ud(e):o==="[object Date]"?Number.isNaN(+e)?"Date { NaN }":C9.call(e):o==="[object Error]"?cd(e):o==="[object RegExp]"?r?Sv.call(e).replaceAll(/[$()*+.?[\\\]^{|}]/g,"\\$&"):Sv.call(e):e instanceof Error?cd(e):null}s(om,"printBasicValue");function im(e,t,r,n,a,o){if(a.includes(e))return"[Circular]";a=[...a],a.push(e);let i=++n>t.maxDepth,l=t.min;if(t.callToJSON&&!i&&e.toJSON&&typeof e.toJSON=="function"&&!o)return pn(e.toJSON(),t,r,n,a,!0);let u=Px.call(e);return u==="[object Arguments]"?i?"[Arguments]":`${l?"":"Arguments "}[${Ri(e,t,r,n,a,pn)}]`:Fx(u)?i?`[${e.constructor.name}]`:`${l||!t.printBasicPrototype&&e.constructor.name==="Array"?"":`${e.constructor.name} `}[${Ri(e,t,r,n,a,pn)}]`:u==="[object Map]"?i?"[Map]":`Map {${Io(e.entries(),t,r,n,a,pn," => ")}}`:u==="[object Set]"?i?"[Set]":`Set {${Au(e.values(),t,r,n,a,pn)}}`:i||Dx(e)?`[${mi(e)}]`:`${l||!t.printBasicPrototype&&mi(e)==="Object"?"":`${mi(e)} `}{${Su(e,t,r,n,a,pn)}}`}s(im,"printComplexValue");var S9={test:s(e=>e&&e instanceof Error,"test"),serialize(e,t,r,n,a,o){if(a.includes(e))return"[Circular]";a=[...a,e];let i=++n>t.maxDepth,{message:l,cause:u,...c}=e,p={message:l,...typeof u<"u"?{cause:u}:{},...e instanceof AggregateError?{errors:e.errors}:{},...c},d=e.name!=="Error"?e.name:mi(e);return i?`[${d}]`:`${d} {${Io(Object.entries(p).values(),t,r,n,a,o)}}`}};function kx(e){return e.serialize!=null}s(kx,"isNewPlugin");function sm(e,t,r,n,a,o){let i;try{i=kx(e)?e.serialize(t,r,n,a,o,pn):e.print(t,l=>pn(l,r,n,a,o),l=>{let u=n+r.indent;return u+l.replaceAll(A9,`
|
|
174
|
+
${u}`)},{edgeSpacing:r.spacingOuter,min:r.min,spacing:r.spacingInner},r.colors)}catch(l){throw new Rx(l.message,l.stack)}if(typeof i!="string")throw new TypeError(`pretty-format: Plugin must return type "string" but instead returned "${typeof i}".`);return i}s(sm,"printPlugin");function lm(e,t){for(let r of e)try{if(r.test(t))return r}catch(n){throw new Rx(n.message,n.stack)}return null}s(lm,"findPlugin");function pn(e,t,r,n,a,o){let i=lm(t.plugins,e);if(i!==null)return sm(i,e,t,r,n,a);let l=om(e,t.printFunctionName,t.escapeRegex,t.escapeString);return l!==null?l:im(e,t,r,n,a,o)}s(pn,"printer");var um={comment:"gray",content:"reset",prop:"yellow",tag:"cyan",value:"green"},Bx=Object.keys(um),_r={callToJSON:!0,compareKeys:void 0,escapeRegex:!1,escapeString:!0,highlight:!1,indent:2,maxDepth:Number.POSITIVE_INFINITY,maxWidth:Number.POSITIVE_INFINITY,min:!1,plugins:[],printBasicPrototype:!0,printFunctionName:!0,theme:um};function jx(e){for(let t of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(_r,t))throw new Error(`pretty-format: Unknown option "${t}".`);if(e.min&&e.indent!==void 0&&e.indent!==0)throw new Error('pretty-format: Options "min" and "indent" cannot be used together.')}s(jx,"validateOptions");function qx(){return Bx.reduce((e,t)=>{let r=um[t],n=r&&bt[r];if(n&&typeof n.close=="string"&&typeof n.open=="string")e[t]=n;else throw new Error(`pretty-format: Option "theme" has a key "${t}" whose value "${r}" is undefined in ansi-styles.`);return e},Object.create(null))}s(qx,"getColorsHighlight");function Mx(){return Bx.reduce((e,t)=>(e[t]={close:"",open:""},e),Object.create(null))}s(Mx,"getColorsEmpty");function cm(e){return e?.printFunctionName??_r.printFunctionName}s(cm,"getPrintFunctionName");function pm(e){return e?.escapeRegex??_r.escapeRegex}s(pm,"getEscapeRegex");function dm(e){return e?.escapeString??_r.escapeString}s(dm,"getEscapeString");function pd(e){return{callToJSON:e?.callToJSON??_r.callToJSON,colors:e?.highlight?qx():Mx(),compareKeys:typeof e?.compareKeys=="function"||e?.compareKeys===null?e.compareKeys:_r.compareKeys,escapeRegex:pm(e),escapeString:dm(e),indent:e?.min?"":Lx(e?.indent??_r.indent),maxDepth:e?.maxDepth??_r.maxDepth,maxWidth:e?.maxWidth??_r.maxWidth,min:e?.min??_r.min,plugins:e?.plugins??_r.plugins,printBasicPrototype:e?.printBasicPrototype??!0,printFunctionName:cm(e),spacingInner:e?.min?" ":`
|
|
175
|
+
`,spacingOuter:e?.min?"":`
|
|
176
|
+
`}}s(pd,"getConfig");function Lx(e){return Array.from({length:e+1}).join(" ")}s(Lx,"createIndent");function Pr(e,t){if(t&&(jx(t),t.plugins)){let n=lm(t.plugins,e);if(n!==null)return sm(n,e,pd(t),"",0,[])}let r=om(e,cm(t),pm(t),dm(t));return r!==null?r:im(e,pd(t),"",0,[])}s(Pr,"format");var fm={AsymmetricMatcher:$8,DOMCollection:z8,DOMElement:X8,Immutable:l9,ReactElement:y9,ReactTestComponent:E9,Error:S9},_v={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"]},_9={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},ho="…";function $x(e,t){let r=_v[_9[t]]||_v[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}s($x,"colorise");function Ux({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:a=!1,maxArrayLength:o=1/0,breakLength:i=1/0,seen:l=[],truncate:u=1/0,stylize:c=String}={},p){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!a,maxArrayLength:Number(o),breakLength:Number(i),truncate:Number(u),seen:l,inspect:p,stylize:c};return d.colors&&(d.stylize=$x),d}s(Ux,"normaliseOptions");function Vx(e){return e>="\uD800"&&e<="\uDBFF"}s(Vx,"isHighSurrogate");function Cn(e,t,r=ho){e=String(e);let n=r.length,a=e.length;if(n>t&&a>n)return r;if(a>t&&a>n){let o=t-n;return o>0&&Vx(e[o-1])&&(o=o-1),`${e.slice(0,o)}${r}`}return e}s(Cn,"truncate");function Cr(e,t,r,n=", "){r=r||t.inspect;let a=e.length;if(a===0)return"";let o=t.truncate,i="",l="",u="";for(let c=0;c<a;c+=1){let p=c+1===e.length,d=c+2===e.length;u=`${ho}(${e.length-c})`;let h=e[c];t.truncate=o-i.length-(p?0:n.length);let f=l||r(h,t)+(p?"":n),m=i.length+f.length,y=m+u.length;if(p&&m>o&&i.length+u.length<=o||!p&&!d&&y>o||(l=p?"":r(e[c+1],t)+(d?"":n),!p&&d&&y>o&&m+l.length>o))break;if(i+=f,!p&&!d&&m+l.length>=o){u=`${ho}(${e.length-c-1})`;break}u=""}return`${i}${u}`}s(Cr,"inspectList");function Hx(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}s(Hx,"quoteComplexKey");function mo([e,t],r){return r.truncate-=2,typeof e=="string"?e=Hx(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}s(mo,"inspectProperty");function Jx(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=Cr(e,t);t.truncate-=n.length;let a="";return r.length&&(a=Cr(r.map(o=>[o,e[o]]),t,mo)),`[ ${n}${a?`, ${a}`:""} ]`}s(Jx,"inspectArray");var T9=s(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Lr(e,t){let r=T9(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let a="";for(let i=0;i<e.length;i++){let l=`${t.stylize(Cn(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=l.length,e[i]!==e.length&&t.truncate<=3){a+=`${ho}(${e.length-e[i]+1})`;break}a+=l}let o="";return n.length&&(o=Cr(n.map(i=>[i,e[i]]),t,mo)),`${r}[ ${a}${o?`, ${o}`:""} ]`}s(Lr,"inspectTypedArray");function zx(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),a=n[0];return t.stylize(`${a}T${Cn(n[1],t.truncate-a.length-1)}`,"date")}s(zx,"inspectDate");function dd(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Cn(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}s(dd,"inspectFunction");function Gx([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}s(Gx,"inspectMapEntry");function Wx(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}s(Wx,"mapToEntries");function Yx(e,t){return e.size===0?"Map{}":(t.truncate-=7,`Map{ ${Cr(Wx(e),t,Gx)} }`)}s(Yx,"inspectMap");var P9=Number.isNaN||(e=>e!==e);function fd(e,t){return P9(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(Cn(String(e),t.truncate),"number")}s(fd,"inspectNumber");function hd(e,t){let r=Cn(e.toString(),t.truncate-1);return r!==ho&&(r+="n"),t.stylize(r,"bigint")}s(hd,"inspectBigInt");function Kx(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),a=e.source;return t.stylize(`/${Cn(a,n)}/${r}`,"regexp")}s(Kx,"inspectRegExp");function Xx(e){let t=[];return e.forEach(r=>{t.push(r)}),t}s(Xx,"arrayFromSet");function Qx(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${Cr(Xx(e),t)} }`)}s(Qx,"inspectSet");var Tv=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),D9={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},O9=16;function Zx(e){return D9[e]||`\\u${`0000${e.charCodeAt(0).toString(O9)}`.slice(-4)}`}s(Zx,"escape");function md(e,t){return Tv.test(e)&&(e=e.replace(Tv,Zx)),t.stylize(`'${Cn(e,t.truncate-2)}'`,"string")}s(md,"inspectString");function yd(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}s(yd,"inspectSymbol");var eA=s(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(eA=s((n,a)=>{let[o,i]=e(n);return o===t?"Promise{<pending>}":`Promise${o===r?"!":""}{${a.inspect(i,a)}}`},"getPromiseValue"))}catch{}var R9=eA;function yi(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=Cr(r.map(l=>[l,e[l]]),t,mo),o=Cr(n.map(l=>[l,e[l]]),t,mo);t.seen.pop();let i="";return a&&o&&(i=", "),`{ ${a}${i}${o} }`}s(yi,"inspectObject");var sp=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function tA(e,t){let r="";return sp&&sp in e&&(r=e[sp]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${yi(e,t)}`}s(tA,"inspectClass");function rA(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${Cr(e,t)} ]`)}s(rA,"inspectArguments");var F9=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function nA(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>F9.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let a="";if(typeof e.message=="string"?a=Cn(e.message,t.truncate):r.unshift("message"),a=a?`: ${a}`:"",t.truncate-=a.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=Cr(r.map(i=>[i,e[i]]),t,mo);return`${n}${a}${o?` { ${o} }`:""}`}s(nA,"inspectObject");function aA([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}s(aA,"inspectAttribute");function ml(e,t){return Cr(e,t,oA,`
|
|
177
|
+
`)}s(ml,"inspectNodeCollection");function oA(e,t){switch(e.nodeType){case 1:return hm(e,t);case 3:return t.inspect(e.data,t);default:return t.inspect(e,t)}}s(oA,"inspectNode");function hm(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),a=t.stylize(`<${n}`,"special"),o=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=Cr(r.map(p=>[p,e.getAttribute(p)]),t,aA," ")),t.truncate-=l.length;let u=t.truncate,c=ml(e.children,t);return c&&c.length>u&&(c=`${ho}(${e.children.length})`),`${a}${l}${o}${c}${i}`}s(hm,"inspectHTML");var I9=typeof Symbol=="function"&&typeof Symbol.for=="function",lp=I9?Symbol.for("chai/inspect"):"@@chai/inspect",up=Symbol.for("nodejs.util.inspect.custom"),Pv=new WeakMap,Dv={},Ov={undefined:s((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:s((e,t)=>t.stylize("null","null"),"null"),boolean:s((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:s((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:fd,Number:fd,bigint:hd,BigInt:hd,string:md,String:md,function:dd,Function:dd,symbol:yd,Symbol:yd,Array:Jx,Date:zx,Map:Yx,Set:Qx,RegExp:Kx,Promise:R9,WeakSet:s((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:s((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:rA,Int8Array:Lr,Uint8Array:Lr,Uint8ClampedArray:Lr,Int16Array:Lr,Uint16Array:Lr,Int32Array:Lr,Uint32Array:Lr,Float32Array:Lr,Float64Array:Lr,Generator:s(()=>"","Generator"),DataView:s(()=>"","DataView"),ArrayBuffer:s(()=>"","ArrayBuffer"),Error:nA,HTMLCollection:ml,NodeList:ml},N9=s((e,t,r)=>lp in e&&typeof e[lp]=="function"?e[lp](t):up in e&&typeof e[up]=="function"?e[up](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Pv.has(e.constructor)?Pv.get(e.constructor)(e,t):Dv[r]?Dv[r](e,t):"","inspectCustom"),k9=Object.prototype.toString;function yl(e,t={}){let r=Ux(t,yl),{customInspect:n}=r,a=e===null?"null":typeof e;if(a==="object"&&(a=k9.call(e).slice(8,-1)),a in Ov)return Ov[a](e,r);if(n&&e){let i=N9(e,r,a);if(i)return typeof i=="string"?i:yl(i,r)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?yi(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?hm(e,r):"constructor"in e?e.constructor!==Object?tA(e,r):yi(e,r):e===Object(e)?yi(e,r):r.stylize(String(e),a)}s(yl,"inspect");var{AsymmetricMatcher:B9,DOMCollection:j9,DOMElement:q9,Immutable:M9,ReactElement:L9,ReactTestComponent:$9}=fm,Rv=[$9,L9,q9,j9,M9,B9];function Kt(e,t=10,{maxLength:r,...n}={}){let a=r??1e4,o;try{o=Pr(e,{maxDepth:t,escapeString:!1,plugins:Rv,...n})}catch{o=Pr(e,{callToJSON:!1,maxDepth:t,escapeString:!1,plugins:Rv,...n})}return o.length>=a&&t>1?Kt(e,Math.floor(Math.min(t,Number.MAX_SAFE_INTEGER)/2),{maxLength:r,...n}):o}s(Kt,"stringify");var U9=/%[sdjifoOc%]/g;function iA(...e){if(typeof e[0]!="string"){let o=[];for(let i=0;i<e.length;i++)o.push(Ha(e[i],{depth:0,colors:!1}));return o.join(" ")}let t=e.length,r=1,n=e[0],a=String(n).replace(U9,o=>{if(o==="%%")return"%";if(r>=t)return o;switch(o){case"%s":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:typeof i=="number"&&i===0&&1/i<0?"-0":typeof i=="object"&&i!==null?typeof i.toString=="function"&&i.toString!==Object.prototype.toString?i.toString():Ha(i,{depth:0,colors:!1}):String(i)}case"%d":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number(i).toString()}case"%i":{let i=e[r++];return typeof i=="bigint"?`${i.toString()}n`:Number.parseInt(String(i)).toString()}case"%f":return Number.parseFloat(String(e[r++])).toString();case"%o":return Ha(e[r++],{showHidden:!0,showProxy:!0});case"%O":return Ha(e[r++]);case"%c":return r++,"";case"%j":try{return JSON.stringify(e[r++])}catch(i){let l=i.message;if(l.includes("circular structure")||l.includes("cyclic structures")||l.includes("cyclic object"))return"[Circular]";throw i}default:return o}});for(let o=e[r];r<t;o=e[++r])o===null||typeof o!="object"?a+=` ${o}`:a+=` ${Ha(o)}`;return a}s(iA,"format");function Ha(e,t={}){return t.truncate===0&&(t.truncate=Number.POSITIVE_INFINITY),yl(e,t)}s(Ha,"inspect");function sA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}s(sA,"getDefaultExportFromCjs");function $r(e,t,r){let n=typeof e;if(!r.includes(n))throw new TypeError(`${t} value must be ${r.join(" or ")}, received "${n}"`)}s($r,"assertTypes");function gi(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}s(gi,"isObject");function lA(e){return e===Object.prototype||e===Function.prototype||e===RegExp.prototype}s(lA,"isFinalObj");function Ii(e){return Object.prototype.toString.apply(e).slice(8,-1)}s(Ii,"getType");function uA(e,t){let r=typeof t=="function"?t:n=>t.add(n);Object.getOwnPropertyNames(e).forEach(r),Object.getOwnPropertySymbols(e).forEach(r)}s(uA,"collectOwnProperties");function mm(e){let t=new Set;return lA(e)?[]:(uA(e,t),Array.from(t))}s(mm,"getOwnProperties");var cA={forceWritable:!1};function gd(e,t=cA){return gl(e,new WeakMap,t)}s(gd,"deepClone");function gl(e,t,r=cA){let n,a;if(t.has(e))return t.get(e);if(Array.isArray(e)){for(a=Array.from({length:n=e.length}),t.set(e,a);n--;)a[n]=gl(e[n],t,r);return a}if(Object.prototype.toString.call(e)==="[object Object]"){a=Object.create(Object.getPrototypeOf(e)),t.set(e,a);let o=mm(e);for(let i of o){let l=Object.getOwnPropertyDescriptor(e,i);if(!l)continue;let u=gl(e[i],t,r);r.forceWritable?Object.defineProperty(a,i,{enumerable:l.enumerable,configurable:!0,writable:!0,value:u}):"get"in l?Object.defineProperty(a,i,{...l,get(){return u}}):Object.defineProperty(a,i,{...l,value:u})}return a}return e}s(gl,"clone");function pA(){}s(pA,"noop");var $t=-1,Ot=1,gt=0,dA=class{0;1;constructor(t,r){this[0]=t,this[1]=r}};s(dA,"Diff");var ht=dA;function fA(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;let r=0,n=Math.min(e.length,t.length),a=n,o=0;for(;r<a;)e.substring(o,a)===t.substring(o,a)?(r=a,o=r):n=a,a=Math.floor((n-r)/2+r);return a}s(fA,"diff_commonPrefix");function ym(e,t){if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;let r=0,n=Math.min(e.length,t.length),a=n,o=0;for(;r<a;)e.substring(e.length-a,e.length-o)===t.substring(t.length-a,t.length-o)?(r=a,o=r):n=a,a=Math.floor((n-r)/2+r);return a}s(ym,"diff_commonSuffix");function bd(e,t){let r=e.length,n=t.length;if(r===0||n===0)return 0;r>n?e=e.substring(r-n):r<n&&(t=t.substring(0,r));let a=Math.min(r,n);if(e===t)return a;let o=0,i=1;for(;;){let l=e.substring(a-i),u=t.indexOf(l);if(u===-1)return o;i+=u,(u===0||e.substring(a-i)===t.substring(0,i))&&(o=i,i++)}}s(bd,"diff_commonOverlap_");function hA(e){let t=!1,r=[],n=0,a=null,o=0,i=0,l=0,u=0,c=0;for(;o<e.length;)e[o][0]===gt?(r[n++]=o,i=u,l=c,u=0,c=0,a=e[o][1]):(e[o][0]===Ot?u+=e[o][1].length:c+=e[o][1].length,a&&a.length<=Math.max(i,l)&&a.length<=Math.max(u,c)&&(e.splice(r[n-1],0,new ht($t,a)),e[r[n-1]+1][0]=Ot,n--,n--,o=n>0?r[n-1]:-1,i=0,l=0,u=0,c=0,a=null,t=!0)),o++;for(t&&gm(e),mA(e),o=1;o<e.length;){if(e[o-1][0]===$t&&e[o][0]===Ot){let p=e[o-1][1],d=e[o][1],h=bd(p,d),f=bd(d,p);h>=f?(h>=p.length/2||h>=d.length/2)&&(e.splice(o,0,new ht(gt,d.substring(0,h))),e[o-1][1]=p.substring(0,p.length-h),e[o+1][1]=d.substring(h),o++):(f>=p.length/2||f>=d.length/2)&&(e.splice(o,0,new ht(gt,p.substring(0,f))),e[o-1][0]=Ot,e[o-1][1]=d.substring(0,d.length-f),e[o+1][0]=$t,e[o+1][1]=p.substring(f),o++),o++}o++}}s(hA,"diff_cleanupSemantic");var Fv=/[^a-z0-9]/i,Iv=/\s/,Nv=/[\r\n]/,V9=/\n\r?\n$/,H9=/^\r?\n\r?\n/;function mA(e){let t=1;for(;t<e.length-1;){if(e[t-1][0]===gt&&e[t+1][0]===gt){let r=e[t-1][1],n=e[t][1],a=e[t+1][1],o=ym(r,n);if(o){let p=n.substring(n.length-o);r=r.substring(0,r.length-o),n=p+n.substring(0,n.length-o),a=p+a}let i=r,l=n,u=a,c=ni(r,n)+ni(n,a);for(;n.charAt(0)===a.charAt(0);){r+=n.charAt(0),n=n.substring(1)+a.charAt(0),a=a.substring(1);let p=ni(r,n)+ni(n,a);p>=c&&(c=p,i=r,l=n,u=a)}e[t-1][1]!==i&&(i?e[t-1][1]=i:(e.splice(t-1,1),t--),e[t][1]=l,u?e[t+1][1]=u:(e.splice(t+1,1),t--))}t++}}s(mA,"diff_cleanupSemanticLossless");function gm(e){e.push(new ht(gt,""));let t=0,r=0,n=0,a="",o="",i;for(;t<e.length;)switch(e[t][0]){case Ot:n++,o+=e[t][1],t++;break;case $t:r++,a+=e[t][1],t++;break;case gt:r+n>1?(r!==0&&n!==0&&(i=fA(o,a),i!==0&&(t-r-n>0&&e[t-r-n-1][0]===gt?e[t-r-n-1][1]+=o.substring(0,i):(e.splice(0,0,new ht(gt,o.substring(0,i))),t++),o=o.substring(i),a=a.substring(i)),i=ym(o,a),i!==0&&(e[t][1]=o.substring(o.length-i)+e[t][1],o=o.substring(0,o.length-i),a=a.substring(0,a.length-i))),t-=r+n,e.splice(t,r+n),a.length&&(e.splice(t,0,new ht($t,a)),t++),o.length&&(e.splice(t,0,new ht(Ot,o)),t++),t++):t!==0&&e[t-1][0]===gt?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,n=0,r=0,a="",o="";break}e[e.length-1][1]===""&&e.pop();let l=!1;for(t=1;t<e.length-1;)e[t-1][0]===gt&&e[t+1][0]===gt&&(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),l=!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),l=!0)),t++;l&&gm(e)}s(gm,"diff_cleanupMerge");function ni(e,t){if(!e||!t)return 6;let r=e.charAt(e.length-1),n=t.charAt(0),a=r.match(Fv),o=n.match(Fv),i=a&&r.match(Iv),l=o&&n.match(Iv),u=i&&r.match(Nv),c=l&&n.match(Nv),p=u&&e.match(V9),d=c&&t.match(H9);return p||d?5:u||c?4:a&&!i&&l?3:i||l?2:a||o?1:0}s(ni,"diff_cleanupSemanticScore_");var yA="Compared values have no visual difference.",J9="Compared values serialize to the same structure.\nPrinting internal object structure without calling `toJSON` instead.",Rs={},kv;function gA(){if(kv)return Rs;kv=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=h;let e="diff-sequences",t=0,r=s((f,m,y,b,g)=>{let v=0;for(;f<m&&y<b&&g(f,y);)f+=1,y+=1,v+=1;return v},"countCommonItemsF"),n=s((f,m,y,b,g)=>{let v=0;for(;f<=m&&y<=b&&g(m,b);)m-=1,b-=1,v+=1;return v},"countCommonItemsR"),a=s((f,m,y,b,g,v,D)=>{let S=0,P=-f,w=v[S],E=w;v[S]+=r(w+1,m,b+w-P+1,y,g);let C=f<D?f:D;for(S+=1,P+=2;S<=C;S+=1,P+=2){if(S!==f&&E<v[S])w=v[S];else if(w=E+1,m<=w)return S-1;E=v[S],v[S]=w+r(w+1,m,b+w-P+1,y,g)}return D},"extendPathsF"),o=s((f,m,y,b,g,v,D)=>{let S=0,P=f,w=v[S],E=w;v[S]-=n(m,w-1,y,b+w-P-1,g);let C=f<D?f:D;for(S+=1,P-=2;S<=C;S+=1,P-=2){if(S!==f&&v[S]<E)w=v[S];else if(w=E-1,w<m)return S-1;E=v[S],v[S]=w-n(m,w-1,y,b+w-P-1,g)}return D},"extendPathsR"),i=s((f,m,y,b,g,v,D,S,P,w,E)=>{let C=b-m,_=y-m,k=g-b-_,B=-k-(f-1),W=-k+(f-1),z=t,R=f<S?f:S;for(let U=0,j=-f;U<=R;U+=1,j+=2){let Y=U===0||U!==f&&z<D[U],Q=Y?D[U]:z,ae=Y?Q:Q+1,le=C+ae-j,M=r(ae+1,y,le+1,g,v),L=ae+M;if(z=D[U],D[U]=L,B<=j&&j<=W){let K=(f-1-(j+k))/2;if(K<=w&&P[K]-1<=L){let X=C+Q-(Y?j+1:j-1),ie=n(m,Q,b,X,v),te=Q-ie,ue=X-ie,ve=te+1,je=ue+1;E.nChangePreceding=f-1,f-1===ve+je-m-b?(E.aEndPreceding=m,E.bEndPreceding=b):(E.aEndPreceding=ve,E.bEndPreceding=je),E.nCommonPreceding=ie,ie!==0&&(E.aCommonPreceding=ve,E.bCommonPreceding=je),E.nCommonFollowing=M,M!==0&&(E.aCommonFollowing=ae+1,E.bCommonFollowing=le+1);let st=L+1,Z=le+M+1;return E.nChangeFollowing=f-1,f-1===y+g-st-Z?(E.aStartFollowing=y,E.bStartFollowing=g):(E.aStartFollowing=st,E.bStartFollowing=Z),!0}}}return!1},"extendOverlappablePathsF"),l=s((f,m,y,b,g,v,D,S,P,w,E)=>{let C=g-y,_=y-m,k=g-b-_,B=k-f,W=k+f,z=t,R=f<w?f:w;for(let U=0,j=f;U<=R;U+=1,j-=2){let Y=U===0||U!==f&&P[U]<z,Q=Y?P[U]:z,ae=Y?Q:Q-1,le=C+ae-j,M=n(m,ae-1,b,le-1,v),L=ae-M;if(z=P[U],P[U]=L,B<=j&&j<=W){let K=(f+(j-k))/2;if(K<=S&&L-1<=D[K]){let X=le-M;if(E.nChangePreceding=f,f===L+X-m-b?(E.aEndPreceding=m,E.bEndPreceding=b):(E.aEndPreceding=L,E.bEndPreceding=X),E.nCommonPreceding=M,M!==0&&(E.aCommonPreceding=L,E.bCommonPreceding=X),E.nChangeFollowing=f-1,f===1)E.nCommonFollowing=0,E.aStartFollowing=y,E.bStartFollowing=g;else{let ie=C+Q-(Y?j-1:j+1),te=r(Q,y,ie,g,v);E.nCommonFollowing=te,te!==0&&(E.aCommonFollowing=Q,E.bCommonFollowing=ie);let ue=Q+te,ve=ie+te;f-1===y+g-ue-ve?(E.aStartFollowing=y,E.bStartFollowing=g):(E.aStartFollowing=ue,E.bStartFollowing=ve)}return!0}}}return!1},"extendOverlappablePathsR"),u=s((f,m,y,b,g,v,D,S,P)=>{let w=b-m,E=g-y,C=y-m,_=g-b,k=_-C,B=C,W=C;if(D[0]=m-1,S[0]=y,k%2===0){let z=(f||k)/2,R=(C+_)/2;for(let U=1;U<=R;U+=1)if(B=a(U,y,g,w,v,D,B),U<z)W=o(U,m,b,E,v,S,W);else if(l(U,m,y,b,g,v,D,B,S,W,P))return}else{let z=((f||k)+1)/2,R=(C+_+1)/2,U=1;for(B=a(U,y,g,w,v,D,B),U+=1;U<=R;U+=1)if(W=o(U-1,m,b,E,v,S,W),U<z)B=a(U,y,g,w,v,D,B);else if(i(U,m,y,b,g,v,D,B,S,W,P))return}throw new Error(`${e}: no overlap aStart=${m} aEnd=${y} bStart=${b} bEnd=${g}`)},"divide"),c=s((f,m,y,b,g,v,D,S,P,w)=>{if(g-b<y-m){if(v=!v,v&&D.length===1){let{foundSubsequence:K,isCommon:X}=D[0];D[1]={foundSubsequence:s((ie,te,ue)=>{K(ie,ue,te)},"foundSubsequence"),isCommon:s((ie,te)=>X(te,ie),"isCommon")}}let M=m,L=y;m=b,y=g,b=M,g=L}let{foundSubsequence:E,isCommon:C}=D[v?1:0];u(f,m,y,b,g,C,S,P,w);let{nChangePreceding:_,aEndPreceding:k,bEndPreceding:B,nCommonPreceding:W,aCommonPreceding:z,bCommonPreceding:R,nCommonFollowing:U,aCommonFollowing:j,bCommonFollowing:Y,nChangeFollowing:Q,aStartFollowing:ae,bStartFollowing:le}=w;m<k&&b<B&&c(_,m,k,b,B,v,D,S,P,w),W!==0&&E(W,z,R),U!==0&&E(U,j,Y),ae<y&&le<g&&c(Q,ae,y,le,g,v,D,S,P,w)},"findSubsequences"),p=s((f,m)=>{if(typeof m!="number")throw new TypeError(`${e}: ${f} typeof ${typeof m} is not a number`);if(!Number.isSafeInteger(m))throw new RangeError(`${e}: ${f} value ${m} is not a safe integer`);if(m<0)throw new RangeError(`${e}: ${f} value ${m} is a negative integer`)},"validateLength"),d=s((f,m)=>{let y=typeof m;if(y!=="function")throw new TypeError(`${e}: ${f} typeof ${y} is not a function`)},"validateCallback");function h(f,m,y,b){p("aLength",f),p("bLength",m),d("isCommon",y),d("foundSubsequence",b);let g=r(0,f,0,m,y);if(g!==0&&b(g,0,0),f!==g||m!==g){let v=g,D=g,S=n(v,f-1,D,m-1,y),P=f-S,w=m-S,E=g+S;f!==E&&m!==E&&c(0,v,P,D,w,!1,[{foundSubsequence:b,isCommon:y}],[t],[t],{aCommonFollowing:t,aCommonPreceding:t,aEndPreceding:t,aStartFollowing:t,bCommonFollowing:t,bCommonPreceding:t,bEndPreceding:t,bStartFollowing:t,nChangeFollowing:t,nChangePreceding:t,nCommonFollowing:t,nCommonPreceding:t}),S!==0&&b(S,P,w)}}return s(h,"diffSequence"),Rs}s(gA,"requireBuild");var z9=gA(),bA=sA(z9);function vA(e,t){return e.replace(/\s+$/,r=>t(r))}s(vA,"formatTrailingSpaces");function Ru(e,t,r,n,a,o){return e.length!==0?r(`${n} ${vA(e,a)}`):n!==" "?r(n):t&&o.length!==0?r(`${n} ${o}`):""}s(Ru,"printDiffLine");function bm(e,t,{aColor:r,aIndicator:n,changeLineTrailingSpaceColor:a,emptyFirstOrLastLinePlaceholder:o}){return Ru(e,t,r,n,a,o)}s(bm,"printDeleteLine");function vm(e,t,{bColor:r,bIndicator:n,changeLineTrailingSpaceColor:a,emptyFirstOrLastLinePlaceholder:o}){return Ru(e,t,r,n,a,o)}s(vm,"printInsertLine");function Em(e,t,{commonColor:r,commonIndicator:n,commonLineTrailingSpaceColor:a,emptyFirstOrLastLinePlaceholder:o}){return Ru(e,t,r,n,a,o)}s(Em,"printCommonLine");function vd(e,t,r,n,{patchColor:a}){return a(`@@ -${e+1},${t-e} +${r+1},${n-r} @@`)}s(vd,"createPatchMark");function EA(e,t){let r=e.length,n=t.contextLines,a=n+n,o=r,i=!1,l=0,u=0;for(;u!==r;){let S=u;for(;u!==r&&e[u][0]===gt;)u+=1;if(S!==u)if(S===0)u>n&&(o-=u-n,i=!0);else if(u===r){let P=u-S;P>n&&(o-=P-n,i=!0)}else{let P=u-S;P>a&&(o-=P-a,l+=1)}for(;u!==r&&e[u][0]!==gt;)u+=1}let c=l!==0||i;l!==0?o+=l+1:i&&(o+=1);let p=o-1,d=[],h=0;c&&d.push("");let f=0,m=0,y=0,b=0,g=s(S=>{let P=d.length;d.push(Em(S,P===0||P===p,t)),y+=1,b+=1},"pushCommonLine"),v=s(S=>{let P=d.length;d.push(bm(S,P===0||P===p,t)),y+=1},"pushDeleteLine"),D=s(S=>{let P=d.length;d.push(vm(S,P===0||P===p,t)),b+=1},"pushInsertLine");for(u=0;u!==r;){let S=u;for(;u!==r&&e[u][0]===gt;)u+=1;if(S!==u)if(S===0){u>n&&(S=u-n,f=S,m=S,y=f,b=m);for(let P=S;P!==u;P+=1)g(e[P][1])}else if(u===r){let P=u-S>n?S+n:u;for(let w=S;w!==P;w+=1)g(e[w][1])}else{let P=u-S;if(P>a){let w=S+n;for(let C=S;C!==w;C+=1)g(e[C][1]);d[h]=vd(f,y,m,b,t),h=d.length,d.push("");let E=P-a;f=y+E,m=b+E,y=f,b=m;for(let C=u-n;C!==u;C+=1)g(e[C][1])}else for(let w=S;w!==u;w+=1)g(e[w][1])}for(;u!==r&&e[u][0]===$t;)v(e[u][1]),u+=1;for(;u!==r&&e[u][0]===Ot;)D(e[u][1]),u+=1}return c&&(d[h]=vd(f,y,m,b,t)),d.join(`
|
|
178
|
+
`)}s(EA,"joinAlignedDiffsNoExpand");function CA(e,t){return e.map((r,n,a)=>{let o=r[1],i=n===0||n===a.length-1;switch(r[0]){case $t:return bm(o,i,t);case Ot:return vm(o,i,t);default:return Em(o,i,t)}}).join(`
|
|
179
|
+
`)}s(CA,"joinAlignedDiffsExpand");var cp=s(e=>e,"noColor"),wA=5,G9=0;function xA(){return{aAnnotation:"Expected",aColor:bt.green,aIndicator:"-",bAnnotation:"Received",bColor:bt.red,bIndicator:"+",changeColor:bt.inverse,changeLineTrailingSpaceColor:cp,commonColor:bt.dim,commonIndicator:" ",commonLineTrailingSpaceColor:cp,compareKeys:void 0,contextLines:wA,emptyFirstOrLastLinePlaceholder:"",expand:!1,includeChangeCounts:!1,omitAnnotationLines:!1,patchColor:bt.yellow,printBasicPrototype:!1,truncateThreshold:G9,truncateAnnotation:"... Diff result is truncated",truncateAnnotationColor:cp}}s(xA,"getDefaultOptions");function AA(e){return e&&typeof e=="function"?e:void 0}s(AA,"getCompareKeys");function SA(e){return typeof e=="number"&&Number.isSafeInteger(e)&&e>=0?e:wA}s(SA,"getContextLines");function Yn(e={}){return{...xA(),...e,compareKeys:AA(e.compareKeys),contextLines:SA(e.contextLines)}}s(Yn,"normalizeDiffOptions");function sa(e){return e.length===1&&e[0].length===0}s(sa,"isEmptyString");function _A(e){let t=0,r=0;return e.forEach(n=>{switch(n[0]){case $t:t+=1;break;case Ot:r+=1;break}}),{a:t,b:r}}s(_A,"countChanges");function TA({aAnnotation:e,aColor:t,aIndicator:r,bAnnotation:n,bColor:a,bIndicator:o,includeChangeCounts:i,omitAnnotationLines:l},u){if(l)return"";let c="",p="";if(i){let f=String(u.a),m=String(u.b),y=n.length-e.length,b=" ".repeat(Math.max(0,y)),g=" ".repeat(Math.max(0,-y)),v=m.length-f.length,D=" ".repeat(Math.max(0,v)),S=" ".repeat(Math.max(0,-v));c=`${b} ${r} ${D}${f}`,p=`${g} ${o} ${S}${m}`}let d=`${r} ${e}${c}`,h=`${o} ${n}${p}`;return`${t(d)}
|
|
180
|
+
${a(h)}
|
|
181
|
+
|
|
182
|
+
`}s(TA,"printAnnotation");function Fu(e,t,r){return TA(r,_A(e))+(r.expand?CA(e,r):EA(e,r))+(t?r.truncateAnnotationColor(`
|
|
183
|
+
${r.truncateAnnotation}`):"")}s(Fu,"printDiffLines");function os(e,t,r){let n=Yn(r),[a,o]=Cm(sa(e)?[]:e,sa(t)?[]:t,n);return Fu(a,o,n)}s(os,"diffLinesUnified");function PA(e,t,r,n,a){if(sa(e)&&sa(r)&&(e=[],r=[]),sa(t)&&sa(n)&&(t=[],n=[]),e.length!==r.length||t.length!==n.length)return os(e,t,a);let[o,i]=Cm(r,n,a),l=0,u=0;return o.forEach(c=>{switch(c[0]){case $t:c[1]=e[l],l+=1;break;case Ot:c[1]=t[u],u+=1;break;default:c[1]=t[u],l+=1,u+=1}}),Fu(o,i,Yn(a))}s(PA,"diffLinesUnified2");function Cm(e,t,r){let n=r?.truncateThreshold??!1,a=Math.max(Math.floor(r?.truncateThreshold??0),0),o=n?Math.min(e.length,a):e.length,i=n?Math.min(t.length,a):t.length,l=o!==e.length||i!==t.length,u=s((h,f)=>e[h]===t[f],"isCommon"),c=[],p=0,d=0;for(bA(o,i,u,s((h,f,m)=>{for(;p!==f;p+=1)c.push(new ht($t,e[p]));for(;d!==m;d+=1)c.push(new ht(Ot,t[d]));for(;h!==0;h-=1,p+=1,d+=1)c.push(new ht(gt,t[d]))},"foundSubsequence"));p!==o;p+=1)c.push(new ht($t,e[p]));for(;d!==i;d+=1)c.push(new ht(Ot,t[d]));return[c,l]}s(Cm,"diffLinesRaw");function Ed(e){if(e===void 0)return"undefined";if(e===null)return"null";if(Array.isArray(e))return"array";if(typeof e=="boolean")return"boolean";if(typeof e=="function")return"function";if(typeof e=="number")return"number";if(typeof e=="string")return"string";if(typeof e=="bigint")return"bigint";if(typeof e=="object"){if(e!=null){if(e.constructor===RegExp)return"regexp";if(e.constructor===Map)return"map";if(e.constructor===Set)return"set";if(e.constructor===Date)return"date"}return"object"}else if(typeof e=="symbol")return"symbol";throw new Error(`value of unknown type: ${e}`)}s(Ed,"getType");function Cd(e){return e.includes(`\r
|
|
184
|
+
`)?`\r
|
|
185
|
+
`:`
|
|
186
|
+
`}s(Cd,"getNewLineSymbol");function DA(e,t,r){let n=r?.truncateThreshold??!1,a=Math.max(Math.floor(r?.truncateThreshold??0),0),o=e.length,i=t.length;if(n){let h=e.includes(`
|
|
187
|
+
`),f=t.includes(`
|
|
188
|
+
`),m=Cd(e),y=Cd(t),b=h?`${e.split(m,a).join(m)}
|
|
189
|
+
`:e,g=f?`${t.split(y,a).join(y)}
|
|
190
|
+
`:t;o=b.length,i=g.length}let l=o!==e.length||i!==t.length,u=s((h,f)=>e[h]===t[f],"isCommon"),c=0,p=0,d=[];return bA(o,i,u,s((h,f,m)=>{c!==f&&d.push(new ht($t,e.slice(c,f))),p!==m&&d.push(new ht(Ot,t.slice(p,m))),c=f+h,p=m+h,d.push(new ht(gt,t.slice(m,p)))},"foundSubsequence")),c!==o&&d.push(new ht($t,e.slice(c))),p!==i&&d.push(new ht(Ot,t.slice(p))),[d,l]}s(DA,"diffStrings");function OA(e,t,r){return t.reduce((n,a)=>n+(a[0]===gt?a[1]:a[0]===e&&a[1].length!==0?r(a[1]):""),"")}s(OA,"concatenateRelevantDiffs");var RA=class{op;line;lines;changeColor;constructor(t,r){this.op=t,this.line=[],this.lines=[],this.changeColor=r}pushSubstring(t){this.pushDiff(new ht(this.op,t))}pushLine(){this.lines.push(this.line.length!==1?new ht(this.op,OA(this.op,this.line,this.changeColor)):this.line[0][0]===this.op?this.line[0]:new ht(this.op,this.line[0][1])),this.line.length=0}isLineEmpty(){return this.line.length===0}pushDiff(t){this.line.push(t)}align(t){let r=t[1];if(r.includes(`
|
|
191
|
+
`)){let n=r.split(`
|
|
192
|
+
`),a=n.length-1;n.forEach((o,i)=>{i<a?(this.pushSubstring(o),this.pushLine()):o.length!==0&&this.pushSubstring(o)})}else this.pushDiff(t)}moveLinesTo(t){this.isLineEmpty()||this.pushLine(),t.push(...this.lines),this.lines.length=0}};s(RA,"ChangeBuffer");var Bv=RA,FA=class{deleteBuffer;insertBuffer;lines;constructor(t,r){this.deleteBuffer=t,this.insertBuffer=r,this.lines=[]}pushDiffCommonLine(t){this.lines.push(t)}pushDiffChangeLines(t){let r=t[1].length===0;(!r||this.deleteBuffer.isLineEmpty())&&this.deleteBuffer.pushDiff(t),(!r||this.insertBuffer.isLineEmpty())&&this.insertBuffer.pushDiff(t)}flushChangeLines(){this.deleteBuffer.moveLinesTo(this.lines),this.insertBuffer.moveLinesTo(this.lines)}align(t){let r=t[0],n=t[1];if(n.includes(`
|
|
193
|
+
`)){let a=n.split(`
|
|
194
|
+
`),o=a.length-1;a.forEach((i,l)=>{if(l===0){let u=new ht(r,i);this.deleteBuffer.isLineEmpty()&&this.insertBuffer.isLineEmpty()?(this.flushChangeLines(),this.pushDiffCommonLine(u)):(this.pushDiffChangeLines(u),this.flushChangeLines())}else l<o?this.pushDiffCommonLine(new ht(r,i)):i.length!==0&&this.pushDiffChangeLines(new ht(r,i))})}else this.pushDiffChangeLines(t)}getLines(){return this.flushChangeLines(),this.lines}};s(FA,"CommonBuffer");var W9=FA;function IA(e,t){let r=new Bv($t,t),n=new Bv(Ot,t),a=new W9(r,n);return e.forEach(o=>{switch(o[0]){case $t:r.align(o);break;case Ot:n.align(o);break;default:a.align(o)}}),a.getLines()}s(IA,"getAlignedDiffs");function NA(e,t){if(t){let r=e.length-1;return e.some((n,a)=>n[0]===gt&&(a!==r||n[1]!==`
|
|
195
|
+
`))}return e.some(r=>r[0]===gt)}s(NA,"hasCommonDiff");function kA(e,t,r){if(e!==t&&e.length!==0&&t.length!==0){let n=e.includes(`
|
|
196
|
+
`)||t.includes(`
|
|
197
|
+
`),[a,o]=wm(n?`${e}
|
|
198
|
+
`:e,n?`${t}
|
|
199
|
+
`:t,!0,r);if(NA(a,n)){let i=Yn(r),l=IA(a,i.changeColor);return Fu(l,o,i)}}return os(e.split(`
|
|
200
|
+
`),t.split(`
|
|
201
|
+
`),r)}s(kA,"diffStringsUnified");function wm(e,t,r,n){let[a,o]=DA(e,t,n);return r&&hA(a),[a,o]}s(wm,"diffStringsRaw");function bl(e,t){let{commonColor:r}=Yn(t);return r(e)}s(bl,"getCommonMessage");var{AsymmetricMatcher:Y9,DOMCollection:K9,DOMElement:X9,Immutable:Q9,ReactElement:Z9,ReactTestComponent:e4}=fm,BA=[e4,Z9,X9,K9,Q9,Y9,fm.Error],wd={maxDepth:20,plugins:BA},jA={callToJSON:!1,maxDepth:8,plugins:BA};function Ia(e,t,r){if(Object.is(e,t))return"";let n=Ed(e),a=n,o=!1;if(n==="object"&&typeof e.asymmetricMatch=="function"){if(e.$$typeof!==Symbol.for("jest.asymmetricMatcher")||typeof e.getExpectedType!="function")return;a=e.getExpectedType(),o=a==="string"}if(a!==Ed(t)){let i=function(D){return D.length<=b?D:`${D.slice(0,b)}...`};s(i,"truncate");let{aAnnotation:l,aColor:u,aIndicator:c,bAnnotation:p,bColor:d,bIndicator:h}=Yn(r),f=vl(jA,r),m=Pr(e,f),y=Pr(t,f),b=1e5;m=i(m),y=i(y);let g=`${u(`${c} ${l}:`)}
|
|
202
|
+
${m}`,v=`${d(`${h} ${p}:`)}
|
|
203
|
+
${y}`;return`${g}
|
|
204
|
+
|
|
205
|
+
${v}`}if(!o)switch(n){case"string":return os(e.split(`
|
|
206
|
+
`),t.split(`
|
|
207
|
+
`),r);case"boolean":case"number":return qA(e,t,r);case"map":return Ws(xd(e),xd(t),r);case"set":return Ws(Ad(e),Ad(t),r);default:return Ws(e,t,r)}}s(Ia,"diff");function qA(e,t,r){let n=Pr(e,wd),a=Pr(t,wd);return n===a?"":os(n.split(`
|
|
208
|
+
`),a.split(`
|
|
209
|
+
`),r)}s(qA,"comparePrimitive");function xd(e){return new Map(Array.from(e.entries()).sort())}s(xd,"sortMap");function Ad(e){return new Set(Array.from(e.values()).sort())}s(Ad,"sortSet");function Ws(e,t,r){let n,a=!1;try{let i=vl(wd,r);n=Sd(e,t,i,r)}catch{a=!0}let o=bl(yA,r);if(n===void 0||n===o){let i=vl(jA,r);n=Sd(e,t,i,r),n!==o&&!a&&(n=`${bl(J9,r)}
|
|
210
|
+
|
|
211
|
+
${n}`)}return n}s(Ws,"compareObjects");function vl(e,t){let{compareKeys:r,printBasicPrototype:n,maxDepth:a}=Yn(t);return{...e,compareKeys:r,printBasicPrototype:n,maxDepth:a??e.maxDepth}}s(vl,"getFormatOptions");function Sd(e,t,r,n){let a={...r,indent:0},o=Pr(e,a),i=Pr(t,a);if(o===i)return bl(yA,n);{let l=Pr(e,r),u=Pr(t,r);return PA(l.split(`
|
|
212
|
+
`),u.split(`
|
|
213
|
+
`),o.split(`
|
|
214
|
+
`),i.split(`
|
|
215
|
+
`),n)}}s(Sd,"getObjectsDifference");var jv=2e4;function _d(e){return Ii(e)==="Object"&&typeof e.asymmetricMatch=="function"}s(_d,"isAsymmetricMatcher");function Td(e,t){let r=Ii(e),n=Ii(t);return r===n&&(r==="Object"||r==="Array")}s(Td,"isReplaceable");function xm(e,t,r){let{aAnnotation:n,bAnnotation:a}=Yn(r);if(typeof t=="string"&&typeof e=="string"&&t.length>0&&e.length>0&&t.length<=jv&&e.length<=jv&&t!==e){if(t.includes(`
|
|
216
|
+
`)||e.includes(`
|
|
217
|
+
`))return kA(t,e,r);let[c]=wm(t,e,!0),p=c.some(m=>m[0]===gt),d=MA(n,a),h=d(n)+$A(Pd(c,$t,p)),f=d(a)+LA(Pd(c,Ot,p));return`${h}
|
|
218
|
+
${f}`}let o=gd(t,{forceWritable:!0}),i=gd(e,{forceWritable:!0}),{replacedExpected:l,replacedActual:u}=Am(i,o);return Ia(l,u,r)}s(xm,"printDiffOrStringify");function Am(e,t,r=new WeakSet,n=new WeakSet){return e instanceof Error&&t instanceof Error&&typeof e.cause<"u"&&typeof t.cause>"u"?(delete e.cause,{replacedActual:e,replacedExpected:t}):Td(e,t)?r.has(e)||n.has(t)?{replacedActual:e,replacedExpected:t}:(r.add(e),n.add(t),mm(t).forEach(a=>{let o=t[a],i=e[a];if(_d(o))o.asymmetricMatch(i)&&(e[a]=o);else if(_d(i))i.asymmetricMatch(o)&&(t[a]=i);else if(Td(i,o)){let l=Am(i,o,r,n);e[a]=l.replacedActual,t[a]=l.replacedExpected}}),{replacedActual:e,replacedExpected:t}):{replacedActual:e,replacedExpected:t}}s(Am,"replaceAsymmetricMatcher");function MA(...e){let t=e.reduce((r,n)=>n.length>r?n.length:r,0);return r=>`${r}: ${" ".repeat(t-r.length)}`}s(MA,"getLabelPrinter");var t4="·";function Sm(e){return e.replace(/\s+$/gm,t=>t4.repeat(t.length))}s(Sm,"replaceTrailingSpaces");function LA(e){return bt.red(Sm(Kt(e)))}s(LA,"printReceived");function $A(e){return bt.green(Sm(Kt(e)))}s($A,"printExpected");function Pd(e,t,r){return e.reduce((n,a)=>n+(a[0]===gt?a[1]:a[0]===t?r?bt.inverse(a[1]):a[1]:""),"")}s(Pd,"getCommonAndChangedSubstrings");var r4="@@__IMMUTABLE_RECORD__@@",n4="@@__IMMUTABLE_ITERABLE__@@";function UA(e){return e&&(e[n4]||e[r4])}s(UA,"isImmutable");var a4=Object.getPrototypeOf({});function Dd(e){return e instanceof Error?`<unserializable>: ${e.message}`:typeof e=="string"?`<unserializable>: ${e}`:"<unserializable>"}s(Dd,"getUnserializableMessage");function dn(e,t=new WeakMap){if(!e||typeof e=="string")return e;if(e instanceof Error&&"toJSON"in e&&typeof e.toJSON=="function"){let r=e.toJSON();return r&&r!==e&&typeof r=="object"&&(typeof e.message=="string"&&ai(()=>r.message??(r.message=e.message)),typeof e.stack=="string"&&ai(()=>r.stack??(r.stack=e.stack)),typeof e.name=="string"&&ai(()=>r.name??(r.name=e.name)),e.cause!=null&&ai(()=>r.cause??(r.cause=dn(e.cause,t)))),dn(r,t)}if(typeof e=="function")return`Function<${e.name||"anonymous"}>`;if(typeof e=="symbol")return e.toString();if(typeof e!="object")return e;if(typeof Buffer<"u"&&e instanceof Buffer)return`<Buffer(${e.length}) ...>`;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return`<Uint8Array(${e.length}) ...>`;if(UA(e))return dn(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()} ${iA(e.sample)}`;if(typeof e.toJSON=="function")return dn(e.toJSON(),t);if(t.has(e))return t.get(e);if(Array.isArray(e)){let r=new Array(e.length);return t.set(e,r),e.forEach((n,a)=>{try{r[a]=dn(n,t)}catch(o){r[a]=Dd(o)}}),r}else{let r=Object.create(null);t.set(e,r);let n=e;for(;n&&n!==a4;)Object.getOwnPropertyNames(n).forEach(a=>{if(!(a in r))try{r[a]=dn(e[a],t)}catch(o){delete r[a],r[a]=Dd(o)}}),n=Object.getPrototypeOf(n);return r}}s(dn,"serializeValue");function ai(e){try{return e()}catch{}}s(ai,"safe");function VA(e){return e.replace(/__(vite_ssr_import|vi_import)_\d+__\./g,"")}s(VA,"normalizeErrorMessage");function Iu(e,t,r=new WeakSet){if(!e||typeof e!="object")return{message:String(e)};let n=e;(n.showDiff||n.showDiff===void 0&&n.expected!==void 0&&n.actual!==void 0)&&(n.diff=xm(n.actual,n.expected,{...t,...n.diffOptions})),"expected"in n&&typeof n.expected!="string"&&(n.expected=Kt(n.expected,10)),"actual"in n&&typeof n.actual!="string"&&(n.actual=Kt(n.actual,10));try{typeof n.message=="string"&&(n.message=VA(n.message))}catch{}try{!r.has(n)&&typeof n.cause=="object"&&(r.add(n),n.cause=Iu(n.cause,t,r))}catch{}try{return dn(n)}catch(a){return dn(new Error(`Failed to fully serialize error: ${a?.message}
|
|
219
|
+
Inner error message: ${n?.message}`))}}s(Iu,"processError");var rn={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"},pp=globalThis.__STORYBOOK_ADDONS_PREVIEW,o4=new Error("This function ran after the play function completed. Did you forget to `await` it?"),qv=s(e=>Object.prototype.toString.call(e)==="[object Object]","isObject"),i4=s(e=>Object.prototype.toString.call(e)==="[object Module]","isModule"),s4=s(e=>{if(!qv(e)&&!i4(e))return!1;if(e.constructor===void 0)return!0;let t=e.constructor.prototype;return!!qv(t)},"isInstrumentable"),l4=s(e=>{try{return new e.constructor}catch{return{}}},"construct"),dp=s(()=>({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}),"getInitialState"),Mv=s((e,t=!1)=>{let r=(t?e.shadowCalls:e.calls).filter(a=>a.retain);if(!r.length)return;let n=new Map(Array.from(e.callRefsByResult.entries()).filter(([,a])=>a.retain));return{cursor:r.length,calls:r,callRefsByResult:n}},"getRetainedState"),HA=class{constructor(){this.detached=!1,this.initialized=!1,this.state={},this.loadParentWindowState=s(()=>{try{this.state=he.window?.parent?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__||{}}catch{this.detached=!0}},"loadParentWindowState"),this.updateParentWindowState=s(()=>{try{he.window.parent.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER_STATE__=this.state}catch{this.detached=!0}},"updateParentWindowState"),this.loadParentWindowState();let t=s(({storyId:u,renderPhase:c,isPlaying:p=!0,isDebugging:d=!1})=>{let h=this.getState(u);this.setState(u,{...dp(),...Mv(h,d),renderPhase:c||h.renderPhase,shadowCalls:d?h.shadowCalls:[],chainedCallIds:d?h.chainedCallIds:new Set,playUntil:d?h.playUntil:void 0,isPlaying:p,isDebugging:d}),this.sync(u)},"resetState"),r=s(u=>({storyId:c,playUntil:p})=>{this.getState(c).isDebugging||this.setState(c,({calls:h})=>({calls:[],shadowCalls:h.map(f=>({...f,status:"waiting"})),isDebugging:!0}));let d=this.getLog(c);this.setState(c,({shadowCalls:h})=>{if(p||!d.length)return{playUntil:p};let f=h.findIndex(m=>m.id===d[0].callId);return{playUntil:h.slice(0,f).filter(m=>m.interceptable&&!m.ancestors?.length).slice(-1)[0]?.id}}),u.emit(fl,{storyId:c,isDebugging:!0})},"start"),n=s(u=>({storyId:c})=>{let p=this.getLog(c).filter(h=>!h.ancestors?.length),d=p.reduceRight((h,f,m)=>h>=0||f.status==="waiting"?h:m,-1);r(u)({storyId:c,playUntil:p[d-1]?.callId})},"back"),a=s(u=>({storyId:c,callId:p})=>{let{calls:d,shadowCalls:h,resolvers:f}=this.getState(c),m=d.find(({id:b})=>b===p),y=h.find(({id:b})=>b===p);if(!m&&y&&Object.values(f).length>0){let b=this.getLog(c).find(g=>g.status==="waiting")?.callId;y.id!==b&&this.setState(c,{playUntil:y.id}),Object.values(f).forEach(g=>g())}else r(u)({storyId:c,playUntil:p})},"goto"),o=s(u=>({storyId:c})=>{let{resolvers:p}=this.getState(c);if(Object.values(p).length>0)Object.values(p).forEach(d=>d());else{let d=this.getLog(c).find(h=>h.status==="waiting")?.callId;d?r(u)({storyId:c,playUntil:d}):i({storyId:c})}},"next"),i=s(({storyId:u})=>{this.setState(u,{playUntil:void 0,isDebugging:!1}),Object.values(this.getState(u).resolvers).forEach(c=>c())},"end"),l=s(({storyId:u,newPhase:c})=>{let{isDebugging:p}=this.getState(u);if(c==="preparing"&&p)return t({storyId:u,renderPhase:c});if(c==="playing")return t({storyId:u,renderPhase:c,isDebugging:p});c==="played"?this.setState(u,{renderPhase:c,isLocked:!1,isPlaying:!1,isDebugging:!1}):c==="errored"?this.setState(u,{renderPhase:c,isLocked:!1,isPlaying:!1}):c==="aborted"?this.setState(u,{renderPhase:c,isLocked:!0,isPlaying:!1}):this.setState(u,{renderPhase:c}),this.sync(u)},"renderPhaseChanged");pp&&pp.ready().then(()=>{this.channel=pp.getChannel(),this.channel.on(fl,t),this.channel.on(va,l),this.channel.on(Oh,()=>{this.initialized?this.cleanup():this.initialized=!0}),this.channel.on(rn.START,r(this.channel)),this.channel.on(rn.BACK,n(this.channel)),this.channel.on(rn.GOTO,a(this.channel)),this.channel.on(rn.NEXT,o(this.channel)),this.channel.on(rn.END,i)})}getState(t){return this.state[t]||dp()}setState(t,r){if(t){let n=this.getState(t),a=typeof r=="function"?r(n):r;this.state={...this.state,[t]:{...n,...a}},this.updateParentWindowState()}}cleanup(){this.state=Object.entries(this.state).reduce((r,[n,a])=>{let o=Mv(a);return o&&(r[n]=Object.assign(dp(),o)),r},{});let t={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:[]};this.channel?.emit(rn.SYNC,t),this.updateParentWindowState()}getLog(t){let{calls:r,shadowCalls:n}=this.getState(t),a=[...n];r.forEach((i,l)=>{a[l]=i});let o=new Set;return a.reduceRight((i,l)=>(l.args.forEach(u=>{u?.__callId__&&o.add(u.__callId__)}),l.path.forEach(u=>{u.__callId__&&o.add(u.__callId__)}),(l.interceptable||l.exception)&&!o.has(l.id)&&(i.unshift({callId:l.id,status:l.status,ancestors:l.ancestors}),o.add(l.id)),i),[])}instrument(t,r,n=0){if(!s4(t))return t;let{mutate:a=!1,path:o=[]}=r,i=r.getKeys?r.getKeys(t,n):Object.keys(t);return n+=1,i.reduce((l,u)=>{let c=JA(t,u);if(typeof c?.get=="function"){if(c.configurable){let d=s(()=>c?.get?.bind(t)?.(),"getter");Object.defineProperty(l,u,{get:s(()=>this.instrument(d(),{...r,path:o.concat(u)},n),"get")})}return l}let p=t[u];return typeof p!="function"?(l[u]=this.instrument(p,{...r,path:o.concat(u)},n),l):"__originalFn__"in p&&typeof p.__originalFn__=="function"?(l[u]=p,l):(l[u]=(...d)=>this.track(u,p,t,d,r),l[u].__originalFn__=p,Object.defineProperty(l[u],"name",{value:u,writable:!1}),Object.keys(p).length>0&&Object.assign(l[u],this.instrument({...p},{...r,path:o.concat(u)},n)),l)},a?t:l4(t))}track(t,r,n,a,o){let i=a?.[0]?.__storyId__||he.__STORYBOOK_PREVIEW__?.selectionStore?.selection?.storyId,{cursor:l,ancestors:u}=this.getState(i);this.setState(i,{cursor:l+1});let c=`${u.slice(-1)[0]||i} [${l}] ${t}`,{path:p=[],intercept:d=!1,retain:h=!1}=o,f=typeof d=="function"?d(t,p):d,m={id:c,cursor:l,storyId:i,ancestors:u,path:p,method:t,args:a,interceptable:f,retain:h},y=(f&&!u.length?this.intercept:this.invoke).call(this,r,n,m,o);return this.instrument(y,{...o,mutate:!0,path:[{__callId__:m.id}]})}intercept(t,r,n,a){let{chainedCallIds:o,isDebugging:i,playUntil:l}=this.getState(n.storyId),u=o.has(n.id);return!i||u||l?(l===n.id&&this.setState(n.storyId,{playUntil:void 0}),this.invoke(t,r,n,a)):new Promise(c=>{this.setState(n.storyId,({resolvers:p})=>({isLocked:!1,resolvers:{...p,[n.id]:c}}))}).then(()=>(this.setState(n.storyId,c=>{let{[n.id]:p,...d}=c.resolvers;return{isLocked:!0,resolvers:d}}),this.invoke(t,r,n,a)))}invoke(t,r,n,a){let{callRefsByResult:o,renderPhase:i}=this.getState(n.storyId),l=25,u=s((d,h,f)=>{if(f.includes(d))return"[Circular]";if(f=[...f,d],h>l)return"...";if(o.has(d))return o.get(d);if(d instanceof Array)return d.map(m=>u(m,++h,f));if(d instanceof Date)return{__date__:{value:d.toISOString()}};if(d instanceof Error){let{name:m,message:y,stack:b}=d;return{__error__:{name:m,message:y,stack:b}}}if(d instanceof RegExp){let{flags:m,source:y}=d;return{__regexp__:{flags:m,source:y}}}if(d instanceof he.window?.HTMLElement){let{prefix:m,localName:y,id:b,classList:g,innerText:v}=d,D=Array.from(g);return{__element__:{prefix:m,localName:y,id:b,classNames:D,innerText:v}}}return typeof d=="function"?{__function__:{name:"getMockName"in d?d.getMockName():d.name}}:typeof d=="symbol"?{__symbol__:{description:d.description}}:typeof d=="object"&&d?.constructor?.name&&d?.constructor?.name!=="Object"?{__class__:{name:d.constructor.name}}:Object.prototype.toString.call(d)==="[object Object]"?Object.fromEntries(Object.entries(d).map(([m,y])=>[m,u(y,++h,f)])):d},"serializeValues"),c={...n,args:n.args.map(d=>u(d,0,[]))};n.path.forEach(d=>{d?.__callId__&&this.setState(n.storyId,({chainedCallIds:h})=>({chainedCallIds:new Set(Array.from(h).concat(d.__callId__))}))});let p=s(d=>{if(d instanceof Error){let{name:h,message:f,stack:m,callId:y=n.id}=d,{showDiff:b=void 0,diff:g=void 0,actual:v=void 0,expected:D=void 0}=d.name==="AssertionError"?Iu(d):d,S={name:h,message:f,stack:m,callId:y,showDiff:b,diff:g,actual:v,expected:D};if(this.update({...c,status:"error",exception:S}),this.setState(n.storyId,P=>({callRefsByResult:new Map([...Array.from(P.callRefsByResult.entries()),[d,{__callId__:n.id,retain:n.retain}]])})),n.ancestors?.length)throw Object.prototype.hasOwnProperty.call(d,"callId")||Object.defineProperty(d,"callId",{value:n.id}),d}throw d},"handleException");try{if(i==="played"&&!n.retain)throw o4;let d=(a.getArgs?a.getArgs(n,this.getState(n.storyId)):n.args).map(f=>typeof f!="function"||zA(f)||Object.keys(f).length?f:(...m)=>{let{cursor:y,ancestors:b}=this.getState(n.storyId);this.setState(n.storyId,{cursor:0,ancestors:[...b,n.id]});let g=s(()=>this.setState(n.storyId,{cursor:y,ancestors:b}),"restore"),v=!1;try{let D=f(...m);return D instanceof Promise?(v=!0,D.finally(g)):D}finally{v||g()}}),h=t.apply(r,d);return h&&["object","function","symbol"].includes(typeof h)&&this.setState(n.storyId,f=>({callRefsByResult:new Map([...Array.from(f.callRefsByResult.entries()),[h,{__callId__:n.id,retain:n.retain}]])})),this.update({...c,status:h instanceof Promise?"active":"done"}),h instanceof Promise?h.then(f=>(this.update({...c,status:"done"}),f),p):h}catch(d){return p(d)}}update(t){this.channel?.emit(rn.CALL,t),this.setState(t.storyId,({calls:r})=>{let n=r.concat(t).reduce((a,o)=>Object.assign(a,{[o.id]:o}),{});return{calls:Object.values(n).sort((a,o)=>a.id.localeCompare(o.id,void 0,{numeric:!0}))}}),this.sync(t.storyId)}sync(t){let r=s(()=>{let{isLocked:n,isPlaying:a}=this.getState(t),o=this.getLog(t),i=o.filter(({ancestors:p})=>!p.length).find(p=>p.status==="waiting")?.callId,l=o.some(p=>p.status==="active");if(this.detached||n||l||o.length===0){let p={controlStates:{detached:this.detached,start:!1,back:!1,goto:!1,next:!1,end:!1},logItems:o};this.channel?.emit(rn.SYNC,p);return}let u=o.some(p=>p.status==="done"||p.status==="error"),c={controlStates:{detached:this.detached,start:u,back:u,goto:!0,next:a,end:a},logItems:o,pausedAt:i};this.channel?.emit(rn.SYNC,c)},"synchronize");this.setState(t,({syncTimeout:n})=>(clearTimeout(n),{syncTimeout:setTimeout(r,0)}))}};s(HA,"Instrumenter");var u4=HA;function No(e,t={}){try{let r=!1,n=!1;return he.window?.location?.search?.includes("instrument=true")?r=!0:he.window?.location?.search?.includes("instrument=false")&&(n=!0),he.window?.parent===he.window&&!r||n?e:(he.window&&!he.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__&&(he.window.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__=new u4),(he.window?.__STORYBOOK_ADDON_INTERACTIONS_INSTRUMENTER__).instrument(e,t))}catch(r){return vt.warn(r),e}}s(No,"instrument");function JA(e,t){let r=e;for(;r!=null;){let n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}s(JA,"getPropertyDescriptor");function zA(e){if(typeof e!="function")return!1;let t=Object.getOwnPropertyDescriptor(e,"prototype");return t?!t.writable:!1}s(zA,"isClass");var GA=Object.defineProperty,c4=Object.getOwnPropertyNames,re=s((e,t)=>GA(e,"name",{value:t,configurable:!0}),"__name"),p4=s((e,t)=>s(function(){return t||(0,e[c4(e)[0]])((t={exports:{}}).exports,t),t.exports},"__require"),"__commonJS"),_m=s((e,t)=>{for(var r in t)GA(e,r,{get:t[r],enumerable:!0})},"__export"),d4=p4({"(disabled):util"(){}}),Jr={};_m(Jr,{addChainableMethod:s(()=>Ju,"addChainableMethod"),addLengthGuard:s(()=>jo,"addLengthGuard"),addMethod:s(()=>Uu,"addMethod"),addProperty:s(()=>$u,"addProperty"),checkError:s(()=>ar,"checkError"),compareByInspect:s(()=>ji,"compareByInspect"),eql:s(()=>KA,"eql"),expectTypes:s(()=>Im,"expectTypes"),flag:s(()=>Fe,"flag"),getActual:s(()=>ss,"getActual"),getMessage:s(()=>Bu,"getMessage"),getName:s(()=>us,"getName"),getOperator:s(()=>Yu,"getOperator"),getOwnEnumerableProperties:s(()=>Wu,"getOwnEnumerableProperties"),getOwnEnumerablePropertySymbols:s(()=>Gu,"getOwnEnumerablePropertySymbols"),getPathInfo:s(()=>Lu,"getPathInfo"),hasProperty:s(()=>ls,"hasProperty"),inspect:s(()=>He,"inspect"),isNaN:s(()=>Nl,"isNaN"),isNumeric:s(()=>St,"isNumeric"),isProxyEnabled:s(()=>Bo,"isProxyEnabled"),isRegExp:s(()=>qi,"isRegExp"),objDisplay:s(()=>Bn,"objDisplay"),overwriteChainableMethod:s(()=>zu,"overwriteChainableMethod"),overwriteMethod:s(()=>Hu,"overwriteMethod"),overwriteProperty:s(()=>Vu,"overwriteProperty"),proxify:s(()=>Na,"proxify"),test:s(()=>Nu,"test"),transferFlags:s(()=>wr,"transferFlags"),type:s(()=>Ke,"type")});var ar={};_m(ar,{compatibleConstructor:s(()=>Dm,"compatibleConstructor"),compatibleInstance:s(()=>Pm,"compatibleInstance"),compatibleMessage:s(()=>Om,"compatibleMessage"),getConstructorName:s(()=>Rm,"getConstructorName"),getMessage:s(()=>Fm,"getMessage")});function is(e){return e instanceof Error||Object.prototype.toString.call(e)==="[object Error]"}s(is,"isErrorInstance");re(is,"isErrorInstance");function Tm(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(Tm,"isRegExp");re(Tm,"isRegExp");function Pm(e,t){return is(t)&&e===t}s(Pm,"compatibleInstance");re(Pm,"compatibleInstance");function Dm(e,t){return is(t)?e.constructor===t.constructor||e instanceof t.constructor:(typeof t=="object"||typeof t=="function")&&t.prototype?e.constructor===t||e instanceof t:!1}s(Dm,"compatibleConstructor");re(Dm,"compatibleConstructor");function Om(e,t){let r=typeof e=="string"?e:e.message;return Tm(t)?t.test(r):typeof t=="string"?r.indexOf(t)!==-1:!1}s(Om,"compatibleMessage");re(Om,"compatibleMessage");function Rm(e){let t=e;return is(e)?t=e.constructor.name:typeof e=="function"&&(t=e.name,t===""&&(t=new e().name||t)),t}s(Rm,"getConstructorName");re(Rm,"getConstructorName");function Fm(e){let t="";return e&&e.message?t=e.message:typeof e=="string"&&(t=e),t}s(Fm,"getMessage");re(Fm,"getMessage");function Fe(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));if(arguments.length===3)n[t]=r;else return n[t]}s(Fe,"flag");re(Fe,"flag");function Nu(e,t){var r=Fe(e,"negate"),n=t[0];return r?!n:n}s(Nu,"test");re(Nu,"test");function Ke(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)}s(Ke,"type");re(Ke,"type");var f4="captureStackTrace"in Error,Ko,ze=(Ko=class extends Error{message;get name(){return"AssertionError"}get ok(){return!1}constructor(e="Unspecified AssertionError",t,r){super(e),this.message=e,f4&&Error.captureStackTrace(this,r||Ko);for(let n in t)n in this||(this[n]=t[n])}toJSON(e){return{...this,name:this.name,message:this.message,ok:!1,stack:e!==!1?this.stack:void 0}}},s(Ko,"_AssertionError"),re(Ko,"AssertionError"),Ko);function Im(e,t){var r=Fe(e,"message"),n=Fe(e,"ssfi");r=r?r+": ":"",e=Fe(e,"object"),t=t.map(function(i){return i.toLowerCase()}),t.sort();var a=t.map(function(i,l){var u=~["a","e","i","o","u"].indexOf(i.charAt(0))?"an":"a",c=t.length>1&&l===t.length-1?"or ":"";return c+u+" "+i}).join(", "),o=Ke(e).toLowerCase();if(!t.some(function(i){return o===i}))throw new ze(r+"object tested must be "+a+", but "+o+" given",void 0,n)}s(Im,"expectTypes");re(Im,"expectTypes");function ss(e,t){return t.length>4?t[4]:e._obj}s(ss,"getActual");re(ss,"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"]},h4={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},yo="…";function Nm(e,t){let r=Lv[h4[t]]||Lv[t]||"";return r?`\x1B[${r[0]}m${String(e)}\x1B[${r[1]}m`:String(e)}s(Nm,"colorise");re(Nm,"colorise");function km({showHidden:e=!1,depth:t=2,colors:r=!1,customInspect:n=!0,showProxy:a=!1,maxArrayLength:o=1/0,breakLength:i=1/0,seen:l=[],truncate:u=1/0,stylize:c=String}={},p){let d={showHidden:!!e,depth:Number(t),colors:!!r,customInspect:!!n,showProxy:!!a,maxArrayLength:Number(o),breakLength:Number(i),truncate:Number(u),seen:l,inspect:p,stylize:c};return d.colors&&(d.stylize=Nm),d}s(km,"normaliseOptions");re(km,"normaliseOptions");function Bm(e){return e>="\uD800"&&e<="\uDBFF"}s(Bm,"isHighSurrogate");re(Bm,"isHighSurrogate");function Xr(e,t,r=yo){e=String(e);let n=r.length,a=e.length;if(n>t&&a>n)return r;if(a>t&&a>n){let o=t-n;return o>0&&Bm(e[o-1])&&(o=o-1),`${e.slice(0,o)}${r}`}return e}s(Xr,"truncate");re(Xr,"truncate");function ur(e,t,r,n=", "){r=r||t.inspect;let a=e.length;if(a===0)return"";let o=t.truncate,i="",l="",u="";for(let c=0;c<a;c+=1){let p=c+1===e.length,d=c+2===e.length;u=`${yo}(${e.length-c})`;let h=e[c];t.truncate=o-i.length-(p?0:n.length);let f=l||r(h,t)+(p?"":n),m=i.length+f.length,y=m+u.length;if(p&&m>o&&i.length+u.length<=o||!p&&!d&&y>o||(l=p?"":r(e[c+1],t)+(d?"":n),!p&&d&&y>o&&m+l.length>o))break;if(i+=f,!p&&!d&&m+l.length>=o){u=`${yo}(${e.length-c-1})`;break}u=""}return`${i}${u}`}s(ur,"inspectList");re(ur,"inspectList");function jm(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}s(jm,"quoteComplexKey");re(jm,"quoteComplexKey");function Ea([e,t],r){return r.truncate-=2,typeof e=="string"?e=jm(e):typeof e!="number"&&(e=`[${r.inspect(e,r)}]`),r.truncate-=e.length,t=r.inspect(t,r),`${e}: ${t}`}s(Ea,"inspectProperty");re(Ea,"inspectProperty");function qm(e,t){let r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return"[]";t.truncate-=4;let n=ur(e,t);t.truncate-=n.length;let a="";return r.length&&(a=ur(r.map(o=>[o,e[o]]),t,Ea)),`[ ${n}${a?`, ${a}`:""} ]`}s(qm,"inspectArray");re(qm,"inspectArray");var m4=re(e=>typeof Buffer=="function"&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:e.constructor.name,"getArrayName");function Sr(e,t){let r=m4(e);t.truncate-=r.length+4;let n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return`${r}[]`;let a="";for(let i=0;i<e.length;i++){let l=`${t.stylize(Xr(e[i],t.truncate),"number")}${i===e.length-1?"":", "}`;if(t.truncate-=l.length,e[i]!==e.length&&t.truncate<=3){a+=`${yo}(${e.length-e[i]+1})`;break}a+=l}let o="";return n.length&&(o=ur(n.map(i=>[i,e[i]]),t,Ea)),`${r}[ ${a}${o?`, ${o}`:""} ]`}s(Sr,"inspectTypedArray");re(Sr,"inspectTypedArray");function Mm(e,t){let r=e.toJSON();if(r===null)return"Invalid Date";let n=r.split("T"),a=n[0];return t.stylize(`${a}T${Xr(n[1],t.truncate-a.length-1)}`,"date")}s(Mm,"inspectDate");re(Mm,"inspectDate");function El(e,t){let r=e[Symbol.toStringTag]||"Function",n=e.name;return n?t.stylize(`[${r} ${Xr(n,t.truncate-11)}]`,"special"):t.stylize(`[${r}]`,"special")}s(El,"inspectFunction");re(El,"inspectFunction");function Lm([e,t],r){return r.truncate-=4,e=r.inspect(e,r),r.truncate-=e.length,t=r.inspect(t,r),`${e} => ${t}`}s(Lm,"inspectMapEntry");re(Lm,"inspectMapEntry");function $m(e){let t=[];return e.forEach((r,n)=>{t.push([n,r])}),t}s($m,"mapToEntries");re($m,"mapToEntries");function Um(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${ur($m(e),t,Lm)} }`)}s(Um,"inspectMap");re(Um,"inspectMap");var y4=Number.isNaN||(e=>e!==e);function Cl(e,t){return y4(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):e===0?t.stylize(1/e===1/0?"+0":"-0","number"):t.stylize(Xr(String(e),t.truncate),"number")}s(Cl,"inspectNumber");re(Cl,"inspectNumber");function wl(e,t){let r=Xr(e.toString(),t.truncate-1);return r!==yo&&(r+="n"),t.stylize(r,"bigint")}s(wl,"inspectBigInt");re(wl,"inspectBigInt");function Vm(e,t){let r=e.toString().split("/")[2],n=t.truncate-(2+r.length),a=e.source;return t.stylize(`/${Xr(a,n)}/${r}`,"regexp")}s(Vm,"inspectRegExp");re(Vm,"inspectRegExp");function Hm(e){let t=[];return e.forEach(r=>{t.push(r)}),t}s(Hm,"arrayFromSet");re(Hm,"arrayFromSet");function Jm(e,t){return e.size===0?"Set{}":(t.truncate-=7,`Set{ ${ur(Hm(e),t)} }`)}s(Jm,"inspectSet");re(Jm,"inspectSet");var $v=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),g4={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},b4=16;function zm(e){return g4[e]||`\\u${`0000${e.charCodeAt(0).toString(b4)}`.slice(-4)}`}s(zm,"escape");re(zm,"escape");function xl(e,t){return $v.test(e)&&(e=e.replace($v,zm)),t.stylize(`'${Xr(e,t.truncate-2)}'`,"string")}s(xl,"inspectString");re(xl,"inspectString");function Al(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}s(Al,"inspectSymbol");re(Al,"inspectSymbol");var WA=re(()=>"Promise{…}","getPromiseValue");try{let{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(WA=re((n,a)=>{let[o,i]=e(n);return o===t?"Promise{<pending>}":`Promise${o===r?"!":""}{${a.inspect(i,a)}}`},"getPromiseValue"))}catch{}var v4=WA;function ao(e,t){let r=Object.getOwnPropertyNames(e),n=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(r.length===0&&n.length===0)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let a=ur(r.map(l=>[l,e[l]]),t,Ea),o=ur(n.map(l=>[l,e[l]]),t,Ea);t.seen.pop();let i="";return a&&o&&(i=", "),`{ ${a}${i}${o} }`}s(ao,"inspectObject");re(ao,"inspectObject");var fp=typeof Symbol<"u"&&Symbol.toStringTag?Symbol.toStringTag:!1;function Gm(e,t){let r="";return fp&&fp in e&&(r=e[fp]),r=r||e.constructor.name,(!r||r==="_class")&&(r="<Anonymous Class>"),t.truncate-=r.length,`${r}${ao(e,t)}`}s(Gm,"inspectClass");re(Gm,"inspectClass");function Wm(e,t){return e.length===0?"Arguments[]":(t.truncate-=13,`Arguments[ ${ur(e,t)} ]`)}s(Wm,"inspectArguments");re(Wm,"inspectArguments");var E4=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description","cause"];function Ym(e,t){let r=Object.getOwnPropertyNames(e).filter(i=>E4.indexOf(i)===-1),n=e.name;t.truncate-=n.length;let a="";if(typeof e.message=="string"?a=Xr(e.message,t.truncate):r.unshift("message"),a=a?`: ${a}`:"",t.truncate-=a.length+5,t.seen=t.seen||[],t.seen.includes(e))return"[Circular]";t.seen.push(e);let o=ur(r.map(i=>[i,e[i]]),t,Ea);return`${n}${a}${o?` { ${o} }`:""}`}s(Ym,"inspectObject2");re(Ym,"inspectObject");function Km([e,t],r){return r.truncate-=3,t?`${r.stylize(String(e),"yellow")}=${r.stylize(`"${t}"`,"string")}`:`${r.stylize(String(e),"yellow")}`}s(Km,"inspectAttribute");re(Km,"inspectAttribute");function Ni(e,t){return ur(e,t,ku,`
|
|
220
|
+
`)}s(Ni,"inspectHTMLCollection");re(Ni,"inspectHTMLCollection");function ku(e,t){let r=e.getAttributeNames(),n=e.tagName.toLowerCase(),a=t.stylize(`<${n}`,"special"),o=t.stylize(">","special"),i=t.stylize(`</${n}>`,"special");t.truncate-=n.length*2+5;let l="";r.length>0&&(l+=" ",l+=ur(r.map(p=>[p,e.getAttribute(p)]),t,Km," ")),t.truncate-=l.length;let u=t.truncate,c=Ni(e.children,t);return c&&c.length>u&&(c=`${yo}(${e.children.length})`),`${a}${l}${o}${c}${i}`}s(ku,"inspectHTML");re(ku,"inspectHTML");var C4=typeof Symbol=="function"&&typeof Symbol.for=="function",hp=C4?Symbol.for("chai/inspect"):"@@chai/inspect",Xa=!1;try{let e=d4();Xa=e.inspect?e.inspect.custom:!1}catch{Xa=!1}var Uv=new WeakMap,Vv={},Hv={undefined:s((e,t)=>t.stylize("undefined","undefined"),"undefined"),null:s((e,t)=>t.stylize("null","null"),"null"),boolean:s((e,t)=>t.stylize(String(e),"boolean"),"boolean"),Boolean:s((e,t)=>t.stylize(String(e),"boolean"),"Boolean"),number:Cl,Number:Cl,bigint:wl,BigInt:wl,string:xl,String:xl,function:El,Function:El,symbol:Al,Symbol:Al,Array:qm,Date:Mm,Map:Um,Set:Jm,RegExp:Vm,Promise:v4,WeakSet:s((e,t)=>t.stylize("WeakSet{…}","special"),"WeakSet"),WeakMap:s((e,t)=>t.stylize("WeakMap{…}","special"),"WeakMap"),Arguments:Wm,Int8Array:Sr,Uint8Array:Sr,Uint8ClampedArray:Sr,Int16Array:Sr,Uint16Array:Sr,Int32Array:Sr,Uint32Array:Sr,Float32Array:Sr,Float64Array:Sr,Generator:s(()=>"","Generator"),DataView:s(()=>"","DataView"),ArrayBuffer:s(()=>"","ArrayBuffer"),Error:Ym,HTMLCollection:Ni,NodeList:Ni},w4=re((e,t,r)=>hp in e&&typeof e[hp]=="function"?e[hp](t):Xa&&Xa in e&&typeof e[Xa]=="function"?e[Xa](t.depth,t):"inspect"in e&&typeof e.inspect=="function"?e.inspect(t.depth,t):"constructor"in e&&Uv.has(e.constructor)?Uv.get(e.constructor)(e,t):Vv[r]?Vv[r](e,t):"","inspectCustom"),x4=Object.prototype.toString;function ki(e,t={}){let r=km(t,ki),{customInspect:n}=r,a=e===null?"null":typeof e;if(a==="object"&&(a=x4.call(e).slice(8,-1)),a in Hv)return Hv[a](e,r);if(n&&e){let i=w4(e,r,a);if(i)return typeof i=="string"?i:ki(i,r)}let o=e?Object.getPrototypeOf(e):!1;return o===Object.prototype||o===null?ao(e,r):e&&typeof HTMLElement=="function"&&e instanceof HTMLElement?ku(e,r):"constructor"in e?e.constructor!==Object?Gm(e,r):ao(e,r):e===Object(e)?ao(e,r):r.stylize(String(e),a)}s(ki,"inspect");re(ki,"inspect");var Ht={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null};function He(e,t,r,n){var a={colors:n,depth:typeof r>"u"?2:r,showHidden:t,truncate:Ht.truncateThreshold?Ht.truncateThreshold:1/0};return ki(e,a)}s(He,"inspect2");re(He,"inspect");function Bn(e){var t=He(e),r=Object.prototype.toString.call(e);if(Ht.truncateThreshold&&t.length>=Ht.truncateThreshold){if(r==="[object Function]")return!e.name||e.name===""?"[Function]":"[Function: "+e.name+"]";if(r==="[object Array]")return"[ Array("+e.length+") ]";if(r==="[object Object]"){var n=Object.keys(e),a=n.length>2?n.splice(0,2).join(", ")+", ...":n.join(", ");return"{ Object ("+a+") }"}else return t}else return t}s(Bn,"objDisplay");re(Bn,"objDisplay");function Bu(e,t){var r=Fe(e,"negate"),n=Fe(e,"object"),a=t[3],o=ss(e,t),i=r?t[2]:t[1],l=Fe(e,"message");return typeof i=="function"&&(i=i()),i=i||"",i=i.replace(/#\{this\}/g,function(){return Bn(n)}).replace(/#\{act\}/g,function(){return Bn(o)}).replace(/#\{exp\}/g,function(){return Bn(a)}),l?l+": "+i:i}s(Bu,"getMessage2");re(Bu,"getMessage");function wr(e,t,r){var n=e.__flags||(e.__flags=Object.create(null));t.__flags||(t.__flags=Object.create(null)),r=arguments.length===3?r:!0;for(var a in n)(r||a!=="object"&&a!=="ssfi"&&a!=="lockSsfi"&&a!="message")&&(t.__flags[a]=n[a])}s(wr,"transferFlags");re(wr,"transferFlags");function Sl(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)}s(Sl,"type2");re(Sl,"type");function ju(){this._key="chai/deep-eql__"+Math.random()+Date.now()}s(ju,"FakeMap");re(ju,"FakeMap");ju.prototype={get:re(s(function(e){return e[this._key]},"get"),"get"),set:re(s(function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})},"set"),"set")};var YA=typeof WeakMap=="function"?WeakMap:ju;function _l(e,t,r){if(!r||Hn(e)||Hn(t))return null;var n=r.get(e);if(n){var a=n.get(t);if(typeof a=="boolean")return a}return null}s(_l,"memoizeCompare");re(_l,"memoizeCompare");function Qa(e,t,r,n){if(!(!r||Hn(e)||Hn(t))){var a=r.get(e);a?a.set(t,n):(a=new YA,a.set(t,n),r.set(e,a))}}s(Qa,"memoizeSet");re(Qa,"memoizeSet");var KA=ko;function ko(e,t,r){if(r&&r.comparator)return Tl(e,t,r);var n=qu(e,t);return n!==null?n:Tl(e,t,r)}s(ko,"deepEqual");re(ko,"deepEqual");function qu(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t?!0:Hn(e)||Hn(t)?!1:null}s(qu,"simpleEqual");re(qu,"simpleEqual");function Tl(e,t,r){r=r||{},r.memoize=r.memoize===!1?!1:r.memoize||new YA;var n=r&&r.comparator,a=_l(e,t,r.memoize);if(a!==null)return a;var o=_l(t,e,r.memoize);if(o!==null)return o;if(n){var i=n(e,t);if(i===!1||i===!0)return Qa(e,t,r.memoize,i),i;var l=qu(e,t);if(l!==null)return l}var u=Sl(e);if(u!==Sl(t))return Qa(e,t,r.memoize,!1),!1;Qa(e,t,r.memoize,!0);var c=Xm(e,t,u,r);return Qa(e,t,r.memoize,c),c}s(Tl,"extensiveDeepEqual");re(Tl,"extensiveDeepEqual");function Xm(e,t,r,n){switch(r){case"String":case"Number":case"Boolean":case"Date":return ko(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Mu(e,t,["name","message","code"],n);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return gn(e,t,n);case"RegExp":return Qm(e,t);case"Generator":return Zm(e,t,n);case"DataView":return gn(new Uint8Array(e.buffer),new Uint8Array(t.buffer),n);case"ArrayBuffer":return gn(new Uint8Array(e),new Uint8Array(t),n);case"Set":return Pl(e,t,n);case"Map":return Pl(e,t,n);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:return ty(e,t,n)}}s(Xm,"extensiveDeepEqualByType");re(Xm,"extensiveDeepEqualByType");function Qm(e,t){return e.toString()===t.toString()}s(Qm,"regexpEqual");re(Qm,"regexpEqual");function Pl(e,t,r){try{if(e.size!==t.size)return!1;if(e.size===0)return!0}catch{return!1}var n=[],a=[];return e.forEach(re(s(function(o,i){n.push([o,i])},"gatherEntries"),"gatherEntries")),t.forEach(re(s(function(o,i){a.push([o,i])},"gatherEntries"),"gatherEntries")),gn(n.sort(),a.sort(),r)}s(Pl,"entriesEqual");re(Pl,"entriesEqual");function gn(e,t,r){var n=e.length;if(n!==t.length)return!1;if(n===0)return!0;for(var a=-1;++a<n;)if(ko(e[a],t[a],r)===!1)return!1;return!0}s(gn,"iterableEqual");re(gn,"iterableEqual");function Zm(e,t,r){return gn(Bi(e),Bi(t),r)}s(Zm,"generatorEqual");re(Zm,"generatorEqual");function ey(e){return typeof Symbol<"u"&&typeof e=="object"&&typeof Symbol.iterator<"u"&&typeof e[Symbol.iterator]=="function"}s(ey,"hasIteratorFunction");re(ey,"hasIteratorFunction");function Dl(e){if(ey(e))try{return Bi(e[Symbol.iterator]())}catch{return[]}return[]}s(Dl,"getIteratorEntries");re(Dl,"getIteratorEntries");function Bi(e){for(var t=e.next(),r=[t.value];t.done===!1;)t=e.next(),r.push(t.value);return r}s(Bi,"getGeneratorEntries");re(Bi,"getGeneratorEntries");function Ol(e){var t=[];for(var r in e)t.push(r);return t}s(Ol,"getEnumerableKeys");re(Ol,"getEnumerableKeys");function Rl(e){for(var t=[],r=Object.getOwnPropertySymbols(e),n=0;n<r.length;n+=1){var a=r[n];Object.getOwnPropertyDescriptor(e,a).enumerable&&t.push(a)}return t}s(Rl,"getEnumerableSymbols");re(Rl,"getEnumerableSymbols");function Mu(e,t,r,n){var a=r.length;if(a===0)return!0;for(var o=0;o<a;o+=1)if(ko(e[r[o]],t[r[o]],n)===!1)return!1;return!0}s(Mu,"keysEqual");re(Mu,"keysEqual");function ty(e,t,r){var n=Ol(e),a=Ol(t),o=Rl(e),i=Rl(t);if(n=n.concat(o),a=a.concat(i),n.length&&n.length===a.length)return gn(Fl(n).sort(),Fl(a).sort())===!1?!1:Mu(e,t,n,r);var l=Dl(e),u=Dl(t);return l.length&&l.length===u.length?(l.sort(),u.sort(),gn(l,u,r)):n.length===0&&l.length===0&&a.length===0&&u.length===0}s(ty,"objectEqual");re(ty,"objectEqual");function Hn(e){return e===null||typeof e!="object"}s(Hn,"isPrimitive");re(Hn,"isPrimitive");function Fl(e){return e.map(re(s(function(t){return typeof t=="symbol"?t.toString():t},"mapSymbol"),"mapSymbol"))}s(Fl,"mapSymbols");re(Fl,"mapSymbols");function ls(e,t){return typeof e>"u"||e===null?!1:t in Object(e)}s(ls,"hasProperty");re(ls,"hasProperty");function ry(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(t=>{if(t==="constructor"||t==="__proto__"||t==="prototype")return{};let r=/^\[(\d+)\]$/.exec(t),n=null;return r?n={i:parseFloat(r[1])}:n={p:t.replace(/\\([.[\]])/g,"$1")},n})}s(ry,"parsePath");re(ry,"parsePath");function Il(e,t,r){let n=e,a=null;r=typeof r>"u"?t.length:r;for(let o=0;o<r;o++){let i=t[o];n&&(typeof i.p>"u"?n=n[i.i]:n=n[i.p],o===r-1&&(a=n))}return a}s(Il,"internalGetPathValue");re(Il,"internalGetPathValue");function Lu(e,t){let r=ry(t),n=r[r.length-1],a={parent:r.length>1?Il(e,r,r.length-1):e,name:n.p||n.i,value:Il(e,r)};return a.exists=ls(a.parent,a.name),a}s(Lu,"getPathInfo");re(Lu,"getPathInfo");function J(e,t,r,n){return Fe(this,"ssfi",r||J),Fe(this,"lockSsfi",n),Fe(this,"object",e),Fe(this,"message",t),Fe(this,"eql",Ht.deepEqual||KA),Na(this)}s(J,"Assertion");re(J,"Assertion");Object.defineProperty(J,"includeStack",{get:s(function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ht.includeStack},"get"),set:s(function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),Ht.includeStack=e},"set")});Object.defineProperty(J,"showDiff",{get:s(function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ht.showDiff},"get"),set:s(function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),Ht.showDiff=e},"set")});J.addProperty=function(e,t){$u(this.prototype,e,t)};J.addMethod=function(e,t){Uu(this.prototype,e,t)};J.addChainableMethod=function(e,t,r){Ju(this.prototype,e,t,r)};J.overwriteProperty=function(e,t){Vu(this.prototype,e,t)};J.overwriteMethod=function(e,t){Hu(this.prototype,e,t)};J.overwriteChainableMethod=function(e,t,r){zu(this.prototype,e,t,r)};J.prototype.assert=function(e,t,r,n,a,o){var i=Nu(this,arguments);if(o!==!1&&(o=!0),n===void 0&&a===void 0&&(o=!1),Ht.showDiff!==!0&&(o=!1),!i){t=Bu(this,arguments);var l=ss(this,arguments),u={actual:l,expected:n,showDiff:o},c=Yu(this,arguments);throw c&&(u.operator=c),new ze(t,u,Ht.includeStack?this.assert:Fe(this,"ssfi"))}};Object.defineProperty(J.prototype,"_obj",{get:s(function(){return Fe(this,"object")},"get"),set:s(function(e){Fe(this,"object",e)},"set")});function Bo(){return Ht.useProxy&&typeof Proxy<"u"&&typeof Reflect<"u"}s(Bo,"isProxyEnabled");re(Bo,"isProxyEnabled");function $u(e,t,r){r=r===void 0?function(){}:r,Object.defineProperty(e,t,{get:re(s(function n(){!Bo()&&!Fe(this,"lockSsfi")&&Fe(this,"ssfi",n);var a=r.call(this);if(a!==void 0)return a;var o=new J;return wr(this,o),o},"propertyGetter"),"propertyGetter"),configurable:!0})}s($u,"addProperty");re($u,"addProperty");var A4=Object.getOwnPropertyDescriptor(function(){},"length");function jo(e,t,r){return A4.configurable&&Object.defineProperty(e,"length",{get:s(function(){throw Error(r?"Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.':"Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')},"get")}),e}s(jo,"addLengthGuard");re(jo,"addLengthGuard");function ny(e){var t=Object.getOwnPropertyNames(e);function r(a){t.indexOf(a)===-1&&t.push(a)}s(r,"addProperty2"),re(r,"addProperty");for(var n=Object.getPrototypeOf(e);n!==null;)Object.getOwnPropertyNames(n).forEach(r),n=Object.getPrototypeOf(n);return t}s(ny,"getProperties");re(ny,"getProperties");var Jv=["__flags","__methods","_obj","assert"];function Na(e,t){return Bo()?new Proxy(e,{get:re(s(function r(n,a){if(typeof a=="string"&&Ht.proxyExcludedKeys.indexOf(a)===-1&&!Reflect.has(n,a)){if(t)throw Error("Invalid Chai property: "+t+"."+a+'. See docs for proper usage of "'+t+'".');var o=null,i=4;throw ny(n).forEach(function(l){if(!Object.prototype.hasOwnProperty(l)&&Jv.indexOf(l)===-1){var u=ay(a,l,i);u<i&&(o=l,i=u)}}),Error(o!==null?"Invalid Chai property: "+a+'. Did you mean "'+o+'"?':"Invalid Chai property: "+a)}return Jv.indexOf(a)===-1&&!Fe(n,"lockSsfi")&&Fe(n,"ssfi",r),Reflect.get(n,a)},"proxyGetter"),"proxyGetter")}):e}s(Na,"proxify");re(Na,"proxify");function ay(e,t,r){if(Math.abs(e.length-t.length)>=r)return r;var n=[];for(let o=0;o<=e.length;o++)n[o]=Array(t.length+1).fill(0),n[o][0]=o;for(let o=0;o<t.length;o++)n[0][o]=o;for(let o=1;o<=e.length;o++){var a=e.charCodeAt(o-1);for(let i=1;i<=t.length;i++){if(Math.abs(o-i)>=r){n[o][i]=r;continue}n[o][i]=Math.min(n[o-1][i]+1,n[o][i-1]+1,n[o-1][i-1]+(a===t.charCodeAt(i-1)?0:1))}}return n[e.length][t.length]}s(ay,"stringDistanceCapped");re(ay,"stringDistanceCapped");function Uu(e,t,r){var n=re(function(){Fe(this,"lockSsfi")||Fe(this,"ssfi",n);var a=r.apply(this,arguments);if(a!==void 0)return a;var o=new J;return wr(this,o),o},"methodWrapper");jo(n,t,!1),e[t]=Na(n,t)}s(Uu,"addMethod");re(Uu,"addMethod");function Vu(e,t,r){var n=Object.getOwnPropertyDescriptor(e,t),a=re(function(){},"_super");n&&typeof n.get=="function"&&(a=n.get),Object.defineProperty(e,t,{get:re(s(function o(){!Bo()&&!Fe(this,"lockSsfi")&&Fe(this,"ssfi",o);var i=Fe(this,"lockSsfi");Fe(this,"lockSsfi",!0);var l=r(a).call(this);if(Fe(this,"lockSsfi",i),l!==void 0)return l;var u=new J;return wr(this,u),u},"overwritingPropertyGetter"),"overwritingPropertyGetter"),configurable:!0})}s(Vu,"overwriteProperty");re(Vu,"overwriteProperty");function Hu(e,t,r){var n=e[t],a=re(function(){throw new Error(t+" is not a function")},"_super");n&&typeof n=="function"&&(a=n);var o=re(function(){Fe(this,"lockSsfi")||Fe(this,"ssfi",o);var i=Fe(this,"lockSsfi");Fe(this,"lockSsfi",!0);var l=r(a).apply(this,arguments);if(Fe(this,"lockSsfi",i),l!==void 0)return l;var u=new J;return wr(this,u),u},"overwritingMethodWrapper");jo(o,t,!1),e[t]=Na(o,t)}s(Hu,"overwriteMethod");re(Hu,"overwriteMethod");var S4=typeof Object.setPrototypeOf=="function",zv=re(function(){},"testFn"),_4=Object.getOwnPropertyNames(zv).filter(function(e){var t=Object.getOwnPropertyDescriptor(zv,e);return typeof t!="object"?!0:!t.configurable}),T4=Function.prototype.call,P4=Function.prototype.apply;function Ju(e,t,r,n){typeof n!="function"&&(n=re(function(){},"chainingBehavior"));var a={method:r,chainingBehavior:n};e.__methods||(e.__methods={}),e.__methods[t]=a,Object.defineProperty(e,t,{get:re(s(function(){a.chainingBehavior.call(this);var o=re(function(){Fe(this,"lockSsfi")||Fe(this,"ssfi",o);var u=a.method.apply(this,arguments);if(u!==void 0)return u;var c=new J;return wr(this,c),c},"chainableMethodWrapper");if(jo(o,t,!0),S4){var i=Object.create(this);i.call=T4,i.apply=P4,Object.setPrototypeOf(o,i)}else{var l=Object.getOwnPropertyNames(e);l.forEach(function(u){if(_4.indexOf(u)===-1){var c=Object.getOwnPropertyDescriptor(e,u);Object.defineProperty(o,u,c)}})}return wr(this,o),Na(o)},"chainableMethodGetter"),"chainableMethodGetter"),configurable:!0})}s(Ju,"addChainableMethod");re(Ju,"addChainableMethod");function zu(e,t,r,n){var a=e.__methods[t],o=a.chainingBehavior;a.chainingBehavior=re(s(function(){var l=n(o).call(this);if(l!==void 0)return l;var u=new J;return wr(this,u),u},"overwritingChainableMethodGetter"),"overwritingChainableMethodGetter");var i=a.method;a.method=re(s(function(){var l=r(i).apply(this,arguments);if(l!==void 0)return l;var u=new J;return wr(this,u),u},"overwritingChainableMethodWrapper"),"overwritingChainableMethodWrapper")}s(zu,"overwriteChainableMethod");re(zu,"overwriteChainableMethod");function ji(e,t){return He(e)<He(t)?-1:1}s(ji,"compareByInspect");re(ji,"compareByInspect");function Gu(e){return typeof Object.getOwnPropertySymbols!="function"?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}s(Gu,"getOwnEnumerablePropertySymbols");re(Gu,"getOwnEnumerablePropertySymbols");function Wu(e){return Object.keys(e).concat(Gu(e))}s(Wu,"getOwnEnumerableProperties");re(Wu,"getOwnEnumerableProperties");var Nl=Number.isNaN;function oy(e){var t=Ke(e),r=["Array","Object","Function"];return r.indexOf(t)!==-1}s(oy,"isObjectType");re(oy,"isObjectType");function Yu(e,t){var r=Fe(e,"operator"),n=Fe(e,"negate"),a=t[3],o=n?t[2]:t[1];if(r)return r;if(typeof o=="function"&&(o=o()),o=o||"",!!o&&!/\shave\s/.test(o)){var i=oy(a);return/\snot\s/.test(o)?i?"notDeepStrictEqual":"notStrictEqual":i?"deepStrictEqual":"strictEqual"}}s(Yu,"getOperator");re(Yu,"getOperator");function us(e){return e.name}s(us,"getName");re(us,"getName");function qi(e){return Object.prototype.toString.call(e)==="[object RegExp]"}s(qi,"isRegExp2");re(qi,"isRegExp");function St(e){return["Number","BigInt"].includes(Ke(e))}s(St,"isNumeric");re(St,"isNumeric");var{flag:ee}=Jr;["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(){ee(this,"negate",!0)});J.addProperty("deep",function(){ee(this,"deep",!0)});J.addProperty("nested",function(){ee(this,"nested",!0)});J.addProperty("own",function(){ee(this,"own",!0)});J.addProperty("ordered",function(){ee(this,"ordered",!0)});J.addProperty("any",function(){ee(this,"any",!0),ee(this,"all",!1)});J.addProperty("all",function(){ee(this,"all",!0),ee(this,"any",!1)});var Gv={function:["function","asyncfunction","generatorfunction","asyncgeneratorfunction"],asyncfunction:["asyncfunction","asyncgeneratorfunction"],generatorfunction:["generatorfunction","asyncgeneratorfunction"],asyncgeneratorfunction:["asyncgeneratorfunction"]};function Ku(e,t){t&&ee(this,"message",t),e=e.toLowerCase();var r=ee(this,"object"),n=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";let a=Ke(r).toLowerCase();Gv.function.includes(e)?this.assert(Gv[e].includes(a),"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e):this.assert(e===a,"expected #{this} to be "+n+e,"expected #{this} not to be "+n+e)}s(Ku,"an");re(Ku,"an");J.addChainableMethod("an",Ku);J.addChainableMethod("a",Ku);function iy(e,t){return Nl(e)&&Nl(t)||e===t}s(iy,"SameValueZero");re(iy,"SameValueZero");function qo(){ee(this,"contains",!0)}s(qo,"includeChainingBehavior");re(qo,"includeChainingBehavior");function Mo(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=Ke(r).toLowerCase(),a=ee(this,"message"),o=ee(this,"negate"),i=ee(this,"ssfi"),l=ee(this,"deep"),u=l?"deep ":"",c=l?ee(this,"eql"):iy;a=a?a+": ":"";var p=!1;switch(n){case"string":p=r.indexOf(e)!==-1;break;case"weakset":if(l)throw new ze(a+"unable to use .deep.include with WeakSet",void 0,i);p=r.has(e);break;case"map":r.forEach(function(m){p=p||c(m,e)});break;case"set":l?r.forEach(function(m){p=p||c(m,e)}):p=r.has(e);break;case"array":l?p=r.some(function(m){return c(m,e)}):p=r.indexOf(e)!==-1;break;default:if(e!==Object(e))throw new ze(a+"the given combination of arguments ("+n+" and "+Ke(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 "+Ke(e).toLowerCase(),void 0,i);var d=Object.keys(e),h=null,f=0;if(d.forEach(function(m){var y=new J(r);if(wr(this,y,!0),ee(y,"lockSsfi",!0),!o||d.length===1){y.property(m,e[m]);return}try{y.property(m,e[m])}catch(b){if(!ar.compatibleConstructor(b,ze))throw b;h===null&&(h=b),f++}},this),o&&d.length>1&&f===d.length)throw h;return}this.assert(p,"expected #{this} to "+u+"include "+He(e),"expected #{this} to not "+u+"include "+He(e))}s(Mo,"include");re(Mo,"include");J.addChainableMethod("include",Mo,qo);J.addChainableMethod("contain",Mo,qo);J.addChainableMethod("contains",Mo,qo);J.addChainableMethod("includes",Mo,qo);J.addProperty("ok",function(){this.assert(ee(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")});J.addProperty("true",function(){this.assert(ee(this,"object")===!0,"expected #{this} to be true","expected #{this} to be false",!ee(this,"negate"))});J.addProperty("numeric",function(){let e=ee(this,"object");this.assert(["Number","BigInt"].includes(Ke(e)),"expected #{this} to be numeric","expected #{this} to not be numeric",!ee(this,"negate"))});J.addProperty("callable",function(){let e=ee(this,"object"),t=ee(this,"ssfi"),r=ee(this,"message"),n=r?`${r}: `:"",a=ee(this,"negate"),o=a?`${n}expected ${He(e)} not to be a callable function`:`${n}expected ${He(e)} to be a callable function`,i=["Function","AsyncFunction","GeneratorFunction","AsyncGeneratorFunction"].includes(Ke(e));if(i&&a||!i&&!a)throw new ze(o,void 0,t)});J.addProperty("false",function(){this.assert(ee(this,"object")===!1,"expected #{this} to be false","expected #{this} to be true",!!ee(this,"negate"))});J.addProperty("null",function(){this.assert(ee(this,"object")===null,"expected #{this} to be null","expected #{this} not to be null")});J.addProperty("undefined",function(){this.assert(ee(this,"object")===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined")});J.addProperty("NaN",function(){this.assert(Nl(ee(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")});function Xu(){var e=ee(this,"object");this.assert(e!=null,"expected #{this} to exist","expected #{this} to not exist")}s(Xu,"assertExist");re(Xu,"assertExist");J.addProperty("exist",Xu);J.addProperty("exists",Xu);J.addProperty("empty",function(){var e=ee(this,"object"),t=ee(this,"ssfi"),r=ee(this,"message"),n;switch(r=r?r+": ":"",Ke(e).toLowerCase()){case"array":case"string":n=e.length;break;case"map":case"set":n=e.size;break;case"weakmap":case"weakset":throw new ze(r+".empty was passed a weak collection",void 0,t);case"function":var a=r+".empty was passed a function "+us(e);throw new ze(a.trim(),void 0,t);default:if(e!==Object(e))throw new ze(r+".empty was passed non-string primitive "+He(e),void 0,t);n=Object.keys(e).length}this.assert(n===0,"expected #{this} to be empty","expected #{this} not to be empty")});function Qu(){var e=ee(this,"object"),t=Ke(e);this.assert(t==="Arguments","expected #{this} to be arguments but got "+t,"expected #{this} to not be arguments")}s(Qu,"checkArguments");re(Qu,"checkArguments");J.addProperty("arguments",Qu);J.addProperty("Arguments",Qu);function cs(e,t){t&&ee(this,"message",t);var r=ee(this,"object");if(ee(this,"deep")){var n=ee(this,"lockSsfi");ee(this,"lockSsfi",!0),this.eql(e),ee(this,"lockSsfi",n)}else this.assert(e===r,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}s(cs,"assertEqual");re(cs,"assertEqual");J.addMethod("equal",cs);J.addMethod("equals",cs);J.addMethod("eq",cs);function Zu(e,t){t&&ee(this,"message",t);var r=ee(this,"eql");this.assert(r(e,ee(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}s(Zu,"assertEql");re(Zu,"assertEql");J.addMethod("eql",Zu);J.addMethod("eqls",Zu);function ps(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"doLength"),a=ee(this,"message"),o=a?a+": ":"",i=ee(this,"ssfi"),l=Ke(r).toLowerCase(),u=Ke(e).toLowerCase();if(n&&l!=="map"&&l!=="set"&&new J(r,a,i,!0).to.have.property("length"),!n&&l==="date"&&u!=="date")throw new ze(o+"the argument to above must be a date",void 0,i);if(!St(e)&&(n||St(r)))throw new ze(o+"the argument to above must be a number",void 0,i);if(!n&&l!=="date"&&!St(r)){var c=l==="string"?"'"+r+"'":r;throw new ze(o+"expected "+c+" to be a number or a date",void 0,i)}if(n){var p="length",d;l==="map"||l==="set"?(p="size",d=r.size):d=r.length,this.assert(d>e,"expected #{this} to have a "+p+" above #{exp} but got #{act}","expected #{this} to not have a "+p+" above #{exp}",e,d)}else this.assert(r>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}s(ps,"assertAbove");re(ps,"assertAbove");J.addMethod("above",ps);J.addMethod("gt",ps);J.addMethod("greaterThan",ps);function ds(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"doLength"),a=ee(this,"message"),o=a?a+": ":"",i=ee(this,"ssfi"),l=Ke(r).toLowerCase(),u=Ke(e).toLowerCase(),c,p=!0;if(n&&l!=="map"&&l!=="set"&&new J(r,a,i,!0).to.have.property("length"),!n&&l==="date"&&u!=="date")c=o+"the argument to least must be a date";else if(!St(e)&&(n||St(r)))c=o+"the argument to least must be a number";else if(!n&&l!=="date"&&!St(r)){var d=l==="string"?"'"+r+"'":r;c=o+"expected "+d+" to be a number or a date"}else p=!1;if(p)throw new ze(c,void 0,i);if(n){var h="length",f;l==="map"||l==="set"?(h="size",f=r.size):f=r.length,this.assert(f>=e,"expected #{this} to have a "+h+" at least #{exp} but got #{act}","expected #{this} to have a "+h+" below #{exp}",e,f)}else this.assert(r>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}s(ds,"assertLeast");re(ds,"assertLeast");J.addMethod("least",ds);J.addMethod("gte",ds);J.addMethod("greaterThanOrEqual",ds);function fs(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"doLength"),a=ee(this,"message"),o=a?a+": ":"",i=ee(this,"ssfi"),l=Ke(r).toLowerCase(),u=Ke(e).toLowerCase(),c,p=!0;if(n&&l!=="map"&&l!=="set"&&new J(r,a,i,!0).to.have.property("length"),!n&&l==="date"&&u!=="date")c=o+"the argument to below must be a date";else if(!St(e)&&(n||St(r)))c=o+"the argument to below must be a number";else if(!n&&l!=="date"&&!St(r)){var d=l==="string"?"'"+r+"'":r;c=o+"expected "+d+" to be a number or a date"}else p=!1;if(p)throw new ze(c,void 0,i);if(n){var h="length",f;l==="map"||l==="set"?(h="size",f=r.size):f=r.length,this.assert(f<e,"expected #{this} to have a "+h+" below #{exp} but got #{act}","expected #{this} to not have a "+h+" below #{exp}",e,f)}else this.assert(r<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}s(fs,"assertBelow");re(fs,"assertBelow");J.addMethod("below",fs);J.addMethod("lt",fs);J.addMethod("lessThan",fs);function hs(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"doLength"),a=ee(this,"message"),o=a?a+": ":"",i=ee(this,"ssfi"),l=Ke(r).toLowerCase(),u=Ke(e).toLowerCase(),c,p=!0;if(n&&l!=="map"&&l!=="set"&&new J(r,a,i,!0).to.have.property("length"),!n&&l==="date"&&u!=="date")c=o+"the argument to most must be a date";else if(!St(e)&&(n||St(r)))c=o+"the argument to most must be a number";else if(!n&&l!=="date"&&!St(r)){var d=l==="string"?"'"+r+"'":r;c=o+"expected "+d+" to be a number or a date"}else p=!1;if(p)throw new ze(c,void 0,i);if(n){var h="length",f;l==="map"||l==="set"?(h="size",f=r.size):f=r.length,this.assert(f<=e,"expected #{this} to have a "+h+" at most #{exp} but got #{act}","expected #{this} to have a "+h+" above #{exp}",e,f)}else this.assert(r<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}s(hs,"assertMost");re(hs,"assertMost");J.addMethod("most",hs);J.addMethod("lte",hs);J.addMethod("lessThanOrEqual",hs);J.addMethod("within",function(e,t,r){r&&ee(this,"message",r);var n=ee(this,"object"),a=ee(this,"doLength"),o=ee(this,"message"),i=o?o+": ":"",l=ee(this,"ssfi"),u=Ke(n).toLowerCase(),c=Ke(e).toLowerCase(),p=Ke(t).toLowerCase(),d,h=!0,f=c==="date"&&p==="date"?e.toISOString()+".."+t.toISOString():e+".."+t;if(a&&u!=="map"&&u!=="set"&&new J(n,o,l,!0).to.have.property("length"),!a&&u==="date"&&(c!=="date"||p!=="date"))d=i+"the arguments to within must be dates";else if((!St(e)||!St(t))&&(a||St(n)))d=i+"the arguments to within must be numbers";else if(!a&&u!=="date"&&!St(n)){var m=u==="string"?"'"+n+"'":n;d=i+"expected "+m+" to be a number or a date"}else h=!1;if(h)throw new ze(d,void 0,l);if(a){var y="length",b;u==="map"||u==="set"?(y="size",b=n.size):b=n.length,this.assert(b>=e&&b<=t,"expected #{this} to have a "+y+" within "+f,"expected #{this} to not have a "+y+" within "+f)}else this.assert(n>=e&&n<=t,"expected #{this} to be within "+f,"expected #{this} to not be within "+f)});function ec(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"ssfi"),a=ee(this,"message");try{var o=r instanceof e}catch(l){throw l instanceof TypeError?(a=a?a+": ":"",new ze(a+"The instanceof assertion needs a constructor but "+Ke(e)+" was given.",void 0,n)):l}var i=us(e);i==null&&(i="an unnamed constructor"),this.assert(o,"expected #{this} to be an instance of "+i,"expected #{this} to not be an instance of "+i)}s(ec,"assertInstanceOf");re(ec,"assertInstanceOf");J.addMethod("instanceof",ec);J.addMethod("instanceOf",ec);function tc(e,t,r){r&&ee(this,"message",r);var n=ee(this,"nested"),a=ee(this,"own"),o=ee(this,"message"),i=ee(this,"object"),l=ee(this,"ssfi"),u=typeof e;if(o=o?o+": ":"",n){if(u!=="string")throw new ze(o+"the argument to property must be a string when using nested syntax",void 0,l)}else if(u!=="string"&&u!=="number"&&u!=="symbol")throw new ze(o+"the argument to property must be a string, number, or symbol",void 0,l);if(n&&a)throw new ze(o+'The "nested" and "own" flags cannot be combined.',void 0,l);if(i==null)throw new ze(o+"Target cannot be null or undefined.",void 0,l);var c=ee(this,"deep"),p=ee(this,"negate"),d=n?Lu(i,e):null,h=n?d.value:i[e],f=c?ee(this,"eql"):(b,g)=>b===g,m="";c&&(m+="deep "),a&&(m+="own "),n&&(m+="nested "),m+="property ";var y;a?y=Object.prototype.hasOwnProperty.call(i,e):n?y=d.exists:y=ls(i,e),(!p||arguments.length===1)&&this.assert(y,"expected #{this} to have "+m+He(e),"expected #{this} to not have "+m+He(e)),arguments.length>1&&this.assert(y&&f(t,h),"expected #{this} to have "+m+He(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+He(e)+" of #{act}",t,h),ee(this,"object",h)}s(tc,"assertProperty");re(tc,"assertProperty");J.addMethod("property",tc);function rc(e,t,r){ee(this,"own",!0),tc.apply(this,arguments)}s(rc,"assertOwnProperty");re(rc,"assertOwnProperty");J.addMethod("ownProperty",rc);J.addMethod("haveOwnProperty",rc);function nc(e,t,r){typeof t=="string"&&(r=t,t=null),r&&ee(this,"message",r);var n=ee(this,"object"),a=Object.getOwnPropertyDescriptor(Object(n),e),o=ee(this,"eql");a&&t?this.assert(o(t,a),"expected the own property descriptor for "+He(e)+" on #{this} to match "+He(t)+", got "+He(a),"expected the own property descriptor for "+He(e)+" on #{this} to not match "+He(t),t,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+He(e),"expected #{this} to not have an own property descriptor for "+He(e)),ee(this,"object",a)}s(nc,"assertOwnPropertyDescriptor");re(nc,"assertOwnPropertyDescriptor");J.addMethod("ownPropertyDescriptor",nc);J.addMethod("haveOwnPropertyDescriptor",nc);function ac(){ee(this,"doLength",!0)}s(ac,"assertLengthChain");re(ac,"assertLengthChain");function oc(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=Ke(r).toLowerCase(),a=ee(this,"message"),o=ee(this,"ssfi"),i="length",l;switch(n){case"map":case"set":i="size",l=r.size;break;default:new J(r,a,o,!0).to.have.property("length"),l=r.length}this.assert(l==e,"expected #{this} to have a "+i+" of #{exp} but got #{act}","expected #{this} to not have a "+i+" of #{act}",e,l)}s(oc,"assertLength");re(oc,"assertLength");J.addChainableMethod("length",oc,ac);J.addChainableMethod("lengthOf",oc,ac);function ic(e,t){t&&ee(this,"message",t);var r=ee(this,"object");this.assert(e.exec(r),"expected #{this} to match "+e,"expected #{this} not to match "+e)}s(ic,"assertMatch");re(ic,"assertMatch");J.addMethod("match",ic);J.addMethod("matches",ic);J.addMethod("string",function(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"message"),a=ee(this,"ssfi");new J(r,n,a,!0).is.a("string"),this.assert(~r.indexOf(e),"expected #{this} to contain "+He(e),"expected #{this} to not contain "+He(e))});function sc(e){var t=ee(this,"object"),r=Ke(t),n=Ke(e),a=ee(this,"ssfi"),o=ee(this,"deep"),i,l="",u,c=!0,p=ee(this,"message");p=p?p+": ":"";var d=p+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if(r==="Map"||r==="Set")l=o?"deeply ":"",u=[],t.forEach(function(v,D){u.push(D)}),n!=="Array"&&(e=Array.prototype.slice.call(arguments));else{switch(u=Wu(t),n){case"Array":if(arguments.length>1)throw new ze(d,void 0,a);break;case"Object":if(arguments.length>1)throw new ze(d,void 0,a);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map(function(v){return typeof v=="symbol"?v:String(v)})}if(!e.length)throw new ze(p+"keys required",void 0,a);var h=e.length,f=ee(this,"any"),m=ee(this,"all"),y=e,b=o?ee(this,"eql"):(v,D)=>v===D;if(!f&&!m&&(m=!0),f&&(c=y.some(function(v){return u.some(function(D){return b(v,D)})})),m&&(c=y.every(function(v){return u.some(function(D){return b(v,D)})}),ee(this,"contains")||(c=c&&e.length==u.length)),h>1){e=e.map(function(v){return He(v)});var g=e.pop();m&&(i=e.join(", ")+", and "+g),f&&(i=e.join(", ")+", or "+g)}else i=He(e[0]);i=(h>1?"keys ":"key ")+i,i=(ee(this,"contains")?"contain ":"have ")+i,this.assert(c,"expected #{this} to "+l+i,"expected #{this} to not "+l+i,y.slice(0).sort(ji),u.sort(ji),!0)}s(sc,"assertKeys");re(sc,"assertKeys");J.addMethod("keys",sc);J.addMethod("key",sc);function ms(e,t,r){r&&ee(this,"message",r);var n=ee(this,"object"),a=ee(this,"ssfi"),o=ee(this,"message"),i=ee(this,"negate")||!1;new J(n,o,a,!0).is.a("function"),(qi(e)||typeof e=="string")&&(t=e,e=null);let l,u=!1;try{n()}catch(v){u=!0,l=v}var c=e===void 0&&t===void 0,p=!!(e&&t),d=!1,h=!1;if(c||!c&&!i){var f="an error";e instanceof Error?f="#{exp}":e&&(f=ar.getConstructorName(e));let v=l;if(l instanceof Error)v=l.toString();else if(typeof l=="string")v=l;else if(l&&(typeof l=="object"||typeof l=="function"))try{v=ar.getConstructorName(l)}catch{}this.assert(u,"expected #{this} to throw "+f,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),v)}if(e&&l){if(e instanceof Error){var m=ar.compatibleInstance(l,e);m===i&&(p&&i?d=!0:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l&&!i?" but #{act} was thrown":""),e.toString(),l.toString()))}var y=ar.compatibleConstructor(l,e);y===i&&(p&&i?d=!0:this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&ar.getConstructorName(e),l instanceof Error?l.toString():l&&ar.getConstructorName(l)))}if(l&&t!==void 0&&t!==null){var b="including";qi(t)&&(b="matching");var g=ar.compatibleMessage(l,t);g===i&&(p&&i?h=!0:this.assert(i,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",t,ar.getMessage(l)))}d&&h&&this.assert(i,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(l?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&ar.getConstructorName(e),l instanceof Error?l.toString():l&&ar.getConstructorName(l)),ee(this,"object",l)}s(ms,"assertThrows");re(ms,"assertThrows");J.addMethod("throw",ms);J.addMethod("throws",ms);J.addMethod("Throw",ms);function lc(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"itself"),a=typeof r=="function"&&!n?r.prototype[e]:r[e];this.assert(typeof a=="function","expected #{this} to respond to "+He(e),"expected #{this} to not respond to "+He(e))}s(lc,"respondTo");re(lc,"respondTo");J.addMethod("respondTo",lc);J.addMethod("respondsTo",lc);J.addProperty("itself",function(){ee(this,"itself",!0)});function uc(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=e(r);this.assert(n,"expected #{this} to satisfy "+Bn(e),"expected #{this} to not satisfy"+Bn(e),!ee(this,"negate"),n)}s(uc,"satisfy");re(uc,"satisfy");J.addMethod("satisfy",uc);J.addMethod("satisfies",uc);function cc(e,t,r){r&&ee(this,"message",r);var n=ee(this,"object"),a=ee(this,"message"),o=ee(this,"ssfi");new J(n,a,o,!0).is.numeric;let i="A `delta` value is required for `closeTo`";if(t==null)throw new ze(a?`${a}: ${i}`:i,void 0,o);if(new J(t,a,o,!0).is.numeric,i="A `expected` value is required for `closeTo`",e==null)throw new ze(a?`${a}: ${i}`:i,void 0,o);new J(e,a,o,!0).is.numeric;let l=re(c=>c<0n?-c:c,"abs"),u=re(c=>parseFloat(parseFloat(c).toPrecision(12)),"strip");this.assert(u(l(n-e))<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}s(cc,"closeTo");re(cc,"closeTo");J.addMethod("closeTo",cc);J.addMethod("approximately",cc);function sy(e,t,r,n,a){let o=Array.from(t),i=Array.from(e);if(!n){if(i.length!==o.length)return!1;o=o.slice()}return i.every(function(l,u){if(a)return r?r(l,o[u]):l===o[u];if(!r){var c=o.indexOf(l);return c===-1?!1:(n||o.splice(c,1),!0)}return o.some(function(p,d){return r(l,p)?(n||o.splice(d,1),!0):!1})})}s(sy,"isSubsetOf");re(sy,"isSubsetOf");J.addMethod("members",function(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"message"),a=ee(this,"ssfi");new J(r,n,a,!0).to.be.iterable,new J(e,n,a,!0).to.be.iterable;var o=ee(this,"contains"),i=ee(this,"ordered"),l,u,c;o?(l=i?"an ordered superset":"a superset",u="expected #{this} to be "+l+" of #{exp}",c="expected #{this} to not be "+l+" of #{exp}"):(l=i?"ordered members":"members",u="expected #{this} to have the same "+l+" as #{exp}",c="expected #{this} to not have the same "+l+" as #{exp}");var p=ee(this,"deep")?ee(this,"eql"):void 0;this.assert(sy(e,r,p,o,i),u,c,e,r,!0)});J.addProperty("iterable",function(e){e&&ee(this,"message",e);var t=ee(this,"object");this.assert(t!=null&&t[Symbol.iterator],"expected #{this} to be an iterable","expected #{this} to not be an iterable",t)});function ly(e,t){t&&ee(this,"message",t);var r=ee(this,"object"),n=ee(this,"message"),a=ee(this,"ssfi"),o=ee(this,"contains"),i=ee(this,"deep"),l=ee(this,"eql");new J(e,n,a,!0).to.be.an("array"),o?this.assert(e.some(function(u){return r.indexOf(u)>-1}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):i?this.assert(e.some(function(u){return l(r,u)}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)}s(ly,"oneOf");re(ly,"oneOf");J.addMethod("oneOf",ly);function pc(e,t,r){r&&ee(this,"message",r);var n=ee(this,"object"),a=ee(this,"message"),o=ee(this,"ssfi");new J(n,a,o,!0).is.a("function");var i;t?(new J(e,a,o,!0).to.have.property(t),i=e[t]):(new J(e,a,o,!0).is.a("function"),i=e()),n();var l=t==null?e():e[t],u=t==null?i:"."+t;ee(this,"deltaMsgObj",u),ee(this,"initialDeltaValue",i),ee(this,"finalDeltaValue",l),ee(this,"deltaBehavior","change"),ee(this,"realDelta",l!==i),this.assert(i!==l,"expected "+u+" to change","expected "+u+" to not change")}s(pc,"assertChanges");re(pc,"assertChanges");J.addMethod("change",pc);J.addMethod("changes",pc);function dc(e,t,r){r&&ee(this,"message",r);var n=ee(this,"object"),a=ee(this,"message"),o=ee(this,"ssfi");new J(n,a,o,!0).is.a("function");var i;t?(new J(e,a,o,!0).to.have.property(t),i=e[t]):(new J(e,a,o,!0).is.a("function"),i=e()),new J(i,a,o,!0).is.a("number"),n();var l=t==null?e():e[t],u=t==null?i:"."+t;ee(this,"deltaMsgObj",u),ee(this,"initialDeltaValue",i),ee(this,"finalDeltaValue",l),ee(this,"deltaBehavior","increase"),ee(this,"realDelta",l-i),this.assert(l-i>0,"expected "+u+" to increase","expected "+u+" to not increase")}s(dc,"assertIncreases");re(dc,"assertIncreases");J.addMethod("increase",dc);J.addMethod("increases",dc);function fc(e,t,r){r&&ee(this,"message",r);var n=ee(this,"object"),a=ee(this,"message"),o=ee(this,"ssfi");new J(n,a,o,!0).is.a("function");var i;t?(new J(e,a,o,!0).to.have.property(t),i=e[t]):(new J(e,a,o,!0).is.a("function"),i=e()),new J(i,a,o,!0).is.a("number"),n();var l=t==null?e():e[t],u=t==null?i:"."+t;ee(this,"deltaMsgObj",u),ee(this,"initialDeltaValue",i),ee(this,"finalDeltaValue",l),ee(this,"deltaBehavior","decrease"),ee(this,"realDelta",i-l),this.assert(l-i<0,"expected "+u+" to decrease","expected "+u+" to not decrease")}s(fc,"assertDecreases");re(fc,"assertDecreases");J.addMethod("decrease",fc);J.addMethod("decreases",fc);function uy(e,t){t&&ee(this,"message",t);var r=ee(this,"deltaMsgObj"),n=ee(this,"initialDeltaValue"),a=ee(this,"finalDeltaValue"),o=ee(this,"deltaBehavior"),i=ee(this,"realDelta"),l;o==="change"?l=Math.abs(a-n)===Math.abs(e):l=i===Math.abs(e),this.assert(l,"expected "+r+" to "+o+" by "+e,"expected "+r+" to not "+o+" by "+e)}s(uy,"assertDelta");re(uy,"assertDelta");J.addMethod("by",uy);J.addProperty("extensible",function(){var e=ee(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(){var e=ee(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(){var e=ee(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){var t=ee(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 Mi(e,t){return e===t?!0:typeof t!=typeof e?!1:typeof e!="object"||e===null?e===t:t?Array.isArray(e)?Array.isArray(t)?e.every(function(r){return t.some(function(n){return Mi(r,n)})}):!1:e instanceof Date?t instanceof Date?e.getTime()===t.getTime():!1:Object.keys(e).every(function(r){var n=e[r],a=t[r];return typeof n=="object"&&n!==null&&a!==null?Mi(n,a):typeof n=="function"?n(a):a===n}):!1}s(Mi,"compareSubset");re(Mi,"compareSubset");J.addMethod("containSubset",function(e){let t=Fe(this,"object"),r=Ht.showDiff;this.assert(Mi(e,t),"expected #{act} to contain subset #{exp}","expected #{act} to not contain subset #{exp}",e,t,r)});function jn(e,t){return new J(e,t)}s(jn,"expect");re(jn,"expect");jn.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"expect.fail()",new ze(r,{actual:e,expected:t,operator:n},jn.fail)};var XA={};_m(XA,{Should:s(()=>O4,"Should"),should:s(()=>D4,"should")});function hc(){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)}s(e,"shouldGetter"),re(e,"shouldGetter");function t(n){Object.defineProperty(this,"should",{value:n,enumerable:!0,configurable:!0,writable:!0})}s(t,"shouldSetter"),re(t,"shouldSetter"),Object.defineProperty(Object.prototype,"should",{set:t,get:e,configurable:!0});var r={};return r.fail=function(n,a,o,i){throw arguments.length<2&&(o=n,n=void 0),o=o||"should.fail()",new ze(o,{actual:n,expected:a,operator:i},r.fail)},r.equal=function(n,a,o){new J(n,o).to.equal(a)},r.Throw=function(n,a,o,i){new J(n,i).to.Throw(a,o)},r.exist=function(n,a){new J(n,a).to.exist},r.not={},r.not.equal=function(n,a,o){new J(n,o).to.not.equal(a)},r.not.Throw=function(n,a,o,i){new J(n,i).to.not.Throw(a,o)},r.not.exist=function(n,a){new J(n,a).to.not.exist},r.throw=r.Throw,r.not.throw=r.not.Throw,r}s(hc,"loadShould");re(hc,"loadShould");var D4=hc,O4=hc;function H(e,t){var r=new J(null,null,H,!0);r.assert(e,t,"[ negation message unavailable ]")}s(H,"assert");re(H,"assert");H.fail=function(e,t,r,n){throw arguments.length<2&&(r=e,e=void 0),r=r||"assert.fail()",new ze(r,{actual:e,expected:t,operator:n},H.fail)};H.isOk=function(e,t){new J(e,t,H.isOk,!0).is.ok};H.isNotOk=function(e,t){new J(e,t,H.isNotOk,!0).is.not.ok};H.equal=function(e,t,r){var n=new J(e,r,H.equal,!0);n.assert(t==Fe(n,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)};H.notEqual=function(e,t,r){var n=new J(e,r,H.notEqual,!0);n.assert(t!=Fe(n,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)};H.strictEqual=function(e,t,r){new J(e,r,H.strictEqual,!0).to.equal(t)};H.notStrictEqual=function(e,t,r){new J(e,r,H.notStrictEqual,!0).to.not.equal(t)};H.deepEqual=H.deepStrictEqual=function(e,t,r){new J(e,r,H.deepEqual,!0).to.eql(t)};H.notDeepEqual=function(e,t,r){new J(e,r,H.notDeepEqual,!0).to.not.eql(t)};H.isAbove=function(e,t,r){new J(e,r,H.isAbove,!0).to.be.above(t)};H.isAtLeast=function(e,t,r){new J(e,r,H.isAtLeast,!0).to.be.least(t)};H.isBelow=function(e,t,r){new J(e,r,H.isBelow,!0).to.be.below(t)};H.isAtMost=function(e,t,r){new J(e,r,H.isAtMost,!0).to.be.most(t)};H.isTrue=function(e,t){new J(e,t,H.isTrue,!0).is.true};H.isNotTrue=function(e,t){new J(e,t,H.isNotTrue,!0).to.not.equal(!0)};H.isFalse=function(e,t){new J(e,t,H.isFalse,!0).is.false};H.isNotFalse=function(e,t){new J(e,t,H.isNotFalse,!0).to.not.equal(!1)};H.isNull=function(e,t){new J(e,t,H.isNull,!0).to.equal(null)};H.isNotNull=function(e,t){new J(e,t,H.isNotNull,!0).to.not.equal(null)};H.isNaN=function(e,t){new J(e,t,H.isNaN,!0).to.be.NaN};H.isNotNaN=function(e,t){new J(e,t,H.isNotNaN,!0).not.to.be.NaN};H.exists=function(e,t){new J(e,t,H.exists,!0).to.exist};H.notExists=function(e,t){new J(e,t,H.notExists,!0).to.not.exist};H.isUndefined=function(e,t){new J(e,t,H.isUndefined,!0).to.equal(void 0)};H.isDefined=function(e,t){new J(e,t,H.isDefined,!0).to.not.equal(void 0)};H.isCallable=function(e,t){new J(e,t,H.isCallable,!0).is.callable};H.isNotCallable=function(e,t){new J(e,t,H.isNotCallable,!0).is.not.callable};H.isObject=function(e,t){new J(e,t,H.isObject,!0).to.be.a("object")};H.isNotObject=function(e,t){new J(e,t,H.isNotObject,!0).to.not.be.a("object")};H.isArray=function(e,t){new J(e,t,H.isArray,!0).to.be.an("array")};H.isNotArray=function(e,t){new J(e,t,H.isNotArray,!0).to.not.be.an("array")};H.isString=function(e,t){new J(e,t,H.isString,!0).to.be.a("string")};H.isNotString=function(e,t){new J(e,t,H.isNotString,!0).to.not.be.a("string")};H.isNumber=function(e,t){new J(e,t,H.isNumber,!0).to.be.a("number")};H.isNotNumber=function(e,t){new J(e,t,H.isNotNumber,!0).to.not.be.a("number")};H.isNumeric=function(e,t){new J(e,t,H.isNumeric,!0).is.numeric};H.isNotNumeric=function(e,t){new J(e,t,H.isNotNumeric,!0).is.not.numeric};H.isFinite=function(e,t){new J(e,t,H.isFinite,!0).to.be.finite};H.isBoolean=function(e,t){new J(e,t,H.isBoolean,!0).to.be.a("boolean")};H.isNotBoolean=function(e,t){new J(e,t,H.isNotBoolean,!0).to.not.be.a("boolean")};H.typeOf=function(e,t,r){new J(e,r,H.typeOf,!0).to.be.a(t)};H.notTypeOf=function(e,t,r){new J(e,r,H.notTypeOf,!0).to.not.be.a(t)};H.instanceOf=function(e,t,r){new J(e,r,H.instanceOf,!0).to.be.instanceOf(t)};H.notInstanceOf=function(e,t,r){new J(e,r,H.notInstanceOf,!0).to.not.be.instanceOf(t)};H.include=function(e,t,r){new J(e,r,H.include,!0).include(t)};H.notInclude=function(e,t,r){new J(e,r,H.notInclude,!0).not.include(t)};H.deepInclude=function(e,t,r){new J(e,r,H.deepInclude,!0).deep.include(t)};H.notDeepInclude=function(e,t,r){new J(e,r,H.notDeepInclude,!0).not.deep.include(t)};H.nestedInclude=function(e,t,r){new J(e,r,H.nestedInclude,!0).nested.include(t)};H.notNestedInclude=function(e,t,r){new J(e,r,H.notNestedInclude,!0).not.nested.include(t)};H.deepNestedInclude=function(e,t,r){new J(e,r,H.deepNestedInclude,!0).deep.nested.include(t)};H.notDeepNestedInclude=function(e,t,r){new J(e,r,H.notDeepNestedInclude,!0).not.deep.nested.include(t)};H.ownInclude=function(e,t,r){new J(e,r,H.ownInclude,!0).own.include(t)};H.notOwnInclude=function(e,t,r){new J(e,r,H.notOwnInclude,!0).not.own.include(t)};H.deepOwnInclude=function(e,t,r){new J(e,r,H.deepOwnInclude,!0).deep.own.include(t)};H.notDeepOwnInclude=function(e,t,r){new J(e,r,H.notDeepOwnInclude,!0).not.deep.own.include(t)};H.match=function(e,t,r){new J(e,r,H.match,!0).to.match(t)};H.notMatch=function(e,t,r){new J(e,r,H.notMatch,!0).to.not.match(t)};H.property=function(e,t,r){new J(e,r,H.property,!0).to.have.property(t)};H.notProperty=function(e,t,r){new J(e,r,H.notProperty,!0).to.not.have.property(t)};H.propertyVal=function(e,t,r,n){new J(e,n,H.propertyVal,!0).to.have.property(t,r)};H.notPropertyVal=function(e,t,r,n){new J(e,n,H.notPropertyVal,!0).to.not.have.property(t,r)};H.deepPropertyVal=function(e,t,r,n){new J(e,n,H.deepPropertyVal,!0).to.have.deep.property(t,r)};H.notDeepPropertyVal=function(e,t,r,n){new J(e,n,H.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)};H.ownProperty=function(e,t,r){new J(e,r,H.ownProperty,!0).to.have.own.property(t)};H.notOwnProperty=function(e,t,r){new J(e,r,H.notOwnProperty,!0).to.not.have.own.property(t)};H.ownPropertyVal=function(e,t,r,n){new J(e,n,H.ownPropertyVal,!0).to.have.own.property(t,r)};H.notOwnPropertyVal=function(e,t,r,n){new J(e,n,H.notOwnPropertyVal,!0).to.not.have.own.property(t,r)};H.deepOwnPropertyVal=function(e,t,r,n){new J(e,n,H.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)};H.notDeepOwnPropertyVal=function(e,t,r,n){new J(e,n,H.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)};H.nestedProperty=function(e,t,r){new J(e,r,H.nestedProperty,!0).to.have.nested.property(t)};H.notNestedProperty=function(e,t,r){new J(e,r,H.notNestedProperty,!0).to.not.have.nested.property(t)};H.nestedPropertyVal=function(e,t,r,n){new J(e,n,H.nestedPropertyVal,!0).to.have.nested.property(t,r)};H.notNestedPropertyVal=function(e,t,r,n){new J(e,n,H.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)};H.deepNestedPropertyVal=function(e,t,r,n){new J(e,n,H.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)};H.notDeepNestedPropertyVal=function(e,t,r,n){new J(e,n,H.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)};H.lengthOf=function(e,t,r){new J(e,r,H.lengthOf,!0).to.have.lengthOf(t)};H.hasAnyKeys=function(e,t,r){new J(e,r,H.hasAnyKeys,!0).to.have.any.keys(t)};H.hasAllKeys=function(e,t,r){new J(e,r,H.hasAllKeys,!0).to.have.all.keys(t)};H.containsAllKeys=function(e,t,r){new J(e,r,H.containsAllKeys,!0).to.contain.all.keys(t)};H.doesNotHaveAnyKeys=function(e,t,r){new J(e,r,H.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)};H.doesNotHaveAllKeys=function(e,t,r){new J(e,r,H.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)};H.hasAnyDeepKeys=function(e,t,r){new J(e,r,H.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)};H.hasAllDeepKeys=function(e,t,r){new J(e,r,H.hasAllDeepKeys,!0).to.have.all.deep.keys(t)};H.containsAllDeepKeys=function(e,t,r){new J(e,r,H.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)};H.doesNotHaveAnyDeepKeys=function(e,t,r){new J(e,r,H.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)};H.doesNotHaveAllDeepKeys=function(e,t,r){new J(e,r,H.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)};H.throws=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null);var a=new J(e,n,H.throws,!0).to.throw(t,r);return Fe(a,"object")};H.doesNotThrow=function(e,t,r,n){(typeof t=="string"||t instanceof RegExp)&&(r=t,t=null),new J(e,n,H.doesNotThrow,!0).to.not.throw(t,r)};H.operator=function(e,t,r,n){var a;switch(t){case"==":a=e==r;break;case"===":a=e===r;break;case">":a=e>r;break;case">=":a=e>=r;break;case"<":a=e<r;break;case"<=":a=e<=r;break;case"!=":a=e!=r;break;case"!==":a=e!==r;break;default:throw n=n&&n+": ",new ze(n+'Invalid operator "'+t+'"',void 0,H.operator)}var o=new J(a,n,H.operator,!0);o.assert(Fe(o,"object")===!0,"expected "+He(e)+" to be "+t+" "+He(r),"expected "+He(e)+" to not be "+t+" "+He(r))};H.closeTo=function(e,t,r,n){new J(e,n,H.closeTo,!0).to.be.closeTo(t,r)};H.approximately=function(e,t,r,n){new J(e,n,H.approximately,!0).to.be.approximately(t,r)};H.sameMembers=function(e,t,r){new J(e,r,H.sameMembers,!0).to.have.same.members(t)};H.notSameMembers=function(e,t,r){new J(e,r,H.notSameMembers,!0).to.not.have.same.members(t)};H.sameDeepMembers=function(e,t,r){new J(e,r,H.sameDeepMembers,!0).to.have.same.deep.members(t)};H.notSameDeepMembers=function(e,t,r){new J(e,r,H.notSameDeepMembers,!0).to.not.have.same.deep.members(t)};H.sameOrderedMembers=function(e,t,r){new J(e,r,H.sameOrderedMembers,!0).to.have.same.ordered.members(t)};H.notSameOrderedMembers=function(e,t,r){new J(e,r,H.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)};H.sameDeepOrderedMembers=function(e,t,r){new J(e,r,H.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)};H.notSameDeepOrderedMembers=function(e,t,r){new J(e,r,H.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)};H.includeMembers=function(e,t,r){new J(e,r,H.includeMembers,!0).to.include.members(t)};H.notIncludeMembers=function(e,t,r){new J(e,r,H.notIncludeMembers,!0).to.not.include.members(t)};H.includeDeepMembers=function(e,t,r){new J(e,r,H.includeDeepMembers,!0).to.include.deep.members(t)};H.notIncludeDeepMembers=function(e,t,r){new J(e,r,H.notIncludeDeepMembers,!0).to.not.include.deep.members(t)};H.includeOrderedMembers=function(e,t,r){new J(e,r,H.includeOrderedMembers,!0).to.include.ordered.members(t)};H.notIncludeOrderedMembers=function(e,t,r){new J(e,r,H.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)};H.includeDeepOrderedMembers=function(e,t,r){new J(e,r,H.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)};H.notIncludeDeepOrderedMembers=function(e,t,r){new J(e,r,H.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)};H.oneOf=function(e,t,r){new J(e,r,H.oneOf,!0).to.be.oneOf(t)};H.isIterable=function(e,t){if(e==null||!e[Symbol.iterator])throw t=t?`${t} expected ${He(e)} to be an iterable`:`expected ${He(e)} to be an iterable`,new ze(t,void 0,H.isIterable)};H.changes=function(e,t,r,n){arguments.length===3&&typeof t=="function"&&(n=r,r=null),new J(e,n,H.changes,!0).to.change(t,r)};H.changesBy=function(e,t,r,n,a){if(arguments.length===4&&typeof t=="function"){var o=n;n=r,a=o}else arguments.length===3&&(n=r,r=null);new J(e,a,H.changesBy,!0).to.change(t,r).by(n)};H.doesNotChange=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new J(e,n,H.doesNotChange,!0).to.not.change(t,r)};H.changesButNotBy=function(e,t,r,n,a){if(arguments.length===4&&typeof t=="function"){var o=n;n=r,a=o}else arguments.length===3&&(n=r,r=null);new J(e,a,H.changesButNotBy,!0).to.change(t,r).but.not.by(n)};H.increases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new J(e,n,H.increases,!0).to.increase(t,r)};H.increasesBy=function(e,t,r,n,a){if(arguments.length===4&&typeof t=="function"){var o=n;n=r,a=o}else arguments.length===3&&(n=r,r=null);new J(e,a,H.increasesBy,!0).to.increase(t,r).by(n)};H.doesNotIncrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new J(e,n,H.doesNotIncrease,!0).to.not.increase(t,r)};H.increasesButNotBy=function(e,t,r,n,a){if(arguments.length===4&&typeof t=="function"){var o=n;n=r,a=o}else arguments.length===3&&(n=r,r=null);new J(e,a,H.increasesButNotBy,!0).to.increase(t,r).but.not.by(n)};H.decreases=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new J(e,n,H.decreases,!0).to.decrease(t,r)};H.decreasesBy=function(e,t,r,n,a){if(arguments.length===4&&typeof t=="function"){var o=n;n=r,a=o}else arguments.length===3&&(n=r,r=null);new J(e,a,H.decreasesBy,!0).to.decrease(t,r).by(n)};H.doesNotDecrease=function(e,t,r,n){return arguments.length===3&&typeof t=="function"&&(n=r,r=null),new J(e,n,H.doesNotDecrease,!0).to.not.decrease(t,r)};H.doesNotDecreaseBy=function(e,t,r,n,a){if(arguments.length===4&&typeof t=="function"){var o=n;n=r,a=o}else arguments.length===3&&(n=r,r=null);return new J(e,a,H.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(n)};H.decreasesButNotBy=function(e,t,r,n,a){if(arguments.length===4&&typeof t=="function"){var o=n;n=r,a=o}else arguments.length===3&&(n=r,r=null);new J(e,a,H.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(n)};H.ifError=function(e){if(e)throw e};H.isExtensible=function(e,t){new J(e,t,H.isExtensible,!0).to.be.extensible};H.isNotExtensible=function(e,t){new J(e,t,H.isNotExtensible,!0).to.not.be.extensible};H.isSealed=function(e,t){new J(e,t,H.isSealed,!0).to.be.sealed};H.isNotSealed=function(e,t){new J(e,t,H.isNotSealed,!0).to.not.be.sealed};H.isFrozen=function(e,t){new J(e,t,H.isFrozen,!0).to.be.frozen};H.isNotFrozen=function(e,t){new J(e,t,H.isNotFrozen,!0).to.not.be.frozen};H.isEmpty=function(e,t){new J(e,t,H.isEmpty,!0).to.be.empty};H.isNotEmpty=function(e,t){new J(e,t,H.isNotEmpty,!0).to.not.be.empty};H.containsSubset=function(e,t,r){new J(e,r).to.containSubset(t)};H.doesNotContainSubset=function(e,t,r){new J(e,r).to.not.containSubset(t)};var R4=[["isOk","ok"],["isNotOk","notOk"],["throws","throw"],["throws","Throw"],["isExtensible","extensible"],["isNotExtensible","notExtensible"],["isSealed","sealed"],["isNotSealed","notSealed"],["isFrozen","frozen"],["isNotFrozen","notFrozen"],["isEmpty","empty"],["isNotEmpty","notEmpty"],["isCallable","isFunction"],["isNotCallable","isNotFunction"],["containsSubset","containSubset"]];for(let[e,t]of R4)H[t]=H[e];var Wv=[];function fa(e){let t={use:fa,AssertionError:ze,util:Jr,config:Ht,expect:jn,assert:H,Assertion:J,...XA};return~Wv.indexOf(e)||(e(t,Jr),Wv.push(e)),t}s(fa,"use");re(fa,"use");var QA={};Jt(QA,{toBeChecked:()=>zy,toBeDisabled:()=>qy,toBeEmpty:()=>xy,toBeEmptyDOMElement:()=>Ay,toBeEnabled:()=>My,toBeInTheDOM:()=>Bl,toBeInTheDocument:()=>wy,toBeInvalid:()=>Uy,toBePartiallyChecked:()=>Wy,toBeRequired:()=>Ly,toBeValid:()=>Vy,toBeVisible:()=>Iy,toContainElement:()=>jl,toContainHTML:()=>Sy,toHaveAccessibleDescription:()=>ql,toHaveAccessibleErrorMessage:()=>Ty,toHaveAccessibleName:()=>Ll,toHaveAttribute:()=>Py,toHaveClass:()=>Dy,toHaveDescription:()=>Yy,toHaveDisplayValue:()=>Jy,toHaveErrorMessage:()=>Ky,toHaveFocus:()=>Oy,toHaveFormValues:()=>Ry,toHaveRole:()=>Ml,toHaveSelection:()=>Xy,toHaveStyle:()=>$l,toHaveTextContent:()=>_y,toHaveValue:()=>Hy});var Yv=Et(VE(),1);function cy(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}s(cy,"$parcel$defineInteropFlag");function mc(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}s(mc,"$parcel$export");var ZA={};cy(ZA);mc(ZA,"default",()=>tS);var eS=class extends Error{constructor(t,r,n,a,o){super(t+":"+n+":"+a+": "+r),this.reason=r,this.filename=t,this.line=n,this.column=a,this.source=o}};s(eS,"$009ddb00d3ec72b8$export$2e2bcd8739ae039");var tS=eS,rS={};cy(rS);mc(rS,"default",()=>aS);var nS=class{constructor(t,r,n){this.start=t,this.end=r,this.source=n}};s(nS,"$0865a9fb4cc365fe$export$2e2bcd8739ae039");var aS=nS,F4={};mc(F4,"CssTypes",()=>Tt);var Tt=(function(e){return 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",e})({}),mp=/\/\*[^]*?(?:\*\/|$)/g,I4=s((e,t)=>{t=t||{};let r=1,n=1;function a(L){let K=L.match(/\n/g);K&&(r+=K.length);let X=L.lastIndexOf(`
|
|
221
|
+
`);n=~X?L.length-X:n+L.length}s(a,"updatePosition");function o(){let L={line:r,column:n};return function(K){return K.position=new aS(L,{line:r,column:n},t?.source||""),f(),K}}s(o,"position");let i=[];function l(L){let K=new tS(t?.source||"",L,r,n,e);if(t?.silent)i.push(K);else throw K}s(l,"error");function u(){let L=d();return{type:Tt.stylesheet,stylesheet:{source:t?.source,rules:L,parsingErrors:i}}}s(u,"stylesheet");function c(){return h(/^{\s*/)}s(c,"open");function p(){return h(/^}/)}s(p,"close");function d(){let L,K=[];for(f(),m(K);e.length&&e.charAt(0)!=="}"&&(L=le()||M());)L&&(K.push(L),m(K));return K}s(d,"rules");function h(L){let K=L.exec(e);if(!K)return;let X=K[0];return a(X),e=e.slice(X.length),K}s(h,"match");function f(){h(/^\s*/)}s(f,"whitespace");function m(L){let K;for(L=L||[];K=y();)K&&L.push(K);return L}s(m,"comments");function y(){let L=o();if(e.charAt(0)!=="/"||e.charAt(1)!=="*")return;let K=h(/^\/\*[^]*?\*\//);return K?L({type:Tt.comment,comment:K[0].slice(2,-2)}):l("End of comment missing")}s(y,"comment");function b(L,K,X){let ie=K+1,te=!1,ue=L.indexOf(")",ie);for(;!te&&ue!==-1;){let ve=L.indexOf("(",ie);ve!==-1&&ve<ue?(ie=b(L,ve+1)+1,ue=L.indexOf(")",ie)):te=!0}return te&&ue!==-1?ue:-1}s(b,"findClosingParenthese");function g(){let L=h(/^([^{]+)/);if(!L)return;let K=tr(L[0]).replace(mp,"");if(K.indexOf(",")===-1)return[K];let X=0,ie=K.indexOf("(",X);for(;ie!==-1;){let te=b(K,ie);if(te===-1)break;X=te+1,K=K.substring(0,ie)+K.substring(ie,te).replace(/,/g,"")+K.substring(te),ie=K.indexOf("(",X)}return K=K.replace(/("|')(?:\\\1|.)*?\1/g,te=>te.replace(/,/g,"")),K.split(",").map(te=>tr(te.replace(/\u200C/g,",")))}s(g,"selector");function v(){let L=o(),K=h(/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(!K)return;let X=tr(K[0]);if(!h(/^:\s*/))return l("property missing ':'");let ie=h(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|[^)])*?\)|[^};])+)/),te=L({type:Tt.declaration,property:X.replace(mp,""),value:ie?tr(ie[0]).replace(mp,""):""});return h(/^[;\s]*/),te}s(v,"declaration");function D(){let L=[];if(!c())return l("missing '{'");m(L);let K;for(;K=v();)K&&(L.push(K),m(L));return p()?L:l("missing '}'")}s(D,"declarations");function S(){let L,K=[],X=o();for(;L=h(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)K.push(L[1]),h(/^,\s*/);if(K.length)return X({type:Tt.keyframe,values:K,declarations:D()||[]})}s(S,"keyframe");function P(){let L=o(),K=h(/^@([-\w]+)?keyframes\s*/);if(!K)return;let X=K[1],ie=h(/^([-\w]+)\s*/);if(!ie)return l("@keyframes missing name");let te=ie[1];if(!c())return l("@keyframes missing '{'");let ue,ve=m();for(;ue=S();)ve.push(ue),ve=ve.concat(m());return p()?L({type:Tt.keyframes,name:te,vendor:X,keyframes:ve}):l("@keyframes missing '}'")}s(P,"atkeyframes");function w(){let L=o(),K=h(/^@supports *([^{]+)/);if(!K)return;let X=tr(K[1]);if(!c())return l("@supports missing '{'");let ie=m().concat(d());return p()?L({type:Tt.supports,supports:X,rules:ie}):l("@supports missing '}'")}s(w,"atsupports");function E(){let L=o();if(!h(/^@host\s*/))return;if(!c())return l("@host missing '{'");let K=m().concat(d());return p()?L({type:Tt.host,rules:K}):l("@host missing '}'")}s(E,"athost");function C(){let L=o(),K=h(/^@container *([^{]+)/);if(!K)return;let X=tr(K[1]);if(!c())return l("@container missing '{'");let ie=m().concat(d());return p()?L({type:Tt.container,container:X,rules:ie}):l("@container missing '}'")}s(C,"atcontainer");function _(){let L=o(),K=h(/^@layer *([^{;@]+)/);if(!K)return;let X=tr(K[1]);if(!c())return h(/^[;\s]*/),L({type:Tt.layer,layer:X});let ie=m().concat(d());return p()?L({type:Tt.layer,layer:X,rules:ie}):l("@layer missing '}'")}s(_,"atlayer");function k(){let L=o(),K=h(/^@media *([^{]+)/);if(!K)return;let X=tr(K[1]);if(!c())return l("@media missing '{'");let ie=m().concat(d());return p()?L({type:Tt.media,media:X,rules:ie}):l("@media missing '}'")}s(k,"atmedia");function B(){let L=o(),K=h(/^@custom-media\s+(--\S+)\s*([^{;\s][^{;]*);/);if(K)return L({type:Tt.customMedia,name:tr(K[1]),media:tr(K[2])})}s(B,"atcustommedia");function W(){let L=o();if(!h(/^@page */))return;let K=g()||[];if(!c())return l("@page missing '{'");let X=m(),ie;for(;ie=v();)X.push(ie),X=X.concat(m());return p()?L({type:Tt.page,selectors:K,declarations:X}):l("@page missing '}'")}s(W,"atpage");function z(){let L=o(),K=h(/^@([-\w]+)?document *([^{]+)/);if(!K)return;let X=tr(K[1]),ie=tr(K[2]);if(!c())return l("@document missing '{'");let te=m().concat(d());return p()?L({type:Tt.document,document:ie,vendor:X,rules:te}):l("@document missing '}'")}s(z,"atdocument");function R(){let L=o();if(!h(/^@font-face\s*/))return;if(!c())return l("@font-face missing '{'");let K=m(),X;for(;X=v();)K.push(X),K=K.concat(m());return p()?L({type:Tt.fontFace,declarations:K}):l("@font-face missing '}'")}s(R,"atfontface");function U(){let L=o();if(!h(/^@starting-style\s*/))return;if(!c())return l("@starting-style missing '{'");let K=m().concat(d());return p()?L({type:Tt.startingStyle,rules:K}):l("@starting-style missing '}'")}s(U,"atstartingstyle");let j=ae("import"),Y=ae("charset"),Q=ae("namespace");function ae(L){let K=new RegExp("^@"+L+`\\s*((?::?[^;'"]|"(?:\\\\"|[^"])*?"|'(?:\\\\'|[^'])*?')+)(?:;|$)`);return function(){let X=o(),ie=h(K);if(!ie)return;let te={type:L};return te[L]=ie[1].trim(),X(te)}}s(ae,"_compileAtrule");function le(){if(e[0]==="@")return P()||k()||B()||w()||j()||Y()||Q()||z()||W()||E()||R()||C()||U()||_()}s(le,"atrule");function M(){let L=o(),K=g();return K?(m(),L({type:Tt.rule,selectors:K,declarations:D()||[]})):l("selector missing")}return s(M,"rule"),kl(u())},"$d708735ed1303b43$export$98e6a39c04603d36");function tr(e){return e?e.trim():""}s(tr,"$d708735ed1303b43$var$trim");function kl(e,t){let r=e&&typeof e.type=="string",n=r?e:t;for(let a in e){let o=e[a];Array.isArray(o)?o.forEach(i=>{kl(i,n)}):o&&typeof o=="object"&&kl(o,n)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}s(kl,"$d708735ed1303b43$var$addParent");var N4=I4,k4=N4,B4=Object.prototype.toString;function Od(e){return typeof e=="function"||B4.call(e)==="[object Function]"}s(Od,"isCallable");function oS(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}s(oS,"toInteger");var j4=Math.pow(2,53)-1;function iS(e){var t=oS(e);return Math.min(Math.max(t,0),j4)}s(iS,"toLength");function yr(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!Od(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var a=iS(n.length),o=Od(r)?Object(new r(a)):new Array(a),i=0,l;i<a;)l=n[i],t?o[i]=t(l,i):o[i]=l,i+=1;return o.length=a,o}s(yr,"arrayFrom");function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}s(go,"_typeof");function sS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s(sS,"_classCallCheck");function Rd(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,py(n.key),n)}}s(Rd,"_defineProperties");function lS(e,t,r){return t&&Rd(e.prototype,t),r&&Rd(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}s(lS,"_createClass");function uS(e,t,r){return t=py(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(uS,"_defineProperty");function py(e){var t=cS(e,"string");return go(t)==="symbol"?t:String(t)}s(py,"_toPropertyKey");function cS(e,t){if(go(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(go(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}s(cS,"_toPrimitive");var q4=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];sS(this,e),uS(this,"items",void 0),this.items=t}return s(e,"SetLike"),lS(e,[{key:"add",value:s(function(t){return this.has(t)===!1&&this.items.push(t),this},"add")},{key:"clear",value:s(function(){this.items=[]},"clear")},{key:"delete",value:s(function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length},"_delete")},{key:"forEach",value:s(function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})},"forEach")},{key:"has",value:s(function(t){return this.items.indexOf(t)!==-1},"has")},{key:"size",get:s(function(){return this.items.length},"get")}]),e})(),M4=typeof Set>"u"?Set:q4;function Ft(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}s(Ft,"getLocalName");var L4={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"},$4={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 pS(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-description","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=$4[t])!==null&&n!==void 0&&n.has(r))})}s(pS,"hasGlobalAriaAttributes");function dy(e,t){return pS(e,t)}s(dy,"ignorePresentationalRole");function dS(e){var t=hS(e);if(t===null||Fd.indexOf(t)!==-1){var r=fS(e);if(Fd.indexOf(t||"")===-1||dy(e,r||""))return r}return t}s(dS,"getRole");function fS(e){var t=L4[Ft(e)];if(t!==void 0)return t;switch(Ft(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!dy(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}s(fS,"getImplicitRole");function hS(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}s(hS,"getExplicitRole");var Fd=["presentation","none"];function at(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}s(at,"isElement");function fy(e){return at(e)&&Ft(e)==="caption"}s(fy,"isHTMLTableCaptionElement");function bi(e){return at(e)&&Ft(e)==="input"}s(bi,"isHTMLInputElement");function mS(e){return at(e)&&Ft(e)==="optgroup"}s(mS,"isHTMLOptGroupElement");function yS(e){return at(e)&&Ft(e)==="select"}s(yS,"isHTMLSelectElement");function gS(e){return at(e)&&Ft(e)==="table"}s(gS,"isHTMLTableElement");function bS(e){return at(e)&&Ft(e)==="textarea"}s(bS,"isHTMLTextAreaElement");function vS(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}s(vS,"safeWindow");function ES(e){return at(e)&&Ft(e)==="fieldset"}s(ES,"isHTMLFieldSetElement");function CS(e){return at(e)&&Ft(e)==="legend"}s(CS,"isHTMLLegendElement");function wS(e){return at(e)&&Ft(e)==="slot"}s(wS,"isHTMLSlotElement");function xS(e){return at(e)&&e.ownerSVGElement!==void 0}s(xS,"isSVGElement");function AS(e){return at(e)&&Ft(e)==="svg"}s(AS,"isSVGSVGElement");function SS(e){return xS(e)&&Ft(e)==="title"}s(SS,"isSVGTitleElement");function Li(e,t){if(at(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(a){return n.getElementById(a)}).filter(function(a){return a!==null})}return[]}s(Li,"queryIdRefs");function zr(e,t){return at(e)?t.indexOf(dS(e))!==-1:!1}s(zr,"hasAnyConcreteRoles");function _S(e){return e.trim().replace(/\s\s+/g," ")}s(_S,"asFlatString");function TS(e,t){if(!at(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}s(TS,"isHidden");function PS(e){return zr(e,["button","combobox","listbox","textbox"])||hy(e,"range")}s(PS,"isControl");function hy(e,t){if(!at(e))return!1;switch(t){case"range":return zr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}s(hy,"hasAbstractRole");function Id(e,t){var r=yr(e.querySelectorAll(t));return Li(e,"aria-owns").forEach(function(n){r.push.apply(r,yr(n.querySelectorAll(t)))}),r}s(Id,"querySelectorAllSubtree");function DS(e){return yS(e)?e.selectedOptions||Id(e,"[selected]"):Id(e,'[aria-selected="true"]')}s(DS,"querySelectedOptions");function OS(e){return zr(e,Fd)}s(OS,"isMarkedPresentational");function RS(e){return fy(e)}s(RS,"isNativeHostLanguageTextAlternativeElement");function FS(e){return zr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}s(FS,"allowsNameFromContent");function IS(e){return!1}s(IS,"isDescendantOfNativeHostLanguageTextAlternativeElement");function NS(e){return bi(e)||bS(e)?e.value:e.textContent||""}s(NS,"getValueOfTextbox");function Nd(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}s(Nd,"getTextualContent");function my(e){var t=Ft(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}s(my,"isLabelableElement");function yy(e){if(my(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&at(r)){var n=yy(r);n!==null&&(t=n)}}),t}s(yy,"findLabelableElement");function kS(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):yy(e)}s(kS,"getControlOfLabel");function BS(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return yr(t);if(!my(e))return null;var r=e.ownerDocument;return yr(r.querySelectorAll("label")).filter(function(n){return kS(n)===e})}s(BS,"getLabels");function jS(e){var t=e.assignedNodes();return t.length===0?yr(e.childNodes):t}s(jS,"getSlotContents");function gy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new M4,n=vS(e),a=t.compute,o=a===void 0?"name":a,i=t.computedStyleSupportsPseudoElements,l=i===void 0?t.getComputedStyle!==void 0:i,u=t.getComputedStyle,c=u===void 0?n.getComputedStyle.bind(n):u,p=t.hidden,d=p===void 0?!1:p;function h(g,v){var D="";if(at(g)&&l){var S=c(g,"::before"),P=Nd(S);D="".concat(P," ").concat(D)}var w=wS(g)?jS(g):yr(g.childNodes).concat(Li(g,"aria-owns"));if(w.forEach(function(_){var k=b(_,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),B=at(_)?c(_).getPropertyValue("display"):"inline",W=B!=="inline"?" ":"";D+="".concat(W).concat(k).concat(W)}),at(g)&&l){var E=c(g,"::after"),C=Nd(E);D="".concat(D," ").concat(C)}return D.trim()}s(h,"computeMiscTextAlternative");function f(g,v){var D=g.getAttributeNode(v);return D!==null&&!r.has(D)&&D.value.trim()!==""?(r.add(D),D.value):null}s(f,"useAttribute");function m(g){return at(g)?f(g,"title"):null}s(m,"computeTooltipAttributeValue");function y(g){if(!at(g))return null;if(ES(g)){r.add(g);for(var v=yr(g.childNodes),D=0;D<v.length;D+=1){var S=v[D];if(CS(S))return b(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(gS(g)){r.add(g);for(var P=yr(g.childNodes),w=0;w<P.length;w+=1){var E=P[w];if(fy(E))return b(E,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(AS(g)){r.add(g);for(var C=yr(g.childNodes),_=0;_<C.length;_+=1){var k=C[_];if(SS(k))return k.textContent}return null}else if(Ft(g)==="img"||Ft(g)==="area"){var B=f(g,"alt");if(B!==null)return B}else if(mS(g)){var W=f(g,"label");if(W!==null)return W}if(bi(g)&&(g.type==="button"||g.type==="submit"||g.type==="reset")){var z=f(g,"value");if(z!==null)return z;if(g.type==="submit")return"Submit";if(g.type==="reset")return"Reset"}var R=BS(g);if(R!==null&&R.length!==0)return r.add(g),yr(R).map(function(Q){return b(Q,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Q){return Q.length>0}).join(" ");if(bi(g)&&g.type==="image"){var U=f(g,"alt");if(U!==null)return U;var j=f(g,"title");return j!==null?j:"Submit Query"}if(zr(g,["button"])){var Y=h(g,{isEmbeddedInLabel:!1});if(Y!=="")return Y}return null}s(y,"computeElementTextAlternative");function b(g,v){if(r.has(g))return"";if(!d&&TS(g,c)&&!v.isReferenced)return r.add(g),"";var D=at(g)?g.getAttributeNode("aria-labelledby"):null,S=D!==null&&!r.has(D)?Li(g,"aria-labelledby"):[];if(o==="name"&&!v.isReferenced&&S.length>0)return r.add(D),S.map(function(B){return b(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=v.recursion&&PS(g)&&o==="name";if(!P){var w=(at(g)&&g.getAttribute("aria-label")||"").trim();if(w!==""&&o==="name")return r.add(g),w;if(!OS(g)){var E=y(g);if(E!==null)return r.add(g),E}}if(zr(g,["menu"]))return r.add(g),"";if(P||v.isEmbeddedInLabel||v.isReferenced){if(zr(g,["combobox","listbox"])){r.add(g);var C=DS(g);return C.length===0?bi(g)?g.value:"":yr(C).map(function(B){return b(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(hy(g,"range"))return r.add(g),g.hasAttribute("aria-valuetext")?g.getAttribute("aria-valuetext"):g.hasAttribute("aria-valuenow")?g.getAttribute("aria-valuenow"):g.getAttribute("value")||"";if(zr(g,["textbox"]))return r.add(g),NS(g)}if(FS(g)||at(g)&&v.isReferenced||RS(g)||IS()){var _=h(g,{isEmbeddedInLabel:v.isEmbeddedInLabel});if(_!=="")return r.add(g),_}if(g.nodeType===g.TEXT_NODE)return r.add(g),g.textContent||"";if(v.recursion)return r.add(g),h(g,{isEmbeddedInLabel:v.isEmbeddedInLabel});var k=m(g);return k!==null?(r.add(g),k):(r.add(g),"")}return s(b,"computeTextAlternative"),_S(b(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}s(gy,"computeTextAlternative");function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}s(bo,"_typeof");function kd(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}s(kd,"ownKeys");function Bd(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kd(Object(r),!0).forEach(function(n){qS(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kd(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}s(Bd,"_objectSpread");function qS(e,t,r){return t=MS(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(qS,"_defineProperty");function MS(e){var t=LS(e,"string");return bo(t)==="symbol"?t:String(t)}s(MS,"_toPropertyKey");function LS(e,t){if(bo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}s(LS,"_toPrimitive");function $S(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Li(e,"aria-describedby").map(function(o){return gy(o,Bd(Bd({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("aria-description");r=n===null?"":n}if(r===""){var a=e.getAttribute("title");r=a===null?"":a}return r}s($S,"computeAccessibleDescription");function US(e){return zr(e,["caption","code","deletion","emphasis","generic","insertion","none","paragraph","presentation","strong","subscript","superscript"])}s(US,"prohibitsNaming");function VS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return US(e)?"":gy(e,t)}s(VS,"computeAccessibleName");var by=Et(HE(),1),U4=Et(zE(),1),vy=Et(nC(),1),V4=Et(aC(),1),HS=class extends Error{constructor(t,r,n,a){super(),Error.captureStackTrace&&Error.captureStackTrace(this,n);let o="";try{o=a.utils.printWithType("Received",r,a.utils.printReceived)}catch{}this.message=[a.utils.matcherHint(`${a.isNot?".not":""}.${n.name}`,"received",""),"",`${a.utils.RECEIVED_COLOR("received")} value must ${t}.`,o].join(`
|
|
222
|
+
`)}};s(HS,"GenericTypeError");var JS=HS,zS=class extends JS{constructor(...t){super("be an HTMLElement or an SVGElement",...t)}};s(zS,"HtmlElementTypeError");var Kv=zS,GS=class extends JS{constructor(...t){super("be a Node",...t)}};s(GS,"NodeTypeError");var Xv=GS;function Ey(e,t,...r){if(!e||!e.ownerDocument||!e.ownerDocument.defaultView)throw new t(e,...r)}s(Ey,"checkHasWindow");function WS(e,...t){Ey(e,Xv,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.Node))throw new Xv(e,...t)}s(WS,"checkNode");function We(e,...t){Ey(e,Kv,...t);let r=e.ownerDocument.defaultView;if(!(e instanceof r.HTMLElement)&&!(e instanceof r.SVGElement))throw new Kv(e,...t)}s(We,"checkHtmlElement");var YS=class extends Error{constructor(t,r,n){super(),Error.captureStackTrace&&Error.captureStackTrace(this,r),this.message=[t.message,"",n.utils.RECEIVED_COLOR("Failing css:"),n.utils.RECEIVED_COLOR(`${t.css}`)].join(`
|
|
223
|
+
`)}};s(YS,"InvalidCSSError");var H4=YS;function KS(e,...t){let r=k4(`selector { ${e} }`,{silent:!0}).stylesheet;if(r.parsingErrors&&r.parsingErrors.length>0){let{reason:n,line:a}=r.parsingErrors[0];throw new H4({css:e,message:`Syntax error parsing expected css: ${n} on line: ${a}`},...t)}return r.rules[0].declarations.filter(n=>n.type==="declaration").reduce((n,{property:a,value:o})=>Object.assign(n,{[a]:o}),{})}s(KS,"parseCSS");function jd(e,t){return typeof t=="string"?t:e.utils.stringify(t)}s(jd,"display");function Pt(e,t,r,n,a,o){return[`${t}
|
|
224
|
+
`,`${r}:
|
|
225
|
+
${e.utils.EXPECTED_COLOR((0,Yv.default)(jd(e,n),2))}`,`${a}:
|
|
226
|
+
${e.utils.RECEIVED_COLOR((0,Yv.default)(jd(e,o),2))}`].join(`
|
|
227
|
+
`)}s(Pt,"getMessage");function XS(e,t){return t instanceof RegExp?t.test(e):e.includes(String(t))}s(XS,"matches");function ys(e,t){console.warn(`Warning: ${e} has been deprecated and will be removed in future updates.`,t)}s(ys,"deprecate");function gs(e){return e.replace(/\s+/g," ").trim()}s(gs,"normalize");function bn(e){return e.tagName&&e.tagName.toLowerCase()}s(bn,"getTag");function QS({multiple:e,options:t}){let r=[...t].filter(n=>n.selected);if(e)return[...r].map(n=>n.value);if(r.length!==0)return r[0].value}s(QS,"getSelectValue");function ZS(e){switch(e.type){case"number":return e.value===""?null:Number(e.value);case"checkbox":return e.checked;default:return e.value}}s(ZS,"getInputValue");var J4=["meter","progressbar","slider","spinbutton"];function e_(e){if(J4.includes(e.getAttribute("role")))return Number(e.getAttribute("aria-valuenow"))}s(e_,"getAccessibleValue");function Cy(e){if(e)switch(e.tagName.toLowerCase()){case"input":return ZS(e);case"select":return QS(e);default:return e.value??e_(e)}}s(Cy,"getSingleElementValue");function t_(e,{wordConnector:t=", ",lastWordConnector:r=" and "}={}){return[e.slice(0,-1).join(t),e[e.length-1]].join(e.length>1?r:"")}s(t_,"toSentence");function yc(e,t){if(Array.isArray(e)&&Array.isArray(t))return[...new Set(e)].every(r=>new Set(t).has(r))}s(yc,"compareArraysAsSet");function Bl(e,t){return ys("toBeInTheDOM","Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container."),e&&We(e,Bl,this),t&&We(t,Bl,this),{pass:t?t.contains(e):!!e,message:s(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDOM`,"element",""),"","Received:",` ${this.utils.printReceived(e&&e.cloneNode(!1))}`].join(`
|
|
228
|
+
`),"message")}}s(Bl,"toBeInTheDOM");function wy(e){(e!==null||!this.isNot)&&We(e,wy,this);let t=e===null?!1:e.ownerDocument===e.getRootNode({composed:!0}),r=s(()=>`expected document not to contain element, found ${this.utils.stringify(e.cloneNode(!0))} instead`,"errorFound"),n=s(()=>"element could not be found in the document","errorNotFound");return{pass:t,message:s(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInTheDocument`,"element",""),"",this.utils.RECEIVED_COLOR(this.isNot?r():n())].join(`
|
|
229
|
+
`),"message")}}s(wy,"toBeInTheDocument");function xy(e){return ys("toBeEmpty","Please use instead toBeEmptyDOMElement for finding empty nodes in the DOM."),We(e,xy,this),{pass:e.innerHTML==="",message:s(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmpty`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
230
|
+
`),"message")}}s(xy,"toBeEmpty");function Ay(e){return We(e,Ay,this),{pass:r_(e),message:s(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEmptyDOMElement`,"element",""),"","Received:",` ${this.utils.printReceived(e.innerHTML)}`].join(`
|
|
231
|
+
`),"message")}}s(Ay,"toBeEmptyDOMElement");function r_(e){return[...e.childNodes].filter(t=>t.nodeType!==8).length===0}s(r_,"isEmptyElement");function jl(e,t){return We(e,jl,this),t!==null&&We(t,jl,this),{pass:e.contains(t),message:s(()=>[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))}
|
|
232
|
+
`)].join(`
|
|
233
|
+
`),"message")}}s(jl,"toContainElement");function n_(e,t){let r=e.ownerDocument.createElement("div");return r.innerHTML=t,r.innerHTML}s(n_,"getNormalizedHtml");function Sy(e,t){if(We(e,Sy,this),typeof t!="string")throw new Error(`.toContainHTML() expects a string value, got ${t}`);return{pass:e.outerHTML.includes(n_(e,t)),message:s(()=>[this.utils.matcherHint(`${this.isNot?".not":""}.toContainHTML`,"element",""),"Expected:",` ${this.utils.EXPECTED_COLOR(t)}`,"Received:",` ${this.utils.printReceived(e.cloneNode(!0))}`].join(`
|
|
234
|
+
`),"message")}}s(Sy,"toContainHTML");function _y(e,t,r={normalizeWhitespace:!0}){WS(e,_y,this);let n=r.normalizeWhitespace?gs(e.textContent):e.textContent.replace(/\u00a0/g," "),a=n!==""&&t==="";return{pass:!a&&XS(n,t),message:s(()=>{let o=this.isNot?"not to":"to";return Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveTextContent`,"element",""),a?"Checking with empty string will always match, use .toBeEmptyDOMElement() instead":`Expected element ${o} have text content`,t,"Received",n)},"message")}}s(_y,"toHaveTextContent");function ql(e,t){We(e,ql,this);let r=$S(e),n=arguments.length===1,a=!1;return n?a=r!=="":a=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:a,message:s(()=>{let o=this.isNot?"not to":"to";return Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${ql.name}`,"element",""),`Expected element ${o} have accessible description`,t,"Received",r)},"message")}}s(ql,"toHaveAccessibleDescription");var Xo="aria-invalid",z4=["false"];function Ty(e,t){We(e,Ty,this);let r=this.isNot?"not to":"to",n=this.isNot?".not.toHaveAccessibleErrorMessage":".toHaveAccessibleErrorMessage",a=e.getAttribute("aria-errormessage");if(a&&/\s+/.test(a))return{pass:!1,message:s(()=>Pt(this,this.utils.matcherHint(n,"element"),"Expected element's `aria-errormessage` attribute to be empty or a single, valid ID","","Received",`aria-errormessage="${a}"`),"message")};let o=e.getAttribute(Xo);if(!e.hasAttribute(Xo)||z4.includes(o))return{pass:!1,message:s(()=>Pt(this,this.utils.matcherHint(n,"element"),"Expected element to be marked as invalid with attribute",`${Xo}="${String(!0)}"`,"Received",e.hasAttribute("aria-invalid")?`${Xo}="${e.getAttribute(Xo)}`:null),"message")};let i=gs(e.ownerDocument.getElementById(a)?.textContent??"");return{pass:t===void 0?!!i:t instanceof RegExp?t.test(i):this.equals(i,t),message:s(()=>Pt(this,this.utils.matcherHint(n,"element"),`Expected element ${r} have accessible error message`,t??"","Received",i),"message")}}s(Ty,"toHaveAccessibleErrorMessage");var G4=i_(by.elementRoles);function Ml(e,t){We(e,Ml,this);let r=a_(e);return{pass:r.some(n=>n===t),message:s(()=>{let n=this.isNot?"not to":"to";return Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Ml.name}`,"element",""),`Expected element ${n} have role`,t,"Received",r.join(", "))},"message")}}s(Ml,"toHaveRole");function a_(e){return e.hasAttribute("role")?e.getAttribute("role").split(" ").filter(Boolean):o_(e)}s(a_,"getExplicitOrImplicitRoles");function o_(e){for(let{match:t,roles:r}of G4)if(t(e))return[...r];return[]}s(o_,"getImplicitAriaRoles");function i_(e){function t({name:i,attributes:l}){return`${i}${l.map(({name:u,value:c,constraints:p=[]})=>p.indexOf("undefined")!==-1?`:not([${u}])`:c?`[${u}="${c}"]`:`[${u}]`).join("")}`}s(t,"makeElementSelector");function r({attributes:i=[]}){return i.length}s(r,"getSelectorSpecificity");function n({specificity:i},{specificity:l}){return l-i}s(n,"bySelectorSpecificity");function a(i){let{attributes:l=[]}=i,u=l.findIndex(p=>p.value&&p.name==="type"&&p.value==="text");u>=0&&(l=[...l.slice(0,u),...l.slice(u+1)]);let c=t({...i,attributes:l});return p=>u>=0&&p.type!=="text"?!1:p.matches(c)}s(a,"match");let o=[];for(let[i,l]of e.entries())o=[...o,{match:a(i),roles:Array.from(l),specificity:r(i)}];return o.sort(n)}s(i_,"buildElementRoleList");function Ll(e,t){We(e,Ll,this);let r=VS(e),n=arguments.length===1,a=!1;return n?a=r!=="":a=t instanceof RegExp?t.test(r):this.equals(r,t),{pass:a,message:s(()=>{let o=this.isNot?"not to":"to";return Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.${Ll.name}`,"element",""),`Expected element ${o} have accessible name`,t,"Received",r)},"message")}}s(Ll,"toHaveAccessibleName");function qd(e,t,r){return r===void 0?t:`${t}=${e(r)}`}s(qd,"printAttribute");function s_(e,t,r){return r===void 0?`element.hasAttribute(${e(t)})`:`element.getAttribute(${e(t)}) === ${e(r)}`}s(s_,"getAttributeComment");function Py(e,t,r){We(e,Py,this);let n=r!==void 0,a=e.hasAttribute(t),o=e.getAttribute(t);return{pass:n?a&&this.equals(o,r):a,message:s(()=>{let i=this.isNot?"not to":"to",l=a?qd(this.utils.stringify,t,o):null,u=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveAttribute`,"element",this.utils.printExpected(t),{secondArgument:n?this.utils.printExpected(r):void 0,comment:s_(this.utils.stringify,t,r)});return Pt(this,u,`Expected the element ${i} have attribute`,qd(this.utils.stringify,t,r),"Received",l)},"message")}}s(Py,"toHaveAttribute");function l_(e){let t=e.pop(),r,n;return typeof t=="object"&&!(t instanceof RegExp)?(r=e,n=t):(r=e.concat(t),n={exact:!1}),{expectedClassNames:r,options:n}}s(l_,"getExpectedClassNamesAndOptions");function Md(e){return e?e.split(/\s+/).filter(t=>t.length>0):[]}s(Md,"splitClassNames");function Ld(e,t){return e.every(r=>typeof r=="string"?t.includes(r):t.some(n=>r.test(n)))}s(Ld,"isSubset$1");function Dy(e,...t){We(e,Dy,this);let{expectedClassNames:r,options:n}=l_(t),a=Md(e.getAttribute("class")),o=r.reduce((l,u)=>l.concat(typeof u=="string"||!u?Md(u):u),[]),i=o.some(l=>l instanceof RegExp);if(n.exact&&i)throw new Error("Exact option does not support RegExp expected class names");return n.exact?{pass:Ld(o,a)&&o.length===a.length,message:s(()=>{let l=this.isNot?"not to":"to";return Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${l} have EXACTLY defined classes`,o.join(" "),"Received",a.join(" "))},"message")}:o.length>0?{pass:Ld(o,a),message:s(()=>{let l=this.isNot?"not to":"to";return Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveClass`,"element",this.utils.printExpected(o.join(" "))),`Expected the element ${l} have class`,o.join(" "),"Received",a.join(" "))},"message")}:{pass:this.isNot?a.length>0:!1,message:s(()=>this.isNot?Pt(this,this.utils.matcherHint(".not.toHaveClass","element",""),"Expected the element to have classes","(none)","Received",a.join(" ")):[this.utils.matcherHint(".toHaveClass","element"),"At least one expected class must be provided."].join(`
|
|
235
|
+
`),"message")}}s(Dy,"toHaveClass");function u_(e,t){let r={},n=e.createElement("div");return Object.keys(t).forEach(a=>{n.style[a]=t[a],r[a]=n.style[a]}),r}s(u_,"getStyleDeclaration");function c_(e,t){return!!Object.keys(e).length&&Object.entries(e).every(([r,n])=>{let a=r.startsWith("--"),o=[r];return a||o.push(r.toLowerCase()),o.some(i=>t[i]===n||t.getPropertyValue(i)===n)})}s(c_,"isSubset");function $d(e){return Object.keys(e).sort().map(t=>`${t}: ${e[t]};`).join(`
|
|
236
|
+
`)}s($d,"printoutStyles");function p_(e,t,r){let n=Array.from(r).filter(a=>t[a]!==void 0).reduce((a,o)=>Object.assign(a,{[o]:r.getPropertyValue(o)}),{});return e($d(t),$d(n)).replace(`${U4.default.red("+ Received")}
|
|
237
|
+
`,"")}s(p_,"expectedDiff");function $l(e,t){We(e,$l,this);let r=typeof t=="object"?t:KS(t,$l,this),{getComputedStyle:n}=e.ownerDocument.defaultView,a=u_(e.ownerDocument,r),o=n(e);return{pass:c_(a,o),message:s(()=>{let i=`${this.isNot?".not":""}.toHaveStyle`;return[this.utils.matcherHint(i,"element",""),p_(this.utils.diff,a,o)].join(`
|
|
238
|
+
|
|
239
|
+
`)},"message")}}s($l,"toHaveStyle");function Oy(e){return We(e,Oy,this),{pass:e.ownerDocument.activeElement===e,message:s(()=>[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(`
|
|
240
|
+
`),"message")}}s(Oy,"toHaveFocus");function d_(e){let t=[...new Set(e.map(r=>r.type))];if(t.length!==1)throw new Error("Multiple form elements with the same name must be of the same type");switch(t[0]){case"radio":{let r=e.find(n=>n.checked);return r?r.value:void 0}case"checkbox":return e.filter(r=>r.checked).map(r=>r.value);default:return e.map(r=>r.value)}}s(d_,"getMultiElementValue");function f_(e,t){let r=[...e.querySelectorAll(`[name="${(0,V4.default)(t)}"]`)];if(r.length!==0)switch(r.length){case 1:return Cy(r[0]);default:return d_(r)}}s(f_,"getFormValue");function h_(e){return/\[\]$/.test(e)?e.slice(0,-2):e}s(h_,"getPureName");function m_(e){return Array.from(e.elements).map(t=>t.name).reduce((t,r)=>({...t,[h_(r)]:f_(e,r)}),{})}s(m_,"getAllFormValues");function Ry(e,t){if(We(e,Ry,this),!e.elements)throw new Error("toHaveFormValues must be called on a form or a fieldset");let r=m_(e);return{pass:Object.entries(t).every(([n,a])=>(0,vy.default)(r[n],a,yc)),message:s(()=>{let n=this.isNot?"not to":"to",a=`${this.isNot?".not":""}.toHaveFormValues`,o=Object.keys(r).filter(i=>t.hasOwnProperty(i)).reduce((i,l)=>({...i,[l]:r[l]}),{});return[this.utils.matcherHint(a,"element",""),`Expected the element ${n} have form values`,this.utils.diff(t,o)].join(`
|
|
241
|
+
|
|
242
|
+
`)},"message")}}s(Ry,"toHaveFormValues");function y_(e){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:r,visibility:n,opacity:a}=t(e);return r!=="none"&&n!=="hidden"&&n!=="collapse"&&a!=="0"&&a!==0}s(y_,"isStyleVisible");function g_(e,t){let r;return t?r=e.nodeName==="DETAILS"&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0:r=e.nodeName==="DETAILS"?e.hasAttribute("open"):!0,!e.hasAttribute("hidden")&&r}s(g_,"isAttributeVisible");function Fy(e,t){return y_(e)&&g_(e,t)&&(!e.parentElement||Fy(e.parentElement,e))}s(Fy,"isElementVisible");function Iy(e){We(e,Iy,this);let t=e.ownerDocument===e.getRootNode({composed:!0}),r=t&&Fy(e);return{pass:r,message:s(()=>{let n=r?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeVisible`,"element",""),"",`Received element ${n} visible${t?"":" (element is not in the document)"}:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
243
|
+
`)},"message")}}s(Iy,"toBeVisible");var W4=["fieldset","input","select","optgroup","option","button","textarea"];function b_(e,t){return bn(e)==="legend"&&bn(t)==="fieldset"&&e.isSameNode(Array.from(t.children).find(r=>bn(r)==="legend"))}s(b_,"isFirstLegendChildOfFieldset");function v_(e,t){return ky(t)&&!b_(e,t)}s(v_,"isElementDisabledByParent");function E_(e){return e.includes("-")}s(E_,"isCustomElement");function Ny(e){let t=bn(e);return W4.includes(t)||E_(t)}s(Ny,"canElementBeDisabled");function ky(e){return Ny(e)&&e.hasAttribute("disabled")}s(ky,"isElementDisabled");function By(e){let t=e.parentElement;return!!t&&(v_(e,t)||By(t))}s(By,"isAncestorDisabled");function jy(e){return Ny(e)&&(ky(e)||By(e))}s(jy,"isElementOrAncestorDisabled");function qy(e){We(e,qy,this);let t=jy(e);return{pass:t,message:s(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeDisabled`,"element",""),"",`Received element ${r} disabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
244
|
+
`)},"message")}}s(qy,"toBeDisabled");function My(e){We(e,My,this);let t=!jy(e);return{pass:t,message:s(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeEnabled`,"element",""),"",`Received element ${r} enabled:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
245
|
+
`)},"message")}}s(My,"toBeEnabled");var Y4=["select","textarea"],K4=["input","select","textarea"],X4=["color","hidden","range","submit","image","reset"],Q4=["checkbox","combobox","gridcell","listbox","radiogroup","spinbutton","textbox","tree"];function C_(e){return Y4.includes(bn(e))&&e.hasAttribute("required")}s(C_,"isRequiredOnFormTagsExceptInput");function w_(e){return bn(e)==="input"&&e.hasAttribute("required")&&(e.hasAttribute("type")&&!X4.includes(e.getAttribute("type"))||!e.hasAttribute("type"))}s(w_,"isRequiredOnSupportedInput");function x_(e){return e.hasAttribute("aria-required")&&e.getAttribute("aria-required")==="true"&&(K4.includes(bn(e))||e.hasAttribute("role")&&Q4.includes(e.getAttribute("role")))}s(x_,"isElementRequiredByARIA");function Ly(e){We(e,Ly,this);let t=C_(e)||w_(e)||x_(e);return{pass:t,message:s(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeRequired`,"element",""),"",`Received element ${r} required:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
246
|
+
`)},"message")}}s(Ly,"toBeRequired");var Z4=["form","input","select","textarea"];function A_(e){return e.hasAttribute("aria-invalid")&&e.getAttribute("aria-invalid")!=="false"}s(A_,"isElementHavingAriaInvalid");function S_(e){return Z4.includes(bn(e))}s(S_,"isSupportsValidityMethod");function $y(e){let t=A_(e);return S_(e)?t||!e.checkValidity():t}s($y,"isElementInvalid");function Uy(e){We(e,Uy,this);let t=$y(e);return{pass:t,message:s(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeInvalid`,"element",""),"",`Received element ${r} currently invalid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
247
|
+
`)},"message")}}s(Uy,"toBeInvalid");function Vy(e){We(e,Vy,this);let t=!$y(e);return{pass:t,message:s(()=>{let r=t?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeValid`,"element",""),"",`Received element ${r} currently valid:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
248
|
+
`)},"message")}}s(Vy,"toBeValid");function Hy(e,t){if(We(e,Hy,this),e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type))throw new Error("input with type=checkbox or type=radio cannot be used with .toHaveValue(). Use .toBeChecked() for type=checkbox or .toHaveFormValues() instead");let r=Cy(e),n=t!==void 0,a=t,o=r;return t==r&&t!==r&&(a=`${t} (${typeof t})`,o=`${r} (${typeof r})`),{pass:n?(0,vy.default)(r,t,yc):!!r,message:s(()=>{let i=this.isNot?"not to":"to",l=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveValue`,"element",t);return Pt(this,l,`Expected the element ${i} have value`,n?a:"(any)","Received",o)},"message")}}s(Hy,"toHaveValue");function Jy(e,t){We(e,Jy,this);let r=e.tagName.toLowerCase();if(!["select","input","textarea"].includes(r))throw new Error(".toHaveDisplayValue() currently supports only input, textarea or select elements, try with another matcher instead.");if(r==="input"&&["radio","checkbox"].includes(e.type))throw new Error(`.toHaveDisplayValue() currently does not support input[type="${e.type}"], try with another matcher instead.`);let n=__(r,e),a=T_(t),o=a.filter(u=>n.some(c=>u instanceof RegExp?u.test(c):this.equals(c,String(u)))).length,i=o===n.length,l=o===a.length;return{pass:i&&l,message:s(()=>Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDisplayValue`,"element",""),`Expected element ${this.isNot?"not ":""}to have display value`,t,"Received",n),"message")}}s(Jy,"toHaveDisplayValue");function __(e,t){return e==="select"?Array.from(t).filter(r=>r.selected).map(r=>r.textContent):[t.value]}s(__,"getValues");function T_(e){return e instanceof Array?e:[e]}s(T_,"getExpectedValues");function zy(e){We(e,zy,this);let t=s(()=>e.tagName.toLowerCase()==="input"&&["checkbox","radio"].includes(e.type),"isValidInput"),r=s(()=>Gy(e.getAttribute("role"))&&["true","false"].includes(e.getAttribute("aria-checked")),"isValidAriaElement");if(!t()&&!r())return{pass:!1,message:s(()=>`only inputs with type="checkbox" or type="radio" or elements with ${P_()} and a valid aria-checked attribute can be used with .toBeChecked(). Use .toHaveValue() instead`,"message")};let n=s(()=>t()?e.checked:e.getAttribute("aria-checked")==="true","isChecked");return{pass:n(),message:s(()=>{let a=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBeChecked`,"element",""),"",`Received element ${a} checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
249
|
+
`)},"message")}}s(zy,"toBeChecked");function P_(){return t_(D_().map(e=>`role="${e}"`),{lastWordConnector:" or "})}s(P_,"supportedRolesSentence");function D_(){return by.roles.keys().filter(Gy)}s(D_,"supportedRoles");function Gy(e){return by.roles.get(e)?.props["aria-checked"]!==void 0}s(Gy,"roleSupportsChecked");function Wy(e){We(e,Wy,this);let t=s(()=>e.tagName.toLowerCase()==="input"&&e.type==="checkbox","isValidInput"),r=s(()=>e.getAttribute("role")==="checkbox","isValidAriaElement");if(!t()&&!r())return{pass:!1,message:s(()=>'only inputs with type="checkbox" or elements with role="checkbox" and a valid aria-checked attribute can be used with .toBePartiallyChecked(). Use .toHaveValue() instead',"message")};let n=s(()=>{let a=e.getAttribute("aria-checked")==="mixed";return t()&&e.indeterminate||a},"isPartiallyChecked");return{pass:n(),message:s(()=>{let a=n()?"is":"is not";return[this.utils.matcherHint(`${this.isNot?".not":""}.toBePartiallyChecked`,"element",""),"",`Received element ${a} partially checked:`,` ${this.utils.printReceived(e.cloneNode(!1))}`].join(`
|
|
250
|
+
`)},"message")}}s(Wy,"toBePartiallyChecked");function Yy(e,t){ys("toHaveDescription","Please use toHaveAccessibleDescription."),We(e,Yy,this);let r=t!==void 0,n=(e.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean),a="";if(n.length>0){let o=e.ownerDocument,i=n.map(l=>o.getElementById(l)).filter(Boolean);a=gs(i.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(a):this.equals(a,t):!!a,message:s(()=>{let o=this.isNot?"not to":"to";return Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveDescription`,"element",""),`Expected the element ${o} have description`,this.utils.printExpected(t),"Received",this.utils.printReceived(a))},"message")}}s(Yy,"toHaveDescription");function Ky(e,t){if(ys("toHaveErrorMessage","Please use toHaveAccessibleErrorMessage."),We(e,Ky,this),!e.hasAttribute("aria-invalid")||e.getAttribute("aria-invalid")==="false"){let o=this.isNot?".not":"";return{pass:!1,message:s(()=>Pt(this,this.utils.matcherHint(`${o}.toHaveErrorMessage`,"element",""),"Expected the element to have invalid state indicated by",'aria-invalid="true"',"Received",e.hasAttribute("aria-invalid")?`aria-invalid="${e.getAttribute("aria-invalid")}"`:this.utils.printReceived("")),"message")}}let r=t!==void 0,n=(e.getAttribute("aria-errormessage")||"").split(/\s+/).filter(Boolean),a="";if(n.length>0){let o=e.ownerDocument,i=n.map(l=>o.getElementById(l)).filter(Boolean);a=gs(i.map(l=>l.textContent).join(" "))}return{pass:r?t instanceof RegExp?t.test(a):this.equals(a,t):!!a,message:s(()=>{let o=this.isNot?"not to":"to";return Pt(this,this.utils.matcherHint(`${this.isNot?".not":""}.toHaveErrorMessage`,"element",""),`Expected the element ${o} have error message`,this.utils.printExpected(t),"Received",this.utils.printReceived(a))},"message")}}s(Ky,"toHaveErrorMessage");function O_(e){let t=e.ownerDocument.getSelection();if(["input","textarea"].includes(e.tagName.toLowerCase()))return["radio","checkbox"].includes(e.type)?"":e.value.toString().substring(e.selectionStart,e.selectionEnd);if(t.anchorNode===null||t.focusNode===null)return"";let r=t.getRangeAt(0),n=e.ownerDocument.createRange();if(t.containsNode(e,!1))n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n);else if(!(e.contains(t.anchorNode)&&e.contains(t.focusNode))){let o=e===r.startContainer||e.contains(r.startContainer),i=e===r.endContainer||e.contains(r.endContainer);t.removeAllRanges(),(o||i)&&(n.selectNodeContents(e),o&&n.setStart(r.startContainer,r.startOffset),i&&n.setEnd(r.endContainer,r.endOffset),t.addRange(n))}let a=t.toString();return t.removeAllRanges(),t.addRange(r),a}s(O_,"getSelection");function Xy(e,t){We(e,Xy,this);let r=t!==void 0;if(r&&typeof t!="string")throw new Error("expected selection must be a string or undefined");let n=O_(e);return{pass:r?(0,vy.default)(n,t,yc):!!n,message:s(()=>{let a=this.isNot?"not to":"to",o=this.utils.matcherHint(`${this.isNot?".not":""}.toHaveSelection`,"element",t);return Pt(this,o,`Expected the element ${a} have selection`,r?t:"(any)","Received",n)},"message")}}s(Xy,"toHaveSelection");Et(VE(),1);Et(HE(),1);Et(zE(),1);Et(nC(),1);Et(aC(),1);var yp,Qv;function R_(){if(Qv)return yp;Qv=1;var e,t,r,n,a,o,i,l,u,c,p,d,h,f,m,y,b,g,v;return h=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,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]+\})+/yu,m=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,p=/(?: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,y=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,v=/[\t\v\f\ufeff\p{Zs}]+/yu,l=/\r?\n|[\r\u2028\u2029]/y,u=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,f=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,a=/[^<>{}]+/y,g=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,b=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,i=/^(?:return|throw|yield)$/,c=RegExp(l.source),yp=s(function*(D,{jsx:S=!1}={}){var P,w,E,C,_,k,B,W,z,R,U,j,Y,Q;for({length:k}=D,C=0,_="",Q=[{tag:"JS"}],P=[],U=0,j=!1;C<k;){switch(W=Q[Q.length-1],W.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(D[C]==="/"&&(g.test(_)||o.test(_))&&(h.lastIndex=C,B=h.exec(D))){C=h.lastIndex,_=B[0],j=!0,yield{type:"RegularExpressionLiteral",value:B[0],closed:B[1]!==void 0&&B[1]!=="\\"};continue}if(d.lastIndex=C,B=d.exec(D)){switch(Y=B[0],z=d.lastIndex,R=Y,Y){case"(":_==="?NonExpressionParenKeyword"&&Q.push({tag:"JSNonExpressionParen",nesting:U}),U++,j=!1;break;case")":U--,j=!0,W.tag==="JSNonExpressionParen"&&U===W.nesting&&(Q.pop(),R="?NonExpressionParenEnd",j=!1);break;case"{":d.lastIndex=0,E=!b.test(_)&&(g.test(_)||o.test(_)),P.push(E),j=!1;break;case"}":switch(W.tag){case"InterpolationInTemplate":if(P.length===W.nesting){y.lastIndex=C,B=y.exec(D),C=y.lastIndex,_=B[0],B[1]==="${"?(_="?InterpolationInTemplate",j=!1,yield{type:"TemplateMiddle",value:B[0]}):(Q.pop(),j=!0,yield{type:"TemplateTail",value:B[0],closed:B[1]==="`"});continue}break;case"InterpolationInJSX":if(P.length===W.nesting){Q.pop(),C+=1,_="}",yield{type:"JSXPunctuator",value:"}"};continue}}j=P.pop(),R=j?"?ExpressionBraceEnd":"}";break;case"]":j=!0;break;case"++":case"--":R=j?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(S&&(g.test(_)||o.test(_))){Q.push({tag:"JSXTag"}),C+=1,_="<",yield{type:"JSXPunctuator",value:Y};continue}j=!1;break;default:j=!1}C=z,_=R,yield{type:"Punctuator",value:Y};continue}if(e.lastIndex=C,B=e.exec(D)){switch(C=e.lastIndex,R=B[0],B[0]){case"for":case"if":case"while":case"with":_!=="."&&_!=="?."&&(R="?NonExpressionParenKeyword")}_=R,j=!o.test(B[0]),yield{type:B[1]==="#"?"PrivateIdentifier":"IdentifierName",value:B[0]};continue}if(m.lastIndex=C,B=m.exec(D)){C=m.lastIndex,_=B[0],j=!0,yield{type:"StringLiteral",value:B[0],closed:B[2]!==void 0};continue}if(p.lastIndex=C,B=p.exec(D)){C=p.lastIndex,_=B[0],j=!0,yield{type:"NumericLiteral",value:B[0]};continue}if(y.lastIndex=C,B=y.exec(D)){C=y.lastIndex,_=B[0],B[1]==="${"?(_="?InterpolationInTemplate",Q.push({tag:"InterpolationInTemplate",nesting:P.length}),j=!1,yield{type:"TemplateHead",value:B[0]}):(j=!0,yield{type:"NoSubstitutionTemplate",value:B[0],closed:B[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=C,B=r.exec(D)){switch(C=r.lastIndex,R=B[0],B[0]){case"<":Q.push({tag:"JSXTag"});break;case">":Q.pop(),_==="/"||W.tag==="JSXTagEnd"?(R="?JSX",j=!0):Q.push({tag:"JSXChildren"});break;case"{":Q.push({tag:"InterpolationInJSX",nesting:P.length}),R="?InterpolationInJSX",j=!1;break;case"/":_==="<"&&(Q.pop(),Q[Q.length-1].tag==="JSXChildren"&&Q.pop(),Q.push({tag:"JSXTagEnd"}))}_=R,yield{type:"JSXPunctuator",value:B[0]};continue}if(t.lastIndex=C,B=t.exec(D)){C=t.lastIndex,_=B[0],yield{type:"JSXIdentifier",value:B[0]};continue}if(n.lastIndex=C,B=n.exec(D)){C=n.lastIndex,_=B[0],yield{type:"JSXString",value:B[0],closed:B[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=C,B=a.exec(D)){C=a.lastIndex,_=B[0],yield{type:"JSXText",value:B[0]};continue}switch(D[C]){case"<":Q.push({tag:"JSXTag"}),C++,_="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":Q.push({tag:"InterpolationInJSX",nesting:P.length}),C++,_="?InterpolationInJSX",j=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(v.lastIndex=C,B=v.exec(D)){C=v.lastIndex,yield{type:"WhiteSpace",value:B[0]};continue}if(l.lastIndex=C,B=l.exec(D)){C=l.lastIndex,j=!1,i.test(_)&&(_="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:B[0]};continue}if(u.lastIndex=C,B=u.exec(D)){C=u.lastIndex,c.test(B[0])&&(j=!1,i.test(_)&&(_="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:B[0],closed:B[1]!==void 0};continue}if(f.lastIndex=C,B=f.exec(D)){C=f.lastIndex,j=!1,yield{type:"SingleLineComment",value:B[0]};continue}w=String.fromCodePoint(D.codePointAt(C)),C+=w.length,_=w,j=!1,yield{type:W.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:w}}},"jsTokens_1"),yp}s(R_,"requireJsTokens");R_();var F_={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(F_.keyword);new Set(F_.strict);function vi(e,t){if(!e)throw new Error(t)}s(vi,"assert");function la(e,t){return typeof t===e}s(la,"isType");function I_(e){return e instanceof Promise}s(I_,"isPromise");function vo(e,t,r){Object.defineProperty(e,t,r)}s(vo,"define");function ha(e,t,r){vo(e,t,{value:r,configurable:!0,writable:!0})}s(ha,"defineValue");var qn=Symbol.for("tinyspy:spy"),eU=new Set,tU=s(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},"reset"),rU=s(e=>(vo(e,qn,{value:{reset:s(()=>tU(e[qn]),"reset")}}),e[qn]),"defineState"),Ud=s(e=>e[qn]||rU(e),"getInternalState");function N_(e){vi(la("function",e)||la("undefined",e),"cannot spy on a non-function value");let t=s(function(...n){let a=Ud(t);a.called=!0,a.callCount++,a.calls.push(n);let o=a.next.shift();if(o){a.results.push(o);let[p,d]=o;if(p==="ok")return d;throw d}let i,l="ok",u=a.results.length;if(a.impl)try{new.target?i=Reflect.construct(a.impl,n,new.target):i=a.impl.apply(this,n),l="ok"}catch(p){throw i=p,l="error",a.results.push([l,p]),p}let c=[l,i];return I_(i)&&i.then(p=>a.resolves[u]=["ok",p],p=>a.resolves[u]=["error",p]),a.results.push(c),i},"fn");ha(t,"_isMockFunction",!0),ha(t,"length",e?e.length:0),ha(t,"name",e&&e.name||"spy");let r=Ud(t);return r.reset(),r.impl=e,t}s(N_,"createInternalSpy");function k_(e){return!!e&&e._isMockFunction===!0}s(k_,"isMockFunction");var B_=s((e,t)=>{let r=Object.getOwnPropertyDescriptor(e,t);if(r)return[e,r];let n=Object.getPrototypeOf(e);for(;n!==null;){let a=Object.getOwnPropertyDescriptor(n,t);if(a)return[n,a];n=Object.getPrototypeOf(n)}},"getDescriptor"),Zv=s((e,t)=>{t!=null&&typeof t=="function"&&t.prototype!=null&&Object.setPrototypeOf(e.prototype,t.prototype)},"setPototype");function Qy(e,t,r){vi(!la("undefined",e),"spyOn could not find an object to spy upon"),vi(la("object",e)||la("function",e),"cannot spyOn on a primitive value");let[n,a]=(()=>{if(!la("object",t))return[t,"value"];if("getter"in t&&"setter"in t)throw new Error("cannot spy on both getter and setter");if("getter"in t)return[t.getter,"get"];if("setter"in t)return[t.setter,"set"];throw new Error("specify getter or setter to spy on")})(),[o,i]=B_(e,n)||[];vi(i||n in e,`${String(n)} does not exist`);let l=!1;a==="value"&&i&&!i.value&&i.get&&(a="get",l=!0,r=i.get());let u;i?u=i[a]:a!=="value"?u=s(()=>e[n],"original"):u=e[n],u&&M_(u)&&(u=u[qn].getOriginal());let c=s(f=>{let{value:m,...y}=i||{configurable:!0,writable:!0};a!=="value"&&delete y.writable,y[a]=f,vo(e,n,y)},"reassign"),p=s(()=>{o!==e?Reflect.deleteProperty(e,n):i&&!u?vo(e,n,i):c(u)},"restore");r||(r=u);let d=q_(N_(r),r);a==="value"&&Zv(d,u);let h=d[qn];return ha(h,"restore",p),ha(h,"getOriginal",()=>l?u():u),ha(h,"willCall",f=>(h.impl=f,d)),c(l?()=>(Zv(d,r),d):d),eU.add(d),d}s(Qy,"internalSpyOn");var nU=new Set(["length","name","prototype"]);function j_(e){let t=new Set,r={};for(;e&&e!==Object.prototype&&e!==Function.prototype;){let n=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(let a of n)r[a]||nU.has(a)||(t.add(a),r[a]=Object.getOwnPropertyDescriptor(e,a));e=Object.getPrototypeOf(e)}return{properties:t,descriptors:r}}s(j_,"getAllProperties");function q_(e,t){if(!t||qn in t)return e;let{properties:r,descriptors:n}=j_(t);for(let a of r){let o=n[a];B_(e,a)||vo(e,a,o)}return e}s(q_,"wrap");function M_(e){return k_(e)&&"getOriginal"in e[qn]}s(M_,"isSpyFunction");var bs=new Set;function ma(e){return typeof e=="function"&&"_isMockFunction"in e&&e._isMockFunction}s(ma,"isMockFunction");function L_(e,t,r){let n=r?{[{get:"getter",set:"setter"}[r]]:t}:t,a,o=$_(e,t),i=o&&o[r||"value"];ma(i)&&(a=i.mock._state());try{let l=Qy(e,n),u=Zy(l);return a&&u.mock._state(a),u}catch(l){throw l instanceof TypeError&&Symbol.toStringTag&&e[Symbol.toStringTag]==="Module"&&(l.message.includes("Cannot redefine property")||l.message.includes("Cannot replace module namespace")||l.message.includes("can't redefine non-configurable property"))?new TypeError(`Cannot spy on export "${String(n)}". Module namespace is not configurable in ESM. See: https://vitest.dev/guide/browser/#limitations`,{cause:l}):l}}s(L_,"spyOn");var aU=0;function Zy(e){let t=e,r,n=[],a=!1,o=[],i=[],l=[],u=Ud(e),c={get calls(){return u.calls},get contexts(){return i},get instances(){return o},get invocationCallOrder(){return l},get results(){return u.results.map(([f,m])=>({type:f==="error"?"throw":"return",value:m}))},get settledResults(){return u.resolves.map(([f,m])=>({type:f==="error"?"rejected":"fulfilled",value:m}))},get lastCall(){return u.calls[u.calls.length-1]},_state(f){return f&&(r=f.implementation,n=f.onceImplementations,a=f.implementationChangedTemporarily),{implementation:r,onceImplementations:n,implementationChangedTemporarily:a}}};function p(...f){return o.push(this),i.push(this),l.push(++aU),(a?r:n.shift()||r||u.getOriginal()||(()=>{})).apply(this,f)}s(p,"mockCall");let d=t.name;t.getMockName=()=>d||"vi.fn()",t.mockName=f=>(d=f,t),t.mockClear=()=>(u.reset(),o=[],i=[],l=[],t),t.mockReset=()=>(t.mockClear(),r=void 0,n=[],t),t.mockRestore=()=>(t.mockReset(),u.restore(),t),Symbol.dispose&&(t[Symbol.dispose]=()=>t.mockRestore()),t.getMockImplementation=()=>a?r:n.at(0)||r,t.mockImplementation=f=>(r=f,u.willCall(p),t),t.mockImplementationOnce=f=>(n.push(f),t);function h(f,m){let y=r;r=f,u.willCall(p),a=!0;let b=s(()=>{r=y,a=!1},"reset"),g=m();return typeof g=="object"&&g&&typeof g.then=="function"?g.then(()=>(b(),t)):(b(),t)}return s(h,"withImplementation"),t.withImplementation=h,t.mockReturnThis=()=>t.mockImplementation(function(){return this}),t.mockReturnValue=f=>t.mockImplementation(()=>f),t.mockReturnValueOnce=f=>t.mockImplementationOnce(()=>f),t.mockResolvedValue=f=>t.mockImplementation(()=>Promise.resolve(f)),t.mockResolvedValueOnce=f=>t.mockImplementationOnce(()=>Promise.resolve(f)),t.mockRejectedValue=f=>t.mockImplementation(()=>Promise.reject(f)),t.mockRejectedValueOnce=f=>t.mockImplementationOnce(()=>Promise.reject(f)),Object.defineProperty(t,"mock",{get:s(()=>c,"get")}),u.willCall(p),bs.add(t),t}s(Zy,"enhanceSpy");function Vd(e){let t=Zy(Qy({spy:e||function(){}},"spy"));return e&&t.mockImplementation(e),t}s(Vd,"fn");function $_(e,t){let r=Object.getOwnPropertyDescriptor(e,t);if(r)return r;let n=Object.getPrototypeOf(e);for(;n!==null;){let a=Object.getOwnPropertyDescriptor(n,t);if(a)return a;n=Object.getPrototypeOf(n)}}s($_,"getDescriptor");var $i=Symbol.for("matchers-object"),Ui=Symbol.for("$$jest-matchers-object-storybook"),eg=Symbol.for("expect-global"),Hd=Symbol.for("asymmetric-matchers-object"),oU={toSatisfy(e,t,r){let{printReceived:n,printExpected:a,matcherHint:o}=this.utils,i=t(e);return{pass:i,message:s(()=>i?`${o(".not.toSatisfy","received","")}
|
|
251
|
+
|
|
252
|
+
Expected value to not satisfy:
|
|
253
|
+
${r||a(t)}
|
|
254
|
+
Received:
|
|
255
|
+
${n(e)}`:`${o(".toSatisfy","received","")}
|
|
256
|
+
|
|
257
|
+
Expected value to satisfy:
|
|
258
|
+
${r||a(t)}
|
|
259
|
+
|
|
260
|
+
Received:
|
|
261
|
+
${n(e)}`,"message")}},toBeOneOf(e,t){let{equals:r,customTesters:n}=this,{printReceived:a,printExpected:o,matcherHint:i}=this.utils;if(!Array.isArray(t))throw new TypeError(`You must provide an array to ${i(".toBeOneOf")}, not '${typeof t}'.`);let l=t.length===0||t.some(u=>r(u,e,n));return{pass:l,message:s(()=>l?`${i(".not.toBeOneOf","received","")}
|
|
262
|
+
|
|
263
|
+
Expected value to not be one of:
|
|
264
|
+
${o(t)}
|
|
265
|
+
Received:
|
|
266
|
+
${a(e)}`:`${i(".toBeOneOf","received","")}
|
|
267
|
+
|
|
268
|
+
Expected value to be one of:
|
|
269
|
+
${o(t)}
|
|
270
|
+
|
|
271
|
+
Received:
|
|
272
|
+
${a(e)}`,"message")}}},Ul=bt.green,tg=bt.red,iU=bt.inverse,sU=bt.bold,Dn=bt.dim;function U_(e,t="received",r="expected",n={}){let{comment:a="",isDirectExpectCall:o=!1,isNot:i=!1,promise:l="",secondArgument:u="",expectedColor:c=Ul,receivedColor:p=tg,secondArgumentColor:d=Ul}=n,h="",f="expect";return!o&&t!==""&&(h+=Dn(`${f}(`)+p(t),f=")"),l!==""&&(h+=Dn(`${f}.`)+l,f=""),i&&(h+=`${Dn(`${f}.`)}not`,f=""),e.includes(".")?f+=e:(h+=Dn(`${f}.`)+e,f=""),r===""?f+="()":(h+=Dn(`${f}(`)+c(r),u&&(h+=Dn(", ")+d(u)),f=")"),a!==""&&(f+=` // ${a}`),f!==""&&(h+=Dn(f)),h}s(U_,"matcherHint");var lU="·";function rg(e){return e.replace(/\s+$/gm,t=>lU.repeat(t.length))}s(rg,"replaceTrailingSpaces");function V_(e){return tg(rg(Kt(e)))}s(V_,"printReceived");function H_(e){return Ul(rg(Kt(e)))}s(H_,"printExpected");function ng(){return{EXPECTED_COLOR:Ul,RECEIVED_COLOR:tg,INVERTED_COLOR:iU,BOLD_WEIGHT:sU,DIM_COLOR:Dn,diff:Ia,matcherHint:U_,printReceived:V_,printExpected:H_,printDiffOrStringify:xm,printWithType:J_}}s(ng,"getMatcherUtils");function J_(e,t,r){let n=Ii(t),a=n!=="null"&&n!=="undefined"?`${e} has type: ${n}
|
|
273
|
+
`:"",o=`${e} has value: ${r(t)}`;return a+o}s(J_,"printWithType");function gc(){return globalThis[Ui].customEqualityTesters}s(gc,"getCustomEqualityTesters");function Je(e,t,r,n){return r=r||[],oo(e,t,[],[],r,n?ag:W_)}s(Je,"equals");function Jd(e){return!!e&&typeof e=="object"&&"asymmetricMatch"in e&&vr("Function",e.asymmetricMatch)}s(Jd,"isAsymmetric");function z_(e,t){let r=Jd(e),n=Jd(t);if(!(r&&n)){if(r)return e.asymmetricMatch(t);if(n)return t.asymmetricMatch(e)}}s(z_,"asymmetricMatch");function oo(e,t,r,n,a,o){let i=!0,l=z_(e,t);if(l!==void 0)return l;let u={equals:Je};for(let m=0;m<a.length;m++){let y=a[m].call(u,e,t,a);if(y!==void 0)return y}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 c=Object.prototype.toString.call(e);if(c!==Object.prototype.toString.call(t))return!1;switch(c){case"[object Boolean]":case"[object String]":case"[object Number]":return typeof e!=typeof t?!1:typeof e!="object"&&typeof t!="object"?Object.is(e,t):Object.is(e.valueOf(),t.valueOf());case"[object Date]":{let m=+e,y=+t;return m===y||Number.isNaN(m)&&Number.isNaN(y)}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(Gd(e)&&Gd(t))return e.isEqualNode(t);let p=r.length;for(;p--;){if(r[p]===e)return n[p]===t;if(n[p]===t)return!1}if(r.push(e),n.push(t),c==="[object Array]"&&e.length!==t.length)return!1;if(e instanceof Error&&t instanceof Error)try{return G_(e,t,r,n,a,o)}finally{r.pop(),n.pop()}let d=zd(e,o),h,f=d.length;if(zd(t,o).length!==f)return!1;for(;f--;)if(h=d[f],i=o(t,h)&&oo(e[h],t[h],r,n,a,o),!i)return!1;return r.pop(),n.pop(),i}s(oo,"eq");function G_(e,t,r,n,a,o){let i=Object.getPrototypeOf(e)===Object.getPrototypeOf(t)&&e.name===t.name&&e.message===t.message;return typeof t.cause<"u"&&i&&(i=oo(e.cause,t.cause,r,n,a,o)),e instanceof AggregateError&&t instanceof AggregateError&&i&&(i=oo(e.errors,t.errors,r,n,a,o)),i&&(i=oo({...e},{...t},r,n,a,o)),i}s(G_,"isErrorEqual");function zd(e,t){let r=[];for(let n in e)t(e,n)&&r.push(n);return r.concat(Object.getOwnPropertySymbols(e).filter(n=>Object.getOwnPropertyDescriptor(e,n).enumerable))}s(zd,"keys");function W_(e,t){return ag(e,t)&&e[t]!==void 0}s(W_,"hasDefinedKey");function ag(e,t){return Object.prototype.hasOwnProperty.call(e,t)}s(ag,"hasKey");function vr(e,t){return Object.prototype.toString.apply(t)===`[object ${e}]`}s(vr,"isA");function Gd(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"&&"nodeName"in e&&typeof e.nodeName=="string"&&"isEqualNode"in e&&typeof e.isEqualNode=="function"}s(Gd,"isDomNode");var Y_="@@__IMMUTABLE_KEYED__@@",K_="@@__IMMUTABLE_SET__@@",uU="@@__IMMUTABLE_LIST__@@",bc="@@__IMMUTABLE_ORDERED__@@",cU="@@__IMMUTABLE_RECORD__@@";function X_(e){return!!(e&&e[Y_]&&!e[bc])}s(X_,"isImmutableUnorderedKeyed");function Q_(e){return!!(e&&e[K_]&&!e[bc])}s(Q_,"isImmutableUnorderedSet");function vs(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}s(vs,"isObjectLiteral");function Z_(e){return!!(e&&vs(e)&&e[uU])}s(Z_,"isImmutableList");function eT(e){return!!(e&&vs(e)&&e[Y_]&&e[bc])}s(eT,"isImmutableOrderedKeyed");function tT(e){return!!(e&&vs(e)&&e[K_]&&e[bc])}s(tT,"isImmutableOrderedSet");function rT(e){return!!(e&&vs(e)&&e[cU])}s(rT,"isImmutableRecord");var nT=Symbol.iterator;function Wd(e){return!!(e!=null&&e[nT])}s(Wd,"hasIterator");function sr(e,t,r=[],n=[],a=[]){if(typeof e!="object"||typeof t!="object"||Array.isArray(e)||Array.isArray(t)||!Wd(e)||!Wd(t))return;if(e.constructor!==t.constructor)return!1;let o=n.length;for(;o--;)if(n[o]===e)return a[o]===t;n.push(e),a.push(t);let i=[...r.filter(c=>c!==sr),l];function l(c,p){return sr(c,p,[...r],[...n],[...a])}if(s(l,"iterableEqualityWithStack"),e.size!==void 0){if(e.size!==t.size)return!1;if(vr("Set",e)||Q_(e)){let c=!0;for(let p of e)if(!t.has(p)){let d=!1;for(let h of t)Je(p,h,i)===!0&&(d=!0);if(d===!1){c=!1;break}}return n.pop(),a.pop(),c}else if(vr("Map",e)||X_(e)){let c=!0;for(let p of e)if(!t.has(p[0])||!Je(p[1],t.get(p[0]),i)){let d=!1;for(let h of t){let f=Je(p[0],h[0],i),m=!1;f===!0&&(m=Je(p[1],h[1],i)),m===!0&&(d=!0)}if(d===!1){c=!1;break}}return n.pop(),a.pop(),c}}let u=t[nT]();for(let c of e){let p=u.next();if(p.done||!Je(c,p.value,i))return!1}if(!u.next().done)return!1;if(!Z_(e)&&!eT(e)&&!tT(e)&&!rT(e)){let c=Object.entries(e),p=Object.entries(t);if(!Je(c,p,i))return!1}return n.pop(),a.pop(),!0}s(sr,"iterableEquality");function vc(e,t){return!e||typeof e!="object"||e===Object.prototype?!1:Object.prototype.hasOwnProperty.call(e,t)||vc(Object.getPrototypeOf(e),t)}s(vc,"hasPropertyInObject");function aT(e){return gi(e)&&!(e instanceof Error)&&!Array.isArray(e)&&!(e instanceof Date)}s(aT,"isObjectWithKeys");function Lo(e,t,r=[]){let n=r.filter(o=>o!==Lo),a=s((o=new WeakMap)=>(i,l)=>{if(aT(l))return Object.keys(l).every(u=>{if(l[u]!=null&&typeof l[u]=="object"){if(o.has(l[u]))return Je(i[u],l[u],n);o.set(l[u],!0)}let c=i!=null&&vc(i,u)&&Je(i[u],l[u],[...n,a(o)]);return o.delete(l[u]),c})},"subsetEqualityWithContext");return a()(e,t)}s(Lo,"subsetEquality");function Yd(e,t){if(!(e==null||t==null||e.constructor===t.constructor))return!1}s(Yd,"typeEquality");function Kd(e,t){let r=e,n=t;if(!(e instanceof DataView&&t instanceof DataView)){if(!(e instanceof ArrayBuffer)||!(t instanceof ArrayBuffer))return;try{r=new DataView(e),n=new DataView(t)}catch{return}}if(r.byteLength!==n.byteLength)return!1;for(let a=0;a<r.byteLength;a++)if(r.getUint8(a)!==n.getUint8(a))return!1;return!0}s(Kd,"arrayBufferEquality");function Vl(e,t,r=[]){if(!Array.isArray(e)||!Array.isArray(t))return;let n=Object.keys(e),a=Object.keys(t),o=r.filter(i=>i!==Vl);return Je(e,t,o,!0)&&Je(n,a)}s(Vl,"sparseArrayEquality");function oT(e,t="#{this}",r="#{exp}"){let n=`expected ${t} to be ${r} // Object.is equality`;return["toStrictEqual","toEqual"].includes(e)?`${n}
|
|
274
|
+
|
|
275
|
+
If it should pass with deep equality, replace "toBe" with "${e}"
|
|
276
|
+
|
|
277
|
+
Expected: ${t}
|
|
278
|
+
Received: serializes to the same string
|
|
279
|
+
`:n}s(oT,"generateToBeMessage");function iT(e,t){return`${t} ${e}${t===1?"":"s"}`}s(iT,"pluralize");function Ys(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e).filter(t=>{var r;return(r=Object.getOwnPropertyDescriptor(e,t))===null||r===void 0?void 0:r.enumerable})]}s(Ys,"getObjectKeys");function sT(e,t,r){let n=0,a=s((o=new WeakMap)=>(i,l)=>{if(Array.isArray(i)){if(Array.isArray(l)&&l.length===i.length)return l.map((u,c)=>a(o)(i[c],u))}else{if(i instanceof Date)return i;if(gi(i)&&gi(l)){if(Je(i,l,[...r,sr,Lo]))return l;let u={};o.set(i,u),typeof i.constructor=="function"&&typeof i.constructor.name=="string"&&Object.defineProperty(u,"constructor",{enumerable:!1,value:i.constructor});for(let c of Ys(i))vc(l,c)?u[c]=o.has(i[c])?o.get(i[c]):a(o)(i[c],l[c]):o.has(i[c])||(n+=1,gi(i[c])&&(n+=Ys(i[c]).length),a(o)(i[c],l[c]));if(Ys(u).length>0)return u}}return i},"getObjectSubsetWithContext");return{subset:a()(e,t),stripped:n}}s(sT,"getObjectSubset");if(!Object.prototype.hasOwnProperty.call(globalThis,$i)){let e=new WeakMap;Object.defineProperty(globalThis,$i,{get:s(()=>e,"get")})}if(!Object.prototype.hasOwnProperty.call(globalThis,Ui)){let e=Object.create(null),t=[];Object.defineProperty(globalThis,Ui,{configurable:!0,get:s(()=>({state:globalThis[$i].get(globalThis[eg]),matchers:e,customEqualityTesters:t}),"get")})}if(!Object.prototype.hasOwnProperty.call(globalThis,Hd)){let e=Object.create(null);Object.defineProperty(globalThis,Hd,{get:s(()=>e,"get")})}function Vi(e){return globalThis[$i].get(e)}s(Vi,"getState");function Ks(e,t){let r=globalThis[$i],n=r.get(t)||{},a=Object.defineProperties(n,{...Object.getOwnPropertyDescriptors(n),...Object.getOwnPropertyDescriptors(e)});r.set(t,a)}s(Ks,"setState");var lT=class{$$typeof=Symbol.for("jest.asymmetricMatcher");constructor(t,r=!1){this.sample=t,this.inverse=r}getMatcherContext(t){return{...Vi(t||globalThis[eg]),equals:Je,isNot:this.inverse,customTesters:gc(),utils:{...ng(),diff:Ia,stringify:Kt,iterableEquality:sr,subsetEquality:Lo}}}};s(lT,"AsymmetricMatcher");var wn=lT;wn.prototype[Symbol.for("chai/inspect")]=function(e){let t=Kt(this,e.depth,{min:!0});return t.length<=e.truncate?t:`${this.toString()}{…}`};var uT=class extends wn{constructor(t,r=!1){if(!vr("String",t))throw new Error("Expected is not a string");super(t,r)}asymmetricMatch(t){let r=vr("String",t)&&t.includes(this.sample);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Containing`}getExpectedType(){return"string"}};s(uT,"StringContaining");var e0=uT,cT=class extends wn{asymmetricMatch(t){return t!=null}toString(){return"Anything"}toAsymmetricMatcher(){return"Anything"}};s(cT,"Anything");var pU=cT,pT=class extends wn{constructor(t,r=!1){super(t,r)}getPrototype(t){return Object.getPrototypeOf?Object.getPrototypeOf(t):t.constructor.prototype===t?null:t.constructor.prototype}hasProperty(t,r){return t?Object.prototype.hasOwnProperty.call(t,r)?!0:this.hasProperty(this.getPrototype(t),r):!1}asymmetricMatch(t){if(typeof this.sample!="object")throw new TypeError(`You must provide an object to ${this.toString()}, not '${typeof this.sample}'.`);let r=!0,n=this.getMatcherContext();for(let a in this.sample)if(!this.hasProperty(t,a)||!Je(this.sample[a],t[a],n.customTesters)){r=!1;break}return this.inverse?!r:r}toString(){return`Object${this.inverse?"Not":""}Containing`}getExpectedType(){return"object"}};s(pT,"ObjectContaining");var t0=pT,dT=class extends wn{constructor(t,r=!1){super(t,r)}asymmetricMatch(t){if(!Array.isArray(this.sample))throw new TypeError(`You must provide an array to ${this.toString()}, not '${typeof this.sample}'.`);let r=this.getMatcherContext(),n=this.sample.length===0||Array.isArray(t)&&this.sample.every(a=>t.some(o=>Je(a,o,r.customTesters)));return this.inverse?!n:n}toString(){return`Array${this.inverse?"Not":""}Containing`}getExpectedType(){return"array"}};s(dT,"ArrayContaining");var r0=dT,fT=class extends wn{constructor(t){if(typeof t>"u")throw new TypeError("any() expects to be passed a constructor function. Please pass one or use anything() to match any object.");super(t)}fnNameFor(t){if(t.name)return t.name;let r=Function.prototype.toString.call(t).match(/^(?:async)?\s*function\s*(?:\*\s*)?([\w$]+)\s*\(/);return r?r[1]:"<anonymous>"}asymmetricMatch(t){return this.sample===String?typeof t=="string"||t instanceof String:this.sample===Number?typeof t=="number"||t instanceof Number:this.sample===Function?typeof t=="function"||typeof t=="function":this.sample===Boolean?typeof t=="boolean"||t instanceof Boolean:this.sample===BigInt?typeof t=="bigint"||t instanceof BigInt:this.sample===Symbol?typeof t=="symbol"||t instanceof Symbol:this.sample===Object?typeof t=="object":t 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)}>`}};s(fT,"Any");var dU=fT,hT=class extends wn{constructor(t,r=!1){if(!vr("String",t)&&!vr("RegExp",t))throw new Error("Expected is not a String or a RegExp");super(new RegExp(t),r)}asymmetricMatch(t){let r=vr("String",t)&&this.sample.test(t);return this.inverse?!r:r}toString(){return`String${this.inverse?"Not":""}Matching`}getExpectedType(){return"string"}};s(hT,"StringMatching");var n0=hT,mT=class extends wn{precision;constructor(t,r=2,n=!1){if(!vr("Number",t))throw new Error("Expected is not a Number");if(!vr("Number",r))throw new Error("Precision is not a Number");super(t),this.inverse=n,this.precision=r}asymmetricMatch(t){if(!vr("Number",t))return!1;let r=!1;return t===Number.POSITIVE_INFINITY&&this.sample===Number.POSITIVE_INFINITY||t===Number.NEGATIVE_INFINITY&&this.sample===Number.NEGATIVE_INFINITY?r=!0:r=Math.abs(this.sample-t)<10**-this.precision/2,this.inverse?!r:r}toString(){return`Number${this.inverse?"Not":""}CloseTo`}getExpectedType(){return"number"}toAsymmetricMatcher(){return[this.toString(),this.sample,`(${iT("digit",this.precision)})`].join(" ")}};s(mT,"CloseTo");var a0=mT,fU=s((e,t)=>{t.addMethod(e.expect,"anything",()=>new pU),t.addMethod(e.expect,"any",r=>new dU(r)),t.addMethod(e.expect,"stringContaining",r=>new e0(r)),t.addMethod(e.expect,"objectContaining",r=>new t0(r)),t.addMethod(e.expect,"arrayContaining",r=>new r0(r)),t.addMethod(e.expect,"stringMatching",r=>new n0(r)),t.addMethod(e.expect,"closeTo",(r,n)=>new a0(r,n)),e.expect.not={stringContaining:s(r=>new e0(r,!0),"stringContaining"),objectContaining:s(r=>new t0(r,!0),"objectContaining"),arrayContaining:s(r=>new r0(r,!0),"arrayContaining"),stringMatching:s(r=>new n0(r,!0),"stringMatching"),closeTo:s((r,n)=>new a0(r,n,!0),"closeTo")}},"JestAsymmetricMatchers");function Xd(e,t,r){let n=e.flag(t,"negate")?"not.":"",a=`${e.flag(t,"_name")}(${r?"expected":""})`,o=e.flag(t,"promise");return`expect(actual)${o?`.${o}`:""}.${n}${a}`}s(Xd,"createAssertionMessage");function Qd(e,t,r,n){let a=e;if(a&&t instanceof Promise){t=t.finally(()=>{if(!a.promises)return;let i=a.promises.indexOf(t);i!==-1&&a.promises.splice(i,1)}),a.promises||(a.promises=[]),a.promises.push(t);let o=!1;return a.onFinished??(a.onFinished=[]),a.onFinished.push(()=>{if(!o){var i;let l=(((i=globalThis.__vitest_worker__)===null||i===void 0?void 0:i.onFilterStackTrace)||(u=>u||""))(n.stack);console.warn([`Promise returned by \`${r}\` was not awaited. `,"Vitest currently auto-awaits hanging assertions at the end of the test, but this will cause the test to fail in Vitest 3. ",`Please remember to await the assertion.
|
|
280
|
+
`,l].join(""))}}),{then(i,l){return o=!0,t.then(i,l)},catch(i){return t.catch(i)},finally(i){return t.finally(i)},[Symbol.toStringTag]:"Promise"}}return t}s(Qd,"recordAsyncExpect");function Zd(e,t){var r;e.result||(e.result={state:"fail"}),e.result.state="fail",(r=e.result).errors||(r.errors=[]),e.result.errors.push(Iu(t))}s(Zd,"handleTestError");function og(e,t,r){return function(...n){if(t!=="withTest"&&e.flag(this,"_name",t),!e.flag(this,"soft"))return r.apply(this,n);let a=e.flag(this,"vitest-test");if(!a)throw new Error("expect.soft() can only be used inside a test");try{let o=r.apply(this,n);return o&&typeof o=="object"&&typeof o.then=="function"?o.then(pA,i=>{Zd(a,i)}):o}catch(o){Zd(a,o)}}}s(og,"wrapAssertion");var hU=s((e,t)=>{let{AssertionError:r}=e,n=gc();function a(c,p){let d=s(h=>{let f=og(t,h,p);t.addMethod(e.Assertion.prototype,h,f),t.addMethod(globalThis[Ui].matchers,h,f)},"addMethod");Array.isArray(c)?c.forEach(h=>d(h)):d(c)}s(a,"def"),["throw","throws","Throw"].forEach(c=>{t.overwriteMethod(e.Assertion.prototype,c,p=>function(...d){let h=t.flag(this,"promise"),f=t.flag(this,"object"),m=t.flag(this,"negate");if(h==="rejects")t.flag(this,"object",()=>{throw f});else if(h==="resolves"&&typeof f!="function"){if(m)return;{let y=t.flag(this,"message")||"expected promise to throw an error, but it didn't",b={showDiff:!1};throw new r(y,b,t.flag(this,"ssfi"))}}p.apply(this,d)})}),a("withTest",function(c){return t.flag(this,"vitest-test",c),this}),a("toEqual",function(c){let p=t.flag(this,"object"),d=Je(p,c,[...n,sr]);return this.assert(d,"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",c,p)}),a("toStrictEqual",function(c){let p=t.flag(this,"object"),d=Je(p,c,[...n,sr,Yd,Vl,Kd],!0);return this.assert(d,"expected #{this} to strictly equal #{exp}","expected #{this} to not strictly equal #{exp}",c,p)}),a("toBe",function(c){let p=this._obj,d=Object.is(p,c),h="";return d||(Je(p,c,[...n,sr,Yd,Vl,Kd],!0)?h="toStrictEqual":Je(p,c,[...n,sr])&&(h="toEqual")),this.assert(d,oT(h),"expected #{this} not to be #{exp} // Object.is equality",c,p)}),a("toMatchObject",function(c){let p=this._obj,d=Je(p,c,[...n,sr,Lo]),h=t.flag(this,"negate"),{subset:f,stripped:m}=sT(p,c,n);if(d&&h||!d&&!h){let y=t.getMessage(this,[d,"expected #{this} to match object #{exp}","expected #{this} to not match object #{exp}",c,f,!1]),b=m===0?y:`${y}
|
|
281
|
+
(${m} matching ${m===1?"property":"properties"} omitted from actual)`;throw new r(b,{showDiff:!0,expected:c,actual:f})}}),a("toMatch",function(c){let p=this._obj;if(typeof p!="string")throw new TypeError(`.toMatch() expects to receive a string, but got ${typeof p}`);return this.assert(typeof c=="string"?p.includes(c):p.match(c),"expected #{this} to match #{exp}","expected #{this} not to match #{exp}",c,p)}),a("toContain",function(c){let p=this._obj;if(typeof Node<"u"&&p instanceof Node){if(!(c instanceof Node))throw new TypeError(`toContain() expected a DOM node as the argument, but got ${typeof c}`);return this.assert(p.contains(c),"expected #{this} to contain element #{exp}","expected #{this} not to contain element #{exp}",c,p)}if(typeof DOMTokenList<"u"&&p instanceof DOMTokenList){$r(c,"class name",["string"]);let d=t.flag(this,"negate")?p.value.replace(c,"").trim():`${p.value} ${c}`;return this.assert(p.contains(c),`expected "${p.value}" to contain "${c}"`,`expected "${p.value}" not to contain "${c}"`,d,p.value)}return typeof p=="string"&&typeof c=="string"?this.assert(p.includes(c),"expected #{this} to contain #{exp}","expected #{this} not to contain #{exp}",c,p):(p!=null&&typeof p!="string"&&t.flag(this,"object",Array.from(p)),this.contain(c))}),a("toContainEqual",function(c){let p=t.flag(this,"object"),d=Array.from(p).findIndex(h=>Je(h,c,n));this.assert(d!==-1,"expected #{this} to deep equally contain #{exp}","expected #{this} to not deep equally contain #{exp}",c)}),a("toBeTruthy",function(){let c=t.flag(this,"object");this.assert(!!c,"expected #{this} to be truthy","expected #{this} to not be truthy",!0,c)}),a("toBeFalsy",function(){let c=t.flag(this,"object");this.assert(!c,"expected #{this} to be falsy","expected #{this} to not be falsy",!1,c)}),a("toBeGreaterThan",function(c){let p=this._obj;return $r(p,"actual",["number","bigint"]),$r(c,"expected",["number","bigint"]),this.assert(p>c,`expected ${p} to be greater than ${c}`,`expected ${p} to be not greater than ${c}`,c,p,!1)}),a("toBeGreaterThanOrEqual",function(c){let p=this._obj;return $r(p,"actual",["number","bigint"]),$r(c,"expected",["number","bigint"]),this.assert(p>=c,`expected ${p} to be greater than or equal to ${c}`,`expected ${p} to be not greater than or equal to ${c}`,c,p,!1)}),a("toBeLessThan",function(c){let p=this._obj;return $r(p,"actual",["number","bigint"]),$r(c,"expected",["number","bigint"]),this.assert(p<c,`expected ${p} to be less than ${c}`,`expected ${p} to be not less than ${c}`,c,p,!1)}),a("toBeLessThanOrEqual",function(c){let p=this._obj;return $r(p,"actual",["number","bigint"]),$r(c,"expected",["number","bigint"]),this.assert(p<=c,`expected ${p} to be less than or equal to ${c}`,`expected ${p} to be not less than or equal to ${c}`,c,p,!1)}),a("toBeNaN",function(){let c=t.flag(this,"object");this.assert(Number.isNaN(c),"expected #{this} to be NaN","expected #{this} not to be NaN",Number.NaN,c)}),a("toBeUndefined",function(){let c=t.flag(this,"object");this.assert(c===void 0,"expected #{this} to be undefined","expected #{this} not to be undefined",void 0,c)}),a("toBeNull",function(){let c=t.flag(this,"object");this.assert(c===null,"expected #{this} to be null","expected #{this} not to be null",null,c)}),a("toBeDefined",function(){let c=t.flag(this,"object");this.assert(typeof c<"u","expected #{this} to be defined","expected #{this} to be undefined",c)}),a("toBeTypeOf",function(c){let p=typeof this._obj,d=c===p;return this.assert(d,"expected #{this} to be type of #{exp}","expected #{this} not to be type of #{exp}",c,p)}),a("toBeInstanceOf",function(c){return this.instanceOf(c)}),a("toHaveLength",function(c){return this.have.length(c)}),a("toHaveProperty",function(...c){Array.isArray(c[0])&&(c[0]=c[0].map(v=>String(v).replace(/([.[\]])/g,"\\$1")).join("."));let p=this._obj,[d,h]=c,f=s(()=>Object.prototype.hasOwnProperty.call(p,d)?{value:p[d],exists:!0}:t.getPathInfo(p,d),"getValue"),{value:m,exists:y}=f(),b=y&&(c.length===1||Je(h,m,n)),g=c.length===1?"":` with value ${t.objDisplay(h)}`;return this.assert(b,`expected #{this} to have property "${d}"${g}`,`expected #{this} to not have property "${d}"${g}`,h,y?m:void 0)}),a("toBeCloseTo",function(c,p=2){let d=this._obj,h=!1,f=0,m=0;return c===Number.POSITIVE_INFINITY&&d===Number.POSITIVE_INFINITY||c===Number.NEGATIVE_INFINITY&&d===Number.NEGATIVE_INFINITY?h=!0:(f=10**-p/2,m=Math.abs(d-c),h=m<f),this.assert(h,`expected #{this} to be close to #{exp}, received difference is ${m}, but expected ${f}`,`expected #{this} to not be close to #{exp}, received difference is ${m}, but expected ${f}`,c,d,!1)});function o(c){if(!ma(c._obj))throw new TypeError(`${t.inspect(c._obj)} is not a spy or a call to a spy!`)}s(o,"assertIsMock");function i(c){return o(c),c._obj}s(i,"getSpy"),a(["toHaveBeenCalledTimes","toBeCalledTimes"],function(c){let p=i(this),d=p.getMockName(),h=p.mock.calls.length;return this.assert(h===c,`expected "${d}" to be called #{exp} times, but got ${h} times`,`expected "${d}" to not be called #{exp} times`,c,h,!1)}),a("toHaveBeenCalledOnce",function(){let c=i(this),p=c.getMockName(),d=c.mock.calls.length;return this.assert(d===1,`expected "${p}" to be called once, but got ${d} times`,`expected "${p}" to not be called once`,1,d,!1)}),a(["toHaveBeenCalled","toBeCalled"],function(){let c=i(this),p=c.getMockName(),d=c.mock.calls.length,h=d>0,f=t.flag(this,"negate"),m=t.getMessage(this,[h,`expected "${p}" to be called at least once`,`expected "${p}" to not be called at all, but actually been called ${d} times`,!0,h]);if(h&&f&&(m=Xs(c,m)),h&&f||!h&&!f)throw new r(m)});function l(c,p){return c.length===p.length&&c.every((d,h)=>Je(d,p[h],[...n,sr]))}s(l,"equalsArgumentArray"),a(["toHaveBeenCalledWith","toBeCalledWith"],function(...c){let p=i(this),d=p.getMockName(),h=p.mock.calls.some(y=>l(y,c)),f=t.flag(this,"negate"),m=t.getMessage(this,[h,`expected "${d}" to be called with arguments: #{exp}`,`expected "${d}" to not be called with arguments: #{exp}`,c]);if(h&&f||!h&&!f)throw new r(Xs(p,m,c))}),a("toHaveBeenCalledExactlyOnceWith",function(...c){let p=i(this),d=p.getMockName(),h=p.mock.calls.length,f=p.mock.calls.some(b=>l(b,c))&&h===1,m=t.flag(this,"negate"),y=t.getMessage(this,[f,`expected "${d}" to be called once with arguments: #{exp}`,`expected "${d}" to not be called once with arguments: #{exp}`,c]);if(f&&m||!f&&!m)throw new r(Xs(p,y,c))}),a(["toHaveBeenNthCalledWith","nthCalledWith"],function(c,...p){let d=i(this),h=d.getMockName(),f=d.mock.calls[c-1],m=d.mock.calls.length,y=c<=m;this.assert(f&&l(f,p),`expected ${io(c)} "${h}" call to have been called with #{exp}${y?"":`, but called only ${m} times`}`,`expected ${io(c)} "${h}" call to not have been called with #{exp}`,p,f,y)}),a(["toHaveBeenLastCalledWith","lastCalledWith"],function(...c){let p=i(this),d=p.getMockName(),h=p.mock.calls[p.mock.calls.length-1];this.assert(h&&l(h,c),`expected last "${d}" call to have been called with #{exp}`,`expected last "${d}" call to not have been called with #{exp}`,c,h)});function u(c,p,d){let h=c.mock.invocationCallOrder,f=p.mock.invocationCallOrder;return h.length===0?!d:f.length===0?!1:h[0]<f[0]}s(u,"isSpyCalledBeforeAnotherSpy"),a(["toHaveBeenCalledBefore"],function(c,p=!0){let d=i(this);if(!ma(c))throw new TypeError(`${t.inspect(c)} is not a spy or a call to a spy`);this.assert(u(d,c,p),`expected "${d.getMockName()}" to have been called before "${c.getMockName()}"`,`expected "${d.getMockName()}" to not have been called before "${c.getMockName()}"`,c,d)}),a(["toHaveBeenCalledAfter"],function(c,p=!0){let d=i(this);if(!ma(c))throw new TypeError(`${t.inspect(c)} is not a spy or a call to a spy`);this.assert(u(c,d,p),`expected "${d.getMockName()}" to have been called after "${c.getMockName()}"`,`expected "${d.getMockName()}" to not have been called after "${c.getMockName()}"`,c,d)}),a(["toThrow","toThrowError"],function(c){if(typeof c=="string"||typeof c>"u"||c instanceof RegExp)return this.throws(c===""?/^$/:c);let p=this._obj,d=t.flag(this,"promise"),h=t.flag(this,"negate"),f=null;if(d==="rejects")f=p;else if(d==="resolves"&&typeof p!="function"){if(h)return;{let m=t.flag(this,"message")||"expected promise to throw an error, but it didn't",y={showDiff:!1};throw new r(m,y,t.flag(this,"ssfi"))}}else{let m=!1;try{p()}catch(y){m=!0,f=y}if(!m&&!h){let y=t.flag(this,"message")||"expected function to throw an error, but it didn't",b={showDiff:!1};throw new r(y,b,t.flag(this,"ssfi"))}}if(typeof c=="function"){let m=c.name||c.prototype.constructor.name;return this.assert(f&&f instanceof c,`expected error to be instance of ${m}`,`expected error not to be instance of ${m}`,c,f)}if(c instanceof Error){let m=Je(f,c,[...n,sr]);return this.assert(m,"expected a thrown error to be #{exp}","expected a thrown error not to be #{exp}",c,f)}if(typeof c=="object"&&"asymmetricMatch"in c&&typeof c.asymmetricMatch=="function"){let m=c;return this.assert(f&&m.asymmetricMatch(f),"expected error to match asymmetric matcher","expected error not to match asymmetric matcher",m,f)}throw new Error(`"toThrow" expects string, RegExp, function, Error instance or asymmetric matcher, got "${typeof c}"`)}),[{name:"toHaveResolved",condition:s(c=>c.mock.settledResults.length>0&&c.mock.settledResults.some(({type:p})=>p==="fulfilled"),"condition"),action:"resolved"},{name:["toHaveReturned","toReturn"],condition:s(c=>c.mock.calls.length>0&&c.mock.results.some(({type:p})=>p!=="throw"),"condition"),action:"called"}].forEach(({name:c,condition:p,action:d})=>{a(c,function(){let h=i(this),f=h.getMockName(),m=p(h);this.assert(m,`expected "${f}" to be successfully ${d} at least once`,`expected "${f}" to not be successfully ${d}`,m,!m,!1)})}),[{name:"toHaveResolvedTimes",condition:s((c,p)=>c.mock.settledResults.reduce((d,{type:h})=>h==="fulfilled"?++d:d,0)===p,"condition"),action:"resolved"},{name:["toHaveReturnedTimes","toReturnTimes"],condition:s((c,p)=>c.mock.results.reduce((d,{type:h})=>h==="throw"?d:++d,0)===p,"condition"),action:"called"}].forEach(({name:c,condition:p,action:d})=>{a(c,function(h){let f=i(this),m=f.getMockName(),y=p(f,h);this.assert(y,`expected "${m}" to be successfully ${d} ${h} times`,`expected "${m}" to not be successfully ${d} ${h} times`,`expected resolved times: ${h}`,`received resolved times: ${y}`,!1)})}),[{name:"toHaveResolvedWith",condition:s((c,p)=>c.mock.settledResults.some(({type:d,value:h})=>d==="fulfilled"&&Je(p,h)),"condition"),action:"resolve"},{name:["toHaveReturnedWith","toReturnWith"],condition:s((c,p)=>c.mock.results.some(({type:d,value:h})=>d==="return"&&Je(p,h)),"condition"),action:"return"}].forEach(({name:c,condition:p,action:d})=>{a(c,function(h){let f=i(this),m=p(f,h),y=t.flag(this,"negate");if(m&&y||!m&&!y){let b=f.getMockName(),g=t.getMessage(this,[m,`expected "${b}" to ${d} with: #{exp} at least once`,`expected "${b}" to not ${d} with: #{exp}`,h]),v=d==="return"?f.mock.results:f.mock.settledResults;throw new r(yT(f,v,g,h))}})}),[{name:"toHaveLastResolvedWith",condition:s((c,p)=>{let d=c.mock.settledResults[c.mock.settledResults.length-1];return d&&d.type==="fulfilled"&&Je(d.value,p)},"condition"),action:"resolve"},{name:["toHaveLastReturnedWith","lastReturnedWith"],condition:s((c,p)=>{let d=c.mock.results[c.mock.results.length-1];return d&&d.type==="return"&&Je(d.value,p)},"condition"),action:"return"}].forEach(({name:c,condition:p,action:d})=>{a(c,function(h){let f=i(this),m=d==="return"?f.mock.results:f.mock.settledResults,y=m[m.length-1],b=f.getMockName();this.assert(p(f,h),`expected last "${b}" call to ${d} #{exp}`,`expected last "${b}" call to not ${d} #{exp}`,h,y?.value)})}),[{name:"toHaveNthResolvedWith",condition:s((c,p,d)=>{let h=c.mock.settledResults[p-1];return h&&h.type==="fulfilled"&&Je(h.value,d)},"condition"),action:"resolve"},{name:["toHaveNthReturnedWith","nthReturnedWith"],condition:s((c,p,d)=>{let h=c.mock.results[p-1];return h&&h.type==="return"&&Je(h.value,d)},"condition"),action:"return"}].forEach(({name:c,condition:p,action:d})=>{a(c,function(h,f){let m=i(this),y=m.getMockName(),b=(d==="return"?m.mock.results:m.mock.settledResults)[h-1],g=`${io(h)} call`;this.assert(p(m,h,f),`expected ${g} "${y}" call to ${d} #{exp}`,`expected ${g} "${y}" call to not ${d} #{exp}`,f,b?.value)})}),a("withContext",function(c){for(let p in c)t.flag(this,p,c[p]);return this}),t.addProperty(e.Assertion.prototype,"resolves",s(function(){let c=new Error("resolves");t.flag(this,"promise","resolves"),t.flag(this,"error",c);let p=t.flag(this,"vitest-test"),d=t.flag(this,"object");if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .resolves");if(typeof d?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .resolves, not '${typeof d}'.`);let h=new Proxy(this,{get:s((f,m,y)=>{let b=Reflect.get(f,m,y);return typeof b!="function"?b instanceof e.Assertion?h:b:(...g)=>{t.flag(this,"_name",m);let v=d.then(D=>(t.flag(this,"object",D),b.call(this,...g)),D=>{let S=new r(`promise rejected "${t.inspect(D)}" instead of resolving`,{showDiff:!1});throw S.cause=D,S.stack=c.stack.replace(c.message,S.message),S});return Qd(p,v,Xd(t,this,!!g.length),c)}},"get")});return h},"__VITEST_RESOLVES__")),t.addProperty(e.Assertion.prototype,"rejects",s(function(){let c=new Error("rejects");t.flag(this,"promise","rejects"),t.flag(this,"error",c);let p=t.flag(this,"vitest-test"),d=t.flag(this,"object"),h=typeof d=="function"?d():d;if(t.flag(this,"poll"))throw new SyntaxError("expect.poll() is not supported in combination with .rejects");if(typeof h?.then!="function")throw new TypeError(`You must provide a Promise to expect() when using .rejects, not '${typeof h}'.`);let f=new Proxy(this,{get:s((m,y,b)=>{let g=Reflect.get(m,y,b);return typeof g!="function"?g instanceof e.Assertion?f:g:(...v)=>{t.flag(this,"_name",y);let D=h.then(S=>{let P=new r(`promise resolved "${t.inspect(S)}" instead of rejecting`,{showDiff:!0,expected:new Error("rejected promise"),actual:S});throw P.stack=c.stack.replace(c.message,P.message),P},S=>(t.flag(this,"object",S),g.call(this,...v)));return Qd(p,D,Xd(t,this,!!v.length),c)}},"get")});return f},"__VITEST_REJECTS__"))},"JestChaiExpect");function io(e){let t=e%10,r=e%100;return t===1&&r!==11?`${e}st`:t===2&&r!==12?`${e}nd`:t===3&&r!==13?`${e}rd`:`${e}th`}s(io,"ordinalOf");function Xs(e,t,r){return e.mock.calls.length&&(t+=bt.gray(`
|
|
282
|
+
|
|
283
|
+
Received:
|
|
284
|
+
|
|
285
|
+
${e.mock.calls.map((n,a)=>{let o=bt.bold(` ${io(a+1)} ${e.getMockName()} call:
|
|
286
|
+
|
|
287
|
+
`);return r?o+=Ia(r,n,{omitAnnotationLines:!0}):o+=Kt(n).split(`
|
|
288
|
+
`).map(i=>` ${i}`).join(`
|
|
289
|
+
`),o+=`
|
|
290
|
+
`,o}).join(`
|
|
291
|
+
`)}`)),t+=bt.gray(`
|
|
292
|
+
|
|
293
|
+
Number of calls: ${bt.bold(e.mock.calls.length)}
|
|
294
|
+
`),t}s(Xs,"formatCalls");function yT(e,t,r,n){return t.length&&(r+=bt.gray(`
|
|
295
|
+
|
|
296
|
+
Received:
|
|
297
|
+
|
|
298
|
+
${t.map((a,o)=>{let i=bt.bold(` ${io(o+1)} ${e.getMockName()} call return:
|
|
299
|
+
|
|
300
|
+
`);return n?i+=Ia(n,a.value,{omitAnnotationLines:!0}):i+=Kt(a).split(`
|
|
301
|
+
`).map(l=>` ${l}`).join(`
|
|
302
|
+
`),i+=`
|
|
303
|
+
`,i}).join(`
|
|
304
|
+
`)}`)),r+=bt.gray(`
|
|
305
|
+
|
|
306
|
+
Number of calls: ${bt.bold(e.mock.calls.length)}
|
|
307
|
+
`),r}s(yT,"formatReturns");function gT(e,t){let r=e._obj,n=Jr.flag(e,"negate"),a=Jr.flag(e,"promise")||"",o={...ng(),diff:Ia,stringify:Kt,iterableEquality:sr,subsetEquality:Lo};return{state:{...Vi(t),customTesters:gc(),isNot:n,utils:o,promise:a,equals:Je,suppressedErrors:[],soft:Jr.flag(e,"soft"),poll:Jr.flag(e,"poll")},isNot:n,obj:r}}s(gT,"getMatcherState");var bT=class extends Error{constructor(t,r,n){super(t),this.actual=r,this.expected=n}};s(bT,"JestExtendError");var o0=bT;function vT(e,t,r){return(n,a)=>{Object.entries(r).forEach(([o,i])=>{function l(...h){let{state:f,isNot:m,obj:y}=gT(this,t),b=i.call(f,y,...h);if(b&&typeof b=="object"&&typeof b.then=="function")return b.then(({pass:P,message:w,actual:E,expected:C})=>{if(P&&m||!P&&!m)throw new o0(w(),E,C)});let{pass:g,message:v,actual:D,expected:S}=b;if(g&&m||!g&&!m)throw new o0(v(),D,S)}s(l,"expectWrapper");let u=og(a,o,l);a.addMethod(globalThis[Ui].matchers,o,u),a.addMethod(e.Assertion.prototype,o,u);let c=class extends wn{constructor(f=!1,...m){super(m,f)}asymmetricMatch(f){let{pass:m}=i.call(this.getMatcherContext(t),f,...this.sample);return this.inverse?!m:m}toString(){return`${this.inverse?"not.":""}${o}`}getExpectedType(){return"any"}toAsymmetricMatcher(){return`${this.toString()}<${this.sample.map(f=>Kt(f)).join(", ")}>`}};s(c,"CustomMatcher");let p=c,d=s((...h)=>new p(!1,...h),"customMatcher");Object.defineProperty(t,o,{configurable:!0,enumerable:!0,value:d,writable:!0}),Object.defineProperty(t.not,o,{configurable:!0,enumerable:!0,value:s((...h)=>new p(!0,...h),"value"),writable:!0}),Object.defineProperty(globalThis[Hd],o,{configurable:!0,enumerable:!0,value:d,writable:!0})})}}s(vT,"JestExtendPlugin");var mU=s((e,t)=>{t.addMethod(e.expect,"extend",(r,n)=>{fa(vT(e,r,n))})},"JestExtend");function ET(){fa(mU),fa(hU),fa(fU);let e=s((n,a)=>{let{assertionCalls:o}=Vi(e);return Ks({assertionCalls:o+1,soft:!1},e),jn(n,a)},"expect");Object.assign(e,jn),e.getState=()=>Vi(e),e.setState=n=>Ks(n,e),e.extend=n=>jn.extend(e,n),e.soft=(...n)=>{let a=e(...n);return e.setState({soft:!0}),a},e.extend(oU),e.unreachable=n=>{H.fail(`expected${n?` "${n}" `:" "}not to be reached`)};function t(n){let a=s(()=>new Error(`expected number of assertions to be ${n}, but got ${e.getState().assertionCalls}`),"errorGen");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(a(),t),e.setState({expectedAssertionsNumber:n,expectedAssertionsNumberErrorGen:a})}s(t,"assertions");function r(){let n=new Error("expected any number of assertion, but got none");"captureStackTrace"in Error&&typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(n,r),e.setState({isExpectingAssertions:!0,isExpectingAssertionsError:n})}return s(r,"hasAssertions"),Ks({assertionCalls:0,isExpectingAssertions:!1,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null},e),Jr.addMethod(e,"assertions",t),Jr.addMethod(e,"hasAssertions",r),e.extend(QA),e}s(ET,"createExpect");var CT=ET();Object.defineProperty(globalThis,eg,{value:CT,writable:!0,configurable:!0});function wT(e,t,r){Object.defineProperty(e,t,r)}s(wT,"f");var Qs=Symbol.for("tinyspy:spy"),yU=s(e=>{e.called=!1,e.callCount=0,e.calls=[],e.results=[],e.resolves=[],e.next=[]},"P"),gU=s(e=>(wT(e,Qs,{value:{reset:s(()=>yU(e[Qs]),"reset")}}),e[Qs]),"K"),bU=s(e=>e[Qs]||gU(e),"T"),ef=new Set;function ig(e){return ef.add(e),()=>{ef.delete(e)}}s(ig,"onMockCall");var vU=s((...e)=>{let t=L_(...e);return lg(t)},"spyOn");function sg(e){let t=e?Vd(e):Vd();return lg(t)}s(sg,"fn");function lg(e){let t=tf(e),r=t.mockImplementation.bind(null);return t.mockImplementation=n=>tf(r(n)),t}s(lg,"reactiveMock");function tf(e){let t=bU(e),r=t.impl;return t.willCall(function(...n){return ef.forEach(a=>a(e,n)),r?.apply(this,n)}),e}s(tf,"listenWhenCalled");function ug(){bs.forEach(e=>e.mockClear())}s(ug,"clearAllMocks");function cg(){bs.forEach(e=>e.mockReset())}s(cg,"resetAllMocks");function pg(){bs.forEach(e=>e.mockRestore())}s(pg,"restoreAllMocks");function xT(e,t={}){return e}s(xT,"mocked");var AT={};Jt(AT,{buildQueries:()=>Zr,configure:()=>wP,createEvent:()=>Ci,findAllByAltText:()=>yD,findAllByDisplayValue:()=>cD,findAllByLabelText:()=>VP,findAllByPlaceholderText:()=>QP,findAllByRole:()=>OD,findAllByTestId:()=>BD,findAllByText:()=>aD,findAllByTitle:()=>wD,findByAltText:()=>gD,findByDisplayValue:()=>pD,findByLabelText:()=>HP,findByPlaceholderText:()=>ZP,findByRole:()=>RD,findByTestId:()=>jD,findByText:()=>oD,findByTitle:()=>xD,fireEvent:()=>xo,getAllByAltText:()=>hD,getAllByDisplayValue:()=>lD,getAllByLabelText:()=>JP,getAllByPlaceholderText:()=>KP,getAllByRole:()=>PD,getAllByTestId:()=>ND,getAllByText:()=>rD,getAllByTitle:()=>ED,getByAltText:()=>mD,getByDisplayValue:()=>uD,getByLabelText:()=>zP,getByPlaceholderText:()=>XP,getByRole:()=>DD,getByTestId:()=>kD,getByText:()=>nD,getByTitle:()=>CD,getConfig:()=>Ue,getDefaultNormalizer:()=>wc,getElementError:()=>Cs,getMultipleElementsFoundError:()=>ws,getNodeText:()=>$o,getQueriesForElement:()=>zl,getRoles:()=>Rg,getSuggestedQuery:()=>Ji,isInaccessible:()=>Es,logDOM:()=>uf,logRoles:()=>UU,makeFindQuery:()=>wa,makeGetAllQuery:()=>Sc,makeSingleQuery:()=>Ca,prettyDOM:()=>wo,prettyFormat:()=>dg,queries:()=>Jl,queryAllByAltText:()=>dD,queryAllByAttribute:()=>Xn,queryAllByDisplayValue:()=>iD,queryAllByLabelText:()=>GP,queryAllByPlaceholderText:()=>WP,queryAllByRole:()=>_D,queryAllByTestId:()=>FD,queryAllByText:()=>eD,queryAllByTitle:()=>bD,queryByAltText:()=>fD,queryByAttribute:()=>Ig,queryByDisplayValue:()=>sD,queryByLabelText:()=>$P,queryByPlaceholderText:()=>YP,queryByRole:()=>TD,queryByTestId:()=>ID,queryByText:()=>tD,queryByTitle:()=>vD,queryHelpers:()=>VU,screen:()=>u7,waitFor:()=>Ac,waitForElementToBeRemoved:()=>MD,within:()=>zl,wrapAllByQueryWithSuggestion:()=>Xt,wrapSingleQueryWithSuggestion:()=>Mn});var dg=Et(xM()),EU=Object.prototype.toString;function rf(e){return typeof e=="function"||EU.call(e)==="[object Function]"}s(rf,"isCallable");function ST(e){var t=Number(e);return isNaN(t)?0:t===0||!isFinite(t)?t:(t>0?1:-1)*Math.floor(Math.abs(t))}s(ST,"toInteger");var CU=Math.pow(2,53)-1;function _T(e){var t=ST(e);return Math.min(Math.max(t,0),CU)}s(_T,"toLength");function gr(e,t){var r=Array,n=Object(e);if(e==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(typeof t<"u"&&!rf(t))throw new TypeError("Array.from: when provided, the second argument must be a function");for(var a=_T(n.length),o=rf(r)?Object(new r(a)):new Array(a),i=0,l;i<a;)l=n[i],t?o[i]=t(l,i):o[i]=l,i+=1;return o.length=a,o}s(gr,"arrayFrom");function Eo(e){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}s(Eo,"_typeof");function TT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}s(TT,"_classCallCheck");function nf(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fg(n.key),n)}}s(nf,"_defineProperties");function PT(e,t,r){return t&&nf(e.prototype,t),r&&nf(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}s(PT,"_createClass");function DT(e,t,r){return t=fg(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(DT,"_defineProperty");function fg(e){var t=OT(e,"string");return Eo(t)==="symbol"?t:String(t)}s(fg,"_toPropertyKey");function OT(e,t){if(Eo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Eo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}s(OT,"_toPrimitive");var wU=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];TT(this,e),DT(this,"items",void 0),this.items=t}return s(e,"SetLike"),PT(e,[{key:"add",value:s(function(t){return this.has(t)===!1&&this.items.push(t),this},"add")},{key:"clear",value:s(function(){this.items=[]},"clear")},{key:"delete",value:s(function(t){var r=this.items.length;return this.items=this.items.filter(function(n){return n!==t}),r!==this.items.length},"_delete")},{key:"forEach",value:s(function(t){var r=this;this.items.forEach(function(n){t(n,n,r)})},"forEach")},{key:"has",value:s(function(t){return this.items.indexOf(t)!==-1},"has")},{key:"size",get:s(function(){return this.items.length},"get")}]),e})(),xU=typeof Set>"u"?Set:wU;function It(e){var t;return(t=e.localName)!==null&&t!==void 0?t:e.tagName.toLowerCase()}s(It,"getLocalName");var AU={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"},SU={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 RT(e,t){return["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-dropeffect","aria-flowto","aria-grabbed","aria-hidden","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"].some(function(r){var n;return e.hasAttribute(r)&&!((n=SU[t])!==null&&n!==void 0&&n.has(r))})}s(RT,"hasGlobalAriaAttributes");function hg(e,t){return RT(e,t)}s(hg,"ignorePresentationalRole");function FT(e){var t=NT(e);if(t===null||t==="presentation"){var r=IT(e);if(t!=="presentation"||hg(e,r||""))return r}return t}s(FT,"getRole");function IT(e){var t=AU[It(e)];if(t!==void 0)return t;switch(It(e)){case"a":case"area":case"link":if(e.hasAttribute("href"))return"link";break;case"img":return e.getAttribute("alt")===""&&!hg(e,"img")?"presentation":"img";case"input":{var r=e,n=r.type;switch(n){case"button":case"image":case"reset":case"submit":return"button";case"checkbox":case"radio":return n;case"range":return"slider";case"email":case"tel":case"text":case"url":return e.hasAttribute("list")?"combobox":"textbox";case"search":return e.hasAttribute("list")?"combobox":"searchbox";case"number":return"spinbutton";default:return null}}case"select":return e.hasAttribute("multiple")||e.size>1?"listbox":"combobox"}return null}s(IT,"getImplicitRole");function NT(e){var t=e.getAttribute("role");if(t!==null){var r=t.trim().split(" ")[0];if(r.length>0)return r}return null}s(NT,"getExplicitRole");function ot(e){return e!==null&&e.nodeType===e.ELEMENT_NODE}s(ot,"isElement");function mg(e){return ot(e)&&It(e)==="caption"}s(mg,"isHTMLTableCaptionElement");function Ei(e){return ot(e)&&It(e)==="input"}s(Ei,"isHTMLInputElement");function kT(e){return ot(e)&&It(e)==="optgroup"}s(kT,"isHTMLOptGroupElement");function BT(e){return ot(e)&&It(e)==="select"}s(BT,"isHTMLSelectElement");function jT(e){return ot(e)&&It(e)==="table"}s(jT,"isHTMLTableElement");function qT(e){return ot(e)&&It(e)==="textarea"}s(qT,"isHTMLTextAreaElement");function MT(e){var t=e.ownerDocument===null?e:e.ownerDocument,r=t.defaultView;if(r===null)throw new TypeError("no window available");return r}s(MT,"safeWindow");function LT(e){return ot(e)&&It(e)==="fieldset"}s(LT,"isHTMLFieldSetElement");function $T(e){return ot(e)&&It(e)==="legend"}s($T,"isHTMLLegendElement");function UT(e){return ot(e)&&It(e)==="slot"}s(UT,"isHTMLSlotElement");function VT(e){return ot(e)&&e.ownerSVGElement!==void 0}s(VT,"isSVGElement");function HT(e){return ot(e)&&It(e)==="svg"}s(HT,"isSVGSVGElement");function JT(e){return VT(e)&&It(e)==="title"}s(JT,"isSVGTitleElement");function Hi(e,t){if(ot(e)&&e.hasAttribute(t)){var r=e.getAttribute(t).split(" "),n=e.getRootNode?e.getRootNode():e.ownerDocument;return r.map(function(a){return n.getElementById(a)}).filter(function(a){return a!==null})}return[]}s(Hi,"queryIdRefs");function Gr(e,t){return ot(e)?t.indexOf(FT(e))!==-1:!1}s(Gr,"hasAnyConcreteRoles");function zT(e){return e.trim().replace(/\s\s+/g," ")}s(zT,"asFlatString");function GT(e,t){if(!ot(e))return!1;if(e.hasAttribute("hidden")||e.getAttribute("aria-hidden")==="true")return!0;var r=t(e);return r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"}s(GT,"isHidden");function WT(e){return Gr(e,["button","combobox","listbox","textbox"])||yg(e,"range")}s(WT,"isControl");function yg(e,t){if(!ot(e))return!1;switch(t){case"range":return Gr(e,["meter","progressbar","scrollbar","slider","spinbutton"]);default:throw new TypeError("No knowledge about abstract role '".concat(t,"'. This is likely a bug :("))}}s(yg,"hasAbstractRole");function af(e,t){var r=gr(e.querySelectorAll(t));return Hi(e,"aria-owns").forEach(function(n){r.push.apply(r,gr(n.querySelectorAll(t)))}),r}s(af,"querySelectorAllSubtree");function YT(e){return BT(e)?e.selectedOptions||af(e,"[selected]"):af(e,'[aria-selected="true"]')}s(YT,"querySelectedOptions");function KT(e){return Gr(e,["none","presentation"])}s(KT,"isMarkedPresentational");function XT(e){return mg(e)}s(XT,"isNativeHostLanguageTextAlternativeElement");function QT(e){return Gr(e,["button","cell","checkbox","columnheader","gridcell","heading","label","legend","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"])}s(QT,"allowsNameFromContent");function ZT(e){return!1}s(ZT,"isDescendantOfNativeHostLanguageTextAlternativeElement");function eP(e){return Ei(e)||qT(e)?e.value:e.textContent||""}s(eP,"getValueOfTextbox");function of(e){var t=e.getPropertyValue("content");return/^["'].*["']$/.test(t)?t.slice(1,-1):""}s(of,"getTextualContent");function gg(e){var t=It(e);return t==="button"||t==="input"&&e.getAttribute("type")!=="hidden"||t==="meter"||t==="output"||t==="progress"||t==="select"||t==="textarea"}s(gg,"isLabelableElement");function bg(e){if(gg(e))return e;var t=null;return e.childNodes.forEach(function(r){if(t===null&&ot(r)){var n=bg(r);n!==null&&(t=n)}}),t}s(bg,"findLabelableElement");function tP(e){if(e.control!==void 0)return e.control;var t=e.getAttribute("for");return t!==null?e.ownerDocument.getElementById(t):bg(e)}s(tP,"getControlOfLabel");function rP(e){var t=e.labels;if(t===null)return t;if(t!==void 0)return gr(t);if(!gg(e))return null;var r=e.ownerDocument;return gr(r.querySelectorAll("label")).filter(function(n){return tP(n)===e})}s(rP,"getLabels");function nP(e){var t=e.assignedNodes();return t.length===0?gr(e.childNodes):t}s(nP,"getSlotContents");function vg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=new xU,n=MT(e),a=t.compute,o=a===void 0?"name":a,i=t.computedStyleSupportsPseudoElements,l=i===void 0?t.getComputedStyle!==void 0:i,u=t.getComputedStyle,c=u===void 0?n.getComputedStyle.bind(n):u,p=t.hidden,d=p===void 0?!1:p;function h(g,v){var D="";if(ot(g)&&l){var S=c(g,"::before"),P=of(S);D="".concat(P," ").concat(D)}var w=UT(g)?nP(g):gr(g.childNodes).concat(Hi(g,"aria-owns"));if(w.forEach(function(_){var k=b(_,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0}),B=ot(_)?c(_).getPropertyValue("display"):"inline",W=B!=="inline"?" ":"";D+="".concat(W).concat(k).concat(W)}),ot(g)&&l){var E=c(g,"::after"),C=of(E);D="".concat(D," ").concat(C)}return D.trim()}s(h,"computeMiscTextAlternative");function f(g,v){var D=g.getAttributeNode(v);return D!==null&&!r.has(D)&&D.value.trim()!==""?(r.add(D),D.value):null}s(f,"useAttribute");function m(g){return ot(g)?f(g,"title"):null}s(m,"computeTooltipAttributeValue");function y(g){if(!ot(g))return null;if(LT(g)){r.add(g);for(var v=gr(g.childNodes),D=0;D<v.length;D+=1){var S=v[D];if($T(S))return b(S,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(jT(g)){r.add(g);for(var P=gr(g.childNodes),w=0;w<P.length;w+=1){var E=P[w];if(mg(E))return b(E,{isEmbeddedInLabel:!1,isReferenced:!1,recursion:!1})}}else if(HT(g)){r.add(g);for(var C=gr(g.childNodes),_=0;_<C.length;_+=1){var k=C[_];if(JT(k))return k.textContent}return null}else if(It(g)==="img"||It(g)==="area"){var B=f(g,"alt");if(B!==null)return B}else if(kT(g)){var W=f(g,"label");if(W!==null)return W}if(Ei(g)&&(g.type==="button"||g.type==="submit"||g.type==="reset")){var z=f(g,"value");if(z!==null)return z;if(g.type==="submit")return"Submit";if(g.type==="reset")return"Reset"}var R=rP(g);if(R!==null&&R.length!==0)return r.add(g),gr(R).map(function(Q){return b(Q,{isEmbeddedInLabel:!0,isReferenced:!1,recursion:!0})}).filter(function(Q){return Q.length>0}).join(" ");if(Ei(g)&&g.type==="image"){var U=f(g,"alt");if(U!==null)return U;var j=f(g,"title");return j!==null?j:"Submit Query"}if(Gr(g,["button"])){var Y=h(g,{isEmbeddedInLabel:!1});if(Y!=="")return Y}return null}s(y,"computeElementTextAlternative");function b(g,v){if(r.has(g))return"";if(!d&>(g,c)&&!v.isReferenced)return r.add(g),"";var D=ot(g)?g.getAttributeNode("aria-labelledby"):null,S=D!==null&&!r.has(D)?Hi(g,"aria-labelledby"):[];if(o==="name"&&!v.isReferenced&&S.length>0)return r.add(D),S.map(function(B){return b(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!0,recursion:!1})}).join(" ");var P=v.recursion&&WT(g)&&o==="name";if(!P){var w=(ot(g)&&g.getAttribute("aria-label")||"").trim();if(w!==""&&o==="name")return r.add(g),w;if(!KT(g)){var E=y(g);if(E!==null)return r.add(g),E}}if(Gr(g,["menu"]))return r.add(g),"";if(P||v.isEmbeddedInLabel||v.isReferenced){if(Gr(g,["combobox","listbox"])){r.add(g);var C=YT(g);return C.length===0?Ei(g)?g.value:"":gr(C).map(function(B){return b(B,{isEmbeddedInLabel:v.isEmbeddedInLabel,isReferenced:!1,recursion:!0})}).join(" ")}if(yg(g,"range"))return r.add(g),g.hasAttribute("aria-valuetext")?g.getAttribute("aria-valuetext"):g.hasAttribute("aria-valuenow")?g.getAttribute("aria-valuenow"):g.getAttribute("value")||"";if(Gr(g,["textbox"]))return r.add(g),eP(g)}if(QT(g)||ot(g)&&v.isReferenced||XT(g)||ZT()){var _=h(g,{isEmbeddedInLabel:v.isEmbeddedInLabel});if(_!=="")return r.add(g),_}if(g.nodeType===g.TEXT_NODE)return r.add(g),g.textContent||"";if(v.recursion)return r.add(g),h(g,{isEmbeddedInLabel:v.isEmbeddedInLabel});var k=m(g);return k!==null?(r.add(g),k):(r.add(g),"")}return s(b,"computeTextAlternative"),zT(b(e,{isEmbeddedInLabel:!1,isReferenced:o==="description",recursion:!1}))}s(vg,"computeTextAlternative");function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}s(Co,"_typeof");function sf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}s(sf,"ownKeys");function lf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sf(Object(r),!0).forEach(function(n){aP(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}s(lf,"_objectSpread");function aP(e,t,r){return t=oP(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(aP,"_defineProperty");function oP(e){var t=iP(e,"string");return Co(t)==="symbol"?t:String(t)}s(oP,"_toPropertyKey");function iP(e,t){if(Co(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Co(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}s(iP,"_toPrimitive");function Eg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Hi(e,"aria-describedby").map(function(a){return vg(a,lf(lf({},t),{},{compute:"description"}))}).join(" ");if(r===""){var n=e.getAttribute("title");r=n===null?"":n}return r}s(Eg,"computeAccessibleDescription");function sP(e){return Gr(e,["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"])}s(sP,"prohibitsNaming");function Ec(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return sP(e)?"":vg(e,t)}s(Ec,"computeAccessibleName");var mr=Et(u5()),_U=Et(c5());function Cg(e){return e.replace(/</g,"<").replace(/>/g,">")}s(Cg,"escapeHTML");var TU=s((e,t,r,n,a,o,i)=>{let l=n+r.indent,u=r.colors;return e.map(c=>{let p=t[c],d=i(p,r,l,a,o);return typeof p!="string"&&(d.indexOf(`
|
|
308
|
+
`)!==-1&&(d=r.spacingOuter+l+d+r.spacingOuter+n),d="{"+d+"}"),r.spacingInner+n+u.prop.open+c+u.prop.close+"="+u.value.open+d+u.value.close}).join("")},"printProps"),PU=3,DU=s((e,t,r,n,a,o)=>e.map(i=>{let l=typeof i=="string"?lP(i,t):o(i,t,r,n,a);return l===""&&typeof i=="object"&&i!==null&&i.nodeType!==PU?"":t.spacingOuter+r+l}).join(""),"printChildren"),lP=s((e,t)=>{let r=t.colors.content;return r.open+Cg(e)+r.close},"printText"),OU=s((e,t)=>{let r=t.colors.comment;return r.open+"<!--"+Cg(e)+"-->"+r.close},"printComment"),RU=s((e,t,r,n,a)=>{let o=n.colors.tag;return o.open+"<"+e+(t&&o.close+t+n.spacingOuter+a+o.open)+(r?">"+o.close+r+n.spacingOuter+a+o.open+"</"+e:(t&&!n.min?"":" ")+"/")+">"+o.close},"printElement"),FU=s((e,t)=>{let r=t.colors.tag;return r.open+"<"+e+r.close+" …"+r.open+" />"+r.close},"printElementAsLeaf"),IU=1,uP=3,cP=8,pP=11,NU=/^((HTML|SVG)\w*)?Element$/,dP=s(e=>{let{tagName:t}=e;return!!(typeof t=="string"&&t.includes("-")||typeof e.hasAttribute=="function"&&e.hasAttribute("is"))},"isCustomElement"),kU=s(e=>{let t=e.constructor.name,{nodeType:r}=e;return r===IU&&(NU.test(t)||dP(e))||r===uP&&t==="Text"||r===cP&&t==="Comment"||r===pP&&t==="DocumentFragment"},"testNode");function fP(e){return e.nodeType===uP}s(fP,"nodeIsText");function hP(e){return e.nodeType===cP}s(hP,"nodeIsComment");function Zs(e){return e.nodeType===pP}s(Zs,"nodeIsFragment");function mP(e){return{test:s(t=>{var r;return((t==null||(r=t.constructor)==null?void 0:r.name)||dP(t))&&kU(t)},"test"),serialize:s((t,r,n,a,o,i)=>{if(fP(t))return lP(t.data,r);if(hP(t))return OU(t.data,r);let l=Zs(t)?"DocumentFragment":t.tagName.toLowerCase();return++a>r.maxDepth?FU(l,r):RU(l,TU(Zs(t)?[]:Array.from(t.attributes).map(u=>u.name).sort(),Zs(t)?{}:Array.from(t.attributes).reduce((u,c)=>(u[c.name]=c.value,u),{}),r,n+r.indent,a,o,i),DU(Array.prototype.slice.call(t.childNodes||t.children).filter(e),r,n+r.indent,a,o,i),r,n)},"serialize")}}s(mP,"createDOMElementFilter");var yP=null,wg=null,xg=null;try{let e=module&&module.require;wg=e.call(module,"fs").readFileSync,xg=e.call(module,"@babel/code-frame").codeFrameColumns,yP=e.call(module,"chalk")}catch{}function gP(e){let t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.slice(t,r),a=n.split(":"),[o,i,l]=[a[0],parseInt(a[1],10),parseInt(a[2],10)],u="";try{u=wg(o,"utf-8")}catch{return""}let c=xg(u,{start:{line:i,column:l}},{highlightCode:!0,linesBelow:0});return yP.dim(n)+`
|
|
309
|
+
`+c+`
|
|
310
|
+
`}s(gP,"getCodeFrame");function bP(){if(!wg||!xg)return"";let e=new Error().stack.split(`
|
|
311
|
+
`).slice(1).find(t=>!t.includes("node_modules/"));return gP(e)}s(bP,"getUserCodeFrame");var vP=3;function el(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}s(el,"jestFakeTimersAreEnabled");function Cc(){if(typeof window>"u")throw new Error("Could not find default container");return window.document}s(Cc,"getDocument");function Ag(e){if(e.defaultView)return e.defaultView;if(e.ownerDocument&&e.ownerDocument.defaultView)return e.ownerDocument.defaultView;if(e.window)return e.window;throw e.ownerDocument&&e.ownerDocument.defaultView===null?new Error("It looks like the window object is not available for the provided node."):e.then instanceof Function?new Error("It looks like you passed a Promise object instead of a DOM node. Did you do something like `fireEvent.click(screen.findBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`, or await the findBy query `fireEvent.click(await screen.findBy...`?"):Array.isArray(e)?new Error("It looks like you passed an Array instead of a DOM node. Did you do something like `fireEvent.click(screen.getAllBy...` when you meant to use a `getBy` query `fireEvent.click(screen.getBy...`?"):typeof e.debug=="function"&&typeof e.logTestingPlaygroundURL=="function"?new Error("It looks like you passed a `screen` object. Did you do something like `fireEvent.click(screen, ...` when you meant to use a query, e.g. `fireEvent.click(screen.getBy..., `?"):new Error("The given node is not an Element, the node type is: "+typeof e+".")}s(Ag,"getWindowFromNode");function Qr(e){if(!e||typeof e.querySelector!="function"||typeof e.querySelectorAll!="function")throw new TypeError("Expected container to be an Element, a Document or a DocumentFragment but got "+t(e)+".");function t(r){return typeof r=="object"?r===null?"null":r.constructor.name:typeof r}s(t,"getTypeName")}s(Qr,"checkContainerType");var BU=s(()=>{if(typeof process>"u")return!1;let e;try{var t;let r=(t=Kp)==null?void 0:t.COLORS;r&&(e=JSON.parse(r))}catch{}return typeof e=="boolean"?e:process.versions!==void 0&&process.versions.node!==void 0},"shouldHighlight"),{DOMCollection:jU}=dg.plugins,qU=1,MU=8;function EP(e){return e.nodeType!==MU&&(e.nodeType!==qU||!e.matches(Ue().defaultIgnore))}s(EP,"filterCommentsAndDefaultIgnoreTagsTags");function wo(e,t,r){if(r===void 0&&(r={}),e||(e=Cc().body),typeof t!="number"&&(t=typeof process<"u"&&typeof Kp<"u"&&Kp.DEBUG_PRINT_LIMIT||7e3),t===0)return"";e.documentElement&&(e=e.documentElement);let n=typeof e;if(n==="object"?n=e.constructor.name:e={},!("outerHTML"in e))throw new TypeError("Expected an element or document but got "+n);let{filterNode:a=EP,...o}=r,i=dg.format(e,{plugins:[mP(a),jU],printFunctionName:!1,highlight:BU(),...o});return t!==void 0&&e.outerHTML.length>t?i.slice(0,t)+"...":i}s(wo,"prettyDOM");var uf=s(function(){let e=bP();console.log(e?wo(...arguments)+`
|
|
312
|
+
|
|
313
|
+
`+e:wo(...arguments))},"logDOM"),ya={testIdAttribute:"data-testid",asyncUtilTimeout:1e3,asyncWrapper:s(e=>e(),"asyncWrapper"),unstable_advanceTimersWrapper:s(e=>e(),"unstable_advanceTimersWrapper"),eventWrapper:s(e=>e(),"eventWrapper"),defaultHidden:!1,defaultIgnore:"script, style",showOriginalStackTrace:!1,throwSuggestions:!1,getElementError(e,t){let r=wo(t),n=new Error([e,"Ignored nodes: comments, "+ya.defaultIgnore+`
|
|
314
|
+
`+r].filter(Boolean).join(`
|
|
315
|
+
|
|
316
|
+
`));return n.name="TestingLibraryElementError",n},_disableExpensiveErrorDiagnostics:!1,computedStyleSupportsPseudoElements:!1};function CP(e){try{return ya._disableExpensiveErrorDiagnostics=!0,e()}finally{ya._disableExpensiveErrorDiagnostics=!1}}s(CP,"runWithExpensiveErrorDiagnosticsDisabled");function wP(e){typeof e=="function"&&(e=e(ya)),ya={...ya,...e}}s(wP,"configure");function Ue(){return ya}s(Ue,"getConfig");var LU=["button","meter","output","progress","select","textarea","input"];function Sg(e){return LU.includes(e.nodeName.toLowerCase())?"":e.nodeType===vP?e.textContent:Array.from(e.childNodes).map(t=>Sg(t)).join("")}s(Sg,"getTextContent");function Hl(e){let t;return e.tagName.toLowerCase()==="label"?t=Sg(e):t=e.value||e.textContent,t}s(Hl,"getLabelContent");function _g(e){if(e.labels!==void 0){var t;return(t=e.labels)!=null?t:[]}if(!xP(e))return[];let r=e.ownerDocument.querySelectorAll("label");return Array.from(r).filter(n=>n.control===e)}s(_g,"getRealLabels");function xP(e){return/BUTTON|METER|OUTPUT|PROGRESS|SELECT|TEXTAREA/.test(e.tagName)||e.tagName==="INPUT"&&e.getAttribute("type")!=="hidden"}s(xP,"isLabelable");function Tg(e,t,r){let{selector:n="*"}=r===void 0?{}:r,a=t.getAttribute("aria-labelledby"),o=a?a.split(" "):[];return o.length?o.map(i=>{let l=e.querySelector('[id="'+i+'"]');return l?{content:Hl(l),formControl:null}:{content:"",formControl:null}}):Array.from(_g(t)).map(i=>{let l=Hl(i),u=Array.from(i.querySelectorAll("button, input, meter, output, progress, select, textarea")).filter(c=>c.matches(n))[0];return{content:l,formControl:u}})}s(Tg,"getLabels");function Pg(e){if(e==null)throw new Error("It looks like "+e+" was passed instead of a matcher. Did you do something like getByText("+e+")?")}s(Pg,"assertNotNullOrUndefined");function ka(e,t,r,n){if(typeof e!="string")return!1;Pg(r);let a=n(e);return typeof r=="string"||typeof r=="number"?a.toLowerCase().includes(r.toString().toLowerCase()):typeof r=="function"?r(a,t):Dg(r,a)}s(ka,"fuzzyMatches");function Yr(e,t,r,n){if(typeof e!="string")return!1;Pg(r);let a=n(e);return r instanceof Function?r(a,t):r instanceof RegExp?Dg(r,a):a===String(r)}s(Yr,"matches");function wc(e){let{trim:t=!0,collapseWhitespace:r=!0}=e===void 0?{}:e;return n=>{let a=n;return a=t?a.trim():a,a=r?a.replace(/\s+/g," "):a,a}}s(wc,"getDefaultNormalizer");function Kn(e){let{trim:t,collapseWhitespace:r,normalizer:n}=e;if(!n)return wc({trim:t,collapseWhitespace:r});if(typeof t<"u"||typeof r<"u")throw new Error('trim and collapseWhitespace are not supported with a normalizer. If you want to use the default trim and collapseWhitespace logic in your normalizer, use "getDefaultNormalizer({trim, collapseWhitespace})" and compose that into your normalizer');return n}s(Kn,"makeNormalizer");function Dg(e,t){let r=e.test(t);return e.global&&e.lastIndex!==0&&(console.warn("To match all elements we had to reset the lastIndex of the RegExp because the global flag is enabled. We encourage to remove the global flag from the RegExp."),e.lastIndex=0),r}s(Dg,"matchRegExp");function $o(e){return e.matches("input[type=submit], input[type=button], input[type=reset]")?e.value:Array.from(e.childNodes).filter(t=>t.nodeType===vP&&!!t.textContent).map(t=>t.textContent).join("")}s($o,"getNodeText");var $U=AP(mr.elementRoles);function Og(e){return e.hidden===!0||e.getAttribute("aria-hidden")==="true"||e.ownerDocument.defaultView.getComputedStyle(e).display==="none"}s(Og,"isSubtreeInaccessible");function Es(e,t){t===void 0&&(t={});let{isSubtreeInaccessible:r=Og}=t;if(e.ownerDocument.defaultView.getComputedStyle(e).visibility==="hidden")return!0;let n=e;for(;n;){if(r(n))return!0;n=n.parentElement}return!1}s(Es,"isInaccessible");function xc(e){for(let{match:t,roles:r}of $U)if(t(e))return[...r];return[]}s(xc,"getImplicitAriaRoles");function AP(e){function t(i){let{name:l,attributes:u}=i;return""+l+u.map(c=>{let{name:p,value:d,constraints:h=[]}=c,f=h.indexOf("undefined")!==-1,m=h.indexOf("set")!==-1;return typeof d<"u"?"["+p+'="'+d+'"]':f?":not(["+p+"])":m?"["+p+"]:not(["+p+'=""])':"["+p+"]"}).join("")}s(t,"makeElementSelector");function r(i){let{attributes:l=[]}=i;return l.length}s(r,"getSelectorSpecificity");function n(i,l){let{specificity:u}=i,{specificity:c}=l;return c-u}s(n,"bySelectorSpecificity");function a(i){let{attributes:l=[]}=i,u=l.findIndex(p=>p.value&&p.name==="type"&&p.value==="text");u>=0&&(l=[...l.slice(0,u),...l.slice(u+1)]);let c=t({...i,attributes:l});return p=>u>=0&&p.type!=="text"?!1:p.matches(c)}s(a,"match");let o=[];for(let[i,l]of e.entries())o=[...o,{match:a(i),roles:Array.from(l),specificity:r(i)}];return o.sort(n)}s(AP,"buildElementRoleList");function Rg(e,t){let{hidden:r=!1}=t===void 0?{}:t;function n(a){return[a,...Array.from(a.children).reduce((o,i)=>[...o,...n(i)],[])]}return s(n,"flattenDOM"),n(e).filter(a=>r===!1?Es(a)===!1:!0).reduce((a,o)=>{let i=[];return o.hasAttribute("role")?i=o.getAttribute("role").split(" ").slice(0,1):i=xc(o),i.reduce((l,u)=>Array.isArray(l[u])?{...l,[u]:[...l[u],o]}:{...l,[u]:[o]},a)},{})}s(Rg,"getRoles");function Fg(e,t){let{hidden:r,includeDescription:n}=t,a=Rg(e,{hidden:r});return Object.entries(a).filter(o=>{let[i]=o;return i!=="generic"}).map(o=>{let[i,l]=o,u="-".repeat(50),c=l.map(p=>{let d='Name "'+Ec(p,{computedStyleSupportsPseudoElements:Ue().computedStyleSupportsPseudoElements})+`":
|
|
317
|
+
`,h=wo(p.cloneNode(!1));if(n){let f='Description "'+Eg(p,{computedStyleSupportsPseudoElements:Ue().computedStyleSupportsPseudoElements})+`":
|
|
318
|
+
`;return""+d+f+h}return""+d+h}).join(`
|
|
319
|
+
|
|
320
|
+
`);return i+`:
|
|
321
|
+
|
|
322
|
+
`+c+`
|
|
323
|
+
|
|
324
|
+
`+u}).join(`
|
|
325
|
+
`)}s(Fg,"prettyRoles");var UU=s(function(e,t){let{hidden:r=!1}=t===void 0?{}:t;return console.log(Fg(e,{hidden:r}))},"logRoles");function SP(e){return e.tagName==="OPTION"?e.selected:Uo(e,"aria-selected")}s(SP,"computeAriaSelected");function _P(e){return e.getAttribute("aria-busy")==="true"}s(_P,"computeAriaBusy");function TP(e){if(!("indeterminate"in e&&e.indeterminate))return"checked"in e?e.checked:Uo(e,"aria-checked")}s(TP,"computeAriaChecked");function PP(e){return Uo(e,"aria-pressed")}s(PP,"computeAriaPressed");function DP(e){var t,r;return(t=(r=Uo(e,"aria-current"))!=null?r:e.getAttribute("aria-current"))!=null?t:!1}s(DP,"computeAriaCurrent");function OP(e){return Uo(e,"aria-expanded")}s(OP,"computeAriaExpanded");function Uo(e,t){let r=e.getAttribute(t);if(r==="true")return!0;if(r==="false")return!1}s(Uo,"checkBooleanAttribute");function RP(e){let t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6};return e.getAttribute("aria-level")&&Number(e.getAttribute("aria-level"))||t[e.tagName]}s(RP,"computeHeadingLevel");function FP(e){let t=e.getAttribute("aria-valuenow");return t===null?void 0:+t}s(FP,"computeAriaValueNow");function IP(e){let t=e.getAttribute("aria-valuemax");return t===null?void 0:+t}s(IP,"computeAriaValueMax");function NP(e){let t=e.getAttribute("aria-valuemin");return t===null?void 0:+t}s(NP,"computeAriaValueMin");function kP(e){let t=e.getAttribute("aria-valuetext");return t===null?void 0:t}s(kP,"computeAriaValueText");var i0=wc();function BP(e){return e.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&")}s(BP,"escapeRegExp");function cf(e){return new RegExp(BP(e.toLowerCase()),"i")}s(cf,"getRegExpMatcher");function on(e,t,r,n){let{variant:a,name:o}=n,i="",l={},u=[["Role","TestId"].includes(e)?r:cf(r)];o&&(l.name=cf(o)),e==="Role"&&Es(t)&&(l.hidden=!0,i=`Element is inaccessible. This means that the element and all its children are invisible to screen readers.
|
|
326
|
+
If you are using the aria-hidden prop, make sure this is the right choice for your case.
|
|
327
|
+
`),Object.keys(l).length>0&&u.push(l);let c=a+"By"+e;return{queryName:e,queryMethod:c,queryArgs:u,variant:a,warning:i,toString(){i&&console.warn(i);let[p,d]=u;return p=typeof p=="string"?"'"+p+"'":p,d=d?", { "+Object.entries(d).map(h=>{let[f,m]=h;return f+": "+m}).join(", ")+" }":"",c+"("+p+d+")"}}}s(on,"makeSuggestion");function sn(e,t,r){return r&&(!t||t.toLowerCase()===e.toLowerCase())}s(sn,"canSuggest");function Ji(e,t,r){var n,a;if(t===void 0&&(t="get"),e.matches(Ue().defaultIgnore))return;let o=(n=e.getAttribute("role"))!=null?n:(a=xc(e))==null?void 0:a[0];if(o!=="generic"&&sn("Role",r,o))return on("Role",e,o,{variant:t,name:Ec(e,{computedStyleSupportsPseudoElements:Ue().computedStyleSupportsPseudoElements})});let i=Tg(document,e).map(h=>h.content).join(" ");if(sn("LabelText",r,i))return on("LabelText",e,i,{variant:t});let l=e.getAttribute("placeholder");if(sn("PlaceholderText",r,l))return on("PlaceholderText",e,l,{variant:t});let u=i0($o(e));if(sn("Text",r,u))return on("Text",e,u,{variant:t});if(sn("DisplayValue",r,e.value))return on("DisplayValue",e,i0(e.value),{variant:t});let c=e.getAttribute("alt");if(sn("AltText",r,c))return on("AltText",e,c,{variant:t});let p=e.getAttribute("title");if(sn("Title",r,p))return on("Title",e,p,{variant:t});let d=e.getAttribute(Ue().testIdAttribute);if(sn("TestId",r,d))return on("TestId",e,d,{variant:t})}s(Ji,"getSuggestedQuery");function oi(e,t){e.stack=t.stack.replace(t.message,e.message)}s(oi,"copyStackTrace");function jP(e,t){let{container:r=Cc(),timeout:n=Ue().asyncUtilTimeout,showOriginalStackTrace:a=Ue().showOriginalStackTrace,stackTraceError:o,interval:i=50,onTimeout:l=s(c=>(Object.defineProperty(c,"message",{value:Ue().getElementError(c.message,r).message}),c),"onTimeout"),mutationObserverOptions:u={subtree:!0,childList:!0,attributes:!0,characterData:!0}}=t;if(typeof e!="function")throw new TypeError("Received `callback` arg must be a function");return new Promise(async(c,p)=>{let d,h,f,m=!1,y="idle",b=setTimeout(P,n),g=el();if(g){let{unstable_advanceTimersWrapper:w}=Ue();for(S();!m;){if(!el()){let E=new Error("Changed from using fake timers to real timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to real timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");a||oi(E,o),p(E);return}if(await w(async()=>{jest.advanceTimersByTime(i)}),m)break;S()}}else{try{Qr(r)}catch(E){p(E);return}h=setInterval(D,i);let{MutationObserver:w}=Ag(r);f=new w(D),f.observe(r,u),S()}function v(w,E){m=!0,clearTimeout(b),g||(clearInterval(h),f.disconnect()),w?p(w):c(E)}s(v,"onDone");function D(){if(el()){let w=new Error("Changed from using real timers to fake timers while using waitFor. This is not allowed and will result in very strange behavior. Please ensure you're awaiting all async things your test is doing before changing to fake timers. For more info, please go to https://github.com/testing-library/dom-testing-library/issues/830");return a||oi(w,o),p(w)}else return S()}s(D,"checkRealTimersCallback");function S(){if(y!=="pending")try{let w=CP(e);typeof w?.then=="function"?(y="pending",w.then(E=>{y="resolved",v(null,E)},E=>{y="rejected",d=E})):v(null,w)}catch(w){d=w}}s(S,"checkCallback");function P(){let w;d?(w=d,!a&&w.name==="TestingLibraryElementError"&&oi(w,o)):(w=new Error("Timed out in waitFor."),a||oi(w,o)),v(l(w),null)}s(P,"handleTimeout")})}s(jP,"waitFor");function Ac(e,t){let r=new Error("STACK_TRACE_MESSAGE");return Ue().asyncWrapper(()=>jP(e,{stackTraceError:r,...t}))}s(Ac,"waitForWrapper");function Cs(e,t){return Ue().getElementError(e,t)}s(Cs,"getElementError");function ws(e,t){return Cs(e+"\n\n(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).",t)}s(ws,"getMultipleElementsFoundError");function Xn(e,t,r,n){let{exact:a=!0,collapseWhitespace:o,trim:i,normalizer:l}=n===void 0?{}:n,u=a?Yr:ka,c=Kn({collapseWhitespace:o,trim:i,normalizer:l});return Array.from(t.querySelectorAll("["+e+"]")).filter(p=>u(p.getAttribute(e),p,r,c))}s(Xn,"queryAllByAttribute");function Ig(e,t,r,n){let a=Xn(e,t,r,n);if(a.length>1)throw ws("Found multiple elements by ["+e+"="+r+"]",t);return a[0]||null}s(Ig,"queryByAttribute");function Ca(e,t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];let i=e(r,...a);if(i.length>1){let l=i.map(u=>Cs(null,u).message).join(`
|
|
328
|
+
|
|
329
|
+
`);throw ws(t(r,...a)+`
|
|
330
|
+
|
|
331
|
+
Here are the matching elements:
|
|
332
|
+
|
|
333
|
+
`+l,r)}return i[0]||null}}s(Ca,"makeSingleQuery");function Ng(e,t){return Ue().getElementError(`A better query is available, try this:
|
|
334
|
+
`+e.toString()+`
|
|
335
|
+
`,t)}s(Ng,"getSuggestionError");function Sc(e,t){return function(r){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];let i=e(r,...a);if(!i.length)throw Ue().getElementError(t(r,...a),r);return i}}s(Sc,"makeGetAllQuery");function wa(e){return(t,r,n,a)=>Ac(()=>e(t,r,n),{container:t,...a})}s(wa,"makeFindQuery");var Mn=s((e,t,r)=>function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];let l=e(n,...o),[{suggest:u=Ue().throwSuggestions}={}]=o.slice(-1);if(l&&u){let c=Ji(l,r);if(c&&!t.endsWith(c.queryName))throw Ng(c.toString(),n)}return l},"wrapSingleQueryWithSuggestion"),Xt=s((e,t,r)=>function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];let l=e(n,...o),[{suggest:u=Ue().throwSuggestions}={}]=o.slice(-1);if(l.length&&u){let c=[...new Set(l.map(p=>{var d;return(d=Ji(p,r))==null?void 0:d.toString()}))];if(c.length===1&&!t.endsWith(Ji(l[0],r).queryName))throw Ng(c[0],n)}return l},"wrapAllByQueryWithSuggestion");function Zr(e,t,r){let n=Mn(Ca(e,t),e.name,"query"),a=Sc(e,r),o=Ca(a,t),i=Mn(o,e.name,"get"),l=Xt(a,e.name.replace("query","get"),"getAll"),u=wa(Xt(a,e.name,"findAll")),c=wa(Mn(o,e.name,"find"));return[n,l,i,u,c]}s(Zr,"buildQueries");var VU=Object.freeze({__proto__:null,getElementError:Cs,wrapAllByQueryWithSuggestion:Xt,wrapSingleQueryWithSuggestion:Mn,getMultipleElementsFoundError:ws,queryAllByAttribute:Xn,queryByAttribute:Ig,makeSingleQuery:Ca,makeGetAllQuery:Sc,makeFindQuery:wa,buildQueries:Zr});function qP(e){return Array.from(e.querySelectorAll("label,input")).map(t=>({node:t,textToMatch:Hl(t)})).filter(t=>{let{textToMatch:r}=t;return r!==null})}s(qP,"queryAllLabels");var HU=s(function(e,t,r){let{exact:n=!0,trim:a,collapseWhitespace:o,normalizer:i}=r===void 0?{}:r,l=n?Yr:ka,u=Kn({collapseWhitespace:o,trim:a,normalizer:i});return qP(e).filter(c=>{let{node:p,textToMatch:d}=c;return l(d,p,t,u)}).map(c=>{let{node:p}=c;return p})},"queryAllLabelsByText"),zi=s(function(e,t,r){let{selector:n="*",exact:a=!0,collapseWhitespace:o,trim:i,normalizer:l}=r===void 0?{}:r;Qr(e);let u=a?Yr:ka,c=Kn({collapseWhitespace:o,trim:i,normalizer:l}),p=Array.from(e.querySelectorAll("*")).filter(d=>_g(d).length||d.hasAttribute("aria-labelledby")).reduce((d,h)=>{let f=Tg(e,h,{selector:n});f.filter(y=>!!y.formControl).forEach(y=>{u(y.content,y.formControl,t,c)&&y.formControl&&d.push(y.formControl)});let m=f.filter(y=>!!y.content).map(y=>y.content);return u(m.join(" "),h,t,c)&&d.push(h),m.length>1&&m.forEach((y,b)=>{u(y,h,t,c)&&d.push(h);let g=[...m];g.splice(b,1),g.length>1&&u(g.join(" "),h,t,c)&&d.push(h)}),d},[]).concat(Xn("aria-label",e,t,{exact:a,normalizer:c}));return Array.from(new Set(p)).filter(d=>d.matches(n))},"queryAllByLabelText"),xa=s(function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];let o=zi(e,t,...n);if(!o.length){let i=HU(e,t,...n);if(i.length){let l=i.map(u=>MP(e,u)).filter(u=>!!u);throw l.length?Ue().getElementError(l.map(u=>"Found a label with the text of: "+t+", however the element associated with this label (<"+u+" />) is non-labellable [https://html.spec.whatwg.org/multipage/forms.html#category-label]. If you really need to label a <"+u+" />, you can use aria-label or aria-labelledby instead.").join(`
|
|
336
|
+
|
|
337
|
+
`),e):Ue().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 Ue().getElementError("Unable to find a label with the text of: "+t,e)}return o},"getAllByLabelText");function MP(e,t){let r=t.getAttribute("for");if(!r)return null;let n=e.querySelector('[id="'+r+'"]');return n?n.tagName.toLowerCase():null}s(MP,"getTagNameOfElementAssociatedWithLabelViaFor");var LP=s((e,t)=>"Found multiple elements with the text of: "+t,"getMultipleError$7"),$P=Mn(Ca(zi,LP),zi.name,"query"),UP=Ca(xa,LP),VP=wa(Xt(xa,xa.name,"findAll")),HP=wa(Mn(UP,xa.name,"find")),JP=Xt(xa,xa.name,"getAll"),zP=Mn(UP,xa.name,"get"),GP=Xt(zi,zi.name,"queryAll"),pf=s(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qr(t[0]),Xn("placeholder",...t)},"queryAllByPlaceholderText"),JU=s((e,t)=>"Found multiple elements with the placeholder text of: "+t,"getMultipleError$6"),zU=s((e,t)=>"Unable to find an element with the placeholder text of: "+t,"getMissingError$6"),WP=Xt(pf,pf.name,"queryAll"),[YP,KP,XP,QP,ZP]=Zr(pf,JU,zU),df=s(function(e,t,r){let{selector:n="*",exact:a=!0,collapseWhitespace:o,trim:i,ignore:l=Ue().defaultIgnore,normalizer:u}=r===void 0?{}:r;Qr(e);let c=a?Yr:ka,p=Kn({collapseWhitespace:o,trim:i,normalizer:u}),d=[];return typeof e.matches=="function"&&e.matches(n)&&(d=[e]),[...d,...Array.from(e.querySelectorAll(n))].filter(h=>!l||!h.matches(l)).filter(h=>c($o(h),h,t,p))},"queryAllByText"),GU=s((e,t)=>"Found multiple elements with the text: "+t,"getMultipleError$5"),WU=s(function(e,t,r){r===void 0&&(r={});let{collapseWhitespace:n,trim:a,normalizer:o,selector:i}=r,l=Kn({collapseWhitespace:n,trim:a,normalizer:o})(t.toString()),u=l!==t.toString(),c=(i??"*")!=="*";return"Unable to find an element with the text: "+(u?l+" (normalized from '"+t+"')":t)+(c?", which matches selector '"+i+"'":"")+". 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."},"getMissingError$5"),eD=Xt(df,df.name,"queryAll"),[tD,rD,nD,aD,oD]=Zr(df,GU,WU),ff=s(function(e,t,r){let{exact:n=!0,collapseWhitespace:a,trim:o,normalizer:i}=r===void 0?{}:r;Qr(e);let l=n?Yr:ka,u=Kn({collapseWhitespace:a,trim:o,normalizer:i});return Array.from(e.querySelectorAll("input,textarea,select")).filter(c=>c.tagName==="SELECT"?Array.from(c.options).filter(p=>p.selected).some(p=>l($o(p),p,t,u)):l(c.value,c,t,u))},"queryAllByDisplayValue"),YU=s((e,t)=>"Found multiple elements with the display value: "+t+".","getMultipleError$4"),KU=s((e,t)=>"Unable to find an element with the display value: "+t+".","getMissingError$4"),iD=Xt(ff,ff.name,"queryAll"),[sD,lD,uD,cD,pD]=Zr(ff,YU,KU),XU=/^(img|input|area|.+-.+)$/i,hf=s(function(e,t,r){return r===void 0&&(r={}),Qr(e),Xn("alt",e,t,r).filter(n=>XU.test(n.tagName))},"queryAllByAltText"),QU=s((e,t)=>"Found multiple elements with the alt text: "+t,"getMultipleError$3"),ZU=s((e,t)=>"Unable to find an element with the alt text: "+t,"getMissingError$3"),dD=Xt(hf,hf.name,"queryAll"),[fD,hD,mD,yD,gD]=Zr(hf,QU,ZU),e7=s(e=>{var t;return e.tagName.toLowerCase()==="title"&&((t=e.parentElement)==null?void 0:t.tagName.toLowerCase())==="svg"},"isSvgTitle"),mf=s(function(e,t,r){let{exact:n=!0,collapseWhitespace:a,trim:o,normalizer:i}=r===void 0?{}:r;Qr(e);let l=n?Yr:ka,u=Kn({collapseWhitespace:a,trim:o,normalizer:i});return Array.from(e.querySelectorAll("[title], svg > title")).filter(c=>l(c.getAttribute("title"),c,t,u)||e7(c)&&l($o(c),c,t,u))},"queryAllByTitle"),t7=s((e,t)=>"Found multiple elements with the title: "+t+".","getMultipleError$2"),r7=s((e,t)=>"Unable to find an element with the title: "+t+".","getMissingError$2"),bD=Xt(mf,mf.name,"queryAll"),[vD,ED,CD,wD,xD]=Zr(mf,t7,r7),yf=s(function(e,t,r){let{hidden:n=Ue().defaultHidden,name:a,description:o,queryFallbacks:i=!1,selected:l,busy:u,checked:c,pressed:p,current:d,level:h,expanded:f,value:{now:m,min:y,max:b,text:g}={}}=r===void 0?{}:r;if(Qr(e),l!==void 0){var v;if(((v=mr.roles.get(t))==null?void 0:v.props["aria-selected"])===void 0)throw new Error('"aria-selected" is not supported on role "'+t+'".')}if(u!==void 0){var D;if(((D=mr.roles.get(t))==null?void 0:D.props["aria-busy"])===void 0)throw new Error('"aria-busy" is not supported on role "'+t+'".')}if(c!==void 0){var S;if(((S=mr.roles.get(t))==null?void 0:S.props["aria-checked"])===void 0)throw new Error('"aria-checked" is not supported on role "'+t+'".')}if(p!==void 0){var P;if(((P=mr.roles.get(t))==null?void 0:P.props["aria-pressed"])===void 0)throw new Error('"aria-pressed" is not supported on role "'+t+'".')}if(d!==void 0){var w;if(((w=mr.roles.get(t))==null?void 0:w.props["aria-current"])===void 0)throw new Error('"aria-current" is not supported on role "'+t+'".')}if(h!==void 0&&t!=="heading")throw new Error('Role "'+t+'" cannot have "level" property.');if(m!==void 0){var E;if(((E=mr.roles.get(t))==null?void 0:E.props["aria-valuenow"])===void 0)throw new Error('"aria-valuenow" is not supported on role "'+t+'".')}if(b!==void 0){var C;if(((C=mr.roles.get(t))==null?void 0:C.props["aria-valuemax"])===void 0)throw new Error('"aria-valuemax" is not supported on role "'+t+'".')}if(y!==void 0){var _;if(((_=mr.roles.get(t))==null?void 0:_.props["aria-valuemin"])===void 0)throw new Error('"aria-valuemin" is not supported on role "'+t+'".')}if(g!==void 0){var k;if(((k=mr.roles.get(t))==null?void 0:k.props["aria-valuetext"])===void 0)throw new Error('"aria-valuetext" is not supported on role "'+t+'".')}if(f!==void 0){var B;if(((B=mr.roles.get(t))==null?void 0:B.props["aria-expanded"])===void 0)throw new Error('"aria-expanded" is not supported on role "'+t+'".')}let W=new WeakMap;function z(R){return W.has(R)||W.set(R,Og(R)),W.get(R)}return s(z,"cachedIsSubtreeInaccessible"),Array.from(e.querySelectorAll(AD(t))).filter(R=>{if(R.hasAttribute("role")){let U=R.getAttribute("role");if(i)return U.split(" ").filter(Boolean).some(Y=>Y===t);let[j]=U.split(" ");return j===t}return xc(R).some(U=>U===t)}).filter(R=>{if(l!==void 0)return l===SP(R);if(u!==void 0)return u===_P(R);if(c!==void 0)return c===TP(R);if(p!==void 0)return p===PP(R);if(d!==void 0)return d===DP(R);if(f!==void 0)return f===OP(R);if(h!==void 0)return h===RP(R);if(m!==void 0||b!==void 0||y!==void 0||g!==void 0){let j=!0;if(m!==void 0&&j&&(j=m===FP(R)),b!==void 0&&j&&(j=b===IP(R)),y!==void 0&&j&&(j=y===NP(R)),g!==void 0){var U;j&&(j=Yr((U=kP(R))!=null?U:null,R,g,Y=>Y))}return j}return!0}).filter(R=>a===void 0?!0:Yr(Ec(R,{computedStyleSupportsPseudoElements:Ue().computedStyleSupportsPseudoElements}),R,a,U=>U)).filter(R=>o===void 0?!0:Yr(Eg(R,{computedStyleSupportsPseudoElements:Ue().computedStyleSupportsPseudoElements}),R,o,U=>U)).filter(R=>n===!1?Es(R,{isSubtreeInaccessible:z})===!1:!0)},"queryAllByRole");function AD(e){var t;let r='*[role~="'+e+'"]',n=(t=mr.roleElements.get(e))!=null?t:new Set,a=new Set(Array.from(n).map(o=>{let{name:i}=o;return i}));return[r].concat(Array.from(a)).join(",")}s(AD,"makeRoleSelector");var SD=s(e=>{let t="";return e===void 0?t="":typeof e=="string"?t=' and name "'+e+'"':t=" and name `"+e+"`",t},"getNameHint"),n7=s(function(e,t,r){let{name:n}=r===void 0?{}:r;return'Found multiple elements with the role "'+t+'"'+SD(n)},"getMultipleError$1"),a7=s(function(e,t,r){let{hidden:n=Ue().defaultHidden,name:a,description:o}=r===void 0?{}:r;if(Ue()._disableExpensiveErrorDiagnostics)return'Unable to find role="'+t+'"'+SD(a);let i="";Array.from(e.children).forEach(p=>{i+=Fg(p,{hidden:n,includeDescription:o!==void 0})});let l;i.length===0?n===!1?l="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":l="There are no available roles.":l=(`
|
|
338
|
+
Here are the `+(n===!1?"accessible":"available")+` roles:
|
|
339
|
+
|
|
340
|
+
`+i.replace(/\n/g,`
|
|
341
|
+
`).replace(/\n\s\s\n/g,`
|
|
342
|
+
|
|
343
|
+
`)+`
|
|
344
|
+
`).trim();let u="";a===void 0?u="":typeof a=="string"?u=' and name "'+a+'"':u=" and name `"+a+"`";let c="";return o===void 0?c="":typeof o=="string"?c=' and description "'+o+'"':c=" and description `"+o+"`",(`
|
|
345
|
+
Unable to find an `+(n===!1?"accessible ":"")+'element with the role "'+t+'"'+u+c+`
|
|
346
|
+
|
|
347
|
+
`+l).trim()},"getMissingError$1"),_D=Xt(yf,yf.name,"queryAll"),[TD,PD,DD,OD,RD]=Zr(yf,n7,a7),kg=s(()=>Ue().testIdAttribute,"getTestIdAttribute"),gf=s(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Qr(t[0]),Xn(kg(),...t)},"queryAllByTestId"),o7=s((e,t)=>"Found multiple elements by: ["+kg()+'="'+t+'"]',"getMultipleError"),i7=s((e,t)=>"Unable to find an element by: ["+kg()+'="'+t+'"]',"getMissingError"),FD=Xt(gf,gf.name,"queryAll"),[ID,ND,kD,BD,jD]=Zr(gf,o7,i7),Jl=Object.freeze({__proto__:null,queryAllByLabelText:GP,queryByLabelText:$P,getAllByLabelText:JP,getByLabelText:zP,findAllByLabelText:VP,findByLabelText:HP,queryByPlaceholderText:YP,queryAllByPlaceholderText:WP,getByPlaceholderText:XP,getAllByPlaceholderText:KP,findAllByPlaceholderText:QP,findByPlaceholderText:ZP,queryByText:tD,queryAllByText:eD,getByText:nD,getAllByText:rD,findAllByText:aD,findByText:oD,queryByDisplayValue:sD,queryAllByDisplayValue:iD,getByDisplayValue:uD,getAllByDisplayValue:lD,findAllByDisplayValue:cD,findByDisplayValue:pD,queryByAltText:fD,queryAllByAltText:dD,getByAltText:mD,getAllByAltText:hD,findAllByAltText:yD,findByAltText:gD,queryByTitle:vD,queryAllByTitle:bD,getByTitle:CD,getAllByTitle:ED,findAllByTitle:wD,findByTitle:xD,queryByRole:TD,queryAllByRole:_D,getAllByRole:PD,getByRole:DD,findAllByRole:OD,findByRole:RD,queryByTestId:ID,queryAllByTestId:FD,getByTestId:kD,getAllByTestId:ND,findAllByTestId:BD,findByTestId:jD});function zl(e,t,r){return t===void 0&&(t=Jl),r===void 0&&(r={}),Object.keys(t).reduce((n,a)=>{let o=t[a];return n[a]=o.bind(null,e),n},r)}s(zl,"getQueriesForElement");var qD=s(e=>!e||Array.isArray(e)&&!e.length,"isRemoved");function bf(e){if(qD(e))throw new Error("The element(s) given to waitForElementToBeRemoved are already removed. waitForElementToBeRemoved requires that the element(s) exist(s) before waiting for removal.")}s(bf,"initialCheck");async function MD(e,t){let r=new Error("Timed out in waitForElementToBeRemoved.");if(typeof e!="function"){bf(e);let n=(Array.isArray(e)?e:[e]).map(a=>{let o=a.parentElement;if(o===null)return()=>null;for(;o.parentElement;)o=o.parentElement;return()=>o.contains(a)?a:null});e=s(()=>n.map(a=>a()).filter(Boolean),"callback")}return bf(e()),Ac(()=>{let n;try{n=e()}catch(a){if(a.name==="TestingLibraryElementError")return;throw a}if(!qD(n))throw r},t)}s(MD,"waitForElementToBeRemoved");var s0={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}}},l0={doubleClick:"dblClick"};function xo(e,t){return Ue().eventWrapper(()=>{if(!t)throw new Error("Unable to fire an event - please provide an event object.");if(!e)throw new Error('Unable to fire a "'+t.type+'" event - please provide a DOM element.');return e.dispatchEvent(t)})}s(xo,"fireEvent");function Ci(e,t,r,n){let{EventType:a="Event",defaultInit:o={}}=n===void 0?{}:n;if(!t)throw new Error('Unable to fire a "'+e+'" event - please provide a DOM element.');let i={...o,...r},{target:{value:l,files:u,...c}={}}=i;l!==void 0&&LD(t,l),u!==void 0&&Object.defineProperty(t,"files",{configurable:!0,enumerable:!0,writable:!0,value:u}),Object.assign(t,c);let p=Ag(t),d=p[a]||p.Event,h;if(typeof d=="function")h=new d(e,i);else{h=p.document.createEvent(a);let{bubbles:f,cancelable:m,detail:y,...b}=i;h.initEvent(e,f,m,y),Object.keys(b).forEach(g=>{h[g]=b[g]})}return["dataTransfer","clipboardData"].forEach(f=>{let m=i[f];typeof m=="object"&&(typeof p.DataTransfer=="function"?Object.defineProperty(h,f,{value:Object.getOwnPropertyNames(m).reduce((y,b)=>(Object.defineProperty(y,b,{value:m[b]}),y),new p.DataTransfer)}):Object.defineProperty(h,f,{value:m}))}),h}s(Ci,"createEvent");Object.keys(s0).forEach(e=>{let{EventType:t,defaultInit:r}=s0[e],n=e.toLowerCase();Ci[e]=(a,o)=>Ci(n,a,o,{EventType:t,defaultInit:r}),xo[e]=(a,o)=>xo(a,Ci[e](a,o))});function LD(e,t){let{set:r}=Object.getOwnPropertyDescriptor(e,"value")||{},n=Object.getPrototypeOf(e),{set:a}=Object.getOwnPropertyDescriptor(n,"value")||{};if(a&&r!==a)a.call(e,t);else if(r)r.call(e,t);else throw new Error("The given element does not have a value setter")}s(LD,"setNativeValue");Object.keys(l0).forEach(e=>{let t=l0[e];xo[e]=function(){return xo[t](...arguments)}});function $D(e){return e.replace(/[ \t]*[\n][ \t]*/g,`
|
|
348
|
+
`)}s($D,"unindent");function UD(e){return _U.default.compressToEncodedURIComponent($D(e))}s(UD,"encode");function VD(e){return"https://testing-playground.com/#markup="+UD(e)}s(VD,"getPlaygroundUrl");var s7=s((e,t,r)=>Array.isArray(e)?e.forEach(n=>uf(n,t,r)):uf(e,t,r),"debug"),l7=s(function(e){if(e===void 0&&(e=Cc().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=VD(e.innerHTML);return console.log(`Open this URL in your browser
|
|
349
|
+
|
|
350
|
+
`+t),t},"logTestingPlaygroundURL"),u0={debug:s7,logTestingPlaygroundURL:l7},u7=typeof document<"u"&&document.body?zl(document.body,Jl,u0):Object.keys(Jl).reduce((e,t)=>(e[t]=()=>{throw new TypeError("For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error")},e),u0);function ke(e,t,r){return e.namespaceURI&&e.namespaceURI!=="http://www.w3.org/1999/xhtml"||(t=Array.isArray(t)?t:[t],!t.includes(e.tagName.toLowerCase()))?!1:r?Object.entries(r).every(([n,a])=>e[n]===a):!0}s(ke,"isElementType");function cr(e){var t;if(HD(e)&&e.defaultView)return e.defaultView;if(!((t=e.ownerDocument)===null||t===void 0)&&t.defaultView)return e.ownerDocument.defaultView;throw new Error(`Could not determine window of node. Node was ${JD(e)}`)}s(cr,"getWindow");function HD(e){return e.nodeType===9}s(HD,"isDocument");function JD(e){return typeof e=="function"?`function ${e.name}`:e===null?"null":String(e)}s(JD,"describe");function Bg(e,t){return new Promise((r,n)=>{let a=new t;a.onerror=n,a.onabort=n,a.onload=()=>{r(String(a.result))},a.readAsText(e)})}s(Bg,"readBlobText");function _c(e,t){let r={...t,length:t.length,item:s(n=>r[n],"item"),[Symbol.iterator]:s(function*(){for(let n=0;n<r.length;n++)yield r[n]},"nextFile")};return r.constructor=e.FileList,e.FileList&&Object.setPrototypeOf(r,e.FileList.prototype),Object.freeze(r),r}s(_c,"createFileList");function fn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(fn,"_define_property");var zD=class{getAsFile(){return this.file}getAsString(t){typeof this.data=="string"&&t(this.data)}webkitGetAsEntry(){throw new Error("not implemented")}constructor(t,r){fn(this,"kind",void 0),fn(this,"type",void 0),fn(this,"file",null),fn(this,"data",void 0),typeof t=="string"?(this.kind="string",this.type=String(r),this.data=t):(this.kind="file",this.type=t.type,this.file=t)}};s(zD,"DataTransferItemStub");var GD=zD,WD=class extends Array{add(...t){let r=new GD(t[0],t[1]);return this.push(r),r}clear(){this.splice(0,this.length)}remove(t){this.splice(t,1)}};s(WD,"DataTransferItemListStub");var c7=WD;function ii(e,t){let[r,n]=e.split("/"),a=!n||n==="*";return o=>t?o.type===(a?r:e):a?o.type.startsWith(`${r}/`):o.type===r}s(ii,"getTypeMatcher");function YD(e){var t;return new(t=class{getData(r){var n;let a=(n=this.items.find(ii(r,!0)))!==null&&n!==void 0?n:this.items.find(ii(r,!1)),o="";return a?.getAsString(i=>{o=i}),o}setData(r,n){let a=this.items.findIndex(ii(r,!0)),o=new GD(n,r);a>=0?this.items.splice(a,1,o):this.items.push(o)}clearData(r){if(r){let n=this.items.findIndex(ii(r,!0));n>=0&&this.items.remove(n)}else this.items.clear()}get types(){let r=[];return this.files.length&&r.push("Files"),this.items.forEach(n=>r.push(n.type)),Object.freeze(r),r}setDragImage(){}constructor(){fn(this,"dropEffect","none"),fn(this,"effectAllowed","uninitialized"),fn(this,"items",new c7),fn(this,"files",_c(e,[]))}},s(t,"DataTransferStub"),t)}s(YD,"createDataTransferStub");function Tc(e,t=[]){let r=typeof e.DataTransfer>"u"?YD(e):new e.DataTransfer;return Object.defineProperty(r,"files",{get:s(()=>_c(e,t),"get")}),r}s(Tc,"createDataTransfer");async function KD(e,t){return t.kind==="file"?t.getAsFile():new e.Blob([await new Promise(r=>t.getAsString(r))],{type:t.type})}s(KD,"getBlobFromDataTransferItem");function jg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(jg,"_define_property");function qg(e,...t){var r;let n=Object.fromEntries(t.map(a=>[typeof a=="string"?"text/plain":a.type,Promise.resolve(a)]));return typeof e.ClipboardItem<"u"?new e.ClipboardItem(n):new(r=class{get types(){return Array.from(Object.keys(this.data))}async getType(a){let o=await this.data[a];if(!o)throw new Error(`${a} is not one of the available MIME types on this item.`);return o instanceof e.Blob?o:new e.Blob([o],{type:a})}constructor(a){jg(this,"data",void 0),this.data=a}},s(r,"ClipboardItem"),r)(n)}s(qg,"createClipboardItem");var Ao=Symbol("Manage ClipboardSub");function vf(e,t){var r;return Object.assign(new(r=class extends e.EventTarget{async read(){return Array.from(this.items)}async readText(){let n="";for(let a of this.items){let o=a.types.includes("text/plain")?"text/plain":a.types.find(i=>i.startsWith("text/"));o&&(n+=await a.getType(o).then(i=>Bg(i,e.FileReader)))}return n}async write(n){this.items=n}async writeText(n){this.items=[qg(e,n)]}constructor(...n){super(...n),jg(this,"items",[])}},s(r,"Clipboard"),r),{[Ao]:t})}s(vf,"createClipboardStub");function Pc(e){return!!e?.[Ao]}s(Pc,"isClipboardStub");function XD(e){if(Pc(e.navigator.clipboard))return e.navigator.clipboard[Ao];let t=Object.getOwnPropertyDescriptor(e.navigator,"clipboard"),r,n={resetClipboardStub:s(()=>{r=vf(e,n)},"resetClipboardStub"),detachClipboardStub:s(()=>{t?Object.defineProperty(e.navigator,"clipboard",t):Object.defineProperty(e.navigator,"clipboard",{value:void 0,configurable:!0})},"detachClipboardStub")};return r=vf(e,n),Object.defineProperty(e.navigator,"clipboard",{get:s(()=>r,"get"),configurable:!0}),r[Ao]}s(XD,"attachClipboardStubToView");function QD(e){Pc(e.navigator.clipboard)&&e.navigator.clipboard[Ao].resetClipboardStub()}s(QD,"resetClipboardStubOnView");function ZD(e){Pc(e.navigator.clipboard)&&e.navigator.clipboard[Ao].detachClipboardStub()}s(ZD,"detachClipboardStubFromView");async function eO(e){let t=e.defaultView,r=t?.navigator.clipboard,n=r&&await r.read();if(!n)throw new Error("The Clipboard API is unavailable.");let a=Tc(t);for(let o of n)for(let i of o.types)a.setData(i,await o.getType(i).then(l=>Bg(l,t.FileReader)));return a}s(eO,"readDataTransferFromClipboard");async function Mg(e,t){let r=cr(e),n=r.navigator.clipboard,a=[];for(let o=0;o<t.items.length;o++){let i=t.items[o],l=await KD(r,i);a.push(qg(r,l))}if(!(n&&await n.write(a).then(()=>!0,()=>!1)))throw new Error("The Clipboard API is unavailable.")}s(Mg,"writeDataTransferToClipboard");var Gl=globalThis;typeof Gl.afterEach=="function"&&Gl.afterEach(()=>{typeof globalThis.window<"u"&&QD(globalThis.window)});typeof Gl.afterAll=="function"&&Gl.afterAll(()=>{typeof globalThis.window<"u"&&ZD(globalThis.window)});var tO=["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 Dc(e){return e.matches(tO)}s(Dc,"isFocusable");function rO(e){return new e.constructor(e.type,e)}s(rO,"cloneEvent");function Kr(e){for(let r=e;r;r=r.parentElement)if(ke(r,["button","input","select","textarea","optgroup","option"])){if(r.hasAttribute("disabled"))return!0}else if(ke(r,"fieldset")){var t;if(r.hasAttribute("disabled")&&!(!((t=r.querySelector(":scope > legend"))===null||t===void 0)&&t.contains(e)))return!0}else if(r.tagName.includes("-")&&r.constructor.formAssociated&&r.hasAttribute("disabled"))return!0;return!1}s(Kr,"isDisabled");function Vo(e){let t=e.activeElement;return t?.shadowRoot?Vo(t.shadowRoot):Kr(t)?e.ownerDocument?e.ownerDocument.body:e.body:t}s(Vo,"getActiveElement");function tl(e){var t;return(t=Vo(e))!==null&&t!==void 0?t:e.body}s(tl,"getActiveElementOrBody");function nO(e,t){let r=e;do{if(t(r))return r;r=r.parentElement}while(r&&r!==e.ownerDocument.body)}s(nO,"findClosest");function Jn(e){return e.hasAttribute("contenteditable")&&(e.getAttribute("contenteditable")=="true"||e.getAttribute("contenteditable")=="")}s(Jn,"isContentEditable");function So(e){let t=aO(e);return t&&(t.closest('[contenteditable=""]')||t.closest('[contenteditable="true"]'))}s(So,"getContentEditable");function aO(e){return e.nodeType===1?e:e.parentElement}s(aO,"getElement");var oO=(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})(oO||{});function Lg(e){return ke(e,"button")||ke(e,"input")&&e.type in oO}s(Lg,"isClickableInput");function Aa(e){return $g(e)&&!e.readOnly||Jn(e)}s(Aa,"isEditable");var iO=(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})(iO||{});function $g(e){return ke(e,"textarea")||ke(e,"input")&&e.type in iO}s($g,"isEditableInputOrTextArea");function Or(e){return Ug(e)&&$g(e)}s(Or,"hasOwnSelection");function sO(e){return Ug(e)&&Lg(e)}s(sO,"hasNoSelection");function Ug(e){return e.nodeType===1}s(Ug,"isElement");function lO(e){let t=e.ownerDocument.getSelection();if(t?.focusNode&&Or(e)){let n=So(t.focusNode);if(n){if(!t.isCollapsed){var r;let a=((r=n.firstChild)===null||r===void 0?void 0:r.nodeType)===3?n.firstChild:n;t.setBaseAndExtent(a,0,a,0)}}else t.setBaseAndExtent(e,0,e,0)}}s(lO,"updateSelectionOnFocus");function Sa(e,t){return Ue().eventWrapper(e)}s(Sa,"wrapEvent");function vn(e){let t=nO(e,Dc),r=Vo(e.ownerDocument);(t??e.ownerDocument.body)!==r&&(Sa(t?()=>t.focus():()=>r?.blur()),lO(t??e.ownerDocument.body))}s(vn,"focusElement");function uO(e){!Dc(e)||Vo(e.ownerDocument)!==e||Sa(()=>e.blur())}s(uO,"blurElement");var zn={};zn.click=(e,t,r)=>{let n=t.closest("button,input,label,select,textarea"),a=n&&ke(n,"label")&&n.control;if(a&&a!==t)return()=>{Dc(a)&&(vn(a),r.dispatchEvent(a,rO(e)))};if(ke(t,"input",{type:"file"}))return()=>{uO(t),t.dispatchEvent(new(cr(t)).Event("fileDialog")),vn(t)}};var _o=Symbol("Displayed value in UI"),hn=Symbol("Displayed selection in UI"),Wl=Symbol("Initial value to compare on blur");function cO(e){return typeof e=="object"&&_o in e}s(cO,"isUIValue");function pO(e){return!!e&&typeof e=="object"&&hn in e}s(pO,"isUISelectionStart");function dO(e,t){e[Wl]===void 0&&(e[Wl]=e.value),e[_o]=t,e.value=Object.assign(new String(t),{[_o]:!0})}s(dO,"setUIValue");function Rr(e){return e[_o]===void 0?e.value:String(e[_o])}s(Rr,"getUIValue");function Oc(e){e[_o]=void 0}s(Oc,"setUIValueClean");function Vg(e){e[Wl]=void 0}s(Vg,"clearInitialValue");function fO(e){return e[Wl]}s(fO,"getInitialValue");function hO(e,t){e[hn]=t}s(hO,"setUISelectionRaw");function Ba(e,{focusOffset:t,anchorOffset:r=t},n="replace"){let a=Rr(e).length,o=s(d=>Math.max(0,Math.min(a,d)),"sanitizeOffset"),i=n==="replace"||e[hn]===void 0?o(r):e[hn].anchorOffset,l=o(t),u=Math.min(i,l),c=Math.max(i,l);if(e[hn]={anchorOffset:i,focusOffset:l},e.selectionStart===u&&e.selectionEnd===c)return;let p=Object.assign(new Number(u),{[hn]:!0});try{e.setSelectionRange(p,c)}catch{}}s(Ba,"setUISelection");function To(e){var t,r,n;let a=(n=e[hn])!==null&&n!==void 0?n:{anchorOffset:(t=e.selectionStart)!==null&&t!==void 0?t:0,focusOffset:(r=e.selectionEnd)!==null&&r!==void 0?r:0};return{...a,startOffset:Math.min(a.anchorOffset,a.focusOffset),endOffset:Math.max(a.anchorOffset,a.focusOffset)}}s(To,"getUISelection");function mO(e){return!!e[hn]}s(mO,"hasUISelection");function wi(e){e[hn]=void 0}s(wi,"setUISelectionClean");var Yl=globalThis.parseInt;function yO(e){let t=e.replace(/\D/g,"");if(t.length<2)return e;let r=Yl(t[0],10),n=Yl(t[1],10);if(r>=3||r===2&&n>=4){let a;return r>=3?a=1:a=2,Ef(t,a)}return e.length===2?e:Ef(t,2)}s(yO,"buildTimeValue");function Ef(e,t){let r=e.slice(0,t),n=Math.min(Yl(r,10),23),a=e.slice(t),o=Yl(a,10),i=Math.min(o,59);return`${n.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}`}s(Ef,"build");function Hg(e,t){let r=e.cloneNode();return r.value=t,r.value===t}s(Hg,"isValidDateOrTimeValue");var gO=(function(e){return e.email="email",e.password="password",e.search="search",e.telephone="telephone",e.text="text",e.url="url",e})(gO||{});function bO(e){var t;let r=(t=e.getAttribute("maxlength"))!==null&&t!==void 0?t:"";return/^\d+$/.test(r)&&Number(r)>=0?Number(r):void 0}s(bO,"getMaxLength");function vO(e){return ke(e,"textarea")||ke(e,"input")&&e.type in gO}s(vO,"supportsMaxLength");function Jg(e,t,r,n){if(xi(e)&&t+r>=0&&t+r<=e.nodeValue.length)return{node:e,offset:t+r};let a=Cf(e,t,r);if(a){if(xi(a))return{node:a,offset:r>0?Math.min(1,a.nodeValue.length):Math.max(a.nodeValue.length-1,0)};if(ke(a,"br")){let o=Cf(a,void 0,r);return o?xi(o)?{node:o,offset:r>0?0:o.nodeValue.length}:r<0&&ke(o,"br")?{node:a.parentNode,offset:si(a)}:{node:o.parentNode,offset:si(o)+(r>0?0:1)}:r<0&&n==="deleteContentBackward"?{node:a.parentNode,offset:si(a)}:void 0}else return{node:a.parentNode,offset:si(a)+(r>0?1:0)}}}s(Jg,"getNextCursorPosition");function Cf(e,t,r){let n=Number(t)+(r<0?-1:0);return t!==void 0&&Rc(e)&&n>=0&&n<e.children.length&&(e=e.children[n]),CO(e,r===1?"next":"previous",EO)}s(Cf,"getNextCharacterContentNode");function EO(e){if(xi(e))return!0;if(Rc(e)){if(ke(e,["input","textarea"]))return e.type!=="hidden";if(ke(e,"br"))return!0}return!1}s(EO,"isTreatedAsCharacterContent");function si(e){let t=0;for(;e.previousSibling;)t++,e=e.previousSibling;return t}s(si,"getOffset");function Rc(e){return e.nodeType===1}s(Rc,"isElement");function xi(e){return e.nodeType===3}s(xi,"isTextNode");function CO(e,t,r){for(;;){var n;let a=e[`${t}Sibling`];if(a){if(e=wO(a,t==="next"?"first":"last"),r(e))return e}else if(e.parentNode&&(!Rc(e.parentNode)||!Jn(e.parentNode)&&e.parentNode!==((n=e.ownerDocument)===null||n===void 0?void 0:n.body)))e=e.parentNode;else break}}s(CO,"walkNodes");function wO(e,t){for(;e.hasChildNodes();)e=e[`${t}Child`];return e}s(wO,"getDescendant");var Gi=Symbol("Track programmatic changes for React workaround");function xO(e){return Object.getOwnPropertyNames(e).some(t=>t.startsWith("__react"))&&cr(e).REACT_VERSION===17}s(xO,"isReact17Element");function AO(e){xO(e)&&(e[Gi]={previousValue:String(e.value),tracked:[]})}s(AO,"startTrackValue");function SO(e,t){var r,n;(n=e[Gi])===null||n===void 0||(r=n.tracked)===null||r===void 0||r.push(t),e[Gi]||(Oc(e),Ba(e,{focusOffset:t.length}))}s(SO,"trackOrSetValue");function _O(e,t){var r;let n=e[Gi];if(e[Gi]=void 0,!(!(n==null||(r=n.tracked)===null||r===void 0)&&r.length))return;let a=n.tracked.length===2&&n.tracked[0]===n.previousValue&&n.tracked[1]===e.value;a||Oc(e),mO(e)&&Ba(e,{focusOffset:a?t:e.value.length})}s(_O,"commitValueAfterInput");function zg(e){let t=TO(e);if(t&&Or(t))return{type:"input",selection:To(t)};let r=t?.ownerDocument.getSelection();return{type:So(e)&&r?.anchorNode&&So(r.anchorNode)?"contenteditable":"default",selection:r}}s(zg,"getTargetTypeAndSelection");function TO(e){return e.nodeType===1?e:e.parentElement}s(TO,"getElement");function PO(e){let t=zg(e);if(t.type==="input")return t.selection;if(t.type==="contenteditable"){var r;return(r=t.selection)===null||r===void 0?void 0:r.getRangeAt(0)}}s(PO,"getInputRange");function Gn({focusNode:e,focusOffset:t,anchorNode:r=e,anchorOffset:n=t}){var a,o;if(zg(e).type==="input")return Ba(e,{anchorOffset:n,focusOffset:t});(o=r.ownerDocument)===null||o===void 0||(a=o.getSelection())===null||a===void 0||a.setBaseAndExtent(r,n,e,t)}s(Gn,"setSelection");function Gg(e){return ke(e,"input")&&["date","time"].includes(e.type)}s(Gg,"isDateOrTime");function _a(e,t,r,n="insertText"){let a=PO(t);a&&(!Gg(t)&&!e.dispatchUIEvent(t,"beforeinput",{inputType:n,data:r})||("startContainer"in a?DO(e,t,a,r,n):OO(e,t,a,r,n)))}s(_a,"input");function DO(e,t,r,n,a){let o=!1;if(!r.collapsed)o=!0,r.deleteContents();else if(["deleteContentBackward","deleteContentForward"].includes(a)){let i=Jg(r.startContainer,r.startOffset,a==="deleteContentBackward"?-1:1,a);if(i){o=!0;let l=r.cloneRange();l.comparePoint(i.node,i.offset)<0?l.setStart(i.node,i.offset):l.setEnd(i.node,i.offset),l.deleteContents()}}if(n)if(r.endContainer.nodeType===3){let i=r.endOffset;r.endContainer.insertData(i,n),r.setStart(r.endContainer,i+n.length),r.setEnd(r.endContainer,i+n.length)}else{let i=t.ownerDocument.createTextNode(n);r.insertNode(i),r.setStart(i,n.length),r.setEnd(i,n.length)}(o||n)&&e.dispatchUIEvent(t,"input",{inputType:a})}s(DO,"editContenteditable");function OO(e,t,r,n,a){let o=n;if(vO(t)){let c=bO(t);if(c!==void 0&&n.length>0){let p=c-t.value.length;if(p>0)o=n.substring(0,p);else return}}let{newValue:i,newOffset:l,oldValue:u}=RO(o,t,r,a);i===u&&l===r.startOffset&&l===r.endOffset||ke(t,"input",{type:"number"})&&!FO(i)||(dO(t,i),Gn({focusNode:t,anchorOffset:l,focusOffset:l}),Gg(t)?Hg(t,i)&&(wf(e,t,l,{}),e.dispatchUIEvent(t,"change"),Vg(t)):wf(e,t,l,{data:n,inputType:a}))}s(OO,"editInputElement");function RO(e,t,{startOffset:r,endOffset:n},a){let o=Rr(t),i=Math.max(0,r===n&&a==="deleteContentBackward"?r-1:r),l=o.substring(0,i),u=Math.min(o.length,r===n&&a==="deleteContentForward"?r+1:n),c=o.substring(u,o.length),p=`${l}${e}${c}`,d=i+e.length;if(ke(t,"input",{type:"time"})){let h=yO(p);h!==""&&Hg(t,h)&&(p=h,d=h.length)}return{oldValue:o,newValue:p,newOffset:d}}s(RO,"calculateNewValue");function wf(e,t,r,n){e.dispatchUIEvent(t,"input",n),_O(t,r)}s(wf,"commitInput");function FO(e){var t,r;let n=e.split("e",2);return!(/[^\d.\-e]/.test(e)||Number((t=e.match(/-/g))===null||t===void 0?void 0:t.length)>2||Number((r=e.match(/\./g))===null||r===void 0?void 0:r.length)>1||n[1]&&!/^-?\d*$/.test(n[1]))}s(FO,"isValidNumberInput");zn.cut=(e,t,r)=>()=>{Aa(t)&&_a(r,t,"","deleteByCut")};function IO(e){return e?Jn(e)?e.textContent:Rr(e):null}s(IO,"getValueOrTextContent");function NO(e){let t=cr(e);for(let r=e;r?.ownerDocument;r=r.parentElement){let{display:n,visibility:a}=t.getComputedStyle(r);if(n==="none"||a==="hidden")return!1}return!0}s(NO,"isVisible");function kO(e,t){let r=e.ownerDocument,n=r.querySelectorAll(tO),a=Array.from(n).filter(u=>u===e||!(Number(u.getAttribute("tabindex"))<0||Kr(u)));Number(e.getAttribute("tabindex"))>=0&&a.sort((u,c)=>{let p=Number(u.getAttribute("tabindex")),d=Number(c.getAttribute("tabindex"));return p===d?0:p===0?1:d===0?-1:p-d});let o={},i=[r.body],l=ke(e,"input",{type:"radio"})?e.name:void 0;a.forEach(u=>{let c=u;if(ke(c,"input",{type:"radio"})&&c.name){if(c===e){i.push(c);return}else if(c.name===l)return;if(c.checked){i=i.filter(p=>!ke(p,"input",{type:"radio",name:c.name})),i.push(c),o[c.name]=c;return}if(typeof o[c.name]<"u")return}i.push(c)});for(let u=i.findIndex(c=>c===e);;)if(u+=t?-1:1,u===i.length?u=0:u===-1&&(u=i.length-1),i[u]===e||i[u]===r.body||NO(i[u]))return i[u]}s(kO,"getTabDestination");function xf(e,t){if(Or(e)){let r=To(e);Gn({focusNode:e,focusOffset:r.startOffset===r.endOffset?r.focusOffset+t:t<0?r.startOffset:r.endOffset})}else{let r=e.ownerDocument.getSelection();if(!r?.focusNode)return;if(r.isCollapsed){let n=Jg(r.focusNode,r.focusOffset,t);n&&Gn({focusNode:n.node,focusOffset:n.offset})}else r[t<0?"collapseToStart":"collapseToEnd"]()}}s(xf,"moveSelection");function Wg(e){if(Or(e))return Gn({focusNode:e,anchorOffset:0,focusOffset:Rr(e).length});var t;let r=(t=So(e))!==null&&t!==void 0?t:e.ownerDocument.body;Gn({focusNode:r,anchorOffset:0,focusOffset:r.childNodes.length})}s(Wg,"selectAll");function BO(e){if(Or(e))return To(e).startOffset===0&&To(e).endOffset===Rr(e).length;var t;let r=(t=So(e))!==null&&t!==void 0?t:e.ownerDocument.body,n=e.ownerDocument.getSelection();return n?.anchorNode===r&&n.focusNode===r&&n.anchorOffset===0&&n.focusOffset===r.childNodes.length}s(BO,"isAllSelected");function Za(e,t,r){var n;if(Or(e))return Gn({focusNode:e,anchorOffset:t,focusOffset:r});if(Jn(e)&&((n=e.firstChild)===null||n===void 0?void 0:n.nodeType)===3)return Gn({focusNode:e.firstChild,anchorOffset:t,focusOffset:r});throw new Error("Not implemented. The result of this interaction is unreliable.")}s(Za,"setSelectionRange");function li(e,t,r){let n=cr(t),a=Array.from(t.ownerDocument.querySelectorAll(t.name?`input[type="radio"][name="${n.CSS.escape(t.name)}"]`:'input[type="radio"][name=""], input[type="radio"]:not([name])'));for(let o=a.findIndex(i=>i===t)+r;;o+=r){if(a[o]||(o=r>0?0:a.length-1),a[o]===t)return;if(!Kr(a[o])){vn(a[o]),e.dispatchUIEvent(a[o],"click");return}}}s(li,"walkRadio");zn.keydown=(e,t,r)=>{var n,a;return(a=(n=c0[e.key])===null||n===void 0?void 0:n.call(c0,e,t,r))!==null&&a!==void 0?a:p7(e,t,r)};var c0={ArrowDown:s((e,t,r)=>{if(ke(t,"input",{type:"radio"}))return()=>li(r,t,1)},"ArrowDown"),ArrowLeft:s((e,t,r)=>ke(t,"input",{type:"radio"})?()=>li(r,t,-1):()=>xf(t,-1),"ArrowLeft"),ArrowRight:s((e,t,r)=>ke(t,"input",{type:"radio"})?()=>li(r,t,1):()=>xf(t,1),"ArrowRight"),ArrowUp:s((e,t,r)=>{if(ke(t,"input",{type:"radio"}))return()=>li(r,t,-1)},"ArrowUp"),Backspace:s((e,t,r)=>{if(Aa(t))return()=>{_a(r,t,"","deleteContentBackward")}},"Backspace"),Delete:s((e,t,r)=>{if(Aa(t))return()=>{_a(r,t,"","deleteContentForward")}},"Delete"),End:s((e,t)=>{if(ke(t,["input","textarea"])||Jn(t))return()=>{var r,n;let a=(n=(r=IO(t))===null||r===void 0?void 0:r.length)!==null&&n!==void 0?n:0;Za(t,a,a)}},"End"),Home:s((e,t)=>{if(ke(t,["input","textarea"])||Jn(t))return()=>{Za(t,0,0)}},"Home"),PageDown:s((e,t)=>{if(ke(t,["input"]))return()=>{let r=Rr(t).length;Za(t,r,r)}},"PageDown"),PageUp:s((e,t)=>{if(ke(t,["input"]))return()=>{Za(t,0,0)}},"PageUp"),Tab:s((e,t,r)=>()=>{let n=kO(t,r.system.keyboard.modifiers.Shift);vn(n),Or(n)&&Ba(n,{anchorOffset:0,focusOffset:n.value.length})},"Tab")},p7=s((e,t,r)=>{if(e.code==="KeyA"&&r.system.keyboard.modifiers.Control)return()=>Wg(t)},"combinationBehavior");zn.keypress=(e,t,r)=>{if(e.key==="Enter"){if(ke(t,"button")||ke(t,"input")&&d7.includes(t.type)||ke(t,"a")&&t.href)return()=>{r.dispatchUIEvent(t,"click")};if(ke(t,"input")){let n=t.form,a=n?.querySelector('input[type="submit"], button:not([type]), button[type="submit"]');return a?()=>r.dispatchUIEvent(a,"click"):n&&f7.includes(t.type)&&n.querySelectorAll("input").length===1?()=>r.dispatchUIEvent(n,"submit"):void 0}}if(Aa(t)){let n=e.key==="Enter"?Jn(t)&&!r.system.keyboard.modifiers.Shift?"insertParagraph":"insertLineBreak":"insertText",a=e.key==="Enter"?`
|
|
351
|
+
`:e.key;return()=>_a(r,t,a,n)}};var d7=["button","color","file","image","reset","submit"],f7=["email","month","password","search","tel","text","url","week"];zn.keyup=(e,t,r)=>{var n;return(n=p0[e.key])===null||n===void 0?void 0:n.call(p0,e,t,r)};var p0={" ":s((e,t,r)=>{if(Lg(t))return()=>r.dispatchUIEvent(t,"click")}," ")};zn.paste=(e,t,r)=>{if(Aa(t))return()=>{var n;let a=(n=e.clipboardData)===null||n===void 0?void 0:n.getData("text");a&&_a(r,t,a,"insertFromPaste")}};var jO={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 Yg(e){return jO[e].EventType}s(Yg,"getEventClass");var h7=["MouseEvent","PointerEvent"];function qO(e){return h7.includes(Yg(e))}s(qO,"isMouseEvent");function MO(e){return Yg(e)==="KeyboardEvent"}s(MO,"isKeyboardEvent");var m7={ClipboardEvent:[$O],Event:[],FocusEvent:[Ja,UO],InputEvent:[Ja,VO],MouseEvent:[Ja,rl,Af],PointerEvent:[Ja,rl,Af,JO],KeyboardEvent:[Ja,rl,HO]};function Kg(e,t,r){let n=cr(t),{EventType:a,defaultInit:o}=jO[e],i=new(LO(n))[a](e,o);return m7[a].forEach(l=>l(i,r??{})),i}s(Kg,"createEvent");function LO(e){var t,r,n,a,o,i,l,u,c,p,d,h,f,m,y,b;let g=(b=e.Event)!==null&&b!==void 0?b:(t=class{},s(t,"Event"),t);var v;let D=(v=e.AnimationEvent)!==null&&v!==void 0?v:(r=class extends g{},s(r,"AnimationEvent"),r);var S;let P=(S=e.ClipboardEvent)!==null&&S!==void 0?S:(n=class extends g{},s(n,"ClipboardEvent"),n);var w;let E=(w=e.PopStateEvent)!==null&&w!==void 0?w:(a=class extends g{},s(a,"PopStateEvent"),a);var C;let _=(C=e.ProgressEvent)!==null&&C!==void 0?C:(o=class extends g{},s(o,"ProgressEvent"),o);var k;let B=(k=e.TransitionEvent)!==null&&k!==void 0?k:(i=class extends g{},s(i,"TransitionEvent"),i);var W;let z=(W=e.UIEvent)!==null&&W!==void 0?W:(l=class extends g{},s(l,"UIEvent"),l);var R;let U=(R=e.CompositionEvent)!==null&&R!==void 0?R:(u=class extends z{},s(u,"CompositionEvent"),u);var j;let Y=(j=e.FocusEvent)!==null&&j!==void 0?j:(c=class extends z{},s(c,"FocusEvent"),c);var Q;let ae=(Q=e.InputEvent)!==null&&Q!==void 0?Q:(p=class extends z{},s(p,"InputEvent"),p);var le;let M=(le=e.KeyboardEvent)!==null&&le!==void 0?le:(d=class extends z{},s(d,"KeyboardEvent"),d);var L;let K=(L=e.MouseEvent)!==null&&L!==void 0?L:(h=class extends z{},s(h,"MouseEvent"),h);var X;let ie=(X=e.DragEvent)!==null&&X!==void 0?X:(f=class extends K{},s(f,"DragEvent"),f);var te;let ue=(te=e.PointerEvent)!==null&&te!==void 0?te:(m=class extends K{},s(m,"PointerEvent"),m);var ve;let je=(ve=e.TouchEvent)!==null&&ve!==void 0?ve:(y=class extends z{},s(y,"TouchEvent"),y);return{Event:g,AnimationEvent:D,ClipboardEvent:P,PopStateEvent:E,ProgressEvent:_,TransitionEvent:B,UIEvent:z,CompositionEvent:U,FocusEvent:Y,InputEvent:ae,KeyboardEvent:M,MouseEvent:K,DragEvent:ie,PointerEvent:ue,TouchEvent:je}}s(LO,"getEventConstructors");function xn(e,t){for(let[r,n]of Object.entries(t))Object.defineProperty(e,r,{get:s(()=>n??null,"get")})}s(xn,"assignProps");function ft(e){return Number(e??0)}s(ft,"sanitizeNumber");function $O(e,{clipboardData:t}){xn(e,{clipboardData:t})}s($O,"initClipboardEvent");function UO(e,{relatedTarget:t}){xn(e,{relatedTarget:t})}s(UO,"initFocusEvent");function VO(e,{data:t,inputType:r,isComposing:n}){xn(e,{data:t,isComposing:!!n,inputType:String(r)})}s(VO,"initInputEvent");function Ja(e,{view:t,detail:r}){xn(e,{view:t,detail:ft(r??0)})}s(Ja,"initUIEvent");function rl(e,{altKey:t,ctrlKey:r,metaKey:n,shiftKey:a,modifierAltGraph:o,modifierCapsLock:i,modifierFn:l,modifierFnLock:u,modifierNumLock:c,modifierScrollLock:p,modifierSymbol:d,modifierSymbolLock:h}){xn(e,{altKey:!!t,ctrlKey:!!r,metaKey:!!n,shiftKey:!!a,getModifierState(f){return!!{Alt:t,AltGraph:o,CapsLock:i,Control:r,Fn:l,FnLock:u,Meta:n,NumLock:c,ScrollLock:p,Shift:a,Symbol:d,SymbolLock:h}[f]}})}s(rl,"initUIEventModifiers");function HO(e,{key:t,code:r,location:n,repeat:a,isComposing:o,charCode:i}){xn(e,{key:String(t),code:String(r),location:ft(n),repeat:!!a,isComposing:!!o,charCode:i})}s(HO,"initKeyboardEvent");function Af(e,{x:t,y:r,screenX:n,screenY:a,clientX:o=t,clientY:i=r,button:l,buttons:u,relatedTarget:c,offsetX:p,offsetY:d,pageX:h,pageY:f}){xn(e,{screenX:ft(n),screenY:ft(a),clientX:ft(o),x:ft(o),clientY:ft(i),y:ft(i),button:ft(l),buttons:ft(u),relatedTarget:c,offsetX:ft(p),offsetY:ft(d),pageX:ft(h),pageY:ft(f)})}s(Af,"initMouseEvent");function JO(e,{pointerId:t,width:r,height:n,pressure:a,tangentialPressure:o,tiltX:i,tiltY:l,twist:u,pointerType:c,isPrimary:p}){xn(e,{pointerId:ft(t),width:ft(r??1),height:ft(n??1),pressure:ft(a),tangentialPressure:ft(o),tiltX:ft(i),tiltY:ft(l),twist:ft(u),pointerType:String(c),isPrimary:!!p})}s(JO,"initPointerEvent");function zO(e,t,r,n=!1){(qO(t)||MO(t))&&(r={...r,...this.system.getUIEventModifiers()});let a=Kg(t,e,r);return Xg.call(this,e,a,n)}s(zO,"dispatchUIEvent");function Xg(e,t,r=!1){var n;let a=t.type,o=r?()=>{}:(n=zn[a])===null||n===void 0?void 0:n.call(zn,t,e,this);if(o){t.preventDefault();let i=!1;return Object.defineProperty(t,"defaultPrevented",{get:s(()=>i,"get")}),Object.defineProperty(t,"preventDefault",{value:s(()=>{i=t.cancelable},"value")}),Sa(()=>e.dispatchEvent(t)),i||o(),!i}return Sa(()=>e.dispatchEvent(t))}s(Xg,"dispatchEvent");function In(e,t,r){let n=Kg(t,e,r);Sa(()=>e.dispatchEvent(n))}s(In,"dispatchDOMEvent");var d0=Symbol("patched focus/blur methods");function Qg(e){if(e.prototype[d0])return;let{focus:t,blur:r}=e.prototype;Object.defineProperties(e.prototype,{focus:{configurable:!0,get:s(()=>a,"get")},blur:{configurable:!0,get:s(()=>o,"get")},[d0]:{configurable:!0,get:s(()=>({focus:t,blur:r}),"get")}});let n;function a(i){if(this.ownerDocument.visibilityState!=="hidden")return t.call(this,i);let l=Sf(this.ownerDocument);if(l===this)return;let u=Symbol("focus call");n=u,l&&(r.call(l),In(l,"blur",{relatedTarget:this}),In(l,"focusout",{relatedTarget:n===u?this:null})),n===u&&(t.call(this,i),In(this,"focus",{relatedTarget:l})),n===u&&In(this,"focusin",{relatedTarget:l})}s(a,"patchedFocus");function o(){if(this.ownerDocument.visibilityState!=="hidden")return r.call(this);let i=Sf(this.ownerDocument);i===this&&(n=Symbol("blur call"),r.call(this),In(i,"blur",{relatedTarget:null}),In(i,"focusout",{relatedTarget:null}))}s(o,"patchedBlur")}s(Qg,"patchFocus");function Sf(e){let t=Vo(e);return t?.tagName==="BODY"?null:t}s(Sf,"getActiveTarget");var gp=Symbol("Interceptor for programmatical calls");function ua(e,t,r){let n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=Object.getOwnPropertyDescriptor(e,t),o=n?.set?"set":"value";if(typeof n?.[o]!="function"||n[o][gp])throw new Error(`Element ${e.tagName} does not implement "${String(t)}".`);function i(...l){let{applyNative:u=!1,realArgs:c,then:p}=r.call(this,...l),d=(!u&&a||n)[o];o==="set"?d.call(this,c):d.call(this,...c),p?.()}s(i,"intercept"),i[gp]=gp,Object.defineProperty(e,t,{...a??n,[o]:i})}s(ua,"prepareInterceptor");function GO(e){ua(e,"value",s(function(t){let r=cO(t);return r&&AO(this),{applyNative:!!r,realArgs:WO(this,t),then:r?void 0:()=>SO(this,String(t))}},"interceptorImpl"))}s(GO,"prepareValueInterceptor");function WO(e,t){return ke(e,"input",{type:"number"})&&String(t)!==""&&!Number.isNaN(Number(t))?String(Number(t)):String(t)}s(WO,"sanitizeValue");function YO(e){ua(e,"setSelectionRange",s(function(t,...r){let n=pO(t);return{applyNative:!!n,realArgs:[Number(t),...r],then:s(()=>n?void 0:wi(e),"then")}},"interceptorImpl")),ua(e,"selectionStart",s(function(t){return{realArgs:t,then:s(()=>wi(e),"then")}},"interceptorImpl")),ua(e,"selectionEnd",s(function(t){return{realArgs:t,then:s(()=>wi(e),"then")}},"interceptorImpl")),ua(e,"select",s(function(){return{realArgs:[],then:s(()=>hO(e,{anchorOffset:0,focusOffset:Rr(e).length}),"then")}},"interceptorImpl"))}s(YO,"prepareSelectionInterceptor");function KO(e){ua(e,"setRangeText",s(function(...t){return{realArgs:t,then:s(()=>{Oc(e),wi(e)},"then")}},"interceptorImpl"))}s(KO,"prepareRangeTextInterceptor");var so=Symbol("Node prepared with document state workarounds");function Zg(e){e[so]||(e.addEventListener("focus",t=>{let r=t.target;_f(r)},{capture:!0,passive:!0}),e.activeElement&&_f(e.activeElement),e.addEventListener("blur",t=>{let r=t.target,n=fO(r);n!==void 0&&(r.value!==n&&In(r,"change"),Vg(r))},{capture:!0,passive:!0}),e[so]=so)}s(Zg,"prepareDocument");function _f(e){e[so]||(ke(e,["input","textarea"])&&(GO(e),YO(e),KO(e)),e[so]=so)}s(_f,"prepareElement");function XO(e){return QO(e)?e:e.ownerDocument}s(XO,"getDocumentFromNode");function QO(e){return e.nodeType===9}s(QO,"isDocument");var ir=(function(e){return e[e.Trigger=2]="Trigger",e[e.Call=1]="Call",e})({});function eo(e,t){e.levelRefs[t]={}}s(eo,"setLevelRef");function ui(e,t){return e.levelRefs[t]}s(ui,"getLevelRef");function Ta(e){let t=e.delay;if(typeof t=="number")return Promise.all([new Promise(r=>globalThis.setTimeout(()=>r(),t)),e.advanceTimers(t)])}s(Ta,"wait");var nl=(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 On(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(On,"_define_property");var Br=(function(e){return e[e.STANDARD=0]="STANDARD",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.NUMPAD=3]="NUMPAD",e})({}),y7=["Alt","AltGraph","Control","Fn","Meta","Shift","Symbol"];function Tf(e){return y7.includes(e)}s(Tf,"isModifierKey");var g7=["CapsLock","FnLock","NumLock","ScrollLock","SymbolLock"];function Pf(e){return g7.includes(e)}s(Pf,"isModifierLock");var ZO=class{isKeyPressed(t){return this.pressed.has(String(t.code))}getPressedKeys(){return this.pressed.values().map(t=>t.keyDef)}async keydown(t,r){let n=String(r.key),a=String(r.code),o=tl(t.config.document);this.setKeydownTarget(o),this.pressed.add(a,r),Tf(n)&&(this.modifiers[n]=!0);let i=t.dispatchUIEvent(o,"keydown",{key:n,code:a});Pf(n)&&!this.modifiers[n]&&(this.modifiers[n]=!0,this.modifierLockStart[n]=!0),i&&this.pressed.setUnprevented(a),i&&this.hasKeyPress(n)&&t.dispatchUIEvent(tl(t.config.document),"keypress",{key:n,code:a,charCode:r.key==="Enter"?13:String(r.key).charCodeAt(0)})}async keyup(t,r){let n=String(r.key),a=String(r.code),o=this.pressed.isUnprevented(a);this.pressed.delete(a),Tf(n)&&!this.pressed.values().find(i=>i.keyDef.key===n)&&(this.modifiers[n]=!1),t.dispatchUIEvent(tl(t.config.document),"keyup",{key:n,code:a},!o),Pf(n)&&this.modifiers[n]&&(this.modifierLockStart[n]?this.modifierLockStart[n]=!1:this.modifiers[n]=!1)}setKeydownTarget(t){t!==this.lastKeydownTarget&&(this.carryChar=""),this.lastKeydownTarget=t}hasKeyPress(t){return(t.length===1||t==="Enter")&&!this.modifiers.Control&&!this.modifiers.Alt}constructor(t){On(this,"system",void 0),On(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}),On(this,"pressed",new class{add(r,n){var a,o,i;(i=(a=this.registry)[o=r])!==null&&i!==void 0||(a[o]={keyDef:n,unpreventedDefault:!1})}has(r){return!!this.registry[r]}setUnprevented(r){let n=this.registry[r];n&&(n.unpreventedDefault=!0)}isUnprevented(r){var n;return!!(!((n=this.registry[r])===null||n===void 0)&&n.unpreventedDefault)}delete(r){delete this.registry[r]}values(){return Object.values(this.registry)}constructor(){On(this,"registry",{})}}),On(this,"carryChar",""),On(this,"lastKeydownTarget",void 0),On(this,"modifierLockStart",{}),this.system=t}};s(ZO,"KeyboardHost");var b7=ZO,v7=[..."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:Br.LEFT},{code:"AltRight",key:"Alt",location:Br.RIGHT},{code:"ShiftLeft",key:"Shift",location:Br.LEFT},{code:"ShiftRight",key:"Shift",location:Br.RIGHT},{code:"ControlLeft",key:"Control",location:Br.LEFT},{code:"ControlRight",key:"Control",location:Br.RIGHT},{code:"MetaLeft",key:"Meta",location:Br.LEFT},{code:"MetaRight",key:"Meta",location:Br.RIGHT},{code:"OSLeft",key:"OS",location:Br.LEFT},{code:"OSRight",key:"OS",location:Br.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"}],E7=[{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 eR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(eR,"_define_property");var tR=class{getButtons(){let t=0;for(let r of Object.keys(this.pressed))t|=2**Number(r);return t}down(t){let r=Kl(t.button);if(r in this.pressed){this.pressed[r].push(t);return}return this.pressed[r]=[t],r}up(t){let r=Kl(t.button);if(r in this.pressed&&(this.pressed[r]=this.pressed[r].filter(n=>n.name!==t.name),this.pressed[r].length===0))return delete this.pressed[r],r}constructor(){eR(this,"pressed",{})}};s(tR,"Buttons");var rR=tR,f0={primary:0,secondary:1,auxiliary:2,back:3,X1:3,forward:4,X2:4};function Kl(e=0){return e in f0?f0[e]:Number(e)}s(Kl,"getMouseButtonId");var h0={1:2,2:1};function Xl(e){return e=Kl(e),e in h0?h0[e]:e}s(Xl,"getMouseEventButton");function nR(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(nR,"_define_property");var aR=class{get countPressed(){return this.pressedKeys.size}isPressed(t){return this.pressedKeys.has(t.name)}addPressed(t){return this.pressedKeys.add(t.name)}removePressed(t){return this.pressedKeys.delete(t.name)}constructor(){nR(this,"pressedKeys",new Set)}};s(aR,"Device");var C7=aR;function lo(e,t){let r=[];for(let o=e;o;o=o.parentElement)r.push(o);let n=[];for(let o=t;o;o=o.parentElement)n.push(o);let a=0;for(;!(a>=r.length||a>=n.length||r[r.length-1-a]!==n[n.length-1-a]);a++);return[r.slice(0,r.length-a),n.slice(0,n.length-a),n.slice(n.length-a)]}s(lo,"getTreeDiff");function Ql({target:e,node:t,offset:r}){return Or(e)?{node:e,offset:r??Rr(e).length}:t?{node:t,offset:r??(t.nodeType===3?t.nodeValue.length:t.childNodes.length)}:eb(e,r)}s(Ql,"resolveCaretPosition");function eb(e,t,r=!0){let n=t===void 0?e.childNodes.length-1:0,a=t===void 0?-1:1;for(;t===void 0?n>=(r?Math.max(e.childNodes.length-1,0):0):n<=e.childNodes.length;){if(t&&n===e.childNodes.length)throw new Error("The given offset is out of bounds.");let o=e.childNodes.item(n),i=String(o.textContent);if(i.length)if(t!==void 0&&i.length<t)t-=i.length;else{if(o.nodeType===1)return eb(o,t,!1);if(o.nodeType===3)return{node:o,offset:t??o.nodeValue.length}}n+=a}return{node:e,offset:e.childNodes.length}}s(eb,"findNodeAtTextOffset");function oR({document:e,target:t,clickCount:r,node:n,offset:a}){if(sO(t))return;let o=Or(t),i=String(o?Rr(t):t.textContent),[l,u]=n?[a,a]:iR(i,a,r);if(o)return Ba(t,{anchorOffset:l??i.length,focusOffset:u??i.length}),{node:t,start:l??0,end:u??i.length};{let{node:c,offset:p}=Ql({target:t,node:n,offset:l}),{node:d,offset:h}=Ql({target:t,node:n,offset:u}),f=t.ownerDocument.createRange();try{f.setStart(c,p),f.setEnd(d,h)}catch{throw new Error("The given offset is out of bounds.")}let m=e.getSelection();return m?.removeAllRanges(),m?.addRange(f.cloneRange()),f}}s(oR,"setSelectionPerMouseDown");function iR(e,t,r){if(r%3===1||e.length===0)return[t,t];let n=t??e.length;return r%3===2?[n-e.substr(0,t).match(/(\w+|\s+|\W)?$/)[0].length,t===void 0?t:t+e.substr(t).match(/^(\w+|\s+|\W)?/)[0].length]:[n-e.substr(0,t).match(/[^\r\n]*$/)[0].length,t===void 0?t:t+e.substr(t).match(/^[^\r\n]*/)[0].length]}s(iR,"getTextRange");function sR(e,{document:t,target:r,node:n,offset:a}){let o=Ql({target:r,node:n,offset:a});if("node"in e){if(o.node===e.node){let i=o.offset<e.start?e.end:e.start,l=o.offset>e.end||o.offset<e.start?o.offset:e.end;Ba(e.node,{anchorOffset:i,focusOffset:l})}}else{let i=e.cloneRange(),l=i.comparePoint(o.node,o.offset);l<0?i.setStart(o.node,o.offset):l>0&&i.setEnd(o.node,o.offset);let u=t.getSelection();u?.removeAllRanges(),u?.addRange(i.cloneRange())}}s(sR,"modifySelectionPerMouseMove");function tb(e,t){var r,n,a,o,i,l,u,c,p,d,h,f,m,y,b,g,v,D,S,P,w,E,C,_;return e.target!==t.target||((r=e.coords)===null||r===void 0?void 0:r.x)!==((n=t.coords)===null||n===void 0?void 0:n.x)||((a=e.coords)===null||a===void 0?void 0:a.y)!==((o=t.coords)===null||o===void 0?void 0:o.y)||((i=e.coords)===null||i===void 0?void 0:i.clientX)!==((l=t.coords)===null||l===void 0?void 0:l.clientX)||((u=e.coords)===null||u===void 0?void 0:u.clientY)!==((c=t.coords)===null||c===void 0?void 0:c.clientY)||((p=e.coords)===null||p===void 0?void 0:p.offsetX)!==((d=t.coords)===null||d===void 0?void 0:d.offsetX)||((h=e.coords)===null||h===void 0?void 0:h.offsetY)!==((f=t.coords)===null||f===void 0?void 0:f.offsetY)||((m=e.coords)===null||m===void 0?void 0:m.pageX)!==((y=t.coords)===null||y===void 0?void 0:y.pageX)||((b=e.coords)===null||b===void 0?void 0:b.pageY)!==((g=t.coords)===null||g===void 0?void 0:g.pageY)||((v=e.coords)===null||v===void 0?void 0:v.screenX)!==((D=t.coords)===null||D===void 0?void 0:D.screenX)||((S=e.coords)===null||S===void 0?void 0:S.screenY)!==((P=t.coords)===null||P===void 0?void 0:P.screenY)||((w=e.caret)===null||w===void 0?void 0:w.node)!==((E=t.caret)===null||E===void 0?void 0:E.node)||((C=e.caret)===null||C===void 0?void 0:C.offset)!==((_=t.caret)===null||_===void 0?void 0:_.offset)}s(tb,"isDifferentPointerPosition");function Rn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(Rn,"_define_property");var lR=class{move(t,r,n){let a=this.position,o=this.getTarget(t);if(this.position=r,!tb(a,r))return;let i=this.getTarget(t),l=this.getEventInit("mousemove"),[u,c]=lo(o,i);return{leave:s(()=>{o!==i&&(t.dispatchUIEvent(o,"mouseout",l),u.forEach(p=>t.dispatchUIEvent(p,"mouseleave",l)))},"leave"),enter:s(()=>{o!==i&&(t.dispatchUIEvent(i,"mouseover",l),c.forEach(p=>t.dispatchUIEvent(p,"mouseenter",l)))},"enter"),move:s(()=>{n||(t.dispatchUIEvent(i,"mousemove",l),this.modifySelecting(t))},"move")}}down(t,r,n){let a=this.buttons.down(r);if(a===void 0)return;let o=this.getTarget(t);this.buttonDownTarget[a]=o;let i=this.getEventInit("mousedown",r.button),l=Kr(o);!n&&(l||t.dispatchUIEvent(o,"mousedown",i))&&(this.startSelecting(t,i.detail),vn(o)),!l&&Xl(r.button)===2&&t.dispatchUIEvent(o,"contextmenu",this.getEventInit("contextmenu",r.button))}up(t,r,n){let a=this.buttons.up(r);if(a===void 0)return;let o=this.getTarget(t);if(!Kr(o)){if(!n){let l=this.getEventInit("mouseup",r.button);t.dispatchUIEvent(o,"mouseup",l),this.endSelecting()}let i=lo(this.buttonDownTarget[a],o)[2][0];if(i){let l=this.getEventInit("click",r.button);l.detail&&(t.dispatchUIEvent(i,l.button===0?"click":"auxclick",l),l.button===0&&l.detail===2&&t.dispatchUIEvent(i,"dblclick",{...this.getEventInit("dblclick",r.button),detail:l.detail}))}}}resetClickCount(){this.clickCount.reset()}getEventInit(t,r){let n={...this.position.coords};return n.button=Xl(r),n.buttons=this.buttons.getButtons(),t==="mousedown"?n.detail=this.clickCount.getOnDown(n.button):t==="mouseup"?n.detail=this.clickCount.getOnUp(n.button):(t==="click"||t==="auxclick")&&(n.detail=this.clickCount.incOnClick(n.button)),n}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}startSelecting(t,r){var n,a;this.selecting=oR({document:t.config.document,target:this.getTarget(t),node:(n=this.position.caret)===null||n===void 0?void 0:n.node,offset:(a=this.position.caret)===null||a===void 0?void 0:a.offset,clickCount:r})}modifySelecting(t){var r,n;this.selecting&&sR(this.selecting,{document:t.config.document,target:this.getTarget(t),node:(r=this.position.caret)===null||r===void 0?void 0:r.node,offset:(n=this.position.caret)===null||n===void 0?void 0:n.offset})}endSelecting(){this.selecting=void 0}constructor(){Rn(this,"position",{}),Rn(this,"buttons",new rR),Rn(this,"selecting",void 0),Rn(this,"buttonDownTarget",{}),Rn(this,"clickCount",new class{incOnClick(t){let r=this.down[t]===void 0?void 0:Number(this.down[t])+1;return this.count=this.count[t]===void 0?{}:{[t]:Number(this.count[t])+1},r}getOnDown(t){var r;this.down={[t]:(r=this.count[t])!==null&&r!==void 0?r:0};var n;return this.count={[t]:(n=this.count[t])!==null&&n!==void 0?n:0},Number(this.count[t])+1}getOnUp(t){return this.down[t]===void 0?void 0:Number(this.down[t])+1}reset(){this.count={}}constructor(){Rn(this,"down",{}),Rn(this,"count",{})}})}};s(lR,"Mouse");var w7=lR;function Wi(e,t){var r;return((r=rb(e,t))===null||r===void 0?void 0:r.pointerEvents)!=="none"}s(Wi,"hasPointerEvents");function uR(e){let t=cr(e);for(let r=e,n=[];r?.ownerDocument;r=r.parentElement){n.push(r);let a=t.getComputedStyle(r).pointerEvents;if(a&&!["inherit","unset"].includes(a))return{pointerEvents:a,tree:n}}}s(uR,"closestPointerEventsDeclaration");var m0=Symbol("Last check for pointer-events");function rb(e,t){let r=t[m0];if(!(e.config.pointerEventsCheck!==nl.Never&&(!r||Df(e.config.pointerEventsCheck,nl.EachApiCall)&&r[ir.Call]!==ui(e,ir.Call)||Df(e.config.pointerEventsCheck,nl.EachTrigger)&&r[ir.Trigger]!==ui(e,ir.Trigger))))return r?.result;let n=uR(t);return t[m0]={[ir.Call]:ui(e,ir.Call),[ir.Trigger]:ui(e,ir.Trigger),result:n},n}s(rb,"checkPointerEvents");function to(e,t){let r=rb(e,t);if(r?.pointerEvents==="none")throw new Error([`Unable to perform pointer interaction as the element ${r.tree.length>1?"inherits":"has"} \`pointer-events: none\`:`,"",cR(r.tree)].join(`
|
|
352
|
+
`))}s(to,"assertPointerEvents");function cR(e){return e.reverse().map((t,r)=>["".padEnd(r),t.tagName,t.id&&`#${t.id}`,t.hasAttribute("data-testid")&&`(testId=${t.getAttribute("data-testid")})`,pR(t),e.length>1&&r===0&&" <-- This element declared `pointer-events: none`",e.length>1&&r===e.length-1&&" <-- Asserted pointer events here"].filter(Boolean).join("")).join(`
|
|
353
|
+
`)}s(cR,"printTree");function pR(e){var t;let r;if(e.hasAttribute("aria-label"))r=e.getAttribute("aria-label");else if(e.hasAttribute("aria-labelledby")){var n,a;r=(a=e.ownerDocument.getElementById(e.getAttribute("aria-labelledby")))===null||a===void 0||(n=a.textContent)===null||n===void 0?void 0:n.trim()}else if(ke(e,["button","input","meter","output","progress","select","textarea"])&&!((t=e.labels)===null||t===void 0)&&t.length)r=Array.from(e.labels).map(i=>{var l;return(l=i.textContent)===null||l===void 0?void 0:l.trim()}).join("|");else if(ke(e,"button")){var o;r=(o=e.textContent)===null||o===void 0?void 0:o.trim()}return r=r?.replace(/\n/g," "),Number(r?.length)>30&&(r=`${r?.substring(0,29)}…`),r?`(label=${r})`:""}s(pR,"getLabelDescr");function Df(e,t){return(e&t)>0}s(Df,"hasBitFlag");function Ur(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(Ur,"_define_property");var dR=class{init(t){let r=this.getTarget(t),[,n]=lo(null,r),a=this.getEventInit();return to(t,r),t.dispatchUIEvent(r,"pointerover",a),n.forEach(o=>t.dispatchUIEvent(o,"pointerenter",a)),this}move(t,r){let n=this.position,a=this.getTarget(t);if(this.position=r,!tb(n,r))return;let o=this.getTarget(t),i=this.getEventInit(-1),[l,u]=lo(a,o);return{leave:s(()=>{Wi(t,a)&&a!==o&&(t.dispatchUIEvent(a,"pointerout",i),l.forEach(c=>t.dispatchUIEvent(c,"pointerleave",i)))},"leave"),enter:s(()=>{to(t,o),a!==o&&(t.dispatchUIEvent(o,"pointerover",i),u.forEach(c=>t.dispatchUIEvent(c,"pointerenter",i)))},"enter"),move:s(()=>{t.dispatchUIEvent(o,"pointermove",i)},"move")}}down(t,r=0){if(this.isDown)return;let n=this.getTarget(t);to(t,n),this.isDown=!0,this.isPrevented=!t.dispatchUIEvent(n,"pointerdown",this.getEventInit(r))}up(t,r=0){if(!this.isDown)return;let n=this.getTarget(t);to(t,n),this.isPrevented=!1,this.isDown=!1,t.dispatchUIEvent(n,"pointerup",this.getEventInit(r))}release(t){let r=this.getTarget(t),[n]=lo(r,null),a=this.getEventInit();Wi(t,r)&&(t.dispatchUIEvent(r,"pointerout",a),n.forEach(o=>t.dispatchUIEvent(o,"pointerleave",a))),this.isCancelled=!0}getTarget(t){var r;return(r=this.position.target)!==null&&r!==void 0?r:t.config.document.body}getEventInit(t){return{...this.position.coords,pointerId:this.pointerId,pointerType:this.pointerType,isPrimary:this.isPrimary,button:Xl(t),buttons:this.buttons.getButtons()}}constructor({pointerId:t,pointerType:r,isPrimary:n},a){Ur(this,"pointerId",void 0),Ur(this,"pointerType",void 0),Ur(this,"isPrimary",void 0),Ur(this,"buttons",void 0),Ur(this,"isMultitouch",!1),Ur(this,"isCancelled",!1),Ur(this,"isDown",!1),Ur(this,"isPrevented",!1),Ur(this,"position",{}),this.pointerId=t,this.pointerType=r,this.isPrimary=n,this.isMultitouch=!n,this.buttons=a}};s(dR,"Pointer");var x7=dR;function ln(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(ln,"_define_property");var fR=class{isKeyPressed(t){return this.devices.get(t.pointerType).isPressed(t)}async press(t,r,n){this.devices.get(r.pointerType).addPressed(r),this.buttons.down(r);let a=this.getPointerName(r),o=r.pointerType==="touch"?this.pointers.new(a,r.pointerType,this.buttons):this.pointers.get(a);o.position=n,o.pointerType!=="touch"&&(this.mouse.position=n),o.pointerType==="touch"&&o.init(t),o.down(t,r.button),o.pointerType!=="touch"&&this.mouse.down(t,r,o.isPrevented)}async move(t,r,n){let a=this.pointers.get(r),o=a.move(t,n),i=a.pointerType==="touch"?void 0:this.mouse.move(t,n,a.isPrevented);o?.leave(),i?.leave(),o?.enter(),i?.enter(),o?.move(),i?.move()}async release(t,r,n){let a=this.devices.get(r.pointerType);a.removePressed(r),this.buttons.up(r);let o=this.pointers.get(this.getPointerName(r)),i=o.isPrevented;if(o.position=n,o.pointerType!=="touch"&&(this.mouse.position=n),a.countPressed===0&&o.up(t,r.button),o.pointerType==="touch"&&o.release(t),o.pointerType==="touch"&&!o.isMultitouch){let l=this.mouse.move(t,n,i);l?.leave(),l?.enter(),l?.move(),this.mouse.down(t,r,i)}if(!o.isMultitouch){let l=this.mouse.move(t,n,i);l?.leave(),l?.enter(),l?.move(),this.mouse.up(t,r,i)}}getPointerName(t){return t.pointerType==="touch"?t.name:t.pointerType}getPreviousPosition(t){return this.pointers.has(t)?this.pointers.get(t).position:void 0}resetClickCount(){this.mouse.resetClickCount()}getMouseTarget(t){var r;return(r=this.mouse.position.target)!==null&&r!==void 0?r:t.config.document.body}setMousePosition(t){this.mouse.position=t,this.pointers.get("mouse").position=t}constructor(t){ln(this,"system",void 0),ln(this,"mouse",void 0),ln(this,"buttons",void 0),ln(this,"devices",new class{get(r){var n,a,o;return(o=(n=this.registry)[a=r])!==null&&o!==void 0?o:n[a]=new C7}constructor(){ln(this,"registry",{})}}),ln(this,"pointers",new class{new(r,n,a){let o=n!=="touch"||!Object.values(this.registry).some(i=>i.pointerType==="touch"&&!i.isCancelled);return o||Object.values(this.registry).forEach(i=>{i.pointerType===n&&!i.isCancelled&&(i.isMultitouch=!0)}),this.registry[r]=new x7({pointerId:this.nextId++,pointerType:n,isPrimary:o},a),this.registry[r]}get(r){if(!this.has(r))throw new Error(`Trying to access pointer "${r}" which does not exist.`);return this.registry[r]}has(r){return r in this.registry}constructor(){ln(this,"registry",{}),ln(this,"nextId",1)}}),this.system=t,this.buttons=new rR,this.mouse=new w7,this.pointers.new("mouse","mouse",this.buttons)}};s(fR,"PointerHost");var A7=fR;function Of(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}s(Of,"_define_property");var hR=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(){Of(this,"keyboard",new b7(this)),Of(this,"pointer",new A7(this))}};s(hR,"System");var mR=hR;async function yR(e){let t=[];return this.config.skipHover||t.push({target:e}),t.push({keys:"[MouseLeft]",target:e}),this.pointer(t)}s(yR,"click");async function gR(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft]"])}s(gR,"dblClick");async function bR(e){return this.pointer([{target:e},"[MouseLeft][MouseLeft][MouseLeft]"])}s(bR,"tripleClick");async function vR(e){return this.pointer({target:e})}s(vR,"hover");async function ER(e){return to(this,this.system.pointer.getMouseTarget(this)),this.pointer({target:e.ownerDocument.body})}s(ER,"unhover");async function CR({shift:e}={}){return this.keyboard(e===!0?"{Shift>}{Tab}{/Shift}":e===!1?"[/ShiftLeft][/ShiftRight]{Tab}":"{Tab}")}s(CR,"tab");var nb=(function(e){return e["{"]="}",e["["]="]",e})(nb||{});function ab(e,t){let r=0,n=e[r]in nb?e[r]:"";r+=n.length;let a=new RegExp(`^\\${n}{2}`).test(e)?"":n;return{type:a,...a===""?wR(e,r,t):xR(e,r,a,t)}}s(ab,"readNextDescriptor");function wR(e,t,r){let n=e[t];return ob(n,e,t,r),t+=n.length,{consumedLength:t,descriptor:n,releasePrevious:!1,releaseSelf:!0,repeat:1}}s(wR,"readPrintableChar");function xR(e,t,r,n){var a,o;let i=e[t]==="/"?"/":"";t+=i.length;let l=r==="{"&&e[t]==="\\";t+=Number(l);let u=l?e[t]:(a=e.slice(t).match(r==="{"?/^\w+|^[^}>/]/:/^\w+/))===null||a===void 0?void 0:a[0];ob(u,e,t,n),t+=u.length;var c;let p=(c=(o=e.slice(t).match(/^>\d+/))===null||o===void 0?void 0:o[0])!==null&&c!==void 0?c:"";t+=p.length;let d=e[t]==="/"||!p&&e[t]===">"?e[t]:"";t+=d.length;let h=nb[r],f=e[t]===h?h:"";if(!f)throw new Error(ib([!p&&"repeat modifier",!d&&"release modifier",`"${h}"`].filter(Boolean).join(" or "),e[t],e,n));return t+=f.length,{consumedLength:t,descriptor:u,releasePrevious:!!i,repeat:p?Math.max(Number(p.substr(1)),1):1,releaseSelf:AR(d,p)}}s(xR,"readTag");function ob(e,t,r,n){if(!e)throw new Error(ib("key descriptor",t[r],t,n))}s(ob,"assertDescriptor");function AR(e,t){if(e)return e==="/";if(t)return!1}s(AR,"hasReleaseSelf");function ib(e,t,r,n){return`Expected ${e} but found "${t??""}" in "${r}"
|
|
354
|
+
See ${n==="pointer"?"https://testing-library.com/docs/user-event/pointer#pressing-a-button-or-touching-the-screen":"https://testing-library.com/docs/user-event/keyboard"}
|
|
355
|
+
for more information about how userEvent parses your input.`}s(ib,"getErrorMessage");function SR(e,t){let r=[];do{let{type:a,descriptor:o,consumedLength:i,releasePrevious:l,releaseSelf:u=!0,repeat:c}=ab(t,"keyboard");var n;let p=(n=e.find(d=>{if(a==="["){var h;return((h=d.code)===null||h===void 0?void 0:h.toLowerCase())===o.toLowerCase()}else if(a==="{"){var f;return((f=d.key)===null||f===void 0?void 0:f.toLowerCase())===o.toLowerCase()}return d.key===o}))!==null&&n!==void 0?n:{key:"Unknown",code:"Unknown",[a==="["?"code":"key"]:o};r.push({keyDef:p,releasePrevious:l,releaseSelf:u,repeat:c}),t=t.slice(i)}while(t);return r}s(SR,"parseKeyDef");async function _R(e){let t=SR(this.config.keyboardMap,e);for(let r=0;r<t.length;r++)await Ta(this.config),await TR(this,t[r])}s(_R,"keyboard");async function TR(e,{keyDef:t,releasePrevious:r,releaseSelf:n,repeat:a}){let{system:o}=e;if(o.keyboard.isKeyPressed(t)&&await o.keyboard.keyup(e,t),!r){for(let i=1;i<=a;i++)await o.keyboard.keydown(e,t),i<a&&await Ta(e.config);n&&await o.keyboard.keyup(e,t)}}s(TR,"keyboardAction");async function PR(e){for(let t of e.system.keyboard.getPressedKeys())await e.system.keyboard.keyup(e,t)}s(PR,"releaseAllKeys");function sb(e){let t=Or(e)?{"text/plain":DR(e)}:{"text/plain":String(e.ownerDocument.getSelection())},r=Tc(cr(e));for(let n in t)t[n]&&r.setData(n,t[n]);return r}s(sb,"copySelection");function DR(e){let t=To(e);return Rr(e).substring(t.startOffset,t.endOffset)}s(DR,"readSelectedValueFromInput");async function OR(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=sb(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"copy",{clipboardData:n})&&this.config.writeToClipboard&&await Mg(e,n),n}s(OR,"copy");async function RR(){let e=this.config.document;var t;let r=(t=e.activeElement)!==null&&t!==void 0?t:e.body,n=sb(r);if(n.items.length!==0)return this.dispatchUIEvent(r,"cut",{clipboardData:n})&&this.config.writeToClipboard&&await Mg(r.ownerDocument,n),n}s(RR,"cut");async function FR(e){let t=this.config.document;var r;let n=(r=t.activeElement)!==null&&r!==void 0?r:t.body;var a;let o=(a=typeof e=="string"?IR(t,e):e)!==null&&a!==void 0?a:await eO(t).catch(()=>{throw new Error("`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.")});this.dispatchUIEvent(n,"paste",{clipboardData:o})}s(FR,"paste");function IR(e,t){let r=Tc(cr(e));return r.setData("text",t),r}s(IR,"getClipboardDataFromString");function Rf(e,t){let r=[];do{let{descriptor:n,consumedLength:a,releasePrevious:o,releaseSelf:i=!0}=ab(t,"pointer"),l=e.find(u=>u.name===n);l&&r.push({keyDef:l,releasePrevious:o,releaseSelf:i}),t=t.slice(a)}while(t);return r}s(Rf,"parseKeyDef");async function NR(e){let{pointerMap:t}=this.config,r=[];(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="string"?r.push(...Rf(t,n)):"keys"in n?r.push(...Rf(t,n.keys).map(a=>({...n,...a}))):r.push(n)});for(let n=0;n<r.length;n++)await Ta(this.config),await kR(this,r[n]);this.system.pointer.resetClickCount()}s(NR,"pointer");async function kR(e,t){var r,n;let a="pointerName"in t&&t.pointerName?t.pointerName:"keyDef"in t?e.system.pointer.getPointerName(t.keyDef):"mouse",o=e.system.pointer.getPreviousPosition(a);var i,l,u,c;let p={target:(i=t.target)!==null&&i!==void 0?i:BR(e,o),coords:(l=t.coords)!==null&&l!==void 0?l:o?.coords,caret:{node:(u=t.node)!==null&&u!==void 0?u:Ff(t)||o==null||(r=o.caret)===null||r===void 0?void 0:r.node,offset:(c=t.offset)!==null&&c!==void 0?c:Ff(t)||o==null||(n=o.caret)===null||n===void 0?void 0:n.offset}};"keyDef"in t?(e.system.pointer.isKeyPressed(t.keyDef)&&(eo(e,ir.Trigger),await e.system.pointer.release(e,t.keyDef,p)),t.releasePrevious||(eo(e,ir.Trigger),await e.system.pointer.press(e,t.keyDef,p),t.releaseSelf&&(eo(e,ir.Trigger),await e.system.pointer.release(e,t.keyDef,p)))):(eo(e,ir.Trigger),await e.system.pointer.move(e,a,p))}s(kR,"pointerAction");function Ff(e){var t,r;return!!((r=(t=e.target)!==null&&t!==void 0?t:e.node)!==null&&r!==void 0?r:e.offset!==void 0)}s(Ff,"hasCaretPosition");function BR(e,t){if(!t)throw new Error("This pointer has no previous position. Provide a target property!");var r;return(r=t.target)!==null&&r!==void 0?r:e.config.document.body}s(BR,"getPrevTarget");async function jR(e){if(!Aa(e)||Kr(e))throw new Error("clear()` is only supported on editable elements.");if(vn(e),e.ownerDocument.activeElement!==e)throw new Error("The element to be cleared could not be focused.");if(Wg(e),!BO(e))throw new Error("The element content to be cleared could not be selected.");_a(this,e,"","deleteContentBackward")}s(jR,"clear");async function qR(e,t){return lb.call(this,!0,e,t)}s(qR,"selectOptions");async function MR(e,t){return lb.call(this,!1,e,t)}s(MR,"deselectOptions");async function lb(e,t,r){if(!e&&!t.multiple)throw Ue().getElementError("Unable to deselect an option in a non-multiple select. Use selectOptions to change the selection instead.",t);let n=Array.isArray(r)?r:[r],a=Array.from(t.querySelectorAll('option, [role="option"]')),o=n.map(l=>{if(typeof l!="string"&&a.includes(l))return l;{let u=a.find(c=>c.value===l||c.innerHTML===l);if(u)return u;throw Ue().getElementError(`Value "${String(l)}" not found in options`,t)}}).filter(l=>!Kr(l));if(Kr(t)||!o.length)return;let i=s(l=>{l.selected=e,this.dispatchUIEvent(t,"input",{bubbles:!0,cancelable:!1,composed:!0}),this.dispatchUIEvent(t,"change")},"selectOption");if(ke(t,"select"))if(t.multiple)for(let l of o){let u=this.config.pointerEventsCheck===0?!0:Wi(this,l);u&&(this.dispatchUIEvent(l,"pointerover"),this.dispatchUIEvent(t,"pointerenter"),this.dispatchUIEvent(l,"mouseover"),this.dispatchUIEvent(t,"mouseenter"),this.dispatchUIEvent(l,"pointermove"),this.dispatchUIEvent(l,"mousemove"),this.dispatchUIEvent(l,"pointerdown"),this.dispatchUIEvent(l,"mousedown")),vn(t),u&&(this.dispatchUIEvent(l,"pointerup"),this.dispatchUIEvent(l,"mouseup")),i(l),u&&this.dispatchUIEvent(l,"click"),await Ta(this.config)}else if(o.length===1){let l=this.config.pointerEventsCheck===0?!0:Wi(this,t);l?await this.click(t):vn(t),i(o[0]),l&&(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 Ta(this.config)}else throw Ue().getElementError("Cannot select multiple options on a non-multiple select",t);else if(t.getAttribute("role")==="listbox")for(let l of o)await this.click(l),await this.unhover(l);else throw Ue().getElementError("Cannot select options on elements that are neither select nor listbox elements",t)}s(lb,"selectOptionsBase");async function LR(e,t,{skipClick:r=this.config.skipClick,skipAutoClose:n=this.config.skipAutoClose,initialSelectionStart:a,initialSelectionEnd:o}={}){e.disabled||(r||await this.click(e),a!==void 0&&Za(e,a,o??a),await this.keyboard(t),n||await PR(this))}s(LR,"type");var y0=Symbol("files and value properties are mocked");function al(e,t,r){r?Object.defineProperty(e,t,r):delete e[t]}s(al,"restoreProperty");function $R(e,t){var r;(r=e[y0])===null||r===void 0||r.restore();let n=Object.getOwnPropertyDescriptor(e,"type"),a=Object.getOwnPropertyDescriptor(e,"value"),o=Object.getOwnPropertyDescriptor(e,"files");function i(){al(e,"type",n),al(e,"value",a),al(e,"files",o)}s(i,"restore"),e[y0]={restore:i},Object.defineProperties(e,{files:{configurable:!0,get:s(()=>t,"get")},value:{configurable:!0,get:s(()=>t.length?`C:\\fakepath\\${t[0].name}`:"","get"),set(l){if(l==="")i();else{var u;a==null||(u=a.set)===null||u===void 0||u.call(e,l)}}},type:{configurable:!0,get:s(()=>"file","get"),set(l){l!=="file"&&(i(),e.type=l)}}})}s($R,"setFiles");async function UR(e,t){let r=ke(e,"label")?e.control:e;if(!r||!ke(r,"input",{type:"file"}))throw new TypeError(`The ${r===e?"given":"associated"} ${r?.tagName} element does not accept file uploads`);if(Kr(e))return;let n=(Array.isArray(t)?t:[t]).filter(o=>!this.config.applyAccept||VR(o,r.accept)).slice(0,r.multiple?void 0:1),a=s(()=>{var o;n.length===((o=r.files)===null||o===void 0?void 0:o.length)&&n.every((i,l)=>{var u;return i===((u=r.files)===null||u===void 0?void 0:u.item(l))})||($R(r,_c(cr(e),n)),this.dispatchUIEvent(r,"input"),this.dispatchUIEvent(r,"change"))},"fileDialog");r.addEventListener("fileDialog",a),await this.click(e),r.removeEventListener("fileDialog",a)}s(UR,"upload");function ci(e){return e.toLowerCase().replace(/(\.|\/)jpg\b/g,"$1jpeg")}s(ci,"normalize");function VR(e,t){if(!t)return!0;let r=["audio/*","image/*","video/*"];return ci(t).trim().split(/\s*,\s*/).some(n=>n.startsWith(".")?ci(e.name).endsWith(n):r.includes(n)?ci(e.type).startsWith(n.replace("*","")):ci(e.type)===n)}s(VR,"isAcceptableFile");var g0={click:yR,dblClick:gR,tripleClick:bR,hover:vR,unhover:ER,tab:CR,keyboard:_R,copy:OR,cut:RR,paste:FR,pointer:NR,clear:jR,deselectOptions:MR,selectOptions:qR,type:LR,upload:UR};function HR(e){return Ue().asyncWrapper(e)}s(HR,"wrapAsync");var JR={applyAccept:!0,autoModify:!0,delay:0,document:globalThis.document,keyboardMap:v7,pointerMap:E7,pointerEventsCheck:nl.EachApiCall,skipAutoClose:!1,skipClick:!1,skipHover:!1,writeToClipboard:!1,advanceTimers:s(()=>Promise.resolve(),"advanceTimers")},S7={...JR,writeToClipboard:!0};function ub(e={},t=S7,r){let n=YR(e,r,t);return{...t,...e,document:n}}s(ub,"createConfig");function zR(e={}){let t=ub(e);Zg(t.document),Qg(cr(t.document).HTMLElement);var r;let n=(r=t.document.defaultView)!==null&&r!==void 0?r:globalThis.window;return XD(n),Fc(t).api}s(zR,"setupMain");function Nt({keyboardState:e,pointerState:t,...r}={},n){let a=ub(r,JR,n);Zg(a.document),Qg(cr(a.document).HTMLElement);var o;let i=(o=t??e)!==null&&o!==void 0?o:new mR;return{api:Fc(a,i).api,system:i}}s(Nt,"setupDirect");function GR(e){return Fc({...this.config,...e},this.system).api}s(GR,"setupSub");function WR(e,t){function r(...n){return eo(e,ir.Call),HR(()=>t.apply(e,n).then(async a=>(await Ta(e.config),a)))}return s(r,"method"),Object.defineProperty(r,"name",{get:s(()=>t.name,"get")}),r}s(WR,"wrapAndBindImpl");function Fc(e,t=new mR){let r={};return Object.assign(r,{config:e,dispatchEvent:Xg.bind(r),dispatchUIEvent:zO.bind(r),system:t,levelRefs:{},...g0}),{instance:r,api:{...Object.fromEntries(Object.entries(g0).map(([n,a])=>[n,WR(r,a)])),setup:GR.bind(r)}}}s(Fc,"createInstance");function YR(e,t,r){var n,a;return(a=(n=e.document)!==null&&n!==void 0?n:t&&XO(t))!==null&&a!==void 0?a:r.document}s(YR,"getDocument");var KR={};Jt(KR,{clear:()=>XR,click:()=>QR,copy:()=>ZR,cut:()=>eF,dblClick:()=>tF,deselectOptions:()=>rF,hover:()=>nF,keyboard:()=>aF,paste:()=>iF,pointer:()=>oF,selectOptions:()=>sF,tab:()=>dF,tripleClick:()=>lF,type:()=>uF,unhover:()=>cF,upload:()=>pF});function XR(e){return Nt().api.clear(e)}s(XR,"clear");function QR(e,t={}){return Nt(t,e).api.click(e)}s(QR,"click");function ZR(e={}){return Nt(e).api.copy()}s(ZR,"copy");function eF(e={}){return Nt(e).api.cut()}s(eF,"cut");function tF(e,t={}){return Nt(t).api.dblClick(e)}s(tF,"dblClick");function rF(e,t,r={}){return Nt(r).api.deselectOptions(e,t)}s(rF,"deselectOptions");function nF(e,t={}){return Nt(t).api.hover(e)}s(nF,"hover");async function aF(e,t={}){let{api:r,system:n}=Nt(t);return r.keyboard(e).then(()=>n)}s(aF,"keyboard");async function oF(e,t={}){let{api:r,system:n}=Nt(t);return r.pointer(e).then(()=>n)}s(oF,"pointer");function iF(e,t){return Nt(t).api.paste(e)}s(iF,"paste");function sF(e,t,r={}){return Nt(r).api.selectOptions(e,t)}s(sF,"selectOptions");function lF(e,t={}){return Nt(t).api.tripleClick(e)}s(lF,"tripleClick");function uF(e,t,r={}){return Nt(r,e).api.type(e,t,r)}s(uF,"type");function cF(e,t={}){let{api:r,system:n}=Nt(t);return n.pointer.setMousePosition({target:e}),r.unhover(e)}s(cF,"unhover");function pF(e,t,r={}){return Nt(r).api.upload(e,t)}s(pF,"upload");function dF(e={}){return Nt().api.tab(e)}s(dF,"tab");var fF={...KR,setup:zR},If=No({...AT},{getKeys:s(e=>Object.keys(e).filter(t=>t!=="eventWrapper"),"getKeys"),intercept:s((e,t)=>t[0]==="fireEvent"||e.startsWith("find")||e.startsWith("waitFor"),"intercept")});If.screen=new Proxy(If.screen,{get(e,t,r){return vt.warn(J5`
|
|
356
|
+
You are using Testing Library's \`screen\` object. Use \`within(canvasElement)\` instead.
|
|
357
|
+
More info: https://storybook.js.org/docs/writing-tests/interaction-testing?ref=error
|
|
358
|
+
`),Reflect.get(e,t,r)}});var{buildQueries:_7,configure:T7,createEvent:P7,fireEvent:D7,findAllByAltText:O7,findAllByDisplayValue:R7,findAllByLabelText:F7,findAllByPlaceholderText:I7,findAllByRole:N7,findAllByTestId:k7,findAllByText:B7,findAllByTitle:j7,findByAltText:q7,findByDisplayValue:M7,findByLabelText:L7,findByPlaceholderText:$7,findByRole:U7,findByTestId:V7,findByText:H7,findByTitle:J7,getAllByAltText:z7,getAllByDisplayValue:G7,getAllByLabelText:W7,getAllByPlaceholderText:Y7,getAllByRole:K7,getAllByTestId:X7,getAllByText:Q7,getAllByTitle:Z7,getByAltText:eV,getByDisplayValue:tV,getByLabelText:rV,getByPlaceholderText:nV,getByRole:aV,getByTestId:oV,getByText:iV,getByTitle:sV,getConfig:lV,getDefaultNormalizer:uV,getElementError:cV,getNodeText:pV,getQueriesForElement:dV,getRoles:fV,getSuggestedQuery:hV,isInaccessible:mV,logDOM:yV,logRoles:gV,prettyDOM:bV,queries:vV,queryAllByAltText:EV,queryAllByAttribute:CV,queryAllByDisplayValue:wV,queryAllByLabelText:xV,queryAllByPlaceholderText:AV,queryAllByRole:SV,queryAllByTestId:_V,queryAllByText:TV,queryAllByTitle:PV,queryByAltText:DV,queryByAttribute:OV,queryByDisplayValue:RV,queryByLabelText:FV,queryByPlaceholderText:IV,queryByRole:NV,queryByTestId:kV,queryByText:BV,queryByTitle:jV,queryHelpers:qV,screen:MV,waitFor:LV,waitForElementToBeRemoved:$V,within:hF,prettyFormat:UV}=If,mF=fF,{userEvent:VV}=No({userEvent:fF},{intercept:!0,getKeys:s(e=>Object.keys(e).filter(t=>t!=="eventWrapper"),"getKeys")}),{expect:HV}=No({expect:CT},{getKeys:s((e,t)=>{if("constructor"in e&&e.constructor===J){let r=["assert","__methods","__flags","_obj"],n=Object.keys(Object.getPrototypeOf(e)).filter(a=>!r.includes(a));return t>2?n:[...n,"not"]}return"any"in e?Object.keys(e).filter(r=>r!=="any"):Object.keys(e)},"getKeys"),mutate:!0,intercept:s(e=>e!=="expect","intercept")}),JV={mock:s(()=>{},"mock")},b0=!1,zV=s(e=>{let{parameters:t}=e;t?.actions?.disable||b0||(ig((r,n)=>{let a=r.getMockName();a!=="spy"&&(!/^next\/.*::/.test(a)||["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(o=>a.startsWith(o)))&&Ho(a)(n)}),b0=!0)},"logActionsWhenMockCalled"),GV=[zV],v0=s(()=>({...Q1,...ex}),"default"),Zl="backgrounds",WV={light:{name:"light",value:"#F8F8F8"},dark:{name:"dark",value:"#333"}},{document:Tr}=globalThis,YV=s(()=>globalThis?.matchMedia?!!globalThis.matchMedia("(prefers-reduced-motion: reduce)")?.matches:!1,"isReduceMotionEnabled"),E0=s(e=>{(Array.isArray(e)?e:[e]).forEach(KV)},"clearStyles"),KV=s(e=>{if(!Tr)return;let t=Tr.getElementById(e);t&&t.parentElement&&t.parentElement.removeChild(t)},"clearStyle"),XV=s((e,t)=>{if(!Tr)return;let r=Tr.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=Tr.createElement("style");n.setAttribute("id",e),n.innerHTML=t,Tr.head.appendChild(n)}},"addGridStyle"),QV=s((e,t,r)=>{if(!Tr)return;let n=Tr.getElementById(e);if(n)n.innerHTML!==t&&(n.innerHTML=t);else{let a=Tr.createElement("style");a.setAttribute("id",e),a.innerHTML=t;let o=`addon-backgrounds-grid${r?`-docs-${r}`:""}`,i=Tr.getElementById(o);i?i.parentElement?.insertBefore(a,i):Tr.head.appendChild(a)}},"addBackgroundStyle"),ZV={cellSize:100,cellAmount:10,opacity:.8},C0="addon-backgrounds",w0="addon-backgrounds-grid",eH=YV()?"":"transition: background-color 0.3s;",tH=s((e,t)=>{let{globals:r={},parameters:n={},viewMode:a,id:o}=t,{options:i=WV,disable:l,grid:u=ZV}=n[Zl]||{},c=r[Zl]||{},p=typeof c=="string"?c:c?.value,d=p?i[p]:void 0,h=typeof d=="string"?d:d?.value||"transparent",f=typeof c=="string"?!1:c.grid||!1,m=!!d&&!l,y=a==="docs"?`#anchor--${o} .docs-story`:".sb-show-main",b=a==="docs"?`#anchor--${o} .docs-story`:".sb-show-main",g=n.layout===void 0||n.layout==="padded",v=a==="docs"?20:g?16:0,{cellAmount:D,cellSize:S,opacity:P,offsetX:w=v,offsetY:E=v}=u,C=a==="docs"?`${C0}-docs-${o}`:`${C0}-color`,_=a==="docs"?o:null;Vn(()=>{let B=`
|
|
359
|
+
${y} {
|
|
360
|
+
background: ${h} !important;
|
|
361
|
+
${eH}
|
|
362
|
+
}`;if(!m){E0(C);return}QV(C,B,_)},[y,C,_,m,h]);let k=a==="docs"?`${w0}-docs-${o}`:`${w0}`;return Vn(()=>{if(!f){E0(k);return}let B=[`${S*D}px ${S*D}px`,`${S*D}px ${S*D}px`,`${S}px ${S}px`,`${S}px ${S}px`].join(", "),W=`
|
|
363
|
+
${b} {
|
|
364
|
+
background-size: ${B} !important;
|
|
365
|
+
background-position: ${w}px ${E}px, ${w}px ${E}px, ${w}px ${E}px, ${w}px ${E}px !important;
|
|
366
|
+
background-blend-mode: difference !important;
|
|
367
|
+
background-image: linear-gradient(rgba(130, 130, 130, ${P}) 1px, transparent 1px),
|
|
368
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${P}) 1px, transparent 1px),
|
|
369
|
+
linear-gradient(rgba(130, 130, 130, ${P/2}) 1px, transparent 1px),
|
|
370
|
+
linear-gradient(90deg, rgba(130, 130, 130, ${P/2}) 1px, transparent 1px) !important;
|
|
371
|
+
}
|
|
372
|
+
`;XV(k,W)},[D,S,b,k,f,w,E,P]),e()},"withBackgroundAndGrid"),rH=globalThis.FEATURES?.backgrounds?[tH]:[],nH={[Zl]:{grid:{cellSize:20,opacity:.5,cellAmount:5},disable:!1}},aH={[Zl]:{value:void 0,grid:!1}},x0=s(()=>({decorators:rH,parameters:nH,initialGlobals:aH}),"default"),{step:oH}=No({step:s(async(e,t,r)=>t(r),"step")},{intercept:!0}),A0=s(()=>({parameters:{throwPlayFunctionExceptions:!1},runStep:oH}),"default"),Ic="storybook/highlight",iH=`${Ic}/add`,sH=`${Ic}/remove`,lH=`${Ic}/reset`,uH=`${Ic}/scroll-into-view`,S0=2147483647,Nn=28,_0={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"]},cH="svg,path,rect,circle,line,polyline,polygon,ellipse,text".split(","),xt=s((e,t={},r)=>{let n=cH.includes(e)?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return Object.entries(t).forEach(([a,o])=>{/[A-Z]/.test(a)?(a==="onClick"&&(n.addEventListener("click",o),n.addEventListener("keydown",i=>{(i.key==="Enter"||i.key===" ")&&(i.preventDefault(),o())})),a==="onMouseEnter"&&n.addEventListener("mouseenter",o),a==="onMouseLeave"&&n.addEventListener("mouseleave",o)):n.setAttribute(a,o)}),r?.forEach(a=>{if(!(a==null||a===!1))try{n.appendChild(a)}catch{n.appendChild(document.createTextNode(String(a)))}}),n},"createElement"),Fs=s(e=>_0[e]&&xt("svg",{width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},_0[e].map(t=>xt("path",{fill:"currentColor","fill-rule":"evenodd","clip-rule":"evenodd",d:t}))),"createIcon"),pH=s(e=>{if("elements"in e){let{elements:n,color:a,style:o}=e;return{id:void 0,priority:0,selectors:n,styles:{outline:`2px ${o} ${a}`,outlineOffset:"2px",boxShadow:"0 0 0 6px rgba(255,255,255,0.6)"},menu:void 0}}let{menu:t,...r}=e;return{id:void 0,priority:0,styles:{outline:"2px dashed #029cfd"},...r,menu:Array.isArray(t)?t.every(Array.isArray)?t:[t]:void 0}},"normalizeOptions"),dH=s(e=>e instanceof Function,"isFunction"),Qo=new Map,na=new Map,Is=new Map,nn=s(e=>{let t=Symbol();return na.set(t,[]),Qo.set(t,e),{get:s(()=>Qo.get(t),"get"),set:s(r=>{let n=Qo.get(t),a=dH(r)?r(n):r;a!==n&&(Qo.set(t,a),na.get(t)?.forEach(o=>{Is.get(o)?.(),Is.set(o,o(a))}))},"set"),subscribe:s(r=>(na.get(t)?.push(r),()=>{let n=na.get(t);n&&na.set(t,n.filter(a=>a!==r))}),"subscribe"),teardown:s(()=>{na.get(t)?.forEach(r=>{Is.get(r)?.(),Is.delete(r)}),na.delete(t),Qo.delete(t)},"teardown")}},"useStore"),T0=s(e=>{let t=document.getElementById("storybook-root"),r=new Map;for(let n of e){let{priority:a=0}=n;for(let o of n.selectors){let i=[...document.querySelectorAll(`:is(${o}):not([id^="storybook-"], [id^="storybook-"] *, [class^="sb-"], [class^="sb-"] *)`),...t?.querySelectorAll(o)||[]];for(let l of i){let u=r.get(l);(!u||u.priority<=a)&&r.set(l,{...n,priority:a,selectors:Array.from(new Set((u?.selectors||[]).concat(o)))})}}}return r},"mapElements"),fH=s(e=>Array.from(e.entries()).map(([t,{selectors:r,styles:n,hoverStyles:a,focusStyles:o,menu:i}])=>{let{top:l,left:u,width:c,height:p}=t.getBoundingClientRect(),{position:d}=getComputedStyle(t);return{element:t,selectors:r,styles:n,hoverStyles:a,focusStyles:o,menu:i,top:d==="fixed"?l:l+window.scrollY,left:d==="fixed"?u:u+window.scrollX,width:c,height:p}}).sort((t,r)=>r.width*r.height-t.width*t.height),"mapBoxes"),P0=s((e,t)=>{let r=e.getBoundingClientRect(),{x:n,y:a}=t;return r?.top&&r?.left&&n>=r.left&&n<=r.left+r.width&&a>=r.top&&a<=r.top+r.height},"isOverMenu"),D0=s((e,t,r)=>{if(!t||!r)return!1;let{left:n,top:a,width:o,height:i}=e;i<Nn&&(a=a-Math.round((Nn-i)/2),i=Nn),o<Nn&&(n=n-Math.round((Nn-o)/2),o=Nn),t.style.position==="fixed"&&(n+=window.scrollX,a+=window.scrollY);let{x:l,y:u}=r;return l>=n&&l<=n+o&&u>=a&&u<=a+i},"isTargeted"),hH=s((e,t,r={})=>{let{x:n,y:a}=t,{margin:o=5,topOffset:i=0,centered:l=!1}=r,{scrollX:u,scrollY:c,innerHeight:p,innerWidth:d}=window,h=Math.min(e.style.position==="fixed"?a-c:a,p-e.clientHeight-o-i+c),f=l?e.clientWidth/2:0,m=e.style.position==="fixed"?Math.max(Math.min(n-u,d-f-o),f+o):Math.max(Math.min(n,d-f-o+u),f+o+u);Object.assign(e.style,{...m!==n&&{left:`${m}px`},...h!==a&&{top:`${h}px`}})},"keepInViewport"),O0=s(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.showPopover()},"showPopover"),mH=s(e=>{window.HTMLElement.prototype.hasOwnProperty("showPopover")&&e.hidePopover()},"hidePopover"),yH=s(e=>({top:e.top,left:e.left,width:e.width,height:e.height,selectors:e.selectors,element:{attributes:Object.fromEntries(Array.from(e.element.attributes).map(t=>[t.name,t.value])),localName:e.element.localName,tagName:e.element.tagName,outerHTML:e.element.outerHTML}}),"getEventDetails"),rt="storybook-highlights-menu",R0="storybook-highlights-root",gH="storybook-root",bH=s(e=>{if(globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED)return;globalThis.__STORYBOOK_HIGHLIGHT_INITIALIZED=!0;let{document:t}=globalThis,r=nn([]),n=nn(new Map),a=nn([]),o=nn(),i=nn(),l=nn([]),u=nn([]),c=nn(),p=nn(),d=t.getElementById(R0);r.subscribe(()=>{d||(d=xt("div",{id:R0}),t.body.appendChild(d))}),r.subscribe(E=>{let C=t.getElementById(gH);if(!C)return;n.set(T0(E));let _=new MutationObserver(()=>n.set(T0(E)));return _.observe(C,{subtree:!0,childList:!0}),()=>{_.disconnect()}}),n.subscribe(E=>{let C=s(()=>requestAnimationFrame(()=>a.set(fH(E))),"updateBoxes"),_=new ResizeObserver(C);_.observe(t.body),Array.from(E.keys()).forEach(B=>_.observe(B));let k=Array.from(t.body.querySelectorAll("*")).filter(B=>{let{overflow:W,overflowX:z,overflowY:R}=window.getComputedStyle(B);return["auto","scroll"].some(U=>[W,z,R].includes(U))});return k.forEach(B=>B.addEventListener("scroll",C)),()=>{_.disconnect(),k.forEach(B=>B.removeEventListener("scroll",C))}}),n.subscribe(E=>{let C=Array.from(E.keys()).filter(({style:k})=>k.position==="sticky"),_=s(()=>requestAnimationFrame(()=>{a.set(k=>k.map(B=>{if(C.includes(B.element)){let{top:W,left:z}=B.element.getBoundingClientRect();return{...B,top:W+window.scrollY,left:z+window.scrollX}}return B}))}),"updateBoxes");return t.addEventListener("scroll",_),()=>t.removeEventListener("scroll",_)}),n.subscribe(E=>{l.set(C=>C.filter(({element:_})=>E.has(_)))}),l.subscribe(E=>{E.length?(p.set(C=>E.some(_=>_.element===C?.element)?C:void 0),c.set(C=>E.some(_=>_.element===C?.element)?C:void 0)):(p.set(void 0),c.set(void 0),o.set(void 0))});let h=new Map(new Map);r.subscribe(E=>{E.forEach(({keyframes:C})=>{if(C){let _=h.get(C);_||(_=t.createElement("style"),_.setAttribute("data-highlight","keyframes"),h.set(C,_),t.head.appendChild(_)),_.innerHTML=C}}),h.forEach((C,_)=>{E.some(k=>k.keyframes===_)||(C.remove(),h.delete(_))})});let f=new Map(new Map);a.subscribe(E=>{E.forEach(C=>{let _=f.get(C.element);if(d&&!_){let k={popover:"manual","data-highlight-dimensions":`w${C.width.toFixed(0)}h${C.height.toFixed(0)}`,"data-highlight-coordinates":`x${C.left.toFixed(0)}y${C.top.toFixed(0)}`};_=d.appendChild(xt("div",k,[xt("div")])),f.set(C.element,_)}}),f.forEach((C,_)=>{E.some(({element:k})=>k===_)||(C.remove(),f.delete(_))})}),a.subscribe(E=>{let C=E.filter(k=>k.menu);if(!C.length)return;let _=s(k=>{requestAnimationFrame(()=>{let B=t.getElementById(rt),W={x:k.pageX,y:k.pageY};if(B&&!P0(B,W)){let z=C.filter(R=>{let U=f.get(R.element);return D0(R,U,W)});o.set(z.length?W:void 0),l.set(z)}})},"onClick");return t.addEventListener("click",_),()=>t.removeEventListener("click",_)});let m=s(()=>{let E=t.getElementById(rt),C=i.get();!C||E&&P0(E,C)||u.set(_=>{let k=a.get().filter(R=>{let U=f.get(R.element);return D0(R,U,C)}),B=_.filter(R=>k.includes(R)),W=k.filter(R=>!_.includes(R)),z=_.length-B.length;return W.length||z?[...B,...W]:_})},"updateHovered");i.subscribe(m),a.subscribe(m);let y=s(()=>{let E=p.get(),C=E?[E]:l.get(),_=C.length===1?C[0]:c.get(),k=o.get()!==void 0;a.get().forEach(B=>{let W=f.get(B.element);if(W){let z=_===B,R=k?_?z:C.includes(B):u.get()?.includes(B);Object.assign(W.style,{animation:"none",background:"transparent",border:"none",boxSizing:"border-box",outline:"none",outlineOffset:"0px",...B.styles,...R?B.hoverStyles:{},...z?B.focusStyles:{},position:getComputedStyle(B.element).position==="fixed"?"fixed":"absolute",zIndex:S0-10,top:`${B.top}px`,left:`${B.left}px`,width:`${B.width}px`,height:`${B.height}px`,margin:0,padding:0,cursor:B.menu&&R?"pointer":"default",pointerEvents:B.menu?"auto":"none",display:"flex",alignItems:"center",justifyContent:"center",overflow:"visible"}),Object.assign(W.children[0].style,{width:"100%",height:"100%",minHeight:`${Nn}px`,minWidth:`${Nn}px`,boxSizing:"content-box",padding:W.style.outlineWidth||"0px"}),O0(W)}})},"updateBoxStyles");a.subscribe(y),l.subscribe(y),u.subscribe(y),c.subscribe(y),p.subscribe(y);let b=s(()=>{if(!d)return;let E=t.getElementById(rt);if(E)E.innerHTML="";else{let B={id:rt,popover:"manual"};E=d.appendChild(xt("div",B)),d.appendChild(xt("style",{},[`
|
|
373
|
+
#${rt} {
|
|
374
|
+
position: absolute;
|
|
375
|
+
z-index: ${S0};
|
|
376
|
+
width: 300px;
|
|
377
|
+
padding: 0px;
|
|
378
|
+
margin: 15px 0 0 0;
|
|
379
|
+
transform: translateX(-50%);
|
|
380
|
+
font-family: "Nunito Sans", -apple-system, ".SFNSText-Regular", "San Francisco", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
381
|
+
font-size: 12px;
|
|
382
|
+
background: white;
|
|
383
|
+
border: none;
|
|
384
|
+
border-radius: 6px;
|
|
385
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 5px 15px 0 rgba(0, 0, 0, 0.1);
|
|
386
|
+
color: #2E3438;
|
|
387
|
+
}
|
|
388
|
+
#${rt} ul {
|
|
389
|
+
list-style: none;
|
|
390
|
+
margin: 0;
|
|
391
|
+
padding: 0;
|
|
392
|
+
}
|
|
393
|
+
#${rt} > ul {
|
|
394
|
+
max-height: 300px;
|
|
395
|
+
overflow-y: auto;
|
|
396
|
+
padding: 4px 0;
|
|
397
|
+
}
|
|
398
|
+
#${rt} li {
|
|
399
|
+
padding: 0 4px;
|
|
400
|
+
margin: 0;
|
|
401
|
+
}
|
|
402
|
+
#${rt} li > :not(ul) {
|
|
403
|
+
display: flex;
|
|
404
|
+
padding: 8px;
|
|
405
|
+
margin: 0;
|
|
406
|
+
align-items: center;
|
|
407
|
+
gap: 8px;
|
|
408
|
+
border-radius: 4px;
|
|
409
|
+
}
|
|
410
|
+
#${rt} button {
|
|
411
|
+
width: 100%;
|
|
412
|
+
border: 0;
|
|
413
|
+
background: transparent;
|
|
414
|
+
color: inherit;
|
|
415
|
+
text-align: left;
|
|
416
|
+
font-family: inherit;
|
|
417
|
+
font-size: inherit;
|
|
418
|
+
}
|
|
419
|
+
#${rt} button:focus-visible {
|
|
420
|
+
outline-color: #029CFD;
|
|
421
|
+
}
|
|
422
|
+
#${rt} button:hover {
|
|
423
|
+
background: rgba(2, 156, 253, 0.07);
|
|
424
|
+
color: #029CFD;
|
|
425
|
+
cursor: pointer;
|
|
426
|
+
}
|
|
427
|
+
#${rt} li code {
|
|
428
|
+
white-space: nowrap;
|
|
429
|
+
overflow: hidden;
|
|
430
|
+
text-overflow: ellipsis;
|
|
431
|
+
line-height: 16px;
|
|
432
|
+
font-size: 11px;
|
|
433
|
+
}
|
|
434
|
+
#${rt} li svg {
|
|
435
|
+
flex-shrink: 0;
|
|
436
|
+
margin: 1px;
|
|
437
|
+
color: #73828C;
|
|
438
|
+
}
|
|
439
|
+
#${rt} li > button:hover svg, #${rt} li > button:focus-visible svg {
|
|
440
|
+
color: #029CFD;
|
|
441
|
+
}
|
|
442
|
+
#${rt} .element-list li svg {
|
|
443
|
+
display: none;
|
|
444
|
+
}
|
|
445
|
+
#${rt} li.selectable svg, #${rt} li.selected svg {
|
|
446
|
+
display: block;
|
|
447
|
+
}
|
|
448
|
+
#${rt} .menu-list {
|
|
449
|
+
border-top: 1px solid rgba(38, 85, 115, 0.15);
|
|
450
|
+
}
|
|
451
|
+
#${rt} .menu-list > li:not(:last-child) {
|
|
452
|
+
padding-bottom: 4px;
|
|
453
|
+
margin-bottom: 4px;
|
|
454
|
+
border-bottom: 1px solid rgba(38, 85, 115, 0.15);
|
|
455
|
+
}
|
|
456
|
+
#${rt} .menu-items, #${rt} .menu-items li {
|
|
457
|
+
padding: 0;
|
|
458
|
+
}
|
|
459
|
+
#${rt} .menu-item {
|
|
460
|
+
display: flex;
|
|
461
|
+
}
|
|
462
|
+
#${rt} .menu-item-content {
|
|
463
|
+
display: flex;
|
|
464
|
+
flex-direction: column;
|
|
465
|
+
flex-grow: 1;
|
|
466
|
+
}
|
|
467
|
+
`]))}let C=p.get(),_=C?[C]:l.get();if(_.length&&(E.style.position=getComputedStyle(_[0].element).position==="fixed"?"fixed":"absolute",E.appendChild(xt("ul",{class:"element-list"},_.map(B=>{let W=_.length>1&&!!B.menu?.some(U=>U.some(j=>!j.selectors||j.selectors.some(Y=>B.selectors.includes(Y)))),z=W?{class:"selectable",onClick:s(()=>p.set(B),"onClick"),onMouseEnter:s(()=>c.set(B),"onMouseEnter"),onMouseLeave:s(()=>c.set(void 0),"onMouseLeave")}:C?{class:"selected",onClick:s(()=>p.set(void 0),"onClick")}:{},R=W||C;return xt("li",z,[xt(R?"button":"div",R?{type:"button"}:{},[C?Fs("chevronLeft"):null,xt("code",{},[B.element.outerHTML]),W?Fs("chevronRight"):null])])})))),p.get()||l.get().length===1){let B=p.get()||l.get()[0],W=B.menu?.filter(z=>z.some(R=>!R.selectors||R.selectors.some(U=>B.selectors.includes(U))));W?.length&&E.appendChild(xt("ul",{class:"menu-list"},W.map(z=>xt("li",{},[xt("ul",{class:"menu-items"},z.map(({id:R,title:U,description:j,iconLeft:Y,iconRight:Q,clickEvent:ae})=>{let le=ae&&(()=>e.emit(ae,R,yH(B)));return xt("li",{},[xt(le?"button":"div",le?{class:"menu-item",type:"button",onClick:le}:{class:"menu-item"},[Y?Fs(Y):null,xt("div",{class:"menu-item-content"},[xt(j?"strong":"span",{},[U]),j&&xt("span",{},[j])]),Q?Fs(Q):null])])}))]))))}let k=o.get();k?(Object.assign(E.style,{display:"block",left:`${E.style.position==="fixed"?k.x-window.scrollX:k.x}px`,top:`${E.style.position==="fixed"?k.y-window.scrollY:k.y}px`}),O0(E),requestAnimationFrame(()=>hH(E,k,{topOffset:15,centered:!0}))):(mH(E),Object.assign(E.style,{display:"none"}))},"renderMenu");l.subscribe(b),p.subscribe(b);let g=s(E=>{let C=pH(E);r.set(_=>{let k=C.id?_.filter(B=>B.id!==C.id):_;return C.selectors?.length?[...k,C]:k})},"addHighlight"),v=s(E=>{E&&r.set(C=>C.filter(_=>_.id!==E))},"removeHighlight"),D=s(()=>{r.set([]),n.set(new Map),a.set([]),o.set(void 0),i.set(void 0),l.set([]),u.set([]),c.set(void 0),p.set(void 0)},"resetState"),S,P=s((E,C)=>{let _="scrollIntoView-highlight";clearTimeout(S),v(_);let k=t.querySelector(E);if(!k){console.warn(`Cannot scroll into view: ${E} not found`);return}k.scrollIntoView({behavior:"smooth",block:"center",...C});let B=`kf-${Math.random().toString(36).substring(2,15)}`;r.set(W=>[...W,{id:_,priority:1e3,selectors:[E],styles:{outline:"2px solid #1EA7FD",outlineOffset:"-1px",animation:`${B} 3s linear forwards`},keyframes:`@keyframes ${B} {
|
|
468
|
+
0% { outline: 2px solid #1EA7FD; }
|
|
469
|
+
20% { outline: 2px solid #1EA7FD00; }
|
|
470
|
+
40% { outline: 2px solid #1EA7FD; }
|
|
471
|
+
60% { outline: 2px solid #1EA7FD00; }
|
|
472
|
+
80% { outline: 2px solid #1EA7FD; }
|
|
473
|
+
100% { outline: 2px solid #1EA7FD00; }
|
|
474
|
+
}`}]),S=setTimeout(()=>v(_),3500)},"scrollIntoView"),w=s(E=>{requestAnimationFrame(()=>i.set({x:E.pageX,y:E.pageY}))},"onMouseMove");t.body.addEventListener("mousemove",w),e.on(iH,g),e.on(sH,v),e.on(lH,D),e.on(uH,P),e.on(va,({newPhase:E})=>{E==="loading"&&D()})},"useHighlights");globalThis?.FEATURES?.highlight&&Er?.ready&&Er.ready().then(bH);var F0=s(()=>({}),"default"),vH="measureEnabled";function cb(){let e=he.document.documentElement,t=Math.max(e.scrollHeight,e.offsetHeight);return{width:Math.max(e.scrollWidth,e.offsetWidth),height:t}}s(cb,"getDocumentWidthAndHeight");function yF(){let e=he.document.createElement("canvas");e.id="storybook-addon-measure";let t=e.getContext("2d");Wr(t!=null);let{width:r,height:n}=cb();return eu(e,t,{width:r,height:n}),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style.zIndex="2147483647",e.style.pointerEvents="none",he.document.body.appendChild(e),{canvas:e,context:t,width:r,height:n}}s(yF,"createCanvas");function eu(e,t,{width:r,height:n}){e.style.width=`${r}px`,e.style.height=`${n}px`;let a=he.window.devicePixelRatio;e.width=Math.floor(r*a),e.height=Math.floor(n*a),t.scale(a,a)}s(eu,"setCanvasWidthAndHeight");var At={};function gF(){At.canvas||(At=yF())}s(gF,"init");function pb(){At.context&&At.context.clearRect(0,0,At.width??0,At.height??0)}s(pb,"clear");function bF(e){pb(),e(At.context)}s(bF,"draw");function vF(){Wr(At.canvas),Wr(At.context),eu(At.canvas,At.context,{width:0,height:0});let{width:e,height:t}=cb();eu(At.canvas,At.context,{width:e,height:t}),At.width=e,At.height=t}s(vF,"rescale");function EF(){At.canvas&&(pb(),At.canvas.parentNode?.removeChild(At.canvas),At={})}s(EF,"destroy");var $a={margin:"#f6b26b",border:"#ffe599",padding:"#93c47d",content:"#6fa8dc",text:"#232020"},mn=6;function Nf(e,{x:t,y:r,w:n,h:a,r:o}){t=t-n/2,r=r-a/2,n<2*o&&(o=n/2),a<2*o&&(o=a/2),e.beginPath(),e.moveTo(t+o,r),e.arcTo(t+n,r,t+n,r+a,o),e.arcTo(t+n,r+a,t,r+a,o),e.arcTo(t,r+a,t,r,o),e.arcTo(t,r,t+n,r,o),e.closePath()}s(Nf,"roundedRect");function CF(e,{padding:t,border:r,width:n,height:a,top:o,left:i}){let l=n-r.left-r.right-t.left-t.right,u=a-t.top-t.bottom-r.top-r.bottom,c=i+r.left+t.left,p=o+r.top+t.top;return e==="top"?c+=l/2:e==="right"?(c+=l,p+=u/2):e==="bottom"?(c+=l/2,p+=u):e==="left"?p+=u/2:e==="center"&&(c+=l/2,p+=u/2),{x:c,y:p}}s(CF,"positionCoordinate");function wF(e,t,{margin:r,border:n,padding:a},o,i){let l=s(h=>0,"shift"),u=0,c=0,p=i?1:.5,d=i?o*2:0;return e==="padding"?l=s(h=>a[h]*p+d,"shift"):e==="border"?l=s(h=>a[h]+n[h]*p+d,"shift"):e==="margin"&&(l=s(h=>a[h]+n[h]+r[h]*p+d,"shift")),t==="top"?c=-l("top"):t==="right"?u=l("right"):t==="bottom"?c=l("bottom"):t==="left"&&(u=-l("left")),{offsetX:u,offsetY:c}}s(wF,"offset");function xF(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}s(xF,"collide");function AF(e,t,r){return e==="top"?t.y=r.y-r.h-mn:e==="right"?t.x=r.x+r.w/2+mn+t.w/2:e==="bottom"?t.y=r.y+r.h+mn:e==="left"&&(t.x=r.x-r.w/2-mn-t.w/2),{x:t.x,y:t.y}}s(AF,"overlapAdjustment");function db(e,t,{x:r,y:n,w:a,h:o},i){return Nf(e,{x:r,y:n,w:a,h:o,r:3}),e.fillStyle=`${$a[t]}dd`,e.fill(),e.strokeStyle=$a[t],e.stroke(),e.fillStyle=$a.text,e.fillText(i,r,n),Nf(e,{x:r,y:n,w:a,h:o,r:3}),e.fillStyle=`${$a[t]}dd`,e.fill(),e.strokeStyle=$a[t],e.stroke(),e.fillStyle=$a.text,e.fillText(i,r,n),{x:r,y:n,w:a,h:o}}s(db,"textWithRect");function fb(e,t){e.font="600 12px monospace",e.textBaseline="middle",e.textAlign="center";let r=e.measureText(t),n=r.actualBoundingBoxAscent+r.actualBoundingBoxDescent,a=r.width+mn*2,o=n+mn*2;return{w:a,h:o}}s(fb,"configureText");function SF(e,t,{type:r,position:n="center",text:a},o,i=!1){let{x:l,y:u}=CF(n,t),{offsetX:c,offsetY:p}=wF(r,n,t,mn+1,i);l+=c,u+=p;let{w:d,h}=fb(e,a);if(o&&xF({x:l,y:u,w:d,h},o)){let f=AF(n,{x:l,y:u,w:d},o);l=f.x,u=f.y}return db(e,r,{x:l,y:u,w:d,h},a)}s(SF,"drawLabel");function _F(e,{w:t,h:r}){let n=t*.5+mn,a=r*.5+mn;return{offsetX:(e.x==="left"?-1:1)*n,offsetY:(e.y==="top"?-1:1)*a}}s(_F,"floatingOffset");function TF(e,t,{type:r,text:n}){let{floatingAlignment:a,extremities:o}=t,i=o[a.x],l=o[a.y],{w:u,h:c}=fb(e,n),{offsetX:p,offsetY:d}=_F(a,{w:u,h:c});return i+=p,l+=d,db(e,r,{x:i,y:l,w:u,h:c},n)}s(TF,"drawFloatingLabel");function za(e,t,r,n){let a=[];r.forEach((o,i)=>{let l=n&&o.position==="center"?TF(e,t,o):SF(e,t,o,a[i-1],n);a[i]=l})}s(za,"drawStack");function PF(e,t,r,n){let a=r.reduce((o,i)=>(Object.prototype.hasOwnProperty.call(o,i.position)||(o[i.position]=[]),o[i.position]?.push(i),o),{});a.top&&za(e,t,a.top,n),a.right&&za(e,t,a.right,n),a.bottom&&za(e,t,a.bottom,n),a.left&&za(e,t,a.left,n),a.center&&za(e,t,a.center,n)}s(PF,"labelStacks");var Nc={margin:"#f6b26ba8",border:"#ffe599a8",padding:"#93c47d8c",content:"#6fa8dca8"},I0=30;function rr(e){return parseInt(e.replace("px",""),10)}s(rr,"pxToNumber");function ca(e){return Number.isInteger(e)?e:e.toFixed(2)}s(ca,"round");function kc(e){return e.filter(t=>t.text!==0&&t.text!=="0")}s(kc,"filterZeroValues");function DF(e){let t={top:he.window.scrollY,bottom:he.window.scrollY+he.window.innerHeight,left:he.window.scrollX,right:he.window.scrollX+he.window.innerWidth},r={top:Math.abs(t.top-e.top),bottom:Math.abs(t.bottom-e.bottom),left:Math.abs(t.left-e.left),right:Math.abs(t.right-e.right)};return{x:r.left>r.right?"left":"right",y:r.top>r.bottom?"top":"bottom"}}s(DF,"floatingAlignment");function OF(e){let t=he.getComputedStyle(e),{top:r,left:n,right:a,bottom:o,width:i,height:l}=e.getBoundingClientRect(),{marginTop:u,marginBottom:c,marginLeft:p,marginRight:d,paddingTop:h,paddingBottom:f,paddingLeft:m,paddingRight:y,borderBottomWidth:b,borderTopWidth:g,borderLeftWidth:v,borderRightWidth:D}=t;r=r+he.window.scrollY,n=n+he.window.scrollX,o=o+he.window.scrollY,a=a+he.window.scrollX;let S={top:rr(u),bottom:rr(c),left:rr(p),right:rr(d)},P={top:rr(h),bottom:rr(f),left:rr(m),right:rr(y)},w={top:rr(g),bottom:rr(b),left:rr(v),right:rr(D)},E={top:r-S.top,bottom:o+S.bottom,left:n-S.left,right:a+S.right};return{margin:S,padding:P,border:w,top:r,left:n,bottom:o,right:a,width:i,height:l,extremities:E,floatingAlignment:DF(E)}}s(OF,"measureElement");function RF(e,{margin:t,width:r,height:n,top:a,left:o,bottom:i,right:l}){let u=n+t.bottom+t.top;e.fillStyle=Nc.margin,e.fillRect(o,a-t.top,r,t.top),e.fillRect(l,a-t.top,t.right,u),e.fillRect(o,i,r,t.bottom),e.fillRect(o-t.left,a-t.top,t.left,u);let c=[{type:"margin",text:ca(t.top),position:"top"},{type:"margin",text:ca(t.right),position:"right"},{type:"margin",text:ca(t.bottom),position:"bottom"},{type:"margin",text:ca(t.left),position:"left"}];return kc(c)}s(RF,"drawMargin");function FF(e,{padding:t,border:r,width:n,height:a,top:o,left:i,bottom:l,right:u}){let c=n-r.left-r.right,p=a-t.top-t.bottom-r.top-r.bottom;e.fillStyle=Nc.padding,e.fillRect(i+r.left,o+r.top,c,t.top),e.fillRect(u-t.right-r.right,o+t.top+r.top,t.right,p),e.fillRect(i+r.left,l-t.bottom-r.bottom,c,t.bottom),e.fillRect(i+r.left,o+t.top+r.top,t.left,p);let d=[{type:"padding",text:t.top,position:"top"},{type:"padding",text:t.right,position:"right"},{type:"padding",text:t.bottom,position:"bottom"},{type:"padding",text:t.left,position:"left"}];return kc(d)}s(FF,"drawPadding");function IF(e,{border:t,width:r,height:n,top:a,left:o,bottom:i,right:l}){let u=n-t.top-t.bottom;e.fillStyle=Nc.border,e.fillRect(o,a,r,t.top),e.fillRect(o,i-t.bottom,r,t.bottom),e.fillRect(o,a+t.top,t.left,u),e.fillRect(l-t.right,a+t.top,t.right,u);let c=[{type:"border",text:t.top,position:"top"},{type:"border",text:t.right,position:"right"},{type:"border",text:t.bottom,position:"bottom"},{type:"border",text:t.left,position:"left"}];return kc(c)}s(IF,"drawBorder");function NF(e,{padding:t,border:r,width:n,height:a,top:o,left:i}){let l=n-r.left-r.right-t.left-t.right,u=a-t.top-t.bottom-r.top-r.bottom;return e.fillStyle=Nc.content,e.fillRect(i+r.left+t.left,o+r.top+t.top,l,u),[{type:"content",position:"center",text:`${ca(l)} x ${ca(u)}`}]}s(NF,"drawContent");function kF(e){return t=>{if(e&&t){let r=OF(e),n=RF(t,r),a=FF(t,r),o=IF(t,r),i=NF(t,r),l=r.width<=I0*3||r.height<=I0;PF(t,r,[...i,...a,...o,...n],l)}}}s(kF,"drawBoxModel");function BF(e){bF(kF(e))}s(BF,"drawSelectedElement");var EH=s((e,t)=>{let r=he.document.elementFromPoint(e,t),n=s(a=>{if(a&&a.shadowRoot){let o=a.shadowRoot.elementFromPoint(e,t);return a.isEqualNode(o)?a:o.shadowRoot?n(o):o}return a},"crawlShadows");return n(r)||r},"deepElementFromPoint"),N0,Ns={x:0,y:0};function kf(e,t){N0=EH(e,t),BF(N0)}s(kf,"findAndDrawElement");var CH=s((e,t)=>{let{measureEnabled:r}=t.globals||{};return Vn(()=>{if(typeof globalThis.document>"u")return;let n=s(a=>{window.requestAnimationFrame(()=>{a.stopPropagation(),Ns.x=a.clientX,Ns.y=a.clientY})},"onPointerMove");return globalThis.document.addEventListener("pointermove",n),()=>{globalThis.document.removeEventListener("pointermove",n)}},[]),Vn(()=>{let n=s(o=>{window.requestAnimationFrame(()=>{o.stopPropagation(),kf(o.clientX,o.clientY)})},"onPointerOver"),a=s(()=>{window.requestAnimationFrame(()=>{vF()})},"onResize");return t.viewMode==="story"&&r&&(globalThis.document.addEventListener("pointerover",n),gF(),globalThis.window.addEventListener("resize",a),kf(Ns.x,Ns.y)),()=>{globalThis.window.removeEventListener("resize",a),EF()}},[r,t.viewMode]),e()},"withMeasure"),wH=globalThis.FEATURES?.measure?[CH]:[],xH={[vH]:!1},k0=s(()=>({decorators:wH,initialGlobals:xH}),"default"),jF="outline",B0=s(e=>{(Array.isArray(e)?e:[e]).forEach(AH)},"clearStyles"),AH=s(e=>{let t=typeof e=="string"?e:e.join(""),r=he.document.getElementById(t);r&&r.parentElement&&r.parentElement.removeChild(r)},"clearStyle"),SH=s((e,t)=>{let r=he.document.getElementById(e);if(r)r.innerHTML!==t&&(r.innerHTML=t);else{let n=he.document.createElement("style");n.setAttribute("id",e),n.innerHTML=t,he.document.head.appendChild(n)}},"addOutlineStyles");function qF(e){return Le`
|
|
475
|
+
${e} body {
|
|
476
|
+
outline: 1px solid #2980b9 !important;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
${e} article {
|
|
480
|
+
outline: 1px solid #3498db !important;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
${e} nav {
|
|
484
|
+
outline: 1px solid #0088c3 !important;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
${e} aside {
|
|
488
|
+
outline: 1px solid #33a0ce !important;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
${e} section {
|
|
492
|
+
outline: 1px solid #66b8da !important;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
${e} header {
|
|
496
|
+
outline: 1px solid #99cfe7 !important;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
${e} footer {
|
|
500
|
+
outline: 1px solid #cce7f3 !important;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
${e} h1 {
|
|
504
|
+
outline: 1px solid #162544 !important;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
${e} h2 {
|
|
508
|
+
outline: 1px solid #314e6e !important;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
${e} h3 {
|
|
512
|
+
outline: 1px solid #3e5e85 !important;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
${e} h4 {
|
|
516
|
+
outline: 1px solid #449baf !important;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
${e} h5 {
|
|
520
|
+
outline: 1px solid #c7d1cb !important;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
${e} h6 {
|
|
524
|
+
outline: 1px solid #4371d0 !important;
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
${e} main {
|
|
528
|
+
outline: 1px solid #2f4f90 !important;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
${e} address {
|
|
532
|
+
outline: 1px solid #1a2c51 !important;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
${e} div {
|
|
536
|
+
outline: 1px solid #036cdb !important;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
${e} p {
|
|
540
|
+
outline: 1px solid #ac050b !important;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
${e} hr {
|
|
544
|
+
outline: 1px solid #ff063f !important;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
${e} pre {
|
|
548
|
+
outline: 1px solid #850440 !important;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
${e} blockquote {
|
|
552
|
+
outline: 1px solid #f1b8e7 !important;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
${e} ol {
|
|
556
|
+
outline: 1px solid #ff050c !important;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
${e} ul {
|
|
560
|
+
outline: 1px solid #d90416 !important;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
${e} li {
|
|
564
|
+
outline: 1px solid #d90416 !important;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
${e} dl {
|
|
568
|
+
outline: 1px solid #fd3427 !important;
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
${e} dt {
|
|
572
|
+
outline: 1px solid #ff0043 !important;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
${e} dd {
|
|
576
|
+
outline: 1px solid #e80174 !important;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
${e} figure {
|
|
580
|
+
outline: 1px solid #ff00bb !important;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
${e} figcaption {
|
|
584
|
+
outline: 1px solid #bf0032 !important;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
${e} table {
|
|
588
|
+
outline: 1px solid #00cc99 !important;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
${e} caption {
|
|
592
|
+
outline: 1px solid #37ffc4 !important;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
${e} thead {
|
|
596
|
+
outline: 1px solid #98daca !important;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
${e} tbody {
|
|
600
|
+
outline: 1px solid #64a7a0 !important;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
${e} tfoot {
|
|
604
|
+
outline: 1px solid #22746b !important;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
${e} tr {
|
|
608
|
+
outline: 1px solid #86c0b2 !important;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
${e} th {
|
|
612
|
+
outline: 1px solid #a1e7d6 !important;
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
${e} td {
|
|
616
|
+
outline: 1px solid #3f5a54 !important;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
${e} col {
|
|
620
|
+
outline: 1px solid #6c9a8f !important;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
${e} colgroup {
|
|
624
|
+
outline: 1px solid #6c9a9d !important;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
${e} button {
|
|
628
|
+
outline: 1px solid #da8301 !important;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
${e} datalist {
|
|
632
|
+
outline: 1px solid #c06000 !important;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
${e} fieldset {
|
|
636
|
+
outline: 1px solid #d95100 !important;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
${e} form {
|
|
640
|
+
outline: 1px solid #d23600 !important;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
${e} input {
|
|
644
|
+
outline: 1px solid #fca600 !important;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
${e} keygen {
|
|
648
|
+
outline: 1px solid #b31e00 !important;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
${e} label {
|
|
652
|
+
outline: 1px solid #ee8900 !important;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
${e} legend {
|
|
656
|
+
outline: 1px solid #de6d00 !important;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
${e} meter {
|
|
660
|
+
outline: 1px solid #e8630c !important;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
${e} optgroup {
|
|
664
|
+
outline: 1px solid #b33600 !important;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
${e} option {
|
|
668
|
+
outline: 1px solid #ff8a00 !important;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
${e} output {
|
|
672
|
+
outline: 1px solid #ff9619 !important;
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
${e} progress {
|
|
676
|
+
outline: 1px solid #e57c00 !important;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
${e} select {
|
|
680
|
+
outline: 1px solid #e26e0f !important;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
${e} textarea {
|
|
684
|
+
outline: 1px solid #cc5400 !important;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
${e} details {
|
|
688
|
+
outline: 1px solid #33848f !important;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
${e} summary {
|
|
692
|
+
outline: 1px solid #60a1a6 !important;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
${e} command {
|
|
696
|
+
outline: 1px solid #438da1 !important;
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
${e} menu {
|
|
700
|
+
outline: 1px solid #449da6 !important;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
${e} del {
|
|
704
|
+
outline: 1px solid #bf0000 !important;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
${e} ins {
|
|
708
|
+
outline: 1px solid #400000 !important;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
${e} img {
|
|
712
|
+
outline: 1px solid #22746b !important;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
${e} iframe {
|
|
716
|
+
outline: 1px solid #64a7a0 !important;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
${e} embed {
|
|
720
|
+
outline: 1px solid #98daca !important;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
${e} object {
|
|
724
|
+
outline: 1px solid #00cc99 !important;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
${e} param {
|
|
728
|
+
outline: 1px solid #37ffc4 !important;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
${e} video {
|
|
732
|
+
outline: 1px solid #6ee866 !important;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
${e} audio {
|
|
736
|
+
outline: 1px solid #027353 !important;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
${e} source {
|
|
740
|
+
outline: 1px solid #012426 !important;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
${e} canvas {
|
|
744
|
+
outline: 1px solid #a2f570 !important;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
${e} track {
|
|
748
|
+
outline: 1px solid #59a600 !important;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
${e} map {
|
|
752
|
+
outline: 1px solid #7be500 !important;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
${e} area {
|
|
756
|
+
outline: 1px solid #305900 !important;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
${e} a {
|
|
760
|
+
outline: 1px solid #ff62ab !important;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
${e} em {
|
|
764
|
+
outline: 1px solid #800b41 !important;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
${e} strong {
|
|
768
|
+
outline: 1px solid #ff1583 !important;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
${e} i {
|
|
772
|
+
outline: 1px solid #803156 !important;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
${e} b {
|
|
776
|
+
outline: 1px solid #cc1169 !important;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
${e} u {
|
|
780
|
+
outline: 1px solid #ff0430 !important;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
${e} s {
|
|
784
|
+
outline: 1px solid #f805e3 !important;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
${e} small {
|
|
788
|
+
outline: 1px solid #d107b2 !important;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
${e} abbr {
|
|
792
|
+
outline: 1px solid #4a0263 !important;
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
${e} q {
|
|
796
|
+
outline: 1px solid #240018 !important;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
${e} cite {
|
|
800
|
+
outline: 1px solid #64003c !important;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
${e} dfn {
|
|
804
|
+
outline: 1px solid #b4005a !important;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
${e} sub {
|
|
808
|
+
outline: 1px solid #dba0c8 !important;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
${e} sup {
|
|
812
|
+
outline: 1px solid #cc0256 !important;
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
${e} time {
|
|
816
|
+
outline: 1px solid #d6606d !important;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
${e} code {
|
|
820
|
+
outline: 1px solid #e04251 !important;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
${e} kbd {
|
|
824
|
+
outline: 1px solid #5e001f !important;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
${e} samp {
|
|
828
|
+
outline: 1px solid #9c0033 !important;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
${e} var {
|
|
832
|
+
outline: 1px solid #d90047 !important;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
${e} mark {
|
|
836
|
+
outline: 1px solid #ff0053 !important;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
${e} bdi {
|
|
840
|
+
outline: 1px solid #bf3668 !important;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
${e} bdo {
|
|
844
|
+
outline: 1px solid #6f1400 !important;
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
${e} ruby {
|
|
848
|
+
outline: 1px solid #ff7b93 !important;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
${e} rt {
|
|
852
|
+
outline: 1px solid #ff2f54 !important;
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
${e} rp {
|
|
856
|
+
outline: 1px solid #803e49 !important;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
${e} span {
|
|
860
|
+
outline: 1px solid #cc2643 !important;
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
${e} br {
|
|
864
|
+
outline: 1px solid #db687d !important;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
${e} wbr {
|
|
868
|
+
outline: 1px solid #db175b !important;
|
|
869
|
+
}`}s(qF,"outlineCSS");var _H=s((e,t)=>{let r=t.globals||{},n=[!0,"true"].includes(r[jF]),a=t.viewMode==="docs",o=Xh(()=>qF(a?'[data-story-block="true"]':".sb-show-main"),[t]);return Vn(()=>{let i=a?`addon-outline-docs-${t.id}`:"addon-outline";return n?SH(i,o):B0(i),()=>{B0(i)}},[n,o,t]),e()},"withOutline"),TH=globalThis.FEATURES?.outline?[_H]:[],PH={[jF]:!1},j0=s(()=>({decorators:TH,initialGlobals:PH}),"default"),DH=s(({parameters:e})=>{e?.test?.mockReset===!0?cg():e?.test?.clearMocks===!0?ug():e?.test?.restoreMocks!==!1&&pg()},"resetAllMocksLoader"),Bf=s((e,t=0,r)=>{if(t>5||e==null)return e;if(ma(e))return r&&e.mockName(r),e;if(typeof e=="function"&&"isAction"in e&&e.isAction&&!("implicit"in e&&e.implicit)){let n=sg(e);return r&&n.mockName(r),n}if(Array.isArray(e)){t++;for(let n=0;n<e.length;n++)Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Bf(e[n],t));return e}if(typeof e=="object"&&e.constructor===Object){t++;for(let[n,a]of Object.entries(e))Object.getOwnPropertyDescriptor(e,n)?.writable&&(e[n]=Bf(a,t,n));return e}return e},"traverseArgs"),OH=s(({initialArgs:e})=>{Bf(e)},"nameSpiesAndWrapActionsInSpies"),q0=!1,RH=s(async e=>{globalThis.HTMLElement&&e.canvasElement instanceof globalThis.HTMLElement&&(e.canvas=hF(e.canvasElement));let t=globalThis.window?.navigator?.clipboard;if(t){e.userEvent=No({userEvent:mF.setup()},{intercept:!0,getKeys:s(n=>Object.keys(n).filter(a=>a!=="eventWrapper"),"getKeys")}).userEvent,Object.defineProperty(globalThis.window.navigator,"clipboard",{get:s(()=>t,"get"),configurable:!0});let r=HTMLElement.prototype.focus;q0||Object.defineProperties(HTMLElement.prototype,{focus:{configurable:!0,set:s(n=>{r=n,q0=!0},"set"),get:s(()=>r,"get")}})}},"enhanceContext"),M0=s(()=>({loaders:[DH,OH,RH]}),"default"),FH="viewport",IH={[FH]:{value:void 0,isRotated:!1}},L0=s(()=>({initialGlobals:IH}),"default");function hb(){return[(k0.default??k0)(),(x0.default??x0)(),(F0.default??F0)(),(j0.default??j0)(),(L0.default??L0)(),(v0.default??v0)(),(A0.default??A0)(),(M0.default??M0)()]}s(hb,"getCoreAnnotations");function Bc(e){return e!=null&&typeof e=="object"&&"_tag"in e&&e?._tag==="Story"}s(Bc,"isStory");var MF=s(e=>e.toLowerCase().replace(/[ ’–—―′¿'`~!@#$%^&*()_|+\-=?;:'",.<>\{\}\[\]\\\/]/gi,"-").replace(/-+/g,"-").replace(/^-+/,"").replace(/-+$/,""),"sanitize"),$0=s((e,t)=>{let r=MF(e);if(r==="")throw new Error(`Invalid ${t} '${e}', must include alphanumeric characters`);return r},"sanitizeSafe"),NH=s((e,t)=>`${$0(e,"kind")}${t?`--${$0(t,"name")}`:""}`,"toId"),kH=s(e=>K1(e),"storyNameFromExport");function jf(e,t){return Array.isArray(t)?t.includes(e):e.match(t)}s(jf,"matches");function tu(e,{includeStories:t,excludeStories:r}){return e!=="__esModule"&&(!t||jf(e,t))&&(!r||!jf(e,r))}s(tu,"isExportStory");var BH=s((...e)=>{let t=e.reduce((r,n)=>(n.startsWith("!")?r.delete(n.slice(1)):r.add(n),r),new Set);return Array.from(t)},"combineTags");function LF(){}s(LF,"noop");function qf(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}s(qf,"getSymbols");function Mf(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}s(Mf,"getTag");var jH="[object RegExp]",qH="[object String]",MH="[object Number]",LH="[object Boolean]",U0="[object Arguments]",$H="[object Symbol]",UH="[object Date]",VH="[object Map]",HH="[object Set]",JH="[object Array]",zH="[object Function]",GH="[object ArrayBuffer]",bp="[object Object]",WH="[object Error]",YH="[object DataView]",KH="[object Uint8Array]",XH="[object Uint8ClampedArray]",QH="[object Uint16Array]",ZH="[object Uint32Array]",eJ="[object BigUint64Array]",tJ="[object Int8Array]",rJ="[object Int16Array]",nJ="[object Int32Array]",aJ="[object BigInt64Array]",oJ="[object Float32Array]",iJ="[object Float64Array]";function Dr(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}s(Dr,"isPlainObject");function Po(e,t){let r={},n=Object.keys(e);for(let a=0;a<n.length;a++){let o=n[a],i=e[o];r[o]=t(i,o,e)}return r}s(Po,"mapValues");function $F(e,t){let r={},n=Object.keys(e);for(let a=0;a<n.length;a++){let o=n[a],i=e[o];t(i,o)&&(r[o]=i)}return r}s($F,"pickBy");function UF(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}s(UF,"eq");function VF(e,t,r){return ro(e,t,void 0,void 0,void 0,void 0,r)}s(VF,"isEqualWith");function ro(e,t,r,n,a,o,i){let l=i(e,t,r,n,a,o);if(l!==void 0)return l;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 uo(e,t,o,i)}return uo(e,t,o,i)}s(ro,"isEqualWithImpl");function uo(e,t,r,n){if(Object.is(e,t))return!0;let a=Mf(e),o=Mf(t);if(a===U0&&(a=bp),o===U0&&(o=bp),a!==o)return!1;switch(a){case qH:return e.toString()===t.toString();case MH:{let u=e.valueOf(),c=t.valueOf();return UF(u,c)}case LH:case UH:case $H:return Object.is(e.valueOf(),t.valueOf());case jH:return e.source===t.source&&e.flags===t.flags;case zH:return e===t}r=r??new Map;let i=r.get(e),l=r.get(t);if(i!=null&&l!=null)return i===t;r.set(e,t),r.set(t,e);try{switch(a){case VH:{if(e.size!==t.size)return!1;for(let[u,c]of e.entries())if(!t.has(u)||!ro(c,t.get(u),u,e,t,r,n))return!1;return!0}case HH:{if(e.size!==t.size)return!1;let u=Array.from(e.values()),c=Array.from(t.values());for(let p=0;p<u.length;p++){let d=u[p],h=c.findIndex(f=>ro(d,f,void 0,e,t,r,n));if(h===-1)return!1;c.splice(h,1)}return!0}case JH:case KH:case XH:case QH:case ZH:case eJ:case tJ:case rJ:case nJ:case aJ:case oJ:case iJ:{if(typeof Buffer<"u"&&Buffer.isBuffer(e)!==Buffer.isBuffer(t)||e.length!==t.length)return!1;for(let u=0;u<e.length;u++)if(!ro(e[u],t[u],u,e,t,r,n))return!1;return!0}case GH:return e.byteLength!==t.byteLength?!1:uo(new Uint8Array(e),new Uint8Array(t),r,n);case YH:return e.byteLength!==t.byteLength||e.byteOffset!==t.byteOffset?!1:uo(new Uint8Array(e),new Uint8Array(t),r,n);case WH:return e.name===t.name&&e.message===t.message;case bp:{if(!(uo(e.constructor,t.constructor,r,n)||Dr(e)&&Dr(t)))return!1;let u=[...Object.keys(e),...qf(e)],c=[...Object.keys(t),...qf(t)];if(u.length!==c.length)return!1;for(let p=0;p<u.length;p++){let d=u[p],h=e[d];if(!Object.hasOwn(t,d))return!1;let f=t[d];if(!ro(h,f,d,e,t,r,n))return!1}return!0}default:return!1}}finally{r.delete(e),r.delete(t)}}s(uo,"areObjectsEqual");function HF(e,t){return VF(e,t,LF)}s(HF,"isEqual");var vp=Et(sC(),1),Ga=Symbol("incompatible"),Lf=s((e,t)=>{let r=t.type;if(e==null||!r||t.mapping)return e;switch(r.name){case"string":return String(e);case"enum":return e;case"number":return Number(e);case"boolean":return String(e)==="true";case"array":return!r.value||!Array.isArray(e)?Ga:e.reduce((n,a,o)=>{let i=Lf(a,{type:r.value});return i!==Ga&&(n[o]=i),n},new Array(e.length));case"object":return typeof e=="string"||typeof e=="number"?e:!r.value||typeof e!="object"?Ga:Object.entries(e).reduce((n,[a,o])=>{let i=Lf(o,{type:r.value[a]});return i===Ga?n:Object.assign(n,{[a]:i})},{});default:return Ga}},"map"),sJ=s((e,t)=>Object.entries(e).reduce((r,[n,a])=>{if(!t[n])return r;let o=Lf(a,t[n]);return o===Ga?r:Object.assign(r,{[n]:o})},{}),"mapArgsToTypes"),ru=s((e,t)=>Array.isArray(e)&&Array.isArray(t)?t.reduce((r,n,a)=>(r[a]=ru(e[a],t[a]),r),[...e]).filter(r=>r!==void 0):!Dr(e)||!Dr(t)?t:Object.keys({...e,...t}).reduce((r,n)=>{if(n in t){let a=ru(e[n],t[n]);a!==void 0&&(r[n]=a)}else r[n]=e[n];return r},{}),"combineArgs"),lJ=s((e,t)=>Object.entries(t).reduce((r,[n,{options:a}])=>{function o(){return n in e&&(r[n]=e[n]),r}if(s(o,"allowArg"),!a)return o();if(!Array.isArray(a))return vt.error(Le`
|
|
870
|
+
Invalid argType: '${n}.options' should be an array.
|
|
871
|
+
|
|
872
|
+
More info: https://storybook.js.org/docs/api/arg-types?ref=error
|
|
873
|
+
`),o();if(a.some(d=>d&&["object","function"].includes(typeof d)))return vt.error(Le`
|
|
874
|
+
Invalid argType: '${n}.options' should only contain primitives. Use a 'mapping' for complex values.
|
|
875
|
+
|
|
876
|
+
More info: https://storybook.js.org/docs/writing-stories/args?ref=error#mapping-to-complex-arg-values
|
|
877
|
+
`),o();let i=Array.isArray(e[n]),l=i&&e[n].findIndex(d=>!a.includes(d)),u=i&&l===-1;if(e[n]===void 0||a.includes(e[n])||u)return o();let c=i?`${n}[${l}]`:n,p=a.map(d=>typeof d=="string"?`'${d}'`:String(d)).join(", ");return vt.warn(`Received illegal value for '${c}'. Supported options: ${p}`),r},{}),"validateOptions"),Ai=Symbol("Deeply equal"),nu=s((e,t)=>{if(typeof e!=typeof t)return t;if(HF(e,t))return Ai;if(Array.isArray(e)&&Array.isArray(t)){let r=t.reduce((n,a,o)=>{let i=nu(e[o],a);return i!==Ai&&(n[o]=i),n},new Array(t.length));return t.length>=e.length?r:r.concat(new Array(e.length-t.length).fill(void 0))}return Dr(e)&&Dr(t)?Object.keys({...e,...t}).reduce((r,n)=>{let a=nu(e?.[n],t?.[n]);return a===Ai?r:Object.assign(r,{[n]:a})},{}):t},"deepDiff"),JF="UNTARGETED";function zF({args:e,argTypes:t}){let r={};return Object.entries(e).forEach(([n,a])=>{let{target:o=JF}=t[n]||{};r[o]=r[o]||{},r[o][n]=a}),r}s(zF,"groupArgsByTarget");function GF(e){return Object.keys(e).forEach(t=>e[t]===void 0&&delete e[t]),e}s(GF,"deleteUndefined");var WF=class{constructor(){this.initialArgsByStoryId={},this.argsByStoryId={}}get(t){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);return this.argsByStoryId[t]}setInitial(t){if(!this.initialArgsByStoryId[t.id])this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs;else if(this.initialArgsByStoryId[t.id]!==t.initialArgs){let r=nu(this.initialArgsByStoryId[t.id],this.argsByStoryId[t.id]);this.initialArgsByStoryId[t.id]=t.initialArgs,this.argsByStoryId[t.id]=t.initialArgs,r!==Ai&&this.updateFromDelta(t,r)}}updateFromDelta(t,r){let n=lJ(r,t.argTypes);this.argsByStoryId[t.id]=ru(this.argsByStoryId[t.id],n)}updateFromPersisted(t,r){let n=sJ(r,t.argTypes);return this.updateFromDelta(t,n)}update(t,r){if(!(t in this.argsByStoryId))throw new Error(`No args known for ${t} -- has it been rendered yet?`);this.argsByStoryId[t]=GF({...this.argsByStoryId[t],...r})}};s(WF,"ArgsStore");var uJ=WF,YF=s((e={})=>Object.entries(e).reduce((t,[r,{defaultValue:n}])=>(typeof n<"u"&&(t[r]=n),t),{}),"getValuesFromArgTypes"),KF=class{constructor({globals:t={},globalTypes:r={}}){this.set({globals:t,globalTypes:r})}set({globals:t={},globalTypes:r={}}){let n=this.initialGlobals&&nu(this.initialGlobals,this.globals);this.allowedGlobalNames=new Set([...Object.keys(t),...Object.keys(r)]);let a=YF(r);this.initialGlobals={...a,...t},this.globals=this.initialGlobals,n&&n!==Ai&&this.updateFromPersisted(n)}filterAllowedGlobals(t){return Object.entries(t).reduce((r,[n,a])=>(this.allowedGlobalNames.has(n)?r[n]=a:it.warn(`Attempted to set a global (${n}) that is not defined in initial globals or globalTypes`),r),{})}updateFromPersisted(t){let r=this.filterAllowedGlobals(t);this.globals={...this.globals,...r}}get(){return this.globals}update(t){this.globals={...this.globals,...this.filterAllowedGlobals(t)};for(let r in t)t[r]===void 0&&(this.globals[r]=this.initialGlobals[r])}};s(KF,"GlobalsStore");var cJ=KF,pJ=Et(sC(),1),dJ=(0,pJ.default)(1)(e=>Object.values(e).reduce((t,r)=>(t[r.importPath]=t[r.importPath]||r,t),{})),XF=class{constructor({entries:t}={v:5,entries:{}}){this.entries=t}entryFromSpecifier(t){let r=Object.values(this.entries);if(t==="*")return r[0];if(typeof t=="string")return this.entries[t]?this.entries[t]:r.find(o=>o.id.startsWith(t));let{name:n,title:a}=t;return r.find(o=>o.name===n&&o.title===a)}storyIdToEntry(t){let r=this.entries[t];if(!r)throw new r1({storyId:t});return r}importPathToEntry(t){return dJ(this.entries)[t]}};s(XF,"StoryIndexStore");var fJ=XF,hJ=s(e=>typeof e=="string"?{name:e}:e,"normalizeType"),mJ=s(e=>typeof e=="string"?{type:e}:e,"normalizeControl"),yJ=s((e,t)=>{let{type:r,control:n,...a}=e,o={name:t,...a};return r&&(o.type=hJ(r)),n?o.control=mJ(n):n===!1&&(o.control={disable:!0}),o},"normalizeInputType"),au=s(e=>Po(e,yJ),"normalizeInputTypes"),et=s(e=>Array.isArray(e)?e:e?[e]:[],"normalizeArrays"),gJ=Le`
|
|
878
|
+
CSF .story annotations deprecated; annotate story functions directly:
|
|
879
|
+
- StoryFn.story.name => StoryFn.storyName
|
|
880
|
+
- StoryFn.story.(parameters|decorators) => StoryFn.(parameters|decorators)
|
|
881
|
+
See https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#hoisted-csf-annotations for details and codemod.
|
|
882
|
+
`;function Yi(e,t,r){let n=t,a=typeof t=="function"?t:null,{story:o}=n;o&&(it.debug("deprecated story",o),Ih(gJ));let i=kH(e),l=typeof n!="function"&&n.name||n.storyName||o?.name||i,u=[...et(n.decorators),...et(o?.decorators)],c={...o?.parameters,...n.parameters},p={...o?.args,...n.args},d={...o?.argTypes,...n.argTypes},h=[...et(n.loaders),...et(o?.loaders)],f=[...et(n.beforeEach),...et(o?.beforeEach)],m=[...et(n.afterEach),...et(o?.afterEach)],{render:y,play:b,tags:g=[],globals:v={}}=n,D=c.__id||NH(r.id,i);return{moduleExport:t,id:D,name:l,tags:g,decorators:u,parameters:c,args:p,argTypes:au(d),loaders:h,beforeEach:f,afterEach:m,globals:v,...y&&{render:y},...a&&{userStoryFn:a},...b&&{play:b}}}s(Yi,"normalizeStory");function ou(e,t=e.title,r){let{id:n,argTypes:a}=e;return{id:MF(n||t),...e,title:t,...a&&{argTypes:au(a)},parameters:{fileName:r,...e.parameters}}}s(ou,"normalizeComponentAnnotations");var bJ=s(e=>{let{globals:t,globalTypes:r}=e;(t||r)&&it.error("Global args/argTypes can only be set globally",JSON.stringify({globals:t,globalTypes:r}))},"checkGlobals"),vJ=s(e=>{let{options:t}=e;t?.storySort&&it.error("The storySort option parameter can only be set globally")},"checkStorySort"),ks=s(e=>{e&&(bJ(e),vJ(e))},"checkDisallowedParameters");function QF(e,t,r){let{default:n,__namedExportsOrder:a,...o}=e,i=Object.values(o)[0];if(Bc(i)){let c=ou(i.meta.input,r,t);ks(c.parameters);let p={meta:c,stories:{},moduleExports:e};return Object.keys(o).forEach(d=>{if(tu(d,c)){let h=Yi(d,o[d].input,c);ks(h.parameters),p.stories[h.id]=h}}),p.projectAnnotations=i.meta.preview.composed,p}let l=ou(n,r,t);ks(l.parameters);let u={meta:l,stories:{},moduleExports:e};return Object.keys(o).forEach(c=>{if(tu(c,l)){let p=Yi(c,o[c],l);ks(p.parameters),u.stories[p.id]=p}}),u}s(QF,"processCSFFile");function ZF(e){return e!=null&&eI(e).includes("mount")}s(ZF,"mountDestructured");function eI(e){let t=e.toString().match(/[^(]*\(([^)]*)/);if(!t)return[];let r=$f(t[1]);if(!r.length)return[];let n=r[0];return n.startsWith("{")&&n.endsWith("}")?$f(n.slice(1,-1).replace(/\s/g,"")).map(a=>a.replace(/:.*|=.*/g,"")):[]}s(eI,"getUsedProps");function $f(e){let t=[],r=[],n=0;for(let o=0;o<e.length;o++)if(e[o]==="{"||e[o]==="[")r.push(e[o]==="{"?"}":"]");else if(e[o]===r[r.length-1])r.pop();else if(!r.length&&e[o]===","){let i=e.substring(n,o).trim();i&&t.push(i),n=o+1}let a=e.substring(n).trim();return a&&t.push(a),t}s($f,"splitByComma");function mb(e,t,r){let n=r(e);return a=>t(n,a)}s(mb,"decorateStory");function yb({componentId:e,title:t,kind:r,id:n,name:a,story:o,parameters:i,initialArgs:l,argTypes:u,...c}={}){return c}s(yb,"sanitizeStoryContextUpdate");function gb(e,t){let r={},n=s(o=>i=>{if(!r.value)throw new Error("Decorated function called without init");return r.value={...r.value,...yb(i)},o(r.value)},"bindWithContext"),a=t.reduce((o,i)=>mb(o,i,n),e);return o=>(r.value=o,a(o))}s(gb,"defaultDecorateStory");var Pa=s((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((a,o)=>(Object.entries(o).forEach(([i,l])=>{let u=a[i];Array.isArray(l)||typeof u>"u"?a[i]=l:Dr(l)&&Dr(u)?t[i]=!0:typeof l<"u"&&(a[i]=l)}),a),{});return Object.keys(t).forEach(a=>{let o=r.filter(Boolean).map(i=>i[a]).filter(i=>typeof i<"u");o.every(i=>Dr(i))?n[a]=Pa(...o):n[a]=o[o.length-1]}),n},"combineParameters");function jc(e,t,r){let{moduleExport:n,id:a,name:o}=e||{},i=vb(e,t,r),l=s(async w=>{let E={};for(let C of[et(r.loaders),et(t.loaders),et(e.loaders)]){if(w.abortSignal.aborted)return E;let _=await Promise.all(C.map(k=>k(w)));Object.assign(E,..._)}return E},"applyLoaders"),u=s(async w=>{let E=new Array;for(let C of[...et(r.beforeEach),...et(t.beforeEach),...et(e.beforeEach)]){if(w.abortSignal.aborted)return E;let _=await C(w);_&&E.push(_)}return E},"applyBeforeEach"),c=s(async w=>{let E=[...et(r.afterEach),...et(t.afterEach),...et(e.afterEach)].reverse();for(let C of E){if(w.abortSignal.aborted)return;await C(w)}},"applyAfterEach"),p=s(w=>w.originalStoryFn(w.args,w),"undecoratedStoryFn"),{applyDecorators:d=gb,runStep:h}=r,f=[...et(e?.decorators),...et(t?.decorators),...et(r?.decorators)],m=e?.userStoryFn||e?.render||t.render||r.render,y=L1(d)(p,f),b=s(w=>y(w),"unboundStoryFn"),g=e?.play??t?.play,v=ZF(g);if(!m&&!v)throw new A1({id:a});let D=s(w=>async()=>(await w.renderToCanvas(),w.canvas),"defaultMount"),S=e.mount??t.mount??r.mount??D,P=r.testingLibraryRender;return{storyGlobals:{},...i,moduleExport:n,id:a,name:o,story:o,originalStoryFn:m,undecoratedStoryFn:p,unboundStoryFn:b,applyLoaders:l,applyBeforeEach:u,applyAfterEach:c,playFunction:g,runStep:h,mount:S,testingLibraryRender:P,renderToCanvas:r.renderToCanvas,usesMount:v}}s(jc,"prepareStory");function bb(e,t,r){return{...vb(void 0,e,t),moduleExport:r}}s(bb,"prepareMeta");function vb(e,t,r){let n=["dev","test"],a=he.DOCS_OPTIONS?.autodocs===!0?["autodocs"]:[],o=BH(...n,...a,...r.tags??[],...t.tags??[],...e?.tags??[]),i=Pa(r.parameters,t.parameters,e?.parameters),{argTypesEnhancers:l=[],argsEnhancers:u=[]}=r,c=Pa(r.argTypes,t.argTypes,e?.argTypes);if(e){let g=e?.userStoryFn||e?.render||t.render||r.render;i.__isArgsStory=g&&g.length>0}let p={...r.args,...t.args,...e?.args},d={...t.globals,...e?.globals},h={componentId:t.id,title:t.title,kind:t.title,id:e?.id||t.id,name:e?.name||"__meta",story:e?.name||"__meta",component:t.component,subcomponents:t.subcomponents,tags:o,parameters:i,initialArgs:p,argTypes:c,storyGlobals:d};h.argTypes=l.reduce((g,v)=>v({...h,argTypes:g}),h.argTypes);let f={...p};h.initialArgs=[...u].reduce((g,v)=>({...g,...v({...h,initialArgs:g})}),f);let{name:m,story:y,...b}=h;return b}s(vb,"preparePartialAnnotations");function Eb(e){let{args:t}=e,r={...e,allArgs:void 0,argsByTarget:void 0};if(he.FEATURES?.argTypeTargetsV7){let o=zF(e);r={...e,allArgs:e.args,argsByTarget:o,args:o[JF]||{}}}let n=Object.entries(r.args).reduce((o,[i,l])=>{if(!r.argTypes[i]?.mapping)return o[i]=l,o;let u=s(c=>{let p=r.argTypes[i].mapping;return p&&c in p?p[c]:c},"mappingFn");return o[i]=Array.isArray(l)?l.map(u):u(l),o},{}),a=Object.entries(n).reduce((o,[i,l])=>{let u=r.argTypes[i]||{};return F8(u,n,r.globals)&&(o[i]=l),o},{});return{...r,unmappedArgs:t,args:a}}s(Eb,"prepareContext");var Uf=s((e,t,r)=>{let n=typeof e;switch(n){case"boolean":case"string":case"number":case"function":case"symbol":return{name:n}}return e?r.has(e)?(it.warn(Le`
|
|
883
|
+
We've detected a cycle in arg '${t}'. Args should be JSON-serializable.
|
|
884
|
+
|
|
885
|
+
Consider using the mapping feature or fully custom args:
|
|
886
|
+
- Mapping: https://storybook.js.org/docs/writing-stories/args#mapping-to-complex-arg-values
|
|
887
|
+
- Custom args: https://storybook.js.org/docs/essentials/controls#fully-custom-args
|
|
888
|
+
`),{name:"other",value:"cyclic object"}):(r.add(e),Array.isArray(e)?{name:"array",value:e.length>0?Uf(e[0],t,new Set(r)):{name:"other",value:"unknown"}}:{name:"object",value:Po(e,a=>Uf(a,t,new Set(r)))}):{name:"object",value:{}}},"inferType"),tI=s(e=>{let{id:t,argTypes:r={},initialArgs:n={}}=e,a=Po(n,(i,l)=>({name:l,type:Uf(i,`${t}.${l}`,new Set)})),o=Po(r,(i,l)=>({name:l}));return Pa(a,o,r)},"inferArgTypes");tI.secondPass=!0;var V0=s((e,t)=>Array.isArray(t)?t.includes(e):e.match(t),"matches"),rI=s((e,t,r)=>!t&&!r?e:e&&$F(e,(n,a)=>{let o=n.name||a.toString();return!!(!t||V0(o,t))&&(!r||!V0(o,r))}),"filterArgTypes"),EJ=s((e,t,r)=>{let{type:n,options:a}=e;if(n){if(r.color&&r.color.test(t)){let o=n.name;if(o==="string")return{control:{type:"color"}};o!=="enum"&&it.warn(`Addon controls: Control of type color only supports string, received "${o}" instead`)}if(r.date&&r.date.test(t))return{control:{type:"date"}};switch(n.name){case"array":return{control:{type:"object"}};case"boolean":return{control:{type:"boolean"}};case"string":return{control:{type:"text"}};case"number":return{control:{type:"number"}};case"enum":{let{value:o}=n;return{control:{type:o?.length<=5?"radio":"select"},options:o}}case"function":case"symbol":return null;default:return{control:{type:a?"select":"object"}}}}},"inferControl"),Cb=s(e=>{let{argTypes:t,parameters:{__isArgsStory:r,controls:{include:n=null,exclude:a=null,matchers:o={}}={}}}=e;if(!r)return t;let i=rI(t,n,a),l=Po(i,(u,c)=>u?.type&&EJ(u,c.toString(),o));return Pa(l,i)},"inferControls");Cb.secondPass=!0;function Ki({argTypes:e,globalTypes:t,argTypesEnhancers:r,decorators:n,loaders:a,beforeEach:o,afterEach:i,initialGlobals:l,...u}){return{...e&&{argTypes:au(e)},...t&&{globalTypes:au(t)},decorators:et(n),loaders:et(a),beforeEach:et(o),afterEach:et(i),argTypesEnhancers:[...r||[],tI,Cb],initialGlobals:l,...u}}s(Ki,"normalizeProjectAnnotations");var CJ=s(e=>async()=>{let t=[];for(let r of e){let n=await r();n&&t.unshift(n)}return async()=>{for(let r of t)await r()}},"composeBeforeAllHooks");function wb(e){return async(t,r,n)=>{await e.reduceRight((a,o)=>async()=>o(t,a,n),async()=>r(n))()}}s(wb,"composeStepRunners");function Do(e,t){return e.map(r=>r.default?.[t]??r[t]).filter(Boolean)}s(Do,"getField");function un(e,t,r={}){return Do(e,t).reduce((n,a)=>{let o=et(a);return r.reverseFileOrder?[...o,...n]:[...n,...o]},[])}s(un,"getArrayField");function pi(e,t){return Object.assign({},...Do(e,t))}s(pi,"getObjectField");function Wa(e,t){return Do(e,t).pop()}s(Wa,"getSingletonField");function Da(e){let t=un(e,"argTypesEnhancers"),r=Do(e,"runStep"),n=un(e,"beforeAll");return{parameters:Pa(...Do(e,"parameters")),decorators:un(e,"decorators",{reverseFileOrder:!(he.FEATURES?.legacyDecoratorFileOrder??!1)}),args:pi(e,"args"),argsEnhancers:un(e,"argsEnhancers"),argTypes:pi(e,"argTypes"),argTypesEnhancers:[...t.filter(a=>!a.secondPass),...t.filter(a=>a.secondPass)],initialGlobals:pi(e,"initialGlobals"),globalTypes:pi(e,"globalTypes"),loaders:un(e,"loaders"),beforeAll:CJ(n),beforeEach:un(e,"beforeEach"),afterEach:un(e,"afterEach"),render:Wa(e,"render"),renderToCanvas:Wa(e,"renderToCanvas"),applyDecorators:Wa(e,"applyDecorators"),runStep:wb(r),tags:un(e,"tags"),mount:Wa(e,"mount"),testingLibraryRender:Wa(e,"testingLibraryRender")}}s(Da,"composeConfigs");function xb(){try{return!!globalThis.__vitest_browser__||!!globalThis.window?.navigator?.userAgent?.match(/StorybookTestRunner/)}catch{return!1}}s(xb,"isTestEnvironment");function qc(e=!0){if(!("document"in globalThis&&"createElement"in globalThis.document))return()=>{};let t=document.createElement("style");t.textContent=`*, *:before, *:after {
|
|
889
|
+
animation: none !important;
|
|
890
|
+
}`,document.head.appendChild(t);let r=document.createElement("style");return r.textContent=`*, *:before, *:after {
|
|
891
|
+
animation-delay: 0s !important;
|
|
892
|
+
animation-direction: ${e?"reverse":"normal"} !important;
|
|
893
|
+
animation-play-state: paused !important;
|
|
894
|
+
transition: none !important;
|
|
895
|
+
}`,document.head.appendChild(r),document.body.clientHeight,document.head.removeChild(t),()=>{r.parentNode?.removeChild(r)}}s(qc,"pauseAnimations");async function Mc(e){if(!("document"in globalThis&&"getAnimations"in globalThis.document&&"querySelectorAll"in globalThis.document))return;let t=!1;await Promise.race([new Promise(r=>{setTimeout(()=>{let n=[globalThis.document,...Ab(globalThis.document)],a=s(async()=>{if(t||e?.aborted)return;let o=n.flatMap(i=>i?.getAnimations?.()||[]).filter(i=>i.playState==="running"&&!nI(i));o.length>0&&(await Promise.all(o.map(i=>i.finished)),await a())},"checkAnimationsFinished");a().then(r)},100)}),new Promise(r=>setTimeout(()=>{t=!0,r(void 0)},5e3))])}s(Mc,"waitForAnimations");function Ab(e){return[e,...e.querySelectorAll("*")].reduce((t,r)=>("shadowRoot"in r&&r.shadowRoot&&t.push(r.shadowRoot,...Ab(r.shadowRoot)),t),[])}s(Ab,"getShadowRoots");function nI(e){if(e instanceof CSSAnimation&&e.effect instanceof KeyframeEffect&&e.effect.target){let t=getComputedStyle(e.effect.target,e.effect.pseudoElement),r=t.animationName?.split(", ").indexOf(e.animationName);return t.animationIterationCount.split(", ")[r]==="infinite"}return!1}s(nI,"isInfiniteAnimation");var aI=class{constructor(){this.reports=[]}async addReport(t){this.reports.push(t)}};s(aI,"ReporterAPI");var Sb=aI;function _b(e,t,r){return Bc(e)?{story:e.input,meta:e.meta.input,preview:e.meta.preview.composed}:{story:e,meta:t,preview:r}}s(_b,"getCsfFactoryAnnotations");function oI(e){globalThis.defaultProjectAnnotations=e}s(oI,"setDefaultProjectAnnotations");var wJ="ComposedStory",xJ="Unnamed Story";function iI(e){return e?Da([e]):{}}s(iI,"extractAnnotation");function sI(e){let t=Array.isArray(e)?e:[e];return globalThis.globalProjectAnnotations=Da([...hb(),globalThis.defaultProjectAnnotations??{},Da(t.map(iI))]),globalThis.globalProjectAnnotations??{}}s(sI,"setProjectAnnotations");var kn=[];function Tb(e,t,r,n,a){if(e===void 0)throw new Error("Expected a story but received undefined.");t.title=t.title??wJ;let o=ou(t),i=a||e.storyName||e.story?.name||e.name||xJ,l=Yi(i,e,o),u=Ki(Da([n??globalThis.globalProjectAnnotations??{},r??{}])),c=jc(l,o,u),p={...YF(u.globalTypes),...u.initialGlobals,...c.storyGlobals},d=new Sb,h=s(()=>{let g=Eb({hooks:new Wh,globals:p,args:{...c.initialArgs},viewMode:"story",reporting:d,loaded:{},abortSignal:new AbortController().signal,step:s((v,D)=>c.runStep(v,D,g),"step"),canvasElement:null,canvas:{},userEvent:{},globalTypes:u.globalTypes,...c,context:null,mount:null});return g.parameters.__isPortableStory=!0,g.context=g,c.renderToCanvas&&(g.renderToCanvas=async()=>{let v=await c.renderToCanvas?.({componentId:c.componentId,title:c.title,id:c.id,name:c.name,tags:c.tags,showMain:s(()=>{},"showMain"),showError:s(D=>{throw new Error(`${D.title}
|
|
896
|
+
${D.description}`)},"showError"),showException:s(D=>{throw D},"showException"),forceRemount:!0,storyContext:g,storyFn:s(()=>c.unboundStoryFn(g),"storyFn"),unboundStoryFn:c.unboundStoryFn},g.canvasElement);v&&kn.push(v)}),g.mount=c.mount(g),g},"initializeContext"),f,m=s(async g=>{let v=h();return v.canvasElement??=globalThis?.document?.body,f&&(v.loaded=f.loaded),Object.assign(v,g),c.playFunction(v)},"play"),y=s(g=>{let v=h();return Object.assign(v,g),cI(c,v)},"run"),b=c.playFunction?m:void 0;return Object.assign(s(function(g){let v=h();return f&&(v.loaded=f.loaded),v.args={...v.initialArgs,...g},c.unboundStoryFn(v)},"storyFn"),{id:c.id,storyName:i,load:s(async()=>{for(let v of[...kn].reverse())await v();kn.length=0;let g=h();g.loaded=await c.applyLoaders(g),kn.push(...(await c.applyBeforeEach(g)).filter(Boolean)),f=g},"load"),globals:p,args:c.initialArgs,parameters:c.parameters,argTypes:c.argTypes,play:b,run:y,reporting:d,tags:c.tags})}s(Tb,"composeStory");var AJ=s((e,t,r,n)=>Tb(e,t,r,{},n),"defaultComposeStory");function lI(e,t,r=AJ){let{default:n,__esModule:a,__namedExportsOrder:o,...i}=e,l=n;return Object.entries(i).reduce((u,[c,p])=>{let{story:d,meta:h}=_b(p);return!l&&h&&(l=h),tu(c,l)?Object.assign(u,{[c]:r(d,l,t,c)}):u},{})}s(lI,"composeStories");function uI(e){return e.extend({mount:s(async({mount:t,page:r},n)=>{await n(async(a,...o)=>{if(!("__pw_type"in a)||"__pw_type"in a&&a.__pw_type!=="jsx")throw new Error(Le`
|
|
897
|
+
Portable stories in Playwright CT only work when referencing JSX elements.
|
|
898
|
+
Please use JSX format for your components such as:
|
|
899
|
+
|
|
900
|
+
instead of:
|
|
901
|
+
await mount(MyComponent, { props: { foo: 'bar' } })
|
|
902
|
+
|
|
903
|
+
do:
|
|
904
|
+
await mount(<MyComponent foo="bar"/>)
|
|
905
|
+
|
|
906
|
+
More info: https://storybook.js.org/docs/api/portable-stories/portable-stories-playwright?ref=error
|
|
907
|
+
`);let{props:i,...l}=a;await r.evaluate(async c=>{let p=await globalThis.__pwUnwrapObject?.(c);return("__pw_type"in p?p.type:p)?.load?.()},l);let u=await t(a,...o);return await r.evaluate(async c=>{let p=await globalThis.__pwUnwrapObject?.(c),d="__pw_type"in p?p.type:p,h=document.querySelector("#root");return d?.play?.({canvasElement:h})},l),u})},"mount")})}s(uI,"createPlaywrightTest");async function cI(e,t){for(let o of[...kn].reverse())await o();if(kn.length=0,!t.canvasElement){let o=document.createElement("div");globalThis?.document?.body?.appendChild(o),t.canvasElement=o,kn.push(()=>{globalThis?.document?.body?.contains(o)&&globalThis?.document?.body?.removeChild(o)})}if(t.loaded=await e.applyLoaders(t),t.abortSignal.aborted)return;kn.push(...(await e.applyBeforeEach(t)).filter(Boolean));let r=e.playFunction,n=e.usesMount;if(n||await t.mount(),t.abortSignal.aborted)return;r&&(n||(t.mount=async()=>{throw new zh({playFunction:r.toString()})}),await r(t));let a;xb()?a=qc():await Mc(t.abortSignal),await e.applyAfterEach(t),await a?.()}s(cI,"runStory");var H0=1e3,SJ=1e4,pI=class{constructor(t,r,n){this.importFn=r,this.storyIndex=new fJ(t),this.projectAnnotations=Ki(Da([...hb(),n]));let{initialGlobals:a,globalTypes:o}=this.projectAnnotations;this.args=new uJ,this.userGlobals=new cJ({globals:a,globalTypes:o}),this.hooks={},this.cleanupCallbacks={},this.processCSFFileWithCache=(0,vp.default)(H0)(QF),this.prepareMetaWithCache=(0,vp.default)(H0)(bb),this.prepareStoryWithCache=(0,vp.default)(SJ)(jc)}setProjectAnnotations(t){this.projectAnnotations=Ki(t);let{initialGlobals:r,globalTypes:n}=t;this.userGlobals.set({globals:r,globalTypes:n})}async onStoriesChanged({importFn:t,storyIndex:r}){t&&(this.importFn=t),r&&(this.storyIndex.entries=r.entries),this.cachedCSFFiles&&await this.cacheAllCSFFiles()}async storyIdToEntry(t){return this.storyIndex.storyIdToEntry(t)}async loadCSFFileByStoryId(t){let{importPath:r,title:n}=this.storyIndex.storyIdToEntry(t),a=await this.importFn(r);return this.processCSFFileWithCache(a,r,n)}async loadAllCSFFiles(){let t={};return Object.entries(this.storyIndex.entries).forEach(([r,{importPath:n}])=>{t[n]=r}),(await Promise.all(Object.entries(t).map(async([r,n])=>({importPath:r,csfFile:await this.loadCSFFileByStoryId(n)})))).reduce((r,{importPath:n,csfFile:a})=>(r[n]=a,r),{})}async cacheAllCSFFiles(){this.cachedCSFFiles=await this.loadAllCSFFiles()}preparedMetaFromCSFFile({csfFile:t}){let r=t.meta;return this.prepareMetaWithCache(r,this.projectAnnotations,t.moduleExports.default)}async loadStory({storyId:t}){let r=await this.loadCSFFileByStoryId(t);return this.storyFromCSFFile({storyId:t,csfFile:r})}storyFromCSFFile({storyId:t,csfFile:r}){let n=r.stories[t];if(!n)throw new v1({storyId:t});let a=r.meta,o=this.prepareStoryWithCache(n,a,r.projectAnnotations??this.projectAnnotations);return this.args.setInitial(o),this.hooks[o.id]=this.hooks[o.id]||new Wh,o}componentStoriesFromCSFFile({csfFile:t}){return Object.keys(this.storyIndex.entries).filter(r=>!!t.stories[r]).map(r=>this.storyFromCSFFile({storyId:r,csfFile:t}))}async loadEntry(t){let r=await this.storyIdToEntry(t),n=r.type==="docs"?r.storiesImports:[],[a,...o]=await Promise.all([this.importFn(r.importPath),...n.map(i=>{let l=this.storyIndex.importPathToEntry(i);return this.loadCSFFileByStoryId(l.id)})]);return{entryExports:a,csfFiles:o}}getStoryContext(t,{forceInitialArgs:r=!1}={}){let n=this.userGlobals.get(),{initialGlobals:a}=this.userGlobals,o=new Sb;return Eb({...t,args:r?t.initialArgs:this.args.get(t.id),initialGlobals:a,globalTypes:this.projectAnnotations.globalTypes,userGlobals:n,reporting:o,globals:{...n,...t.storyGlobals},hooks:this.hooks[t.id]})}addCleanupCallbacks(t,...r){this.cleanupCallbacks[t.id]=(this.cleanupCallbacks[t.id]||[]).concat(r)}async cleanupStory(t){this.hooks[t.id].clean();let r=this.cleanupCallbacks[t.id];if(r)for(let n of[...r].reverse())await n();delete this.cleanupCallbacks[t.id]}extract(t={includeDocsOnly:!1}){let{cachedCSFFiles:r}=this;if(!r)throw new i1;return Object.entries(this.storyIndex.entries).reduce((n,[a,{type:o,importPath:i}])=>{if(o==="docs")return n;let l=r[i],u=this.storyFromCSFFile({storyId:a,csfFile:l});return!t.includeDocsOnly&&u.parameters.docsOnly||(n[a]=Object.entries(u).reduce((c,[p,d])=>p==="moduleExport"||typeof d=="function"?c:Array.isArray(d)?Object.assign(c,{[p]:d.slice().sort()}):Object.assign(c,{[p]:d}),{args:u.initialArgs,globals:{...this.userGlobals.initialGlobals,...this.userGlobals.globals,...u.storyGlobals}})),n},{})}};s(pI,"StoryStore");var dI=pI;function fI(e){return e.startsWith("\\\\?\\")?e:e.replace(/\\/g,"/")}s(fI,"slash");var _J=s(e=>{if(e.length===0)return e;let t=e[e.length-1],r=t?.replace(/(?:[.](?:story|stories))?([.][^.]+)$/i,"");if(e.length===1)return[r];let n=e[e.length-2];return r&&n&&r.toLowerCase()===n.toLowerCase()?[...e.slice(0,-2),r]:r&&(/^(story|stories)([.][^.]+)$/i.test(t)||/^index$/i.test(r))?e.slice(0,-1):[...e.slice(0,-1),r]},"sanitize");function Vf(e){return e.flatMap(t=>t.split("/")).filter(Boolean).join("/")}s(Vf,"pathJoin");var hI=s((e,t,r)=>{let{directory:n,importPathMatcher:a,titlePrefix:o=""}=t||{};typeof e=="number"&&vt.warn(Le`
|
|
908
|
+
CSF Auto-title received a numeric fileName. This typically happens when
|
|
909
|
+
webpack is mis-configured in production mode. To force webpack to produce
|
|
910
|
+
filenames, set optimization.moduleIds = "named" in your webpack config.
|
|
911
|
+
`);let i=fI(String(e));if(a.exec(i)){if(!r){let l=i.replace(n,""),u=Vf([o,l]).split("/");return u=_J(u),u.join("/")}return o?Vf([o,r]):r}},"userOrAutoTitleFromSpecifier"),TJ=s((e,t,r)=>{for(let n=0;n<t.length;n+=1){let a=hI(e,t[n],r);if(a)return a}return r||void 0},"userOrAutoTitle"),J0=/\s*\/\s*/,PJ=s((e={})=>(t,r)=>{if(t.title===r.title&&!e.includeNames)return 0;let n=e.method||"configure",a=e.order||[],o=t.title.trim().split(J0),i=r.title.trim().split(J0);e.includeNames&&(o.push(t.name),i.push(r.name));let l=0;for(;o[l]||i[l];){if(!o[l])return-1;if(!i[l])return 1;let u=o[l],c=i[l];if(u!==c){let d=a.indexOf(u),h=a.indexOf(c),f=a.indexOf("*");return d!==-1||h!==-1?(d===-1&&(f!==-1?d=f:d=a.length),h===-1&&(f!==-1?h=f:h=a.length),d-h):n==="configure"?0:u.localeCompare(c,e.locales?e.locales:void 0,{numeric:!0,sensitivity:"accent"})}let p=a.indexOf(u);p===-1&&(p=a.indexOf("*")),a=p!==-1&&Array.isArray(a[p+1])?a[p+1]:[],l+=1}return 0},"storySort"),DJ=s((e,t,r)=>{if(t){let n;typeof t=="function"?n=t:n=PJ(t),e.sort(n)}else e.sort((n,a)=>r.indexOf(n.importPath)-r.indexOf(a.importPath));return e},"sortStoriesCommon"),OJ=s((e,t,r)=>{try{return DJ(e,t,r)}catch(n){throw new Error(Le`
|
|
912
|
+
Error sorting stories with sort parameter ${t}:
|
|
913
|
+
|
|
914
|
+
> ${n.message}
|
|
915
|
+
|
|
916
|
+
Are you using a V6-style sort function in V7 mode?
|
|
917
|
+
|
|
918
|
+
More info: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#v7-style-story-sort
|
|
919
|
+
`)}},"sortStoriesV7"),Lc=new Error("prepareAborted"),{AbortController:z0}=globalThis;function Hf(e){try{let{name:t="Error",message:r=String(e),stack:n}=e;return{name:t,message:r,stack:n}}catch{return{name:"Error",message:String(e)}}}s(Hf,"serializeError");var mI=class{constructor(t,r,n,a,o,i,l={autoplay:!0,forceInitialArgs:!1},u){this.channel=t,this.store=r,this.renderToScreen=n,this.callbacks=a,this.id=o,this.viewMode=i,this.renderOptions=l,this.type="story",this.notYetRendered=!0,this.rerenderEnqueued=!1,this.disableKeyListeners=!1,this.teardownRender=s(()=>{},"teardownRender"),this.torndown=!1,this.abortController=new z0,this.renderId=Date.now(),u&&(this.story=u,this.phase="preparing")}async runPhase(t,r,n){this.phase=r,this.channel.emit(va,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),n&&(await n(),this.checkIfAborted(t))}checkIfAborted(t){return t.aborted?(this.phase="aborted",this.channel.emit(va,{newPhase:this.phase,renderId:this.renderId,storyId:this.id}),!0):!1}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),Lc}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}isPreparing(){return["preparing"].includes(this.phase)}isPending(){return["loading","beforeEach","rendering","playing","afterEach"].includes(this.phase)}async renderToElement(t){return this.canvasElement=t,this.render({initial:!0,forceRemount:!0})}storyContext(){if(!this.story)throw new Error("Cannot call storyContext before preparing");let{forceInitialArgs:t}=this.renderOptions;return this.store.getStoryContext(this.story,{forceInitialArgs:t})}async render({initial:t=!1,forceRemount:r=!1}={}){let{canvasElement:n}=this;if(!this.story)throw new Error("cannot render when not prepared");let a=this.story;if(!n)throw new Error("cannot render when canvasElement is unset");let{id:o,componentId:i,title:l,name:u,tags:c,applyLoaders:p,applyBeforeEach:d,applyAfterEach:h,unboundStoryFn:f,playFunction:m,runStep:y}=a;r&&!t&&(this.cancelRender(),this.abortController=new z0);let b=this.abortController.signal,g=!1,v=a.usesMount;try{let D={...this.storyContext(),viewMode:this.viewMode,abortSignal:b,canvasElement:n,loaded:{},step:s((z,R)=>y(z,R,D),"step"),context:null,canvas:{},userEvent:{},renderToCanvas:s(async()=>{let z=await this.renderToScreen(S,n);this.teardownRender=z||(()=>{}),g=!0},"renderToCanvas"),mount:s(async(...z)=>{this.callbacks.showStoryDuringRender?.();let R=null;return await this.runPhase(b,"rendering",async()=>{R=await a.mount(D)(...z)}),v&&await this.runPhase(b,"playing"),R},"mount")};D.context=D;let S={componentId:i,title:l,kind:l,id:o,name:u,story:u,tags:c,...this.callbacks,showError:s(z=>(this.phase="errored",this.callbacks.showError(z)),"showError"),showException:s(z=>(this.phase="errored",this.callbacks.showException(z)),"showException"),forceRemount:r||this.notYetRendered,storyContext:D,storyFn:s(()=>f(D),"storyFn"),unboundStoryFn:f};if(await this.runPhase(b,"loading",async()=>{D.loaded=await p(D)}),b.aborted)return;let P=await d(D);if(this.store.addCleanupCallbacks(a,...P),this.checkIfAborted(b)||(!g&&!v&&await D.mount(),this.notYetRendered=!1,b.aborted))return;let w=this.story.parameters?.test?.dangerouslyIgnoreUnhandledErrors===!0,E=new Set,C=s(z=>{z.error&&E.add(z.error)},"onError"),_=s(z=>{z.reason&&E.add(z.reason)},"onUnhandledRejection");if(this.renderOptions.autoplay&&r&&m&&this.phase!=="errored"){window?.addEventListener?.("error",C),window?.addEventListener?.("unhandledrejection",_),this.disableKeyListeners=!0;try{if(v?await m(D):(D.mount=async()=>{throw new zh({playFunction:m.toString()})},await this.runPhase(b,"playing",async()=>m(D))),!g)throw new _1;this.checkIfAborted(b),!w&&E.size>0?await this.runPhase(b,"errored"):await this.runPhase(b,"played")}catch(z){if(this.callbacks.showStoryDuringRender?.(),await this.runPhase(b,"errored",async()=>{this.channel.emit(mC,Hf(z))}),this.story.parameters.throwPlayFunctionExceptions!==!1)throw z;console.error(z)}if(!w&&E.size>0&&this.channel.emit(yC,Array.from(E).map(Hf)),this.disableKeyListeners=!1,window?.removeEventListener?.("unhandledrejection",_),window?.removeEventListener?.("error",C),b.aborted)return}await this.runPhase(b,"completing",async()=>{xb()?this.store.addCleanupCallbacks(a,qc()):await Mc(b)}),await this.runPhase(b,"completed",async()=>{this.channel.emit(hl,o)}),this.phase!=="errored"&&await this.runPhase(b,"afterEach",async()=>{await h(D)});let k=!w&&E.size>0,B=D.reporting.reports.some(z=>z.status==="failed"),W=k||B;await this.runPhase(b,"finished",async()=>this.channel.emit(ed,{storyId:o,status:W?"error":"success",reporters:D.reporting.reports}))}catch(D){this.phase="errored",this.callbacks.showException(D),await this.runPhase(b,"finished",async()=>this.channel.emit(ed,{storyId:o,status:"error",reporters:[]}))}this.rerenderEnqueued&&(this.rerenderEnqueued=!1,this.render())}async rerender(){if(this.isPending()&&this.phase!=="playing")this.rerenderEnqueued=!0;else return this.render()}async remount(){return await this.teardown(),this.render({forceRemount:!0})}cancelRender(){this.abortController.abort()}cancelPlayFunction(){this.phase==="playing"&&(this.abortController.abort(),this.runPhase(this.abortController.signal,"aborted"))}async teardown(){this.torndown=!0,this.cancelRender(),this.story&&await this.store.cleanupStory(this.story);for(let t=0;t<3;t+=1){if(!this.isPending()){await this.teardownRender();return}await new Promise(r=>setTimeout(r,0))}window?.location?.reload?.(),await new Promise(()=>{})}};s(mI,"StoryRender");var Jf=mI,{fetch:RJ}=he,FJ="./index.json",yI=class{constructor(t,r,n=Er.getChannel(),a=!0){this.importFn=t,this.getProjectAnnotations=r,this.channel=n,this.storyRenders=[],this.storeInitializationPromise=new Promise((o,i)=>{this.resolveStoreInitializationPromise=o,this.rejectStoreInitializationPromise=i}),a&&this.initialize()}get storyStore(){return new Proxy({},{get:s((t,r)=>{if(this.storyStoreValue)return Ih("Accessing the Story Store is deprecated and will be removed in 9.0"),this.storyStoreValue[r];throw new C1},"get")})}async initialize(){this.setupListeners();try{let t=await this.getProjectAnnotationsOrRenderError();await this.runBeforeAllHook(t),await this.initializeWithProjectAnnotations(t);let r=globalThis?.navigator?.userAgent;await this.channel.emit(bC,{userAgent:r})}catch(t){this.rejectStoreInitializationPromise(t)}}ready(){return this.storeInitializationPromise}setupListeners(){this.channel.on(AC,this.onStoryIndexChanged.bind(this)),this.channel.on(Rh,this.onUpdateGlobals.bind(this)),this.channel.on(Fh,this.onUpdateArgs.bind(this)),this.channel.on(FC,this.onRequestArgTypesInfo.bind(this)),this.channel.on(Dh,this.onResetArgs.bind(this)),this.channel.on(Ph,this.onForceReRender.bind(this)),this.channel.on(fl,this.onForceRemount.bind(this)),this.channel.on(DC,this.onStoryHotUpdated.bind(this))}async getProjectAnnotationsOrRenderError(){try{let t=await this.getProjectAnnotations();if(this.renderToCanvas=t.renderToCanvas,!this.renderToCanvas)throw new l1;return t}catch(t){throw this.renderPreviewEntryError("Error reading preview.js:",t),t}}async initializeWithProjectAnnotations(t){this.projectAnnotationsBeforeInitialization=t;try{let r=await this.getStoryIndexFromServer();return this.initializeWithStoryIndex(r)}catch(r){throw this.renderPreviewEntryError("Error loading story index:",r),r}}async runBeforeAllHook(t){try{await this.beforeAllCleanup?.(),this.beforeAllCleanup=await t.beforeAll?.()}catch(r){throw this.renderPreviewEntryError("Error in beforeAll hook:",r),r}}async getStoryIndexFromServer(){let t=await RJ(FJ);if(t.status===200)return t.json();throw new p1({text:await t.text()})}initializeWithStoryIndex(t){if(!this.projectAnnotationsBeforeInitialization)throw new Error("Cannot call initializeWithStoryIndex until project annotations resolve");this.storyStoreValue=new dI(t,this.importFn,this.projectAnnotationsBeforeInitialization),delete this.projectAnnotationsBeforeInitialization,this.setInitialGlobals(),this.resolveStoreInitializationPromise()}async setInitialGlobals(){this.emitGlobals()}emitGlobals(){if(!this.storyStoreValue)throw new or({methodName:"emitGlobals"});let t={globals:this.storyStoreValue.userGlobals.get()||{},globalTypes:this.storyStoreValue.projectAnnotations.globalTypes||{}};this.channel.emit(EC,t)}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){delete this.previewEntryError,this.getProjectAnnotations=t;let r=await this.getProjectAnnotationsOrRenderError();if(await this.runBeforeAllHook(r),!this.storyStoreValue){await this.initializeWithProjectAnnotations(r);return}this.storyStoreValue.setProjectAnnotations(r),this.emitGlobals()}async onStoryIndexChanged(){if(delete this.previewEntryError,!(!this.storyStoreValue&&!this.projectAnnotationsBeforeInitialization))try{let t=await this.getStoryIndexFromServer();if(this.projectAnnotationsBeforeInitialization){this.initializeWithStoryIndex(t);return}await this.onStoriesChanged({storyIndex:t})}catch(t){throw this.renderPreviewEntryError("Error loading story index:",t),t}}async onStoriesChanged({importFn:t,storyIndex:r}){if(!this.storyStoreValue)throw new or({methodName:"onStoriesChanged"});await this.storyStoreValue.onStoriesChanged({importFn:t,storyIndex:r})}async onUpdateGlobals({globals:t,currentStory:r}){if(this.storyStoreValue||await this.storeInitializationPromise,!this.storyStoreValue)throw new or({methodName:"onUpdateGlobals"});if(this.storyStoreValue.userGlobals.update(t),r){let{initialGlobals:n,storyGlobals:a,userGlobals:o,globals:i}=this.storyStoreValue.getStoryContext(r);this.channel.emit(Di,{initialGlobals:n,userGlobals:o,storyGlobals:a,globals:i})}else{let{initialGlobals:n,globals:a}=this.storyStoreValue.userGlobals;this.channel.emit(Di,{initialGlobals:n,userGlobals:a,storyGlobals:{},globals:a})}await Promise.all(this.storyRenders.map(n=>n.rerender()))}async onUpdateArgs({storyId:t,updatedArgs:r}){if(!this.storyStoreValue)throw new or({methodName:"onUpdateArgs"});this.storyStoreValue.args.update(t,r),await Promise.all(this.storyRenders.filter(n=>n.id===t&&!n.renderOptions.forceInitialArgs).map(n=>n.story&&n.story.usesMount?n.remount():n.rerender())),this.channel.emit(CC,{storyId:t,args:this.storyStoreValue.args.get(t)})}async onRequestArgTypesInfo({id:t,payload:r}){try{await this.storeInitializationPromise;let n=await this.storyStoreValue?.loadStory(r);this.channel.emit(td,{id:t,success:!0,payload:{argTypes:n?.argTypes||{}},error:null})}catch(n){this.channel.emit(td,{id:t,success:!1,error:n?.message})}}async onResetArgs({storyId:t,argNames:r}){if(!this.storyStoreValue)throw new or({methodName:"onResetArgs"});let n=this.storyRenders.find(o=>o.id===t)?.story||await this.storyStoreValue.loadStory({storyId:t}),a=(r||[...new Set([...Object.keys(n.initialArgs),...Object.keys(this.storyStoreValue.args.get(t))])]).reduce((o,i)=>(o[i]=n.initialArgs[i],o),{});await this.onUpdateArgs({storyId:t,updatedArgs:a})}async onForceReRender(){await Promise.all(this.storyRenders.map(t=>t.rerender()))}async onForceRemount({storyId:t}){await Promise.all(this.storyRenders.filter(r=>r.id===t).map(r=>r.remount()))}async onStoryHotUpdated(){await Promise.all(this.storyRenders.map(t=>t.cancelPlayFunction()))}renderStoryToElement(t,r,n,a){if(!this.renderToCanvas||!this.storyStoreValue)throw new or({methodName:"renderStoryToElement"});let o=new Jf(this.channel,this.storyStoreValue,this.renderToCanvas,n,t.id,"docs",a,t);return o.renderToElement(r),this.storyRenders.push(o),async()=>{await this.teardownRender(o)}}async teardownRender(t,{viewModeChanged:r}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}async loadStory({storyId:t}){if(!this.storyStoreValue)throw new or({methodName:"loadStory"});return this.storyStoreValue.loadStory({storyId:t})}getStoryContext(t,{forceInitialArgs:r=!1}={}){if(!this.storyStoreValue)throw new or({methodName:"getStoryContext"});return this.storyStoreValue.getStoryContext(t,{forceInitialArgs:r})}async extract(t){if(!this.storyStoreValue)throw new or({methodName:"extract"});if(this.previewEntryError)throw this.previewEntryError;return await this.storyStoreValue.cacheAllCSFFiles(),this.storyStoreValue.extract(t)}renderPreviewEntryError(t,r){this.previewEntryError=r,it.error(t),it.error(r),this.channel.emit(fC,r)}};s(yI,"Preview");var gI=yI,bI=class{constructor(t,r,n,a){this.channel=t,this.store=r,this.renderStoryToElement=n,this.storyIdByName=s(o=>{let i=this.nameToStoryId.get(o);if(i)return i;throw new Error(`No story found with that name: ${o}`)},"storyIdByName"),this.componentStories=s(()=>this.componentStoriesValue,"componentStories"),this.componentStoriesFromCSFFile=s(o=>this.store.componentStoriesFromCSFFile({csfFile:o}),"componentStoriesFromCSFFile"),this.storyById=s(o=>{if(!o){if(!this.primaryStory)throw new Error("No primary story defined for docs entry. Did you forget to use `<Meta>`?");return this.primaryStory}let i=this.storyIdToCSFFile.get(o);if(!i)throw new Error(`Called \`storyById\` for story that was never loaded: ${o}`);return this.store.storyFromCSFFile({storyId:o,csfFile:i})},"storyById"),this.getStoryContext=s(o=>({...this.store.getStoryContext(o),loaded:{},viewMode:"docs"}),"getStoryContext"),this.loadStory=s(o=>this.store.loadStory({storyId:o}),"loadStory"),this.componentStoriesValue=[],this.storyIdToCSFFile=new Map,this.exportToStory=new Map,this.exportsToCSFFile=new Map,this.nameToStoryId=new Map,this.attachedCSFFiles=new Set,a.forEach((o,i)=>{this.referenceCSFFile(o)})}referenceCSFFile(t){this.exportsToCSFFile.set(t.moduleExports,t),this.exportsToCSFFile.set(t.moduleExports.default,t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{let n=t.stories[r.id];this.storyIdToCSFFile.set(n.id,t),this.exportToStory.set(n.moduleExport,r)})}attachCSFFile(t){if(!this.exportsToCSFFile.has(t.moduleExports))throw new Error("Cannot attach a CSF file that has not been referenced");this.attachedCSFFiles.has(t)||(this.attachedCSFFiles.add(t),this.store.componentStoriesFromCSFFile({csfFile:t}).forEach(r=>{this.nameToStoryId.set(r.name,r.id),this.componentStoriesValue.push(r),this.primaryStory||(this.primaryStory=r)}))}referenceMeta(t,r){let n=this.resolveModuleExport(t);if(n.type!=="meta")throw new Error("<Meta of={} /> must reference a CSF file module export or meta export. Did you mistakenly reference your component instead of your CSF file?");r&&this.attachCSFFile(n.csfFile)}get projectAnnotations(){let{projectAnnotations:t}=this.store;if(!t)throw new Error("Can't get projectAnnotations from DocsContext before they are initialized");return t}resolveAttachedModuleExportType(t){if(t==="story"){if(!this.primaryStory)throw new Error("No primary story attached to this docs file, did you forget to use <Meta of={} />?");return{type:"story",story:this.primaryStory}}if(this.attachedCSFFiles.size===0)throw new Error("No CSF file attached to this docs file, did you forget to use <Meta of={} />?");let r=Array.from(this.attachedCSFFiles)[0];if(t==="meta")return{type:"meta",csfFile:r};let{component:n}=r.meta;if(!n)throw new Error("Attached CSF file does not defined a component, did you forget to export one?");return{type:"component",component:n}}resolveModuleExport(t){let r=this.exportsToCSFFile.get(t);if(r)return{type:"meta",csfFile:r};let n=this.exportToStory.get(Bc(t)?t.input:t);return n?{type:"story",story:n}:{type:"component",component:t}}resolveOf(t,r=[]){let n;if(["component","meta","story"].includes(t)){let a=t;n=this.resolveAttachedModuleExportType(a)}else n=this.resolveModuleExport(t);if(r.length&&!r.includes(n.type)){let a=n.type==="component"?"component or unknown":n.type;throw new Error(Le`Invalid value passed to the 'of' prop. The value was resolved to a '${a}' type but the only types for this block are: ${r.join(", ")}.
|
|
920
|
+
- Did you pass a component to the 'of' prop when the block only supports a story or a meta?
|
|
921
|
+
- ... or vice versa?
|
|
922
|
+
- 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})};case"story":default:return n}}};s(bI,"DocsContext");var Pb=bI,vI=class{constructor(t,r,n,a){this.channel=t,this.store=r,this.entry=n,this.callbacks=a,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:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Lc;let{importPath:n,title:a}=this.entry,o=this.store.processCSFFileWithCache(t,n,a),i=Object.keys(o.stories)[0];this.story=this.store.storyFromCSFFile({storyId:i,csfFile:o}),this.csfFiles=[o,...r],this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.story&&this.story===t.story)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");let r=new Pb(this.channel,this.store,t,this.csfFiles);return this.csfFiles.forEach(n=>r.attachCSFFile(n)),r}async renderToElement(t,r){if(!this.story||!this.csfFiles)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:a}=this.story.parameters||{};if(!a)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let o=await a.renderer(),{render:i}=o,l=s(async()=>{try{await i(n,a,t),this.channel.emit(Th,this.id)}catch(u){this.callbacks.showException(u)}},"renderDocs");return this.rerender=async()=>l(),this.teardownRender=async({viewModeChanged:u})=>{!u||!t||o.unmount(t)},l()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};s(vI,"CsfDocsRender");var G0=vI,EI=class{constructor(t,r,n,a){this.channel=t,this.store=r,this.entry=n,this.callbacks=a,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:t,csfFiles:r=[]}=await this.store.loadEntry(this.id);if(this.torndown)throw Lc;this.csfFiles=r,this.exports=t,this.preparing=!1}isEqual(t){return!!(this.id===t.id&&this.exports&&this.exports===t.exports)}docsContext(t){if(!this.csfFiles)throw new Error("Cannot render docs before preparing");return new Pb(this.channel,this.store,t,this.csfFiles)}async renderToElement(t,r){if(!this.exports||!this.csfFiles||!this.store.projectAnnotations)throw new Error("Cannot render docs before preparing");let n=this.docsContext(r),{docs:a}=this.store.projectAnnotations.parameters??{};if(!a)throw new Error("Cannot render a story in viewMode=docs if `@storybook/addon-docs` is not installed");let o={...a,page:this.exports.default},i=await a.renderer(),{render:l}=i,u=s(async()=>{try{await l(n,o,t),this.channel.emit(Th,this.id)}catch(c){this.callbacks.showException(c)}},"renderDocs");return this.rerender=async()=>u(),this.teardownRender=async({viewModeChanged:c}={})=>{!c||!t||(i.unmount(t),this.torndown=!0)},u()}async teardown({viewModeChanged:t}={}){this.teardownRender?.({viewModeChanged:t}),this.torndown=!0}};s(EI,"MdxDocsRender");var W0=EI,IJ=globalThis;function CI(e){let t=e.composedPath&&e.composedPath()[0]||e.target;return/input|textarea/i.test(t.tagName)||t.getAttribute("contenteditable")!==null}s(CI,"focusInInput");var wI="attached-mdx",NJ="unattached-mdx";function xI({tags:e}){return e?.includes(NJ)||e?.includes(wI)}s(xI,"isMdxEntry");function ol(e){return e.type==="story"}s(ol,"isStoryRender");function AI(e){return e.type==="docs"}s(AI,"isDocsRender");function SI(e){return AI(e)&&e.subtype==="csf"}s(SI,"isCsfDocsRender");var _I=class extends gI{constructor(t,r,n,a){super(t,r,void 0,!1),this.importFn=t,this.getProjectAnnotations=r,this.selectionStore=n,this.view=a,this.initialize()}setupListeners(){super.setupListeners(),IJ.onkeydown=this.onKeydown.bind(this),this.channel.on(Oh,this.onSetCurrentStory.bind(this)),this.channel.on(OC,this.onUpdateQueryParams.bind(this)),this.channel.on(gC,this.onPreloadStories.bind(this))}async setInitialGlobals(){if(!this.storyStoreValue)throw new or({methodName:"setInitialGlobals"});let{globals:t}=this.selectionStore.selectionSpecifier||{};t&&this.storyStoreValue.userGlobals.updateFromPersisted(t),this.emitGlobals()}async initializeWithStoryIndex(t){return await super.initializeWithStoryIndex(t),this.selectSpecifiedStory()}async selectSpecifiedStory(){if(!this.storyStoreValue)throw new or({methodName:"selectSpecifiedStory"});if(this.selectionStore.selection){await this.renderSelection();return}if(!this.selectionStore.selectionSpecifier){this.renderMissingStory();return}let{storySpecifier:t,args:r}=this.selectionStore.selectionSpecifier,n=this.storyStoreValue.storyIndex.entryFromSpecifier(t);if(!n){t==="*"?this.renderStoryLoadingException(t,new m1):this.renderStoryLoadingException(t,new g1({storySpecifier:t.toString()}));return}let{id:a,type:o}=n;this.selectionStore.setSelection({storyId:a,viewMode:o}),this.channel.emit(_C,this.selectionStore.selection),this.channel.emit(Qp,this.selectionStore.selection),await this.renderSelection({persistedArgs:r})}async onGetProjectAnnotationsChanged({getProjectAnnotations:t}){await super.onGetProjectAnnotationsChanged({getProjectAnnotations:t}),this.selectionStore.selection&&this.renderSelection()}async onStoriesChanged({importFn:t,storyIndex:r}){await super.onStoriesChanged({importFn:t,storyIndex:r}),this.selectionStore.selection?await this.renderSelection():await this.selectSpecifiedStory()}onKeydown(t){if(!this.storyRenders.find(r=>r.disableKeyListeners)&&!CI(t)){let{altKey:r,ctrlKey:n,metaKey:a,shiftKey:o,key:i,code:l,keyCode:u}=t;this.channel.emit(vC,{event:{altKey:r,ctrlKey:n,metaKey:a,shiftKey:o,key:i,code:l,keyCode:u}})}}async onSetCurrentStory(t){this.selectionStore.setSelection({viewMode:"story",...t}),await this.storeInitializationPromise,this.channel.emit(Qp,this.selectionStore.selection),this.renderSelection()}onUpdateQueryParams(t){this.selectionStore.setQueryParams(t)}async onUpdateGlobals({globals:t}){let r=this.currentRender instanceof Jf&&this.currentRender.story||void 0;super.onUpdateGlobals({globals:t,currentStory:r}),(this.currentRender instanceof W0||this.currentRender instanceof G0)&&await this.currentRender.rerender?.()}async onUpdateArgs({storyId:t,updatedArgs:r}){super.onUpdateArgs({storyId:t,updatedArgs:r})}async onPreloadStories({ids:t}){await this.storeInitializationPromise,this.storyStoreValue&&await Promise.allSettled(t.map(r=>this.storyStoreValue?.loadEntry(r)))}async renderSelection({persistedArgs:t}={}){let{renderToCanvas:r}=this;if(!this.storyStoreValue||!r)throw new or({methodName:"renderSelection"});let{selection:n}=this.selectionStore;if(!n)throw new Error("Cannot call renderSelection as no selection was made");let{storyId:a}=n,o;try{o=await this.storyStoreValue.storyIdToEntry(a)}catch(h){this.currentRender&&await this.teardownRender(this.currentRender),this.renderStoryLoadingException(a,h);return}let i=this.currentSelection?.storyId!==a,l=this.currentRender?.type!==o.type;o.type==="story"?this.view.showPreparingStory({immediate:l}):this.view.showPreparingDocs({immediate:l}),this.currentRender?.isPreparing()&&await this.teardownRender(this.currentRender);let u;o.type==="story"?u=new Jf(this.channel,this.storyStoreValue,r,this.mainStoryCallbacks(a),a,"story"):xI(o)?u=new W0(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(a)):u=new G0(this.channel,this.storyStoreValue,o,this.mainStoryCallbacks(a));let c=this.currentSelection;this.currentSelection=n;let p=this.currentRender;this.currentRender=u;try{await u.prepare()}catch(h){p&&await this.teardownRender(p),h!==Lc&&this.renderStoryLoadingException(a,h);return}let d=!i&&p&&!u.isEqual(p);if(t&&ol(u)&&(Wr(!!u.story),this.storyStoreValue.args.updateFromPersisted(u.story,t)),p&&!p.torndown&&!i&&!d&&!l){this.currentRender=p,this.channel.emit(PC,a),this.view.showMain();return}if(p&&await this.teardownRender(p,{viewModeChanged:l}),c&&(i||l)&&this.channel.emit(wC,a),ol(u)){Wr(!!u.story);let{parameters:h,initialArgs:f,argTypes:m,unmappedArgs:y,initialGlobals:b,userGlobals:g,storyGlobals:v,globals:D}=this.storyStoreValue.getStoryContext(u.story);this.channel.emit(SC,{id:a,parameters:h,initialArgs:f,argTypes:m,args:y}),this.channel.emit(Di,{userGlobals:g,storyGlobals:v,globals:D,initialGlobals:b})}else{let{parameters:h}=this.storyStoreValue.projectAnnotations,{initialGlobals:f,globals:m}=this.storyStoreValue.userGlobals;if(this.channel.emit(Di,{globals:m,initialGlobals:f,storyGlobals:{},userGlobals:m}),SI(u)||u.entry.tags?.includes(wI)){if(!u.csfFiles)throw new f1({storyId:a});({parameters:h}=this.storyStoreValue.preparedMetaFromCSFFile({csfFile:u.csfFiles[0]}))}this.channel.emit(hC,{id:a,parameters:h})}ol(u)?(Wr(!!u.story),this.storyRenders.push(u),this.currentRender.renderToElement(this.view.prepareForStory(u.story))):this.currentRender.renderToElement(this.view.prepareForDocs(),this.renderStoryToElement.bind(this))}async teardownRender(t,{viewModeChanged:r=!1}={}){this.storyRenders=this.storyRenders.filter(n=>n!==t),await t?.teardown?.({viewModeChanged:r})}mainStoryCallbacks(t){return{showStoryDuringRender:s(()=>this.view.showStoryDuringRender(),"showStoryDuringRender"),showMain:s(()=>this.view.showMain(),"showMain"),showError:s(r=>this.renderError(t,r),"showError"),showException:s(r=>this.renderException(t,r),"showException")}}renderPreviewEntryError(t,r){super.renderPreviewEntryError(t,r),this.view.showErrorDisplay(r)}renderMissingStory(){this.view.showNoPreview(),this.channel.emit(Zp)}renderStoryLoadingException(t,r){it.error(r),this.view.showErrorDisplay(r),this.channel.emit(Zp,t)}renderException(t,r){let{name:n="Error",message:a=String(r),stack:o}=r,i=this.currentRender?.renderId;this.channel.emit(TC,{name:n,message:a,stack:o}),this.channel.emit(va,{newPhase:"errored",renderId:i,storyId:t}),this.view.showErrorDisplay(r),it.error(`Error rendering story '${t}':`),it.error(r)}renderError(t,{title:r,description:n}){let a=this.currentRender?.renderId;this.channel.emit(xC,{title:r,description:n}),this.channel.emit(va,{newPhase:"errored",renderId:a,storyId:t}),this.view.showErrorDisplay({message:r,stack:n}),it.error(`Error rendering story ${r}: ${n}`)}};s(_I,"PreviewWithSelection");var TI=_I,zf=Et(Ah(),1),kJ=Et(Ah(),1),Y0=/^[a-zA-Z0-9 _-]*$/,PI=/^-?[0-9]+(\.[0-9]+)?$/,BJ=/^#([a-f0-9]{3,4}|[a-f0-9]{6}|[a-f0-9]{8})$/i,DI=/^(rgba?|hsla?)\(([0-9]{1,3}),\s?([0-9]{1,3})%?,\s?([0-9]{1,3})%?,?\s?([0-9](\.[0-9]{1,2})?)?\)$/i,Gf=s((e="",t)=>e===null||e===""||!Y0.test(e)?!1:t==null||t instanceof Date||typeof t=="number"||typeof t=="boolean"?!0:typeof t=="string"?Y0.test(t)||PI.test(t)||BJ.test(t)||DI.test(t):Array.isArray(t)?t.every(r=>Gf(e,r)):Dr(t)?Object.entries(t).every(([r,n])=>Gf(r,n)):!1,"validateArgs"),jJ={delimiter:";",nesting:!0,arrayRepeat:!0,arrayRepeatSyntax:"bracket",nestingSyntax:"js",valueDeserializer(e){if(e.startsWith("!")){if(e==="!undefined")return;if(e==="!null")return null;if(e==="!true")return!0;if(e==="!false")return!1;if(e.startsWith("!date(")&&e.endsWith(")"))return new Date(e.replaceAll(" ","+").slice(6,-1));if(e.startsWith("!hex(")&&e.endsWith(")"))return`#${e.slice(5,-1)}`;let t=e.slice(1).match(DI);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 PI.test(e)?Number(e):e}},K0=s(e=>{let t=e.split(";").map(r=>r.replace("=","~").replace(":","="));return Object.entries((0,kJ.parse)(t.join(";"),jJ)).reduce((r,[n,a])=>Gf(n,a)?Object.assign(r,{[n]:a}):(vt.warn(Le`
|
|
923
|
+
Omitted potentially unsafe URL args.
|
|
924
|
+
|
|
925
|
+
More info: https://storybook.js.org/docs/writing-stories/args#setting-args-through-the-url?ref=error
|
|
926
|
+
`),r),{})},"parseArgsParam"),{history:OI,document:Ln}=he;function RI(e){let t=(e||"").match(/^\/story\/(.+)/);if(!t)throw new Error(`Invalid path '${e}', must start with '/story/'`);return t[1]}s(RI,"pathToId");var FI=s(({selection:e,extraParams:t})=>{let r=Ln?.location.search.slice(1),{path:n,selectedKind:a,selectedStory:o,...i}=(0,zf.parse)(r);return`?${(0,zf.stringify)({...i,...t,...e&&{id:e.storyId,viewMode:e.viewMode}})}`},"getQueryString"),qJ=s(e=>{if(!e)return;let t=FI({selection:e}),{hash:r=""}=Ln.location;Ln.title=e.storyId,OI.replaceState({},"",`${Ln.location.pathname}${t}${r}`)},"setPath"),MJ=s(e=>e!=null&&typeof e=="object"&&Array.isArray(e)===!1,"isObject"),Si=s(e=>{if(e!==void 0){if(typeof e=="string")return e;if(Array.isArray(e))return Si(e[0]);if(MJ(e))return Si(Object.values(e).filter(Boolean))}},"getFirstString"),LJ=s(()=>{if(typeof Ln<"u"){let e=Ln.location.search.slice(1),t=(0,zf.parse)(e),r=typeof t.args=="string"?K0(t.args):void 0,n=typeof t.globals=="string"?K0(t.globals):void 0,a=Si(t.viewMode);(typeof a!="string"||!a.match(/docs|story/))&&(a="story");let o=Si(t.path),i=o?RI(o):Si(t.id);if(i)return{storySpecifier:i,args:r,globals:n,viewMode:a}}return null},"getSelectionSpecifierFromPath"),II=class{constructor(){this.selectionSpecifier=LJ()}setSelection(t){this.selection=t,qJ(this.selection)}setQueryParams(t){let r=FI({extraParams:t}),{hash:n=""}=Ln.location;OI.replaceState({},"",`${Ln.location.pathname}${r}${n}`)}};s(II,"UrlStore");var NI=II,$J=Et(b5(),1),UJ=Et(Ah(),1),{document:Mt}=he,X0=100,kI=(e=>(e.MAIN="MAIN",e.NOPREVIEW="NOPREVIEW",e.PREPARING_STORY="PREPARING_STORY",e.PREPARING_DOCS="PREPARING_DOCS",e.ERROR="ERROR",e))(kI||{}),Ep={PREPARING_STORY:"sb-show-preparing-story",PREPARING_DOCS:"sb-show-preparing-docs",MAIN:"sb-show-main",NOPREVIEW:"sb-show-nopreview",ERROR:"sb-show-errordisplay"},Cp={centered:"sb-main-centered",fullscreen:"sb-main-fullscreen",padded:"sb-main-padded"},Q0=new $J.default({escapeXML:!0}),BI=class{constructor(){if(this.testing=!1,typeof Mt<"u"){let{__SPECIAL_TEST_PARAMETER__:t}=(0,UJ.parse)(Mt.location.search.slice(1));switch(t){case"preparing-story":{this.showPreparingStory(),this.testing=!0;break}case"preparing-docs":{this.showPreparingDocs(),this.testing=!0;break}}}}prepareForStory(t){return this.showStory(),this.applyLayout(t.parameters.layout),Mt.documentElement.scrollTop=0,Mt.documentElement.scrollLeft=0,this.storyRoot()}storyRoot(){return Mt.getElementById("storybook-root")}prepareForDocs(){return this.showMain(),this.showDocs(),this.applyLayout("fullscreen"),Mt.documentElement.scrollTop=0,Mt.documentElement.scrollLeft=0,this.docsRoot()}docsRoot(){return Mt.getElementById("storybook-docs")}applyLayout(t="padded"){if(t==="none"){Mt.body.classList.remove(this.currentLayoutClass),this.currentLayoutClass=null;return}this.checkIfLayoutExists(t);let r=Cp[t];Mt.body.classList.remove(this.currentLayoutClass),Mt.body.classList.add(r),this.currentLayoutClass=r}checkIfLayoutExists(t){Cp[t]||it.warn(Le`
|
|
927
|
+
The desired layout: ${t} is not a valid option.
|
|
928
|
+
The possible options are: ${Object.keys(Cp).join(", ")}, none.
|
|
929
|
+
`)}showMode(t){clearTimeout(this.preparingTimeout),Object.keys(kI).forEach(r=>{r===t?Mt.body.classList.add(Ep[r]):Mt.body.classList.remove(Ep[r])})}showErrorDisplay({message:t="",stack:r=""}){let n=t,a=r,o=t.split(`
|
|
930
|
+
`);o.length>1&&([n]=o,a=o.slice(1).join(`
|
|
931
|
+
`).replace(/^\n/,"")),Mt.getElementById("error-message").innerHTML=Q0.toHtml(n),Mt.getElementById("error-stack").innerHTML=Q0.toHtml(a),this.showMode("ERROR")}showNoPreview(){this.testing||(this.showMode("NOPREVIEW"),this.storyRoot()?.setAttribute("hidden","true"),this.docsRoot()?.setAttribute("hidden","true"))}showPreparingStory({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_STORY"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_STORY"),X0)}showPreparingDocs({immediate:t=!1}={}){clearTimeout(this.preparingTimeout),t?this.showMode("PREPARING_DOCS"):this.preparingTimeout=setTimeout(()=>this.showMode("PREPARING_DOCS"),X0)}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(){Mt.body.classList.add(Ep.MAIN)}};s(BI,"WebView");var jI=BI,qI=class extends TI{constructor(t,r){super(t,r,new NI,new jI),this.importFn=t,this.getProjectAnnotations=r,he.__STORYBOOK_PREVIEW__=this}};s(qI,"PreviewWeb");var VJ=qI,{document:ga}=he,HJ=["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"],JJ="script",Z0="scripts-root";function iu(){let e=ga.createEvent("Event");e.initEvent("DOMContentLoaded",!0,!0),ga.dispatchEvent(e)}s(iu,"simulateDOMContentLoaded");function MI(e,t,r){let n=ga.createElement("script");n.type=e.type==="module"?"module":"text/javascript",e.src?(n.onload=t,n.onerror=t,n.src=e.src):n.textContent=e.innerText,r?r.appendChild(n):ga.head.appendChild(n),e.parentNode.removeChild(e),e.src||t()}s(MI,"insertScript");function Db(e,t,r=0){e[r](()=>{r++,r===e.length?t():Db(e,t,r)})}s(Db,"insertScriptsSequentially");function LI(e){let t=ga.getElementById(Z0);t?t.innerHTML="":(t=ga.createElement("div"),t.id=Z0,ga.body.appendChild(t));let r=Array.from(e.querySelectorAll(JJ));if(r.length){let n=[];r.forEach(a=>{let o=a.getAttribute("type");(!o||HJ.includes(o))&&n.push(i=>MI(a,i,t))}),n.length&&Db(n,iu,void 0)}else iu()}s(LI,"simulatePageLoad");var zJ="storybook/docs",GJ=`${zJ}/snippet-rendered`;async function $I(e,t){let r=t.parameters?.docs?.source?.transform,{id:n,unmappedArgs:a}=t,o=r&&e?r?.(e,t):e,i=o?await o:void 0;Er.getChannel().emit(GJ,{id:n,source:i,args:a})}s($I,"emitTransformCode");var Xi={depth:10,clearOnStoryChange:!0,limit:50},WJ=s((e={})=>{Object.assign(Xi,e)},"configureActions"),UI=s((e,t)=>{let r=Object.getPrototypeOf(e);return!r||t(r)?r:UI(r,t)},"findProto"),YJ=s(e=>!!(typeof e=="object"&&e&&UI(e,t=>/^Synthetic(?:Base)?Event$/.test(t.constructor.name))&&typeof e.persist=="function"),"isReactSyntheticEvent"),KJ=s(e=>{if(YJ(e)){let t=Object.create(e.constructor.prototype,Object.getOwnPropertyDescriptors(e));t.persist();let r=Object.getOwnPropertyDescriptor(t,"view"),n=r?.value;return typeof n=="object"&&n?.constructor.name==="Window"&&Object.defineProperty(t,"view",{...r,value:Object.create(n.constructor.prototype)}),t}return e},"serializeArg");function Ho(e,t={}){let r={...Xi,...t},n=s(function(...a){if(t.implicit){let d=("__STORYBOOK_PREVIEW__"in he?he.__STORYBOOK_PREVIEW__:void 0)?.storyRenders.find(h=>h.phase==="playing"||h.phase==="rendering");if(d){let h=!globalThis?.FEATURES?.disallowImplicitActionsInRenderV8,f=new a1({phase:d.phase,name:e,deprecated:h});if(h)console.warn(f);else throw f}}let o=Er.getChannel(),i=Date.now().toString(36)+Math.random().toString(36).substring(2),l=5,u=a.map(KJ),c=a.length>1?u:u[0],p={id:i,count:0,data:{name:e,args:c},options:{...r,maxDepth:l+(r.depth||3)}};o.emit(B1,p)},"actionHandler");return n.isAction=!0,n.implicit=t.implicit,n}s(Ho,"action");var XJ=s((...e)=>{let t=Xi,r=e;r.length===1&&Array.isArray(r[0])&&([r]=r),r.length!==1&&typeof r[r.length-1]!="string"&&(t={...Xi,...r.pop()});let n=r[0];(r.length!==1||typeof n=="string")&&(n={},r.forEach(o=>{n[o]=o}));let a={};return Object.keys(n).forEach(o=>{a[o]=Ho(n[o],t)}),a},"actions"),QJ={"@storybook/global":IC,"storybook/test":tx,"storybook/actions":k1,"storybook/preview-api":od,"storybook/internal/channels":kC,"storybook/internal/client-logger":jC,"storybook/internal/core-events":Sh,"storybook/internal/types":I1,"storybook/internal/preview-errors":Xw,"storybook/internal/preview-api":od};async function VI(){let e=new URL(window.location.href);if(e.searchParams.get("navigator")!=="true"||globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__)return;globalThis.__STORYBOOK_PREVIEW_NAVIGATOR__=!0;let t=await(await fetch("/index.json")).json(),r=e.searchParams.get("id");if(!r){let n=Object.values(t.entries)[0];n&&(e.searchParams.set("id",n.id),e.searchParams.set("viewMode",n.type),window.location.href=e.toString());return}ZJ(t,r)}s(VI,"maybeSetupPreviewNavigator");var ZJ=s(async(e,t)=>{let r={entries:{}};for(let l of Object.values(e.entries)){let u=l.title.split("/"),c=r;for(let p of u)c.entries||(c.entries={}),c.entries[p]?t===l.id&&(c.entries[p].isActive=!0):c.entries[p]={title:p,isActive:t===l.id,entries:{}},c=c.entries[p];c.entries||(c.entries={}),c.entries[l.name]={id:l.id,name:l.name,href:`?id=${l.id}&viewMode=${l.type}&navigator=true`,isActive:t===l.id}}let n=s(l=>{if("entries"in l&&"title"in l){let c=l;return`
|
|
932
|
+
<li class="sb-navigator-branch">
|
|
933
|
+
<details${c.isActive?" open":""}>
|
|
934
|
+
<summary class="sb-navigator-title">
|
|
935
|
+
${c.title}
|
|
936
|
+
</summary>
|
|
937
|
+
<ul class="sb-navigator-entries" aria-label="${c.title}">
|
|
938
|
+
${Object.values(c.entries).map(n).join("")}
|
|
939
|
+
</ul>
|
|
940
|
+
</details>
|
|
941
|
+
</li>
|
|
942
|
+
`}let u=l;return`
|
|
943
|
+
<li class="sb-navigator-story-item">
|
|
944
|
+
<a href="${u.href}"
|
|
945
|
+
class="sb-navigator-story-link${u.isActive?" active":""}"
|
|
946
|
+
aria-current="${u.isActive?"location":"false"}">${u.name}</a>
|
|
947
|
+
</li>
|
|
948
|
+
`},"createHtmlForNode"),a=Object.values(r.entries).map(n).join(""),o=document.createElement("nav");o.id="sb-navigator-container",o.setAttribute("role","navigation"),o.setAttribute("aria-label","Story navigation"),o.innerHTML=`
|
|
949
|
+
<ul class="sb-navigator-list">${a}</ul>
|
|
950
|
+
`,document.body.insertBefore(o,document.body.firstChild);let i=document.createElement("style");i.id="sb-navigator-style",i.textContent=`
|
|
951
|
+
body {
|
|
952
|
+
display: grid !important;
|
|
953
|
+
grid-template-columns: 300px 1fr;
|
|
954
|
+
font-family: 'Nunito', sans-serif;
|
|
955
|
+
height: 100vh;
|
|
956
|
+
margin: 0;
|
|
957
|
+
|
|
958
|
+
--text-color: rgb(46, 52, 56);
|
|
959
|
+
--bg-color: rgb(246, 249, 252);
|
|
960
|
+
|
|
961
|
+
@media (prefers-color-scheme: dark) {
|
|
962
|
+
--text-color: rgb(201, 205, 207);
|
|
963
|
+
--bg-color: rgb(34, 36, 37);
|
|
964
|
+
}
|
|
965
|
+
}
|
|
966
|
+
#storybook-root, #storybook-docs {
|
|
967
|
+
overflow-y: auto;
|
|
968
|
+
max-height: 100vh;
|
|
969
|
+
max-width: 100%;
|
|
970
|
+
}
|
|
971
|
+
#sb-navigator-container, #sb-navigator-container * {
|
|
972
|
+
box-sizing: border-box;
|
|
973
|
+
}
|
|
974
|
+
#sb-navigator-container {
|
|
975
|
+
height: 100vh;
|
|
976
|
+
overflow-y: auto;
|
|
977
|
+
border-right: 1px solid #eee;
|
|
978
|
+
padding: 1rem;
|
|
979
|
+
font-size: 14px;
|
|
980
|
+
color: var(--text-color);
|
|
981
|
+
background-color: var(--bg-color);
|
|
982
|
+
align-self: start;
|
|
983
|
+
z-index: 1000;
|
|
984
|
+
}
|
|
985
|
+
.sb-main-padded #sb-navigator-container {
|
|
986
|
+
margin: -1rem 1rem -1rem -1rem;
|
|
987
|
+
}
|
|
988
|
+
.sb-navigator-list {
|
|
989
|
+
list-style-type: none;
|
|
990
|
+
padding: 0;
|
|
991
|
+
margin: 0;
|
|
992
|
+
}
|
|
993
|
+
.sb-navigator-branch {
|
|
994
|
+
list-style-type: none;
|
|
995
|
+
}
|
|
996
|
+
.sb-navigator-item {
|
|
997
|
+
margin-bottom: 15px;
|
|
998
|
+
}
|
|
999
|
+
.sb-navigator-title {
|
|
1000
|
+
color: var(--text-color);
|
|
1001
|
+
text-decoration: none;
|
|
1002
|
+
padding-block: 5px;
|
|
1003
|
+
cursor: pointer;
|
|
1004
|
+
}
|
|
1005
|
+
.sb-navigator-entries {
|
|
1006
|
+
padding-left: 15px;
|
|
1007
|
+
}
|
|
1008
|
+
.sb-navigator-story-item {
|
|
1009
|
+
margin-bottom: 8px;
|
|
1010
|
+
margin-left: 8px;
|
|
1011
|
+
}
|
|
1012
|
+
.sb-navigator-story-link {
|
|
1013
|
+
color: var(--text-color);
|
|
1014
|
+
}
|
|
1015
|
+
.sb-navigator-story-link.active {
|
|
1016
|
+
font-weight: bold;
|
|
1017
|
+
color: rgb(2, 156, 253);
|
|
1018
|
+
}
|
|
1019
|
+
`,document.head.appendChild(i),o.querySelector(".sb-navigator-story-link.active")?.closest("details")?.scrollIntoView({block:"center"})},"setupPreviewNavigator"),ez=Et(v5(),1),wp;function HI(){return wp||(wp=new ez.default(he.navigator?.userAgent).getBrowserInfo()),wp}s(HI,"getBrowserInfo");function JI(e){return e.browserInfo=HI(),e}s(JI,"prepareForTelemetry");function zI(e){let t=e.error||e;t.fromStorybook&&he.sendTelemetryError(t)}s(zI,"errorListener");function GI({reason:e}){e.fromStorybook&&he.sendTelemetryError(e)}s(GI,"unhandledRejectionListener");function Ob(){H5.forEach(e=>{he[NC[e]]=QJ[e]}),he.sendTelemetryError=e=>{he.__STORYBOOK_ADDONS_CHANNEL__.emit(RC,JI(e))},he.addEventListener("error",zI),he.addEventListener("unhandledrejection",GI),VI()}s(Ob,"setup");Ob();const{createBrowserChannel:tz}=__STORYBOOK_MODULE_CHANNELS__,{addons:rz}=__STORYBOOK_MODULE_PREVIEW_API__,Rb=tz({page:"preview"});rz.setChannel(Rb);window.__STORYBOOK_ADDONS_CHANNEL__=Rb;window.CONFIG_TYPE==="DEVELOPMENT"&&(window.__STORYBOOK_SERVER_CHANNEL__=Rb);const nz={"./src/components/alert/alert.stories.tsx":()=>Ee(()=>import("./alert.stories-B-vuojPh.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url),"./src/components/avatar/avatar.stories.tsx":()=>Ee(()=>import("./avatar.stories-KYFztAc8.js"),__vite__mapDeps([11,1,2,3,12,7,8,6,13,14,15,5,10]),import.meta.url),"./src/components/badge/badge.stories.tsx":()=>Ee(()=>import("./badge.stories-Be2ItCmQ.js"),__vite__mapDeps([16,1,2,3,17,7,8,6,10]),import.meta.url),"./src/components/bottom-tab-bar/bottom-tab-bar.stories.tsx":()=>Ee(()=>import("./bottom-tab-bar.stories-CDmEve6z.js"),__vite__mapDeps([18,1,2,3,19,5,6,7,8,10]),import.meta.url),"./src/components/button/button.stories.tsx":()=>Ee(()=>import("./button.stories-CaqLWQiY.js"),__vite__mapDeps([20,1,2,3,9,5,6,7,8,10]),import.meta.url),"./src/components/calendar/calendar.stories.tsx":()=>Ee(()=>import("./calendar.stories-DLWZldet.js"),__vite__mapDeps([21,22,7,23,5,6,9,8,24,15,25,26,27,10,2,1,3]),import.meta.url),"./src/components/carousel/carousel.stories.tsx":()=>Ee(()=>import("./carousel.stories-B8YbGOOr.js"),__vite__mapDeps([28,29,7,30,31,9,5,6,8,10,2,1,3]),import.meta.url),"./src/components/checkbox/checkbox.stories.tsx":()=>Ee(()=>import("./checkbox.stories-CLvfZPiw.js"),__vite__mapDeps([32,1,2,3,33,7,24,15,8,6,9,5,10]),import.meta.url),"./src/components/chip/chip.stories.tsx":()=>Ee(()=>import("./chip.stories-BbwJb5eD.js"),__vite__mapDeps([34,1,2,3,35,7,5,6,36,14,15,25,26,27,37,38,9,8,13,19,39,29,30,31,40,41,24,4,42,43,44,45,46,33,47,23,48,22,49,50,12,17,51,52,53,54,10]),import.meta.url),"./src/components/date-field/date-field.stories.tsx":()=>Ee(()=>import("./date-field.stories-Diptwqfv.js"),__vite__mapDeps([55,1,2,3,35,7,5,6,36,14,15,25,26,27,37,38,9,8,13,19,39,29,30,31,40,41,24,4,42,43,44,45,46,33,47,23,48,22,49,50,12,17,51,52,53,54,10]),import.meta.url),"./src/components/date-picker/date-picker.stories.tsx":()=>Ee(()=>import("./date-picker.stories-BuGWvzFL.js"),__vite__mapDeps([56,1,2,3,48,24,15,37,26,7,30,8,6,23,10]),import.meta.url),"./src/components/dialog/dialog.stories.tsx":()=>Ee(()=>import("./dialog.stories-DJ0WsSkA.js"),__vite__mapDeps([57,1,2,3,35,7,5,6,36,14,15,25,26,27,37,38,9,8,13,19,39,29,30,31,40,41,24,4,42,43,44,45,46,33,47,23,48,22,49,50,12,17,51,52,53,54,10]),import.meta.url),"./src/components/dropdown/dropdown.stories.tsx":()=>Ee(()=>import("./dropdown.stories-D6JUYP73.js"),__vite__mapDeps([58,1,2,3,35,7,5,6,36,14,15,25,26,27,37,38,9,8,13,19,39,29,30,31,40,41,24,4,42,43,44,45,46,33,47,23,48,22,49,50,12,17,51,52,53,54,10]),import.meta.url),"./src/components/icon/icon.stories.tsx":()=>Ee(()=>import("./icon.stories-B-ZvRzFf.js"),__vite__mapDeps([59,1,2,3,5,6,7,10]),import.meta.url),"./src/components/image/image.stories.tsx":()=>Ee(()=>import("./image.stories-C4l8D3ju.js"),__vite__mapDeps([60,1,2,3,13,7,14,15,5,6,10]),import.meta.url),"./src/components/label/label.stories.tsx":()=>Ee(()=>import("./label.stories-BwTIPFXX.js"),__vite__mapDeps([61,1,2,3,43,5,6,7,8,42,10]),import.meta.url),"./src/components/navigation-bar/navigation-bar.stories.tsx":()=>Ee(()=>import("./navigation-bar.stories-DYuFaJFD.js"),__vite__mapDeps([62,1,2,3,36,5,6,7,14,15,25,26,27,37,38,9,8,17,10]),import.meta.url),"./src/components/number-field/number-field.stories.tsx":()=>Ee(()=>import("./number-field.stories--fn26TJu.js"),__vite__mapDeps([63,1,2,3,10,46,7,24,15,8,6,42]),import.meta.url),"./src/components/option-item/option-item.stories.tsx":()=>Ee(()=>import("./option-item.stories-snjAvgay.js"),__vite__mapDeps([64,1,2,3,10,41,7,5,6,8,24,15]),import.meta.url),"./src/components/pagination/pagination.stories.tsx":()=>Ee(()=>import("./pagination.stories-BoEs0jzS.js"),__vite__mapDeps([65,1,2,3,10,31,7,9,5,6,8]),import.meta.url),"./src/components/radio/radio.stories.tsx":()=>Ee(()=>import("./radio.stories-DuN-Awi_.js"),__vite__mapDeps([66,1,2,3,10,47,7,24,15,8,6]),import.meta.url),"./src/components/rating/rating.stories.tsx":()=>Ee(()=>import("./rating.stories-BCcQjMEx.js"),__vite__mapDeps([67,10,2,53,7,24,15,1,3]),import.meta.url),"./src/components/search-field/search-field.stories.tsx":()=>Ee(()=>import("./search-field.stories-DiCZbhng.js"),__vite__mapDeps([68,1,2,3,10,49,45,7,44,5,6,43,8,42,38,37,26,24,15]),import.meta.url),"./src/components/section/section.stories.tsx":()=>Ee(()=>import("./section.stories-C2I_kKhu.js"),__vite__mapDeps([69,40,7,5,6,8,10,2,1,3]),import.meta.url),"./src/components/sheet/sheet.stories.tsx":()=>Ee(()=>import("./sheet.stories-wk1JaKU5.js"),__vite__mapDeps([70,35,7,5,6,36,14,15,25,26,27,37,38,9,8,13,19,39,1,2,3,29,30,31,40,41,24,4,42,43,44,45,46,33,47,23,48,22,49,50,12,17,51,52,53,54,10]),import.meta.url),"./src/components/skeleton/skeleton.stories.tsx":()=>Ee(()=>import("./skeleton.stories-BCmX-VNr.js"),__vite__mapDeps([71,42,7,10,2,1,3]),import.meta.url),"./src/components/switch/switch.stories.tsx":()=>Ee(()=>import("./switch.stories-BqPLNKB9.js"),__vite__mapDeps([72,51,7,24,15,9,5,6,8,10,2,1,3]),import.meta.url),"./src/components/tab-bar/tab-bar.stories.tsx":()=>Ee(()=>import("./tab-bar.stories-Cb6v8H2w.js"),__vite__mapDeps([73,52,7,5,6,8,17,24,15,10,2,1,3]),import.meta.url),"./src/components/text-area/text-area.stories.tsx":()=>Ee(()=>import("./text-area.stories-By8bCfgc.js"),__vite__mapDeps([74,50,7,44,5,6,43,8,42,38,37,26,24,15,10,2,1,3]),import.meta.url),"./src/components/text-field/text-field.stories.tsx":()=>Ee(()=>import("./text-field.stories-CrWBAhvI.js"),__vite__mapDeps([75,45,7,44,5,6,43,8,42,38,37,26,10,2,1,3]),import.meta.url),"./src/components/toast/toast.stories.tsx":()=>Ee(()=>import("./toast.stories-iWAToAZA.js"),__vite__mapDeps([76,1,2,3,39,7,5,6,8,27,9,10]),import.meta.url),"./src/components/tooltip/tooltip.stories.tsx":()=>Ee(()=>import("./tooltip.stories-RC6SuPPD.js"),__vite__mapDeps([77,54,7,5,6,10,2,1,3]),import.meta.url),"./src/components/typography/typography.stories.tsx":()=>Ee(()=>import("./typography.stories-Bu8qFugR.js"),__vite__mapDeps([78,8,7,6,10,2,1,3]),import.meta.url),"./src/components/uploader/uploader.stories.tsx":()=>Ee(()=>import("./uploader.stories-B2wW9qVy.js"),__vite__mapDeps([79,35,7,5,6,36,14,15,25,26,27,37,38,9,8,13,19,39,1,2,3,29,30,31,40,41,24,4,42,43,44,45,46,33,47,23,48,22,49,50,12,17,51,52,53,54,10]),import.meta.url),"./src/docs/ANIMATION.mdx":()=>Ee(()=>import("./ANIMATION-CUdn1GTK.js"),__vite__mapDeps([80,81,2,1,3]),import.meta.url),"./src/docs/APP_FRAMEWORK.mdx":()=>Ee(()=>import("./APP_FRAMEWORK-ljbIOHYd.js"),__vite__mapDeps([82,81,2,1,3]),import.meta.url),"./src/docs/BOTTOM_TAB_BAR.mdx":()=>Ee(()=>import("./BOTTOM_TAB_BAR-DxCwCfBK.js"),__vite__mapDeps([83,81,2,1,3]),import.meta.url),"./src/docs/CUSTOM_ERROR_BOUNDARY.mdx":()=>Ee(()=>import("./CUSTOM_ERROR_BOUNDARY-B4wTQNZc.js"),__vite__mapDeps([84,81,2,1,3]),import.meta.url),"./src/docs/DARK_MODE.mdx":()=>Ee(()=>import("./DARK_MODE-CoHseCDO.js"),__vite__mapDeps([85,81,2,1,3]),import.meta.url),"./src/docs/GETTING_STARTED.mdx":()=>Ee(()=>import("./GETTING_STARTED-H_vVi5cv.js"),__vite__mapDeps([86,81,2,1,3]),import.meta.url),"./src/docs/INFINITE_SCROLL.mdx":()=>Ee(()=>import("./INFINITE_SCROLL-BtM3uoX0.js"),__vite__mapDeps([87,81,2,1,3]),import.meta.url),"./src/docs/KEEP_ALIVE.mdx":()=>Ee(()=>import("./KEEP_ALIVE-CL2au0al.js"),__vite__mapDeps([88,81,2,1,3]),import.meta.url),"./src/docs/LOCALE.mdx":()=>Ee(()=>import("./LOCALE-XTCey55y.js"),__vite__mapDeps([89,81,2,1,3]),import.meta.url),"./src/docs/MIGRATION_GUIDE.mdx":()=>Ee(()=>import("./MIGRATION_GUIDE-2LONslE4.js"),__vite__mapDeps([90,81,2,1,3]),import.meta.url),"./src/docs/MOBILE_BEHAVIOURS.mdx":()=>Ee(()=>import("./MOBILE_BEHAVIOURS-DZ6alKTX.js"),__vite__mapDeps([91,81,2,1,3]),import.meta.url),"./src/docs/PAGE_LAYOUT.mdx":()=>Ee(()=>import("./PAGE_LAYOUT-BuOpN-1Y.js"),__vite__mapDeps([92,81,2,1,3]),import.meta.url),"./src/docs/ROUTING_NAVIGATION.mdx":()=>Ee(()=>import("./ROUTING_NAVIGATION-BCPHXNto.js"),__vite__mapDeps([93,81,2,1,3]),import.meta.url),"./src/docs/TAILWIND_INTEGRATION.mdx":()=>Ee(()=>import("./TAILWIND_INTEGRATION-_T-VfvkM.js"),__vite__mapDeps([94,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-app-pause.mdx":()=>Ee(()=>import("./use-app-pause-B_tWHKJK.js"),__vite__mapDeps([95,81,2,1,3,10]),import.meta.url),"./src/docs/hooks/use-app-resume.mdx":()=>Ee(()=>import("./use-app-resume--900G-dV.js"),__vite__mapDeps([96,81,2,1,3,10]),import.meta.url),"./src/docs/hooks/use-custom-icon-event.mdx":()=>Ee(()=>import("./use-custom-icon-event-3VExRzvC.js"),__vite__mapDeps([97,81,2,1,3,10]),import.meta.url),"./src/docs/hooks/use-did-hide.mdx":()=>Ee(()=>import("./use-did-hide-BUsL73ab.js"),__vite__mapDeps([98,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-did-show.mdx":()=>Ee(()=>import("./use-did-show-C1-VLDxi.js"),__vite__mapDeps([99,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-histories.mdx":()=>Ee(()=>import("./use-histories-E4E2jJEY.js"),__vite__mapDeps([100,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-history.mdx":()=>Ee(()=>import("./use-history-o1im8IDj.js"),__vite__mapDeps([101,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-location.mdx":()=>Ee(()=>import("./use-location-CUEaBO4P.js"),__vite__mapDeps([102,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-navigate.mdx":()=>Ee(()=>import("./use-navigate-C4CTuFSZ.js"),__vite__mapDeps([103,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-navigation-type.mdx":()=>Ee(()=>import("./use-navigation-type-Dcz4hgKo.js"),__vite__mapDeps([104,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-page-config.mdx":()=>Ee(()=>import("./use-page-config-DSJBVQbq.js"),__vite__mapDeps([105,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-page-scroll.mdx":()=>Ee(()=>import("./use-page-scroll-dY-U1Vv4.js"),__vite__mapDeps([106,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-page-state.mdx":()=>Ee(()=>import("./use-page-state-CtNpwGPN.js"),__vite__mapDeps([107,81,2,1,3]),import.meta.url),"./src/docs/hooks/use-settings-changed.mdx":()=>Ee(()=>import("./use-settings-changed-BBJwIHTE.js"),__vite__mapDeps([108,81,2,1,3,10]),import.meta.url)};async function az(e){return await nz[e]()}var sQ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xp={exports:{}},De={};var eE;function iz(){if(eE)return De;eE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),h=Symbol.iterator;function f(M){return M===null||typeof M!="object"?null:(M=h&&M[h]||M["@@iterator"],typeof M=="function"?M:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,b={};function g(M,L,K){this.props=M,this.context=L,this.refs=b,this.updater=K||m}g.prototype.isReactComponent={},g.prototype.setState=function(M,L){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,L,"setState")},g.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function v(){}v.prototype=g.prototype;function D(M,L,K){this.props=M,this.context=L,this.refs=b,this.updater=K||m}var S=D.prototype=new v;S.constructor=D,y(S,g.prototype),S.isPureReactComponent=!0;var P=Array.isArray;function w(){}var E={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function _(M,L,K){var X=K.ref;return{$$typeof:e,type:M,key:L,ref:X!==void 0?X:null,props:K}}function k(M,L){return _(M.type,L,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function W(M){var L={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(K){return L[K]})}var z=/\/+/g;function R(M,L){return typeof M=="object"&&M!==null&&M.key!=null?W(""+M.key):L.toString(36)}function U(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(w,w):(M.status="pending",M.then(function(L){M.status==="pending"&&(M.status="fulfilled",M.value=L)},function(L){M.status==="pending"&&(M.status="rejected",M.reason=L)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function j(M,L,K,X,ie){var te=typeof M;(te==="undefined"||te==="boolean")&&(M=null);var ue=!1;if(M===null)ue=!0;else switch(te){case"bigint":case"string":case"number":ue=!0;break;case"object":switch(M.$$typeof){case e:case t:ue=!0;break;case p:return ue=M._init,j(ue(M._payload),L,K,X,ie)}}if(ue)return ie=ie(M),ue=X===""?"."+R(M,0):X,P(ie)?(K="",ue!=null&&(K=ue.replace(z,"$&/")+"/"),j(ie,L,K,"",function(st){return st})):ie!=null&&(B(ie)&&(ie=k(ie,K+(ie.key==null||M&&M.key===ie.key?"":(""+ie.key).replace(z,"$&/")+"/")+ue)),L.push(ie)),1;ue=0;var ve=X===""?".":X+":";if(P(M))for(var je=0;je<M.length;je++)X=M[je],te=ve+R(X,je),ue+=j(X,L,K,te,ie);else if(je=f(M),typeof je=="function")for(M=je.call(M),je=0;!(X=M.next()).done;)X=X.value,te=ve+R(X,je++),ue+=j(X,L,K,te,ie);else if(te==="object"){if(typeof M.then=="function")return j(U(M),L,K,X,ie);throw L=String(M),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ue}function Y(M,L,K){if(M==null)return M;var X=[],ie=0;return j(M,X,"","",function(te){return L.call(K,te,ie++)}),X}function Q(M){if(M._status===-1){var L=M._result;L=L(),L.then(function(K){(M._status===0||M._status===-1)&&(M._status=1,M._result=K)},function(K){(M._status===0||M._status===-1)&&(M._status=2,M._result=K)}),M._status===-1&&(M._status=0,M._result=L)}if(M._status===1)return M._result.default;throw M._result}var ae=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},le={map:Y,forEach:function(M,L,K){Y(M,function(){L.apply(this,arguments)},K)},count:function(M){var L=0;return Y(M,function(){L++}),L},toArray:function(M){return Y(M,function(L){return L})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return De.Activity=d,De.Children=le,De.Component=g,De.Fragment=r,De.Profiler=a,De.PureComponent=D,De.StrictMode=n,De.Suspense=u,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=E,De.__COMPILER_RUNTIME={__proto__:null,c:function(M){return E.H.useMemoCache(M)}},De.cache=function(M){return function(){return M.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(M,L,K){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var X=y({},M.props),ie=M.key;if(L!=null)for(te in L.key!==void 0&&(ie=""+L.key),L)!C.call(L,te)||te==="key"||te==="__self"||te==="__source"||te==="ref"&&L.ref===void 0||(X[te]=L[te]);var te=arguments.length-2;if(te===1)X.children=K;else if(1<te){for(var ue=Array(te),ve=0;ve<te;ve++)ue[ve]=arguments[ve+2];X.children=ue}return _(M.type,ie,X)},De.createContext=function(M){return M={$$typeof:i,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:o,_context:M},M},De.createElement=function(M,L,K){var X,ie={},te=null;if(L!=null)for(X in L.key!==void 0&&(te=""+L.key),L)C.call(L,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(ie[X]=L[X]);var ue=arguments.length-2;if(ue===1)ie.children=K;else if(1<ue){for(var ve=Array(ue),je=0;je<ue;je++)ve[je]=arguments[je+2];ie.children=ve}if(M&&M.defaultProps)for(X in ue=M.defaultProps,ue)ie[X]===void 0&&(ie[X]=ue[X]);return _(M,te,ie)},De.createRef=function(){return{current:null}},De.forwardRef=function(M){return{$$typeof:l,render:M}},De.isValidElement=B,De.lazy=function(M){return{$$typeof:p,_payload:{_status:-1,_result:M},_init:Q}},De.memo=function(M,L){return{$$typeof:c,type:M,compare:L===void 0?null:L}},De.startTransition=function(M){var L=E.T,K={};E.T=K;try{var X=M(),ie=E.S;ie!==null&&ie(K,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(w,ae)}catch(te){ae(te)}finally{L!==null&&K.types!==null&&(L.types=K.types),E.T=L}},De.unstable_useCacheRefresh=function(){return E.H.useCacheRefresh()},De.use=function(M){return E.H.use(M)},De.useActionState=function(M,L,K){return E.H.useActionState(M,L,K)},De.useCallback=function(M,L){return E.H.useCallback(M,L)},De.useContext=function(M){return E.H.useContext(M)},De.useDebugValue=function(){},De.useDeferredValue=function(M,L){return E.H.useDeferredValue(M,L)},De.useEffect=function(M,L){return E.H.useEffect(M,L)},De.useEffectEvent=function(M){return E.H.useEffectEvent(M)},De.useId=function(){return E.H.useId()},De.useImperativeHandle=function(M,L,K){return E.H.useImperativeHandle(M,L,K)},De.useInsertionEffect=function(M,L){return E.H.useInsertionEffect(M,L)},De.useLayoutEffect=function(M,L){return E.H.useLayoutEffect(M,L)},De.useMemo=function(M,L){return E.H.useMemo(M,L)},De.useOptimistic=function(M,L){return E.H.useOptimistic(M,L)},De.useReducer=function(M,L,K){return E.H.useReducer(M,L,K)},De.useRef=function(M){return E.H.useRef(M)},De.useState=function(M){return E.H.useState(M)},De.useSyncExternalStore=function(M,L,K){return E.H.useSyncExternalStore(M,L,K)},De.useTransition=function(){return E.H.useTransition()},De.version="19.2.3",De}var tE;function sz(){return tE||(tE=1,xp.exports=iz()),xp.exports}var Rt=sz();const br=oz(Rt),lQ=WN({__proto__:null,default:br},[Rt]),{defaultDecorateStory:lz}=__STORYBOOK_MODULE_PREVIEW_API__;var Fb=(e,t)=>lz(r=>br.createElement(e,r),t),uz=Object.create,$c=Object.defineProperty,cz=Object.getOwnPropertyDescriptor,Ib=Object.getOwnPropertyNames,pz=Object.getPrototypeOf,dz=Object.prototype.hasOwnProperty,fz=(e,t)=>function(){return e&&(t=(0,e[Ib(e)[0]])(e=0)),t},be=(e,t)=>function(){return t||(0,e[Ib(e)[0]])((t={exports:{}}).exports,t),t.exports},Uc=(e,t)=>{for(var r in t)$c(e,r,{get:t[r],enumerable:!0})},WI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ib(t))!dz.call(e,a)&&a!==r&&$c(e,a,{get:()=>t[a],enumerable:!(n=cz(t,a))||n.enumerable});return e},Jo=(e,t,r)=>(r=e!=null?uz(pz(e)):{},WI(!e||!e.__esModule?$c(r,"default",{value:e,enumerable:!0}):r,e)),rE=e=>WI($c({},"__esModule",{value:!0}),e),Ap={};const{global:hz}=__STORYBOOK_MODULE_GLOBAL__;var Vc=be({"../../node_modules/semver/internal/constants.js"(e,t){var r="2.0.0",n=Number.MAX_SAFE_INTEGER||9007199254740991,a=16,o=250,i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:o,MAX_SAFE_INTEGER:n,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}}),Hc=be({"../../node_modules/semver/internal/debug.js"(e,t){var r=typeof process=="object"&&Ap&&Ap.NODE_DEBUG&&/\bsemver\b/i.test(Ap.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};t.exports=r}}),xs=be({"../../node_modules/semver/internal/re.js"(e,t){var{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:a}=Vc(),o=Hc();e=t.exports={};var i=e.re=[],l=e.safeRe=[],u=e.src=[],c=e.safeSrc=[],p=e.t={},d=0,h="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",a],[h,n]],m=b=>{for(let[g,v]of f)b=b.split(`${g}*`).join(`${g}{0,${v}}`).split(`${g}+`).join(`${g}{1,${v}}`);return b},y=(b,g,v)=>{let D=m(g),S=d++;o(b,S,g),p[b]=S,u[S]=g,c[S]=D,i[S]=new RegExp(g,v?"g":void 0),l[S]=new RegExp(D,v?"g":void 0)};y("NUMERICIDENTIFIER","0|[1-9]\\d*"),y("NUMERICIDENTIFIERLOOSE","\\d+"),y("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),y("MAINVERSION",`(${u[p.NUMERICIDENTIFIER]})\\.(${u[p.NUMERICIDENTIFIER]})\\.(${u[p.NUMERICIDENTIFIER]})`),y("MAINVERSIONLOOSE",`(${u[p.NUMERICIDENTIFIERLOOSE]})\\.(${u[p.NUMERICIDENTIFIERLOOSE]})\\.(${u[p.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASEIDENTIFIER",`(?:${u[p.NONNUMERICIDENTIFIER]}|${u[p.NUMERICIDENTIFIER]})`),y("PRERELEASEIDENTIFIERLOOSE",`(?:${u[p.NONNUMERICIDENTIFIER]}|${u[p.NUMERICIDENTIFIERLOOSE]})`),y("PRERELEASE",`(?:-(${u[p.PRERELEASEIDENTIFIER]}(?:\\.${u[p.PRERELEASEIDENTIFIER]})*))`),y("PRERELEASELOOSE",`(?:-?(${u[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[p.PRERELEASEIDENTIFIERLOOSE]})*))`),y("BUILDIDENTIFIER",`${h}+`),y("BUILD",`(?:\\+(${u[p.BUILDIDENTIFIER]}(?:\\.${u[p.BUILDIDENTIFIER]})*))`),y("FULLPLAIN",`v?${u[p.MAINVERSION]}${u[p.PRERELEASE]}?${u[p.BUILD]}?`),y("FULL",`^${u[p.FULLPLAIN]}$`),y("LOOSEPLAIN",`[v=\\s]*${u[p.MAINVERSIONLOOSE]}${u[p.PRERELEASELOOSE]}?${u[p.BUILD]}?`),y("LOOSE",`^${u[p.LOOSEPLAIN]}$`),y("GTLT","((?:<|>)?=?)"),y("XRANGEIDENTIFIERLOOSE",`${u[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),y("XRANGEIDENTIFIER",`${u[p.NUMERICIDENTIFIER]}|x|X|\\*`),y("XRANGEPLAIN",`[v=\\s]*(${u[p.XRANGEIDENTIFIER]})(?:\\.(${u[p.XRANGEIDENTIFIER]})(?:\\.(${u[p.XRANGEIDENTIFIER]})(?:${u[p.PRERELEASE]})?${u[p.BUILD]}?)?)?`),y("XRANGEPLAINLOOSE",`[v=\\s]*(${u[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[p.XRANGEIDENTIFIERLOOSE]})(?:${u[p.PRERELEASELOOSE]})?${u[p.BUILD]}?)?)?`),y("XRANGE",`^${u[p.GTLT]}\\s*${u[p.XRANGEPLAIN]}$`),y("XRANGELOOSE",`^${u[p.GTLT]}\\s*${u[p.XRANGEPLAINLOOSE]}$`),y("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),y("COERCE",`${u[p.COERCEPLAIN]}(?:$|[^\\d])`),y("COERCEFULL",u[p.COERCEPLAIN]+`(?:${u[p.PRERELEASE]})?(?:${u[p.BUILD]})?(?:$|[^\\d])`),y("COERCERTL",u[p.COERCE],!0),y("COERCERTLFULL",u[p.COERCEFULL],!0),y("LONETILDE","(?:~>?)"),y("TILDETRIM",`(\\s*)${u[p.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",y("TILDE",`^${u[p.LONETILDE]}${u[p.XRANGEPLAIN]}$`),y("TILDELOOSE",`^${u[p.LONETILDE]}${u[p.XRANGEPLAINLOOSE]}$`),y("LONECARET","(?:\\^)"),y("CARETTRIM",`(\\s*)${u[p.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",y("CARET",`^${u[p.LONECARET]}${u[p.XRANGEPLAIN]}$`),y("CARETLOOSE",`^${u[p.LONECARET]}${u[p.XRANGEPLAINLOOSE]}$`),y("COMPARATORLOOSE",`^${u[p.GTLT]}\\s*(${u[p.LOOSEPLAIN]})$|^$`),y("COMPARATOR",`^${u[p.GTLT]}\\s*(${u[p.FULLPLAIN]})$|^$`),y("COMPARATORTRIM",`(\\s*)${u[p.GTLT]}\\s*(${u[p.LOOSEPLAIN]}|${u[p.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",y("HYPHENRANGE",`^\\s*(${u[p.XRANGEPLAIN]})\\s+-\\s+(${u[p.XRANGEPLAIN]})\\s*$`),y("HYPHENRANGELOOSE",`^\\s*(${u[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[p.XRANGEPLAINLOOSE]})\\s*$`),y("STAR","(<|>)?=?\\s*\\*"),y("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),y("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),Nb=be({"../../node_modules/semver/internal/parse-options.js"(e,t){var r=Object.freeze({loose:!0}),n=Object.freeze({}),a=o=>o?typeof o!="object"?r:o:n;t.exports=a}}),YI=be({"../../node_modules/semver/internal/identifiers.js"(e,t){var r=/^[0-9]+$/,n=(o,i)=>{let l=r.test(o),u=r.test(i);return l&&u&&(o=+o,i=+i),o===i?0:l&&!u?-1:u&&!l?1:o<i?-1:1},a=(o,i)=>n(i,o);t.exports={compareIdentifiers:n,rcompareIdentifiers:a}}}),zt=be({"../../node_modules/semver/classes/semver.js"(e,t){var r=Hc(),{MAX_LENGTH:n,MAX_SAFE_INTEGER:a}=Vc(),{safeRe:o,t:i}=xs(),l=Nb(),{compareIdentifiers:u}=YI(),c=class Vr{constructor(d,h){if(h=l(h),d instanceof Vr){if(d.loose===!!h.loose&&d.includePrerelease===!!h.includePrerelease)return d;d=d.version}else if(typeof d!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof d}".`);if(d.length>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",d,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;let f=d.trim().match(h.loose?o[i.LOOSE]:o[i.FULL]);if(!f)throw new TypeError(`Invalid Version: ${d}`);if(this.raw=d,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>a||this.major<0)throw new TypeError("Invalid major version");if(this.minor>a||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>a||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(m=>{if(/^[0-9]+$/.test(m)){let y=+m;if(y>=0&&y<a)return y}return m}):this.prerelease=[],this.build=f[5]?f[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(d){if(r("SemVer.compare",this.version,this.options,d),!(d instanceof Vr)){if(typeof d=="string"&&d===this.version)return 0;d=new Vr(d,this.options)}return d.version===this.version?0:this.compareMain(d)||this.comparePre(d)}compareMain(d){return d instanceof Vr||(d=new Vr(d,this.options)),u(this.major,d.major)||u(this.minor,d.minor)||u(this.patch,d.patch)}comparePre(d){if(d instanceof Vr||(d=new Vr(d,this.options)),this.prerelease.length&&!d.prerelease.length)return-1;if(!this.prerelease.length&&d.prerelease.length)return 1;if(!this.prerelease.length&&!d.prerelease.length)return 0;let h=0;do{let f=this.prerelease[h],m=d.prerelease[h];if(r("prerelease compare",h,f,m),f===void 0&&m===void 0)return 0;if(m===void 0)return 1;if(f===void 0)return-1;if(f!==m)return u(f,m)}while(++h)}compareBuild(d){d instanceof Vr||(d=new Vr(d,this.options));let h=0;do{let f=this.build[h],m=d.build[h];if(r("build compare",h,f,m),f===void 0&&m===void 0)return 0;if(m===void 0)return 1;if(f===void 0)return-1;if(f!==m)return u(f,m)}while(++h)}inc(d,h,f){if(d.startsWith("pre")){if(!h&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(h){let m=`-${h}`.match(this.options.loose?o[i.PRERELEASELOOSE]:o[i.PRERELEASE]);if(!m||m[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(d){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,f),this.inc("pre",h,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,f),this.inc("pre",h,f);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let m=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[m];else{let y=this.prerelease.length;for(;--y>=0;)typeof this.prerelease[y]=="number"&&(this.prerelease[y]++,y=-2);if(y===-1){if(h===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(m)}}if(h){let y=[h,m];f===!1&&(y=[h]),u(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=y):this.prerelease=y}break}default:throw new Error(`invalid increment argument: ${d}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};t.exports=c}}),zo=be({"../../node_modules/semver/functions/parse.js"(e,t){var r=zt(),n=(a,o,i=!1)=>{if(a instanceof r)return a;try{return new r(a,o)}catch(l){if(!i)return null;throw l}};t.exports=n}}),mz=be({"../../node_modules/semver/functions/valid.js"(e,t){var r=zo(),n=(a,o)=>{let i=r(a,o);return i?i.version:null};t.exports=n}}),yz=be({"../../node_modules/semver/functions/clean.js"(e,t){var r=zo(),n=(a,o)=>{let i=r(a.trim().replace(/^[=v]+/,""),o);return i?i.version:null};t.exports=n}}),gz=be({"../../node_modules/semver/functions/inc.js"(e,t){var r=zt(),n=(a,o,i,l,u)=>{typeof i=="string"&&(u=l,l=i,i=void 0);try{return new r(a instanceof r?a.version:a,i).inc(o,l,u).version}catch{return null}};t.exports=n}}),bz=be({"../../node_modules/semver/functions/diff.js"(e,t){var r=zo(),n=(a,o)=>{let i=r(a,null,!0),l=r(o,null,!0),u=i.compare(l);if(u===0)return null;let c=u>0,p=c?i:l,d=c?l:i,h=!!p.prerelease.length;if(d.prerelease.length&&!h){if(!d.patch&&!d.minor)return"major";if(d.compareMain(p)===0)return d.minor&&!d.patch?"minor":"patch"}let f=h?"pre":"";return i.major!==l.major?f+"major":i.minor!==l.minor?f+"minor":i.patch!==l.patch?f+"patch":"prerelease"};t.exports=n}}),vz=be({"../../node_modules/semver/functions/major.js"(e,t){var r=zt(),n=(a,o)=>new r(a,o).major;t.exports=n}}),Ez=be({"../../node_modules/semver/functions/minor.js"(e,t){var r=zt(),n=(a,o)=>new r(a,o).minor;t.exports=n}}),Cz=be({"../../node_modules/semver/functions/patch.js"(e,t){var r=zt(),n=(a,o)=>new r(a,o).patch;t.exports=n}}),wz=be({"../../node_modules/semver/functions/prerelease.js"(e,t){var r=zo(),n=(a,o)=>{let i=r(a,o);return i&&i.prerelease.length?i.prerelease:null};t.exports=n}}),Fr=be({"../../node_modules/semver/functions/compare.js"(e,t){var r=zt(),n=(a,o,i)=>new r(a,i).compare(new r(o,i));t.exports=n}}),xz=be({"../../node_modules/semver/functions/rcompare.js"(e,t){var r=Fr(),n=(a,o,i)=>r(o,a,i);t.exports=n}}),Az=be({"../../node_modules/semver/functions/compare-loose.js"(e,t){var r=Fr(),n=(a,o)=>r(a,o,!0);t.exports=n}}),kb=be({"../../node_modules/semver/functions/compare-build.js"(e,t){var r=zt(),n=(a,o,i)=>{let l=new r(a,i),u=new r(o,i);return l.compare(u)||l.compareBuild(u)};t.exports=n}}),Sz=be({"../../node_modules/semver/functions/sort.js"(e,t){var r=kb(),n=(a,o)=>a.sort((i,l)=>r(i,l,o));t.exports=n}}),_z=be({"../../node_modules/semver/functions/rsort.js"(e,t){var r=kb(),n=(a,o)=>a.sort((i,l)=>r(l,i,o));t.exports=n}}),Jc=be({"../../node_modules/semver/functions/gt.js"(e,t){var r=Fr(),n=(a,o,i)=>r(a,o,i)>0;t.exports=n}}),Bb=be({"../../node_modules/semver/functions/lt.js"(e,t){var r=Fr(),n=(a,o,i)=>r(a,o,i)<0;t.exports=n}}),KI=be({"../../node_modules/semver/functions/eq.js"(e,t){var r=Fr(),n=(a,o,i)=>r(a,o,i)===0;t.exports=n}}),XI=be({"../../node_modules/semver/functions/neq.js"(e,t){var r=Fr(),n=(a,o,i)=>r(a,o,i)!==0;t.exports=n}}),jb=be({"../../node_modules/semver/functions/gte.js"(e,t){var r=Fr(),n=(a,o,i)=>r(a,o,i)>=0;t.exports=n}}),qb=be({"../../node_modules/semver/functions/lte.js"(e,t){var r=Fr(),n=(a,o,i)=>r(a,o,i)<=0;t.exports=n}}),QI=be({"../../node_modules/semver/functions/cmp.js"(e,t){var r=KI(),n=XI(),a=Jc(),o=jb(),i=Bb(),l=qb(),u=(c,p,d,h)=>{switch(p){case"===":return typeof c=="object"&&(c=c.version),typeof d=="object"&&(d=d.version),c===d;case"!==":return typeof c=="object"&&(c=c.version),typeof d=="object"&&(d=d.version),c!==d;case"":case"=":case"==":return r(c,d,h);case"!=":return n(c,d,h);case">":return a(c,d,h);case">=":return o(c,d,h);case"<":return i(c,d,h);case"<=":return l(c,d,h);default:throw new TypeError(`Invalid operator: ${p}`)}};t.exports=u}}),Tz=be({"../../node_modules/semver/functions/coerce.js"(e,t){var r=zt(),n=zo(),{safeRe:a,t:o}=xs(),i=(l,u)=>{if(l instanceof r)return l;if(typeof l=="number"&&(l=String(l)),typeof l!="string")return null;u=u||{};let c=null;if(!u.rtl)c=l.match(u.includePrerelease?a[o.COERCEFULL]:a[o.COERCE]);else{let y=u.includePrerelease?a[o.COERCERTLFULL]:a[o.COERCERTL],b;for(;(b=y.exec(l))&&(!c||c.index+c[0].length!==l.length);)(!c||b.index+b[0].length!==c.index+c[0].length)&&(c=b),y.lastIndex=b.index+b[1].length+b[2].length;y.lastIndex=-1}if(c===null)return null;let p=c[2],d=c[3]||"0",h=c[4]||"0",f=u.includePrerelease&&c[5]?`-${c[5]}`:"",m=u.includePrerelease&&c[6]?`+${c[6]}`:"";return n(`${p}.${d}.${h}${f}${m}`,u)};t.exports=i}}),Pz=be({"../../node_modules/semver/internal/lrucache.js"(e,t){var r=class{constructor(){this.max=1e3,this.map=new Map}get(n){let a=this.map.get(n);if(a!==void 0)return this.map.delete(n),this.map.set(n,a),a}delete(n){return this.map.delete(n)}set(n,a){if(!this.delete(n)&&a!==void 0){if(this.map.size>=this.max){let o=this.map.keys().next().value;this.delete(o)}this.map.set(n,a)}return this}};t.exports=r}}),Ir=be({"../../node_modules/semver/classes/range.js"(e,t){var r=/\s+/g,n=class il{constructor(Y,Q){if(Q=i(Q),Y instanceof il)return Y.loose===!!Q.loose&&Y.includePrerelease===!!Q.includePrerelease?Y:new il(Y.raw,Q);if(Y instanceof l)return this.raw=Y.value,this.set=[[Y]],this.formatted=void 0,this;if(this.options=Q,this.loose=!!Q.loose,this.includePrerelease=!!Q.includePrerelease,this.raw=Y.trim().replace(r," "),this.set=this.raw.split("||").map(ae=>this.parseRange(ae.trim())).filter(ae=>ae.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let ae=this.set[0];if(this.set=this.set.filter(le=>!g(le[0])),this.set.length===0)this.set=[ae];else if(this.set.length>1){for(let le of this.set)if(le.length===1&&v(le[0])){this.set=[le];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let Y=0;Y<this.set.length;Y++){Y>0&&(this.formatted+="||");let Q=this.set[Y];for(let ae=0;ae<Q.length;ae++)ae>0&&(this.formatted+=" "),this.formatted+=Q[ae].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(Y){let Q=((this.options.includePrerelease&&y)|(this.options.loose&&b))+":"+Y,ae=o.get(Q);if(ae)return ae;let le=this.options.loose,M=le?p[d.HYPHENRANGELOOSE]:p[d.HYPHENRANGE];Y=Y.replace(M,R(this.options.includePrerelease)),u("hyphen replace",Y),Y=Y.replace(p[d.COMPARATORTRIM],h),u("comparator trim",Y),Y=Y.replace(p[d.TILDETRIM],f),u("tilde trim",Y),Y=Y.replace(p[d.CARETTRIM],m),u("caret trim",Y);let L=Y.split(" ").map(te=>S(te,this.options)).join(" ").split(/\s+/).map(te=>z(te,this.options));le&&(L=L.filter(te=>(u("loose invalid filter",te,this.options),!!te.match(p[d.COMPARATORLOOSE])))),u("range list",L);let K=new Map,X=L.map(te=>new l(te,this.options));for(let te of X){if(g(te))return[te];K.set(te.value,te)}K.size>1&&K.has("")&&K.delete("");let ie=[...K.values()];return o.set(Q,ie),ie}intersects(Y,Q){if(!(Y instanceof il))throw new TypeError("a Range is required");return this.set.some(ae=>D(ae,Q)&&Y.set.some(le=>D(le,Q)&&ae.every(M=>le.every(L=>M.intersects(L,Q)))))}test(Y){if(!Y)return!1;if(typeof Y=="string")try{Y=new c(Y,this.options)}catch{return!1}for(let Q=0;Q<this.set.length;Q++)if(U(this.set[Q],Y,this.options))return!0;return!1}};t.exports=n;var a=Pz(),o=new a,i=Nb(),l=zc(),u=Hc(),c=zt(),{safeRe:p,t:d,comparatorTrimReplace:h,tildeTrimReplace:f,caretTrimReplace:m}=xs(),{FLAG_INCLUDE_PRERELEASE:y,FLAG_LOOSE:b}=Vc(),g=j=>j.value==="<0.0.0-0",v=j=>j.value==="",D=(j,Y)=>{let Q=!0,ae=j.slice(),le=ae.pop();for(;Q&&ae.length;)Q=ae.every(M=>le.intersects(M,Y)),le=ae.pop();return Q},S=(j,Y)=>(u("comp",j,Y),j=C(j,Y),u("caret",j),j=w(j,Y),u("tildes",j),j=k(j,Y),u("xrange",j),j=W(j,Y),u("stars",j),j),P=j=>!j||j.toLowerCase()==="x"||j==="*",w=(j,Y)=>j.trim().split(/\s+/).map(Q=>E(Q,Y)).join(" "),E=(j,Y)=>{let Q=Y.loose?p[d.TILDELOOSE]:p[d.TILDE];return j.replace(Q,(ae,le,M,L,K)=>{u("tilde",j,ae,le,M,L,K);let X;return P(le)?X="":P(M)?X=`>=${le}.0.0 <${+le+1}.0.0-0`:P(L)?X=`>=${le}.${M}.0 <${le}.${+M+1}.0-0`:K?(u("replaceTilde pr",K),X=`>=${le}.${M}.${L}-${K} <${le}.${+M+1}.0-0`):X=`>=${le}.${M}.${L} <${le}.${+M+1}.0-0`,u("tilde return",X),X})},C=(j,Y)=>j.trim().split(/\s+/).map(Q=>_(Q,Y)).join(" "),_=(j,Y)=>{u("caret",j,Y);let Q=Y.loose?p[d.CARETLOOSE]:p[d.CARET],ae=Y.includePrerelease?"-0":"";return j.replace(Q,(le,M,L,K,X)=>{u("caret",j,le,M,L,K,X);let ie;return P(M)?ie="":P(L)?ie=`>=${M}.0.0${ae} <${+M+1}.0.0-0`:P(K)?M==="0"?ie=`>=${M}.${L}.0${ae} <${M}.${+L+1}.0-0`:ie=`>=${M}.${L}.0${ae} <${+M+1}.0.0-0`:X?(u("replaceCaret pr",X),M==="0"?L==="0"?ie=`>=${M}.${L}.${K}-${X} <${M}.${L}.${+K+1}-0`:ie=`>=${M}.${L}.${K}-${X} <${M}.${+L+1}.0-0`:ie=`>=${M}.${L}.${K}-${X} <${+M+1}.0.0-0`):(u("no pr"),M==="0"?L==="0"?ie=`>=${M}.${L}.${K}${ae} <${M}.${L}.${+K+1}-0`:ie=`>=${M}.${L}.${K}${ae} <${M}.${+L+1}.0-0`:ie=`>=${M}.${L}.${K} <${+M+1}.0.0-0`),u("caret return",ie),ie})},k=(j,Y)=>(u("replaceXRanges",j,Y),j.split(/\s+/).map(Q=>B(Q,Y)).join(" ")),B=(j,Y)=>{j=j.trim();let Q=Y.loose?p[d.XRANGELOOSE]:p[d.XRANGE];return j.replace(Q,(ae,le,M,L,K,X)=>{u("xRange",j,ae,le,M,L,K,X);let ie=P(M),te=ie||P(L),ue=te||P(K),ve=ue;return le==="="&&ve&&(le=""),X=Y.includePrerelease?"-0":"",ie?le===">"||le==="<"?ae="<0.0.0-0":ae="*":le&&ve?(te&&(L=0),K=0,le===">"?(le=">=",te?(M=+M+1,L=0,K=0):(L=+L+1,K=0)):le==="<="&&(le="<",te?M=+M+1:L=+L+1),le==="<"&&(X="-0"),ae=`${le+M}.${L}.${K}${X}`):te?ae=`>=${M}.0.0${X} <${+M+1}.0.0-0`:ue&&(ae=`>=${M}.${L}.0${X} <${M}.${+L+1}.0-0`),u("xRange return",ae),ae})},W=(j,Y)=>(u("replaceStars",j,Y),j.trim().replace(p[d.STAR],"")),z=(j,Y)=>(u("replaceGTE0",j,Y),j.trim().replace(p[Y.includePrerelease?d.GTE0PRE:d.GTE0],"")),R=j=>(Y,Q,ae,le,M,L,K,X,ie,te,ue,ve)=>(P(ae)?Q="":P(le)?Q=`>=${ae}.0.0${j?"-0":""}`:P(M)?Q=`>=${ae}.${le}.0${j?"-0":""}`:L?Q=`>=${Q}`:Q=`>=${Q}${j?"-0":""}`,P(ie)?X="":P(te)?X=`<${+ie+1}.0.0-0`:P(ue)?X=`<${ie}.${+te+1}.0-0`:ve?X=`<=${ie}.${te}.${ue}-${ve}`:j?X=`<${ie}.${te}.${+ue+1}-0`:X=`<=${X}`,`${Q} ${X}`.trim()),U=(j,Y,Q)=>{for(let ae=0;ae<j.length;ae++)if(!j[ae].test(Y))return!1;if(Y.prerelease.length&&!Q.includePrerelease){for(let ae=0;ae<j.length;ae++)if(u(j[ae].semver),j[ae].semver!==l.ANY&&j[ae].semver.prerelease.length>0){let le=j[ae].semver;if(le.major===Y.major&&le.minor===Y.minor&&le.patch===Y.patch)return!0}return!1}return!0}}}),zc=be({"../../node_modules/semver/classes/comparator.js"(e,t){var r=Symbol("SemVer ANY"),n=class Wf{static get ANY(){return r}constructor(h,f){if(f=a(f),h instanceof Wf){if(h.loose===!!f.loose)return h;h=h.value}h=h.trim().split(/\s+/).join(" "),u("comparator",h,f),this.options=f,this.loose=!!f.loose,this.parse(h),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(h){let f=this.options.loose?o[i.COMPARATORLOOSE]:o[i.COMPARATOR],m=h.match(f);if(!m)throw new TypeError(`Invalid comparator: ${h}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new c(m[2],this.options.loose):this.semver=r}toString(){return this.value}test(h){if(u("Comparator.test",h,this.options.loose),this.semver===r||h===r)return!0;if(typeof h=="string")try{h=new c(h,this.options)}catch{return!1}return l(h,this.operator,this.semver,this.options)}intersects(h,f){if(!(h instanceof Wf))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new p(h.value,f).test(this.value):h.operator===""?h.value===""?!0:new p(this.value,f).test(h.semver):(f=a(f),f.includePrerelease&&(this.value==="<0.0.0-0"||h.value==="<0.0.0-0")||!f.includePrerelease&&(this.value.startsWith("<0.0.0")||h.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&h.operator.startsWith(">")||this.operator.startsWith("<")&&h.operator.startsWith("<")||this.semver.version===h.semver.version&&this.operator.includes("=")&&h.operator.includes("=")||l(this.semver,"<",h.semver,f)&&this.operator.startsWith(">")&&h.operator.startsWith("<")||l(this.semver,">",h.semver,f)&&this.operator.startsWith("<")&&h.operator.startsWith(">")))}};t.exports=n;var a=Nb(),{safeRe:o,t:i}=xs(),l=QI(),u=Hc(),c=zt(),p=Ir()}}),Gc=be({"../../node_modules/semver/functions/satisfies.js"(e,t){var r=Ir(),n=(a,o,i)=>{try{o=new r(o,i)}catch{return!1}return o.test(a)};t.exports=n}}),Dz=be({"../../node_modules/semver/ranges/to-comparators.js"(e,t){var r=Ir(),n=(a,o)=>new r(a,o).set.map(i=>i.map(l=>l.value).join(" ").trim().split(" "));t.exports=n}}),Oz=be({"../../node_modules/semver/ranges/max-satisfying.js"(e,t){var r=zt(),n=Ir(),a=(o,i,l)=>{let u=null,c=null,p=null;try{p=new n(i,l)}catch{return null}return o.forEach(d=>{p.test(d)&&(!u||c.compare(d)===-1)&&(u=d,c=new r(u,l))}),u};t.exports=a}}),Rz=be({"../../node_modules/semver/ranges/min-satisfying.js"(e,t){var r=zt(),n=Ir(),a=(o,i,l)=>{let u=null,c=null,p=null;try{p=new n(i,l)}catch{return null}return o.forEach(d=>{p.test(d)&&(!u||c.compare(d)===1)&&(u=d,c=new r(u,l))}),u};t.exports=a}}),Fz=be({"../../node_modules/semver/ranges/min-version.js"(e,t){var r=zt(),n=Ir(),a=Jc(),o=(i,l)=>{i=new n(i,l);let u=new r("0.0.0");if(i.test(u)||(u=new r("0.0.0-0"),i.test(u)))return u;u=null;for(let c=0;c<i.set.length;++c){let p=i.set[c],d=null;p.forEach(h=>{let f=new r(h.semver.version);switch(h.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!d||a(f,d))&&(d=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${h.operator}`)}}),d&&(!u||a(u,d))&&(u=d)}return u&&i.test(u)?u:null};t.exports=o}}),Iz=be({"../../node_modules/semver/ranges/valid.js"(e,t){var r=Ir(),n=(a,o)=>{try{return new r(a,o).range||"*"}catch{return null}};t.exports=n}}),Mb=be({"../../node_modules/semver/ranges/outside.js"(e,t){var r=zt(),n=zc(),{ANY:a}=n,o=Ir(),i=Gc(),l=Jc(),u=Bb(),c=qb(),p=jb(),d=(h,f,m,y)=>{h=new r(h,y),f=new o(f,y);let b,g,v,D,S;switch(m){case">":b=l,g=c,v=u,D=">",S=">=";break;case"<":b=u,g=p,v=l,D="<",S="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(h,f,y))return!1;for(let P=0;P<f.set.length;++P){let w=f.set[P],E=null,C=null;if(w.forEach(_=>{_.semver===a&&(_=new n(">=0.0.0")),E=E||_,C=C||_,b(_.semver,E.semver,y)?E=_:v(_.semver,C.semver,y)&&(C=_)}),E.operator===D||E.operator===S||(!C.operator||C.operator===D)&&g(h,C.semver)||C.operator===S&&v(h,C.semver))return!1}return!0};t.exports=d}}),Nz=be({"../../node_modules/semver/ranges/gtr.js"(e,t){var r=Mb(),n=(a,o,i)=>r(a,o,">",i);t.exports=n}}),kz=be({"../../node_modules/semver/ranges/ltr.js"(e,t){var r=Mb(),n=(a,o,i)=>r(a,o,"<",i);t.exports=n}}),Bz=be({"../../node_modules/semver/ranges/intersects.js"(e,t){var r=Ir(),n=(a,o,i)=>(a=new r(a,i),o=new r(o,i),a.intersects(o,i));t.exports=n}}),jz=be({"../../node_modules/semver/ranges/simplify.js"(e,t){var r=Gc(),n=Fr();t.exports=(a,o,i)=>{let l=[],u=null,c=null,p=a.sort((m,y)=>n(m,y,i));for(let m of p)r(m,o,i)?(c=m,u||(u=m)):(c&&l.push([u,c]),c=null,u=null);u&&l.push([u,null]);let d=[];for(let[m,y]of l)m===y?d.push(m):!y&&m===p[0]?d.push("*"):y?m===p[0]?d.push(`<=${y}`):d.push(`${m} - ${y}`):d.push(`>=${m}`);let h=d.join(" || "),f=typeof o.raw=="string"?o.raw:String(o);return h.length<f.length?h:o}}}),qz=be({"../../node_modules/semver/ranges/subset.js"(e,t){var r=Ir(),n=zc(),{ANY:a}=n,o=Gc(),i=Fr(),l=(f,m,y={})=>{if(f===m)return!0;f=new r(f,y),m=new r(m,y);let b=!1;e:for(let g of f.set){for(let v of m.set){let D=p(g,v,y);if(b=b||D!==null,D)continue e}if(b)return!1}return!0},u=[new n(">=0.0.0-0")],c=[new n(">=0.0.0")],p=(f,m,y)=>{if(f===m)return!0;if(f.length===1&&f[0].semver===a){if(m.length===1&&m[0].semver===a)return!0;y.includePrerelease?f=u:f=c}if(m.length===1&&m[0].semver===a){if(y.includePrerelease)return!0;m=c}let b=new Set,g,v;for(let k of f)k.operator===">"||k.operator===">="?g=d(g,k,y):k.operator==="<"||k.operator==="<="?v=h(v,k,y):b.add(k.semver);if(b.size>1)return null;let D;if(g&&v&&(D=i(g.semver,v.semver,y),D>0||D===0&&(g.operator!==">="||v.operator!=="<=")))return null;for(let k of b){if(g&&!o(k,String(g),y)||v&&!o(k,String(v),y))return null;for(let B of m)if(!o(k,String(B),y))return!1;return!0}let S,P,w,E,C=v&&!y.includePrerelease&&v.semver.prerelease.length?v.semver:!1,_=g&&!y.includePrerelease&&g.semver.prerelease.length?g.semver:!1;C&&C.prerelease.length===1&&v.operator==="<"&&C.prerelease[0]===0&&(C=!1);for(let k of m){if(E=E||k.operator===">"||k.operator===">=",w=w||k.operator==="<"||k.operator==="<=",g){if(_&&k.semver.prerelease&&k.semver.prerelease.length&&k.semver.major===_.major&&k.semver.minor===_.minor&&k.semver.patch===_.patch&&(_=!1),k.operator===">"||k.operator===">="){if(S=d(g,k,y),S===k&&S!==g)return!1}else if(g.operator===">="&&!o(g.semver,String(k),y))return!1}if(v){if(C&&k.semver.prerelease&&k.semver.prerelease.length&&k.semver.major===C.major&&k.semver.minor===C.minor&&k.semver.patch===C.patch&&(C=!1),k.operator==="<"||k.operator==="<="){if(P=h(v,k,y),P===k&&P!==v)return!1}else if(v.operator==="<="&&!o(v.semver,String(k),y))return!1}if(!k.operator&&(v||g)&&D!==0)return!1}return!(g&&w&&!v&&D!==0||v&&E&&!g&&D!==0||_||C)},d=(f,m,y)=>{if(!f)return m;let b=i(f.semver,m.semver,y);return b>0?f:b<0||m.operator===">"&&f.operator===">="?m:f},h=(f,m,y)=>{if(!f)return m;let b=i(f.semver,m.semver,y);return b<0?f:b>0||m.operator==="<"&&f.operator==="<="?m:f};t.exports=l}}),Mz=be({"../../node_modules/semver/index.js"(e,t){var r=xs(),n=Vc(),a=zt(),o=YI(),i=zo(),l=mz(),u=yz(),c=gz(),p=bz(),d=vz(),h=Ez(),f=Cz(),m=wz(),y=Fr(),b=xz(),g=Az(),v=kb(),D=Sz(),S=_z(),P=Jc(),w=Bb(),E=KI(),C=XI(),_=jb(),k=qb(),B=QI(),W=Tz(),z=zc(),R=Ir(),U=Gc(),j=Dz(),Y=Oz(),Q=Rz(),ae=Fz(),le=Iz(),M=Mb(),L=Nz(),K=kz(),X=Bz(),ie=jz(),te=qz();t.exports={parse:i,valid:l,clean:u,inc:c,diff:p,major:d,minor:h,patch:f,prerelease:m,compare:y,rcompare:b,compareLoose:g,compareBuild:v,sort:D,rsort:S,gt:P,lt:w,eq:E,neq:C,gte:_,lte:k,cmp:B,coerce:W,Comparator:z,Range:R,satisfies:U,toComparators:j,maxSatisfying:Y,minSatisfying:Q,minVersion:ae,validRange:le,outside:M,gtr:L,ltr:K,intersects:X,simplifyRange:ie,subset:te,SemVer:a,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}}}),Lz={};Uc(Lz,{applyDecorators:()=>Fb,beforeAll:()=>i2,decorators:()=>a2,mount:()=>n2,parameters:()=>o2,render:()=>e2,renderToCanvas:()=>r2});var nE=Jo(Mz());function aE(e){globalThis.IS_REACT_ACT_ENVIRONMENT=e}function $z(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var ZI=async({disableAct:e=!1}={})=>t=>t(),e2=(e,t)=>{let{id:r,component:n}=t;if(!n)throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);return br.createElement(n,{...e})},{FRAMEWORK_OPTIONS:Uz}=hz,Vz=class extends Rt.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}},oE=Uz?.strictMode?Rt.StrictMode:Rt.Fragment,Yf=[],Sp=!1,t2=async()=>{if(Sp||Yf.length===0)return;Sp=!0;let e=Yf.shift();e&&await e(),Sp=!1,t2()};async function r2({storyContext:e,unboundStoryFn:t,showMain:r,showException:n,forceRemount:a},o){let{renderElement:i,unmountElement:l}=await Ee(async()=>{const{renderElement:h,unmountElement:f}=await import("./react-18-CNyWQ7je.js");return{renderElement:h,unmountElement:f}},__vite__mapDeps([109,3,2]),import.meta.url),u=t,c=e.parameters.__isPortableStory?br.createElement(u,{...e}):br.createElement(Vz,{key:e.id,showMain:r,showException:n},br.createElement(u,{...e})),p=oE?br.createElement(oE,null,c):c;a&&l(o);let d=await ZI({disableAct:e.viewMode==="docs"});return await new Promise(async(h,f)=>{Yf.push(async()=>{try{await d(async()=>{await i(p,o,e?.parameters?.react?.rootOptions)}),h()}catch(m){f(m)}}),t2()}),async()=>{await d(()=>{l(o)})}}var n2=e=>async t=>(t!=null&&(e.originalStoryFn=()=>t),await e.renderToCanvas(),e.canvas),a2=[(e,t)=>{if(!t.parameters?.react?.rsc)return e();let r=nE.default.major(Rt.version),n=nE.default.minor(Rt.version);if(r<18||r===18&&n<3)throw new Error("React Server Components require React >= 18.3");return Rt.createElement(Rt.Suspense,null,e())}],o2={renderer:"react"},i2=async()=>{try{let{configure:e}=await import(__STORYBOOK_MODULE_TEST__),t=await ZI();e({unstable_advanceTimersWrapper:r=>t(r),asyncWrapper:async r=>{let n=$z();aE(!1);try{let a=await r();return await new Promise(o=>{setTimeout(()=>{o()},0),Hz()&&jest.advanceTimersByTime(0)}),a}finally{aE(n)}},eventWrapper:r=>{let n;return t(()=>(n=r(),n)),n}})}catch{}};function Hz(){return typeof jest<"u"&&jest!==null?setTimeout._isMockFunction===!0||Object.prototype.hasOwnProperty.call(setTimeout,"clock"):!1}const Jz=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:Fb,beforeAll:i2,decorators:a2,mount:n2,parameters:o2,render:e2,renderToCanvas:r2},Symbol.toStringTag,{value:"Module"}));var zz=be({"../../node_modules/@base2/pretty-print-object/dist/index.js"(e){var t=e&&e.__assign||function(){return t=Object.assign||function(u){for(var c,p=1,d=arguments.length;p<d;p++){c=arguments[p];for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(u[h]=c[h])}return u},t.apply(this,arguments)},r=e&&e.__spreadArrays||function(){for(var u=0,c=0,p=arguments.length;c<p;c++)u+=arguments[c].length;for(var d=Array(u),h=0,c=0;c<p;c++)for(var f=arguments[c],m=0,y=f.length;m<y;m++,h++)d[h]=f[m];return d};Object.defineProperty(e,"__esModule",{value:!0});var n=[];function a(u){var c=typeof u;return u!==null&&(c==="object"||c==="function")}function o(u){return Object.prototype.toString.call(u)==="[object RegExp]"}function i(u){return Object.getOwnPropertySymbols(u).filter(function(c){return Object.prototype.propertyIsEnumerable.call(u,c)})}function l(u,c,p){p===void 0&&(p="");var d={indent:" ",singleQuotes:!0},h=t(t({},d),c),f;h.inlineCharacterLimit===void 0?f={newLine:`
|
|
1020
|
+
`,newLineOrSpace:`
|
|
1021
|
+
`,pad:p,indent:p+h.indent}:f={newLine:"@@__PRETTY_PRINT_NEW_LINE__@@",newLineOrSpace:"@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@",pad:"@@__PRETTY_PRINT_PAD__@@",indent:"@@__PRETTY_PRINT_INDENT__@@"};var m=function(g){if(h.inlineCharacterLimit===void 0)return g;var v=g.replace(new RegExp(f.newLine,"g"),"").replace(new RegExp(f.newLineOrSpace,"g")," ").replace(new RegExp(f.pad+"|"+f.indent,"g"),"");return v.length<=h.inlineCharacterLimit?v:g.replace(new RegExp(f.newLine+"|"+f.newLineOrSpace,"g"),`
|
|
1022
|
+
`).replace(new RegExp(f.pad,"g"),p).replace(new RegExp(f.indent,"g"),p+h.indent)};if(n.indexOf(u)!==-1)return'"[Circular]"';if(u==null||typeof u=="number"||typeof u=="boolean"||typeof u=="function"||typeof u=="symbol"||o(u))return String(u);if(u instanceof Date)return"new Date('"+u.toISOString()+"')";if(Array.isArray(u)){if(u.length===0)return"[]";n.push(u);var y="["+f.newLine+u.map(function(g,v){var D=u.length-1===v?f.newLine:","+f.newLineOrSpace,S=l(g,h,p+h.indent);return h.transform&&(S=h.transform(u,v,S)),f.indent+S+D}).join("")+f.pad+"]";return n.pop(),m(y)}if(a(u)){var b=r(Object.keys(u),i(u));if(h.filter&&(b=b.filter(function(v){return h.filter&&h.filter(u,v)})),b.length===0)return"{}";n.push(u);var y="{"+f.newLine+b.map(function(v,D){var S=b.length-1===D?f.newLine:","+f.newLineOrSpace,P=typeof v=="symbol",w=!P&&/^[a-z$_][a-z$_0-9]*$/i.test(v.toString()),E=P||w?v:l(v,h),C=l(u[v],h,p+h.indent);return h.transform&&(C=h.transform(u,v,C)),f.indent+String(E)+": "+C+S}).join("")+f.pad+"}";return n.pop(),m(y)}return u=String(u).replace(/[\r\n]/g,function(g){return g===`
|
|
1023
|
+
`?"\\n":"\\r"}),h.singleQuotes?(u=u.replace(/\\?'/g,"\\'"),"'"+u+"'"):(u=u.replace(/"/g,'\\"'),'"'+u+'"')}e.prettyPrint=l}}),Gz=be({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(e){var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function b(g){if(typeof g=="object"&&g!==null){var v=g.$$typeof;switch(v){case t:switch(g=g.type,g){case n:case o:case a:case p:case d:return g;default:switch(g=g&&g.$$typeof,g){case u:case l:case c:case f:case h:case i:return g;default:return v}}case r:return v}}}e.ContextConsumer=l,e.ContextProvider=i,e.Element=t,e.ForwardRef=c,e.Fragment=n,e.Lazy=f,e.Memo=h,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=p,e.SuspenseList=d,e.isAsyncMode=function(){return!1},e.isConcurrentMode=function(){return!1},e.isContextConsumer=function(g){return b(g)===l},e.isContextProvider=function(g){return b(g)===i},e.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},e.isForwardRef=function(g){return b(g)===c},e.isFragment=function(g){return b(g)===n},e.isLazy=function(g){return b(g)===f},e.isMemo=function(g){return b(g)===h},e.isPortal=function(g){return b(g)===r},e.isProfiler=function(g){return b(g)===o},e.isStrictMode=function(g){return b(g)===a},e.isSuspense=function(g){return b(g)===p},e.isSuspenseList=function(g){return b(g)===d},e.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===a||g===p||g===d||g===m||typeof g=="object"&&g!==null&&(g.$$typeof===f||g.$$typeof===h||g.$$typeof===i||g.$$typeof===l||g.$$typeof===c||g.$$typeof===y||g.getModuleId!==void 0)},e.typeOf=b}}),Wz=be({"../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(e,t){t.exports=Gz()}}),s2=e=>e.$$typeof===Symbol.for("react.memo"),Yz=e=>e.$$typeof===Symbol.for("react.forward_ref");function iE(e){return Object.prototype.toString.call(e)==="[object Object]"}function Kz(e){var t,r;return iE(e)===!1?!1:(t=e.constructor,t===void 0?!0:(r=t.prototype,!(iE(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}var Xz=Jo(zz()),Hr=Jo(Wz()),yn=function(e,t){return e===0?"":new Array(e*t).fill(" ").join("")};function Kf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Qz(e){if(Array.isArray(e))return Kf(e)}function Zz(e,t,r){return(t=oG(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1024
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function rG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sE(Object(r),!0).forEach(function(n){Zz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sE(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nG(e){return Qz(e)||eG(e)||iG(e)||tG()}function aG(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oG(e){var t=aG(e,"string");return typeof t=="symbol"?t:t+""}function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function iG(e,t){if(e){if(typeof e=="string")return Kf(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kf(e,t):void 0}}function Xf(e,t){if(e===null||Qi(e)!=="object"||e instanceof Date||e instanceof RegExp)return e;if(Rt.isValidElement(e)){var r=rG({},e);return delete r._owner,r}return t.add(e),Array.isArray(e)?e.map(function(n){return Xf(n,t)}):Object.keys(e).sort().reduce(function(n,a){return a==="current"||t.has(e[a])?n[a]="[Circular]":n[a]=Xf(e[a],t),n},{})}function sG(e){return Xf(e,new WeakSet)}var l2=function(e){return{type:"string",value:e}},lG=function(e){return{type:"number",value:e}},uG=function(e,t,r,n){return{type:"ReactElement",displayName:e,props:t,defaultProps:r,childrens:n}},cG=function(e,t){return{type:"ReactFragment",key:e,childrens:t}},pG=!!Rt.Fragment,u2=function(e){return!e.name||e.name==="_default"?"No Display Name":e.name},Qf=function(e){switch(!0){case!!e.displayName:return e.displayName;case e.$$typeof===Hr.Memo:return Qf(e.type);case e.$$typeof===Hr.ForwardRef:return Qf(e.render);default:return u2(e)}},dG=function(e){switch(!0){case typeof e.type=="string":return e.type;case typeof e.type=="function":return e.type.displayName?e.type.displayName:u2(e.type);case(0,Hr.isForwardRef)(e):case(0,Hr.isMemo)(e):return Qf(e.type);case(0,Hr.isContextConsumer)(e):return"".concat(e.type._context.displayName||"Context",".Consumer");case(0,Hr.isContextProvider)(e):return"".concat(e.type._context.displayName||"Context",".Provider");case(0,Hr.isLazy)(e):return"Lazy";case(0,Hr.isProfiler)(e):return"Profiler";case(0,Hr.isStrictMode)(e):return"StrictMode";case(0,Hr.isSuspense)(e):return"Suspense";default:return"UnknownElementType"}},lE=function(e,t){return t!=="children"},fG=function(e){return e!==!0&&e!==!1&&e!==null&&e!==""},uE=function(e,t){var r={};return Object.keys(e).filter(function(n){return t(e[n],n)}).forEach(function(n){return r[n]=e[n]}),r},Wc=function(e,t){var r=t.displayName,n=r===void 0?dG:r;if(typeof e=="string")return l2(e);if(typeof e=="number")return lG(e);if(!br.isValidElement(e))throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(Qi(e),"`"));var a=n(e),o=uE(e.props,lE);e.ref!==null&&(o.ref=e.ref);var i=e.key;typeof i=="string"&&i.search(/^\./)&&(o.key=i);var l=uE(e.type.defaultProps||{},lE),u=br.Children.toArray(e.props.children).filter(fG).map(function(c){return Wc(c,t)});return pG&&e.type===Rt.Fragment?cG(i,u):uG(a,o,l,u)};function hG(){}var mG=function(e){return e.toString().split(`
|
|
1025
|
+
`).map(function(t){return t.trim()}).join("")},cE=mG,c2=function(e,t){var r=t.functionValue,n=r===void 0?cE:r,a=t.showFunctions;return n(!a&&n===cE?hG:e)},yG=function(e,t,r,n){var a=sG(e),o=(0,Xz.prettyPrint)(a,{transform:function(i,l,u){var c=i[l];return c&&Rt.isValidElement(c)?Yc(Wc(c,n),!0,r,n):typeof c=="function"?c2(c,n):u}});return t?o.replace(/\s+/g," ").replace(/{ /g,"{").replace(/ }/g,"}").replace(/\[ /g,"[").replace(/ ]/g,"]"):o.replace(/\t/g,yn(1,n.tabStop)).replace(/\n([^$])/g,`
|
|
1026
|
+
`.concat(yn(r+1,n.tabStop),"$1"))},gG=function(e){return e.replace(/"/g,""")},bG=function(e,t,r,n){if(typeof e=="number")return"{".concat(String(e),"}");if(typeof e=="string")return'"'.concat(gG(e),'"');if(Qi(e)==="symbol"){var a=e.valueOf().toString().replace(/Symbol\((.*)\)/,"$1");return a?"{Symbol('".concat(a,"')}"):"{Symbol()}"}return typeof e=="function"?"{".concat(c2(e,n),"}"):Rt.isValidElement(e)?"{".concat(Yc(Wc(e,n),!0,r,n),"}"):e instanceof Date?isNaN(e.valueOf())?"{new Date(NaN)}":'{new Date("'.concat(e.toISOString(),'")}'):Kz(e)||Array.isArray(e)?"{".concat(yG(e,t,r,n),"}"):"{".concat(String(e),"}")},vG=function(e,t,r,n,a,o,i,l){if(!t&&!n)throw new Error('The prop "'.concat(e,'" has no value and no default: could not be formatted'));var u=t?r:a,c=l.useBooleanShorthandSyntax,p=l.tabStop,d=bG(u,o,i,l),h=" ",f=`
|
|
1027
|
+
`.concat(yn(i+1,p)),m=d.includes(`
|
|
1028
|
+
`);return c&&d==="{false}"&&!n?(h="",f=""):c&&d==="{true}"?(h+="".concat(e),f+="".concat(e)):(h+="".concat(e,"=").concat(d),f+="".concat(e,"=").concat(d)),{attributeFormattedInline:h,attributeFormattedMultiline:f,isMultilineAttribute:m}},EG=function(e,t){var r=e.slice(0,e.length>0?e.length-1:0),n=e[e.length-1];return n&&(t.type==="string"||t.type==="number")&&(n.type==="string"||n.type==="number")?r.push(l2(String(n.value)+String(t.value))):(n&&r.push(n),r.push(t)),r},CG=function(e){return["key","ref"].includes(e)},wG=function(e){return function(t){var r=t.includes("key"),n=t.includes("ref"),a=t.filter(function(i){return!CG(i)}),o=nG(e?a.sort():a);return n&&o.unshift("ref"),r&&o.unshift("key"),o}};function xG(e,t){return Array.isArray(t)?function(r){return t.indexOf(r)===-1}:function(r){return t(e[r],r)}}var AG=function(e,t,r,n,a){var o=a.tabStop;return e.type==="string"?t.split(`
|
|
1029
|
+
`).map(function(i,l){return l===0?i:"".concat(yn(n,o)).concat(i)}).join(`
|
|
1030
|
+
`):t},SG=function(e,t,r){return function(n){return AG(n,Yc(n,e,t,r),e,t,r)}},_G=function(e,t){return function(r){var n=Object.keys(e).includes(r);return!n||n&&e[r]!==t[r]}},p2=function(e,t,r,n,a){return a?yn(r,n).length+t.length>a:e.length>1},TG=function(e,t,r,n,a,o,i){return(p2(e,t,a,o,i)||r)&&!n},d2=function(e,t,r,n){var a=e.type,o=e.displayName,i=o===void 0?"":o,l=e.childrens,u=e.props,c=u===void 0?{}:u,p=e.defaultProps,d=p===void 0?{}:p;if(a!=="ReactElement")throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(a));var h=n.filterProps,f=n.maxInlineAttributesLineLength,m=n.showDefaultProps,y=n.sortProps,b=n.tabStop,g="<".concat(i),v=g,D=g,S=!1,P=[],w=xG(c,h);Object.keys(c).filter(w).filter(_G(d,c)).forEach(function(_){return P.push(_)}),Object.keys(d).filter(w).filter(function(){return m}).filter(function(_){return!P.includes(_)}).forEach(function(_){return P.push(_)});var E=wG(y)(P);if(E.forEach(function(_){var k=vG(_,Object.keys(c).includes(_),c[_],Object.keys(d).includes(_),d[_],t,r,n),B=k.attributeFormattedInline,W=k.attributeFormattedMultiline,z=k.isMultilineAttribute;z&&(S=!0),v+=B,D+=W}),D+=`
|
|
1031
|
+
`.concat(yn(r,b)),TG(E,v,S,t,r,b,f)?g=D:g=v,l&&l.length>0){var C=r+1;g+=">",t||(g+=`
|
|
1032
|
+
`,g+=yn(C,b)),g+=l.reduce(EG,[]).map(SG(t,C,n)).join(t?"":`
|
|
1033
|
+
`.concat(yn(C,b))),t||(g+=`
|
|
1034
|
+
`,g+=yn(C-1,b)),g+="</".concat(i,">")}else p2(E,v,r,b,f)||(g+=" "),g+="/>";return g},PG="",pE="React.Fragment",DG=function(e,t,r){var n={};return t&&(n={key:t}),{type:"ReactElement",displayName:e,props:n,defaultProps:{},childrens:r}},OG=function(e){var t=e.key;return!!t},RG=function(e){var t=e.childrens;return t.length===0},FG=function(e,t,r,n){var a=e.type,o=e.key,i=e.childrens;if(a!=="ReactFragment")throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(a));var l=n.useFragmentShortSyntax,u;return l?RG(e)||OG(e)?u=pE:u=PG:u=pE,d2(DG(u,o,i),t,r,n)},IG=["<",">","{","}"],NG=function(e){return IG.some(function(t){return e.includes(t)})},kG=function(e){return NG(e)?"{`".concat(e,"`}"):e},BG=function(e){var t=e;return t.endsWith(" ")&&(t=t.replace(/^(.*?)(\s+)$/,"$1{'$2'}")),t.startsWith(" ")&&(t=t.replace(/^(\s+)(.*)$/,"{'$1'}$2")),t},Yc=function(e,t,r,n){if(e.type==="number")return String(e.value);if(e.type==="string")return e.value?"".concat(BG(kG(String(e.value)))):"";if(e.type==="ReactElement")return d2(e,t,r,n);if(e.type==="ReactFragment")return FG(e,t,r,n);throw new TypeError('Unknow format type "'.concat(e.type,'"'))},jG=function(e,t){return Yc(e,!1,0,t)},f2=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.filterProps,n=r===void 0?[]:r,a=t.showDefaultProps,o=a===void 0?!0:a,i=t.showFunctions,l=i===void 0?!1:i,u=t.functionValue,c=t.tabStop,p=c===void 0?2:c,d=t.useBooleanShorthandSyntax,h=d===void 0?!0:d,f=t.useFragmentShortSyntax,m=f===void 0?!0:f,y=t.sortProps,b=y===void 0?!0:y,g=t.maxInlineAttributesLineLength,v=t.displayName;if(!e)throw new Error("react-element-to-jsx-string: Expected a ReactElement");var D={filterProps:n,showDefaultProps:o,showFunctions:l,functionValue:u,tabStop:p,useBooleanShorthandSyntax:h,useFragmentShortSyntax:m,sortProps:b,maxInlineAttributesLineLength:g,displayName:v};return jG(Wc(e,D),D)},qG=Object.create,Lb=Object.defineProperty,MG=Object.getOwnPropertyDescriptor,LG=Object.getOwnPropertyNames,$G=Object.getPrototypeOf,UG=Object.prototype.hasOwnProperty,q=(e,t)=>Lb(e,"name",{value:t,configurable:!0}),VG=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),HG=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of LG(t))!UG.call(e,a)&&a!==r&&Lb(e,a,{get:()=>t[a],enumerable:!(n=MG(t,a))||n.enumerable});return e},JG=(e,t,r)=>(r=e!=null?qG($G(e)):{},HG(Lb(r,"default",{value:e,enumerable:!0}),e)),zG=VG((e,t)=>{(function(r,n){typeof e=="object"&&typeof t<"u"?n(e):typeof define=="function"&&define.amd?define(["exports"],n):(r=typeof globalThis<"u"?globalThis:r||self,n(r.jtpp={}))})(e,function(r){function n(x){return x.text!==void 0&&x.text!==""?`'${x.type}' with value '${x.text}'`:`'${x.type}'`}q(n,"tokenToString");let a=class h2 extends Error{constructor(I){super(`No parslet found for token: ${n(I)}`),this.token=I,Object.setPrototypeOf(this,h2.prototype)}getToken(){return this.token}};q(a,"NoParsletFoundError");let o=a,i=class m2 extends Error{constructor(I){super(`The parsing ended early. The next token was: ${n(I)}`),this.token=I,Object.setPrototypeOf(this,m2.prototype)}getToken(){return this.token}};q(i,"EarlyEndOfParseError");let l=i,u=class y2 extends Error{constructor(I,G){let ne=`Unexpected type: '${I.type}'.`;G!==void 0&&(ne+=` Message: ${G}`),super(ne),Object.setPrototypeOf(this,y2.prototype)}};q(u,"UnexpectedTypeError");let c=u;function p(x){return I=>I.startsWith(x)?{type:x,text:x}:null}q(p,"makePunctuationRule");function d(x){let I=0,G,ne=x[0],de=!1;if(ne!=="'"&&ne!=='"')return null;for(;I<x.length;){if(I++,G=x[I],!de&&G===ne){I++;break}de=!de&&G==="\\"}if(G!==ne)throw new Error("Unterminated String");return x.slice(0,I)}q(d,"getQuoted");let h=new RegExp("[$_\\p{ID_Start}]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u"),f=new RegExp("[$\\-\\p{ID_Continue}\\u200C\\u200D]|\\\\u\\p{Hex_Digit}{4}|\\\\u\\{0*(?:\\p{Hex_Digit}{1,5}|10\\p{Hex_Digit}{4})\\}","u");function m(x){let I=x[0];if(!h.test(I))return null;let G=1;do{if(I=x[G],!f.test(I))break;G++}while(G<x.length);return x.slice(0,G)}q(m,"getIdentifier");let y=/^(NaN|-?((\d*\.\d+|\d+)([Ee][+-]?\d+)?|Infinity))/;function b(x){var I,G;return(G=(I=y.exec(x))===null||I===void 0?void 0:I[0])!==null&&G!==void 0?G:null}q(b,"getNumber");let g=q(x=>{let I=m(x);return I==null?null:{type:"Identifier",text:I}},"identifierRule");function v(x){return I=>{if(!I.startsWith(x))return null;let G=I[x.length];return G!==void 0&&f.test(G)?null:{type:x,text:x}}}q(v,"makeKeyWordRule");let D=q(x=>{let I=d(x);return I==null?null:{type:"StringValue",text:I}},"stringValueRule"),S=q(x=>x.length>0?null:{type:"EOF",text:""},"eofRule"),P=q(x=>{let I=b(x);return I===null?null:{type:"Number",text:I}},"numberRule"),w=[S,p("=>"),p("("),p(")"),p("{"),p("}"),p("["),p("]"),p("|"),p("&"),p("<"),p(">"),p(","),p(";"),p("*"),p("?"),p("!"),p("="),p(":"),p("..."),p("."),p("#"),p("~"),p("/"),p("@"),v("undefined"),v("null"),v("function"),v("this"),v("new"),v("module"),v("event"),v("external"),v("typeof"),v("keyof"),v("readonly"),v("import"),v("is"),v("in"),v("asserts"),P,g,D],E=/^\s*\n\s*/,C=class sl{static create(I){let G=this.read(I);I=G.text;let ne=this.read(I);return I=ne.text,new sl(I,void 0,G.token,ne.token)}constructor(I,G,ne,de){this.text="",this.text=I,this.previous=G,this.current=ne,this.next=de}static read(I,G=!1){G=G||E.test(I),I=I.trim();for(let ne of w){let de=ne(I);if(de!==null){let we=Object.assign(Object.assign({},de),{startOfLine:G});return I=I.slice(we.text.length),{text:I,token:we}}}throw new Error("Unexpected Token "+I)}advance(){let I=sl.read(this.text);return new sl(I.text,this.current,this.next,I.token)}};q(C,"Lexer");let _=C;function k(x){if(x===void 0)throw new Error("Unexpected undefined");if(x.type==="JsdocTypeKeyValue"||x.type==="JsdocTypeParameterList"||x.type==="JsdocTypeProperty"||x.type==="JsdocTypeReadonlyProperty"||x.type==="JsdocTypeObjectField"||x.type==="JsdocTypeJsdocObjectField"||x.type==="JsdocTypeIndexSignature"||x.type==="JsdocTypeMappedType")throw new c(x);return x}q(k,"assertRootResult");function B(x){return x.type==="JsdocTypeKeyValue"?z(x):k(x)}q(B,"assertPlainKeyValueOrRootResult");function W(x){return x.type==="JsdocTypeName"?x:z(x)}q(W,"assertPlainKeyValueOrNameResult");function z(x){if(x.type!=="JsdocTypeKeyValue")throw new c(x);return x}q(z,"assertPlainKeyValueResult");function R(x){var I;if(x.type==="JsdocTypeVariadic"){if(((I=x.element)===null||I===void 0?void 0:I.type)==="JsdocTypeName")return x;throw new c(x)}if(x.type!=="JsdocTypeNumber"&&x.type!=="JsdocTypeName")throw new c(x);return x}q(R,"assertNumberOrVariadicNameResult");function U(x){return x.type==="JsdocTypeIndexSignature"||x.type==="JsdocTypeMappedType"}q(U,"isSquaredProperty");var j;(function(x){x[x.ALL=0]="ALL",x[x.PARAMETER_LIST=1]="PARAMETER_LIST",x[x.OBJECT=2]="OBJECT",x[x.KEY_VALUE=3]="KEY_VALUE",x[x.INDEX_BRACKETS=4]="INDEX_BRACKETS",x[x.UNION=5]="UNION",x[x.INTERSECTION=6]="INTERSECTION",x[x.PREFIX=7]="PREFIX",x[x.INFIX=8]="INFIX",x[x.TUPLE=9]="TUPLE",x[x.SYMBOL=10]="SYMBOL",x[x.OPTIONAL=11]="OPTIONAL",x[x.NULLABLE=12]="NULLABLE",x[x.KEY_OF_TYPE_OF=13]="KEY_OF_TYPE_OF",x[x.FUNCTION=14]="FUNCTION",x[x.ARROW=15]="ARROW",x[x.ARRAY_BRACKETS=16]="ARRAY_BRACKETS",x[x.GENERIC=17]="GENERIC",x[x.NAME_PATH=18]="NAME_PATH",x[x.PARENTHESIS=19]="PARENTHESIS",x[x.SPECIAL_TYPES=20]="SPECIAL_TYPES"})(j||(j={}));let Y=class{constructor(I,G,ne){this.grammar=I,typeof G=="string"?this._lexer=_.create(G):this._lexer=G,this.baseParser=ne}get lexer(){return this._lexer}parse(){let I=this.parseType(j.ALL);if(this.lexer.current.type!=="EOF")throw new l(this.lexer.current);return I}parseType(I){return k(this.parseIntermediateType(I))}parseIntermediateType(I){let G=this.tryParslets(null,I);if(G===null)throw new o(this.lexer.current);return this.parseInfixIntermediateType(G,I)}parseInfixIntermediateType(I,G){let ne=this.tryParslets(I,G);for(;ne!==null;)I=ne,ne=this.tryParslets(I,G);return I}tryParslets(I,G){for(let ne of this.grammar){let de=ne(this,G,I);if(de!==null)return de}return null}consume(I){return Array.isArray(I)||(I=[I]),I.includes(this.lexer.current.type)?(this._lexer=this.lexer.advance(),!0):!1}acceptLexerState(I){this._lexer=I.lexer}};q(Y,"Parser");let Q=Y;function ae(x){return x==="EOF"||x==="|"||x===","||x===")"||x===">"}q(ae,"isQuestionMarkUnknownType");let le=q((x,I,G)=>{let ne=x.lexer.current.type,de=x.lexer.next.type;return G==null&&ne==="?"&&!ae(de)||G!=null&&ne==="?"?(x.consume("?"),G==null?{type:"JsdocTypeNullable",element:x.parseType(j.NULLABLE),meta:{position:"prefix"}}:{type:"JsdocTypeNullable",element:k(G),meta:{position:"suffix"}}):null},"nullableParslet");function M(x){let I=q((G,ne,de)=>{let we=G.lexer.current.type,Ie=G.lexer.next.type;if(de===null){if("parsePrefix"in x&&x.accept(we,Ie))return x.parsePrefix(G)}else if("parseInfix"in x&&x.precedence>ne&&x.accept(we,Ie))return x.parseInfix(G,de);return null},"parslet");return Object.defineProperty(I,"name",{value:x.name}),I}q(M,"composeParslet");let L=M({name:"optionalParslet",accept:q(x=>x==="=","accept"),precedence:j.OPTIONAL,parsePrefix:q(x=>(x.consume("="),{type:"JsdocTypeOptional",element:x.parseType(j.OPTIONAL),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:q((x,I)=>(x.consume("="),{type:"JsdocTypeOptional",element:k(I),meta:{position:"suffix"}}),"parseInfix")}),K=M({name:"numberParslet",accept:q(x=>x==="Number","accept"),parsePrefix:q(x=>{let I=parseFloat(x.lexer.current.text);return x.consume("Number"),{type:"JsdocTypeNumber",value:I}},"parsePrefix")}),X=M({name:"parenthesisParslet",accept:q(x=>x==="(","accept"),parsePrefix:q(x=>{if(x.consume("("),x.consume(")"))return{type:"JsdocTypeParameterList",elements:[]};let I=x.parseIntermediateType(j.ALL);if(!x.consume(")"))throw new Error("Unterminated parenthesis");return I.type==="JsdocTypeParameterList"?I:I.type==="JsdocTypeKeyValue"?{type:"JsdocTypeParameterList",elements:[I]}:{type:"JsdocTypeParenthesis",element:k(I)}},"parsePrefix")}),ie=M({name:"specialTypesParslet",accept:q((x,I)=>x==="?"&&ae(I)||x==="null"||x==="undefined"||x==="*","accept"),parsePrefix:q(x=>{if(x.consume("null"))return{type:"JsdocTypeNull"};if(x.consume("undefined"))return{type:"JsdocTypeUndefined"};if(x.consume("*"))return{type:"JsdocTypeAny"};if(x.consume("?"))return{type:"JsdocTypeUnknown"};throw new Error("Unacceptable token: "+x.lexer.current.text)},"parsePrefix")}),te=M({name:"notNullableParslet",accept:q(x=>x==="!","accept"),precedence:j.NULLABLE,parsePrefix:q(x=>(x.consume("!"),{type:"JsdocTypeNotNullable",element:x.parseType(j.NULLABLE),meta:{position:"prefix"}}),"parsePrefix"),parseInfix:q((x,I)=>(x.consume("!"),{type:"JsdocTypeNotNullable",element:k(I),meta:{position:"suffix"}}),"parseInfix")});function ue({allowTrailingComma:x}){return M({name:"parameterListParslet",accept:q(I=>I===",","accept"),precedence:j.PARAMETER_LIST,parseInfix:q((I,G)=>{let ne=[B(G)];I.consume(",");do try{let de=I.parseIntermediateType(j.PARAMETER_LIST);ne.push(B(de))}catch(de){if(x&&de instanceof o)break;throw de}while(I.consume(","));if(ne.length>0&&ne.slice(0,-1).some(de=>de.type==="JsdocTypeVariadic"))throw new Error("Only the last parameter may be a rest parameter");return{type:"JsdocTypeParameterList",elements:ne}},"parseInfix")})}q(ue,"createParameterListParslet");let ve=M({name:"genericParslet",accept:q((x,I)=>x==="<"||x==="."&&I==="<","accept"),precedence:j.GENERIC,parseInfix:q((x,I)=>{let G=x.consume(".");x.consume("<");let ne=[];do ne.push(x.parseType(j.PARAMETER_LIST));while(x.consume(","));if(!x.consume(">"))throw new Error("Unterminated generic parameter list");return{type:"JsdocTypeGeneric",left:k(I),elements:ne,meta:{brackets:"angle",dot:G}}},"parseInfix")}),je=M({name:"unionParslet",accept:q(x=>x==="|","accept"),precedence:j.UNION,parseInfix:q((x,I)=>{x.consume("|");let G=[];do G.push(x.parseType(j.UNION));while(x.consume("|"));return{type:"JsdocTypeUnion",elements:[k(I),...G]}},"parseInfix")}),st=[le,L,K,X,ie,te,ue({allowTrailingComma:!0}),ve,je,L];function Z({allowSquareBracketsOnAnyType:x,allowJsdocNamePaths:I,pathGrammar:G}){return q(function(ne,de,we){if(we==null||de>=j.NAME_PATH)return null;let Ie=ne.lexer.current.type,pt=ne.lexer.next.type;if(!(Ie==="."&&pt!=="<"||Ie==="["&&(x||we.type==="JsdocTypeName")||I&&(Ie==="~"||Ie==="#")))return null;let yt,qt=!1;ne.consume(".")?yt="property":ne.consume("[")?(yt="property-brackets",qt=!0):ne.consume("~")?yt="inner":(ne.consume("#"),yt="instance");let tn=G!==null?new Q(G,ne.lexer,ne):ne,Ar=tn.parseIntermediateType(j.NAME_PATH);ne.acceptLexerState(tn);let Wo;switch(Ar.type){case"JsdocTypeName":Wo={type:"JsdocTypeProperty",value:Ar.value,meta:{quote:void 0}};break;case"JsdocTypeNumber":Wo={type:"JsdocTypeProperty",value:Ar.value.toString(10),meta:{quote:void 0}};break;case"JsdocTypeStringValue":Wo={type:"JsdocTypeProperty",value:Ar.value,meta:{quote:Ar.meta.quote}};break;case"JsdocTypeSpecialNamePath":if(Ar.specialType==="event")Wo=Ar;else throw new c(Ar,"Type 'JsdocTypeSpecialNamePath' is only allowed with specialType 'event'");break;default:throw new c(Ar,"Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'")}if(qt&&!ne.consume("]")){let iv=ne.lexer.current;throw new Error(`Unterminated square brackets. Next token is '${iv.type}' with text '${iv.text}'`)}return{type:"JsdocTypeNamePath",left:k(we),right:Wo,pathType:yt}},"namePathParslet")}q(Z,"createNamePathParslet");function pe({allowedAdditionalTokens:x}){return M({name:"nameParslet",accept:q(I=>I==="Identifier"||I==="this"||I==="new"||x.includes(I),"accept"),parsePrefix:q(I=>{let{type:G,text:ne}=I.lexer.current;return I.consume(G),{type:"JsdocTypeName",value:ne}},"parsePrefix")})}q(pe,"createNameParslet");let ye=M({name:"stringValueParslet",accept:q(x=>x==="StringValue","accept"),parsePrefix:q(x=>{let I=x.lexer.current.text;return x.consume("StringValue"),{type:"JsdocTypeStringValue",value:I.slice(1,-1),meta:{quote:I[0]==="'"?"single":"double"}}},"parsePrefix")});function ge({pathGrammar:x,allowedTypes:I}){return M({name:"specialNamePathParslet",accept:q(G=>I.includes(G),"accept"),parsePrefix:q(G=>{let ne=G.lexer.current.type;if(G.consume(ne),!G.consume(":"))return{type:"JsdocTypeName",value:ne};let de,we=G.lexer.current;if(G.consume("StringValue"))de={type:"JsdocTypeSpecialNamePath",value:we.text.slice(1,-1),specialType:ne,meta:{quote:we.text[0]==="'"?"single":"double"}};else{let yt="",qt=["Identifier","@","/"];for(;qt.some(tn=>G.consume(tn));)yt+=we.text,we=G.lexer.current;de={type:"JsdocTypeSpecialNamePath",value:yt,specialType:ne,meta:{quote:void 0}}}let Ie=new Q(x,G.lexer,G),pt=Ie.parseInfixIntermediateType(de,j.ALL);return G.acceptLexerState(Ie),k(pt)},"parsePrefix")})}q(ge,"createSpecialNamePathParslet");let Ce=[pe({allowedAdditionalTokens:["external","module"]}),ye,K,Z({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:null})],Se=[...Ce,ge({allowedTypes:["event"],pathGrammar:Ce})];function _e(x){let I;if(x.type==="JsdocTypeParameterList")I=x.elements;else if(x.type==="JsdocTypeParenthesis")I=[x.element];else throw new c(x);return I.map(G=>B(G))}q(_e,"getParameters");function Ge(x){let I=_e(x);if(I.some(G=>G.type==="JsdocTypeKeyValue"))throw new Error("No parameter should be named");return I}q(Ge,"getUnnamedParameters");function lt({allowNamedParameters:x,allowNoReturnType:I,allowWithoutParenthesis:G,allowNewAsFunctionKeyword:ne}){return M({name:"functionParslet",accept:q((de,we)=>de==="function"||ne&&de==="new"&&we==="(","accept"),parsePrefix:q(de=>{let we=de.consume("new");de.consume("function");let Ie=de.lexer.current.type==="(";if(!Ie){if(!G)throw new Error("function is missing parameter list");return{type:"JsdocTypeName",value:"function"}}let pt={type:"JsdocTypeFunction",parameters:[],arrow:!1,constructor:we,parenthesis:Ie},yt=de.parseIntermediateType(j.FUNCTION);if(x===void 0)pt.parameters=Ge(yt);else{if(we&&yt.type==="JsdocTypeFunction"&&yt.arrow)return pt=yt,pt.constructor=!0,pt;pt.parameters=_e(yt);for(let qt of pt.parameters)if(qt.type==="JsdocTypeKeyValue"&&!x.includes(qt.key))throw new Error(`only allowed named parameters are ${x.join(", ")} but got ${qt.type}`)}if(de.consume(":"))pt.returnType=de.parseType(j.PREFIX);else if(!I)throw new Error("function is missing return type");return pt},"parsePrefix")})}q(lt,"createFunctionParslet");function Dt({allowPostfix:x,allowEnclosingBrackets:I}){return M({name:"variadicParslet",accept:q(G=>G==="...","accept"),precedence:j.PREFIX,parsePrefix:q(G=>{G.consume("...");let ne=I&&G.consume("[");try{let de=G.parseType(j.PREFIX);if(ne&&!G.consume("]"))throw new Error("Unterminated variadic type. Missing ']'");return{type:"JsdocTypeVariadic",element:k(de),meta:{position:"prefix",squareBrackets:ne}}}catch(de){if(de instanceof o){if(ne)throw new Error("Empty square brackets for variadic are not allowed.");return{type:"JsdocTypeVariadic",meta:{position:void 0,squareBrackets:!1}}}else throw de}},"parsePrefix"),parseInfix:x?(G,ne)=>(G.consume("..."),{type:"JsdocTypeVariadic",element:k(ne),meta:{position:"suffix",squareBrackets:!1}}):void 0})}q(Dt,"createVariadicParslet");let Gt=M({name:"symbolParslet",accept:q(x=>x==="(","accept"),precedence:j.SYMBOL,parseInfix:q((x,I)=>{if(I.type!=="JsdocTypeName")throw new Error("Symbol expects a name on the left side. (Reacting on '(')");x.consume("(");let G={type:"JsdocTypeSymbol",value:I.value};if(!x.consume(")")){let ne=x.parseIntermediateType(j.SYMBOL);if(G.element=R(ne),!x.consume(")"))throw new Error("Symbol does not end after value")}return G},"parseInfix")}),_t=M({name:"arrayBracketsParslet",precedence:j.ARRAY_BRACKETS,accept:q((x,I)=>x==="["&&I==="]","accept"),parseInfix:q((x,I)=>(x.consume("["),x.consume("]"),{type:"JsdocTypeGeneric",left:{type:"JsdocTypeName",value:"Array"},elements:[k(I)],meta:{brackets:"square",dot:!1}}),"parseInfix")});function Vt({objectFieldGrammar:x,allowKeyTypes:I}){return M({name:"objectParslet",accept:q(G=>G==="{","accept"),parsePrefix:q(G=>{G.consume("{");let ne={type:"JsdocTypeObject",meta:{separator:"comma"},elements:[]};if(!G.consume("}")){let de,we=new Q(x,G.lexer,G);for(;;){we.acceptLexerState(G);let Ie=we.parseIntermediateType(j.OBJECT);G.acceptLexerState(we),Ie===void 0&&I&&(Ie=G.parseIntermediateType(j.OBJECT));let pt=!1;if(Ie.type==="JsdocTypeNullable"&&(pt=!0,Ie=Ie.element),Ie.type==="JsdocTypeNumber"||Ie.type==="JsdocTypeName"||Ie.type==="JsdocTypeStringValue"){let yt;Ie.type==="JsdocTypeStringValue"&&(yt=Ie.meta.quote),ne.elements.push({type:"JsdocTypeObjectField",key:Ie.value.toString(),right:void 0,optional:pt,readonly:!1,meta:{quote:yt}})}else if(Ie.type==="JsdocTypeObjectField"||Ie.type==="JsdocTypeJsdocObjectField")ne.elements.push(Ie);else throw new c(Ie);if(G.lexer.current.startOfLine)de="linebreak";else if(G.consume(","))de="comma";else if(G.consume(";"))de="semicolon";else break;if(G.lexer.current.type==="}")break}if(ne.meta.separator=de??"comma",!G.consume("}"))throw new Error("Unterminated record type. Missing '}'")}return ne},"parsePrefix")})}q(Vt,"createObjectParslet");function kt({allowSquaredProperties:x,allowKeyTypes:I,allowReadonly:G,allowOptional:ne}){return M({name:"objectFieldParslet",precedence:j.KEY_VALUE,accept:q(de=>de===":","accept"),parseInfix:q((de,we)=>{var Ie;let pt=!1,yt=!1;ne&&we.type==="JsdocTypeNullable"&&(pt=!0,we=we.element),G&&we.type==="JsdocTypeReadonlyProperty"&&(yt=!0,we=we.element);let qt=(Ie=de.baseParser)!==null&&Ie!==void 0?Ie:de;if(qt.acceptLexerState(de),we.type==="JsdocTypeNumber"||we.type==="JsdocTypeName"||we.type==="JsdocTypeStringValue"||U(we)){if(U(we)&&!x)throw new c(we);qt.consume(":");let tn;we.type==="JsdocTypeStringValue"&&(tn=we.meta.quote);let Ar=qt.parseType(j.KEY_VALUE);return de.acceptLexerState(qt),{type:"JsdocTypeObjectField",key:U(we)?we:we.value.toString(),right:Ar,optional:pt,readonly:yt,meta:{quote:tn}}}else{if(!I)throw new c(we);qt.consume(":");let tn=qt.parseType(j.KEY_VALUE);return de.acceptLexerState(qt),{type:"JsdocTypeJsdocObjectField",left:k(we),right:tn}}},"parseInfix")})}q(kt,"createObjectFieldParslet");function Pe({allowOptional:x,allowVariadic:I}){return M({name:"keyValueParslet",precedence:j.KEY_VALUE,accept:q(G=>G===":","accept"),parseInfix:q((G,ne)=>{let de=!1,we=!1;if(x&&ne.type==="JsdocTypeNullable"&&(de=!0,ne=ne.element),I&&ne.type==="JsdocTypeVariadic"&&ne.element!==void 0&&(we=!0,ne=ne.element),ne.type!=="JsdocTypeName")throw new c(ne);G.consume(":");let Ie=G.parseType(j.KEY_VALUE);return{type:"JsdocTypeKeyValue",key:ne.value,right:Ie,optional:de,variadic:we}},"parseInfix")})}q(Pe,"createKeyValueParslet");let ut=[...st,lt({allowWithoutParenthesis:!0,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),ye,ge({allowedTypes:["module","external","event"],pathGrammar:Se}),Dt({allowEnclosingBrackets:!0,allowPostfix:!0}),pe({allowedAdditionalTokens:["keyof"]}),Gt,_t,Z({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Se})],Ae=[...ut,Vt({objectFieldGrammar:[pe({allowedAdditionalTokens:["module","in"]}),kt({allowSquaredProperties:!1,allowKeyTypes:!0,allowOptional:!1,allowReadonly:!1}),...ut],allowKeyTypes:!0}),Pe({allowOptional:!0,allowVariadic:!0})],ct=M({name:"typeOfParslet",accept:q(x=>x==="typeof","accept"),parsePrefix:q(x=>(x.consume("typeof"),{type:"JsdocTypeTypeof",element:k(x.parseType(j.KEY_OF_TYPE_OF))}),"parsePrefix")}),Qe=[pe({allowedAdditionalTokens:["module","keyof","event","external","in"]}),le,L,ye,K,kt({allowSquaredProperties:!1,allowKeyTypes:!1,allowOptional:!1,allowReadonly:!1})],Zn=[...st,Vt({allowKeyTypes:!1,objectFieldGrammar:Qe}),pe({allowedAdditionalTokens:["event","external","in"]}),ct,lt({allowWithoutParenthesis:!1,allowNamedParameters:["this","new"],allowNoReturnType:!0,allowNewAsFunctionKeyword:!1}),Dt({allowEnclosingBrackets:!1,allowPostfix:!1}),pe({allowedAdditionalTokens:["keyof"]}),ge({allowedTypes:["module"],pathGrammar:Se}),Z({allowSquareBracketsOnAnyType:!1,allowJsdocNamePaths:!0,pathGrammar:Se}),Pe({allowOptional:!1,allowVariadic:!1}),Gt],ea=M({name:"assertsParslet",accept:q(x=>x==="asserts","accept"),parsePrefix:q(x=>{x.consume("asserts");let I=x.parseIntermediateType(j.SYMBOL);if(I.type!=="JsdocTypeName")throw new c(I,"A typescript asserts always has to have a name on the left side.");return x.consume("is"),{type:"JsdocTypeAsserts",left:I,right:k(x.parseIntermediateType(j.INFIX))}},"parsePrefix")});function Bt({allowQuestionMark:x}){return M({name:"tupleParslet",accept:q(I=>I==="[","accept"),parsePrefix:q(I=>{I.consume("[");let G={type:"JsdocTypeTuple",elements:[]};if(I.consume("]"))return G;let ne=I.parseIntermediateType(j.ALL);if(ne.type==="JsdocTypeParameterList"?ne.elements[0].type==="JsdocTypeKeyValue"?G.elements=ne.elements.map(z):G.elements=ne.elements.map(k):ne.type==="JsdocTypeKeyValue"?G.elements=[z(ne)]:G.elements=[k(ne)],!I.consume("]"))throw new Error("Unterminated '['");if(!x&&G.elements.some(de=>de.type==="JsdocTypeUnknown"))throw new Error("Question mark in tuple not allowed");return G},"parsePrefix")})}q(Bt,"createTupleParslet");let An=M({name:"keyOfParslet",accept:q(x=>x==="keyof","accept"),parsePrefix:q(x=>(x.consume("keyof"),{type:"JsdocTypeKeyof",element:k(x.parseType(j.KEY_OF_TYPE_OF))}),"parsePrefix")}),pr=M({name:"importParslet",accept:q(x=>x==="import","accept"),parsePrefix:q(x=>{if(x.consume("import"),!x.consume("("))throw new Error("Missing parenthesis after import keyword");let I=x.parseType(j.PREFIX);if(I.type!=="JsdocTypeStringValue")throw new Error("Only string values are allowed as paths for imports");if(!x.consume(")"))throw new Error("Missing closing parenthesis after import keyword");return{type:"JsdocTypeImport",element:I}},"parsePrefix")}),tt=M({name:"readonlyPropertyParslet",accept:q(x=>x==="readonly","accept"),parsePrefix:q(x=>(x.consume("readonly"),{type:"JsdocTypeReadonlyProperty",element:x.parseType(j.KEY_VALUE)}),"parsePrefix")}),Sn=M({name:"arrowFunctionParslet",precedence:j.ARROW,accept:q(x=>x==="=>","accept"),parseInfix:q((x,I)=>(x.consume("=>"),{type:"JsdocTypeFunction",parameters:_e(I).map(W),arrow:!0,constructor:!1,parenthesis:!0,returnType:x.parseType(j.OBJECT)}),"parseInfix")}),ta=M({name:"intersectionParslet",accept:q(x=>x==="&","accept"),precedence:j.INTERSECTION,parseInfix:q((x,I)=>{x.consume("&");let G=[];do G.push(x.parseType(j.INTERSECTION));while(x.consume("&"));return{type:"JsdocTypeIntersection",elements:[k(I),...G]}},"parseInfix")}),Ze=M({name:"predicateParslet",precedence:j.INFIX,accept:q(x=>x==="is","accept"),parseInfix:q((x,I)=>{if(I.type!=="JsdocTypeName")throw new c(I,"A typescript predicate always has to have a name on the left side.");return x.consume("is"),{type:"JsdocTypePredicate",left:I,right:k(x.parseIntermediateType(j.INFIX))}},"parseInfix")}),wt=M({name:"objectSquareBracketPropertyParslet",accept:q(x=>x==="[","accept"),parsePrefix:q(x=>{if(x.baseParser===void 0)throw new Error("Only allowed inside object grammar");x.consume("[");let I=x.lexer.current.text;x.consume("Identifier");let G;if(x.consume(":")){let ne=x.baseParser;ne.acceptLexerState(x),G={type:"JsdocTypeIndexSignature",key:I,right:ne.parseType(j.INDEX_BRACKETS)},x.acceptLexerState(ne)}else if(x.consume("in")){let ne=x.baseParser;ne.acceptLexerState(x),G={type:"JsdocTypeMappedType",key:I,right:ne.parseType(j.ARRAY_BRACKETS)},x.acceptLexerState(ne)}else throw new Error("Missing ':' or 'in' inside square bracketed property.");if(!x.consume("]"))throw new Error("Unterminated square brackets");return G},"parsePrefix")}),xr=[tt,pe({allowedAdditionalTokens:["module","event","keyof","event","external","in"]}),le,L,ye,K,kt({allowSquaredProperties:!0,allowKeyTypes:!1,allowOptional:!0,allowReadonly:!0}),wt],Nr=[...st,Vt({allowKeyTypes:!1,objectFieldGrammar:xr}),ct,An,pr,ye,lt({allowWithoutParenthesis:!0,allowNoReturnType:!1,allowNamedParameters:["this","new","args"],allowNewAsFunctionKeyword:!0}),Bt({allowQuestionMark:!1}),Dt({allowEnclosingBrackets:!1,allowPostfix:!1}),ea,pe({allowedAdditionalTokens:["event","external","in"]}),ge({allowedTypes:["module"],pathGrammar:Se}),_t,Sn,Z({allowSquareBracketsOnAnyType:!0,allowJsdocNamePaths:!1,pathGrammar:Se}),ta,Ze,Pe({allowVariadic:!0,allowOptional:!0})];function kr(x,I){switch(I){case"closure":return new Q(Zn,x).parse();case"jsdoc":return new Q(Ae,x).parse();case"typescript":return new Q(Nr,x).parse()}}q(kr,"parse");function _n(x,I=["typescript","closure","jsdoc"]){let G;for(let ne of I)try{return kr(x,ne)}catch(de){G=de}throw G}q(_n,"tryParse");function dr(x,I){let G=x[I.type];if(G===void 0)throw new Error(`In this set of transform rules exists no rule for type ${I.type}.`);return G(I,ne=>dr(x,ne))}q(dr,"transform");function A(x){throw new Error("This transform is not available. Are you trying the correct parsing mode?")}q(A,"notAvailableTransform");function N(x){let I={params:[]};for(let G of x.parameters)G.type==="JsdocTypeKeyValue"?G.key==="this"?I.this=G.right:G.key==="new"?I.new=G.right:I.params.push(G):I.params.push(G);return I}q(N,"extractSpecialParams");function F(x,I,G){return x==="prefix"?G+I:I+G}q(F,"applyPosition");function T(x,I){switch(I){case"double":return`"${x}"`;case"single":return`'${x}'`;case void 0:return x}}q(T,"quote");function V(){return{JsdocTypeParenthesis:q((x,I)=>`(${x.element!==void 0?I(x.element):""})`,"JsdocTypeParenthesis"),JsdocTypeKeyof:q((x,I)=>`keyof ${I(x.element)}`,"JsdocTypeKeyof"),JsdocTypeFunction:q((x,I)=>{if(x.arrow){if(x.returnType===void 0)throw new Error("Arrow function needs a return type.");let G=`(${x.parameters.map(I).join(", ")}) => ${I(x.returnType)}`;return x.constructor&&(G="new "+G),G}else{let G=x.constructor?"new":"function";return x.parenthesis&&(G+=`(${x.parameters.map(I).join(", ")})`,x.returnType!==void 0&&(G+=`: ${I(x.returnType)}`)),G}},"JsdocTypeFunction"),JsdocTypeName:q(x=>x.value,"JsdocTypeName"),JsdocTypeTuple:q((x,I)=>`[${x.elements.map(I).join(", ")}]`,"JsdocTypeTuple"),JsdocTypeVariadic:q((x,I)=>x.meta.position===void 0?"...":F(x.meta.position,I(x.element),"..."),"JsdocTypeVariadic"),JsdocTypeNamePath:q((x,I)=>{let G=I(x.left),ne=I(x.right);switch(x.pathType){case"inner":return`${G}~${ne}`;case"instance":return`${G}#${ne}`;case"property":return`${G}.${ne}`;case"property-brackets":return`${G}[${ne}]`}},"JsdocTypeNamePath"),JsdocTypeStringValue:q(x=>T(x.value,x.meta.quote),"JsdocTypeStringValue"),JsdocTypeAny:q(()=>"*","JsdocTypeAny"),JsdocTypeGeneric:q((x,I)=>{if(x.meta.brackets==="square"){let G=x.elements[0],ne=I(G);return G.type==="JsdocTypeUnion"||G.type==="JsdocTypeIntersection"?`(${ne})[]`:`${ne}[]`}else return`${I(x.left)}${x.meta.dot?".":""}<${x.elements.map(I).join(", ")}>`},"JsdocTypeGeneric"),JsdocTypeImport:q((x,I)=>`import(${I(x.element)})`,"JsdocTypeImport"),JsdocTypeObjectField:q((x,I)=>{let G="";return x.readonly&&(G+="readonly "),typeof x.key=="string"?G+=T(x.key,x.meta.quote):G+=I(x.key),x.optional&&(G+="?"),x.right===void 0?G:G+`: ${I(x.right)}`},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:q((x,I)=>`${I(x.left)}: ${I(x.right)}`,"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:q((x,I)=>{let G=x.key;return x.optional&&(G+="?"),x.variadic&&(G="..."+G),x.right===void 0?G:G+`: ${I(x.right)}`},"JsdocTypeKeyValue"),JsdocTypeSpecialNamePath:q(x=>`${x.specialType}:${T(x.value,x.meta.quote)}`,"JsdocTypeSpecialNamePath"),JsdocTypeNotNullable:q((x,I)=>F(x.meta.position,I(x.element),"!"),"JsdocTypeNotNullable"),JsdocTypeNull:q(()=>"null","JsdocTypeNull"),JsdocTypeNullable:q((x,I)=>F(x.meta.position,I(x.element),"?"),"JsdocTypeNullable"),JsdocTypeNumber:q(x=>x.value.toString(),"JsdocTypeNumber"),JsdocTypeObject:q((x,I)=>`{${x.elements.map(I).join((x.meta.separator==="comma"?",":";")+" ")}}`,"JsdocTypeObject"),JsdocTypeOptional:q((x,I)=>F(x.meta.position,I(x.element),"="),"JsdocTypeOptional"),JsdocTypeSymbol:q((x,I)=>`${x.value}(${x.element!==void 0?I(x.element):""})`,"JsdocTypeSymbol"),JsdocTypeTypeof:q((x,I)=>`typeof ${I(x.element)}`,"JsdocTypeTypeof"),JsdocTypeUndefined:q(()=>"undefined","JsdocTypeUndefined"),JsdocTypeUnion:q((x,I)=>x.elements.map(I).join(" | "),"JsdocTypeUnion"),JsdocTypeUnknown:q(()=>"?","JsdocTypeUnknown"),JsdocTypeIntersection:q((x,I)=>x.elements.map(I).join(" & "),"JsdocTypeIntersection"),JsdocTypeProperty:q(x=>T(x.value,x.meta.quote),"JsdocTypeProperty"),JsdocTypePredicate:q((x,I)=>`${I(x.left)} is ${I(x.right)}`,"JsdocTypePredicate"),JsdocTypeIndexSignature:q((x,I)=>`[${x.key}: ${I(x.right)}]`,"JsdocTypeIndexSignature"),JsdocTypeMappedType:q((x,I)=>`[${x.key} in ${I(x.right)}]`,"JsdocTypeMappedType"),JsdocTypeAsserts:q((x,I)=>`asserts ${I(x.left)} is ${I(x.right)}`,"JsdocTypeAsserts")}}q(V,"stringifyRules");let oe=V();function se(x){return dr(oe,x)}q(se,"stringify");let ce=["null","true","false","break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield"];function me(x){let I={type:"NameExpression",name:x};return ce.includes(x)&&(I.reservedWord=!0),I}q(me,"makeName");let qe={JsdocTypeOptional:q((x,I)=>{let G=I(x.element);return G.optional=!0,G},"JsdocTypeOptional"),JsdocTypeNullable:q((x,I)=>{let G=I(x.element);return G.nullable=!0,G},"JsdocTypeNullable"),JsdocTypeNotNullable:q((x,I)=>{let G=I(x.element);return G.nullable=!1,G},"JsdocTypeNotNullable"),JsdocTypeVariadic:q((x,I)=>{if(x.element===void 0)throw new Error("dots without value are not allowed in catharsis mode");let G=I(x.element);return G.repeatable=!0,G},"JsdocTypeVariadic"),JsdocTypeAny:q(()=>({type:"AllLiteral"}),"JsdocTypeAny"),JsdocTypeNull:q(()=>({type:"NullLiteral"}),"JsdocTypeNull"),JsdocTypeStringValue:q(x=>me(T(x.value,x.meta.quote)),"JsdocTypeStringValue"),JsdocTypeUndefined:q(()=>({type:"UndefinedLiteral"}),"JsdocTypeUndefined"),JsdocTypeUnknown:q(()=>({type:"UnknownLiteral"}),"JsdocTypeUnknown"),JsdocTypeFunction:q((x,I)=>{let G=N(x),ne={type:"FunctionType",params:G.params.map(I)};return G.this!==void 0&&(ne.this=I(G.this)),G.new!==void 0&&(ne.new=I(G.new)),x.returnType!==void 0&&(ne.result=I(x.returnType)),ne},"JsdocTypeFunction"),JsdocTypeGeneric:q((x,I)=>({type:"TypeApplication",applications:x.elements.map(G=>I(G)),expression:I(x.left)}),"JsdocTypeGeneric"),JsdocTypeSpecialNamePath:q(x=>me(x.specialType+":"+T(x.value,x.meta.quote)),"JsdocTypeSpecialNamePath"),JsdocTypeName:q(x=>x.value!=="function"?me(x.value):{type:"FunctionType",params:[]},"JsdocTypeName"),JsdocTypeNumber:q(x=>me(x.value.toString()),"JsdocTypeNumber"),JsdocTypeObject:q((x,I)=>{let G={type:"RecordType",fields:[]};for(let ne of x.elements)ne.type!=="JsdocTypeObjectField"&&ne.type!=="JsdocTypeJsdocObjectField"?G.fields.push({type:"FieldType",key:I(ne),value:void 0}):G.fields.push(I(ne));return G},"JsdocTypeObject"),JsdocTypeObjectField:q((x,I)=>{if(typeof x.key!="string")throw new Error("Index signatures and mapped types are not supported");return{type:"FieldType",key:me(T(x.key,x.meta.quote)),value:x.right===void 0?void 0:I(x.right)}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:q((x,I)=>({type:"FieldType",key:I(x.left),value:I(x.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeUnion:q((x,I)=>({type:"TypeUnion",elements:x.elements.map(G=>I(G))}),"JsdocTypeUnion"),JsdocTypeKeyValue:q((x,I)=>({type:"FieldType",key:me(x.key),value:x.right===void 0?void 0:I(x.right)}),"JsdocTypeKeyValue"),JsdocTypeNamePath:q((x,I)=>{let G=I(x.left),ne;x.right.type==="JsdocTypeSpecialNamePath"?ne=I(x.right).name:ne=T(x.right.value,x.right.meta.quote);let de=x.pathType==="inner"?"~":x.pathType==="instance"?"#":".";return me(`${G.name}${de}${ne}`)},"JsdocTypeNamePath"),JsdocTypeSymbol:q(x=>{let I="",G=x.element,ne=!1;return G?.type==="JsdocTypeVariadic"&&(G.meta.position==="prefix"?I="...":ne=!0,G=G.element),G?.type==="JsdocTypeName"?I+=G.value:G?.type==="JsdocTypeNumber"&&(I+=G.value.toString()),ne&&(I+="..."),me(`${x.value}(${I})`)},"JsdocTypeSymbol"),JsdocTypeParenthesis:q((x,I)=>I(k(x.element)),"JsdocTypeParenthesis"),JsdocTypeMappedType:A,JsdocTypeIndexSignature:A,JsdocTypeImport:A,JsdocTypeKeyof:A,JsdocTypeTuple:A,JsdocTypeTypeof:A,JsdocTypeIntersection:A,JsdocTypeProperty:A,JsdocTypePredicate:A,JsdocTypeAsserts:A};function mt(x){return dr(qe,x)}q(mt,"catharsisTransform");function jt(x){switch(x){case void 0:return"none";case"single":return"single";case"double":return"double"}}q(jt,"getQuoteStyle");function en(x){switch(x){case"inner":return"INNER_MEMBER";case"instance":return"INSTANCE_MEMBER";case"property":return"MEMBER";case"property-brackets":return"MEMBER"}}q(en,"getMemberType");function ra(x,I){return I.length===2?{type:x,left:I[0],right:I[1]}:{type:x,left:I[0],right:ra(x,I.slice(1))}}q(ra,"nestResults");let Ps={JsdocTypeOptional:q((x,I)=>({type:"OPTIONAL",value:I(x.element),meta:{syntax:x.meta.position==="prefix"?"PREFIX_EQUAL_SIGN":"SUFFIX_EQUALS_SIGN"}}),"JsdocTypeOptional"),JsdocTypeNullable:q((x,I)=>({type:"NULLABLE",value:I(x.element),meta:{syntax:x.meta.position==="prefix"?"PREFIX_QUESTION_MARK":"SUFFIX_QUESTION_MARK"}}),"JsdocTypeNullable"),JsdocTypeNotNullable:q((x,I)=>({type:"NOT_NULLABLE",value:I(x.element),meta:{syntax:x.meta.position==="prefix"?"PREFIX_BANG":"SUFFIX_BANG"}}),"JsdocTypeNotNullable"),JsdocTypeVariadic:q((x,I)=>{let G={type:"VARIADIC",meta:{syntax:x.meta.position==="prefix"?"PREFIX_DOTS":x.meta.position==="suffix"?"SUFFIX_DOTS":"ONLY_DOTS"}};return x.element!==void 0&&(G.value=I(x.element)),G},"JsdocTypeVariadic"),JsdocTypeName:q(x=>({type:"NAME",name:x.value}),"JsdocTypeName"),JsdocTypeTypeof:q((x,I)=>({type:"TYPE_QUERY",name:I(x.element)}),"JsdocTypeTypeof"),JsdocTypeTuple:q((x,I)=>({type:"TUPLE",entries:x.elements.map(I)}),"JsdocTypeTuple"),JsdocTypeKeyof:q((x,I)=>({type:"KEY_QUERY",value:I(x.element)}),"JsdocTypeKeyof"),JsdocTypeImport:q(x=>({type:"IMPORT",path:{type:"STRING_VALUE",quoteStyle:jt(x.element.meta.quote),string:x.element.value}}),"JsdocTypeImport"),JsdocTypeUndefined:q(()=>({type:"NAME",name:"undefined"}),"JsdocTypeUndefined"),JsdocTypeAny:q(()=>({type:"ANY"}),"JsdocTypeAny"),JsdocTypeFunction:q((x,I)=>{let G=N(x),ne={type:x.arrow?"ARROW":"FUNCTION",params:G.params.map(de=>{if(de.type==="JsdocTypeKeyValue"){if(de.right===void 0)throw new Error("Function parameter without ':' is not expected to be 'KEY_VALUE'");return{type:"NAMED_PARAMETER",name:de.key,typeName:I(de.right)}}else return I(de)}),new:null,returns:null};return G.this!==void 0?ne.this=I(G.this):x.arrow||(ne.this=null),G.new!==void 0&&(ne.new=I(G.new)),x.returnType!==void 0&&(ne.returns=I(x.returnType)),ne},"JsdocTypeFunction"),JsdocTypeGeneric:q((x,I)=>{let G={type:"GENERIC",subject:I(x.left),objects:x.elements.map(I),meta:{syntax:x.meta.brackets==="square"?"SQUARE_BRACKET":x.meta.dot?"ANGLE_BRACKET_WITH_DOT":"ANGLE_BRACKET"}};return x.meta.brackets==="square"&&x.elements[0].type==="JsdocTypeFunction"&&!x.elements[0].parenthesis&&(G.objects[0]={type:"NAME",name:"function"}),G},"JsdocTypeGeneric"),JsdocTypeObjectField:q((x,I)=>{if(typeof x.key!="string")throw new Error("Index signatures and mapped types are not supported");if(x.right===void 0)return{type:"RECORD_ENTRY",key:x.key,quoteStyle:jt(x.meta.quote),value:null,readonly:!1};let G=I(x.right);return x.optional&&(G={type:"OPTIONAL",value:G,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:x.key.toString(),quoteStyle:jt(x.meta.quote),value:G,readonly:!1}},"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:q(()=>{throw new Error("Keys may not be typed in jsdoctypeparser.")},"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:q((x,I)=>{if(x.right===void 0)return{type:"RECORD_ENTRY",key:x.key,quoteStyle:"none",value:null,readonly:!1};let G=I(x.right);return x.optional&&(G={type:"OPTIONAL",value:G,meta:{syntax:"SUFFIX_KEY_QUESTION_MARK"}}),{type:"RECORD_ENTRY",key:x.key,quoteStyle:"none",value:G,readonly:!1}},"JsdocTypeKeyValue"),JsdocTypeObject:q((x,I)=>{let G=[];for(let ne of x.elements)(ne.type==="JsdocTypeObjectField"||ne.type==="JsdocTypeJsdocObjectField")&&G.push(I(ne));return{type:"RECORD",entries:G}},"JsdocTypeObject"),JsdocTypeSpecialNamePath:q(x=>{if(x.specialType!=="module")throw new Error(`jsdoctypeparser does not support type ${x.specialType} at this point.`);return{type:"MODULE",value:{type:"FILE_PATH",quoteStyle:jt(x.meta.quote),path:x.value}}},"JsdocTypeSpecialNamePath"),JsdocTypeNamePath:q((x,I)=>{let G=!1,ne,de;x.right.type==="JsdocTypeSpecialNamePath"&&x.right.specialType==="event"?(G=!0,ne=x.right.value,de=jt(x.right.meta.quote)):(ne=x.right.value,de=jt(x.right.meta.quote));let we={type:en(x.pathType),owner:I(x.left),name:ne,quoteStyle:de,hasEventPrefix:G};if(we.owner.type==="MODULE"){let Ie=we.owner;return we.owner=we.owner.value,Ie.value=we,Ie}else return we},"JsdocTypeNamePath"),JsdocTypeUnion:q((x,I)=>ra("UNION",x.elements.map(I)),"JsdocTypeUnion"),JsdocTypeParenthesis:q((x,I)=>({type:"PARENTHESIS",value:I(k(x.element))}),"JsdocTypeParenthesis"),JsdocTypeNull:q(()=>({type:"NAME",name:"null"}),"JsdocTypeNull"),JsdocTypeUnknown:q(()=>({type:"UNKNOWN"}),"JsdocTypeUnknown"),JsdocTypeStringValue:q(x=>({type:"STRING_VALUE",quoteStyle:jt(x.meta.quote),string:x.value}),"JsdocTypeStringValue"),JsdocTypeIntersection:q((x,I)=>ra("INTERSECTION",x.elements.map(I)),"JsdocTypeIntersection"),JsdocTypeNumber:q(x=>({type:"NUMBER_VALUE",number:x.value.toString()}),"JsdocTypeNumber"),JsdocTypeSymbol:A,JsdocTypeProperty:A,JsdocTypePredicate:A,JsdocTypeMappedType:A,JsdocTypeIndexSignature:A,JsdocTypeAsserts:A};function Qt(x){return dr(Ps,x)}q(Qt,"jtpTransform");function nv(){return{JsdocTypeIntersection:q((x,I)=>({type:"JsdocTypeIntersection",elements:x.elements.map(I)}),"JsdocTypeIntersection"),JsdocTypeGeneric:q((x,I)=>({type:"JsdocTypeGeneric",left:I(x.left),elements:x.elements.map(I),meta:{dot:x.meta.dot,brackets:x.meta.brackets}}),"JsdocTypeGeneric"),JsdocTypeNullable:q(x=>x,"JsdocTypeNullable"),JsdocTypeUnion:q((x,I)=>({type:"JsdocTypeUnion",elements:x.elements.map(I)}),"JsdocTypeUnion"),JsdocTypeUnknown:q(x=>x,"JsdocTypeUnknown"),JsdocTypeUndefined:q(x=>x,"JsdocTypeUndefined"),JsdocTypeTypeof:q((x,I)=>({type:"JsdocTypeTypeof",element:I(x.element)}),"JsdocTypeTypeof"),JsdocTypeSymbol:q((x,I)=>{let G={type:"JsdocTypeSymbol",value:x.value};return x.element!==void 0&&(G.element=I(x.element)),G},"JsdocTypeSymbol"),JsdocTypeOptional:q((x,I)=>({type:"JsdocTypeOptional",element:I(x.element),meta:{position:x.meta.position}}),"JsdocTypeOptional"),JsdocTypeObject:q((x,I)=>({type:"JsdocTypeObject",meta:{separator:"comma"},elements:x.elements.map(I)}),"JsdocTypeObject"),JsdocTypeNumber:q(x=>x,"JsdocTypeNumber"),JsdocTypeNull:q(x=>x,"JsdocTypeNull"),JsdocTypeNotNullable:q((x,I)=>({type:"JsdocTypeNotNullable",element:I(x.element),meta:{position:x.meta.position}}),"JsdocTypeNotNullable"),JsdocTypeSpecialNamePath:q(x=>x,"JsdocTypeSpecialNamePath"),JsdocTypeObjectField:q((x,I)=>({type:"JsdocTypeObjectField",key:x.key,right:x.right===void 0?void 0:I(x.right),optional:x.optional,readonly:x.readonly,meta:x.meta}),"JsdocTypeObjectField"),JsdocTypeJsdocObjectField:q((x,I)=>({type:"JsdocTypeJsdocObjectField",left:I(x.left),right:I(x.right)}),"JsdocTypeJsdocObjectField"),JsdocTypeKeyValue:q((x,I)=>({type:"JsdocTypeKeyValue",key:x.key,right:x.right===void 0?void 0:I(x.right),optional:x.optional,variadic:x.variadic}),"JsdocTypeKeyValue"),JsdocTypeImport:q((x,I)=>({type:"JsdocTypeImport",element:I(x.element)}),"JsdocTypeImport"),JsdocTypeAny:q(x=>x,"JsdocTypeAny"),JsdocTypeStringValue:q(x=>x,"JsdocTypeStringValue"),JsdocTypeNamePath:q(x=>x,"JsdocTypeNamePath"),JsdocTypeVariadic:q((x,I)=>{let G={type:"JsdocTypeVariadic",meta:{position:x.meta.position,squareBrackets:x.meta.squareBrackets}};return x.element!==void 0&&(G.element=I(x.element)),G},"JsdocTypeVariadic"),JsdocTypeTuple:q((x,I)=>({type:"JsdocTypeTuple",elements:x.elements.map(I)}),"JsdocTypeTuple"),JsdocTypeName:q(x=>x,"JsdocTypeName"),JsdocTypeFunction:q((x,I)=>{let G={type:"JsdocTypeFunction",arrow:x.arrow,parameters:x.parameters.map(I),constructor:x.constructor,parenthesis:x.parenthesis};return x.returnType!==void 0&&(G.returnType=I(x.returnType)),G},"JsdocTypeFunction"),JsdocTypeKeyof:q((x,I)=>({type:"JsdocTypeKeyof",element:I(x.element)}),"JsdocTypeKeyof"),JsdocTypeParenthesis:q((x,I)=>({type:"JsdocTypeParenthesis",element:I(x.element)}),"JsdocTypeParenthesis"),JsdocTypeProperty:q(x=>x,"JsdocTypeProperty"),JsdocTypePredicate:q((x,I)=>({type:"JsdocTypePredicate",left:I(x.left),right:I(x.right)}),"JsdocTypePredicate"),JsdocTypeIndexSignature:q((x,I)=>({type:"JsdocTypeIndexSignature",key:x.key,right:I(x.right)}),"JsdocTypeIndexSignature"),JsdocTypeMappedType:q((x,I)=>({type:"JsdocTypeMappedType",key:x.key,right:I(x.right)}),"JsdocTypeMappedType"),JsdocTypeAsserts:q((x,I)=>({type:"JsdocTypeAsserts",left:I(x.left),right:I(x.right)}),"JsdocTypeAsserts")}}q(nv,"identityTransformRules");let av={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"]};function Ds(x,I,G,ne,de){ne?.(x,I,G);let we=av[x.type];for(let Ie of we){let pt=x[Ie];if(pt!==void 0)if(Array.isArray(pt))for(let yt of pt)Ds(yt,x,Ie,ne,de);else Ds(pt,x,Ie,ne,de)}de?.(x,I,G)}q(Ds,"_traverse");function ov(x,I,G){Ds(x,void 0,void 0,I,G)}q(ov,"traverse"),r.catharsisTransform=mt,r.identityTransformRules=nv,r.jtpTransform=Qt,r.parse=kr,r.stringify=se,r.stringifyRules=V,r.transform=dr,r.traverse=ov,r.tryParse=_n,r.visitorKeys=av})});const{UnknownArgTypesError:GG}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var WG=q(e=>e.name==="literal","isLiteral"),YG=q(e=>e.value.replace(/['|"]/g,""),"toEnumOption"),KG=q(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=_i(r.value)}),{name:"object",value:t};default:throw new GG({type:e,language:"Flow"})}},"convertSig"),_i=q(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"literal":return{...n,name:"other",value:e.value};case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(_i)};case"signature":return{...n,...KG(e)};case"union":return e.elements?.every(WG)?{...n,name:"enum",value:e.elements?.map(YG)}:{...n,name:t,value:e.elements?.map(_i)};case"intersection":return{...n,name:t,value:e.elements?.map(_i)};default:return{...n,name:"other",value:t}}},"convert");function ll(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}q(ll,"isPlainObject");function g2(e,t){let r={},n=Object.keys(e);for(let a=0;a<n.length;a++){let o=n[a],i=e[o];r[o]=t(i,o,e)}return r}q(g2,"mapValues");var b2=/^['"]|['"]$/g,XG=q(e=>e.replace(b2,""),"trimQuotes"),QG=q(e=>b2.test(e),"includesQuotes"),v2=q(e=>{let t=XG(e);return QG(e)||Number.isNaN(Number(t))?t:Number(t)},"parseLiteral"),ZG=/^\(.*\) => /,di=q(e=>{let{name:t,raw:r,computed:n,value:a}=e,o={};switch(typeof r<"u"&&(o.raw=r),t){case"enum":{let l=n?a:a.map(u=>v2(u.value));return{...o,name:t,value:l}}case"string":case"number":case"symbol":return{...o,name:t};case"func":return{...o,name:"function"};case"bool":case"boolean":return{...o,name:"boolean"};case"arrayOf":case"array":return{...o,name:"array",value:a&&di(a)};case"object":return{...o,name:t};case"objectOf":return{...o,name:t,value:di(a)};case"shape":case"exact":let i=g2(a,l=>di(l));return{...o,name:"object",value:i};case"union":return{...o,name:"union",value:a.map(l=>di(l))};case"instanceOf":case"element":case"elementType":default:{if(t?.indexOf("|")>0)try{let c=t.split("|").map(p=>JSON.parse(p));return{...o,name:"enum",value:c}}catch{}let l=a?`${t}(${a})`:t,u=ZG.test(t)?"function":"other";return{...o,name:u,value:l}}}},"convert");const{UnknownArgTypesError:eW}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;var tW=q(e=>{switch(e.type){case"function":return{name:"function"};case"object":let t={};return e.signature.properties.forEach(r=>{t[r.key]=Ti(r.value)}),{name:"object",value:t};default:throw new eW({type:e,language:"Typescript"})}},"convertSig"),Ti=q(e=>{let{name:t,raw:r}=e,n={};switch(typeof r<"u"&&(n.raw=r),e.name){case"string":case"number":case"symbol":case"boolean":return{...n,name:t};case"Array":return{...n,name:"array",value:e.elements.map(Ti)};case"signature":return{...n,...tW(e)};case"union":let a;return e.elements?.every(o=>o.name==="literal")?a={...n,name:"enum",value:e.elements?.map(o=>v2(o.value))}:a={...n,name:t,value:e.elements?.map(Ti)},a;case"intersection":return{...n,name:t,value:e.elements?.map(Ti)};default:return{...n,name:"other",value:t}}},"convert"),$b=q(e=>{let{type:t,tsType:r,flowType:n}=e;try{if(t!=null)return di(t);if(r!=null)return Ti(r);if(n!=null)return _i(n)}catch(a){console.error(a)}return null},"convert"),Zf=(e=>(e.JAVASCRIPT="JavaScript",e.FLOW="Flow",e.TYPESCRIPT="TypeScript",e.UNKNOWN="Unknown",e))(Zf||{}),rW=["null","undefined"];function Kc(e){return rW.some(t=>t===e)}q(Kc,"isDefaultValueBlacklisted");var nW=q(e=>{if(!e)return"";if(typeof e=="string")return e;throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`)},"str");function Xc(e){return!!e.__docgenInfo}q(Xc,"hasDocgen");function E2(e){return e!=null&&Object.keys(e).length>0}q(E2,"isValidDocgenSection");function su(e,t){return Xc(e)?e.__docgenInfo[t]:null}q(su,"getDocgenSection");function C2(e){return Xc(e)?nW(e.__docgenInfo.description):""}q(C2,"getDocgenDescription");var $n;(function(e){e.start="/**",e.nostart="/***",e.delim="*",e.end="*/"})($n=$n||($n={}));function w2(e){return/^\s+$/.test(e)}q(w2,"isSpace");function x2(e){let t=e.match(/\r+$/);return t==null?["",e]:[e.slice(-t[0].length),e.slice(0,-t[0].length)]}q(x2,"splitCR");function ba(e){let t=e.match(/^\s+/);return t==null?["",e]:[e.slice(0,t[0].length),e.slice(t[0].length)]}q(ba,"splitSpace");function A2(e){return e.split(/\n/)}q(A2,"splitLines");function S2(e={}){return Object.assign({tag:"",name:"",type:"",optional:!1,description:"",problems:[],source:[]},e)}q(S2,"seedSpec");function _2(e={}){return Object.assign({start:"",delimiter:"",postDelimiter:"",tag:"",postTag:"",name:"",postName:"",type:"",postType:"",description:"",end:"",lineEnd:""},e)}q(_2,"seedTokens");var aW=/^@\S+/;function T2({fence:e="```"}={}){let t=P2(e),r=q((n,a)=>t(n)?!a:a,"toggleFence");return q(function(n){let a=[[]],o=!1;for(let i of n)aW.test(i.tokens.description)&&!o?a.push([i]):a[a.length-1].push(i),o=r(i.tokens.description,o);return a},"parseBlock")}q(T2,"getParser");function P2(e){return typeof e=="string"?t=>t.split(e).length%2===0:e}q(P2,"getFencer");function D2({startLine:e=0,markers:t=$n}={}){let r=null,n=e;return q(function(a){let o=a,i=_2();if([i.lineEnd,o]=x2(o),[i.start,o]=ba(o),r===null&&o.startsWith(t.start)&&!o.startsWith(t.nostart)&&(r=[],i.delimiter=o.slice(0,t.start.length),o=o.slice(t.start.length),[i.postDelimiter,o]=ba(o)),r===null)return n++,null;let l=o.trimRight().endsWith(t.end);if(i.delimiter===""&&o.startsWith(t.delim)&&!o.startsWith(t.end)&&(i.delimiter=t.delim,o=o.slice(t.delim.length),[i.postDelimiter,o]=ba(o)),l){let u=o.trimRight();i.end=o.slice(u.length-t.end.length),o=u.slice(0,-t.end.length)}if(i.description=o,r.push({number:n,source:a,tokens:i}),n++,l){let u=r.slice();return r=null,u}return null},"parseSource")}q(D2,"getParser");function O2({tokenizers:e}){return q(function(t){var r;let n=S2({source:t});for(let a of e)if(n=a(n),!((r=n.problems[n.problems.length-1])===null||r===void 0)&&r.critical)break;return n},"parseSpec")}q(O2,"getParser");function R2(){return e=>{let{tokens:t}=e.source[0],r=t.description.match(/\s*(@(\S+))(\s*)/);return r===null?(e.problems.push({code:"spec:tag:prefix",message:'tag should start with "@" symbol',line:e.source[0].number,critical:!0}),e):(t.tag=r[1],t.postTag=r[3],t.description=t.description.slice(r[0].length),e.tag=r[2],e)}}q(R2,"tagTokenizer");function F2(e="compact"){let t=I2(e);return r=>{let n=0,a=[];for(let[l,{tokens:u}]of r.source.entries()){let c="";if(l===0&&u.description[0]!=="{")return r;for(let p of u.description)if(p==="{"&&n++,p==="}"&&n--,c+=p,n===0)break;if(a.push([u,c]),n===0)break}if(n!==0)return r.problems.push({code:"spec:type:unpaired-curlies",message:"unpaired curlies",line:r.source[0].number,critical:!0}),r;let o=[],i=a[0][0].postDelimiter.length;for(let[l,[u,c]]of a.entries())u.type=c,l>0&&(u.type=u.postDelimiter.slice(i)+c,u.postDelimiter=u.postDelimiter.slice(0,i)),[u.postType,u.description]=ba(u.description.slice(c.length)),o.push(u.type);return o[0]=o[0].slice(1),o[o.length-1]=o[o.length-1].slice(0,-1),r.type=t(o),r}}q(F2,"typeTokenizer");var oW=q(e=>e.trim(),"trim");function I2(e){return e==="compact"?t=>t.map(oW).join(""):e==="preserve"?t=>t.join(`
|
|
1035
|
+
`):e}q(I2,"getJoiner");var iW=q(e=>e&&e.startsWith('"')&&e.endsWith('"'),"isQuoted");function N2(){let e=q((t,{tokens:r},n)=>r.type===""?t:n,"typeEnd");return t=>{let{tokens:r}=t.source[t.source.reduce(e,0)],n=r.description.trimLeft(),a=n.split('"');if(a.length>1&&a[0]===""&&a.length%2===1)return t.name=a[1],r.name=`"${a[1]}"`,[r.postName,r.description]=ba(n.slice(r.name.length)),t;let o=0,i="",l=!1,u;for(let p of n){if(o===0&&w2(p))break;p==="["&&o++,p==="]"&&o--,i+=p}if(o!==0)return t.problems.push({code:"spec:name:unpaired-brackets",message:"unpaired brackets",line:t.source[0].number,critical:!0}),t;let c=i;if(i[0]==="["&&i[i.length-1]==="]"){l=!0,i=i.slice(1,-1);let p=i.split("=");if(i=p[0].trim(),p[1]!==void 0&&(u=p.slice(1).join("=").trim()),i==="")return t.problems.push({code:"spec:name:empty-name",message:"empty name",line:t.source[0].number,critical:!0}),t;if(u==="")return t.problems.push({code:"spec:name:empty-default",message:"empty default value",line:t.source[0].number,critical:!0}),t;if(!iW(u)&&/=(?!>)/.test(u))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=l,t.name=i,r.name=c,u!==void 0&&(t.default=u),[r.postName,r.description]=ba(n.slice(r.name.length)),t}}q(N2,"nameTokenizer");function k2(e="compact",t=$n){let r=Ub(e);return n=>(n.description=r(n.source,t),n)}q(k2,"descriptionTokenizer");function Ub(e){return e==="compact"?B2:e==="preserve"?j2:e}q(Ub,"getJoiner");function B2(e,t=$n){return e.map(({tokens:{description:r}})=>r.trim()).filter(r=>r!=="").join(" ")}q(B2,"compactJoiner");var sW=q((e,{tokens:t},r)=>t.type===""?e:r,"lineNo"),lW=q(({tokens:e})=>(e.delimiter===""?e.start:e.postDelimiter.slice(1))+e.description,"getDescription");function j2(e,t=$n){if(e.length===0)return"";e[0].tokens.description===""&&e[0].tokens.delimiter===t.start&&(e=e.slice(1));let r=e[e.length-1];return r!==void 0&&r.tokens.description===""&&r.tokens.end.endsWith(t.end)&&(e=e.slice(0,-1)),e=e.slice(e.reduce(sW,0)),e.map(lW).join(`
|
|
1036
|
+
`)}q(j2,"preserveJoiner");function q2({startLine:e=0,fence:t="```",spacing:r="compact",markers:n=$n,tokenizers:a=[R2(),F2(r),N2(),k2(r)]}={}){if(e<0||e%1>0)throw new Error("Invalid startLine");let o=D2({startLine:e,markers:n}),i=T2({fence:t}),l=O2({tokenizers:a}),u=Ub(r);return function(c){let p=[];for(let d of A2(c)){let h=o(d);if(h===null)continue;let f=i(h),m=f.slice(1).map(l);p.push({description:u(f[0],n),tags:m,source:h,problems:m.reduce((y,b)=>y.concat(b.problems),[])})}return p}}q(q2,"getParser");function M2(e){return e.start+e.delimiter+e.postDelimiter+e.tag+e.postTag+e.type+e.postType+e.name+e.postName+e.description+e.end+e.lineEnd}q(M2,"join");function uW(){return e=>e.source.map(({tokens:t})=>M2(t)).join(`
|
|
1037
|
+
`)}q(uW,"getStringifier");function L2(e,t={}){return q2(t)(e)}q(L2,"parse");var Vb=JG(zG());function $2(e){return e!=null&&e.includes("@")}q($2,"containsJsDoc");function U2(e){let t=`/**
|
|
1038
|
+
`+(e??"").split(`
|
|
1039
|
+
`).map(n=>` * ${n}`).join(`
|
|
1040
|
+
`)+`
|
|
1041
|
+
*/`,r=L2(t,{spacing:"preserve"});if(!r||r.length===0)throw new Error("Cannot parse JSDoc tags.");return r[0]}q(U2,"parse");var cW={tags:["param","arg","argument","returns","ignore","deprecated"]},pW=q((e,t=cW)=>{if(!$2(e))return{includesJsDoc:!1,ignore:!1};let r=U2(e),n=V2(r,t.tags);return n.ignore?{includesJsDoc:!0,ignore:!0}:{includesJsDoc:!0,ignore:!1,description:r.description.trim(),extractedTags:n}},"parseJsDoc");function V2(e,t){let r={params:null,deprecated:null,returns:null,ignore:!1};for(let n of e.tags)if(!(t!==void 0&&!t.includes(n.tag)))if(n.tag==="ignore"){r.ignore=!0;break}else switch(n.tag){case"param":case"arg":case"argument":{let a=J2(n);a!=null&&(r.params==null&&(r.params=[]),r.params.push(a));break}case"deprecated":{let a=z2(n);a!=null&&(r.deprecated=a);break}case"returns":{let a=G2(n);a!=null&&(r.returns=a);break}}return r}q(V2,"extractJsDocTags");function H2(e){return e.replace(/[\.-]$/,"")}q(H2,"normaliseParamName");function J2(e){if(!e.name||e.name==="-")return null;let t=zb(e.type);return{name:e.name,type:t,description:Jb(e.description),getPrettyName:q(()=>H2(e.name),"getPrettyName"),getTypeName:q(()=>t?Gb(t):null,"getTypeName")}}q(J2,"extractParam");function z2(e){return e.name?Hb(e.name,e.description):null}q(z2,"extractDeprecated");function Hb(e,t){let r=e===""?t:`${e} ${t}`;return Jb(r)}q(Hb,"joinNameAndDescription");function Jb(e){let t=e.replace(/^- /g,"").trim();return t===""?null:t}q(Jb,"normaliseDescription");function G2(e){let t=zb(e.type);return t?{type:t,description:Hb(e.name,e.description),getTypeName:q(()=>Gb(t),"getTypeName")}:null}q(G2,"extractReturns");var Qn=(0,Vb.stringifyRules)(),dW=Qn.JsdocTypeObject;Qn.JsdocTypeAny=()=>"any";Qn.JsdocTypeObject=(e,t)=>`(${dW(e,t)})`;Qn.JsdocTypeOptional=(e,t)=>t(e.element);Qn.JsdocTypeNullable=(e,t)=>t(e.element);Qn.JsdocTypeNotNullable=(e,t)=>t(e.element);Qn.JsdocTypeUnion=(e,t)=>e.elements.map(t).join("|");function zb(e){try{return(0,Vb.parse)(e,"typescript")}catch{return null}}q(zb,"extractType");function Gb(e){return(0,Vb.transform)(Qn,e)}q(Gb,"extractTypeName");function Qc(e){return e.length>90}q(Qc,"isTooLongForTypeSummary");function ja(e){return e.length>50}q(ja,"isTooLongForDefaultValueSummary");function Te(e,t){return e===t?{summary:e}:{summary:e,detail:t}}q(Te,"createSummaryValue");function W2(e,t){if(e!=null){let{value:r}=e;if(!Kc(r))return ja(r)?Te(t?.name,r):Te(r)}return null}q(W2,"createDefaultValue");function Wb({name:e,value:t,elements:r,raw:n}){return t??(r!=null?r.map(Wb).join(" | "):n??e)}q(Wb,"generateUnionElement");function Y2({name:e,raw:t,elements:r}){return r!=null?Te(r.map(Wb).join(" | ")):t!=null?Te(t.replace(/^\|\s*/,"")):Te(e)}q(Y2,"generateUnion");function K2({type:e,raw:t}){return t!=null?Te(t):Te(e)}q(K2,"generateFuncSignature");function X2({type:e,raw:t}){return t!=null?Qc(t)?Te(e,t):Te(t):Te(e)}q(X2,"generateObjectSignature");function Q2(e){let{type:t}=e;return t==="object"?X2(e):K2(e)}q(Q2,"generateSignature");function Z2({name:e,raw:t}){return t!=null?Qc(t)?Te(e,t):Te(t):Te(e)}q(Z2,"generateDefault");function eN(e){if(e==null)return null;switch(e.name){case"union":return Y2(e);case"signature":return Q2(e);default:return Z2(e)}}q(eN,"createType");var fW=q((e,t)=>{let{flowType:r,description:n,required:a,defaultValue:o}=t;return{name:e,type:eN(r),required:a,description:n,defaultValue:W2(o??null,r??null)}},"createFlowPropDef");function tN({defaultValue:e}){if(e!=null){let{value:t}=e;if(!Kc(t))return Te(t)}return null}q(tN,"createDefaultValue");function rN({tsType:e,required:t}){if(e==null)return null;let r=e.name;return t||(r=r.replace(" | undefined","")),Te(["Array","Record","signature"].includes(e.name)?e.raw:r)}q(rN,"createType");var hW=q((e,t)=>{let{description:r,required:n}=t;return{name:e,type:rN(t),required:n,description:r,defaultValue:tN(t)}},"createTsPropDef");function nN(e){return e!=null?Te(e.name):null}q(nN,"createType");function aN(e){let{computed:t,func:r}=e;return typeof t>"u"&&typeof r>"u"}q(aN,"isReactDocgenTypescript");function oN(e){return e?e.name==="string"?!0:e.name==="enum"?Array.isArray(e.value)&&e.value.every(({value:t})=>typeof t=="string"&&t[0]==='"'&&t[t.length-1]==='"'):!1:!1}q(oN,"isStringValued");function iN(e,t){if(e!=null){let{value:r}=e;if(!Kc(r))return aN(e)&&oN(t)?Te(JSON.stringify(r)):Te(r)}return null}q(iN,"createDefaultValue");function Yb(e,t,r){let{description:n,required:a,defaultValue:o}=r;return{name:e,type:nN(t),required:a,description:n,defaultValue:iN(o,t)}}q(Yb,"createBasicPropDef");function As(e,t){if(t?.includesJsDoc){let{description:r,extractedTags:n}=t;r!=null&&(e.description=t.description);let a={...n,params:n?.params?.map(o=>({name:o.getPrettyName(),description:o.description}))};Object.values(a).filter(Boolean).length>0&&(e.jsDocTags=a)}return e}q(As,"applyJsDocResult");var mW=q((e,t,r)=>{let n=Yb(e,t.type,t);return n.sbType=$b(t),As(n,r)},"javaScriptFactory"),yW=q((e,t,r)=>{let n=hW(e,t);return n.sbType=$b(t),As(n,r)},"tsFactory"),gW=q((e,t,r)=>{let n=fW(e,t);return n.sbType=$b(t),As(n,r)},"flowFactory"),bW=q((e,t,r)=>{let n=Yb(e,{name:"unknown"},t);return As(n,r)},"unknownFactory"),sN=q(e=>{switch(e){case"JavaScript":return mW;case"TypeScript":return yW;case"Flow":return gW;default:return bW}},"getPropDefFactory"),lN=q(e=>e.type!=null?"JavaScript":e.flowType!=null?"Flow":e.tsType!=null?"TypeScript":"Unknown","getTypeSystem"),vW=q(e=>{let t=lN(e[0]),r=sN(t);return e.map(n=>{let a=n;return n.type?.elements&&(a={...n,type:{...n.type,value:n.type.elements}}),Kb(a.name,a,t,r)})},"extractComponentSectionArray"),EW=q(e=>{let t=Object.keys(e),r=lN(e[t[0]]),n=sN(r);return t.map(a=>{let o=e[a];return o!=null?Kb(a,o,r,n):null}).filter(Boolean)},"extractComponentSectionObject"),CW=q((e,t)=>{let r=su(e,t);return E2(r)?Array.isArray(r)?vW(r):EW(r):[]},"extractComponentProps");function Kb(e,t,r,n){let a=pW(t.description);return a.includesJsDoc&&a.ignore?null:{propDef:n(e,t,a),jsDocTags:a.extractedTags,docgenInfo:t,typeSystem:r}}q(Kb,"extractProp");function uN(e){return e!=null?C2(e):""}q(uN,"extractComponentDescription");var cN=q((...e)=>{let t={},r=e.filter(Boolean),n=r.reduce((a,o)=>(Object.entries(o).forEach(([i,l])=>{let u=a[i];Array.isArray(l)||typeof u>"u"?a[i]=l:ll(l)&&ll(u)?t[i]=!0:typeof l<"u"&&(a[i]=l)}),a),{});return Object.keys(t).forEach(a=>{let o=r.filter(Boolean).map(i=>i[a]).filter(i=>typeof i<"u");o.every(i=>ll(i))?n[a]=cN(...o):n[a]=o[o.length-1]}),n},"combineParameters"),wW=q(e=>{let{component:t,argTypes:r,parameters:{docs:n={}}}=e,{extractArgTypes:a}=n;if(!a||!t)return r;let o=a(t);return o?cN(o,r):r},"enhanceArgTypes"),xW="storybook/docs",cQ=`${xW}/snippet-rendered`,eh=(e=>(e.AUTO="auto",e.CODE="code",e.DYNAMIC="dynamic",e))(eh||{}),AW=be({"../../node_modules/estraverse/estraverse.js"(e){(function t(r){var n,a,o,i,l,u;function c(P){var w={},E,C;for(E in P)P.hasOwnProperty(E)&&(C=P[E],typeof C=="object"&&C!==null?w[E]=c(C):w[E]=C);return w}function p(P,w){var E,C,_,k;for(C=P.length,_=0;C;)E=C>>>1,k=_+E,w(P[k])?C=E:(_=k+1,C-=E+1);return _}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"},o={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"]},i={},l={},u={},a={Break:i,Skip:l,Remove:u};function d(P,w){this.parent=P,this.key=w}d.prototype.replace=function(P){this.parent[this.key]=P},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function h(P,w,E,C){this.node=P,this.path=w,this.wrap=E,this.ref=C}function f(){}f.prototype.path=function(){var P,w,E,C,_,k;function B(W,z){if(Array.isArray(z))for(E=0,C=z.length;E<C;++E)W.push(z[E]);else W.push(z)}if(!this.__current.path)return null;for(_=[],P=2,w=this.__leavelist.length;P<w;++P)k=this.__leavelist[P],B(_,k.path);return B(_,this.__current.path),_},f.prototype.type=function(){var P=this.current();return P.type||this.__current.wrap},f.prototype.parents=function(){var P,w,E;for(E=[],P=1,w=this.__leavelist.length;P<w;++P)E.push(this.__leavelist[P].node);return E},f.prototype.current=function(){return this.__current.node},f.prototype.__execute=function(P,w){var E,C;return C=void 0,E=this.__current,this.__current=w,this.__state=null,P&&(C=P.call(this,w.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=E,C},f.prototype.notify=function(P){this.__state=P},f.prototype.skip=function(){this.notify(l)},f.prototype.break=function(){this.notify(i)},f.prototype.remove=function(){this.notify(u)},f.prototype.__initialize=function(P,w){this.visitor=w,this.root=P,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,w.fallback==="iteration"?this.__fallback=Object.keys:typeof w.fallback=="function"&&(this.__fallback=w.fallback),this.__keys=o,w.keys&&(this.__keys=Object.assign(Object.create(this.__keys),w.keys))};function m(P){return P==null?!1:typeof P=="object"&&typeof P.type=="string"}function y(P,w){return(P===n.ObjectExpression||P===n.ObjectPattern)&&w==="properties"}function b(P,w){for(var E=P.length-1;E>=0;--E)if(P[E].node===w)return!0;return!1}f.prototype.traverse=function(P,w){var E,C,_,k,B,W,z,R,U,j,Y,Q;for(this.__initialize(P,w),Q={},E=this.__worklist,C=this.__leavelist,E.push(new h(P,null,null,null)),C.push(new h(null,null,null,null));E.length;){if(_=E.pop(),_===Q){if(_=C.pop(),W=this.__execute(w.leave,_),this.__state===i||W===i)return;continue}if(_.node){if(W=this.__execute(w.enter,_),this.__state===i||W===i)return;if(E.push(Q),C.push(_),this.__state===l||W===l)continue;if(k=_.node,B=k.type||_.wrap,j=this.__keys[B],!j)if(this.__fallback)j=this.__fallback(k);else throw new Error("Unknown node type "+B+".");for(R=j.length;(R-=1)>=0;)if(z=j[R],Y=k[z],!!Y){if(Array.isArray(Y)){for(U=Y.length;(U-=1)>=0;)if(Y[U]&&!b(C,Y[U])){if(y(B,j[R]))_=new h(Y[U],[z,U],"Property",null);else if(m(Y[U]))_=new h(Y[U],[z,U],null,null);else continue;E.push(_)}}else if(m(Y)){if(b(C,Y))continue;E.push(new h(Y,z,null,null))}}}}},f.prototype.replace=function(P,w){var E,C,_,k,B,W,z,R,U,j,Y,Q,ae;function le(M){var L,K,X,ie;if(M.ref.remove()){for(K=M.ref.key,ie=M.ref.parent,L=E.length;L--;)if(X=E[L],X.ref&&X.ref.parent===ie){if(X.ref.key<K)break;--X.ref.key}}}for(this.__initialize(P,w),Y={},E=this.__worklist,C=this.__leavelist,Q={root:P},W=new h(P,null,null,new d(Q,"root")),E.push(W),C.push(W);E.length;){if(W=E.pop(),W===Y){if(W=C.pop(),B=this.__execute(w.leave,W),B!==void 0&&B!==i&&B!==l&&B!==u&&W.ref.replace(B),(this.__state===u||B===u)&&le(W),this.__state===i||B===i)return Q.root;continue}if(B=this.__execute(w.enter,W),B!==void 0&&B!==i&&B!==l&&B!==u&&(W.ref.replace(B),W.node=B),(this.__state===u||B===u)&&(le(W),W.node=null),this.__state===i||B===i)return Q.root;if(_=W.node,!!_&&(E.push(Y),C.push(W),!(this.__state===l||B===l))){if(k=_.type||W.wrap,U=this.__keys[k],!U)if(this.__fallback)U=this.__fallback(_);else throw new Error("Unknown node type "+k+".");for(z=U.length;(z-=1)>=0;)if(ae=U[z],j=_[ae],!!j)if(Array.isArray(j)){for(R=j.length;(R-=1)>=0;)if(j[R]){if(y(k,U[z]))W=new h(j[R],[ae,R],"Property",new d(j,R));else if(m(j[R]))W=new h(j[R],[ae,R],null,new d(j,R));else continue;E.push(W)}}else m(j)&&E.push(new h(j,ae,null,new d(_,ae)))}}return Q.root};function g(P,w){var E=new f;return E.traverse(P,w)}function v(P,w){var E=new f;return E.replace(P,w)}function D(P,w){var E;return E=p(w,function(C){return C.range[0]>P.range[0]}),P.extendedRange=[P.range[0],P.range[1]],E!==w.length&&(P.extendedRange[1]=w[E].range[0]),E-=1,E>=0&&(P.extendedRange[0]=w[E].range[1]),P}function S(P,w,E){var C=[],_,k,B,W;if(!P.range)throw new Error("attachComments needs range information");if(!E.length){if(w.length){for(B=0,k=w.length;B<k;B+=1)_=c(w[B]),_.extendedRange=[0,P.range[0]],C.push(_);P.leadingComments=C}return P}for(B=0,k=w.length;B<k;B+=1)C.push(D(c(w[B]),E));return W=0,g(P,{enter:function(z){for(var R;W<C.length&&(R=C[W],!(R.extendedRange[1]>z.range[0]));)R.extendedRange[1]===z.range[0]?(z.leadingComments||(z.leadingComments=[]),z.leadingComments.push(R),C.splice(W,1)):W+=1;if(W===C.length)return a.Break;if(C[W].extendedRange[0]>z.range[1])return a.Skip}}),W=0,g(P,{leave:function(z){for(var R;W<C.length&&(R=C[W],!(z.range[1]<R.extendedRange[0]));)z.range[1]===R.extendedRange[0]?(z.trailingComments||(z.trailingComments=[]),z.trailingComments.push(R),C.splice(W,1)):W+=1;if(W===C.length)return a.Break;if(C[W].extendedRange[0]>z.range[1])return a.Skip}}),P}return r.Syntax=n,r.traverse=g,r.replace=v,r.attachComments=S,r.VisitorKeys=o,r.VisitorOption=a,r.Controller=f,r.cloneEnvironment=function(){return t({})},r})(e)}}),SW=be({"../../node_modules/esutils/lib/ast.js"(e,t){(function(){function r(u){if(u==null)return!1;switch(u.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(u){if(u==null)return!1;switch(u.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function a(u){if(u==null)return!1;switch(u.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 o(u){return a(u)||u!=null&&u.type==="FunctionDeclaration"}function i(u){switch(u.type){case"IfStatement":return u.alternate!=null?u.alternate:u.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return u.body}return null}function l(u){var c;if(u.type!=="IfStatement"||u.alternate==null)return!1;c=u.consequent;do{if(c.type==="IfStatement"&&c.alternate==null)return!0;c=i(c)}while(c);return!1}t.exports={isExpression:r,isStatement:a,isIterationStatement:n,isSourceElement:o,isProblematicIfStatement:l,trailingStatement:i}})()}}),pN=be({"../../node_modules/esutils/lib/code.js"(e,t){(function(){var r,n,a,o,i,l;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={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 u(v){return 48<=v&&v<=57}function c(v){return 48<=v&&v<=57||97<=v&&v<=102||65<=v&&v<=70}function p(v){return v>=48&&v<=55}a=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function d(v){return v===32||v===9||v===11||v===12||v===160||v>=5760&&a.indexOf(v)>=0}function h(v){return v===10||v===13||v===8232||v===8233}function f(v){if(v<=65535)return String.fromCharCode(v);var D=String.fromCharCode(Math.floor((v-65536)/1024)+55296),S=String.fromCharCode((v-65536)%1024+56320);return D+S}for(o=new Array(128),l=0;l<128;++l)o[l]=l>=97&&l<=122||l>=65&&l<=90||l===36||l===95;for(i=new Array(128),l=0;l<128;++l)i[l]=l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57||l===36||l===95;function m(v){return v<128?o[v]:n.NonAsciiIdentifierStart.test(f(v))}function y(v){return v<128?i[v]:n.NonAsciiIdentifierPart.test(f(v))}function b(v){return v<128?o[v]:r.NonAsciiIdentifierStart.test(f(v))}function g(v){return v<128?i[v]:r.NonAsciiIdentifierPart.test(f(v))}t.exports={isDecimalDigit:u,isHexDigit:c,isOctalDigit:p,isWhiteSpace:d,isLineTerminator:h,isIdentifierStartES5:m,isIdentifierPartES5:y,isIdentifierStartES6:b,isIdentifierPartES6:g}})()}}),_W=be({"../../node_modules/esutils/lib/keyword.js"(e,t){(function(){var r=pN();function n(m){switch(m){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function a(m,y){return!y&&m==="yield"?!1:o(m,y)}function o(m,y){if(y&&n(m))return!0;switch(m.length){case 2:return m==="if"||m==="in"||m==="do";case 3:return m==="var"||m==="for"||m==="new"||m==="try";case 4:return m==="this"||m==="else"||m==="case"||m==="void"||m==="with"||m==="enum";case 5:return m==="while"||m==="break"||m==="catch"||m==="throw"||m==="const"||m==="yield"||m==="class"||m==="super";case 6:return m==="return"||m==="typeof"||m==="delete"||m==="switch"||m==="export"||m==="import";case 7:return m==="default"||m==="finally"||m==="extends";case 8:return m==="function"||m==="continue"||m==="debugger";case 10:return m==="instanceof";default:return!1}}function i(m,y){return m==="null"||m==="true"||m==="false"||a(m,y)}function l(m,y){return m==="null"||m==="true"||m==="false"||o(m,y)}function u(m){return m==="eval"||m==="arguments"}function c(m){var y,b,g;if(m.length===0||(g=m.charCodeAt(0),!r.isIdentifierStartES5(g)))return!1;for(y=1,b=m.length;y<b;++y)if(g=m.charCodeAt(y),!r.isIdentifierPartES5(g))return!1;return!0}function p(m,y){return(m-55296)*1024+(y-56320)+65536}function d(m){var y,b,g,v,D;if(m.length===0)return!1;for(D=r.isIdentifierStartES6,y=0,b=m.length;y<b;++y){if(g=m.charCodeAt(y),55296<=g&&g<=56319){if(++y,y>=b||(v=m.charCodeAt(y),!(56320<=v&&v<=57343)))return!1;g=p(g,v)}if(!D(g))return!1;D=r.isIdentifierPartES6}return!0}function h(m,y){return c(m)&&!i(m,y)}function f(m,y){return d(m)&&!l(m,y)}t.exports={isKeywordES5:a,isKeywordES6:o,isReservedWordES5:i,isReservedWordES6:l,isRestrictedWord:u,isIdentifierNameES5:c,isIdentifierNameES6:d,isIdentifierES5:h,isIdentifierES6:f}})()}}),TW=be({"../../node_modules/esutils/lib/utils.js"(e){(function(){e.ast=SW(),e.code=pN(),e.keyword=_W()})()}}),PW=be({"../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(r){if(0<=r&&r<t.length)return t[r];throw new TypeError("Must be between 0 and 63: "+r)},e.decode=function(r){var n=65,a=90,o=97,i=122,l=48,u=57,c=43,p=47,d=26,h=52;return n<=r&&r<=a?r-n:o<=r&&r<=i?r-o+d:l<=r&&r<=u?r-l+h:r==c?62:r==p?63:-1}}}),dN=be({"../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(e){var t=PW(),r=5,n=1<<r,a=n-1,o=n;function i(u){return u<0?(-u<<1)+1:(u<<1)+0}function l(u){var c=(u&1)===1,p=u>>1;return c?-p:p}e.encode=function(u){var c="",p,d=i(u);do p=d&a,d>>>=r,d>0&&(p|=o),c+=t.encode(p);while(d>0);return c},e.decode=function(u,c,p){var d=u.length,h=0,f=0,m,y;do{if(c>=d)throw new Error("Expected more digits in base 64 VLQ value.");if(y=t.decode(u.charCodeAt(c++)),y===-1)throw new Error("Invalid base64 digit: "+u.charAt(c-1));m=!!(y&o),y&=a,h=h+(y<<f),f+=r}while(m);p.value=l(h),p.rest=c}}}),Ss=be({"../../node_modules/escodegen/node_modules/source-map/lib/util.js"(e){function t(S,P,w){if(P in S)return S[P];if(arguments.length===3)return w;throw new Error('"'+P+'" is a required argument.')}e.getArg=t;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,n=/^data:.+\,.+$/;function a(S){var P=S.match(r);return P?{scheme:P[1],auth:P[2],host:P[3],port:P[4],path:P[5]}:null}e.urlParse=a;function o(S){var P="";return S.scheme&&(P+=S.scheme+":"),P+="//",S.auth&&(P+=S.auth+"@"),S.host&&(P+=S.host),S.port&&(P+=":"+S.port),S.path&&(P+=S.path),P}e.urlGenerate=o;function i(S){var P=S,w=a(S);if(w){if(!w.path)return S;P=w.path}for(var E=e.isAbsolute(P),C=P.split(/\/+/),_,k=0,B=C.length-1;B>=0;B--)_=C[B],_==="."?C.splice(B,1):_===".."?k++:k>0&&(_===""?(C.splice(B+1,k),k=0):(C.splice(B,2),k--));return P=C.join("/"),P===""&&(P=E?"/":"."),w?(w.path=P,o(w)):P}e.normalize=i;function l(S,P){S===""&&(S="."),P===""&&(P=".");var w=a(P),E=a(S);if(E&&(S=E.path||"/"),w&&!w.scheme)return E&&(w.scheme=E.scheme),o(w);if(w||P.match(n))return P;if(E&&!E.host&&!E.path)return E.host=P,o(E);var C=P.charAt(0)==="/"?P:i(S.replace(/\/+$/,"")+"/"+P);return E?(E.path=C,o(E)):C}e.join=l,e.isAbsolute=function(S){return S.charAt(0)==="/"||r.test(S)};function u(S,P){S===""&&(S="."),S=S.replace(/\/$/,"");for(var w=0;P.indexOf(S+"/")!==0;){var E=S.lastIndexOf("/");if(E<0||(S=S.slice(0,E),S.match(/^([^\/]+:\/)?\/*$/)))return P;++w}return Array(w+1).join("../")+P.substr(S.length+1)}e.relative=u;var c=(function(){var S=Object.create(null);return!("__proto__"in S)})();function p(S){return S}function d(S){return f(S)?"$"+S:S}e.toSetString=c?p:d;function h(S){return f(S)?S.slice(1):S}e.fromSetString=c?p:h;function f(S){if(!S)return!1;var P=S.length;if(P<9||S.charCodeAt(P-1)!==95||S.charCodeAt(P-2)!==95||S.charCodeAt(P-3)!==111||S.charCodeAt(P-4)!==116||S.charCodeAt(P-5)!==111||S.charCodeAt(P-6)!==114||S.charCodeAt(P-7)!==112||S.charCodeAt(P-8)!==95||S.charCodeAt(P-9)!==95)return!1;for(var w=P-10;w>=0;w--)if(S.charCodeAt(w)!==36)return!1;return!0}function m(S,P,w){var E=b(S.source,P.source);return E!==0||(E=S.originalLine-P.originalLine,E!==0)||(E=S.originalColumn-P.originalColumn,E!==0||w)||(E=S.generatedColumn-P.generatedColumn,E!==0)||(E=S.generatedLine-P.generatedLine,E!==0)?E:b(S.name,P.name)}e.compareByOriginalPositions=m;function y(S,P,w){var E=S.generatedLine-P.generatedLine;return E!==0||(E=S.generatedColumn-P.generatedColumn,E!==0||w)||(E=b(S.source,P.source),E!==0)||(E=S.originalLine-P.originalLine,E!==0)||(E=S.originalColumn-P.originalColumn,E!==0)?E:b(S.name,P.name)}e.compareByGeneratedPositionsDeflated=y;function b(S,P){return S===P?0:S===null?1:P===null?-1:S>P?1:-1}function g(S,P){var w=S.generatedLine-P.generatedLine;return w!==0||(w=S.generatedColumn-P.generatedColumn,w!==0)||(w=b(S.source,P.source),w!==0)||(w=S.originalLine-P.originalLine,w!==0)||(w=S.originalColumn-P.originalColumn,w!==0)?w:b(S.name,P.name)}e.compareByGeneratedPositionsInflated=g;function v(S){return JSON.parse(S.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=v;function D(S,P,w){if(P=P||"",S&&(S[S.length-1]!=="/"&&P[0]!=="/"&&(S+="/"),P=S+P),w){var E=a(w);if(!E)throw new Error("sourceMapURL could not be parsed");if(E.path){var C=E.path.lastIndexOf("/");C>=0&&(E.path=E.path.substring(0,C+1))}P=l(o(E),P)}return i(P)}e.computeSourceURL=D}}),fN=be({"../../node_modules/escodegen/node_modules/source-map/lib/array-set.js"(e){var t=Ss(),r=Object.prototype.hasOwnProperty,n=typeof Map<"u";function a(){this._array=[],this._set=n?new Map:Object.create(null)}a.fromArray=function(o,i){for(var l=new a,u=0,c=o.length;u<c;u++)l.add(o[u],i);return l},a.prototype.size=function(){return n?this._set.size:Object.getOwnPropertyNames(this._set).length},a.prototype.add=function(o,i){var l=n?o:t.toSetString(o),u=n?this.has(o):r.call(this._set,l),c=this._array.length;(!u||i)&&this._array.push(o),u||(n?this._set.set(o,c):this._set[l]=c)},a.prototype.has=function(o){if(n)return this._set.has(o);var i=t.toSetString(o);return r.call(this._set,i)},a.prototype.indexOf=function(o){if(n){var i=this._set.get(o);if(i>=0)return i}else{var l=t.toSetString(o);if(r.call(this._set,l))return this._set[l]}throw new Error('"'+o+'" is not in the set.')},a.prototype.at=function(o){if(o>=0&&o<this._array.length)return this._array[o];throw new Error("No element indexed by "+o)},a.prototype.toArray=function(){return this._array.slice()},e.ArraySet=a}}),DW=be({"../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(e){var t=Ss();function r(a,o){var i=a.generatedLine,l=o.generatedLine,u=a.generatedColumn,c=o.generatedColumn;return l>i||l==i&&c>=u||t.compareByGeneratedPositionsInflated(a,o)<=0}function n(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}n.prototype.unsortedForEach=function(a,o){this._array.forEach(a,o)},n.prototype.add=function(a){r(this._last,a)?(this._last=a,this._array.push(a)):(this._sorted=!1,this._array.push(a))},n.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=n}}),hN=be({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(e){var t=dN(),r=Ss(),n=fN().ArraySet,a=DW().MappingList;function o(i){i||(i={}),this._file=r.getArg(i,"file",null),this._sourceRoot=r.getArg(i,"sourceRoot",null),this._skipValidation=r.getArg(i,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new a,this._sourcesContents=null}o.prototype._version=3,o.fromSourceMap=function(i){var l=i.sourceRoot,u=new o({file:i.file,sourceRoot:l});return i.eachMapping(function(c){var p={generated:{line:c.generatedLine,column:c.generatedColumn}};c.source!=null&&(p.source=c.source,l!=null&&(p.source=r.relative(l,p.source)),p.original={line:c.originalLine,column:c.originalColumn},c.name!=null&&(p.name=c.name)),u.addMapping(p)}),i.sources.forEach(function(c){var p=c;l!==null&&(p=r.relative(l,c)),u._sources.has(p)||u._sources.add(p);var d=i.sourceContentFor(c);d!=null&&u.setSourceContent(c,d)}),u},o.prototype.addMapping=function(i){var l=r.getArg(i,"generated"),u=r.getArg(i,"original",null),c=r.getArg(i,"source",null),p=r.getArg(i,"name",null);this._skipValidation||this._validateMapping(l,u,c,p),c!=null&&(c=String(c),this._sources.has(c)||this._sources.add(c)),p!=null&&(p=String(p),this._names.has(p)||this._names.add(p)),this._mappings.add({generatedLine:l.line,generatedColumn:l.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:c,name:p})},o.prototype.setSourceContent=function(i,l){var u=i;this._sourceRoot!=null&&(u=r.relative(this._sourceRoot,u)),l!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[r.toSetString(u)]=l):this._sourcesContents&&(delete this._sourcesContents[r.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},o.prototype.applySourceMap=function(i,l,u){var c=l;if(l==null){if(i.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);c=i.file}var p=this._sourceRoot;p!=null&&(c=r.relative(p,c));var d=new n,h=new n;this._mappings.unsortedForEach(function(f){if(f.source===c&&f.originalLine!=null){var m=i.originalPositionFor({line:f.originalLine,column:f.originalColumn});m.source!=null&&(f.source=m.source,u!=null&&(f.source=r.join(u,f.source)),p!=null&&(f.source=r.relative(p,f.source)),f.originalLine=m.line,f.originalColumn=m.column,m.name!=null&&(f.name=m.name))}var y=f.source;y!=null&&!d.has(y)&&d.add(y);var b=f.name;b!=null&&!h.has(b)&&h.add(b)},this),this._sources=d,this._names=h,i.sources.forEach(function(f){var m=i.sourceContentFor(f);m!=null&&(u!=null&&(f=r.join(u,f)),p!=null&&(f=r.relative(p,f)),this.setSourceContent(f,m))},this)},o.prototype._validateMapping=function(i,l,u,c){if(l&&typeof l.line!="number"&&typeof l.column!="number")throw new 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(!(i&&"line"in i&&"column"in i&&i.line>0&&i.column>=0&&!l&&!u&&!c)){if(i&&"line"in i&&"column"in i&&l&&"line"in l&&"column"in l&&i.line>0&&i.column>=0&&l.line>0&&l.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:i,source:u,original:l,name:c}))}},o.prototype._serializeMappings=function(){for(var i=0,l=1,u=0,c=0,p=0,d=0,h="",f,m,y,b,g=this._mappings.toArray(),v=0,D=g.length;v<D;v++){if(m=g[v],f="",m.generatedLine!==l)for(i=0;m.generatedLine!==l;)f+=";",l++;else if(v>0){if(!r.compareByGeneratedPositionsInflated(m,g[v-1]))continue;f+=","}f+=t.encode(m.generatedColumn-i),i=m.generatedColumn,m.source!=null&&(b=this._sources.indexOf(m.source),f+=t.encode(b-d),d=b,f+=t.encode(m.originalLine-1-c),c=m.originalLine-1,f+=t.encode(m.originalColumn-u),u=m.originalColumn,m.name!=null&&(y=this._names.indexOf(m.name),f+=t.encode(y-p),p=y)),h+=f}return h},o.prototype._generateSourcesContent=function(i,l){return i.map(function(u){if(!this._sourcesContents)return null;l!=null&&(u=r.relative(l,u));var c=r.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,c)?this._sourcesContents[c]:null},this)},o.prototype.toJSON=function(){var i={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(i.file=this._file),this._sourceRoot!=null&&(i.sourceRoot=this._sourceRoot),this._sourcesContents&&(i.sourcesContent=this._generateSourcesContent(i.sources,i.sourceRoot)),i},o.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=o}}),OW=be({"../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(e){e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2;function t(r,n,a,o,i,l){var u=Math.floor((n-r)/2)+r,c=i(a,o[u],!0);return c===0?u:c>0?n-u>1?t(u,n,a,o,i,l):l==e.LEAST_UPPER_BOUND?n<o.length?n:-1:u:u-r>1?t(r,u,a,o,i,l):l==e.LEAST_UPPER_BOUND?u:r<0?-1:r}e.search=function(r,n,a,o){if(n.length===0)return-1;var i=t(-1,n.length,r,n,a,o||e.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&a(n[i],n[i-1],!0)===0;)--i;return i}}}),RW=be({"../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(e){function t(a,o,i){var l=a[o];a[o]=a[i],a[i]=l}function r(a,o){return Math.round(a+Math.random()*(o-a))}function n(a,o,i,l){if(i<l){var u=r(i,l),c=i-1;t(a,u,l);for(var p=a[l],d=i;d<l;d++)o(a[d],p)<=0&&(c+=1,t(a,c,d));t(a,c+1,d);var h=c+1;n(a,o,i,h-1),n(a,o,h+1,l)}}e.quickSort=function(a,o){n(a,o,0,a.length-1)}}}),FW=be({"../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(e){var t=Ss(),r=OW(),n=fN().ArraySet,a=dN(),o=RW().quickSort;function i(p,d){var h=p;return typeof p=="string"&&(h=t.parseSourceMapInput(p)),h.sections!=null?new c(h,d):new l(h,d)}i.fromSourceMap=function(p,d){return l.fromSourceMap(p,d)},i.prototype._version=3,i.prototype.__generatedMappings=null,Object.defineProperty(i.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),i.prototype.__originalMappings=null,Object.defineProperty(i.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),i.prototype._charIsMappingSeparator=function(p,d){var h=p.charAt(d);return h===";"||h===","},i.prototype._parseMappings=function(p,d){throw new Error("Subclasses must implement _parseMappings")},i.GENERATED_ORDER=1,i.ORIGINAL_ORDER=2,i.GREATEST_LOWER_BOUND=1,i.LEAST_UPPER_BOUND=2,i.prototype.eachMapping=function(p,d,h){var f=d||null,m=h||i.GENERATED_ORDER,y;switch(m){case i.GENERATED_ORDER:y=this._generatedMappings;break;case i.ORIGINAL_ORDER:y=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var b=this.sourceRoot;y.map(function(g){var v=g.source===null?null:this._sources.at(g.source);return v=t.computeSourceURL(b,v,this._sourceMapURL),{source:v,generatedLine:g.generatedLine,generatedColumn:g.generatedColumn,originalLine:g.originalLine,originalColumn:g.originalColumn,name:g.name===null?null:this._names.at(g.name)}},this).forEach(p,f)},i.prototype.allGeneratedPositionsFor=function(p){var d=t.getArg(p,"line"),h={source:t.getArg(p,"source"),originalLine:d,originalColumn:t.getArg(p,"column",0)};if(h.source=this._findSourceIndex(h.source),h.source<0)return[];var f=[],m=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,r.LEAST_UPPER_BOUND);if(m>=0){var y=this._originalMappings[m];if(p.column===void 0)for(var b=y.originalLine;y&&y.originalLine===b;)f.push({line:t.getArg(y,"generatedLine",null),column:t.getArg(y,"generatedColumn",null),lastColumn:t.getArg(y,"lastGeneratedColumn",null)}),y=this._originalMappings[++m];else for(var g=y.originalColumn;y&&y.originalLine===d&&y.originalColumn==g;)f.push({line:t.getArg(y,"generatedLine",null),column:t.getArg(y,"generatedColumn",null),lastColumn:t.getArg(y,"lastGeneratedColumn",null)}),y=this._originalMappings[++m]}return f},e.SourceMapConsumer=i;function l(p,d){var h=p;typeof p=="string"&&(h=t.parseSourceMapInput(p));var f=t.getArg(h,"version"),m=t.getArg(h,"sources"),y=t.getArg(h,"names",[]),b=t.getArg(h,"sourceRoot",null),g=t.getArg(h,"sourcesContent",null),v=t.getArg(h,"mappings"),D=t.getArg(h,"file",null);if(f!=this._version)throw new Error("Unsupported version: "+f);b&&(b=t.normalize(b)),m=m.map(String).map(t.normalize).map(function(S){return b&&t.isAbsolute(b)&&t.isAbsolute(S)?t.relative(b,S):S}),this._names=n.fromArray(y.map(String),!0),this._sources=n.fromArray(m,!0),this._absoluteSources=this._sources.toArray().map(function(S){return t.computeSourceURL(b,S,d)}),this.sourceRoot=b,this.sourcesContent=g,this._mappings=v,this._sourceMapURL=d,this.file=D}l.prototype=Object.create(i.prototype),l.prototype.consumer=i,l.prototype._findSourceIndex=function(p){var d=p;if(this.sourceRoot!=null&&(d=t.relative(this.sourceRoot,d)),this._sources.has(d))return this._sources.indexOf(d);var h;for(h=0;h<this._absoluteSources.length;++h)if(this._absoluteSources[h]==p)return h;return-1},l.fromSourceMap=function(p,d){var h=Object.create(l.prototype),f=h._names=n.fromArray(p._names.toArray(),!0),m=h._sources=n.fromArray(p._sources.toArray(),!0);h.sourceRoot=p._sourceRoot,h.sourcesContent=p._generateSourcesContent(h._sources.toArray(),h.sourceRoot),h.file=p._file,h._sourceMapURL=d,h._absoluteSources=h._sources.toArray().map(function(w){return t.computeSourceURL(h.sourceRoot,w,d)});for(var y=p._mappings.toArray().slice(),b=h.__generatedMappings=[],g=h.__originalMappings=[],v=0,D=y.length;v<D;v++){var S=y[v],P=new u;P.generatedLine=S.generatedLine,P.generatedColumn=S.generatedColumn,S.source&&(P.source=m.indexOf(S.source),P.originalLine=S.originalLine,P.originalColumn=S.originalColumn,S.name&&(P.name=f.indexOf(S.name)),g.push(P)),b.push(P)}return o(h.__originalMappings,t.compareByOriginalPositions),h},l.prototype._version=3,Object.defineProperty(l.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function u(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}l.prototype._parseMappings=function(p,d){for(var h=1,f=0,m=0,y=0,b=0,g=0,v=p.length,D=0,S={},P={},w=[],E=[],C,_,k,B,W;D<v;)if(p.charAt(D)===";")h++,D++,f=0;else if(p.charAt(D)===",")D++;else{for(C=new u,C.generatedLine=h,B=D;B<v&&!this._charIsMappingSeparator(p,B);B++);if(_=p.slice(D,B),k=S[_],k)D+=_.length;else{for(k=[];D<B;)a.decode(p,D,P),W=P.value,D=P.rest,k.push(W);if(k.length===2)throw new Error("Found a source, but no line and column");if(k.length===3)throw new Error("Found a source and line, but no column");S[_]=k}C.generatedColumn=f+k[0],f=C.generatedColumn,k.length>1&&(C.source=b+k[1],b+=k[1],C.originalLine=m+k[2],m=C.originalLine,C.originalLine+=1,C.originalColumn=y+k[3],y=C.originalColumn,k.length>4&&(C.name=g+k[4],g+=k[4])),E.push(C),typeof C.originalLine=="number"&&w.push(C)}o(E,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=E,o(w,t.compareByOriginalPositions),this.__originalMappings=w},l.prototype._findMapping=function(p,d,h,f,m,y){if(p[h]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+p[h]);if(p[f]<0)throw new TypeError("Column must be greater than or equal to 0, got "+p[f]);return r.search(p,d,m,y)},l.prototype.computeColumnSpans=function(){for(var p=0;p<this._generatedMappings.length;++p){var d=this._generatedMappings[p];if(p+1<this._generatedMappings.length){var h=this._generatedMappings[p+1];if(d.generatedLine===h.generatedLine){d.lastGeneratedColumn=h.generatedColumn-1;continue}}d.lastGeneratedColumn=1/0}},l.prototype.originalPositionFor=function(p){var d={generatedLine:t.getArg(p,"line"),generatedColumn:t.getArg(p,"column")},h=this._findMapping(d,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(p,"bias",i.GREATEST_LOWER_BOUND));if(h>=0){var f=this._generatedMappings[h];if(f.generatedLine===d.generatedLine){var m=t.getArg(f,"source",null);m!==null&&(m=this._sources.at(m),m=t.computeSourceURL(this.sourceRoot,m,this._sourceMapURL));var y=t.getArg(f,"name",null);return y!==null&&(y=this._names.at(y)),{source:m,line:t.getArg(f,"originalLine",null),column:t.getArg(f,"originalColumn",null),name:y}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(p){return p==null}):!1},l.prototype.sourceContentFor=function(p,d){if(!this.sourcesContent)return null;var h=this._findSourceIndex(p);if(h>=0)return this.sourcesContent[h];var f=p;this.sourceRoot!=null&&(f=t.relative(this.sourceRoot,f));var m;if(this.sourceRoot!=null&&(m=t.urlParse(this.sourceRoot))){var y=f.replace(/^file:\/\//,"");if(m.scheme=="file"&&this._sources.has(y))return this.sourcesContent[this._sources.indexOf(y)];if((!m.path||m.path=="/")&&this._sources.has("/"+f))return this.sourcesContent[this._sources.indexOf("/"+f)]}if(d)return null;throw new Error('"'+f+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(p){var d=t.getArg(p,"source");if(d=this._findSourceIndex(d),d<0)return{line:null,column:null,lastColumn:null};var h={source:d,originalLine:t.getArg(p,"line"),originalColumn:t.getArg(p,"column")},f=this._findMapping(h,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(p,"bias",i.GREATEST_LOWER_BOUND));if(f>=0){var m=this._originalMappings[f];if(m.source===h.source)return{line:t.getArg(m,"generatedLine",null),column:t.getArg(m,"generatedColumn",null),lastColumn:t.getArg(m,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},e.BasicSourceMapConsumer=l;function c(p,d){var h=p;typeof p=="string"&&(h=t.parseSourceMapInput(p));var f=t.getArg(h,"version"),m=t.getArg(h,"sections");if(f!=this._version)throw new Error("Unsupported version: "+f);this._sources=new n,this._names=new n;var y={line:-1,column:0};this._sections=m.map(function(b){if(b.url)throw new Error("Support for url field in sections not implemented.");var g=t.getArg(b,"offset"),v=t.getArg(g,"line"),D=t.getArg(g,"column");if(v<y.line||v===y.line&&D<y.column)throw new Error("Section offsets must be ordered and non-overlapping.");return y=g,{generatedOffset:{generatedLine:v+1,generatedColumn:D+1},consumer:new i(t.getArg(b,"map"),d)}})}c.prototype=Object.create(i.prototype),c.prototype.constructor=i,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var p=[],d=0;d<this._sections.length;d++)for(var h=0;h<this._sections[d].consumer.sources.length;h++)p.push(this._sections[d].consumer.sources[h]);return p}}),c.prototype.originalPositionFor=function(p){var d={generatedLine:t.getArg(p,"line"),generatedColumn:t.getArg(p,"column")},h=r.search(d,this._sections,function(m,y){var b=m.generatedLine-y.generatedOffset.generatedLine;return b||m.generatedColumn-y.generatedOffset.generatedColumn}),f=this._sections[h];return f?f.consumer.originalPositionFor({line:d.generatedLine-(f.generatedOffset.generatedLine-1),column:d.generatedColumn-(f.generatedOffset.generatedLine===d.generatedLine?f.generatedOffset.generatedColumn-1:0),bias:p.bias}):{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(p){return p.consumer.hasContentsOfAllSources()})},c.prototype.sourceContentFor=function(p,d){for(var h=0;h<this._sections.length;h++){var f=this._sections[h],m=f.consumer.sourceContentFor(p,!0);if(m)return m}if(d)return null;throw new Error('"'+p+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(p){for(var d=0;d<this._sections.length;d++){var h=this._sections[d];if(h.consumer._findSourceIndex(t.getArg(p,"source"))!==-1){var f=h.consumer.generatedPositionFor(p);if(f){var m={line:f.line+(h.generatedOffset.generatedLine-1),column:f.column+(h.generatedOffset.generatedLine===f.line?h.generatedOffset.generatedColumn-1:0)};return m}}}return{line:null,column:null}},c.prototype._parseMappings=function(p,d){this.__generatedMappings=[],this.__originalMappings=[];for(var h=0;h<this._sections.length;h++)for(var f=this._sections[h],m=f.consumer._generatedMappings,y=0;y<m.length;y++){var b=m[y],g=f.consumer._sources.at(b.source);g=t.computeSourceURL(f.consumer.sourceRoot,g,this._sourceMapURL),this._sources.add(g),g=this._sources.indexOf(g);var v=null;b.name&&(v=f.consumer._names.at(b.name),this._names.add(v),v=this._names.indexOf(v));var D={source:g,generatedLine:b.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:b.generatedColumn+(f.generatedOffset.generatedLine===b.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:b.originalLine,originalColumn:b.originalColumn,name:v};this.__generatedMappings.push(D),typeof D.originalLine=="number"&&this.__originalMappings.push(D)}o(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),o(this.__originalMappings,t.compareByOriginalPositions)},e.IndexedSourceMapConsumer=c}}),IW=be({"../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(e){var t=hN().SourceMapGenerator,r=Ss(),n=/(\r?\n)/,a=10,o="$$$isSourceNode$$$";function i(l,u,c,p,d){this.children=[],this.sourceContents={},this.line=l??null,this.column=u??null,this.source=c??null,this.name=d??null,this[o]=!0,p!=null&&this.add(p)}i.fromStringWithSourceMap=function(l,u,c){var p=new i,d=l.split(n),h=0,f=function(){var v=S(),D=S()||"";return v+D;function S(){return h<d.length?d[h++]:void 0}},m=1,y=0,b=null;return u.eachMapping(function(v){if(b!==null)if(m<v.generatedLine)g(b,f()),m++,y=0;else{var D=d[h]||"",S=D.substr(0,v.generatedColumn-y);d[h]=D.substr(v.generatedColumn-y),y=v.generatedColumn,g(b,S),b=v;return}for(;m<v.generatedLine;)p.add(f()),m++;if(y<v.generatedColumn){var D=d[h]||"";p.add(D.substr(0,v.generatedColumn)),d[h]=D.substr(v.generatedColumn),y=v.generatedColumn}b=v},this),h<d.length&&(b&&g(b,f()),p.add(d.splice(h).join(""))),u.sources.forEach(function(v){var D=u.sourceContentFor(v);D!=null&&(c!=null&&(v=r.join(c,v)),p.setSourceContent(v,D))}),p;function g(v,D){if(v===null||v.source===void 0)p.add(D);else{var S=c?r.join(c,v.source):v.source;p.add(new i(v.originalLine,v.originalColumn,S,D,v.name))}}},i.prototype.add=function(l){if(Array.isArray(l))l.forEach(function(u){this.add(u)},this);else if(l[o]||typeof l=="string")l&&this.children.push(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.prepend=function(l){if(Array.isArray(l))for(var u=l.length-1;u>=0;u--)this.prepend(l[u]);else if(l[o]||typeof l=="string")this.children.unshift(l);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+l);return this},i.prototype.walk=function(l){for(var u,c=0,p=this.children.length;c<p;c++)u=this.children[c],u[o]?u.walk(l):u!==""&&l(u,{source:this.source,line:this.line,column:this.column,name:this.name})},i.prototype.join=function(l){var u,c,p=this.children.length;if(p>0){for(u=[],c=0;c<p-1;c++)u.push(this.children[c]),u.push(l);u.push(this.children[c]),this.children=u}return this},i.prototype.replaceRight=function(l,u){var c=this.children[this.children.length-1];return c[o]?c.replaceRight(l,u):typeof c=="string"?this.children[this.children.length-1]=c.replace(l,u):this.children.push("".replace(l,u)),this},i.prototype.setSourceContent=function(l,u){this.sourceContents[r.toSetString(l)]=u},i.prototype.walkSourceContents=function(l){for(var u=0,c=this.children.length;u<c;u++)this.children[u][o]&&this.children[u].walkSourceContents(l);for(var p=Object.keys(this.sourceContents),u=0,c=p.length;u<c;u++)l(r.fromSetString(p[u]),this.sourceContents[p[u]])},i.prototype.toString=function(){var l="";return this.walk(function(u){l+=u}),l},i.prototype.toStringWithSourceMap=function(l){var u={code:"",line:1,column:0},c=new t(l),p=!1,d=null,h=null,f=null,m=null;return this.walk(function(y,b){u.code+=y,b.source!==null&&b.line!==null&&b.column!==null?((d!==b.source||h!==b.line||f!==b.column||m!==b.name)&&c.addMapping({source:b.source,original:{line:b.line,column:b.column},generated:{line:u.line,column:u.column},name:b.name}),d=b.source,h=b.line,f=b.column,m=b.name,p=!0):p&&(c.addMapping({generated:{line:u.line,column:u.column}}),d=null,p=!1);for(var g=0,v=y.length;g<v;g++)y.charCodeAt(g)===a?(u.line++,u.column=0,g+1===v?(d=null,p=!1):p&&c.addMapping({source:b.source,original:{line:b.line,column:b.column},generated:{line:u.line,column:u.column},name:b.name})):u.column++}),this.walkSourceContents(function(y,b){c.setSourceContent(y,b)}),{code:u.code,map:c}},e.SourceNode=i}}),NW=be({"../../node_modules/escodegen/node_modules/source-map/source-map.js"(e){e.SourceMapGenerator=hN().SourceMapGenerator,e.SourceMapConsumer=FW().SourceMapConsumer,e.SourceNode=IW().SourceNode}}),kW=be({"../../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"}}}}),BW=be({"../../node_modules/escodegen/escodegen.js"(e){(function(){var t,r,n,a,o,i,l,u,c,p,d,h,f,m,y,b,g,v,D,S,P,w,E,C,_,k;o=AW(),i=TW(),t=o.Syntax;function B(A){return Ze.Expression.hasOwnProperty(A.type)}function W(A){return Ze.Statement.hasOwnProperty(A.type)}r={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},n={"??":r.Coalesce,"||":r.LogicalOR,"&&":r.LogicalAND,"|":r.BitwiseOR,"^":r.BitwiseXOR,"&":r.BitwiseAND,"==":r.Equality,"!=":r.Equality,"===":r.Equality,"!==":r.Equality,is:r.Equality,isnt:r.Equality,"<":r.Relational,">":r.Relational,"<=":r.Relational,">=":r.Relational,in:r.Relational,instanceof:r.Relational,"<<":r.BitwiseSHIFT,">>":r.BitwiseSHIFT,">>>":r.BitwiseSHIFT,"+":r.Additive,"-":r.Additive,"*":r.Multiplicative,"%":r.Multiplicative,"/":r.Multiplicative,"**":r.Exponentiation};var z=1,R=2,U=4,j=8,Y=16,Q=32,ae=64,le=R|U,M=z|R,L=z|R|U,K=z,X=U,ie=z|U,te=z,ue=z|Q,ve=0,je=z|Y,st=z|j;function Z(){return{indent:null,base:null,parse:null,comment:!1,format:{indent:{style:" ",base:0,adjustMultilineComment:!1},newline:`
|
|
1042
|
+
`,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 pe(A,N){var F="";for(N|=0;N>0;N>>>=1,A+=A)N&1&&(F+=A);return F}function ye(A){return/[\r\n]/g.test(A)}function ge(A){var N=A.length;return N&&i.code.isLineTerminator(A.charCodeAt(N-1))}function Ce(A,N){var F;for(F in N)N.hasOwnProperty(F)&&(A[F]=N[F]);return A}function Se(A,N){var F,T;function V(oe){return typeof oe=="object"&&oe instanceof Object&&!(oe instanceof RegExp)}for(F in N)N.hasOwnProperty(F)&&(T=N[F],V(T)?V(A[F])?Se(A[F],T):A[F]=Se({},T):A[F]=T);return A}function _e(A){var N,F,T,V,oe;if(A!==A)throw new Error("Numeric literal whose value is NaN");if(A<0||A===0&&1/A<0)throw new Error("Numeric literal whose value is negative");if(A===1/0)return c?"null":p?"1e400":"1e+400";if(N=""+A,!p||N.length<3)return N;for(F=N.indexOf("."),!c&&N.charCodeAt(0)===48&&F===1&&(F=0,N=N.slice(1)),T=N,N=N.replace("e+","e"),V=0,(oe=T.indexOf("e"))>0&&(V=+T.slice(oe+1),T=T.slice(0,oe)),F>=0&&(V-=T.length-F-1,T=+(T.slice(0,F)+T.slice(F+1))+""),oe=0;T.charCodeAt(T.length+oe-1)===48;)--oe;return oe!==0&&(V-=oe,T=T.slice(0,oe)),V!==0&&(T+="e"+V),(T.length<N.length||d&&A>1e12&&Math.floor(A)===A&&(T="0x"+A.toString(16)).length<N.length)&&+T===A&&(N=T),N}function Ge(A,N){return(A&-2)===8232?(N?"u":"\\u")+(A===8232?"2028":"2029"):A===10||A===13?(N?"":"\\")+(A===10?"n":"r"):String.fromCharCode(A)}function lt(A){var N,F,T,V,oe,se,ce,me;if(F=A.toString(),A.source){if(N=F.match(/\/([^/]*)$/),!N)return F;for(T=N[1],F="",ce=!1,me=!1,V=0,oe=A.source.length;V<oe;++V)se=A.source.charCodeAt(V),me?(F+=Ge(se,me),me=!1):(ce?se===93&&(ce=!1):se===47?F+="\\":se===91&&(ce=!0),F+=Ge(se,me),me=se===92);return"/"+F+"/"+T}return F}function Dt(A,N){var F;return A===8?"\\b":A===12?"\\f":A===9?"\\t":(F=A.toString(16).toUpperCase(),c||A>255?"\\u"+"0000".slice(F.length)+F:A===0&&!i.code.isDecimalDigit(N)?"\\0":A===11?"\\x0B":"\\x"+"00".slice(F.length)+F)}function Gt(A){if(A===92)return"\\\\";if(A===10)return"\\n";if(A===13)return"\\r";if(A===8232)return"\\u2028";if(A===8233)return"\\u2029";throw new Error("Incorrectly classified character")}function _t(A){var N,F,T,V;for(V=h==="double"?'"':"'",N=0,F=A.length;N<F;++N)if(T=A.charCodeAt(N),T===39){V='"';break}else if(T===34){V="'";break}else T===92&&++N;return V+A+V}function Vt(A){var N="",F,T,V,oe=0,se=0,ce,me;for(F=0,T=A.length;F<T;++F){if(V=A.charCodeAt(F),V===39)++oe;else if(V===34)++se;else if(V===47&&c)N+="\\";else if(i.code.isLineTerminator(V)||V===92){N+=Gt(V);continue}else if(!i.code.isIdentifierPartES5(V)&&(c&&V<32||!c&&!f&&(V<32||V>126))){N+=Dt(V,A.charCodeAt(F+1));continue}N+=String.fromCharCode(V)}if(ce=!(h==="double"||h==="auto"&&se<oe),me=ce?"'":'"',!(ce?oe:se))return me+N+me;for(A=N,N=me,F=0,T=A.length;F<T;++F)V=A.charCodeAt(F),(V===39&&ce||V===34&&!ce)&&(N+="\\"),N+=String.fromCharCode(V);return N+me}function kt(A){var N,F,T,V="";for(N=0,F=A.length;N<F;++N)T=A[N],V+=Array.isArray(T)?kt(T):T;return V}function Pe(A,N){if(!w)return Array.isArray(A)?kt(A):A;if(N==null){if(A instanceof a)return A;N={}}return N.loc==null?new a(null,null,w,A,N.name||null):new a(N.loc.start.line,N.loc.start.column,w===!0?N.loc.source||null:w,A,N.name||null)}function ut(){return y||" "}function Ae(A,N){var F,T,V,oe;return F=Pe(A).toString(),F.length===0?[N]:(T=Pe(N).toString(),T.length===0?[A]:(V=F.charCodeAt(F.length-1),oe=T.charCodeAt(0),(V===43||V===45)&&V===oe||i.code.isIdentifierPartES5(V)&&i.code.isIdentifierPartES5(oe)||V===47&&oe===105?[A,ut(),N]:i.code.isWhiteSpace(V)||i.code.isLineTerminator(V)||i.code.isWhiteSpace(oe)||i.code.isLineTerminator(oe)?[A,N]:[A,y,N]))}function ct(A){return[l,A]}function Qe(A){var N;N=l,l+=u,A(l),l=N}function Zn(A){var N;for(N=A.length-1;N>=0&&!i.code.isLineTerminator(A.charCodeAt(N));--N);return A.length-1-N}function ea(A,N){var F,T,V,oe,se,ce,me,qe;for(F=A.split(/\r\n|[\r\n]/),ce=Number.MAX_VALUE,T=1,V=F.length;T<V;++T){for(oe=F[T],se=0;se<oe.length&&i.code.isWhiteSpace(oe.charCodeAt(se));)++se;ce>se&&(ce=se)}for(typeof N<"u"?(me=l,F[1][ce]==="*"&&(N+=" "),l=N):(ce&1&&--ce,me=l),T=1,V=F.length;T<V;++T)qe=Pe(ct(F[T].slice(ce))),F[T]=w?qe.join(""):qe;return l=me,F.join(`
|
|
1043
|
+
`)}function Bt(A,N){if(A.type==="Line"){if(ge(A.value))return"//"+A.value;var F="//"+A.value;return C||(F+=`
|
|
1044
|
+
`),F}return S.format.indent.adjustMultilineComment&&/[\n\r]/.test(A.value)?ea("/*"+A.value+"*/",N):"/*"+A.value+"*/"}function An(A,N){var F,T,V,oe,se,ce,me,qe,mt,jt,en,ra,Ps,Qt;if(A.leadingComments&&A.leadingComments.length>0){if(oe=N,C){for(V=A.leadingComments[0],N=[],qe=V.extendedRange,mt=V.range,en=E.substring(qe[0],mt[0]),Qt=(en.match(/\n/g)||[]).length,Qt>0?(N.push(pe(`
|
|
1045
|
+
`,Qt)),N.push(ct(Bt(V)))):(N.push(en),N.push(Bt(V))),jt=mt,F=1,T=A.leadingComments.length;F<T;F++)V=A.leadingComments[F],mt=V.range,ra=E.substring(jt[1],mt[0]),Qt=(ra.match(/\n/g)||[]).length,N.push(pe(`
|
|
1046
|
+
`,Qt)),N.push(ct(Bt(V))),jt=mt;Ps=E.substring(mt[1],qe[1]),Qt=(Ps.match(/\n/g)||[]).length,N.push(pe(`
|
|
1047
|
+
`,Qt))}else for(V=A.leadingComments[0],N=[],v&&A.type===t.Program&&A.body.length===0&&N.push(`
|
|
1048
|
+
`),N.push(Bt(V)),ge(Pe(N).toString())||N.push(`
|
|
1049
|
+
`),F=1,T=A.leadingComments.length;F<T;++F)V=A.leadingComments[F],me=[Bt(V)],ge(Pe(me).toString())||me.push(`
|
|
1050
|
+
`),N.push(ct(me));N.push(ct(oe))}if(A.trailingComments)if(C)V=A.trailingComments[0],qe=V.extendedRange,mt=V.range,en=E.substring(qe[0],mt[0]),Qt=(en.match(/\n/g)||[]).length,Qt>0?(N.push(pe(`
|
|
1051
|
+
`,Qt)),N.push(ct(Bt(V)))):(N.push(en),N.push(Bt(V)));else for(se=!ge(Pe(N).toString()),ce=pe(" ",Zn(Pe([l,N,u]).toString())),F=0,T=A.trailingComments.length;F<T;++F)V=A.trailingComments[F],se?(F===0?N=[N,u]:N=[N,ce],N.push(Bt(V,ce))):N=[N,ct(Bt(V))],F!==T-1&&!ge(Pe(N).toString())&&(N=[N,`
|
|
1052
|
+
`]);return N}function pr(A,N,F){var T,V=0;for(T=A;T<N;T++)E[T]===`
|
|
1053
|
+
`&&V++;for(T=1;T<V;T++)F.push(m)}function tt(A,N,F){return N<F?["(",A,")"]:A}function Sn(A){var N,F,T;for(T=A.split(/\r\n|\n/),N=1,F=T.length;N<F;N++)T[N]=m+l+T[N];return T}function ta(A,N){var F,T,V;return F=A[S.verbatim],typeof F=="string"?T=tt(Sn(F),r.Sequence,N):(T=Sn(F.content),V=F.precedence!=null?F.precedence:r.Sequence,T=tt(T,V,N)),Pe(T,A)}function Ze(){}Ze.prototype.maybeBlock=function(A,N){var F,T,V=this;return T=!S.comment||!A.leadingComments,A.type===t.BlockStatement&&T?[y,this.generateStatement(A,N)]:A.type===t.EmptyStatement&&T?";":(Qe(function(){F=[m,ct(V.generateStatement(A,N))]}),F)},Ze.prototype.maybeBlockSuffix=function(A,N){var F=ge(Pe(N).toString());return A.type===t.BlockStatement&&(!S.comment||!A.leadingComments)&&!F?[N,y]:F?[N,l]:[N,m,l]};function wt(A){return Pe(A.name,A)}function xr(A,N){return A.async?"async"+(N?ut():y):""}function Nr(A){var N=A.generator&&!S.moz.starlessGenerator;return N?"*"+y:""}function kr(A){var N=A.value,F="";return N.async&&(F+=xr(N,!A.computed)),N.generator&&(F+=Nr(N)?"*":""),F}Ze.prototype.generatePattern=function(A,N,F){return A.type===t.Identifier?wt(A):this.generateExpression(A,N,F)},Ze.prototype.generateFunctionParams=function(A){var N,F,T,V;if(V=!1,A.type===t.ArrowFunctionExpression&&!A.rest&&(!A.defaults||A.defaults.length===0)&&A.params.length===1&&A.params[0].type===t.Identifier)T=[xr(A,!0),wt(A.params[0])];else{for(T=A.type===t.ArrowFunctionExpression?[xr(A,!1)]:[],T.push("("),A.defaults&&(V=!0),N=0,F=A.params.length;N<F;++N)V&&A.defaults[N]?T.push(this.generateAssignment(A.params[N],A.defaults[N],"=",r.Assignment,L)):T.push(this.generatePattern(A.params[N],r.Assignment,L)),N+1<F&&T.push(","+y);A.rest&&(A.params.length&&T.push(","+y),T.push("..."),T.push(wt(A.rest))),T.push(")")}return T},Ze.prototype.generateFunctionBody=function(A){var N,F;return N=this.generateFunctionParams(A),A.type===t.ArrowFunctionExpression&&(N.push(y),N.push("=>")),A.expression?(N.push(y),F=this.generateExpression(A.body,r.Assignment,L),F.toString().charAt(0)==="{"&&(F=["(",F,")"]),N.push(F)):N.push(this.maybeBlock(A.body,st)),N},Ze.prototype.generateIterationForStatement=function(A,N,F){var T=["for"+(N.await?ut()+"await":"")+y+"("],V=this;return Qe(function(){N.left.type===t.VariableDeclaration?Qe(function(){T.push(N.left.kind+ut()),T.push(V.generateStatement(N.left.declarations[0],ve))}):T.push(V.generateExpression(N.left,r.Call,L)),T=Ae(T,A),T=[Ae(T,V.generateExpression(N.right,r.Assignment,L)),")"]}),T.push(this.maybeBlock(N.body,F)),T},Ze.prototype.generatePropertyKey=function(A,N){var F=[];return N&&F.push("["),F.push(this.generateExpression(A,r.Assignment,L)),N&&F.push("]"),F},Ze.prototype.generateAssignment=function(A,N,F,T,V){return r.Assignment<T&&(V|=z),tt([this.generateExpression(A,r.Call,V),y+F+y,this.generateExpression(N,r.Assignment,V)],r.Assignment,T)},Ze.prototype.semicolon=function(A){return!g&&A&Q?"":";"},Ze.Statement={BlockStatement:function(A,N){var F,T,V=["{",m],oe=this;return Qe(function(){A.body.length===0&&C&&(F=A.range,F[1]-F[0]>2&&(T=E.substring(F[0]+1,F[1]-1),T[0]===`
|
|
1054
|
+
`&&(V=["{"]),V.push(T)));var se,ce,me,qe;for(qe=te,N&j&&(qe|=Y),se=0,ce=A.body.length;se<ce;++se)C&&(se===0&&(A.body[0].leadingComments&&(F=A.body[0].leadingComments[0].extendedRange,T=E.substring(F[0],F[1]),T[0]===`
|
|
1055
|
+
`&&(V=["{"])),A.body[0].leadingComments||pr(A.range[0],A.body[0].range[0],V)),se>0&&!A.body[se-1].trailingComments&&!A.body[se].leadingComments&&pr(A.body[se-1].range[1],A.body[se].range[0],V)),se===ce-1&&(qe|=Q),A.body[se].leadingComments&&C?me=oe.generateStatement(A.body[se],qe):me=ct(oe.generateStatement(A.body[se],qe)),V.push(me),ge(Pe(me).toString())||C&&se<ce-1&&A.body[se+1].leadingComments||V.push(m),C&&se===ce-1&&(A.body[se].trailingComments||pr(A.body[se].range[1],A.range[1],V))}),V.push(ct("}")),V},BreakStatement:function(A,N){return A.label?"break "+A.label.name+this.semicolon(N):"break"+this.semicolon(N)},ContinueStatement:function(A,N){return A.label?"continue "+A.label.name+this.semicolon(N):"continue"+this.semicolon(N)},ClassBody:function(A,N){var F=["{",m],T=this;return Qe(function(V){var oe,se;for(oe=0,se=A.body.length;oe<se;++oe)F.push(V),F.push(T.generateExpression(A.body[oe],r.Sequence,L)),oe+1<se&&F.push(m)}),ge(Pe(F).toString())||F.push(m),F.push(l),F.push("}"),F},ClassDeclaration:function(A,N){var F,T;return F=["class"],A.id&&(F=Ae(F,this.generateExpression(A.id,r.Sequence,L))),A.superClass&&(T=Ae("extends",this.generateExpression(A.superClass,r.Unary,L)),F=Ae(F,T)),F.push(y),F.push(this.generateStatement(A.body,ue)),F},DirectiveStatement:function(A,N){return S.raw&&A.raw?A.raw+this.semicolon(N):_t(A.directive)+this.semicolon(N)},DoWhileStatement:function(A,N){var F=Ae("do",this.maybeBlock(A.body,te));return F=this.maybeBlockSuffix(A.body,F),Ae(F,["while"+y+"(",this.generateExpression(A.test,r.Sequence,L),")"+this.semicolon(N)])},CatchClause:function(A,N){var F,T=this;return Qe(function(){var V;A.param?(F=["catch"+y+"(",T.generateExpression(A.param,r.Sequence,L),")"],A.guard&&(V=T.generateExpression(A.guard,r.Sequence,L),F.splice(2,0," if ",V))):F=["catch"]}),F.push(this.maybeBlock(A.body,te)),F},DebuggerStatement:function(A,N){return"debugger"+this.semicolon(N)},EmptyStatement:function(A,N){return";"},ExportDefaultDeclaration:function(A,N){var F=["export"],T;return T=N&Q?ue:te,F=Ae(F,"default"),W(A.declaration)?F=Ae(F,this.generateStatement(A.declaration,T)):F=Ae(F,this.generateExpression(A.declaration,r.Assignment,L)+this.semicolon(N)),F},ExportNamedDeclaration:function(A,N){var F=["export"],T,V=this;return T=N&Q?ue:te,A.declaration?Ae(F,this.generateStatement(A.declaration,T)):(A.specifiers&&(A.specifiers.length===0?F=Ae(F,"{"+y+"}"):A.specifiers[0].type===t.ExportBatchSpecifier?F=Ae(F,this.generateExpression(A.specifiers[0],r.Sequence,L)):(F=Ae(F,"{"),Qe(function(oe){var se,ce;for(F.push(m),se=0,ce=A.specifiers.length;se<ce;++se)F.push(oe),F.push(V.generateExpression(A.specifiers[se],r.Sequence,L)),se+1<ce&&F.push(","+m)}),ge(Pe(F).toString())||F.push(m),F.push(l+"}")),A.source?F=Ae(F,["from"+y,this.generateExpression(A.source,r.Sequence,L),this.semicolon(N)]):F.push(this.semicolon(N))),F)},ExportAllDeclaration:function(A,N){return["export"+y,"*"+y,"from"+y,this.generateExpression(A.source,r.Sequence,L),this.semicolon(N)]},ExpressionStatement:function(A,N){var F,T;function V(ce){var me;return ce.slice(0,5)!=="class"?!1:(me=ce.charCodeAt(5),me===123||i.code.isWhiteSpace(me)||i.code.isLineTerminator(me))}function oe(ce){var me;return ce.slice(0,8)!=="function"?!1:(me=ce.charCodeAt(8),me===40||i.code.isWhiteSpace(me)||me===42||i.code.isLineTerminator(me))}function se(ce){var me,qe,mt;if(ce.slice(0,5)!=="async"||!i.code.isWhiteSpace(ce.charCodeAt(5)))return!1;for(qe=6,mt=ce.length;qe<mt&&i.code.isWhiteSpace(ce.charCodeAt(qe));++qe);return qe===mt||ce.slice(qe,qe+8)!=="function"?!1:(me=ce.charCodeAt(qe+8),me===40||i.code.isWhiteSpace(me)||me===42||i.code.isLineTerminator(me))}return F=[this.generateExpression(A.expression,r.Sequence,L)],T=Pe(F).toString(),T.charCodeAt(0)===123||V(T)||oe(T)||se(T)||D&&N&Y&&A.expression.type===t.Literal&&typeof A.expression.value=="string"?F=["(",F,")"+this.semicolon(N)]:F.push(this.semicolon(N)),F},ImportDeclaration:function(A,N){var F,T,V=this;return A.specifiers.length===0?["import",y,this.generateExpression(A.source,r.Sequence,L),this.semicolon(N)]:(F=["import"],T=0,A.specifiers[T].type===t.ImportDefaultSpecifier&&(F=Ae(F,[this.generateExpression(A.specifiers[T],r.Sequence,L)]),++T),A.specifiers[T]&&(T!==0&&F.push(","),A.specifiers[T].type===t.ImportNamespaceSpecifier?F=Ae(F,[y,this.generateExpression(A.specifiers[T],r.Sequence,L)]):(F.push(y+"{"),A.specifiers.length-T===1?(F.push(y),F.push(this.generateExpression(A.specifiers[T],r.Sequence,L)),F.push(y+"}"+y)):(Qe(function(oe){var se,ce;for(F.push(m),se=T,ce=A.specifiers.length;se<ce;++se)F.push(oe),F.push(V.generateExpression(A.specifiers[se],r.Sequence,L)),se+1<ce&&F.push(","+m)}),ge(Pe(F).toString())||F.push(m),F.push(l+"}"+y)))),F=Ae(F,["from"+y,this.generateExpression(A.source,r.Sequence,L),this.semicolon(N)]),F)},VariableDeclarator:function(A,N){var F=N&z?L:le;return A.init?[this.generateExpression(A.id,r.Assignment,F),y,"=",y,this.generateExpression(A.init,r.Assignment,F)]:this.generatePattern(A.id,r.Assignment,F)},VariableDeclaration:function(A,N){var F,T,V,oe,se,ce=this;F=[A.kind],se=N&z?te:ve;function me(){for(oe=A.declarations[0],S.comment&&oe.leadingComments?(F.push(`
|
|
1056
|
+
`),F.push(ct(ce.generateStatement(oe,se)))):(F.push(ut()),F.push(ce.generateStatement(oe,se))),T=1,V=A.declarations.length;T<V;++T)oe=A.declarations[T],S.comment&&oe.leadingComments?(F.push(","+m),F.push(ct(ce.generateStatement(oe,se)))):(F.push(","+y),F.push(ce.generateStatement(oe,se)))}return A.declarations.length>1?Qe(me):me(),F.push(this.semicolon(N)),F},ThrowStatement:function(A,N){return[Ae("throw",this.generateExpression(A.argument,r.Sequence,L)),this.semicolon(N)]},TryStatement:function(A,N){var F,T,V,oe;if(F=["try",this.maybeBlock(A.block,te)],F=this.maybeBlockSuffix(A.block,F),A.handlers)for(T=0,V=A.handlers.length;T<V;++T)F=Ae(F,this.generateStatement(A.handlers[T],te)),(A.finalizer||T+1!==V)&&(F=this.maybeBlockSuffix(A.handlers[T].body,F));else{for(oe=A.guardedHandlers||[],T=0,V=oe.length;T<V;++T)F=Ae(F,this.generateStatement(oe[T],te)),(A.finalizer||T+1!==V)&&(F=this.maybeBlockSuffix(oe[T].body,F));if(A.handler)if(Array.isArray(A.handler))for(T=0,V=A.handler.length;T<V;++T)F=Ae(F,this.generateStatement(A.handler[T],te)),(A.finalizer||T+1!==V)&&(F=this.maybeBlockSuffix(A.handler[T].body,F));else F=Ae(F,this.generateStatement(A.handler,te)),A.finalizer&&(F=this.maybeBlockSuffix(A.handler.body,F))}return A.finalizer&&(F=Ae(F,["finally",this.maybeBlock(A.finalizer,te)])),F},SwitchStatement:function(A,N){var F,T,V,oe,se,ce=this;if(Qe(function(){F=["switch"+y+"(",ce.generateExpression(A.discriminant,r.Sequence,L),")"+y+"{"+m]}),A.cases)for(se=te,V=0,oe=A.cases.length;V<oe;++V)V===oe-1&&(se|=Q),T=ct(this.generateStatement(A.cases[V],se)),F.push(T),ge(Pe(T).toString())||F.push(m);return F.push(ct("}")),F},SwitchCase:function(A,N){var F,T,V,oe,se,ce=this;return Qe(function(){for(A.test?F=[Ae("case",ce.generateExpression(A.test,r.Sequence,L)),":"]:F=["default:"],V=0,oe=A.consequent.length,oe&&A.consequent[0].type===t.BlockStatement&&(T=ce.maybeBlock(A.consequent[0],te),F.push(T),V=1),V!==oe&&!ge(Pe(F).toString())&&F.push(m),se=te;V<oe;++V)V===oe-1&&N&Q&&(se|=Q),T=ct(ce.generateStatement(A.consequent[V],se)),F.push(T),V+1!==oe&&!ge(Pe(T).toString())&&F.push(m)}),F},IfStatement:function(A,N){var F,T,V,oe=this;return Qe(function(){F=["if"+y+"(",oe.generateExpression(A.test,r.Sequence,L),")"]}),V=N&Q,T=te,V&&(T|=Q),A.alternate?(F.push(this.maybeBlock(A.consequent,te)),F=this.maybeBlockSuffix(A.consequent,F),A.alternate.type===t.IfStatement?F=Ae(F,["else ",this.generateStatement(A.alternate,T)]):F=Ae(F,Ae("else",this.maybeBlock(A.alternate,T)))):F.push(this.maybeBlock(A.consequent,T)),F},ForStatement:function(A,N){var F,T=this;return Qe(function(){F=["for"+y+"("],A.init?A.init.type===t.VariableDeclaration?F.push(T.generateStatement(A.init,ve)):(F.push(T.generateExpression(A.init,r.Sequence,le)),F.push(";")):F.push(";"),A.test&&(F.push(y),F.push(T.generateExpression(A.test,r.Sequence,L))),F.push(";"),A.update&&(F.push(y),F.push(T.generateExpression(A.update,r.Sequence,L))),F.push(")")}),F.push(this.maybeBlock(A.body,N&Q?ue:te)),F},ForInStatement:function(A,N){return this.generateIterationForStatement("in",A,N&Q?ue:te)},ForOfStatement:function(A,N){return this.generateIterationForStatement("of",A,N&Q?ue:te)},LabeledStatement:function(A,N){return[A.label.name+":",this.maybeBlock(A.body,N&Q?ue:te)]},Program:function(A,N){var F,T,V,oe,se;for(oe=A.body.length,F=[v&&oe>0?`
|
|
1057
|
+
`:""],se=je,V=0;V<oe;++V)!v&&V===oe-1&&(se|=Q),C&&(V===0&&(A.body[0].leadingComments||pr(A.range[0],A.body[V].range[0],F)),V>0&&!A.body[V-1].trailingComments&&!A.body[V].leadingComments&&pr(A.body[V-1].range[1],A.body[V].range[0],F)),T=ct(this.generateStatement(A.body[V],se)),F.push(T),V+1<oe&&!ge(Pe(T).toString())&&(C&&A.body[V+1].leadingComments||F.push(m)),C&&V===oe-1&&(A.body[V].trailingComments||pr(A.body[V].range[1],A.range[1],F));return F},FunctionDeclaration:function(A,N){return[xr(A,!0),"function",Nr(A)||ut(),A.id?wt(A.id):"",this.generateFunctionBody(A)]},ReturnStatement:function(A,N){return A.argument?[Ae("return",this.generateExpression(A.argument,r.Sequence,L)),this.semicolon(N)]:["return"+this.semicolon(N)]},WhileStatement:function(A,N){var F,T=this;return Qe(function(){F=["while"+y+"(",T.generateExpression(A.test,r.Sequence,L),")"]}),F.push(this.maybeBlock(A.body,N&Q?ue:te)),F},WithStatement:function(A,N){var F,T=this;return Qe(function(){F=["with"+y+"(",T.generateExpression(A.object,r.Sequence,L),")"]}),F.push(this.maybeBlock(A.body,N&Q?ue:te)),F}},Ce(Ze.prototype,Ze.Statement),Ze.Expression={SequenceExpression:function(A,N,F){var T,V,oe;for(r.Sequence<N&&(F|=z),T=[],V=0,oe=A.expressions.length;V<oe;++V)T.push(this.generateExpression(A.expressions[V],r.Assignment,F)),V+1<oe&&T.push(","+y);return tt(T,r.Sequence,N)},AssignmentExpression:function(A,N,F){return this.generateAssignment(A.left,A.right,A.operator,N,F)},ArrowFunctionExpression:function(A,N,F){return tt(this.generateFunctionBody(A),r.ArrowFunction,N)},ConditionalExpression:function(A,N,F){return r.Conditional<N&&(F|=z),tt([this.generateExpression(A.test,r.Coalesce,F),y+"?"+y,this.generateExpression(A.consequent,r.Assignment,F),y+":"+y,this.generateExpression(A.alternate,r.Assignment,F)],r.Conditional,N)},LogicalExpression:function(A,N,F){return A.operator==="??"&&(F|=ae),this.BinaryExpression(A,N,F)},BinaryExpression:function(A,N,F){var T,V,oe,se,ce,me;return se=n[A.operator],V=A.operator==="**"?r.Postfix:se,oe=A.operator==="**"?se:se+1,se<N&&(F|=z),ce=this.generateExpression(A.left,V,F),me=ce.toString(),me.charCodeAt(me.length-1)===47&&i.code.isIdentifierPartES5(A.operator.charCodeAt(0))?T=[ce,ut(),A.operator]:T=Ae(ce,A.operator),ce=this.generateExpression(A.right,oe,F),A.operator==="/"&&ce.toString().charAt(0)==="/"||A.operator.slice(-1)==="<"&&ce.toString().slice(0,3)==="!--"?(T.push(ut()),T.push(ce)):T=Ae(T,ce),A.operator==="in"&&!(F&z)?["(",T,")"]:(A.operator==="||"||A.operator==="&&")&&F&ae?["(",T,")"]:tt(T,se,N)},CallExpression:function(A,N,F){var T,V,oe;for(T=[this.generateExpression(A.callee,r.Call,M)],A.optional&&T.push("?."),T.push("("),V=0,oe=A.arguments.length;V<oe;++V)T.push(this.generateExpression(A.arguments[V],r.Assignment,L)),V+1<oe&&T.push(","+y);return T.push(")"),F&R?tt(T,r.Call,N):["(",T,")"]},ChainExpression:function(A,N,F){r.OptionalChaining<N&&(F|=R);var T=this.generateExpression(A.expression,r.OptionalChaining,F);return tt(T,r.OptionalChaining,N)},NewExpression:function(A,N,F){var T,V,oe,se,ce;if(V=A.arguments.length,ce=F&U&&!b&&V===0?ie:K,T=Ae("new",this.generateExpression(A.callee,r.New,ce)),!(F&U)||b||V>0){for(T.push("("),oe=0,se=V;oe<se;++oe)T.push(this.generateExpression(A.arguments[oe],r.Assignment,L)),oe+1<se&&T.push(","+y);T.push(")")}return tt(T,r.New,N)},MemberExpression:function(A,N,F){var T,V;return T=[this.generateExpression(A.object,r.Call,F&R?M:K)],A.computed?(A.optional&&T.push("?."),T.push("["),T.push(this.generateExpression(A.property,r.Sequence,F&R?L:ie)),T.push("]")):(!A.optional&&A.object.type===t.Literal&&typeof A.object.value=="number"&&(V=Pe(T).toString(),V.indexOf(".")<0&&!/[eExX]/.test(V)&&i.code.isDecimalDigit(V.charCodeAt(V.length-1))&&!(V.length>=2&&V.charCodeAt(0)===48)&&T.push(" ")),T.push(A.optional?"?.":"."),T.push(wt(A.property))),tt(T,r.Member,N)},MetaProperty:function(A,N,F){var T;return T=[],T.push(typeof A.meta=="string"?A.meta:wt(A.meta)),T.push("."),T.push(typeof A.property=="string"?A.property:wt(A.property)),tt(T,r.Member,N)},UnaryExpression:function(A,N,F){var T,V,oe,se,ce;return V=this.generateExpression(A.argument,r.Unary,L),y===""?T=Ae(A.operator,V):(T=[A.operator],A.operator.length>2?T=Ae(T,V):(se=Pe(T).toString(),ce=se.charCodeAt(se.length-1),oe=V.toString().charCodeAt(0),((ce===43||ce===45)&&ce===oe||i.code.isIdentifierPartES5(ce)&&i.code.isIdentifierPartES5(oe))&&T.push(ut()),T.push(V))),tt(T,r.Unary,N)},YieldExpression:function(A,N,F){var T;return A.delegate?T="yield*":T="yield",A.argument&&(T=Ae(T,this.generateExpression(A.argument,r.Yield,L))),tt(T,r.Yield,N)},AwaitExpression:function(A,N,F){var T=Ae(A.all?"await*":"await",this.generateExpression(A.argument,r.Await,L));return tt(T,r.Await,N)},UpdateExpression:function(A,N,F){return A.prefix?tt([A.operator,this.generateExpression(A.argument,r.Unary,L)],r.Unary,N):tt([this.generateExpression(A.argument,r.Postfix,L),A.operator],r.Postfix,N)},FunctionExpression:function(A,N,F){var T=[xr(A,!0),"function"];return A.id?(T.push(Nr(A)||ut()),T.push(wt(A.id))):T.push(Nr(A)||y),T.push(this.generateFunctionBody(A)),T},ArrayPattern:function(A,N,F){return this.ArrayExpression(A,N,F,!0)},ArrayExpression:function(A,N,F,T){var V,oe,se=this;return A.elements.length?(oe=T?!1:A.elements.length>1,V=["[",oe?m:""],Qe(function(ce){var me,qe;for(me=0,qe=A.elements.length;me<qe;++me)A.elements[me]?(V.push(oe?ce:""),V.push(se.generateExpression(A.elements[me],r.Assignment,L))):(oe&&V.push(ce),me+1===qe&&V.push(",")),me+1<qe&&V.push(","+(oe?m:y))}),oe&&!ge(Pe(V).toString())&&V.push(m),V.push(oe?l:""),V.push("]"),V):"[]"},RestElement:function(A,N,F){return"..."+this.generatePattern(A.argument)},ClassExpression:function(A,N,F){var T,V;return T=["class"],A.id&&(T=Ae(T,this.generateExpression(A.id,r.Sequence,L))),A.superClass&&(V=Ae("extends",this.generateExpression(A.superClass,r.Unary,L)),T=Ae(T,V)),T.push(y),T.push(this.generateStatement(A.body,ue)),T},MethodDefinition:function(A,N,F){var T,V;return A.static?T=["static"+y]:T=[],A.kind==="get"||A.kind==="set"?V=[Ae(A.kind,this.generatePropertyKey(A.key,A.computed)),this.generateFunctionBody(A.value)]:V=[kr(A),this.generatePropertyKey(A.key,A.computed),this.generateFunctionBody(A.value)],Ae(T,V)},Property:function(A,N,F){return A.kind==="get"||A.kind==="set"?[A.kind,ut(),this.generatePropertyKey(A.key,A.computed),this.generateFunctionBody(A.value)]:A.shorthand?A.value.type==="AssignmentPattern"?this.AssignmentPattern(A.value,r.Sequence,L):this.generatePropertyKey(A.key,A.computed):A.method?[kr(A),this.generatePropertyKey(A.key,A.computed),this.generateFunctionBody(A.value)]:[this.generatePropertyKey(A.key,A.computed),":"+y,this.generateExpression(A.value,r.Assignment,L)]},ObjectExpression:function(A,N,F){var T,V,oe,se=this;return A.properties.length?(T=A.properties.length>1,Qe(function(){oe=se.generateExpression(A.properties[0],r.Sequence,L)}),!T&&!ye(Pe(oe).toString())?["{",y,oe,y,"}"]:(Qe(function(ce){var me,qe;if(V=["{",m,ce,oe],T)for(V.push(","+m),me=1,qe=A.properties.length;me<qe;++me)V.push(ce),V.push(se.generateExpression(A.properties[me],r.Sequence,L)),me+1<qe&&V.push(","+m)}),ge(Pe(V).toString())||V.push(m),V.push(l),V.push("}"),V)):"{}"},AssignmentPattern:function(A,N,F){return this.generateAssignment(A.left,A.right,"=",N,F)},ObjectPattern:function(A,N,F){var T,V,oe,se,ce,me=this;if(!A.properties.length)return"{}";if(se=!1,A.properties.length===1)ce=A.properties[0],ce.type===t.Property&&ce.value.type!==t.Identifier&&(se=!0);else for(V=0,oe=A.properties.length;V<oe;++V)if(ce=A.properties[V],ce.type===t.Property&&!ce.shorthand){se=!0;break}return T=["{",se?m:""],Qe(function(qe){var mt,jt;for(mt=0,jt=A.properties.length;mt<jt;++mt)T.push(se?qe:""),T.push(me.generateExpression(A.properties[mt],r.Sequence,L)),mt+1<jt&&T.push(","+(se?m:y))}),se&&!ge(Pe(T).toString())&&T.push(m),T.push(se?l:""),T.push("}"),T},ThisExpression:function(A,N,F){return"this"},Super:function(A,N,F){return"super"},Identifier:function(A,N,F){return wt(A)},ImportDefaultSpecifier:function(A,N,F){return wt(A.id||A.local)},ImportNamespaceSpecifier:function(A,N,F){var T=["*"],V=A.id||A.local;return V&&T.push(y+"as"+ut()+wt(V)),T},ImportSpecifier:function(A,N,F){var T=A.imported,V=[T.name],oe=A.local;return oe&&oe.name!==T.name&&V.push(ut()+"as"+ut()+wt(oe)),V},ExportSpecifier:function(A,N,F){var T=A.local,V=[T.name],oe=A.exported;return oe&&oe.name!==T.name&&V.push(ut()+"as"+ut()+wt(oe)),V},Literal:function(A,N,F){var T;if(A.hasOwnProperty("raw")&&P&&S.raw)try{if(T=P(A.raw).body[0].expression,T.type===t.Literal&&T.value===A.value)return A.raw}catch{}return A.regex?"/"+A.regex.pattern+"/"+A.regex.flags:typeof A.value=="bigint"?A.value.toString()+"n":A.bigint?A.bigint+"n":A.value===null?"null":typeof A.value=="string"?Vt(A.value):typeof A.value=="number"?_e(A.value):typeof A.value=="boolean"?A.value?"true":"false":lt(A.value)},GeneratorExpression:function(A,N,F){return this.ComprehensionExpression(A,N,F)},ComprehensionExpression:function(A,N,F){var T,V,oe,se,ce=this;return T=A.type===t.GeneratorExpression?["("]:["["],S.moz.comprehensionExpressionStartsWithAssignment&&(se=this.generateExpression(A.body,r.Assignment,L),T.push(se)),A.blocks&&Qe(function(){for(V=0,oe=A.blocks.length;V<oe;++V)se=ce.generateExpression(A.blocks[V],r.Sequence,L),V>0||S.moz.comprehensionExpressionStartsWithAssignment?T=Ae(T,se):T.push(se)}),A.filter&&(T=Ae(T,"if"+y),se=this.generateExpression(A.filter,r.Sequence,L),T=Ae(T,["(",se,")"])),S.moz.comprehensionExpressionStartsWithAssignment||(se=this.generateExpression(A.body,r.Assignment,L),T=Ae(T,se)),T.push(A.type===t.GeneratorExpression?")":"]"),T},ComprehensionBlock:function(A,N,F){var T;return A.left.type===t.VariableDeclaration?T=[A.left.kind,ut(),this.generateStatement(A.left.declarations[0],ve)]:T=this.generateExpression(A.left,r.Call,L),T=Ae(T,A.of?"of":"in"),T=Ae(T,this.generateExpression(A.right,r.Sequence,L)),["for"+y+"(",T,")"]},SpreadElement:function(A,N,F){return["...",this.generateExpression(A.argument,r.Assignment,L)]},TaggedTemplateExpression:function(A,N,F){var T=M;F&R||(T=K);var V=[this.generateExpression(A.tag,r.Call,T),this.generateExpression(A.quasi,r.Primary,X)];return tt(V,r.TaggedTemplate,N)},TemplateElement:function(A,N,F){return A.value.raw},TemplateLiteral:function(A,N,F){var T,V,oe;for(T=["`"],V=0,oe=A.quasis.length;V<oe;++V)T.push(this.generateExpression(A.quasis[V],r.Primary,L)),V+1<oe&&(T.push("${"+y),T.push(this.generateExpression(A.expressions[V],r.Sequence,L)),T.push(y+"}"));return T.push("`"),T},ModuleSpecifier:function(A,N,F){return this.Literal(A,N,F)},ImportExpression:function(A,N,F){return tt(["import(",this.generateExpression(A.source,r.Assignment,L),")"],r.Call,N)}},Ce(Ze.prototype,Ze.Expression),Ze.prototype.generateExpression=function(A,N,F){var T,V;return V=A.type||t.Property,S.verbatim&&A.hasOwnProperty(S.verbatim)?ta(A,N):(T=this[V](A,N,F),S.comment&&(T=An(A,T)),Pe(T,A))},Ze.prototype.generateStatement=function(A,N){var F,T;return F=this[A.type](A,N),S.comment&&(F=An(A,F)),T=Pe(F).toString(),A.type===t.Program&&!v&&m===""&&T.charAt(T.length-1)===`
|
|
1058
|
+
`&&(F=w?Pe(F).replaceRight(/\s+$/,""):T.replace(/\s+$/,"")),Pe(F,A)};function _n(A){var N;if(N=new Ze,W(A))return N.generateStatement(A,te);if(B(A))return N.generateExpression(A,r.Sequence,L);throw new Error("Unknown node type: "+A.type)}function dr(A,N){var F=Z(),T,V;return N!=null?(typeof N.indent=="string"&&(F.format.indent.style=N.indent),typeof N.base=="number"&&(F.format.indent.base=N.base),N=Se(F,N),u=N.format.indent.style,typeof N.base=="string"?l=N.base:l=pe(u,N.format.indent.base)):(N=F,u=N.format.indent.style,l=pe(u,N.format.indent.base)),c=N.format.json,p=N.format.renumber,d=c?!1:N.format.hexadecimal,h=c?"double":N.format.quotes,f=N.format.escapeless,m=N.format.newline,y=N.format.space,N.format.compact&&(m=y=u=l=""),b=N.format.parentheses,g=N.format.semicolons,v=N.format.safeConcatenation,D=N.directive,P=c?null:N.parse,w=N.sourceMap,E=N.sourceCode,C=N.format.preserveBlankLines&&E!==null,S=N,w&&(e.browser?a=global.sourceMap.SourceNode:a=NW().SourceNode),T=_n(A),w?(V=T.toStringWithSourceMap({file:N.file,sourceRoot:N.sourceMapRoot}),N.sourceContent&&V.map.setSourceContent(N.sourceMap,N.sourceContent),N.sourceMapWithCode?V:V.map.toString()):(V={code:T.toString(),map:null},N.sourceMapWithCode?V:V.code)}_={indent:{style:"",base:0},renumber:!0,hexadecimal:!0,quotes:"auto",escapeless:!0,compact:!0,parentheses:!1,semicolons:!1},k=Z().format,e.version=kW().version,e.generate=dr,e.attachComments=o.attachComments,e.Precedence=Se({},r),e.browser=!1,e.FORMAT_MINIFY=_,e.FORMAT_DEFAULTS=k})()}}),th={};Uc(th,{Node:()=>fi,Parser:()=>nt,Position:()=>ia,SourceLocation:()=>no,TokContext:()=>nr,Token:()=>hi,TokenType:()=>Ve,defaultOptions:()=>Zi,getLineInfo:()=>nh,isIdentifierChar:()=>oa,isIdentifierStart:()=>cn,isNewLine:()=>Ya,keywordTypes:()=>Pi,lineBreak:()=>Yt,lineBreakG:()=>da,nonASCIIwhitespace:()=>pl,parse:()=>JW,parseExpressionAt:()=>zW,tokContexts:()=>dt,tokTypes:()=>$,tokenizer:()=>GW,version:()=>uh});function rh(e,t){for(var r=65536,n=0;n<t.length;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}}function cn(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gN.test(String.fromCharCode(e)):t===!1?!1:rh(e,Xb)}function oa(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&&bN.test(String.fromCharCode(e)):t===!1?!1:rh(e,Xb)||rh(e,vN)}function hr(e,t){return new Ve(e,{beforeExpr:!0,binop:t})}function $e(e,t){return t===void 0&&(t={}),t.keyword=e,Pi[e]=new Ve(e,t)}function Ya(e,t){return e===10||e===13||!t&&(e===8232||e===8233)}function ul(e,t){return EN.call(e,t)}function pa(e){return new RegExp("^(?:"+e.replace(/ /g,"|")+")$")}function nh(e,t){for(var r=1,n=0;;){da.lastIndex=n;var a=da.exec(e);if(a&&a.index<t)++r,n=a.index+a[0].length;else return new ia(r,t-n)}}function jW(e){var t={};for(var r in Zi)t[r]=e&&ul(e,r)?e[r]:Zi[r];if(t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),ah(t.onToken)){var n=t.onToken;t.onToken=function(a){return n.push(a)}}return ah(t.onComment)&&(t.onComment=qW(t,t.onComment)),t}function qW(e,t){return function(r,n,a,o,i,l){var u={type:r?"Block":"Line",value:n,start:a,end:o};e.locations&&(u.loc=new no(this,i,l)),e.ranges&&(u.range=[a,o]),t.push(u)}}function _p(e,t){return Ka|(e?oh:0)|(t?ih:0)}function Bs(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}function dE(e,t,r,n){return e.type=t,e.end=r,this.options.locations&&(e.loc.end=n),this.options.ranges&&(e.range[1]=r),e}function Tp(e){var t=lh[e]={binary:pa(CN[e]+" "+sh),nonBinary:{General_Category:pa(sh),Script:pa(wN[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}function js(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function fE(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}function MW(e){return cn(e,!0)||e===36||e===95}function LW(e){return oa(e,!0)||e===36||e===95||e===8204||e===8205}function mN(e){return e>=65&&e<=90||e>=97&&e<=122}function $W(e){return e>=0&&e<=1114111}function UW(e){return e===100||e===68||e===115||e===83||e===119||e===87}function yN(e){return mN(e)||e===95}function VW(e){return yN(e)||cl(e)}function cl(e){return e>=48&&e<=57}function hE(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function mE(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function yE(e){return e>=48&&e<=55}function HW(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function gE(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}function Pp(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function JW(e,t){return nt.parse(e,t)}function zW(e,t,r){return nt.parseExpressionAt(e,t,r)}function GW(e,t){return nt.tokenizer(e,t)}var qs,Ms,bE,vE,Ls,Dp,gN,bN,Xb,vN,Ve,Zt,Wt,Pi,$,Yt,da,pl,er,Op,EN,EE,ah,ia,no,Zi,Ua,Ka,$s,oh,ih,Rp,Fp,Ip,Np,kp,Us,jr,Bp,jp,qp,nt,Tn,Lt,CE,Oe,Vs,wE,xE,Va,Hs,Mp,qr,Ne,AE,Zo,an,SE,fi,ei,nr,dt,ti,Lp,$p,_E,CN,sh,Up,Vp,TE,wN,lh,xe,Mr,hi,Me,Hp,uh,ch=fz({"../../node_modules/acorn/dist/acorn.mjs"(){qs={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"},Ms="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",bE={5:Ms,"5module":Ms+" export import",6:Ms+" const class extends export import super"},vE=/^in(stanceof)?$/,Ls="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Dp="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_",gN=new RegExp("["+Ls+"]"),bN=new RegExp("["+Ls+Dp+"]"),Ls=Dp=null,Xb=[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],vN=[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],Ve=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},Zt={beforeExpr:!0},Wt={startsExpr:!0},Pi={},$={num:new Ve("num",Wt),regexp:new Ve("regexp",Wt),string:new Ve("string",Wt),name:new Ve("name",Wt),eof:new Ve("eof"),bracketL:new Ve("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Ve("]"),braceL:new Ve("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Ve("}"),parenL:new Ve("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Ve(")"),comma:new Ve(",",Zt),semi:new Ve(";",Zt),colon:new Ve(":",Zt),dot:new Ve("."),question:new Ve("?",Zt),questionDot:new Ve("?."),arrow:new Ve("=>",Zt),template:new Ve("template"),invalidTemplate:new Ve("invalidTemplate"),ellipsis:new Ve("...",Zt),backQuote:new Ve("`",Wt),dollarBraceL:new Ve("${",{beforeExpr:!0,startsExpr:!0}),eq:new Ve("=",{beforeExpr:!0,isAssign:!0}),assign:new Ve("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Ve("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Ve("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:hr("||",1),logicalAND:hr("&&",2),bitwiseOR:hr("|",3),bitwiseXOR:hr("^",4),bitwiseAND:hr("&",5),equality:hr("==/!=/===/!==",6),relational:hr("</>/<=/>=",7),bitShift:hr("<</>>/>>>",8),plusMin:new Ve("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:hr("%",10),star:hr("*",10),slash:hr("/",10),starstar:new Ve("**",{beforeExpr:!0}),coalesce:hr("??",1),_break:$e("break"),_case:$e("case",Zt),_catch:$e("catch"),_continue:$e("continue"),_debugger:$e("debugger"),_default:$e("default",Zt),_do:$e("do",{isLoop:!0,beforeExpr:!0}),_else:$e("else",Zt),_finally:$e("finally"),_for:$e("for",{isLoop:!0}),_function:$e("function",Wt),_if:$e("if"),_return:$e("return",Zt),_switch:$e("switch"),_throw:$e("throw",Zt),_try:$e("try"),_var:$e("var"),_const:$e("const"),_while:$e("while",{isLoop:!0}),_with:$e("with"),_new:$e("new",{beforeExpr:!0,startsExpr:!0}),_this:$e("this",Wt),_super:$e("super",Wt),_class:$e("class",Wt),_extends:$e("extends",Zt),_export:$e("export"),_import:$e("import",Wt),_null:$e("null",Wt),_true:$e("true",Wt),_false:$e("false",Wt),_in:$e("in",{beforeExpr:!0,binop:7}),_instanceof:$e("instanceof",{beforeExpr:!0,binop:7}),_typeof:$e("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:$e("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:$e("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Yt=/\r\n?|\n|\u2028|\u2029/,da=new RegExp(Yt.source,"g"),pl=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,er=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Op=Object.prototype,EN=Op.hasOwnProperty,EE=Op.toString,ah=Array.isArray||function(e){return EE.call(e)==="[object Array]"},ia=function(e,t){this.line=e,this.column=t},ia.prototype.offset=function(e){return new ia(this.line,this.column+e)},no=function(e,t,r){this.start=t,this.end=r,e.sourceFile!==null&&(this.source=e.sourceFile)},Zi={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},Ua=1,Ka=2,$s=Ua|Ka,oh=4,ih=8,Rp=16,Fp=32,Ip=64,Np=128,kp=0,Us=1,jr=2,Bp=3,jp=4,qp=5,nt=function(e,t,r){this.options=e=jW(e),this.sourceFile=e.sourceFile,this.keywords=pa(bE[e.ecmaVersion>=6?6:e.sourceType==="module"?"5module":5]);var n="";if(e.allowReserved!==!0){for(var a=e.ecmaVersion;!(n=qs[a]);a--);e.sourceType==="module"&&(n+=" await")}this.reservedWords=pa(n);var o=(n?n+" ":"")+qs.strict;this.reservedWordsStrict=pa(o),this.reservedWordsStrictBind=pa(o+" "+qs.strictBind),this.input=String(t),this.containsEsc=!1,r?(this.pos=r,this.lineStart=this.input.lastIndexOf(`
|
|
1059
|
+
`,r-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Yt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=$.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(Ua),this.regexpState=null},Tn={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0}},nt.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Tn.inFunction.get=function(){return(this.currentVarScope().flags&Ka)>0},Tn.inGenerator.get=function(){return(this.currentVarScope().flags&ih)>0},Tn.inAsync.get=function(){return(this.currentVarScope().flags&oh)>0},Tn.allowSuper.get=function(){return(this.currentThisScope().flags&Ip)>0},Tn.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Np)>0},Tn.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},nt.prototype.inNonArrowFunction=function(){return(this.currentThisScope().flags&Ka)>0},nt.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=this,n=0;n<e.length;n++)r=e[n](r);return r},nt.parse=function(e,t){return new this(t,e).parse()},nt.parseExpressionAt=function(e,t,r){var n=new this(r,e,t);return n.nextToken(),n.parseExpression()},nt.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(nt.prototype,Tn),Lt=nt.prototype,CE=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/,Lt.strictDirective=function(e){for(;;){er.lastIndex=e,e+=er.exec(this.input)[0].length;var t=CE.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){er.lastIndex=e+t[0].length;var r=er.exec(this.input),n=r.index+r[0].length,a=this.input.charAt(n);return a===";"||a==="}"||Yt.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(a)||a==="!"&&this.input.charAt(n+1)==="=")}e+=t[0].length,er.lastIndex=e,e+=er.exec(this.input)[0].length,this.input[e]===";"&&e++}},Lt.eat=function(e){return this.type===e?(this.next(),!0):!1},Lt.isContextual=function(e){return this.type===$.name&&this.value===e&&!this.containsEsc},Lt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Lt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Lt.canInsertSemicolon=function(){return this.type===$.eof||this.type===$.braceR||Yt.test(this.input.slice(this.lastTokEnd,this.start))},Lt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Lt.semicolon=function(){!this.eat($.semi)&&!this.insertSemicolon()&&this.unexpected()},Lt.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},Lt.expect=function(e){this.eat(e)||this.unexpected()},Lt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")},Lt.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var r=t?e.parenthesizedAssign:e.parenthesizedBind;r>-1&&this.raiseRecoverable(r,"Parenthesized pattern")}},Lt.checkExpressionErrors=function(e,t){if(!e)return!1;var r=e.shorthandAssign,n=e.doubleProto;if(!t)return r>=0||n>=0;r>=0&&this.raise(r,"Shorthand property assignments are valid only in destructuring patterns"),n>=0&&this.raiseRecoverable(n,"Redefinition of __proto__ property")},Lt.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")},Lt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"},Oe=nt.prototype,Oe.parseTopLevel=function(e){var t={};for(e.body||(e.body=[]);this.type!==$.eof;){var r=this.parseStatement(null,!0,t);e.body.push(r)}if(this.inModule)for(var n=0,a=Object.keys(this.undefinedExports);n<a.length;n+=1){var o=a[n];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")},Vs={kind:"loop"},wE={kind:"switch"},Oe.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;er.lastIndex=this.pos;var t=er.exec(this.input),r=this.pos+t[0].length,n=this.input.charCodeAt(r);if(n===91)return!0;if(e)return!1;if(n===123)return!0;if(cn(n,!0)){for(var a=r+1;oa(this.input.charCodeAt(a),!0);)++a;var o=this.input.slice(r,a);if(!vE.test(o))return!0}return!1},Oe.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;er.lastIndex=this.pos;var e=er.exec(this.input),t=this.pos+e[0].length;return!Yt.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!oa(this.input.charAt(t+8)))},Oe.parseStatement=function(e,t,r){var n=this.type,a=this.startNode(),o;switch(this.isLet(e)&&(n=$._var,o="let"),n){case $._break:case $._continue:return this.parseBreakContinueStatement(a,n.keyword);case $._debugger:return this.parseDebuggerStatement(a);case $._do:return this.parseDoStatement(a);case $._for:return this.parseForStatement(a);case $._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case $._class:return e&&this.unexpected(),this.parseClass(a,!0);case $._if:return this.parseIfStatement(a);case $._return:return this.parseReturnStatement(a);case $._switch:return this.parseSwitchStatement(a);case $._throw:return this.parseThrowStatement(a);case $._try:return this.parseTryStatement(a);case $._const:case $._var:return o=o||this.value,e&&o!=="var"&&this.unexpected(),this.parseVarStatement(a,o);case $._while:return this.parseWhileStatement(a);case $._with:return this.parseWithStatement(a);case $.braceL:return this.parseBlock(!0,a);case $.semi:return this.parseEmptyStatement(a);case $._export:case $._import:if(this.options.ecmaVersion>10&&n===$._import){er.lastIndex=this.pos;var i=er.exec(this.input),l=this.pos+i[0].length,u=this.input.charCodeAt(l);if(u===40||u===46)return this.parseExpressionStatement(a,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'")),n===$._import?this.parseImport(a):this.parseExport(a,r);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var c=this.value,p=this.parseExpression();return n===$.name&&p.type==="Identifier"&&this.eat($.colon)?this.parseLabeledStatement(a,c,p,e):this.parseExpressionStatement(a,p)}},Oe.parseBreakContinueStatement=function(e,t){var r=t==="break";this.next(),this.eat($.semi)||this.insertSemicolon()?e.label=null:this.type!==$.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var n=0;n<this.labels.length;++n){var a=this.labels[n];if((e.label==null||a.name===e.label.name)&&(a.kind!=null&&(r||a.kind==="loop")||e.label&&r))break}return n===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,r?"BreakStatement":"ContinueStatement")},Oe.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},Oe.parseDoStatement=function(e){return this.next(),this.labels.push(Vs),e.body=this.parseStatement("do"),this.labels.pop(),this.expect($._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat($.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},Oe.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(Vs),this.enterScope(0),this.expect($.parenL),this.type===$.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var r=this.isLet();if(this.type===$._var||this.type===$._const||r){var n=this.startNode(),a=r?"let":this.value;return this.next(),this.parseVar(n,!0,a),this.finishNode(n,"VariableDeclaration"),(this.type===$._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===$._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,n)):(t>-1&&this.unexpected(t),this.parseFor(e,n))}var o=new Bs,i=this.parseExpression(!0,o);return this.type===$._in||this.options.ecmaVersion>=6&&this.isContextual("of")?(this.options.ecmaVersion>=9&&(this.type===$._in?t>-1&&this.unexpected(t):e.await=t>-1),this.toAssignable(i,!1,o),this.checkLVal(i),this.parseForIn(e,i)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,i))},Oe.parseFunctionStatement=function(e,t,r){return this.next(),this.parseFunction(e,Va|(r?0:Hs),!1,t)},Oe.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat($._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},Oe.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat($.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},Oe.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect($.braceL),this.labels.push(wE),this.enterScope(0);for(var t,r=!1;this.type!==$.braceR;)if(this.type===$._case||this.type===$._default){var n=this.type===$._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),r=!0,t.test=null),this.expect($.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")},Oe.parseThrowStatement=function(e){return this.next(),Yt.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")},xE=[],Oe.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===$._catch){var t=this.startNode();if(this.next(),this.eat($.parenL)){t.param=this.parseBindingAtom();var r=t.param.type==="Identifier";this.enterScope(r?Fp:0),this.checkLVal(t.param,r?jp:jr),this.expect($.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($._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},Oe.parseVarStatement=function(e,t){return this.next(),this.parseVar(e,!1,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},Oe.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Vs),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},Oe.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")},Oe.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},Oe.parseLabeledStatement=function(e,t,r,n){for(var a=0,o=this.labels;a<o.length;a+=1){var i=o[a];i.name===t&&this.raise(r.start,"Label '"+t+"' is already declared")}for(var l=this.type.isLoop?"loop":this.type===$._switch?"switch":null,u=this.labels.length-1;u>=0;u--){var c=this.labels[u];if(c.statementStart===e.start)c.statementStart=this.start,c.kind=l;else break}return this.labels.push({name:t,kind:l,statementStart:this.start}),e.body=this.parseStatement(n?n.indexOf("label")===-1?n+"label":n:"label"),this.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")},Oe.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},Oe.parseBlock=function(e,t,r){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect($.braceL),e&&this.enterScope(0);this.type!==$.braceR;){var n=this.parseStatement(null);t.body.push(n)}return r&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},Oe.parseFor=function(e,t){return e.init=t,this.expect($.semi),e.test=this.type===$.semi?null:this.parseExpression(),this.expect($.semi),e.update=this.type===$.parenR?null:this.parseExpression(),this.expect($.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},Oe.parseForIn=function(e,t){var r=this.type===$._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!r||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")?this.raise(t.start,(r?"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=r?this.parseExpression():this.parseMaybeAssign(),this.expect($.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")},Oe.parseVar=function(e,t,r){for(e.declarations=[],e.kind=r;;){var n=this.startNode();if(this.parseVarId(n,r),this.eat($.eq)?n.init=this.parseMaybeAssign(t):r==="const"&&!(this.type===$._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():n.id.type!=="Identifier"&&!(t&&(this.type===$._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):n.init=null,e.declarations.push(this.finishNode(n,"VariableDeclarator")),!this.eat($.comma))break}return e},Oe.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLVal(e.id,t==="var"?Us:jr,!1)},Va=1,Hs=2,Mp=4,Oe.parseFunction=function(e,t,r,n){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!n)&&(this.type===$.star&&t&Hs&&this.unexpected(),e.generator=this.eat($.star)),this.options.ecmaVersion>=8&&(e.async=!!n),t&Va&&(e.id=t&Mp&&this.type!==$.name?null:this.parseIdent(),e.id&&!(t&Hs)&&this.checkLVal(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Us:jr:Bp));var a=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_p(e.async,e.generator)),t&Va||(e.id=this.type===$.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,r,!1),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(e,t&Va?"FunctionDeclaration":"FunctionExpression")},Oe.parseFunctionParams=function(e){this.expect($.parenL),e.params=this.parseBindingList($.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Oe.parseClass=function(e,t){this.next();var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var n=this.startNode(),a=!1;for(n.body=[],this.expect($.braceL);this.type!==$.braceR;){var o=this.parseClassElement(e.superClass!==null);o&&(n.body.push(o),o.type==="MethodDefinition"&&o.kind==="constructor"&&(a&&this.raise(o.start,"Duplicate constructor in the same class"),a=!0))}return this.strict=r,this.next(),e.body=this.finishNode(n,"ClassBody"),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},Oe.parseClassElement=function(e){var t=this;if(this.eat($.semi))return null;var r=this.startNode(),n=function(u,c){c===void 0&&(c=!1);var p=t.start,d=t.startLoc;return t.eatContextual(u)?t.type!==$.parenL&&(!c||!t.canInsertSemicolon())?!0:(r.key&&t.unexpected(),r.computed=!1,r.key=t.startNodeAt(p,d),r.key.name=u,t.finishNode(r.key,"Identifier"),!1):!1};r.kind="method",r.static=n("static");var a=this.eat($.star),o=!1;a||(this.options.ecmaVersion>=8&&n("async",!0)?(o=!0,a=this.options.ecmaVersion>=9&&this.eat($.star)):n("get")?r.kind="get":n("set")&&(r.kind="set")),r.key||this.parsePropertyName(r);var i=r.key,l=!1;return!r.computed&&!r.static&&(i.type==="Identifier"&&i.name==="constructor"||i.type==="Literal"&&i.value==="constructor")?(r.kind!=="method"&&this.raise(i.start,"Constructor can't have get/set modifier"),a&&this.raise(i.start,"Constructor can't be a generator"),o&&this.raise(i.start,"Constructor can't be an async method"),r.kind="constructor",l=e):r.static&&i.type==="Identifier"&&i.name==="prototype"&&this.raise(i.start,"Classes may not have a static property named prototype"),this.parseClassMethod(r,a,o,l),r.kind==="get"&&r.value.params.length!==0&&this.raiseRecoverable(r.value.start,"getter should have no params"),r.kind==="set"&&r.value.params.length!==1&&this.raiseRecoverable(r.value.start,"setter should have exactly one param"),r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params"),r},Oe.parseClassMethod=function(e,t,r,n){return e.value=this.parseMethod(t,r,n),this.finishNode(e,"MethodDefinition")},Oe.parseClassId=function(e,t){this.type===$.name?(e.id=this.parseIdent(),t&&this.checkLVal(e.id,jr,!1)):(t===!0&&this.unexpected(),e.id=null)},Oe.parseClassSuper=function(e){e.superClass=this.eat($._extends)?this.parseExprSubscripts():null},Oe.parseExport=function(e,t){if(this.next(),this.eat($.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!==$.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat($._default)){this.checkExport(t,"default",this.lastTokStart);var r;if(this.type===$._function||(r=this.isAsyncFunction())){var n=this.startNode();this.next(),r&&this.next(),e.declaration=this.parseFunction(n,Va|Mp,!1,r)}else if(this.type===$._class){var a=this.startNode();e.declaration=this.parseClass(a,"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!==$.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var o=0,i=e.specifiers;o<i.length;o+=1){var l=i[o];this.checkUnreserved(l.local),this.checkLocalExport(l.local)}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},Oe.checkExport=function(e,t,r){e&&(ul(e,t)&&this.raiseRecoverable(r,"Duplicate export '"+t+"'"),e[t]=!0)},Oe.checkPatternExport=function(e,t){var r=t.type;if(r==="Identifier")this.checkExport(e,t.name,t.start);else if(r==="ObjectPattern")for(var n=0,a=t.properties;n<a.length;n+=1){var o=a[n];this.checkPatternExport(e,o)}else if(r==="ArrayPattern")for(var i=0,l=t.elements;i<l.length;i+=1){var u=l[i];u&&this.checkPatternExport(e,u)}else r==="Property"?this.checkPatternExport(e,t.value):r==="AssignmentPattern"?this.checkPatternExport(e,t.left):r==="RestElement"?this.checkPatternExport(e,t.argument):r==="ParenthesizedExpression"&&this.checkPatternExport(e,t.expression)},Oe.checkVariableExport=function(e,t){if(e)for(var r=0,n=t;r<n.length;r+=1){var a=n[r];this.checkPatternExport(e,a.id)}},Oe.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},Oe.parseExportSpecifiers=function(e){var t=[],r=!0;for(this.expect($.braceL);!this.eat($.braceR);){if(r)r=!1;else if(this.expect($.comma),this.afterTrailingComma($.braceR))break;var n=this.startNode();n.local=this.parseIdent(!0),n.exported=this.eatContextual("as")?this.parseIdent(!0):n.local,this.checkExport(e,n.exported.name,n.exported.start),t.push(this.finishNode(n,"ExportSpecifier"))}return t},Oe.parseImport=function(e){return this.next(),this.type===$.string?(e.specifiers=xE,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===$.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},Oe.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===$.name){var r=this.startNode();if(r.local=this.parseIdent(),this.checkLVal(r.local,jr),e.push(this.finishNode(r,"ImportDefaultSpecifier")),!this.eat($.comma))return e}if(this.type===$.star){var n=this.startNode();return this.next(),this.expectContextual("as"),n.local=this.parseIdent(),this.checkLVal(n.local,jr),e.push(this.finishNode(n,"ImportNamespaceSpecifier")),e}for(this.expect($.braceL);!this.eat($.braceR);){if(t)t=!1;else if(this.expect($.comma),this.afterTrailingComma($.braceR))break;var a=this.startNode();a.imported=this.parseIdent(!0),this.eatContextual("as")?a.local=this.parseIdent():(this.checkUnreserved(a.imported),a.local=a.imported),this.checkLVal(a.local,jr),e.push(this.finishNode(a,"ImportSpecifier"))}return e},Oe.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)},Oe.isDirectiveCandidate=function(e){return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")},qr=nt.prototype,qr.toAssignable=function(e,t,r){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",r&&this.checkPatternErrors(r,!0);for(var n=0,a=e.properties;n<a.length;n+=1){var o=a[n];this.toAssignable(o,t),o.type==="RestElement"&&(o.argument.type==="ArrayPattern"||o.argument.type==="ObjectPattern")&&this.raise(o.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",r&&this.checkPatternErrors(r,!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,r);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 r&&this.checkPatternErrors(r,!0);return e},qr.toAssignableList=function(e,t){for(var r=e.length,n=0;n<r;n++){var a=e[n];a&&this.toAssignable(a,t)}if(r){var o=e[r-1];this.options.ecmaVersion===6&&t&&o&&o.type==="RestElement"&&o.argument.type!=="Identifier"&&this.unexpected(o.argument.start)}return e},qr.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},qr.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==$.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},qr.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case $.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList($.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case $.braceL:return this.parseObj(!0)}return this.parseIdent()},qr.parseBindingList=function(e,t,r){for(var n=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect($.comma),t&&this.type===$.comma)n.push(null);else{if(r&&this.afterTrailingComma(e))break;if(this.type===$.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),n.push(o),this.type===$.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else{var i=this.parseMaybeDefault(this.start,this.startLoc);this.parseBindingListItem(i),n.push(i)}}return n},qr.parseBindingListItem=function(e){return e},qr.parseMaybeDefault=function(e,t,r){if(r=r||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat($.eq))return r;var n=this.startNodeAt(e,t);return n.left=r,n.right=this.parseMaybeAssign(),this.finishNode(n,"AssignmentPattern")},qr.checkLVal=function(e,t,r){switch(t===void 0&&(t=kp),e.type){case"Identifier":t===jr&&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"),r&&(ul(r,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),r[e.name]=!0),t!==kp&&t!==qp&&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 n=0,a=e.properties;n<a.length;n+=1){var o=a[n];this.checkLVal(o,t,r)}break;case"Property":this.checkLVal(e.value,t,r);break;case"ArrayPattern":for(var i=0,l=e.elements;i<l.length;i+=1){var u=l[i];u&&this.checkLVal(u,t,r)}break;case"AssignmentPattern":this.checkLVal(e.left,t,r);break;case"RestElement":this.checkLVal(e.argument,t,r);break;case"ParenthesizedExpression":this.checkLVal(e.expression,t,r);break;default:this.raise(e.start,(t?"Binding":"Assigning to")+" rvalue")}},Ne=nt.prototype,Ne.checkPropClash=function(e,t,r){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var n=e.key,a;switch(n.type){case"Identifier":a=n.name;break;case"Literal":a=String(n.value);break;default:return}var o=e.kind;if(this.options.ecmaVersion>=6){a==="__proto__"&&o==="init"&&(t.proto&&(r?r.doubleProto<0&&(r.doubleProto=n.start):this.raiseRecoverable(n.start,"Redefinition of __proto__ property")),t.proto=!0);return}a="$"+a;var i=t[a];if(i){var l;o==="init"?l=this.strict&&i.init||i.get||i.set:l=i.init||i[o],l&&this.raiseRecoverable(n.start,"Redefinition of property")}else i=t[a]={init:!1,get:!1,set:!1};i[o]=!0}},Ne.parseExpression=function(e,t){var r=this.start,n=this.startLoc,a=this.parseMaybeAssign(e,t);if(this.type===$.comma){var o=this.startNodeAt(r,n);for(o.expressions=[a];this.eat($.comma);)o.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(o,"SequenceExpression")}return a},Ne.parseMaybeAssign=function(e,t,r){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var n=!1,a=-1,o=-1;t?(a=t.parenthesizedAssign,o=t.trailingComma,t.parenthesizedAssign=t.trailingComma=-1):(t=new Bs,n=!0);var i=this.start,l=this.startLoc;(this.type===$.parenL||this.type===$.name)&&(this.potentialArrowAt=this.start);var u=this.parseMaybeConditional(e,t);if(r&&(u=r.call(this,u,i,l)),this.type.isAssign){var c=this.startNodeAt(i,l);return c.operator=this.value,c.left=this.type===$.eq?this.toAssignable(u,!1,t):u,n||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=c.left.start&&(t.shorthandAssign=-1),this.checkLVal(u),this.next(),c.right=this.parseMaybeAssign(e),this.finishNode(c,"AssignmentExpression")}else n&&this.checkExpressionErrors(t,!0);return a>-1&&(t.parenthesizedAssign=a),o>-1&&(t.trailingComma=o),u},Ne.parseMaybeConditional=function(e,t){var r=this.start,n=this.startLoc,a=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return a;if(this.eat($.question)){var o=this.startNodeAt(r,n);return o.test=a,o.consequent=this.parseMaybeAssign(),this.expect($.colon),o.alternate=this.parseMaybeAssign(e),this.finishNode(o,"ConditionalExpression")}return a},Ne.parseExprOps=function(e,t){var r=this.start,n=this.startLoc,a=this.parseMaybeUnary(t,!1);return this.checkExpressionErrors(t)||a.start===r&&a.type==="ArrowFunctionExpression"?a:this.parseExprOp(a,r,n,-1,e)},Ne.parseExprOp=function(e,t,r,n,a){var o=this.type.binop;if(o!=null&&(!a||this.type!==$._in)&&o>n){var i=this.type===$.logicalOR||this.type===$.logicalAND,l=this.type===$.coalesce;l&&(o=$.logicalAND.binop);var u=this.value;this.next();var c=this.start,p=this.startLoc,d=this.parseExprOp(this.parseMaybeUnary(null,!1),c,p,o,a),h=this.buildBinary(t,r,e,d,u,i||l);return(i&&this.type===$.coalesce||l&&(this.type===$.logicalOR||this.type===$.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(h,t,r,n,a)}return e},Ne.buildBinary=function(e,t,r,n,a,o){var i=this.startNodeAt(e,t);return i.left=r,i.operator=a,i.right=n,this.finishNode(i,o?"LogicalExpression":"BinaryExpression")},Ne.parseMaybeUnary=function(e,t){var r=this.start,n=this.startLoc,a;if(this.isContextual("await")&&(this.inAsync||!this.inFunction&&this.options.allowAwaitOutsideFunction))a=this.parseAwait(),t=!0;else if(this.type.prefix){var o=this.startNode(),i=this.type===$.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),i?this.checkLVal(o.argument):this.strict&&o.operator==="delete"&&o.argument.type==="Identifier"?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):t=!0,a=this.finishNode(o,i?"UpdateExpression":"UnaryExpression")}else{if(a=this.parseExprSubscripts(e),this.checkExpressionErrors(e))return a;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(r,n);l.operator=this.value,l.prefix=!1,l.argument=a,this.checkLVal(a),this.next(),a=this.finishNode(l,"UpdateExpression")}}return!t&&this.eat($.starstar)?this.buildBinary(r,n,a,this.parseMaybeUnary(null,!1),"**",!1):a},Ne.parseExprSubscripts=function(e){var t=this.start,r=this.startLoc,n=this.parseExprAtom(e);if(n.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return n;var a=this.parseSubscripts(n,t,r);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1)),a},Ne.parseSubscripts=function(e,t,r,n){for(var a=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,o=!1;;){var i=this.parseSubscript(e,t,r,n,a,o);if(i.optional&&(o=!0),i===e||i.type==="ArrowFunctionExpression"){if(o){var l=this.startNodeAt(t,r);l.expression=i,i=this.finishNode(l,"ChainExpression")}return i}e=i}},Ne.parseSubscript=function(e,t,r,n,a,o){var i=this.options.ecmaVersion>=11,l=i&&this.eat($.questionDot);n&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var u=this.eat($.bracketL);if(u||l&&this.type!==$.parenL&&this.type!==$.backQuote||this.eat($.dot)){var c=this.startNodeAt(t,r);c.object=e,c.property=u?this.parseExpression():this.parseIdent(this.options.allowReserved!=="never"),c.computed=!!u,u&&this.expect($.bracketR),i&&(c.optional=l),e=this.finishNode(c,"MemberExpression")}else if(!n&&this.eat($.parenL)){var p=new Bs,d=this.yieldPos,h=this.awaitPos,f=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var m=this.parseExprList($.parenR,this.options.ecmaVersion>=8,!1,p);if(a&&!l&&!this.canInsertSemicolon()&&this.eat($.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=d,this.awaitPos=h,this.awaitIdentPos=f,this.parseArrowExpression(this.startNodeAt(t,r),m,!0);this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=f||this.awaitIdentPos;var y=this.startNodeAt(t,r);y.callee=e,y.arguments=m,i&&(y.optional=l),e=this.finishNode(y,"CallExpression")}else if(this.type===$.backQuote){(l||o)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var b=this.startNodeAt(t,r);b.tag=e,b.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(b,"TaggedTemplateExpression")}return e},Ne.parseExprAtom=function(e){this.type===$.slash&&this.readRegexp();var t,r=this.potentialArrowAt===this.start;switch(this.type){case $._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),t=this.startNode(),this.next(),this.type===$.parenL&&!this.allowDirectSuper&&this.raise(t.start,"super() call outside constructor of a subclass"),this.type!==$.dot&&this.type!==$.bracketL&&this.type!==$.parenL&&this.unexpected(),this.finishNode(t,"Super");case $._this:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case $.name:var n=this.start,a=this.startLoc,o=this.containsEsc,i=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&i.name==="async"&&!this.canInsertSemicolon()&&this.eat($._function))return this.parseFunction(this.startNodeAt(n,a),0,!1,!0);if(r&&!this.canInsertSemicolon()){if(this.eat($.arrow))return this.parseArrowExpression(this.startNodeAt(n,a),[i],!1);if(this.options.ecmaVersion>=8&&i.name==="async"&&this.type===$.name&&!o)return i=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat($.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,a),[i],!0)}return i;case $.regexp:var l=this.value;return t=this.parseLiteral(l.value),t.regex={pattern:l.pattern,flags:l.flags},t;case $.num:case $.string:return this.parseLiteral(this.value);case $._null:case $._true:case $._false:return t=this.startNode(),t.value=this.type===$._null?null:this.type===$._true,t.raw=this.type.keyword,this.next(),this.finishNode(t,"Literal");case $.parenL:var u=this.start,c=this.parseParenAndDistinguishExpression(r);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(c)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),c;case $.bracketL:return t=this.startNode(),this.next(),t.elements=this.parseExprList($.bracketR,!0,!0,e),this.finishNode(t,"ArrayExpression");case $.braceL:return this.parseObj(!1,e);case $._function:return t=this.startNode(),this.next(),this.parseFunction(t,0);case $._class:return this.parseClass(this.startNode(),!1);case $._new:return this.parseNew();case $.backQuote:return this.parseTemplate();case $._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.unexpected();default:this.unexpected()}},Ne.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 $.parenL:return this.parseDynamicImport(e);case $.dot:return e.meta=t,this.parseImportMeta(e);default:this.unexpected()}},Ne.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat($.parenR)){var t=this.start;this.eat($.comma)&&this.eat($.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},Ne.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")},Ne.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")},Ne.parseParenExpression=function(){this.expect($.parenL);var e=this.parseExpression();return this.expect($.parenR),e},Ne.parseParenAndDistinguishExpression=function(e){var t=this.start,r=this.startLoc,n,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o=this.start,i=this.startLoc,l=[],u=!0,c=!1,p=new Bs,d=this.yieldPos,h=this.awaitPos,f;for(this.yieldPos=0,this.awaitPos=0;this.type!==$.parenR;)if(u?u=!1:this.expect($.comma),a&&this.afterTrailingComma($.parenR,!0)){c=!0;break}else if(this.type===$.ellipsis){f=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===$.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}else l.push(this.parseMaybeAssign(!1,p,this.parseParenItem));var m=this.start,y=this.startLoc;if(this.expect($.parenR),e&&!this.canInsertSemicolon()&&this.eat($.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=h,this.parseParenArrowList(t,r,l);(!l.length||c)&&this.unexpected(this.lastTokStart),f&&this.unexpected(f),this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=h||this.awaitPos,l.length>1?(n=this.startNodeAt(o,i),n.expressions=l,this.finishNodeAt(n,"SequenceExpression",m,y)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(t,r);return b.expression=n,this.finishNode(b,"ParenthesizedExpression")}else return n},Ne.parseParenItem=function(e){return e},Ne.parseParenArrowList=function(e,t,r){return this.parseArrowExpression(this.startNodeAt(e,t),r)},AE=[],Ne.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($.dot)){e.meta=t;var r=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'"),r&&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 n=this.start,a=this.startLoc,o=this.type===$._import;return e.callee=this.parseSubscripts(this.parseExprAtom(),n,a,!0),o&&e.callee.type==="ImportExpression"&&this.raise(n,"Cannot use new with import()"),this.eat($.parenL)?e.arguments=this.parseExprList($.parenR,this.options.ecmaVersion>=8,!1):e.arguments=AE,this.finishNode(e,"NewExpression")},Ne.parseTemplateElement=function(e){var t=e.isTagged,r=this.startNode();return this.type===$.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),r.value={raw:this.value,cooked:null}):r.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
1060
|
+
`),cooked:this.value},this.next(),r.tail=this.type===$.backQuote,this.finishNode(r,"TemplateElement")},Ne.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var n=this.parseTemplateElement({isTagged:t});for(r.quasis=[n];!n.tail;)this.type===$.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect($.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect($.braceR),r.quasis.push(n=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},Ne.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===$.name||this.type===$.num||this.type===$.string||this.type===$.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===$.star)&&!Yt.test(this.input.slice(this.lastTokEnd,this.start))},Ne.parseObj=function(e,t){var r=this.startNode(),n=!0,a={};for(r.properties=[],this.next();!this.eat($.braceR);){if(n)n=!1;else if(this.expect($.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma($.braceR))break;var o=this.parseProperty(e,t);e||this.checkPropClash(o,a,t),r.properties.push(o)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},Ne.parseProperty=function(e,t){var r=this.startNode(),n,a,o,i;if(this.options.ecmaVersion>=9&&this.eat($.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===$.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(this.type===$.parenL&&t&&(t.parenthesizedAssign<0&&(t.parenthesizedAssign=this.start),t.parenthesizedBind<0&&(t.parenthesizedBind=this.start)),r.argument=this.parseMaybeAssign(!1,t),this.type===$.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(o=this.start,i=this.startLoc),e||(n=this.eat($.star)));var l=this.containsEsc;return this.parsePropertyName(r),!e&&!l&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(r)?(a=!0,n=this.options.ecmaVersion>=9&&this.eat($.star),this.parsePropertyName(r,t)):a=!1,this.parsePropertyValue(r,e,n,a,o,i,t,l),this.finishNode(r,"Property")},Ne.parsePropertyValue=function(e,t,r,n,a,o,i,l){if((r||n)&&this.type===$.colon&&this.unexpected(),this.eat($.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===$.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,n);else if(!t&&!l&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==$.comma&&this.type!==$.braceR&&this.type!==$.eq){(r||n)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var u=e.kind==="get"?0:1;if(e.value.params.length!==u){var c=e.value.start;e.kind==="get"?this.raiseRecoverable(c,"getter should have no params"):this.raiseRecoverable(c,"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"?((r||n)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=a),e.kind="init",t?e.value=this.parseMaybeDefault(a,o,e.key):this.type===$.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(a,o,e.key)):e.value=e.key,e.shorthand=!0):this.unexpected()},Ne.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat($.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect($.bracketR),e.key;e.computed=!1}return e.key=this.type===$.num||this.type===$.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},Ne.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},Ne.parseMethod=function(e,t,r){var n=this.startNode(),a=this.yieldPos,o=this.awaitPos,i=this.awaitIdentPos;return this.initFunction(n),this.options.ecmaVersion>=6&&(n.generator=e),this.options.ecmaVersion>=8&&(n.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(_p(t,n.generator)|Ip|(r?Np:0)),this.expect($.parenL),n.params=this.parseBindingList($.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(n,!1,!0),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=i,this.finishNode(n,"FunctionExpression")},Ne.parseArrowExpression=function(e,t,r){var n=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(_p(r,!1)|Rp),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!r),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1),this.yieldPos=n,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},Ne.parseFunctionBody=function(e,t,r){var n=t&&this.type!==$.braceL,a=this.strict,o=!1;if(n)e.body=this.parseMaybeAssign(),e.expression=!0,this.checkParams(e,!1);else{var i=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!a||i)&&(o=this.strictDirective(this.end),o&&i&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var l=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!r&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLVal(e.id,qp),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},Ne.isSimpleParamList=function(e){for(var t=0,r=e;t<r.length;t+=1){var n=r[t];if(n.type!=="Identifier")return!1}return!0},Ne.checkParams=function(e,t){for(var r={},n=0,a=e.params;n<a.length;n+=1){var o=a[n];this.checkLVal(o,Us,t?null:r)}},Ne.parseExprList=function(e,t,r,n){for(var a=[],o=!0;!this.eat(e);){if(o)o=!1;else if(this.expect($.comma),t&&this.afterTrailingComma(e))break;var i=void 0;r&&this.type===$.comma?i=null:this.type===$.ellipsis?(i=this.parseSpread(n),n&&this.type===$.comma&&n.trailingComma<0&&(n.trailingComma=this.start)):i=this.parseMaybeAssign(!1,n),a.push(i)}return a},Ne.checkUnreserved=function(e){var t=e.start,r=e.end,n=e.name;if(this.inGenerator&&n==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.keywords.test(n)&&this.raise(t,"Unexpected keyword '"+n+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,r).indexOf("\\")!==-1)){var a=this.strict?this.reservedWordsStrict:this.reservedWords;a.test(n)&&(!this.inAsync&&n==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+n+"' is reserved"))}},Ne.parseIdent=function(e,t){var r=this.startNode();return this.type===$.name?r.name=this.value:this.type.keyword?(r.name=this.type.keyword,(r.name==="class"||r.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop()):this.unexpected(),this.next(!!e),this.finishNode(r,"Identifier"),e||(this.checkUnreserved(r),r.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r.start)),r},Ne.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===$.semi||this.canInsertSemicolon()||this.type!==$.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat($.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},Ne.parseAwait=function(){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!1),this.finishNode(e,"AwaitExpression")},Zo=nt.prototype,Zo.raise=function(e,t){var r=nh(this.input,e);t+=" ("+r.line+":"+r.column+")";var n=new SyntaxError(t);throw n.pos=e,n.loc=r,n.raisedAt=this.pos,n},Zo.raiseRecoverable=Zo.raise,Zo.curPosition=function(){if(this.options.locations)return new ia(this.curLine,this.pos-this.lineStart)},an=nt.prototype,SE=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]},an.enterScope=function(e){this.scopeStack.push(new SE(e))},an.exitScope=function(){this.scopeStack.pop()},an.treatFunctionsAsVarInScope=function(e){return e.flags&Ka||!this.inModule&&e.flags&Ua},an.declareName=function(e,t,r){var n=!1;if(t===jr){var a=this.currentScope();n=a.lexical.indexOf(e)>-1||a.functions.indexOf(e)>-1||a.var.indexOf(e)>-1,a.lexical.push(e),this.inModule&&a.flags&Ua&&delete this.undefinedExports[e]}else if(t===jp){var o=this.currentScope();o.lexical.push(e)}else if(t===Bp){var i=this.currentScope();this.treatFunctionsAsVar?n=i.lexical.indexOf(e)>-1:n=i.lexical.indexOf(e)>-1||i.var.indexOf(e)>-1,i.functions.push(e)}else for(var l=this.scopeStack.length-1;l>=0;--l){var u=this.scopeStack[l];if(u.lexical.indexOf(e)>-1&&!(u.flags&Fp&&u.lexical[0]===e)||!this.treatFunctionsAsVarInScope(u)&&u.functions.indexOf(e)>-1){n=!0;break}if(u.var.push(e),this.inModule&&u.flags&Ua&&delete this.undefinedExports[e],u.flags&$s)break}n&&this.raiseRecoverable(r,"Identifier '"+e+"' has already been declared")},an.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},an.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},an.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&$s)return t}},an.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&$s&&!(t.flags&Rp))return t}},fi=function(e,t,r){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new no(e,r)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},ei=nt.prototype,ei.startNode=function(){return new fi(this,this.start,this.startLoc)},ei.startNodeAt=function(e,t){return new fi(this,e,t)},ei.finishNode=function(e,t){return dE.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},ei.finishNodeAt=function(e,t,r,n){return dE.call(this,e,t,r,n)},nr=function(e,t,r,n,a){this.token=e,this.isExpr=!!t,this.preserveSpace=!!r,this.override=n,this.generator=!!a},dt={b_stat:new nr("{",!1),b_expr:new nr("{",!0),b_tmpl:new nr("${",!1),p_stat:new nr("(",!1),p_expr:new nr("(",!0),q_tmpl:new nr("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new nr("function",!1),f_expr:new nr("function",!0),f_expr_gen:new nr("function",!0,!1,null,!0),f_gen:new nr("function",!1,!1,null,!0)},ti=nt.prototype,ti.initialContext=function(){return[dt.b_stat]},ti.braceIsBlock=function(e){var t=this.curContext();return t===dt.f_expr||t===dt.f_stat?!0:e===$.colon&&(t===dt.b_stat||t===dt.b_expr)?!t.isExpr:e===$._return||e===$.name&&this.exprAllowed?Yt.test(this.input.slice(this.lastTokEnd,this.start)):e===$._else||e===$.semi||e===$.eof||e===$.parenR||e===$.arrow?!0:e===$.braceL?t===dt.b_stat:e===$._var||e===$._const||e===$.name?!1:!this.exprAllowed},ti.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},ti.updateContext=function(e){var t,r=this.type;r.keyword&&e===$.dot?this.exprAllowed=!1:(t=r.updateContext)?t.call(this,e):this.exprAllowed=r.beforeExpr},$.parenR.updateContext=$.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===dt.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},$.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?dt.b_stat:dt.b_expr),this.exprAllowed=!0},$.dollarBraceL.updateContext=function(){this.context.push(dt.b_tmpl),this.exprAllowed=!0},$.parenL.updateContext=function(e){var t=e===$._if||e===$._for||e===$._with||e===$._while;this.context.push(t?dt.p_stat:dt.p_expr),this.exprAllowed=!0},$.incDec.updateContext=function(){},$._function.updateContext=$._class.updateContext=function(e){e.beforeExpr&&e!==$.semi&&e!==$._else&&!(e===$._return&&Yt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===$.colon||e===$.braceL)&&this.curContext()===dt.b_stat)?this.context.push(dt.f_expr):this.context.push(dt.f_stat),this.exprAllowed=!1},$.backQuote.updateContext=function(){this.curContext()===dt.q_tmpl?this.context.pop():this.context.push(dt.q_tmpl),this.exprAllowed=!1},$.star.updateContext=function(e){if(e===$._function){var t=this.context.length-1;this.context[t]===dt.f_expr?this.context[t]=dt.f_expr_gen:this.context[t]=dt.f_gen}this.exprAllowed=!0},$.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==$.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t},Lp="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",$p=Lp+" Extended_Pictographic",_E=$p,CN={9:Lp,10:$p,11:_E},sh="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",Up="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",Vp=Up+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",TE=Vp+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",wN={9:Up,10:Vp,11:TE},lh={},Tp(9),Tp(10),Tp(11),xe=nt.prototype,Mr=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":""),this.unicodeProperties=lh[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=[]},Mr.prototype.reset=function(e,t,r){var n=r.indexOf("u")!==-1;this.start=e|0,this.source=t+"",this.flags=r,this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchN=n&&this.parser.options.ecmaVersion>=9},Mr.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Mr.prototype.at=function(e,t){t===void 0&&(t=!1);var r=this.source,n=r.length;if(e>=n)return-1;var a=r.charCodeAt(e);if(!(t||this.switchU)||a<=55295||a>=57344||e+1>=n)return a;var o=r.charCodeAt(e+1);return o>=56320&&o<=57343?(a<<10)+o-56613888:a},Mr.prototype.nextIndex=function(e,t){t===void 0&&(t=!1);var r=this.source,n=r.length;if(e>=n)return n;var a=r.charCodeAt(e),o;return!(t||this.switchU)||a<=55295||a>=57344||e+1>=n||(o=r.charCodeAt(e+1))<56320||o>57343?e+1:e+2},Mr.prototype.current=function(e){return e===void 0&&(e=!1),this.at(this.pos,e)},Mr.prototype.lookahead=function(e){return e===void 0&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Mr.prototype.advance=function(e){e===void 0&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Mr.prototype.eat=function(e,t){return t===void 0&&(t=!1),this.current(t)===e?(this.advance(t),!0):!1},xe.validateRegExpFlags=function(e){for(var t=e.validFlags,r=e.flags,n=0;n<r.length;n++){var a=r.charAt(n);t.indexOf(a)===-1&&this.raise(e.start,"Invalid regular expression flag"),r.indexOf(a,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag")}},xe.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},xe.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,r=e.backReferenceNames;t<r.length;t+=1){var n=r[t];e.groupNames.indexOf(n)===-1&&e.raise("Invalid named capture referenced")}},xe.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")},xe.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},xe.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},xe.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 r=!1;if(this.options.ecmaVersion>=9&&(r=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!r,!0}return e.pos=t,!1},xe.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},xe.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},xe.regexp_eatBracedQuantifier=function(e,t){var r=e.pos;if(e.eat(123)){var n=0,a=-1;if(this.regexp_eatDecimalDigits(e)&&(n=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(a=e.lastIntValue),e.eat(125)))return a!==-1&&a<n&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=r}return!1},xe.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)},xe.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},xe.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},xe.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},xe.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)},xe.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},xe.regexp_eatSyntaxCharacter=function(e){var t=e.current();return fE(t)?(e.lastIntValue=t,e.advance(),!0):!1},xe.regexp_eatPatternCharacters=function(e){for(var t=e.pos,r=0;(r=e.current())!==-1&&!fE(r);)e.advance();return e.pos!==t},xe.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},xe.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")}},xe.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},xe.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=js(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=js(e.lastIntValue);return!0}return!1},xe.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),MW(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},xe.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,r=this.options.ecmaVersion>=11,n=e.current(r);return e.advance(r),n===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(n=e.lastIntValue),LW(n)?(e.lastIntValue=n,!0):(e.pos=t,!1)},xe.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)},xe.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var r=e.lastIntValue;if(e.switchU)return r>e.maxBackReference&&(e.maxBackReference=r),!0;if(r<=e.numCapturingParens)return!0;e.pos=t}return!1},xe.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},xe.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)},xe.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},xe.regexp_eatZero=function(e){return e.current()===48&&!cl(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},xe.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},xe.regexp_eatControlLetter=function(e){var t=e.current();return mN(t)?(e.lastIntValue=t%32,e.advance(),!0):!1},xe.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var r=e.pos,n=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(n&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(i>=56320&&i<=57343)return e.lastIntValue=(a-55296)*1024+(i-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(n&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&$W(e.lastIntValue))return!0;n&&e.raise("Invalid unicode escape"),e.pos=r}return!1},xe.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},xe.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},xe.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(UW(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},xe.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var r=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var n=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,r,n),!0}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var a=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,a),!0}return!1},xe.regexp_validateUnicodePropertyNameAndValue=function(e,t,r){ul(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(r)||e.raise("Invalid property value")},xe.regexp_validateUnicodePropertyNameOrValue=function(e,t){e.unicodeProperties.binary.test(t)||e.raise("Invalid property name")},xe.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";yN(t=e.current());)e.lastStringValue+=js(t),e.advance();return e.lastStringValue!==""},xe.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";VW(t=e.current());)e.lastStringValue+=js(t),e.advance();return e.lastStringValue!==""},xe.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},xe.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},xe.regexp_classRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var r=e.lastIntValue;e.switchU&&(t===-1||r===-1)&&e.raise("Invalid character class"),t!==-1&&r!==-1&&t>r&&e.raise("Range out of order in character class")}}},xe.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var r=e.current();(r===99||yE(r))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var n=e.current();return n!==93?(e.lastIntValue=n,e.advance(),!0):!1},xe.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)},xe.regexp_eatClassControlLetter=function(e){var t=e.current();return cl(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},xe.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},xe.regexp_eatDecimalDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;cl(r=e.current());)e.lastIntValue=10*e.lastIntValue+(r-48),e.advance();return e.pos!==t},xe.regexp_eatHexDigits=function(e){var t=e.pos,r=0;for(e.lastIntValue=0;hE(r=e.current());)e.lastIntValue=16*e.lastIntValue+mE(r),e.advance();return e.pos!==t},xe.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var r=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+r*8+e.lastIntValue:e.lastIntValue=t*8+r}else e.lastIntValue=t;return!0}return!1},xe.regexp_eatOctalDigit=function(e){var t=e.current();return yE(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},xe.regexp_eatFixedHexDigits=function(e,t){var r=e.pos;e.lastIntValue=0;for(var n=0;n<t;++n){var a=e.current();if(!hE(a))return e.pos=r,!1;e.lastIntValue=16*e.lastIntValue+mE(a),e.advance()}return!0},hi=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new no(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},Me=nt.prototype,Me.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 hi(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Me.getToken=function(){return this.next(),new hi(this)},typeof Symbol<"u"&&(Me[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===$.eof,value:t}}}}),Me.curContext=function(){return this.context[this.context.length-1]},Me.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($.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},Me.readToken=function(e){return cn(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},Me.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},Me.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,r=this.input.indexOf("*/",this.pos+=2);if(r===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=r+2,this.options.locations){da.lastIndex=t;for(var n;(n=da.exec(this.input))&&n.index<this.pos;)++this.curLine,this.lineStart=n.index+n[0].length}this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,r),t,this.pos,e,this.curPosition())},Me.skipLineComment=function(e){for(var t=this.pos,r=this.options.onComment&&this.curPosition(),n=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!Ya(n);)n=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,r,this.curPosition())},Me.skipSpace=function(){e: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 e}break;default:if(e>8&&e<14||e>=5760&&pl.test(String.fromCharCode(e)))++this.pos;else break e}}},Me.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var r=this.type;this.type=e,this.value=t,this.updateContext(r)},Me.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($.ellipsis)):(++this.pos,this.finishToken($.dot))},Me.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp($.assign,2):this.finishOp($.slash,1)},Me.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),r=1,n=e===42?$.star:$.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++r,n=$.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp($.assign,r+1):this.finishOp(n,r)},Me.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var r=this.input.charCodeAt(this.pos+2);if(r===61)return this.finishOp($.assign,3)}return this.finishOp(e===124?$.logicalOR:$.logicalAND,2)}return t===61?this.finishOp($.assign,2):this.finishOp(e===124?$.bitwiseOR:$.bitwiseAND,1)},Me.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp($.assign,2):this.finishOp($.bitwiseXOR,1)},Me.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||Yt.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp($.incDec,2):t===61?this.finishOp($.assign,2):this.finishOp($.plusMin,1)},Me.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),r=1;return t===e?(r=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+r)===61?this.finishOp($.assign,r+1):this.finishOp($.bitShift,r)):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&&(r=2),this.finishOp($.relational,r))},Me.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp($.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken($.arrow)):this.finishOp(e===61?$.eq:$.prefix,1)},Me.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var r=this.input.charCodeAt(this.pos+2);if(r<48||r>57)return this.finishOp($.questionDot,2)}if(t===63){if(e>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp($.assign,3)}return this.finishOp($.coalesce,2)}}return this.finishOp($.question,1)},Me.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken($.parenL);case 41:return++this.pos,this.finishToken($.parenR);case 59:return++this.pos,this.finishToken($.semi);case 44:return++this.pos,this.finishToken($.comma);case 91:return++this.pos,this.finishToken($.bracketL);case 93:return++this.pos,this.finishToken($.bracketR);case 123:return++this.pos,this.finishToken($.braceL);case 125:return++this.pos,this.finishToken($.braceR);case 58:return++this.pos,this.finishToken($.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken($.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($.prefix,1)}this.raise(this.pos,"Unexpected character '"+Pp(e)+"'")},Me.finishOp=function(e,t){var r=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,r)},Me.readRegexp=function(){for(var e,t,r=this.pos;;){this.pos>=this.input.length&&this.raise(r,"Unterminated regular expression");var n=this.input.charAt(this.pos);if(Yt.test(n)&&this.raise(r,"Unterminated regular expression"),e)e=!1;else{if(n==="[")t=!0;else if(n==="]"&&t)t=!1;else if(n==="/"&&!t)break;e=n==="\\"}++this.pos}var a=this.input.slice(r,this.pos);++this.pos;var o=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(o);var l=this.regexpState||(this.regexpState=new Mr(this));l.reset(r,a,i),this.validateRegExpFlags(l),this.validateRegExpPattern(l);var u=null;try{u=new RegExp(a,i)}catch{}return this.finishToken($.regexp,{pattern:a,flags:i,value:u})},Me.readInt=function(e,t,r){for(var n=this.options.ecmaVersion>=12&&t===void 0,a=r&&this.input.charCodeAt(this.pos)===48,o=this.pos,i=0,l=0,u=0,c=t??1/0;u<c;++u,++this.pos){var p=this.input.charCodeAt(this.pos),d=void 0;if(n&&p===95){a&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),l===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),u===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),l=p;continue}if(p>=97?d=p-97+10:p>=65?d=p-65+10:p>=48&&p<=57?d=p-48:d=1/0,d>=e)break;l=p,i=i*e+d}return n&&l===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===o||t!=null&&this.pos-o!==t?null:i},Me.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return r==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(r=gE(this.input.slice(t,this.pos)),++this.pos):cn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken($.num,r)},Me.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var r=this.pos-t>=2&&this.input.charCodeAt(t)===48;r&&this.strict&&this.raise(t,"Invalid number");var n=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&n===110){var a=gE(this.input.slice(t,this.pos));return++this.pos,cn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken($.num,a)}r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1),n===46&&!r&&(++this.pos,this.readInt(10),n=this.input.charCodeAt(this.pos)),(n===69||n===101)&&!r&&(n=this.input.charCodeAt(++this.pos),(n===43||n===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),cn(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var o=HW(this.input.slice(t,this.pos),r);return this.finishToken($.num,o)},Me.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var r=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(r,"Code point out of bounds")}else t=this.readHexChar(4);return t},Me.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var n=this.input.charCodeAt(this.pos);if(n===e)break;n===92?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(Ya(n,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken($.string,t)},Hp={},Me.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Hp)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},Me.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Hp;this.raise(e,t)},Me.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(r===96||r===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===$.template||this.type===$.invalidTemplate)?r===36?(this.pos+=2,this.finishToken($.dollarBraceL)):(++this.pos,this.finishToken($.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken($.template,e));if(r===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Ya(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
1061
|
+
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Me.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($.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},Me.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
1062
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return Pp(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 r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var n=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],a=parseInt(n,8);return a>255&&(n=n.slice(0,-1),a=parseInt(n,8)),this.pos+=n.length-1,t=this.input.charCodeAt(this.pos),(n!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-n.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(a)}return Ya(t)?"":String.fromCharCode(t)}},Me.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r},Me.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,n=this.options.ecmaVersion>=6;this.pos<this.input.length;){var a=this.fullCharCodeAtPos();if(oa(a,n))this.pos+=a<=65535?1:2;else if(a===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var o=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var i=this.readCodePoint();(t?cn:oa)(i,n)||this.invalidStringToken(o,"Invalid Unicode escape"),e+=Pp(i),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)},Me.readWord=function(){var e=this.readWord1(),t=$.name;return this.keywords.test(e)&&(t=Pi[e]),this.finishToken(t,e)},uh="7.4.1",nt.acorn={Parser:nt,version:uh,defaultOptions:Zi,Position:ia,SourceLocation:no,getLineInfo:nh,Node:fi,TokenType:Ve,tokTypes:$,keywordTypes:Pi,TokContext:nr,tokContexts:dt,isIdentifierChar:oa,isIdentifierStart:cn,Token:hi,isNewLine:Ya,lineBreak:Yt,lineBreakG:da,nonASCIIwhitespace:pl}}}),WW=be({"../../node_modules/acorn-jsx/xhtml.js"(e,t){t.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",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:"♦"}}}),YW=be({"../../node_modules/acorn-jsx/index.js"(e,t){var r=WW(),n=/^[\da-fA-F]+$/,a=/^\d+$/,o=new WeakMap;function i(c){c=c.Parser.acorn||c;let p=o.get(c);if(!p){let d=c.tokTypes,h=c.TokContext,f=c.TokenType,m=new h("<tag",!1),y=new h("</tag",!1),b=new h("<tag>...</tag>",!0,!0),g={tc_oTag:m,tc_cTag:y,tc_expr:b},v={jsxName:new f("jsxName"),jsxText:new f("jsxText",{beforeExpr:!0}),jsxTagStart:new f("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new f("jsxTagEnd")};v.jsxTagStart.updateContext=function(){this.context.push(b),this.context.push(m),this.exprAllowed=!1},v.jsxTagEnd.updateContext=function(D){let S=this.context.pop();S===m&&D===d.slash||S===y?(this.context.pop(),this.exprAllowed=this.curContext()===b):this.exprAllowed=!0},p={tokContexts:g,tokTypes:v},o.set(c,p)}return p}function l(c){if(!c)return c;if(c.type==="JSXIdentifier")return c.name;if(c.type==="JSXNamespacedName")return c.namespace.name+":"+c.name.name;if(c.type==="JSXMemberExpression")return l(c.object)+"."+l(c.property)}t.exports=function(c){return c=c||{},function(p){return u({allowNamespaces:c.allowNamespaces!==!1,allowNamespacedObjects:!!c.allowNamespacedObjects},p)}},Object.defineProperty(t.exports,"tokTypes",{get:function(){return i((ch(),rE(th))).tokTypes},configurable:!0,enumerable:!0});function u(c,p){let d=p.acorn||(ch(),rE(th)),h=i(d),f=d.tokTypes,m=h.tokTypes,y=d.tokContexts,b=h.tokContexts.tc_oTag,g=h.tokContexts.tc_cTag,v=h.tokContexts.tc_expr,D=d.isNewLine,S=d.isIdentifierStart,P=d.isIdentifierChar;return class extends p{static get acornJsx(){return h}jsx_readToken(){let w="",E=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let C=this.input.charCodeAt(this.pos);switch(C){case 60:case 123:return this.pos===this.start?C===60&&this.exprAllowed?(++this.pos,this.finishToken(m.jsxTagStart)):this.getTokenFromCode(C):(w+=this.input.slice(E,this.pos),this.finishToken(m.jsxText,w));case 38:w+=this.input.slice(E,this.pos),w+=this.jsx_readEntity(),E=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(C===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:D(C)?(w+=this.input.slice(E,this.pos),w+=this.jsx_readNewLine(!0),E=this.pos):++this.pos}}}jsx_readNewLine(w){let E=this.input.charCodeAt(this.pos),C;return++this.pos,E===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,C=w?`
|
|
1063
|
+
`:`\r
|
|
1064
|
+
`):C=String.fromCharCode(E),this.options.locations&&(++this.curLine,this.lineStart=this.pos),C}jsx_readString(w){let E="",C=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let _=this.input.charCodeAt(this.pos);if(_===w)break;_===38?(E+=this.input.slice(C,this.pos),E+=this.jsx_readEntity(),C=this.pos):D(_)?(E+=this.input.slice(C,this.pos),E+=this.jsx_readNewLine(!1),C=this.pos):++this.pos}return E+=this.input.slice(C,this.pos++),this.finishToken(f.string,E)}jsx_readEntity(){let w="",E=0,C,_=this.input[this.pos];_!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let k=++this.pos;for(;this.pos<this.input.length&&E++<10;){if(_=this.input[this.pos++],_===";"){w[0]==="#"?w[1]==="x"?(w=w.substr(2),n.test(w)&&(C=String.fromCharCode(parseInt(w,16)))):(w=w.substr(1),a.test(w)&&(C=String.fromCharCode(parseInt(w,10)))):C=r[w];break}w+=_}return C||(this.pos=k,"&")}jsx_readWord(){let w,E=this.pos;do w=this.input.charCodeAt(++this.pos);while(P(w)||w===45);return this.finishToken(m.jsxName,this.input.slice(E,this.pos))}jsx_parseIdentifier(){let w=this.startNode();return this.type===m.jsxName?w.name=this.value:this.type.keyword?w.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(w,"JSXIdentifier")}jsx_parseNamespacedName(){let w=this.start,E=this.startLoc,C=this.jsx_parseIdentifier();if(!c.allowNamespaces||!this.eat(f.colon))return C;var _=this.startNodeAt(w,E);return _.namespace=C,_.name=this.jsx_parseIdentifier(),this.finishNode(_,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===m.jsxTagEnd)return"";let w=this.start,E=this.startLoc,C=this.jsx_parseNamespacedName();for(this.type===f.dot&&C.type==="JSXNamespacedName"&&!c.allowNamespacedObjects&&this.unexpected();this.eat(f.dot);){let _=this.startNodeAt(w,E);_.object=C,_.property=this.jsx_parseIdentifier(),C=this.finishNode(_,"JSXMemberExpression")}return C}jsx_parseAttributeValue(){switch(this.type){case f.braceL:let w=this.jsx_parseExpressionContainer();return w.expression.type==="JSXEmptyExpression"&&this.raise(w.start,"JSX attributes must only be assigned a non-empty expression"),w;case m.jsxTagStart:case f.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let w=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(w,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let w=this.startNode();return this.next(),w.expression=this.type===f.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(f.braceR),this.finishNode(w,"JSXExpressionContainer")}jsx_parseAttribute(){let w=this.startNode();return this.eat(f.braceL)?(this.expect(f.ellipsis),w.argument=this.parseMaybeAssign(),this.expect(f.braceR),this.finishNode(w,"JSXSpreadAttribute")):(w.name=this.jsx_parseNamespacedName(),w.value=this.eat(f.eq)?this.jsx_parseAttributeValue():null,this.finishNode(w,"JSXAttribute"))}jsx_parseOpeningElementAt(w,E){let C=this.startNodeAt(w,E);C.attributes=[];let _=this.jsx_parseElementName();for(_&&(C.name=_);this.type!==f.slash&&this.type!==m.jsxTagEnd;)C.attributes.push(this.jsx_parseAttribute());return C.selfClosing=this.eat(f.slash),this.expect(m.jsxTagEnd),this.finishNode(C,_?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(w,E){let C=this.startNodeAt(w,E),_=this.jsx_parseElementName();return _&&(C.name=_),this.expect(m.jsxTagEnd),this.finishNode(C,_?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(w,E){let C=this.startNodeAt(w,E),_=[],k=this.jsx_parseOpeningElementAt(w,E),B=null;if(!k.selfClosing){e:for(;;)switch(this.type){case m.jsxTagStart:if(w=this.start,E=this.startLoc,this.next(),this.eat(f.slash)){B=this.jsx_parseClosingElementAt(w,E);break e}_.push(this.jsx_parseElementAt(w,E));break;case m.jsxText:_.push(this.parseExprAtom());break;case f.braceL:_.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}l(B.name)!==l(k.name)&&this.raise(B.start,"Expected corresponding JSX closing tag for <"+l(k.name)+">")}let W=k.name?"Element":"Fragment";return C["opening"+W]=k,C["closing"+W]=B,C.children=_,this.type===f.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(C,"JSX"+W)}jsx_parseText(){let w=this.parseLiteral(this.value);return w.type="JSXText",w}jsx_parseElement(){let w=this.start,E=this.startLoc;return this.next(),this.jsx_parseElementAt(w,E)}parseExprAtom(w){return this.type===m.jsxText?this.jsx_parseText():this.type===m.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(w)}readToken(w){let E=this.curContext();if(E===v)return this.jsx_readToken();if(E===b||E===g){if(S(w))return this.jsx_readWord();if(w==62)return++this.pos,this.finishToken(m.jsxTagEnd);if((w===34||w===39)&&E==b)return this.jsx_readString(w)}return w===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(m.jsxTagStart)):super.readToken(w)}updateContext(w){if(this.type==f.braceL){var E=this.curContext();E==b?this.context.push(y.b_expr):E==v?this.context.push(y.b_tmpl):super.updateContext(w),this.exprAllowed=!0}else if(this.type===f.slash&&w===m.jsxTagStart)this.context.length-=2,this.context.push(g),this.exprAllowed=!1;else return super.updateContext(w)}}}}}),KW=be({"../../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"]}}),XW=be({"../../node_modules/html-tags/index.js"(e,t){t.exports=KW()}}),QW={};Uc(QW,{argTypesEnhancers:()=>jN,parameters:()=>BN});var ph="custom",_s="object",Qb="array",ZW="class",Oo="func",Go="element",eY=Jo(BW());function tY(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=Array.from(typeof e=="string"?[e]:e);n[n.length-1]=n[n.length-1].replace(/\r?\n([\t ]*)$/,"");var a=n.reduce(function(l,u){var c=u.match(/\n([\t ]+|(?!\s).)/g);return c?l.concat(c.map(function(p){var d,h;return(h=(d=p.match(/[\t ]/g))===null||d===void 0?void 0:d.length)!==null&&h!==void 0?h:0})):l},[]);if(a.length){var o=new RegExp(`
|
|
1065
|
+
[ ]{`+Math.min.apply(Math,a)+"}","g");n=n.map(function(l){return l.replace(o,`
|
|
1066
|
+
`)})}n[0]=n[0].replace(/^\r?\n/,"");var i=n[0];return t.forEach(function(l,u){var c=i.match(/(?:^|\n)( *)$/),p=c?c[1]:"",d=l;typeof l=="string"&&l.includes(`
|
|
1067
|
+
`)&&(d=String(l).split(`
|
|
1068
|
+
`).map(function(h,f){return f===0?h:""+p+h}).join(`
|
|
1069
|
+
`)),i+=d+n[u+1]}),i}var xN={format:{indent:{style:" "},semicolons:!1}},rY={...xN,format:{newline:""}},nY={...xN};function Un(e,t=!1){return(0,eY.generate)(e,t?rY:nY)}function dh(e,t=!1){return t?aY(e):Un(e)}function aY(e){let t=Un(e,!0);return t.endsWith(" }")||(t=`${t.slice(0,-1)} }`),t}function PE(e,t=!1){return t?iY(e):oY(e)}function oY(e){let t=Un(e);return t.endsWith(" }]")&&(t=tY(t)),t}function iY(e){let t=Un(e,!0);return t.startsWith("[ ")&&(t=t.replace("[ ","[")),t}ch();var sY=Jo(YW());function AN(e,t,r,n,a){r||(r=fe),(function o(i,l,u){var c=u||i.type,p=t[c];r[c](i,l,o),p&&p(i,l)})(e,n,a)}function lY(e,t,r,n,a){var o=[];r||(r=fe),(function i(l,u,c){var p=c||l.type,d=t[p],h=l!==o[o.length-1];h&&o.push(l),r[p](l,u,i),d&&d(l,u||o,o),h&&o.pop()})(e,n,a)}function Zb(e,t,r){r(e,t)}function qa(e,t,r){}var fe={};fe.Program=fe.BlockStatement=function(e,t,r){for(var n=0,a=e.body;n<a.length;n+=1){var o=a[n];r(o,t,"Statement")}};fe.Statement=Zb;fe.EmptyStatement=qa;fe.ExpressionStatement=fe.ParenthesizedExpression=fe.ChainExpression=function(e,t,r){return r(e.expression,t,"Expression")};fe.IfStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Statement"),e.alternate&&r(e.alternate,t,"Statement")};fe.LabeledStatement=function(e,t,r){return r(e.body,t,"Statement")};fe.BreakStatement=fe.ContinueStatement=qa;fe.WithStatement=function(e,t,r){r(e.object,t,"Expression"),r(e.body,t,"Statement")};fe.SwitchStatement=function(e,t,r){r(e.discriminant,t,"Expression");for(var n=0,a=e.cases;n<a.length;n+=1){var o=a[n];o.test&&r(o.test,t,"Expression");for(var i=0,l=o.consequent;i<l.length;i+=1){var u=l[i];r(u,t,"Statement")}}};fe.SwitchCase=function(e,t,r){e.test&&r(e.test,t,"Expression");for(var n=0,a=e.consequent;n<a.length;n+=1){var o=a[n];r(o,t,"Statement")}};fe.ReturnStatement=fe.YieldExpression=fe.AwaitExpression=function(e,t,r){e.argument&&r(e.argument,t,"Expression")};fe.ThrowStatement=fe.SpreadElement=function(e,t,r){return r(e.argument,t,"Expression")};fe.TryStatement=function(e,t,r){r(e.block,t,"Statement"),e.handler&&r(e.handler,t),e.finalizer&&r(e.finalizer,t,"Statement")};fe.CatchClause=function(e,t,r){e.param&&r(e.param,t,"Pattern"),r(e.body,t,"Statement")};fe.WhileStatement=fe.DoWhileStatement=function(e,t,r){r(e.test,t,"Expression"),r(e.body,t,"Statement")};fe.ForStatement=function(e,t,r){e.init&&r(e.init,t,"ForInit"),e.test&&r(e.test,t,"Expression"),e.update&&r(e.update,t,"Expression"),r(e.body,t,"Statement")};fe.ForInStatement=fe.ForOfStatement=function(e,t,r){r(e.left,t,"ForInit"),r(e.right,t,"Expression"),r(e.body,t,"Statement")};fe.ForInit=function(e,t,r){e.type==="VariableDeclaration"?r(e,t):r(e,t,"Expression")};fe.DebuggerStatement=qa;fe.FunctionDeclaration=function(e,t,r){return r(e,t,"Function")};fe.VariableDeclaration=function(e,t,r){for(var n=0,a=e.declarations;n<a.length;n+=1){var o=a[n];r(o,t)}};fe.VariableDeclarator=function(e,t,r){r(e.id,t,"Pattern"),e.init&&r(e.init,t,"Expression")};fe.Function=function(e,t,r){e.id&&r(e.id,t,"Pattern");for(var n=0,a=e.params;n<a.length;n+=1){var o=a[n];r(o,t,"Pattern")}r(e.body,t,e.expression?"Expression":"Statement")};fe.Pattern=function(e,t,r){e.type==="Identifier"?r(e,t,"VariablePattern"):e.type==="MemberExpression"?r(e,t,"MemberPattern"):r(e,t)};fe.VariablePattern=qa;fe.MemberPattern=Zb;fe.RestElement=function(e,t,r){return r(e.argument,t,"Pattern")};fe.ArrayPattern=function(e,t,r){for(var n=0,a=e.elements;n<a.length;n+=1){var o=a[n];o&&r(o,t,"Pattern")}};fe.ObjectPattern=function(e,t,r){for(var n=0,a=e.properties;n<a.length;n+=1){var o=a[n];o.type==="Property"?(o.computed&&r(o.key,t,"Expression"),r(o.value,t,"Pattern")):o.type==="RestElement"&&r(o.argument,t,"Pattern")}};fe.Expression=Zb;fe.ThisExpression=fe.Super=fe.MetaProperty=qa;fe.ArrayExpression=function(e,t,r){for(var n=0,a=e.elements;n<a.length;n+=1){var o=a[n];o&&r(o,t,"Expression")}};fe.ObjectExpression=function(e,t,r){for(var n=0,a=e.properties;n<a.length;n+=1){var o=a[n];r(o,t)}};fe.FunctionExpression=fe.ArrowFunctionExpression=fe.FunctionDeclaration;fe.SequenceExpression=function(e,t,r){for(var n=0,a=e.expressions;n<a.length;n+=1){var o=a[n];r(o,t,"Expression")}};fe.TemplateLiteral=function(e,t,r){for(var n=0,a=e.quasis;n<a.length;n+=1){var o=a[n];r(o,t)}for(var i=0,l=e.expressions;i<l.length;i+=1){var u=l[i];r(u,t,"Expression")}};fe.TemplateElement=qa;fe.UnaryExpression=fe.UpdateExpression=function(e,t,r){r(e.argument,t,"Expression")};fe.BinaryExpression=fe.LogicalExpression=function(e,t,r){r(e.left,t,"Expression"),r(e.right,t,"Expression")};fe.AssignmentExpression=fe.AssignmentPattern=function(e,t,r){r(e.left,t,"Pattern"),r(e.right,t,"Expression")};fe.ConditionalExpression=function(e,t,r){r(e.test,t,"Expression"),r(e.consequent,t,"Expression"),r(e.alternate,t,"Expression")};fe.NewExpression=fe.CallExpression=function(e,t,r){if(r(e.callee,t,"Expression"),e.arguments)for(var n=0,a=e.arguments;n<a.length;n+=1){var o=a[n];r(o,t,"Expression")}};fe.MemberExpression=function(e,t,r){r(e.object,t,"Expression"),e.computed&&r(e.property,t,"Expression")};fe.ExportNamedDeclaration=fe.ExportDefaultDeclaration=function(e,t,r){e.declaration&&r(e.declaration,t,e.type==="ExportNamedDeclaration"||e.declaration.id?"Statement":"Expression"),e.source&&r(e.source,t,"Expression")};fe.ExportAllDeclaration=function(e,t,r){e.exported&&r(e.exported,t),r(e.source,t,"Expression")};fe.ImportDeclaration=function(e,t,r){for(var n=0,a=e.specifiers;n<a.length;n+=1){var o=a[n];r(o,t)}r(e.source,t,"Expression")};fe.ImportExpression=function(e,t,r){r(e.source,t,"Expression")};fe.ImportSpecifier=fe.ImportDefaultSpecifier=fe.ImportNamespaceSpecifier=fe.Identifier=fe.Literal=qa;fe.TaggedTemplateExpression=function(e,t,r){r(e.tag,t,"Expression"),r(e.quasi,t,"Expression")};fe.ClassDeclaration=fe.ClassExpression=function(e,t,r){return r(e,t,"Class")};fe.Class=function(e,t,r){e.id&&r(e.id,t,"Pattern"),e.superClass&&r(e.superClass,t,"Expression"),r(e.body,t)};fe.ClassBody=function(e,t,r){for(var n=0,a=e.body;n<a.length;n+=1){var o=a[n];r(o,t)}};fe.MethodDefinition=fe.Property=function(e,t,r){e.computed&&r(e.key,t,"Expression"),r(e.value,t,"Expression")};var ev={...fe,JSXElement:()=>{}},uY=nt.extend((0,sY.default)());function Ts(e){return e!=null?e.name:null}function DE(e){return e.filter(t=>t.type==="ObjectExpression"||t.type==="ArrayExpression")}function SN(e){let t=[];return lY(e,{ObjectExpression(r,n){t.push(DE(n).length)},ArrayExpression(r,n){t.push(DE(n).length)}},ev),Math.max(...t)}function cY(e){return{inferredType:{type:"Identifier",identifier:Ts(e)},ast:e}}function pY(e){return{inferredType:{type:"Literal"},ast:e}}function dY(e){let t;AN(e.body,{JSXElement(a){t=a}},ev);let r={type:t!=null?"Element":"Function",params:e.params,hasParams:e.params.length!==0},n=Ts(e.id);return n!=null&&(r.identifier=n),{inferredType:r,ast:e}}function fY(e){let t;return AN(e.body,{JSXElement(r){t=r}},ev),{inferredType:{type:t!=null?"Element":"Class",identifier:Ts(e.id)},ast:e}}function hY(e){let t={type:"Element"},r=Ts(e.openingElement.name);return r!=null&&(t.identifier=r),{inferredType:t,ast:e}}function mY(e){let t=e.callee.type==="MemberExpression"?e.callee.property:e.callee;return Ts(t)==="shape"?_N(e.arguments[0]):null}function _N(e){return{inferredType:{type:"Object",depth:SN(e)},ast:e}}function yY(e){return{inferredType:{type:"Array",depth:SN(e)},ast:e}}function gY(e){switch(e.type){case"Identifier":return cY(e);case"Literal":return pY(e);case"FunctionExpression":case"ArrowFunctionExpression":return dY(e);case"ClassExpression":return fY(e);case"JSXElement":return hY(e);case"CallExpression":return mY(e);case"ObjectExpression":return _N(e);case"ArrayExpression":return yY(e);default:return null}}function bY(e){let t=uY.parse(`(${e})`,{ecmaVersion:2020}),r={inferredType:{type:"Unknown"},ast:t};if(t.body[0]!=null){let n=t.body[0];switch(n.type){case"ExpressionStatement":{let a=gY(n.expression);a!=null&&(r=a);break}}}return r}function Wn(e){try{return{...bY(e)}}catch{}return{inferredType:{type:"Unknown"}}}var vY=Jo(XW());function tv(e){return vY.default.includes(e.toLowerCase())}function TN({inferredType:e,ast:t}){let{depth:r}=e;if(r<=2){let n=PE(t,!0);if(!ja(n))return Te(n)}return Te(Qb,PE(t))}function PN({inferredType:e,ast:t}){let{depth:r}=e;if(r===1){let n=dh(t,!0);if(!ja(n))return Te(n)}return Te(_s,dh(t))}function rv(e,t){return t?`${e}( ... )`:`${e}()`}function Zc(e){return`<${e} />`}function DN(e){let{type:t,identifier:r}=e;switch(t){case"Function":return rv(r,e.hasParams);case"Element":return Zc(r);default:return r}}function EY({inferredType:e,ast:t}){let{identifier:r}=e;if(r!=null)return Te(DN(e),Un(t));let n=Un(t,!0);return ja(n)?Te(Oo,Un(t)):Te(n)}function CY(e,t){let{inferredType:r}=t,{identifier:n}=r;if(n!=null&&!tv(n)){let a=DN(r);return Te(a,e)}return ja(e)?Te(Go,e):Te(e)}function ON(e){try{let t=Wn(e);switch(t.inferredType.type){case"Object":return PN(t);case"Function":return EY(t);case"Element":return CY(e,t);case"Array":return TN(t);default:return null}}catch(t){console.error(t)}return null}function wY(e){if(typeof e!="object"||e==null)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!=="[object Object]"){let r=e[Symbol.toStringTag];return r==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${r}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function OE(e){return typeof e=="function"}function xY(e){return typeof e=="string"||e instanceof String}var RE=f2;function RN(e){return e.$$typeof!=null}function FN(e,t){let{name:r}=e;return r!==""&&r!=="anonymous"&&r!==t?r:null}var AY=e=>Te(JSON.stringify(e));function SY(e){let{type:t}=e,{displayName:r}=t,n=RE(e,{});if(r!=null){let a=Zc(r);return Te(a,n)}if(xY(t)&&tv(t)){let a=RE(e,{tabStop:0}).replace(/\r?\n|\r/g,"");if(!ja(a))return Te(a)}return Te(Go,n)}var _Y=e=>{if(RN(e)&&e.type!=null)return SY(e);if(wY(e)){let t=Wn(JSON.stringify(e));return PN(t)}if(Array.isArray(e)){let t=Wn(JSON.stringify(e));return TN(t)}return Te(_s)},TY=(e,t)=>{let r=!1,n;if(OE(e.render))r=!0;else if(e.prototype!=null&&OE(e.prototype.render))r=!0;else{let o;try{n=Wn(e.toString());let{hasParams:i,params:l}=n.inferredType;i?l.length===1&&l[0].type==="ObjectPattern"&&(o=e({})):o=e(),o!=null&&RN(o)&&(r=!0)}catch{}}let a=FN(e,t.name);if(a!=null){if(r)return Te(Zc(a));n!=null&&(n=Wn(e.toString()));let{hasParams:o}=n.inferredType;return Te(rv(a,o))}return Te(r?Go:Oo)},PY=e=>Te(e.toString()),IN={string:AY,object:_Y,function:TY,default:PY};function DY(e={}){return{...IN,...e}}function OY(e,t,r=IN){try{switch(typeof e){case"string":return r.string(e,t);case"object":return r.object(e,t);case"function":return r.function(e,t);default:return r.default(e,t)}}catch(n){console.error(n)}return null}function RY(e,t){let r=e!=null,n=t!=null;if(!r&&!n)return"";let a=[];if(r){let o=e.map(i=>{let l=i.getPrettyName(),u=i.getTypeName();return u!=null?`${l}: ${u}`:l});a.push(`(${o.join(", ")})`)}else a.push("()");return n&&a.push(`=> ${t.getTypeName()}`),a.join(" ")}function FY(e,t){let r=e!=null,n=t!=null;if(!r&&!n)return"";let a=[];return r?a.push("( ... )"):a.push("()"),n&&a.push(`=> ${t.getTypeName()}`),a.join(" ")}function IY(e){return e.replace(/,/g,`,\r
|
|
1070
|
+
`)}var NY=150;function Ut({name:e,short:t,compact:r,full:n,inferredType:a}){return{name:e,short:t,compact:r,full:n??t,inferredType:a}}function NN(e){return e.replace(/PropTypes./g,"").replace(/.isRequired/g,"")}function FE(e){return e.split(/\r?\n/)}function lu(e,t=!1){return NN(dh(e,t))}function IE(e,t=!1){return NN(Un(e,t))}function kY(e){switch(e){case"Object":return _s;case"Array":return Qb;case"Class":return ZW;case"Function":return Oo;case"Element":return Go;default:return ph}}function kN(e,t){let{inferredType:r,ast:n}=Wn(e),{type:a}=r,o,i,l;switch(a){case"Identifier":case"Literal":o=e,i=e;break;case"Object":{let{depth:u}=r;o=_s,i=u===1?lu(n,!0):null,l=lu(n);break}case"Element":{let{identifier:u}=r;o=u!=null&&!tv(u)?u:Go,i=FE(e).length===1?e:null,l=e;break}case"Array":{let{depth:u}=r;o=Qb,i=u<=2?IE(n,!0):null,l=IE(n);break}default:o=kY(a),i=FE(e).length===1?e:null,l=e;break}return Ut({name:t,short:o,compact:i,full:l,inferredType:a})}function BY({raw:e}){return e!=null?kN(e,"custom"):Ut({name:"custom",short:ph,compact:ph})}function jY(e){let{jsDocTags:t}=e;return t!=null&&(t.params!=null||t.returns!=null)?Ut({name:"func",short:FY(t.params,t.returns),compact:null,full:RY(t.params,t.returns)}):Ut({name:"func",short:Oo,compact:Oo})}function qY(e,t){let r=Object.keys(e.value).map(i=>`${i}: ${Ro(e.value[i],t).full}`).join(", "),{inferredType:n,ast:a}=Wn(`{ ${r} }`),{depth:o}=n;return Ut({name:"shape",short:_s,compact:o===1&&a?lu(a,!0):null,full:a?lu(a):null})}function Jp(e){return`objectOf(${e})`}function MY(e,t){let{short:r,compact:n,full:a}=Ro(e.value,t);return Ut({name:"objectOf",short:Jp(r),compact:n!=null?Jp(n):null,full:a&&Jp(a)})}function LY(e,t){if(Array.isArray(e.value)){let r=e.value.reduce((n,a)=>{let{short:o,compact:i,full:l}=Ro(a,t);return n.short.push(o),n.compact.push(i),n.full.push(l),n},{short:[],compact:[],full:[]});return Ut({name:"union",short:r.short.join(" | "),compact:r.compact.every(n=>n!=null)?r.compact.join(" | "):null,full:r.full.join(" | ")})}return Ut({name:"union",short:e.value,compact:null})}function $Y({value:e,computed:t}){return t?kN(e,"enumvalue"):Ut({name:"enumvalue",short:e,compact:e})}function UY(e){if(Array.isArray(e.value)){let t=e.value.reduce((r,n)=>{let{short:a,compact:o,full:i}=$Y(n);return r.short.push(a),r.compact.push(o),r.full.push(i),r},{short:[],compact:[],full:[]});return Ut({name:"enum",short:t.short.join(" | "),compact:t.compact.every(r=>r!=null)?t.compact.join(" | "):null,full:t.full.join(" | ")})}return Ut({name:"enum",short:e.value,compact:e.value})}function fh(e){return`${e}[]`}function NE(e){return`[${e}]`}function kE(e,t,r){return Ut({name:"arrayOf",short:fh(e),compact:t!=null?NE(t):null,full:r&&NE(r)})}function VY(e,t){let{name:r,short:n,compact:a,full:o,inferredType:i}=Ro(e.value,t);if(r==="custom"){if(i==="Object")return kE(n,a,o)}else if(r==="shape")return kE(n,a,o);return Ut({name:"arrayOf",short:fh(n),compact:fh(n)})}function Ro(e,t){try{switch(e.name){case"custom":return BY(e);case"func":return jY(t);case"shape":return qY(e,t);case"instanceOf":return Ut({name:"instanceOf",short:e.value,compact:e.value});case"objectOf":return MY(e,t);case"union":return LY(e,t);case"enum":return UY(e);case"arrayOf":return VY(e,t);default:return Ut({name:e.name,short:e.name,compact:e.name})}}catch(r){console.error(r)}return Ut({name:"unknown",short:"unknown",compact:"unknown"})}function HY(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:r,compact:n,full:a}=Ro(t,e);return n!=null&&!Qc(n)?Te(n):a?Te(r,a):Te(r)}case"func":{let{short:r,full:n}=Ro(t,e),a=r,o;return n&&n.length<NY?a=n:n&&(o=IY(n)),Te(a,o)}default:return null}}catch(r){console.error(r)}return null}var JY=(e,{name:t,type:r})=>{let n=r?.summary==="element"||r?.summary==="elementType",a=FN(e,t);if(a!=null){if(n)return Te(Zc(a));let{hasParams:o}=Wn(e.toString()).inferredType;return Te(rv(a,o))}return Te(n?Go:Oo)},zY=DY({function:JY});function GY(e,t){let{propTypes:r}=t;return r!=null?Object.keys(r).map(n=>e.find(a=>a.name===n)).filter(Boolean):e}function WY(e,t){let{propDef:r}=e,n=HY(e);n!=null&&(r.type=n);let{defaultValue:a}=e.docgenInfo;if(a!=null&&a.value!=null){let o=ON(a.value);o!=null&&(r.defaultValue=o)}else if(t!=null){let o=OY(t,r,zY);o!=null&&(r.defaultValue=o)}return r}function YY(e,t){let r=t.defaultProps!=null?t.defaultProps:{},n=e.map(a=>WY(a,r[a.propDef.name]));return GY(n,t)}function KY(e,t){let{propDef:r}=e,{defaultValue:n}=e.docgenInfo;if(n!=null&&n.value!=null){let a=ON(n.value);a!=null&&(r.defaultValue=a)}return r}function XY(e){return e.map(t=>KY(t))}function QY(e,t){let r=e;!Xc(e)&&!e.propTypes&&s2(e)&&(r=e.type);let n=CW(r,t);if(n.length===0)return[];switch(n[0].typeSystem){case Zf.JAVASCRIPT:return YY(n,e);case Zf.TYPESCRIPT:return XY(n);default:return n.map(a=>a.propDef)}}var ZY=e=>({rows:QY(e,"props")}),eK=e=>{if(e){let{rows:t}=ZY(e);if(t)return t.reduce((r,n)=>{let{name:a,description:o,type:i,sbType:l,defaultValue:u,jsDocTags:c,required:p}=n;return r[a]={name:a,description:o,type:{required:p,...l},table:{type:i??void 0,jsDocTags:c,defaultValue:u??void 0}},r},{})}return null},BN={docs:{extractArgTypes:eK,extractComponentDescription:uN}},jN=[wW];const tK=Object.freeze(Object.defineProperty({__proto__:null,argTypesEnhancers:jN,parameters:BN},Symbol.toStringTag,{value:"Module"})),{logger:Js}=__STORYBOOK_MODULE_CLIENT_LOGGER__,{useRef:rK,useEffect:nK,emitTransformCode:aK}=__STORYBOOK_MODULE_PREVIEW_API__;var oK={};Uc(oK,{applyDecorators:()=>LN,decorators:()=>$N,parameters:()=>UN});var zp=f2,iK=e=>e.charAt(0).toUpperCase()+e.slice(1),sK=e=>(e.$$typeof||e).toString().replace(/^Symbol\((.*)\)$/,"$1").split(".").map(t=>t.split("_").map(iK).join("")).join(".");function hh(e){if(Rt.isValidElement(e)){let t=Object.keys(e.props).reduce((r,n)=>(r[n]=hh(e.props[n]),r),{});return{...e,props:t,_owner:null}}return Array.isArray(e)?e.map(hh):e}var lK=(e,t)=>{if(typeof e>"u")return Js.warn("Too many skip or undefined component"),null;let r=e,n=r.type;for(let i=0;i<t?.skip;i+=1){if(typeof r>"u")return Js.warn("Cannot skip undefined element"),null;if(br.Children.count(r)>1)return Js.warn("Trying to skip an array of elements"),null;typeof r.props.children>"u"?(Js.warn("Not enough children to skip elements."),typeof r.type=="function"&&r.type.name===""&&(r=br.createElement(n,{...r.props}))):typeof r.props.children=="function"?r=r.props.children():r=r.props.children}let a;typeof t?.displayName=="string"?a={showFunctions:!0,displayName:()=>t.displayName}:a={displayName:i=>i.type.displayName?i.type.displayName:su(i.type,"displayName")?su(i.type,"displayName"):i.type.render?.displayName?i.type.render.displayName:typeof i.type=="symbol"||i.type.$$typeof&&typeof i.type.$$typeof=="symbol"?sK(i.type):i.type.name&&i.type.name!=="_default"?i.type.name:typeof i.type=="function"?"No Display Name":Yz(i.type)?i.type.render.name:s2(i.type)?i.type.type.name:i.type};let o={...a,filterProps:(i,l)=>i!==void 0,...t};return br.Children.map(e,i=>{let l=typeof i=="number"?i.toString():i,u=(typeof zp=="function"?zp:zp.default)(hh(l),o);if(u.indexOf(""")>-1){let c=u.match(/\S+=\\"([^"]*)\\"/g);c&&c.forEach(p=>{u=u.replace(p,p.replace(/"/g,"'"))})}return u}).join(`
|
|
1071
|
+
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g,"() => {}")},uK={skip:0,showFunctions:!1,enableBeautify:!0,showDefaultProps:!1},cK=e=>{let t=e?.parameters.docs?.source,r=e?.parameters.__isArgsStory;return t?.type===eh.DYNAMIC?!1:!r||t?.code||t?.type===eh.CODE},pK=e=>e.type?.displayName==="MDXCreateElement"&&!!e.props?.mdxType,qN=e=>{if(!pK(e))return e;let{mdxType:t,originalType:r,children:n,...a}=e.props,o=[];return n&&(o=(Array.isArray(n)?n:[n]).map(qN)),Rt.createElement(r,a,...o)},MN=(e,t)=>{let r=rK(void 0),n=e(),a=cK(t),o={...uK,...t?.parameters.jsx||{}},i=t.originalStoryFn(t.args,t);return nK(()=>{if(a)return;let l=qN(i),u=lK(l,o);u&&r.current!==u&&(aK(u,t),r.current=u)}),n},LN=(e,t)=>{let r=t.findIndex(a=>a.originalFn===MN),n=r===-1?t:[...t.splice(r,1),...t];return Fb(e,n)},$N=[MN],UN={docs:{story:{inline:!0}}};const dK=Object.freeze(Object.defineProperty({__proto__:null,applyDecorators:LN,decorators:$N,parameters:UN},Symbol.toStringTag,{value:"Module"}));var fK=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((e,t)=>{let[r,n]=t;return n.excludeFromDocsStories&&(e[r]=!0),e},{}),hK={docs:{renderer:async()=>{let{DocsRenderer:e}=await Ee(()=>import("./DocsRenderer-PQXLIZUC-BO86igwd.js"),__vite__mapDeps([110,2,109,3,1]),import.meta.url);return new e},stories:{filter:e=>(e.tags||[]).filter(t=>fK[t]).length===0&&!e.parameters.docs?.disable}}};const mK=Object.freeze(Object.defineProperty({__proto__:null,parameters:hK},Symbol.toStringTag,{value:"Module"})),{expect:BE}=__STORYBOOK_MODULE_TEST__,{ElementA11yParameterError:yK}=__STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__,{global:VN}=__STORYBOOK_MODULE_GLOBAL__,{addons:gK,waitForAnimations:bK}=__STORYBOOK_MODULE_PREVIEW_API__;var Ma="storybook/a11y",vK=`${Ma}/panel`,EK=`${Ma}/result`,CK=`${Ma}/request`,wK=`${Ma}/running`,xK=`${Ma}/error`,AK=`${Ma}/manual`,SK=`${Ma}/select`,Gp={RESULT:EK,REQUEST:CK,RUNNING:wK,ERROR:xK,MANUAL:AK,SELECT:SK},{document:_K}=VN,TK=(e,t)=>{let r=_K.location.pathname.replace(/iframe\.html$/,""),n={...e};return["incomplete","passes","violations"].forEach(a=>{Array.isArray(e[a])&&(n[a]=e[a].map(o=>({...o,nodes:o.nodes.map((i,l)=>{let u=`${a}.${o.id}.${l+1}`,c=`${r}?path=/story/${t}&addonPanel=${vK}&a11ySelection=${u}`;return{id:u,...i,linkPath:c}})})))}),n},{document:jE}=VN,Wp=gK.getChannel(),HN={config:{},options:{}},PK=["region"],mh=[],yh=!1,JN=async()=>{if(mh.length===0){yh=!1;return}yh=!0;let e=mh.shift();e&&await e(),JN()},zN=async(e=HN,t)=>{let r=(await Ee(async()=>{const{default:l}=await import("./axe-CmvD4WV5.js").then(u=>u.a);return{default:l}},[],import.meta.url))?.default||globalThis.axe,{config:n={},options:a={}}=e;if(e.element)throw new yK;let o={include:jE?.body,exclude:[".sb-wrapper","#storybook-docs","#storybook-highlights-root"]};if(e.context){let l=typeof e.context=="object"&&"include"in e.context&&e.context.include!==void 0,u=typeof e.context=="object"&&"exclude"in e.context&&e.context.exclude!==void 0;l?o.include=e.context.include:!l&&!u&&(o.include=e.context),u&&(o.exclude=o.exclude.concat(e.context.exclude))}r.reset();let i={...n,rules:[...PK.map(l=>({id:l,enabled:!1})),...n?.rules??[]]};return r.configure(i),new Promise((l,u)=>{let c=jE?.getElementById("storybook-highlights-root");c&&(c.style.display="none");let p=async()=>{try{let d=await r.run(o,a),h=TK(d,t);l(h)}catch(d){u(d)}};mh.push(p),yh||JN(),c&&(c.style.display="")})};Wp.on(Gp.MANUAL,async(e,t=HN)=>{try{await bK();let r=await zN(t,e),n=JSON.parse(JSON.stringify(r));Wp.emit(Gp.RESULT,n,e)}catch(r){Wp.emit(Gp.ERROR,r)}});function qE(){try{return!1}catch{return!1}}var ME=!1,DK=async({id:e,reporting:t,parameters:r,globals:n,viewMode:a})=>{let o=r.a11y,i=n.a11y,l=o?.disable!==!0&&o?.test!=="off"&&i?.manual!==!0,u=()=>{switch(o?.test){case"todo":return"warning";case"error":default:return"failed"}};if(l&&a==="story")try{let c=await zN(o,e);if(c){let p=(c?.violations.length??0)>0;if(t.addReport({type:"a11y",version:1,result:c,status:p?u():"passed"}),qE()&&p&&u()==="failed"){if(!ME){let{toHaveNoViolations:d}=await Ee(async()=>{const{toHaveNoViolations:h}=await import("./matchers-7Z3WT2CE-Dw4MQV_s.js");return{toHaveNoViolations:h}},[],import.meta.url);BE.extend({toHaveNoViolations:d}),ME=!0}BE(c).toHaveNoViolations()}}}catch(c){if(t.addReport({type:"a11y",version:1,result:{error:c},status:"failed"}),qE())throw c}},OK={a11y:{manual:!1}},RK={a11y:{test:"todo"}};const FK=Object.freeze(Object.defineProperty({__proto__:null,afterEach:DK,initialGlobals:OK,parameters:RK},Symbol.toStringTag,{value:"Module"}));var IK={iphone5:{name:"iPhone 5",styles:{height:"568px",width:"320px"},type:"mobile"},iphone6:{name:"iPhone 6",styles:{height:"667px",width:"375px"},type:"mobile"},iphone6p:{name:"iPhone 6 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphone8p:{name:"iPhone 8 Plus",styles:{height:"736px",width:"414px"},type:"mobile"},iphonex:{name:"iPhone X",styles:{height:"812px",width:"375px"},type:"mobile"},iphonexr:{name:"iPhone XR",styles:{height:"896px",width:"414px"},type:"mobile"},iphonexsmax:{name:"iPhone XS Max",styles:{height:"896px",width:"414px"},type:"mobile"},iphonese2:{name:"iPhone SE (2nd generation)",styles:{height:"667px",width:"375px"},type:"mobile"},iphone12mini:{name:"iPhone 12 mini",styles:{height:"812px",width:"375px"},type:"mobile"},iphone12:{name:"iPhone 12",styles:{height:"844px",width:"390px"},type:"mobile"},iphone12promax:{name:"iPhone 12 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphoneSE3:{name:"iPhone SE 3rd generation",styles:{height:"667px",width:"375px"},type:"mobile"},iphone13:{name:"iPhone 13",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13pro:{name:"iPhone 13 Pro",styles:{height:"844px",width:"390px"},type:"mobile"},iphone13promax:{name:"iPhone 13 Pro Max",styles:{height:"926px",width:"428px"},type:"mobile"},iphone14:{name:"iPhone 14",styles:{height:"844px",width:"390px"},type:"mobile"},iphone14pro:{name:"iPhone 14 Pro",styles:{height:"852px",width:"393px"},type:"mobile"},iphone14promax:{name:"iPhone 14 Pro Max",styles:{height:"932px",width:"430px"},type:"mobile"},ipad:{name:"iPad",styles:{height:"1024px",width:"768px"},type:"tablet"},ipad10p:{name:"iPad Pro 10.5-in",styles:{height:"1112px",width:"834px"},type:"tablet"},ipad11p:{name:"iPad Pro 11-in",styles:{height:"1194px",width:"834px"},type:"tablet"},ipad12p:{name:"iPad Pro 12.9-in",styles:{height:"1366px",width:"1024px"},type:"tablet"},galaxys5:{name:"Galaxy S5",styles:{height:"640px",width:"360px"},type:"mobile"},galaxys9:{name:"Galaxy S9",styles:{height:"740px",width:"360px"},type:"mobile"},nexus5x:{name:"Nexus 5X",styles:{height:"660px",width:"412px"},type:"mobile"},nexus6p:{name:"Nexus 6P",styles:{height:"732px",width:"412px"},type:"mobile"},pixel:{name:"Pixel",styles:{height:"960px",width:"540px"},type:"mobile"},pixelxl:{name:"Pixel XL",styles:{height:"1280px",width:"720px"},type:"mobile"}},NK=IK,Yp={exports:{}},ri={};var LE;function kK(){if(LE)return ri;LE=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,o){var i=null;if(o!==void 0&&(i=""+o),a.key!==void 0&&(i=""+a.key),"key"in a){o={};for(var l in a)l!=="key"&&(o[l]=a[l])}else o=a;return a=o.ref,{$$typeof:e,type:n,key:i,ref:a!==void 0?a:null,props:o}}return ri.Fragment=t,ri.jsx=r,ri.jsxs=r,ri}var $E;function BK(){return $E||($E=1,Yp.exports=kK()),Yp.exports}var jK=BK();const GN=(e,t)=>{const r=t.globals.theme||"light";return Rt.useEffect(()=>{r==="dark"?document.documentElement.setAttribute("data-theme",r):document.documentElement.removeAttribute("data-theme");const n=document.getElementById("storybook-root"),a=document.querySelector(".sb-show-main"),o=document.querySelector(".docs-story"),i=r==="dark"?"#333":"#f7f7f7";o&&(o.style.backgroundColor=i),n&&(n.style.backgroundColor=i),a&&(a.style.backgroundColor=i)},[r]),jK.jsx(e,{})};GN.__docgenInfo={description:"",methods:[],displayName:"WithTheme"};const qK={parameters:{controls:{matchers:{color:/(background|color)$/i,date:/Date$/i}},viewport:{options:NK},a11y:{test:"todo"},options:{storySort:{order:["Getting Started","Migration Guide","App Framework",["General","Routing & Navigation","Page Layout","Mobile Behaviours","Navigating Animation","Keep Alive","Bottom Tab Bar"],"Use Cases","Hooks","Components","*"]}}},initialGlobals:{viewport:{value:"iphone14promax",isRotated:!1},theme:"light"},decorators:[GN],globalTypes:{theme:{name:"Theme",description:"Global theme for components",defaultValue:"light",toolbar:{icon:"mirror",items:[{value:"light",icon:"circlehollow",title:"Light"},{value:"dark",icon:"circle",title:"Dark"}],dynamicTitle:!0}}}},MK=Object.freeze(Object.defineProperty({__proto__:null,default:qK},Symbol.toStringTag,{value:"Module"}));Ob();const{composeConfigs:LK,PreviewWeb:$K}=__STORYBOOK_MODULE_PREVIEW_API__,UK=(e=[])=>{const t=[e[0]??Jz,e[1]??tK,e[2]??dK,e[3]??mK,e[4]??FK,e[5]??MK];return LK(t)};window.__STORYBOOK_PREVIEW__=window.__STORYBOOK_PREVIEW__||new $K(az,UK);window.__STORYBOOK_STORY_STORE__=window.__STORYBOOK_STORY_STORE__||window.__STORYBOOK_PREVIEW__.storyStore;export{eh as T,lQ as W,sz as a,sQ as c,br as e,oz as g,cQ as h,jK as j,Rt as r};
|