1import{d as b,s as p,o as m,c as f,h as v,a as k,e as h,u as T,g as y,i as _,p as C}from"./ZPaimFvj.js";const O=Symbol.for("nuxt:client-only"),d="<div></div>",x=b({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(t,{slots:n,attrs:s}){const u=p(!1);m(()=>{u.value=!0});const o=y();return o&&(o._nuxtClientOnly=!0),C(O,!0),()=>{if(u.value){const e=n.default?.();return e&&e.length===1?[f(e[0],s)]:e}const r=n.fallback||n.placeholder;if(r)return v(r);const l=t.fallback||t.placeholder||"",a=t.fallbackTag||t.placeholderTag||"span";return k(a,s,l)}}}),g=new WeakMap;function H(t){if(g.has(t))return g.get(t);const n={...t};return n.render?n.render=(s,u,o,r,l,a)=>{if(r.mounted$??s.mounted$){const e=t.render?.bind(s)(s,u,o,r,l,a);return e.children===null||typeof e.children=="string"?f(e):v(e)}return h(s._.vnode.el,d)}:n.template&&=` 2 <template v-if="mounted$">${t.template}</template> 3 <template v-else>${d}</template> 4 `,n.setup=(s,u)=>{const o=T(),r=p(o.isHydrating===!1),l=y();if(o.isHydrating){const e={...l.attrs},c=$(l);for(const i in e)delete l.attrs[i];m(()=>{Object.assign(l.attrs,e),l.vnode.dirs=c})}m(()=>{r.value=!0});const a=t.setup?.(s,u)||{};return _(a)?Promise.resolve(a).then(e=>typeof e!="function"?(e||={},e.mounted$=r,e):(...c)=>{if(r.value||!o.isHydrating){const i=e(...c);return i.children===null||typeof i.children=="string"?f(i):v(i)}return h(l?.vnode.el,d)}):typeof a=="function"?(...e)=>{if(r.value){const c=a(...e),i=n.inheritAttrs!==!1?u.attrs:void 0;return c.children===null||typeof c.children=="string"?f(c,i):v(c,i)}return h(l?.vnode.el,d)}:Object.assign(a,{mounted$:r})},g.set(t,n),n}function $(t){if(!t||!t.vnode.dirs)return null;const n=t.vnode.dirs;return t.vnode.dirs=null,n}export{x as _,H as a,O as c};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.