function e(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.includes(` ${t} `)}function t(t,n){t.classList?t.classList.add(n):e(t,n)||(t.className=`${t.className} ${n}`)}function n(t,n){t.classList?t.classList.remove(n):e(t,n)&&(t.className=` ${t.className} `.replace(` ${n} `,` `))}export{t as addClass,e as hasClass,n as removeClass};