function n(a,s){return!!a.className.match(new RegExp("(\\s|^)"+s+"(\\s|$)"))}function o(a,s){n(a,s)||(a.className+=" "+s)}function i(a,s){if(n(a,s)){const t=new RegExp("(\\s|^)"+s+"(\\s|$)");a.className=a.className.replace(t," ")}}function c(a){return/^(https?:|http?:|mailto:|tel:)/.test(a)}function l(a){return new Promise(s=>{const t=new FileReader;t.onload=r=>{var e;s((e=r.target)==null?void 0:e.result)},t.readAsDataURL(a)})}export{o as a,l as b,c as i,i as r};
