import{af as u,u as o,h as f,P as h,q as p,aE as l}from"./DnBXlrVC.js";const H=(i,a=u())=>{const c=o(i),r=h();f(()=>o(i),(t=c)=>{if(!a.path||!t)return;const e=Object.assign({},t?.head||{});e.meta=[...e.meta||[]],e.link=[...e.link||[]];const n=e.title||t?.title;n&&(e.title=n),r.public.content.host;const s=e?.description||t?.description;s&&e.meta.filter(m=>m.name==="description").length===0&&e.meta.push({name:"description",content:s}),e?.image||t?.image,p(()=>l(e))},{immediate:!0})};export{H as u};
