/*!
 * KoliBri - The accessible HTML-Standard
 */
import{b as n,L as t}from"./common-DEEjER7G.js";const o=n=>{var t;if((t=globalThis.CSS)===null||t===void 0?void 0:t.escape){return globalThis.CSS.escape(n)}return n.replace(/[^a-zA-Z0-9_-]/g,"\\$&")};const e=(n,t)=>{const e=(t!==null&&t!==void 0?t:"").trim().split(/\s+/).filter(Boolean);if(!e.length)return[];const r=n===null||n===void 0?void 0:n.getRootNode();const i=n=>{if(r instanceof Document)return r.getElementById(n);if(r instanceof ShadowRoot)return r.querySelector(`#${o(n)}`);return typeof document!=="undefined"?document.getElementById(n):null};return e.map(i).filter((n=>!!n))};const r=n=>{const t=n.attachInternals;if(!t)return undefined;try{const o=t.call(n);return o}catch(n){return undefined}};const i=(o,r,i,s)=>{n(o,"_ariaLabelledby",(n=>typeof n==="string"||typeof n==="undefined"),new Set(["string"]),s);const u=e(r,s);if(i){try{i.ariaLabelledByElements=u}catch(n){}t.debug(["WebComponent internals",i])}return u};export{r as a,i as v};
//# sourceMappingURL=aria-labelledby-BUOJRaGL.js.map