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