function l(s,i){return s.classList?s.classList.contains(i):` ${s.className} `.includes(` ${i} `)}function t(s,i){s.classList?s.classList.add(i):l(s,i)||(s.className=`${s.className} ${i}`)}function c(s,i){if(s.classList)s.classList.remove(i);else if(l(s,i)){const a=s.className;s.className=` ${a} `.replace(` ${i} `," ")}}export{t as addClass,l as hasClass,c as removeClass};
