/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const dev_utils=require("./dev.utils-570a2576.js"),dev_utils$1=require("./dev.utils-58fde089.js"),prop_validators=require("./prop.validators-888c8338.js");require("./index-b4950b0c.js"),require("./reuse-8cfefa9b.js"),require("./index-38f5f0b2.js");const getKoliBri=()=>{let e=dev_utils$1.getWindow().KoliBri;return void 0===e&&(e={},Object.defineProperty(dev_utils$1.getWindow(),"KoliBri",{value:e,writable:!1})),e};function prototypeKoliBri(e,t){try{Object.defineProperty(getKoliBri(),e,{get:function(){return t}})}catch(t){dev_utils$1.Log.debug(`KoliBri property ${e} is already bind.`)}}const metaModeLog=(e,t)=>dev_utils$1.Log.debug(`${e} ${t?"":"not "}activated`),initialize=()=>{if(dev_utils.initKoliBri(),dev_utils$1.getDevMode()){dev_utils.renderDevAdvice(),prototypeKoliBri("a11yColorContrast",prop_validators.koliBriA11yColorContrast),prototypeKoliBri("querySelector",prop_validators.koliBriQuerySelector),prototypeKoliBri("querySelectorAll",prop_validators.koliBriQuerySelectorAll),prototypeKoliBri("querySelectorColors",prop_validators.koliBriQuerySelectorColors),prototypeKoliBri("utils",(function(){return prop_validators.KoliBriUtils})),prototypeKoliBri("parseJson",prop_validators.parseJson),prototypeKoliBri("stringifyJson",prop_validators.stringifyJson);const e=dev_utils$1.getDocument().body,t=dev_utils$1.getDocument().createElement("svg");if(t.setAttribute("aria-label","KoliBri-DevTools"),t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("role","toolbar"),t.setAttribute("style","position: fixed;color: black;font-size: 200%;bottom: 0.25rem;right: 0.25rem;"),t.innerHTML='<svg\n  xmlns="http://www.w3.org/2000/svg"\n  width="50"\n  height="50"\n  viewBox="0 0 600 600"\n>\n  <path d="M353 322L213 304V434L353 322Z" fill="#047" />\n  <path d="M209 564V304L149 434L209 564Z" fill="#047" />\n  <path d="M357 316L417 250L361 210L275 244L357 316Z" fill="#047" />\n  <path d="M353 318L35 36L213 300L353 318Z" fill="#047" />\n  <path d="M329 218L237 92L250 222L272 241L329 218Z" fill="#047" />\n  <path d="M391 286L565 272L421 252L391 286Z" fill="#047" />\n</svg>',dev_utils$1.getDocument().body.appendChild(t),metaModeLog("Development mode",dev_utils$1.getDevMode()),metaModeLog("Experimental mode",dev_utils$1.getExperimentalMode()),metaModeLog("Color contrast analysis",dev_utils$1.getColorContrastAnalysis()),dev_utils$1.getColorContrastAnalysis()){const t=setTimeout((()=>{clearTimeout(t),setInterval((()=>{prop_validators.KoliBriUtils.queryHtmlElementColors(dev_utils$1.getDocument().createElement("div"),prop_validators.koliBriA11yColorContrast(e),!1,!1)}),1e4)}),2500)}}};exports.initialize=initialize;