import{w as l,A as c,J as h}from"./index-DscFWUNz.js";/*!
 * KoliBri - The accessible HTML-Standard
 */const p=[0,1,2,3,4,5,6],f=/[a-zA-Z0-9äöüÄÖÜß]/g,d=/^\d+$/;function b(t){var a;return typeof t=="string"&&((a=t.match(f))===null||a===void 0?void 0:a.length)||0}function g(t,a=1){return b(t)>=a}function u(t){return d.test(t)}function v(t){var a;return Object.assign(Object.assign({},t),{hooks:{afterPatch:(e,n,i,r)=>{var o,s;typeof((o=t.hooks)===null||o===void 0?void 0:o.afterPatch)=="function"&&((s=t.hooks)===null||s===void 0||s.afterPatch(e,n,i,r)),typeof e=="string"&&g(e,3)===!1&&u(e)===!1&&c(`The heading or label ("${e}") is inaccessible. A label should consist of at least three readable characters.`),typeof e=="string"&&e.length>80&&h("A heading or label should not be longer than 80 characters.")},beforePatch:(a=t.hooks)===null||a===void 0?void 0:a.beforePatch}})}const A=new Set(["string"]),L=(t,a,e={})=>{l(t,"_label",n=>typeof n=="string",A,a,v(e))},y=L;export{y as a,g as b,u as c,p as h,L as v};
//# sourceMappingURL=label-CdtNxOKu-DuSxxbJz.js.map
