PageSourceSearch

https://uzonachamber.org/assets/eventImageUrl-DXocGLwa.js

js uzonachamber.org collected 2026-10-04 10:41:09 UTC 973 bytes, 1 lines download raw bytes

1import{aL as m}from"./index-DzfKy7jS.js";function f(t){if(!t)return"";if(t=t.trim(),t.startsWith("/api/media/serve/"))return t;if(t.startsWith("/api/storage/images/")){const n=t.slice(20);return m(n)?`/api/media/serve/${n}`:t}if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/"))return t;const i=t.replace(/^\/+/,"");return m(i)?`/api/media/serve/${i}`:`/api/storage/images/${i}`}function h(t,i){const n=f(t);if(n)return n;let a=i;if(typeof a=="string")try{a=JSON.parse(a)}catch{return""}if(!Array.isArray(a))return"";for(const s of a)if(s){if(typeof s=="string"){const e=s.trim();if(e.startsWith("{"))try{const r=JSON.parse(e),o=(r==null?void 0:r.url)??(r==null?void 0:r.image_url)??(r==null?void 0:r.imageUrl),c=f(typeof o=="string"?o:null);if(c)return c}catch{continue}else{const r=f(e);if(r)return r}}else if(typeof s=="object"){const e=s,r=e.url??e.image_url??e.imageUrl,o=f(typeof r=="string"?r:null);if(o)return o}}return""}export{f as n,h as r};

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.