function t(){Math.random().toString(16).slice(-4)}function n(n=""){return n+"-"+t()+t()+"-"+t()+"-"+t()+t()+t()}function o(t){return function(t){return(t||"").replace(/(\:).+?(\:)/g,(t=>`<i class="${t.replaceAll(":","")}"></i>`))}(function(t){return(t||"").replace(/(\*).+?(\*)/g,(t=>`<strong>${t.replaceAll("*","")}</strong>`))}(function(t){return(t||"").replace(/(\_).+?(\_)/g,(t=>`<em>${t.replaceAll("_","")}</em>`))}(function(t){return(t||"").replace(/(\`).+?(\`)/g,(t=>`<code>${t.replaceAll("`","")}</code>`))}(t))))}function e(){const t=document.querySelector("html").getAttribute("lang")||"es";return["en","es"].includes(t)?t:"es"}function r(...t){return t.reduce(((t,n)=>("object"==typeof n&&"string"!=typeof n&&(t=t.concat(Object.keys(n).filter((t=>n[t])))),"object"!=typeof n&&"string"==typeof n&&t.push(n),t)),[]).join(" ")}function c(){if(document.querySelector("body > x-overlay-container"))return document.querySelector("body > x-overlay-container");{const t=document.createElement("x-overlay-container");return document.querySelector("body").appendChild(t),t}}function i(){if(c().querySelector("x-tooltip-overlay"))return c().querySelector("x-tooltip-overlay");{const t=document.createElement("x-tooltip-overlay"),n=document.createElement("span"),o=document.createElement("div");return t.setAttribute("role","tooltip"),o.classList.add("tooltip-arrow"),o.setAttribute("data-popper-arrow","true"),t.appendChild(n),t.appendChild(o),c().appendChild(t),t}}function u(t="top"){if(c().querySelector(`x-notification-${t}`))return c().querySelector(`x-notification-${t}`);{const n=document.createElement(`x-notification-${t}`);return c().appendChild(n),n}}export{e as a,c as b,r as c,i as d,n as e,u as g,o as t}