1import{a9 as g}from"./index-BCakBLyb.js";function b(r){return g(r)}const p=/\/uploads\/(thumbnail|small|medium|large)_([^/?#]+)([?#].*)?$/i;function l(r){const u=b(r);return u?u.replace(p,"/uploads/$2$3"):null}function P(r){const u=b(r),e=l(r);return Array.from(new Set([u,e].filter(Boolean)))}function y(r){if(!r||typeof window>"u")return!1;try{return new URL(r).origin!==window.location.origin}catch{return!1}}function m(r){return y(r)?"anonymous":void 0}function w(r,u="small"){var o,t,a,c,s,d,f;if(!r)return null;if(typeof r=="string")return l(r);if(typeof r!="object")return null;const e=r,n=e.formats,i=l(e.url);return u==="thumbnail"?i||l((o=n==null?void 0:n.thumbnail)==null?void 0:o.url)||l((t=n==null?void 0:n.small)==null?void 0:t.url):u==="small"?i||l((a=n==null?void 0:n.small)==null?void 0:a.url)||l((c=n==null?void 0:n.medium)==null?void 0:c.url):u==="medium"?i||l((s=n==null?void 0:n.medium)==null?void 0:s.url)||l((d=n==null?void 0:n.large)==null?void 0:d.url):u==="large"?i||l((f=n==null?void 0:n.large)==null?void 0:f.url):i}function M(r){return r?typeof r=="string"?{src:l(r)}:typeof r!="object"?{src:null}:{src:l(r.url)}:{src:null}}export{l as a,M as b,P as c,m as g,w as r,b as t};
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.