import{s as i,a as u,g as s}from"./index.684c656d.js";const a=(t,n="div")=>{const e=document.createElement(n);return e.innerHTML=s(t.trim()),e},l=(t,n=!0,e="textContent")=>(typeof t=="string"&&(n&&(t=t.replace(/[\t|\n]/gm,"")),t=a(t)),t[e]||t.textContent||t.innerText||""),y=t=>(typeof t=="string"&&(t=a(t)),(t==null?void 0:t.outerText)??""),m=(t,n=200,e="&hellip;")=>t&&(n<t.length&&(t=t.substring(0,n).trim()+i(e)),t),f=(t,n)=>{try{const e=JSON.parse(n);return e?e["@type"]&&(t===e["@type"]||Array.isArray(e["@type"])&&e["@type"].includes(t))?e:Array.isArray(e["@graph"])&&e["@graph"].find(o=>Array.isArray(o["@type"])?o["@type"].includes(t):o["@type"]===t)||!1:!1}catch{return!1}},d=()=>{var t;return{url:window.location.href,title:document.title||"",description:((t=document.querySelector('meta[name="description"]'))==null?void 0:t.content)||""}},g=()=>{var n,e,r,o;const t={description:((n=document.querySelector('meta[property="og:description"]'))==null?void 0:n.content)||"",image:((e=document.querySelector('meta[property="og:image"]'))==null?void 0:e.content)||"",title:((r=document.querySelector('meta[property="og:title"]'))==null?void 0:r.content)||"",type:((o=document.querySelector('meta[property="og:type"]'))==null?void 0:o.content)||""};if(!t.title&&(t.title=document.title||"",!t.title)){const c=u();t.title=c.aioseo.urls.domain}return t},S=()=>{var t,n,e,r;return{card:((t=document.querySelector('meta[name="twitter:card"]'))==null?void 0:t.content)||"",description:((n=document.querySelector('meta[name="twitter:description"]'))==null?void 0:n.content)||"",image:((e=document.querySelector('meta[name="twitter:image"]'))==null?void 0:e.content)||"",title:((r=document.querySelector('meta[name="twitter:title"]'))==null?void 0:r.content)||""}};export{g as a,d as b,S as c,a as d,y as e,l as g,f as p,m as t};
