1import{b4 as i,b7 as r,b6 as n,ba as m,b8 as s,b5 as b,bf as u}from"./BNv7CK9h.js";const h=i({cast(a){return typeof a=="string"&&(a={url:a}),a},alias:"video",defaults:{"@type":"VideoObject"},inheritMeta:[{meta:"title",key:"name"},"description","image","inLanguage",{meta:"datePublished",key:"uploadDate"}],idPrefix:"host",resolve(a,t){if(a.uploadDate&&(a.uploadDate=m(a.uploadDate)),a.url=s(t.meta.host,a.url),a.caption&&!a.description&&(a.description=a.caption),a.description||(a.description="No description"),a.thumbnailUrl&&(typeof a.thumbnailUrl=="string"||Array.isArray(a.thumbnailUrl))){const e=r(a.thumbnailUrl).map(l=>s(t.meta.host,l));a.thumbnailUrl=e.length>1?e:e[0]}return a.thumbnail&&(a.thumbnail=b(a.thumbnailUrl,t,u)),a},resolveRootNode(a,{find:t}){if(a.image&&!a.thumbnail){const e=r(a.image)[0];n(a,"thumbnail",t(e["@id"])?.url)}}});export{h as videoResolver};
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.