/*!
 * KoliBri - The accessible HTML-Standard
 */
import{L as n,v as t,C as e,D as o,E as s,A as i}from"./common-DEEjER7G.js";import{E as r}from"./index-Brmny3Vg.js";const a=()=>{try{const n=t();if(!n||typeof n.querySelector!=="function"){return}const s=n.querySelector('meta[name="kolibri"]');if(s&&s.hasAttribute("content")){const n=s.getAttribute("content");if(typeof n==="string"){e(n.includes("experimental-mode=true"));o(n.includes("color-contrast-analysis=true"))}}}catch(n){}};const c=()=>{let n=s().KoliBri;if(n===undefined){n={};Object.defineProperty(s(),"KoliBri",{value:n,writable:false})}return n};const u=()=>{a();n.debug(`\n,--. ,--.         ,--. ,--. ,-----.           ,--.\n|  .'   /  ,---.  |  | \`--' |  |) /_  ,--.--. \`--'\n|  .   '  | .-. | |  | ,--. |  .-.  \\ |  .--' ,--.\n|  |\\   \\ | '-' | |  | |  | |  '--' / |  |    |  |\n\`--' \`--´  \`---´  \`--' \`--' \`------´  \`--'    \`--'\n🚹 The accessible HTML-Standard | 👉 https://public-ui.github.io | ${r.kolibriVersion}\n\t`,{forceLog:true})};const l=()=>{if(c().adviceShown!==true){Object.defineProperty(c(),"adviceShown",{get:function(){return true}});n.debug(`\nYou are using the KoliBri component library. If you have any suggestions for improvement or find a problem, please contact us:\n\nTicket: https://github.com/public-ui/kolibri/issues/new/choose (for privacy reasons, please use email)\nEmail: kolibri@itzbund.de\n`)}};let f=()=>Math.floor(Math.random()*16777215).toString(16);if(i()){f=()=>"nonce"}const m=n=>`${n}-${f()}`;const p=(n,t)=>{const e=n.lastIndexOf("-");if(e===-1)return`${n}-${t}`;const o=n.slice(e+1);const s=o==="nonce"||/^[0-9a-f]+$/.test(o);return s?`${n.slice(0,e)}-${t}-${o}`:`${n}-${t}`};export{p as a,m as c,u as i,f as n,l as r};
//# sourceMappingURL=dev.utils-HhhlYW_9.js.map