1import{av as h,aw as E,am as T,ax as C,ao as P,ay as $,u as q,ad as U,e as v}from"./CB9dQZHA.js";const j=[{hash:"haax-12nIh0-h0L5vqtwauipfo6rdzLRBnSrJ3PGDjE",pascalName:"OgImageQuizResultOgImageSatori",kebabName:"og-image-quiz-result-og-image-satori",path:"/src/app/components/OgImage/QuizResultOgImage.satori.vue",category:"app",renderer:"satori",propNames:["quizTitle","resultTitle","blurb"]},{hash:"Mlhz1gFO3sYjIRc5nY8qE2fk6T9BdTPQNuOSN-nM05w",pascalName:"OgImageSiteOgImageSatori",kebabName:"og-image-site-og-image-satori",path:"/src/app/components/OgImage/SiteOgImage.satori.vue",category:"app",renderer:"satori",propNames:["title","excerpt"]},{hash:"",pascalName:"BlogPostTakumi",kebabName:"blog-post-takumi",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"takumi",propNames:[]},{hash:"",pascalName:"BrutalistSatori",kebabName:"brutalist-satori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"DocsTakumi",kebabName:"docs-takumi",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"takumi",propNames:[]},{hash:"",pascalName:"FrameSatori",kebabName:"frame-satori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"NuxtSatori",kebabName:"nuxt-satori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"NuxtSeoSatori",kebabName:"nuxt-seo-satori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"NuxtSeoTakumi",kebabName:"nuxt-seo-takumi",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"takumi",propNames:[]},{hash:"",pascalName:"PergelSatori",kebabName:"pergel-satori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"ProductCardTakumi",kebabName:"product-card-takumi",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"takumi",propNames:[]},{hash:"",pascalName:"SaaSSatori",kebabName:"saa-ssatori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"SimpleBlogSatori",kebabName:"simple-blog-satori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"UnJsSatori",kebabName:"un-js-satori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]},{hash:"",pascalName:"WithEmojiSatori",kebabName:"with-emoji-satori",path:"/src/node_modules/nuxt-og-image/dist/runtime/app/components/Templates/Community",category:"community",renderer:"satori",propNames:[]}],M=200,B=/=/g,H=/\+/g,L=/\//g,z=/_/g,D=/%20/g,J=/[^\u0000-\u007F]/,Q={w:"width",h:"height",c:"component",em:"emojis",k:"key",a:"alt",u:"url",cache:"cacheMaxAgeSeconds",p:"_path",q:"_query",ch:"_componentHash"},W=Object.fromEntries(Object.entries(Q).map(([n,t])=>[t,n])),F=new Set(["satori","resvg","sharp","screenshot","takumi","fonts","_query","_path"]);function f(n){let t;if(typeof btoa=="function"){const a=new TextEncoder().encode(n),o=String.fromCharCode(...a);t=btoa(o)}else t=Buffer.from(n,"utf8").toString("base64");return t.replace(B,"").replace(H,"-").replace(L,"~")}function G(n){let t=0;for(let a=0;a<n.length;a++){const o=n.charCodeAt(a);t=(t<<5)-t+o,t=t&t}return Math.abs(t).toString(36)}function K(n,t,a){const{_path:o,_hash:s,...e}=n;return G(JSON.stringify(e))}function V(n,t){const a=[],o={};for(const[s,e]of Object.entries(n))if(s==="props"&&typeof e=="object")for(const[i,r]of Object.entries(e))r!=null&&(typeof r=="string"||typeof r=="number"||typeof r=="boolean"?o[i]=r:(o.props=o.props||{},o.props[i]=r));else o[s]=e;for(const[s,e]of Object.entries(o)){if(e==null||e===""||s==="extension"||s==="socialPreview"||s==="_path"&&e==="/"||s==="_query"&&typeof e=="object"&&Object.keys(e).length===0||t&&s in t&&t[s]===e&&s!=="component")continue;const i=W[s]||s;if(F.has(s)){const r=JSON.stringify(e);if(r==="{}")continue;const m=f(r);a.push(`${i}_${m}`)}else if(typeof e=="object"){const r=JSON.stringify(e);if(r==="{}")continue;const m=f(r);a.push(`${i}_${m}`)}else{const r=String(e);if(J.test(r))a.push(`${i}_~${f(r)}`);else{const m=r.startsWith("~")?`~${r}`:r,u=encodeURIComponent(m.replace(z,"__")).replace(D,"+");u.includes("%")?a.push(`${i}_~${f(r)}`):a.push(`${i}_${u}`)}}}return a.join(",")}function X(n,t="png",a=!1,o,s){const e=V(n,o),i=a?"/_og/s":"/_og/d";if(a&&(e.length>M||e.includes("%"))){const u=K(n);return{url:`${i}/o_${u}.${t}`,hash:u}}return{url:`${i}/${e||"default"}.${t}`}}const Y=/-([a-z])/g;function d(n,t){const a=t.key||"og",o=a==="twitter",s=a==="og"||a==="twitter",e=[];return s&&(e.push({name:"twitter:card",content:"summary_large_image"}),e.push({name:"twitter:image",content:n}
1),e.push({name:"twitter:image:src",content:n})),o||(e.push({property:"og:image",content:n}),e.push({property:"og:image:type",content:()=>`image/${te(h(n))||t.extension}`})),t.width&&(o||e.push({property:"og:image:width",content:t.width}),s&&e.push({name:"twitter:image:width",content:t.width})),t.height&&(o||e.push({property:"og:image:height",content:t.height}),s&&e.push({name:"twitter:image:height",content:t.height})),t.alt&&(o||e.push({property:"og:image:alt",content:t.alt}),s&&e.push({name:"twitter:image:alt",content:t.alt})),e}function O(n){return["url","extension","width","height","alt","props","renderer","component","emojis","_query","_hash","fonts","satori","resvg","sharp","screenshot","takumi","cacheMaxAgeSeconds","cacheKey","key"].includes(n)}function Z(n,t=[]){n=n||{};const a=E(n.props,Object.fromEntries(Object.entries({...n}).filter(([e])=>!O(e)&&!t.includes(e)))),o={};Object.entries(a).forEach(([e,i])=>{o[e.replace(Y,r=>String(r[1]).toUpperCase())]=i});const s=Object.fromEntries(Object.entries({...n}).filter(([e])=>O(e)||t.includes(e)));return Object.keys(o).length>0&&(s.props=o),s}function ee(n){return n.split("?")[0]}function te(n){n=ee(n);const t=n.split("/").pop()||n,a=t.split(".").pop()||t;return a==="jpg"?"jpeg":a}const A=new WeakMap;function y(n,t,a){let o;try{const e=$();e&&(o=A.get(e),o||(o=new Map,A.set(e,o)))}catch{}o?.get(n)?.dispose();const s=q(t,a);s&&o&&o.set(n,s)}function ae(n){const t=h(n);if(t===!1)return!1;const a=t;if(a.width&&(a.width=h(a.width)),a.height&&(a.height=h(a.height)),a.alt&&(a.alt=h(a.alt)),a.url&&(a.url=h(a.url)),a.props){a.props={...a.props};for(const o in a.props)a.props[o]=h(a.props[o])}return a}function ne(n,t,a,o){const s=`${T("/",n,"_og/r",t)}.png`,e={};if(o)for(const[i,r]of Object.entries(o))i.startsWith("_og_")||(e[i]=r);return a==="twitter"&&(e._og_key="twitter"),Object.keys(e).length?C(s,e):s}function oe(n,t,a){const o=Array.isArray(n)?n:[n],s=P(),e=s.app.baseURL,i=s.public?.["nuxt-og-image"]||{},r=i.defaults||{},m=[];for(const u of o){const _=ae(u);if(_===!1)continue;const p=_;for(const c in r)p[c]===void 0&&(p[c]=r[c]);t.query&&(p._query=t.query);const l=p.key||"og";if(p.url){const c=p.url;y(l,{meta:d(c,p)},{tagPriority:"high"}),m.push(c);continue}if(i.hasServerRuntime){const c=ne(e,a,l,t.query);y(l,{meta:d(c,p)},{tagPriority:35}),m.push(c);continue}const g=Z(E(p,r)),I=g.extension||r?.extension||"png",N={...g,_path:a},k=g.component||j?.[0]?.pascalName,S=j?.find(c=>c.pascalName===k||c.kebabName===k);S?.hash&&(N._componentHash=S.hash);const R=X(N,I,!0,r),x=T("/",e,R.url),w=g._query&&Object.keys(g._query).length?C(x,{_query:g._query}):x;y(l,{meta:d(w,g)},{processTemplateParams:!0,tagPriority:35}),m.push(w)}return m}function b(n={}){const t=U(),a=v(),o=a.path||"/";return t.isHydrating?[]:oe(n,a,o)}function re(n,t={},a={}){if(Array.isArray(t))return b(t.map(e=>({...e,component:n})));const o=t&&Object.keys(t).length>0?t:void 0;if(Array.isArray(a))return b(a.map(e=>{const i={...e,component:n};return o&&(i.props=e.props?{...o,...e.props}:{...o}),i}));const s={...a,component:n};return o&&(s.props=o),b(s)}export{re as d};
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.