@public-ui/components
Version:
Contains all web components that belong to KoliBri - The accessible HTML-Standard.
5 lines • 37.3 kB
JavaScript
/*!
* KoliBri - The accessible HTML-Standard
*/
function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var t={exports:{}};var n=t.exports;var r;function o(){if(r)return t.exports;r=1;(function(e){(function(t,n){if(e.exports){e.exports=n()}else{t.log=n()}})(n,(function(){var e=function(){};var t="undefined";var n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent);var r=["trace","debug","info","warn","error"];var o={};var i=null;function a(e,t){var n=e[t];if(typeof n.bind==="function"){return n.bind(e)}else{try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}}function s(){if(console.log){if(console.log.apply){console.log.apply(console,arguments)}else{Function.prototype.apply.apply(console.log,[console,arguments])}}if(console.trace)console.trace()}function l(r){if(r==="debug"){r="log"}if(typeof console===t){return false}else if(r==="trace"&&n){return s}else if(console[r]!==undefined){return a(console,r)}else if(console.log!==undefined){return a(console,"log")}else{return e}}function f(){var n=this.getLevel();for(var o=0;o<r.length;o++){var i=r[o];this[i]=o<n?e:this.methodFactory(i,n,this.name)}this.log=this.debug;if(typeof console===t&&n<this.levels.SILENT){return"No console available for logging"}}function u(e){return function(){if(typeof console!==t){f.call(this);this[e].apply(this,arguments)}}}function c(e,t,n){return l(e)||u.apply(this,arguments)}function d(e,n){var a=this;var s;var l;var u;var d="loglevel";if(typeof e==="string"){d+=":"+e}else if(typeof e==="symbol"){d=undefined}function p(e){var n=(r[e]||"silent").toUpperCase();if(typeof window===t||!d)return;try{window.localStorage[d]=n;return}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"="+n+";"}catch(e){}}function v(){var e;if(typeof window===t||!d)return;try{e=window.localStorage[d]}catch(e){}if(typeof e===t){try{var n=window.document.cookie;var r=encodeURIComponent(d);var o=n.indexOf(r+"=");if(o!==-1){e=/^([^;]+)/.exec(n.slice(o+r.length+1))[1]}}catch(e){}}if(a.levels[e]===undefined){e=undefined}return e}function g(){if(typeof window===t||!d)return;try{window.localStorage.removeItem(d)}catch(e){}try{window.document.cookie=encodeURIComponent(d)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}function y(e){var t=e;if(typeof t==="string"&&a.levels[t.toUpperCase()]!==undefined){t=a.levels[t.toUpperCase()]}if(typeof t==="number"&&t>=0&&t<=a.levels.SILENT){return t}else{throw new TypeError("log.setLevel() called with invalid level: "+e)}}a.name=e;a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5};a.methodFactory=n||c;a.getLevel=function(){if(u!=null){return u}else if(l!=null){return l}else{return s}};a.setLevel=function(e,t){u=y(e);if(t!==false){p(u)}return f.call(a)};a.setDefaultLevel=function(e){l=y(e);if(!v()){a.setLevel(e,false)}};a.resetLevel=function(){u=null;g();f.call(a)};a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)};a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};a.rebuild=function(){if(i!==a){s=y(i.getLevel())}f.call(a);if(i===a){for(var e in o){o[e].rebuild()}}};s=y(i?i.getLevel():"WARN");var h=v();if(h!=null){u=y(h)}f.call(a)}i=new d;i.getLogger=function e(t){if(typeof t!=="symbol"&&typeof t!=="string"||t===""){throw new TypeError("You must supply a name when creating a logger.")}var n=o[t];if(!n){n=o[t]=new d(t,i.methodFactory)}return n};var p=typeof window!==t?window.log:undefined;i.noConflict=function(){if(typeof window!==t&&window.log===i){window.log=p}return i};i.getLoggers=function e(){return o};i["default"]=i;return i}))})(t);return t.exports}var i=o();var a=e(i);const s=(e,t)=>n=>n(e,t),l=(e,t)=>n=>n(e,t,{append:false}),f=()=>{const e=typeof process<"u"&&process.env?process.env:{},t=e.NODE_ENV==="test",n="VITEST"in e,r="JEST_WORKER_ID"in e,o="PLAYWRIGHT_TEST_BASE_URL"in e,i=e.CI==="true",a=e.TEST==="true"||e.IS_TEST==="true",s=typeof navigator<"u"&&navigator.webdriver===true,l=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||n||r||o||i||a||s||l},u={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:f(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[t,n]of u.A11yUi.PERFORMANCE_MEASURES.entries())e[t]=[n.totalTime/n.count,n.count];const t=Object.entries(e).sort(((e,t)=>t[1][0]-e[1][0]));return console.table(Object.fromEntries(t.map((([e,[t,n]])=>[e,{"avg (ms)":parseFloat(t.toFixed(2)),count:n}])))),e}}};let c=true,d=false;const p=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,v=e=>typeof e=="string"&&p.test(e),g=e=>{if(!v(e))throw new Error(`[Theming] The theme identifier "${typeof e=="string"?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},y=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),h=(e,t,n,r)=>b(e,t,n,r),b=(e,t,n,r)=>{r=r??{},r.append=r.append??false,g(e),c&&!d&&(d=true,a.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n import { register } from 'adopted-style-sheets';\n import { defineCustomElements } from '...';\n import { THEME } from '...';\n\n register(THEME, defineCustomElements)\n .then(() => {\n // run your app or website\n })\n .catch(console.warn);`));let o=u.A11yUi.THEMES.get(e);if(o||(o=new Map,u.A11yUi.THEMES.set(e,o)),r.append&&o.has(t)){const e=o.get(t);o.set(t,y(`${e}${n}`))}else o.set(t,y(n))},m=(e,t,n,r)=>w(e,t,n,r),w=(e,t,n,r)=>(g(e),typeof t=="object"&&t!==null&&Object.getOwnPropertyNames(t).forEach((o=>{const i=t[o],a=o.toLowerCase(),s=typeof r?.transformTagName=="function"&&!["GLOBAL","PROPERTIES"].includes(o)?r.transformTagName(a):o;typeof i=="string"&&i.length>0&&b(e,s.toUpperCase(),i,n)})),e),k=e=>{if(e instanceof HTMLElement){if(typeof e.dataset.theme=="string")return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return k(t)}}else return null},S=(e={})=>e.themeEncroachCss==="false"||e.themeReset==="true"?false:{mode:e.themeEncroachCssMode==="after"||e.themeEncroachCssMode==="before"?e.themeEncroachCssMode:"before"},E=()=>typeof u.A11yUi.Theme=="object"&&u.A11yUi.Theme!==null&&typeof u.A11yUi.Theme.cache=="boolean"&&typeof u.A11yUi.Theme.encroachCss=="object"&&u.A11yUi.Theme.encroachCss!==null&&typeof u.A11yUi.Theme.encroachCss.mode=="string"&&typeof u.A11yUi.Theme.name=="string",T=()=>!(typeof u.A11yUi.Theme=="object"&&u.A11yUi.Theme!==null)||u.A11yUi.Theme.name!=="default",M=e=>{if(E())return u.A11yUi.Theme;{const t={cache:true,encroachCss:S(),loglevel:"silent",mode:"csr",name:null},n=k(e);return n instanceof HTMLElement&&(t.cache=n.dataset.themeCache!=="false",t.encroachCss=S(n.dataset),t.loglevel=n.dataset.themeLoglevel==="debug"?n.dataset.themeLoglevel:"silent",t.mode=n.dataset.themeMode==="ssr"?n.dataset.themeMode:"csr",t.name=n.dataset.theme||null),t}},A=()=>E()?u.A11yUi.Theme.name:null,N=(e,t)=>({cache:t.cache!==false,detect:t.detect==="auto"?"auto":"fixed",encroachCss:t.encroachCss===false?false:typeof t.encroachCss=="object"&&t.encroachCss!=null&&(t.encroachCss.mode==="after"||t.encroachCss.mode==="before")?t.encroachCss:{mode:"before"},loglevel:t.loglevel==="debug"?t.loglevel:"silent",mode:t.mode==="ssr"?t.mode:"csr",name:typeof t.name=="string"?t.name:e}),O=(e,t)=>{E()===false&&T()&&typeof t=="object"&&t!==null&&(t=N(e,t),t.detect==="fixed"?(t.name===null&&typeof e=="string"&&(t.name=e),e===t.name&&(u.A11yUi.Theme=t,a.info(`[Theming] Theme "${e}" was set as default theme.`))):d||(d=true,a.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let L=false;const I=(e,t,n={})=>{L||(L=true,c=false,typeof window<"u"&&(window.A11yUi=u.A11yUi)),typeof e=="function"?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach((e=>{typeof e=="function"&&e.length===1?O(e(((e,t,r)=>w(e,t,r,n))),{cache:n.theme?.cache,detect:n.theme?.detect,encroachCss:n.theme?.encroachCss,mode:n.theme?.mode,name:n.theme?.name}):a.error("[Theming] An attempt was made to load an incompatible theme.")})),c=true,typeof t=="function"?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const r=[];return t.forEach((e=>{const t=e();t instanceof Promise&&r.push(t)})),Promise.all(r)};const C=new Set,R=new Map,$=/--[^;]+/g,j=/:/,x=typeof MutationObserver<"u";let _=25,F=()=>{_=Math.min(25+Math.log2(u.A11yUi.STYLING_TASK_QUEUE.size+1)*20,250)};const H=(e,t)=>{let n=t.match($);if(Array.isArray(n)){n=n.filter((e=>j.test(e)));const t=document.createElement("style");t.innerHTML=`.${e} {${n.join(";")}}`,document.querySelector("head")?.appendChild(t)}C.add(e)},P=(e,t)=>{const n=u.A11yUi.THEMES.get(e);if(n instanceof Map){const e=n.get(t);if(e!==void 0)return e}return""},U=e=>{const t=e.firstChild;if(!(!(t instanceof HTMLStyleElement)||t.dataset.themingFallback!==void 0))for(const t of Array.from(e.childNodes))if(t instanceof HTMLStyleElement&&t.tagName==="STYLE"&&t.dataset.themingFallback===void 0)e.removeChild(t);else break},q=(e,t)=>{try{if(u.A11yUi.Theme?.mode==="ssr")throw new Error("SSR");const n=t.filter((e=>typeof e=="string"&&e.length>0)).map((e=>{let t=R.get(e);return t||(t=new CSSStyleSheet,t.replaceSync(e),R.set(e,t)),t}));e.adoptedStyleSheets=n}catch{for(let n=t.length-1;n>=0;n--){const r=t[n];if(typeof r!="string"||r.length===0)continue;const o=t.length-1-n,i=document.createElement("style");switch(i.dataset.themingFallback="",o){case 4:i.dataset.themingBaseA11y="";break;case 3:i.dataset.themingBaseGlobal="";break;case 2:i.dataset.themingBaseComponent="";break;case 1:i.dataset.themingCustomGlobal="";break;case 0:i.dataset.themingCustomComponent="";break;default:i.dataset.themingUnknown="";break}i.innerHTML=r,e.insertBefore(i,e.firstChild)}}},z=(e,t,n)=>{if(n===false||n?.mode!=="before"&&n?.mode!=="after")return;const r=Array.from(e.childNodes).filter((e=>e instanceof HTMLStyleElement&&e.tagName==="STYLE"));let o;try{o=Array.from(e.adoptedStyleSheets)}catch{o=[]}if(!(r.length===0&&o.length===0))if(n.mode==="before"){const e=[...o.map((e=>Array.from(e.cssRules).map((e=>e.cssText)).join(""))),...r.map((e=>e.innerHTML))];t.unshift(...e)}else r.forEach((e=>t.push(e.innerHTML))),o.forEach((e=>t.push(Array.from(e.cssRules).map((e=>e.cssText)).join(""))))},B=(e,t,n)=>{const r=t.name||"default";let o;try{if(e.shadowRoot===null)throw new Error("ShadowRoot is null");o=e.shadowRoot}catch{o=e}const i=u.A11yUi.CSS_STYLE_CACHE.get(r)?.get(e.tagName);if(i)J(e,o,i,n);else{const i=P(r,"PROPERTIES"),a=P(r,"GLOBAL"),s=P(r,e.tagName);C.has(r)===false&&H(r,a);const l=[i,a,s];if(z(o,l,t.encroachCss),t.cache===true){let t=u.A11yUi.CSS_STYLE_CACHE.get(r);t||(t=new Map,u.A11yUi.CSS_STYLE_CACHE.set(r,t)),t.set(e.tagName,l)}J(e,o,l,n)}},J=(e,t,n,r)=>{const o=u.A11yUi.Theme?.loglevel==="debug",i=o?performance.now():0;if(U(t),q(t,n),te(e),requestAnimationFrame(r),o){const t=performance.now()-i,n=u.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);n?(n.count+=1,n.totalTime+=t):u.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:t})}},K=e=>{const t=u.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:n,themeDetails:r}=t;B(e,r,n)}},W=100;let D=(e,t=0)=>{if(t>=W)return;const n=setTimeout((()=>{clearTimeout(n),e.classList.contains("hydrated")?K(e):D(e,t+1)}),_)};const Y={attributes:true,attributeFilter:["class"],childList:false,subtree:false},G={attributes:true,attributeFilter:[],childList:false,subtree:false},V=x?new MutationObserver(((e,t)=>{const n=[];for(const t of e){const e=t.target;e.classList.contains("hydrated")&&u.A11yUi.STYLING_TASK_QUEUE.has(e)&&(K(e),n.push(e))}for(const e of n)t.observe(e,G)})):null;V&&(D=e=>V.observe(e,Y),F=()=>{});const Q=new Map;let X=(e,t)=>{if(t){const e=Q.get(t);if(e!==void 0)return e}const n=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();let r;if(n.endsWith("ms"))r=parseFloat(n);else if(n.endsWith("s"))r=parseFloat(n)*1e3;else{const e=parseFloat(n);r=isNaN(e)?0:e}return t&&Q.set(t,r),r};u.A11yUi.IS_TEST_ENVIRONMENT&&(X=()=>0);const Z=(e,t)=>{e.style.setProperty("visibility",t),e.dataset.themed=""},ee=(e,t)=>{const n=e.style.visibility||null,r=t.name||"default";u.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const t=X(e,r);t>0?setTimeout((()=>{Z(e,n)}),t):Z(e,n)},themeDetails:t}),e.style.setProperty("visibility","hidden","important"),D(e)},te=e=>{u.A11yUi.STYLING_TASK_QUEUE.delete(e),F()},ne=(e,t)=>{ee(e,{...u.A11yUi.Theme,...t})};class re{Prefix;Key;Tag;createTheme=(e,t)=>l(e,t);createTranslation=(e,t)=>s(e,t);constructor(e,t,n){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(n)}}var oe;(function(e){e[e["error"]=0]="error";e[e["warning"]=1]="warning";e[e["info"]=2]="info";e[e["success"]=3]="success";e[e["message"]=4]="message";e[e["close"]=5]="close";e[e["form-description"]=6]="form-description";e[e["of"]=7]="of";e[e["characters"]=8]="characters";e[e["new"]=9]="new";e[e["no-entries"]=10]="no-entries";e[e["change-order"]=11]="change-order";e[e["action-running"]=12]="action-running";e[e["action-done"]=13]="action-done";e[e["page-first"]=14]="page-first";e[e["page-back"]=15]="page-back";e[e["page-next"]=16]="page-next";e[e["page-last"]=17]="page-last";e[e["entries-per-site"]=18]="entries-per-site";e[e["page-current"]=19]="page-current";e[e["page-selected"]=20]="page-selected";e[e["page-per-site"]=21]="page-per-site";e[e["logo-description"]=22]="logo-description";e[e["live-value-bounded"]=23]="live-value-bounded";e[e["live-value"]=24]="live-value";e[e["open-link-in-tab"]=25]="open-link-in-tab";e[e["kolibri-logo"]=26]="kolibri-logo"})(oe||(oe={}));var ie;(function(e){e[e["abbr"]=0]="abbr";e[e["accordion"]=1]="accordion";e[e["alert"]=2]="alert";e[e["avatar"]=3]="avatar";e[e["badge"]=4]="badge";e[e["breadcrumb"]=5]="breadcrumb";e[e["button"]=6]="button";e[e["button-link"]=7]="button-link";e[e["card"]=8]="card";e[e["combobox"]=9]="combobox";e[e["details"]=10]="details";e[e["dialog"]=11]="dialog";e[e["drawer"]=12]="drawer";e[e["form"]=13]="form";e[e["heading"]=14]="heading";e[e["icon"]=15]="icon";e[e["image"]=16]="image";e[e["input-checkbox"]=17]="input-checkbox";e[e["input-color"]=18]="input-color";e[e["input-date"]=19]="input-date";e[e["input-email"]=20]="input-email";e[e["input-file"]=21]="input-file";e[e["input-number"]=22]="input-number";e[e["input-password"]=23]="input-password";e[e["input-radio"]=24]="input-radio";e[e["input-range"]=25]="input-range";e[e["input-text"]=26]="input-text";e[e["kolibri"]=27]="kolibri";e[e["link"]=28]="link";e[e["link-button"]=29]="link-button";e[e["logo"]=30]="logo";e[e["meter"]=31]="meter";e[e["modal"]=32]="modal";e[e["nav"]=33]="nav";e[e["pagination"]=34]="pagination";e[e["popover-button"]=35]="popover-button";e[e["progress"]=36]="progress";e[e["quote"]=37]="quote";e[e["select"]=38]="select";e[e["single-select"]=39]="single-select";e[e["skip-nav"]=40]="skip-nav";e[e["spin"]=41]="spin";e[e["split-button"]=42]="split-button";e[e["symbol"]=43]="symbol";e[e["table"]=44]="table";e[e["table-stateful"]=45]="table-stateful";e[e["table-stateless"]=46]="table-stateless";e[e["tabs"]=47]="tabs";e[e["textarea"]=48]="textarea";e[e["toast-container"]=49]="toast-container";e[e["toolbar"]=50]="toolbar";e[e["tooltip"]=51]="tooltip";e[e["tree"]=52]="tree";e[e["tree-item"]=53]="tree-item"})(ie||(ie={}));const ae=()=>{if(typeof window!=="undefined")return window;return{}};const se=()=>{const e=ae();if(e&&typeof e.document!=="undefined")return e.document;return{}};const le=["development","production","test"];let fe="production";const ue=e=>{try{if(le.includes(e)){fe=e}else{throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${le.join(", ")}.`)}}catch(e){fe="production"}};const ce=()=>{try{const e=typeof process!=="undefined"&&process.env?process.env["NODE_ENV"]:undefined;if(e&&le.includes(e)){return e}}catch(e){}return"production"};ue(ce());let de=false;let pe=false;const ve=()=>fe==="development";const ge=()=>fe==="test";const ye=()=>de===true;const he=e=>{de=e===true};const be=()=>pe===true;const me=e=>{pe=e===true};const we="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000";const ke=e=>Array.isArray(e)?e:[e];const Se=e=>`%c${e}`;const Ee=(e,t)=>{if(typeof t==="string"&&t.length>0){return`${Se(e)} | ${t}`}else{return Se(e)}};const Te=(e,t)=>[Ee(e,t===null||t===void 0?void 0:t.classifier),`${we};${(t===null||t===void 0?void 0:t.overwriteStyle)||""}`];const Me=e=>ve()||e===true;class Ae{constructor(e){this.label=e}debug(e,t){if(Me(t===null||t===void 0?void 0:t.forceLog)){console.debug(...Te(this.label,t),...ke(e))}}info(e,t){if(Me(t===null||t===void 0?void 0:t.forceLog)){console.info(...Te(this.label,t),...ke(e))}}trace(e,t){if(Me(t===null||t===void 0?void 0:t.forceLog)){console.trace(...Te(this.label,t),...ke(e))}}warn(e,t){if(Me(t===null||t===void 0?void 0:t.forceLog)){console.warn(...Te(this.label,t),...ke(e))}}error(e,t){console.error(...Te(this.label,t),...ke(e))}throw(e,t){if(Me(t===null||t===void 0?void 0:t.forceLog)){throw new Error(...Te(this.label,t),...ke(e))}}}const Ne=new Ae("KoliBri");const Oe=new Set;const Le=(e,t)=>{if(Oe.has(e)===false||false){Oe.add(e);Ne.debug([e].concat([]),{classifier:`✋ a11y`,forceLog:false,overwriteStyle:"; background-color: #09f"})}};const Ie=new Set;const Ce=(e,t)=>{if(Ie.has(e)===false||false){Ie.add(e);Ne.warn([e].concat([]),{classifier:`🔥 deprecated`,forceLog:false,overwriteStyle:"; background-color: #f00"})}};const Re=new Set;const $e=(e,t)=>{if(Re.has(e)===false||!!(t===null||t===void 0?void 0:t.force)){Re.add(e);Ne.debug([e].concat((t===null||t===void 0?void 0:t.details)||[]),{classifier:`💻 dev`,forceLog:!!(t===null||t===void 0?void 0:t.force),overwriteStyle:"; background-color: #f09"})}};const je=(e,t)=>{if(Re.has(e)===false||false){Re.add(e);Ne.warn([e].concat([]),{classifier:`⚠️ dev`,forceLog:false,overwriteStyle:"; background-color: #f09"})}};const xe=new Set;const _e=(e,t=false,n)=>{if(xe.has(e)===false||false){xe.add(e);e+=t===true?" ✅":"";Ne.debug([e].concat([]),{classifier:`🌟 feature`,forceLog:false,overwriteStyle:"; background-color: #309"})}};$e(`We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!`);const Fe=new Set;const He=(e,t)=>{if(Fe.has(e)===false||false){Fe.add(e);Ne.debug([e].concat([]),{classifier:`📑 ui/ux`,forceLog:false,overwriteStyle:"; background-color: #060;"})}};const Pe=()=>{Le(`"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae`)};const Ue=e=>{if(typeof e!=="string"||e===""){Le(`Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns`)}};const qe=(e,t=8)=>{if(t>7){He(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.\n\nLink:\n- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)}};var ze=.2126,Be=.7152,Je=.0722,Ke=1/12.92;function We(e){return Math.pow((e+.055)/1.055,2.4)}function De(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,o=t<=.03928?t*Ke:We(t),i=n<=.03928?n*Ke:We(n),a=r<=.03928?r*Ke:We(r);return o*ze+i*Be+a*Je}function Ye(e){var t=255;8===(e=e.replace(/^#/,"")).length&&(t=parseInt(e.slice(6,8),16),e=e.substring(0,6)),4===e.length&&(t=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var n=parseInt(e,16);return[n>>16,n>>8&255,255&n,t]}function Ge(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function Ve(e,t){return Ge(De(e),De(t))}function Qe(e,t){return Ve(Ye(e),Ye(t))}function Xe(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}var Ze;var et;function tt(){if(et)return Ze;et=1;Ze={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]};return Ze}var nt;var rt;function ot(){if(rt)return nt;rt=1;var e=tt();nt=n;var t={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function n(n){var r,o=[],i=1,a;if(typeof n==="string"){n=n.toLowerCase();if(e[n]){o=e[n].slice();a="rgb"}else if(n==="transparent"){i=0;a="rgb";o=[0,0,0]}else if(/^#[A-Fa-f0-9]+$/.test(n)){var s=n.slice(1);var l=s.length;var f=l<=4;i=1;if(f){o=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)];if(l===4){i=parseInt(s[3]+s[3],16)/255}}else{o=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)];if(l===8){i=parseInt(s[6]+s[7],16)/255}}if(!o[0])o[0]=0;if(!o[1])o[1]=0;if(!o[2])o[2]=0;a="rgb"}else if(r=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(n)){var u=r[1];var c=u==="rgb";var s=u.replace(/a$/,"");a=s;var l=s==="cmyk"?4:s==="gray"?1:3;o=r[2].trim().split(/\s*[,\/]\s*|\s+/).map((function(e,n){if(/%$/.test(e)){if(n===l)return parseFloat(e)/100;if(s==="rgb")return parseFloat(e)*255/100;return parseFloat(e)}else if(s[n]==="h"){if(/deg$/.test(e)){return parseFloat(e)}else if(t[e]!==undefined){return t[e]}}return parseFloat(e)}));if(u===s)o.push(1);i=c?1:o[l]===undefined?1:o[l];o=o.slice(0,l)}else if(n.length>10&&/[0-9](?:\s|\/)/.test(n)){o=n.match(/([0-9]+)/g).map((function(e){return parseFloat(e)}));a=n.match(/([a-z])/gi).join("").toLowerCase()}}else if(!isNaN(n)){a="rgb";o=[n>>>16,(n&65280)>>>8,n&255]}else if(Array.isArray(n)||n.length){o=[n[0],n[1],n[2]];a="rgb";i=n.length===4?n[3]:1}else if(n instanceof Object){if(n.r!=null||n.red!=null||n.R!=null){a="rgb";o=[n.r||n.red||n.R||0,n.g||n.green||n.G||0,n.b||n.blue||n.B||0]}else{a="hsl";o=[n.h||n.hue||n.H||0,n.s||n.saturation||n.S||0,n.l||n.lightness||n.L||n.b||n.brightness]}i=n.a||n.alpha||n.opacity||1;if(n.opacity!=null)i/=100}return{space:a,values:o,alpha:i}}return nt}var it=ot();var at=e(it);const st={min:[0,0,0],max:[255,255,255]};var lt={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100,o,i,a,s,l,f=0;if(n===0)return l=r*255,[l,l,l];i=r<.5?r*(1+n):r+n-r*n;o=2*r-i;s=[0,0,0];for(;f<3;){a=t+1/3*-(f-1);a<0?a++:a>1&&a--;l=6*a<1?o+(i-o)*6*a:2*a<1?i:3*a<2?o+(i-o)*(2/3-a)*6:o;s[f++]=l*255}return s}};st.hsl=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=i-o,s,l,f;if(i===o){s=0}else if(t===i){s=(n-r)/a}else if(n===i){s=2+(r-t)/a}else if(r===i){s=4+(t-n)/a}s=Math.min(s*60,360);if(s<0){s+=360}f=(o+i)/2;if(i===o){l=0}else if(f<=.5){l=a/(i+o)}else{l=a/(2-i-o)}return[s,l*100,f*100]};var ft={exports:{}};var ut;function ct(){if(ut)return ft.exports;ut=1;ft.exports=e;ft.exports.arr=e;ft.exports.obj=t;ft.exports.css=n;ft.exports.hex=r;ft.exports.num=o;function e(e){var t=i(e);if(t.length==3){return t.concat(255)}else{t[3]=Math.round(t[3]);return t}}function t(e){var t=i(e);return{r:t[0],g:t[1],b:t[2],a:t.length==3?255:Math.round(t[3])}}function n(e){var t=i(e);if(t.length==3)t.push(255);return t[3]==255?"rgb("+t[0]+", "+t[1]+", "+t[2]+")":t[3]==0?"rgba("+t[0]+", "+t[1]+", "+t[2]+", 0)":"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+String(t[3]/255).substr(1)+")"}function r(e){var t=i(e);if(t.length==3)t.push(255);var n=t[3]==255;var r=a(t[0]);var o=a(t[1]);var l=a(t[2]);var t=a(Math.round(t[3]));var f=s(r,o,l,t);if(n){return f?"#"+r.charAt(0)+o.charAt(0)+l.charAt(0):"#"+r+o+l}return f?"#"+r.charAt(0)+o.charAt(0)+l.charAt(0)+t.charAt(0):"#"+r+o+l+t}function o(e){var t=i(e);if(t.length==3)t.push(255);else t[3]=Math.round(t[3]);return(t[3]<<24>>>0|t[0]<<16|t[1]<<8|t[2])>>>0}function i(e){if(typeof e=="string"){e=e.toLowerCase();return l(e)||u(e)||c(e)||y(e)||h(e)||[0,0,0,255]}return p(e)||v(e)||g(e)||[0,0,0,255]}function a(e){var t=e.toString(16);return t.length==1?"0"+t:t}function s(e,t,n,r){var o=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return o.indexOf(e)!=-1&&o.indexOf(t)!=-1&&o.indexOf(n)!=-1&&o.indexOf(r)!=-1}function l(e){if(e=="red")return[255,0,0];if(e=="green")return[0,255,0];if(e=="blue")return[0,0,255];if(e=="black")return[0,0,0];if(e=="white")return[255,255,255];if(e=="cyan")return[0,255,255];if(e=="gray")return[128,128,128];if(e=="grey")return[128,128,128];if(e=="magenta")return[255,0,255];if(e=="pink")return[255,0,255];if(e=="yellow")return[255,255,0]}function f(e){return e.length==1?parseInt(e+e,16):parseInt(e,16)}function u(e){var t=e.replace(/^#/,"");var n=t.length;if(n==3||n==4){var r=f(t[0]);var o=f(t[1]);var i=f(t[2]);var a=n==3?255:f(t[3]);if(isNaN(r)||isNaN(o)||isNaN(i)||isNaN(a))return;return[r,o,i,a]}}function c(e){var t=e.replace(/^#/,"");var n=t.length;if(n==6||n==8){var r=f(t.slice(0,2));var o=f(t.slice(2,4));var i=f(t.slice(4,6));var a=n==6?255:f(t.slice(6,8));if(isNaN(r)||isNaN(o)||isNaN(i)||isNaN(a))return;return[r,o,i,a]}}function d(e,t){if(typeof e!="number")return-1;if(t===true&&Math.floor(e)!==e)return-1;return e>=0&&e<=255?e:-1}function p(e){if(Object.prototype.toString.call(e)==="[object Object]"&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=d(e.r!=undefined?e.r:e.red!=undefined?e.red:0,true);var n=d(e.g!=undefined?e.g:e.green!=undefined?e.green:0,true);var r=d(e.b!=undefined?e.b:e.blue!=undefined?e.blue:0,true);var o=d(e.a!=undefined?e.a:e.alpha!=undefined?e.alpha:255,true);if(t!=-1&&n!=-1&&r!=-1&&o!=-1){return[t,n,r,o]}}}function v(e){if(Array.isArray(e)&&(e.length==3||e.length==4)){var t=d(e[0],true);var n=d(e[1],true);var r=d(e[2],true);var o=d(e[3]!=undefined?e[3]:255,true);if(t!=-1&&n!=-1&&r!=-1&&o!=-1){return[t,n,r,o]}}}function g(e){if(typeof e=="number"&&Math.floor(e)==e&&e<=4294967295&&e>=0){var t=e>>24&255;var n=e>>16&255;var r=e>>8&255;var o=e&255;return[n,r,o,t]}}function y(e){if(e.substr(0,4)=="rgb("){e=e.match(/^rgb\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);var n=d(t[0],true);var r=d(t[1],true);var o=d(t[2],true);if(n!=-1&&r!=-1&&o!=-1){return[n,r,o,255]}}}function h(e){if(e.substr(0,5)=="rgba("){e=e.match(/^rgba\(([^)]+)\)/)[1];var t=e.split(/ *, */).map(Number);var n=d(t[0],true);var r=d(t[1],true);var o=d(t[2],true);var i=d(t[3]*255);if(n!=-1&&r!=-1&&o!=-1&&i!=-1){return[n,r,o,i]}}}return ft.exports}var dt=ct();var pt=e(dt);const vt=/\[object Object\]/;const gt=(e,t)=>{if(typeof e==="string"&&vt.test(e)){return}t()};const yt=(e,t)=>{if(typeof e==="string"&&e===""){return}t()};const ht=(e,t)=>{if(ye()){Ne.debug([e,t]);Ne.debug(`↑ We propagate the (submit) event to this target.`)}Object.defineProperty(e,"target",{value:t,writable:false})};const bt=e=>{var t,n,r;(t=e.nextHooks)===null||t===void 0?void 0:t.forEach(((t,n)=>{var r;const o=t.get("beforePatch");if(typeof o==="function"){o((r=e.nextState)===null||r===void 0?void 0:r.get(n),e.nextState,e,n)}}));if(((n=e.nextState)===null||n===void 0?void 0:n.size)>0){e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState));delete e.nextState;(r=e.nextHooks)===null||r===void 0?void 0:r.forEach(((t,n)=>{const r=t.get("afterPatch");if(typeof r==="function"){r(e.state[n],e.state,e,n)}}))}delete e.nextHooks};const mt=(e,t,n,r={})=>{var o,i;if(e.nextHooks===undefined){e.nextHooks=new Map}if(e.nextState===undefined){e.nextState=new Map}const a=e.nextHooks.get(t);if(a instanceof Map===false){e.nextHooks.set(t,new Map)}if(typeof r.afterPatch==="function"){(o=e.nextHooks.get(t))===null||o===void 0?void 0:o.set("afterPatch",r.afterPatch)}if(typeof r.beforePatch==="function"){(i=e.nextHooks.get(t))===null||i===void 0?void 0:i.set("beforePatch",r.beforePatch)}e.nextState.set(t,n);bt(e)};const wt=(e,t,n,r)=>{$e(`[${e.constructor.name}] The property value: (${n}) for '${t}' is not valid. Allowed values are: ${Array.from(r).join(", ")}`)};function kt(e,t,n,r,o,i={}){if(n(o)){mt(e,t,o,i.hooks)}else if(o===undefined&&i.required!==true&&n(i.defaultValue)){mt(e,t,i.defaultValue,i.hooks)}else{if(!i.required){r.add(null)}wt(e,t,o,r)}}const St=(e,t,n,r)=>{kt(e,t,(e=>typeof e==="boolean"),new Set(["Boolean {true, false}"]),n,r)};const Et=(e,t,n,r={})=>{const o=typeof r.minLength==="number"?r===null||r===void 0?void 0:r.minLength:0;kt(e,t,(e=>typeof e==="string"&&e.length>=o&&(typeof(r===null||r===void 0?void 0:r.maxLength)==="undefined"||e.length<=r.maxLength)),new Set([`String`]),n,r)};const Tt=(e,t,n,r)=>{kt(e,t,(e=>typeof e==="number"&&(typeof(r===null||r===void 0?void 0:r.min)==="undefined"||typeof(r===null||r===void 0?void 0:r.min)==="number"&&e>=r.min)&&(typeof(r===null||r===void 0?void 0:r.max)==="undefined"||typeof(r===null||r===void 0?void 0:r.max)==="number"&&e<=r.max)),new Set(["Number"]),n,r)};const Mt=(e,t,n,r,o=e=>e===e,i={})=>{yt(r,(()=>{gt(r,(()=>{if(typeof r==="undefined"){r=[]}try{try{r=Ot(r)}catch(e){}if(Array.isArray(r)){const a=r.find((e=>!n(e)));if(a===undefined&&o(r)){mt(e,t,r,i.hooks)}else{gt(a,(()=>{Ne.debug(a);throw new Error(`↑ The schema for the property (_options) is not valid. The value will not be changed.`)}))}}else{gt(r,(()=>{Ne.debug(r);throw new Error(`↑ The schema for the property (_options) is not valid. The value will not be changed.`)}))}}catch(e){Ne.debug(e)}}))}))};const At=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){Ne.warn(["stringifyJson",e]);Ne.error(`↑ The JSON could not be converted to a string. A stringifiable JSON is expected.`);throw new Error}};const Nt=/^[{[]/;const Ot=e=>{if(typeof e==="string"){try{return JSON.parse(e)}catch(t){if(Nt.test(e)){try{return JSON.parse(e.replace(/'/g,'"'))}catch(t){Ne.warn(["parseJson",e]);Ne.error(`↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (‘).`)}}}}throw new Error};const Lt=e=>typeof e==="boolean"?e===true?"true":"false":undefined;const It=e=>typeof e==="string"?e:Lt(e);const Ct=(e,t)=>{const n=new Set;const r=[t];let o=0;while(o<r.length){const t=r[o++];if(n.has(t)){continue}n.add(t);if(t instanceof Element&&t.matches(e)){return t}const i=Array.from(t.children||[]);for(let e=0;e<i.length;e++){r.push(i[e])}if(t instanceof HTMLElement&&t.shadowRoot){r.push(t.shadowRoot)}if(t instanceof HTMLSlotElement){const e=t.assignedNodes({flatten:true});for(let t=0;t<e.length;t++){if(e[t]instanceof Element){r.push(e[t])}}}}return null};const Rt=(e,t)=>{const n=new Set;const r=[];const o=new Set;const i=[t];let a=0;while(a<i.length){const t=i[a++];if(n.has(t)){continue}n.add(t);if(t instanceof Element&&t.matches(e)&&!o.has(t)){r.push(t);o.add(t)}const s=Array.from(t.children||[]);for(let e=0;e<s.length;e++){i.push(s[e])}if(t instanceof HTMLElement&&t.shadowRoot){i.push(t.shadowRoot)}if(t instanceof HTMLSlotElement){const e=t.assignedNodes({flatten:true});for(let t=0;t<e.length;t++){if(e[t]instanceof Element){i.push(e[t])}}}}return r};const $t=(e,t)=>Ct(e,t||se());const jt=(e,t)=>Rt(e,t||se());let xt=null;const _t=()=>{xt=xt||{backgroundColor:"#00000000",color:"#00000000",domNode:se().body,level:"Fail",score:1};return xt};const Ft=/(\d+, ){3}0\)/;const Ht=(e,t=_t())=>{const n=getComputedStyle(e);const r=Ft.test(n.backgroundColor)?t.backgroundColor:pt.hex(n.backgroundColor);const o=Ft.test(n.color)?t.color:pt.hex(n.color);const i=Qe(r,o);const a={backgroundColor:r,color:o,domNode:e,level:Xe(i),score:i};if(i<4.5){Ne.error(["Color-Contrast-Error",{backgroundColor:a.backgroundColor,color:a.color,level:a.level,score:a.score},a.domNode])}return a};const Pt=(e,t=_t())=>{if(t.domNode instanceof HTMLElement){t=Ht(t.domNode,t)}const n=t.domNode.querySelector(e);if(n===null){const n=t.domNode.querySelectorAll('[class="hydrated"]');for(let r=0;r<n.length;r++){t.domNode=n[r];t=Pt(e,t);if(t.domNode!==null){break}}return t}else{return Ht(n,t)}};class Ut{static queryHtmlElementColors(e,t,n=false,r=true){let o=null;if(n===true||Ut.executionLock===false){if(n===false){Ut.cache.clear();Ut.cache.set(t.domNode,t);Ut.executionLock=true;if(r===true){Ne.debug(`[KoliBriUtils] Color contrast analysis started...`)}}if(e===t.domNode){o=t}else{const n=new Set;if(t.domNode.shadowRoot){const e=t.domNode.shadowRoot.children;for(let t=0;t<e.length;t++){n.add(e[t])}}const r=t.domNode;if(typeof r.assignedNodes==="function"){const e=r.assignedNodes();for(let t=0;t<e.length;t++){if(e[t]instanceof HTMLElement){n.add(e[t])}}}const i=t.domNode.children;for(let e=0;e<i.length;e++){n.add(i[e])}const a=Array.from(n);for(let n=0;n<a.length;n++){let r=Ut.cache.get(a[n]);if(r===undefined){r=Ht(a[n],t)}Ut.cache.set(a[n],r);const i=Ut.queryHtmlElementColors(e,r,true,false);if(i!==null){o=i;break}}}}else{Ne.debug(`[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.`)}if(n===false){if(r===true){Ne.debug(`[KoliBriUtils] Color contrast analysis finished (${Ut.cache.size} DOM elements are analysed).`)}Ut.executionLock=false;Ut.cache.clear()}return o}}Ut.executionLock=false;Ut.cache=new Map;class qt{}qt.getCssStyle=P;qt.patchTheme=m;qt.patchThemeTag=h;qt.querySelector=$t;qt.querySelectorAll=jt;qt.stringifyJson=At;const zt=e=>typeof e==="object"&&e!==null;const Bt=(e,t=0)=>typeof e==="string"&&e.length>=t;const Jt=e=>{if(typeof e==="object"&&e!==null){for(const t in e){if(Bt(t,1)===false){return false}}}else{return Bt(e,1)}return true};const Kt=new Event("StateChange");export{At as $,ge as A,Pe as B,he as C,me as D,ae as E,Jt as F,zt as G,Mt as H,qe as I,ye as J,oe as K,Ne as L,ht as M,Tt as N,je as O,yt as P,$t as Q,It as R,Lt as S,ie as T,Kt as U,ve as V,Ht as W,jt as X,Pt as Y,I as Z,Ut as _,qt as a,be as a0,kt as b,Ue as c,ne as d,St as e,_e as f,Et as g,Ce as h,Bt as i,$e as j,Le as k,at as l,lt as m,pt as n,gt as o,Ot as p,Qe as q,st as r,mt as s,ue as t,e as u,se as v,M as w,He as x,re as y,A as z};
//# sourceMappingURL=common-Cx_AGO_M.js.map