import{t as d,cf as p,r as u,cg as v,a7 as h,au as y,ch as g,ci as m,K as f,cj as b}from"./C_-0XrhF.js";var w;function _(){return w}function H(e){return typeof e=="function"?e():f(e)}function i(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const n=H(e);if(!e||!n)return n;if(Array.isArray(n))return n.map(t=>i(t));if(typeof n=="object"){const t={};for(const a in n)if(Object.prototype.hasOwnProperty.call(n,a)){if(a==="titleTemplate"||a[0]==="o"&&a[1]==="n"){t[a]=f(n[a]);continue}t[a]=i(n[a])}return t}return n}var j="usehead",c=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s="__unhead_injection_handler__";function A(){return s in c?c[s]():p(j)||_()}function U(e,n={}){const t=n.head||A();if(t)return t.ssr?t.push(e,n):I(t,e,n)}function I(e,n,t={}){const a=u(!1),o=u({});v(()=>{o.value=a.value?{}:i(n)});const r=e.push(o.value,t);return h(o,l=>{r.patch(l)}),b()&&(y(()=>{r.dispose()}),g(()=>{a.value=!0}),m(()=>{a.value=!1})),r}var O=e=>typeof e=="function",C=(e,n)=>{if(!e)return;const t=d(()=>O(e)?e():e);U(()=>t.value?{script:[{type:"application/ld+json",children:JSON.stringify(t.value,null,"")}]}:{},n)};export{C as u};