import{a5 as r,M as e}from"./vendor.js";var t=function(e,t,n){var o,a;switch(e){case"component":return r(o=t.components).call(o,n);case"field":return r(a=t.fields).call(a,n);default:return!1}},n=function(r){try{var e=(new DOMParser).parseFromString(r,"text/html");return e.querySelectorAll("script, style").forEach((function(r){r.parentNode.removeChild(r)})),e.querySelectorAll("a[href]").forEach((function(r){r.removeAttribute("href"),r.removeAttribute("target"),r.setAttribute("role","link")})),e.body.innerHTML}catch(r){return console.error(r),""}},o=function(r){return e.navigator.clipboard.writeText(r)};export{o as c,t as f,n as s};
//# sourceMappingURL=utils.js.map
