1import{supabase as m}from"./client-ku0pcBw-.js";const n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).slice(1));function y(e,t=0){return(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase()}let s;const g=new Uint8Array(16);function h(){if(!s){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");s=crypto.getRandomValues.bind(crypto)}return s(g)}const U=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),p={randomUUID:U};function v(e,t,o){var u,l,c;if(p.randomUUID&&!e)return p.randomUUID();e=e||{};const r=(c=(l=e.random)!=null?l:(u=e.rng)==null?void 0:u.call(e))!=null?c:h();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,y(r)}var b=(e,t,o)=>new Promise((r,u)=>{var l=a=>{try{i(o.next(a))}catch(d){u(d)}},c=a=>{try{i(o.throw(a))}catch(d){u(d)}},i=a=>a.done?r(a.value):Promise.resolve(a.value).then(l,c);i((o=o.apply(e,t)).next())}),w=(e=>(e.ATTORNEYS="attorney-images",e.MASS_TORTS="mass-tort-images",e.WEBSITE="website-images",e.UPLOADS="lovable-uploads",e))(w||{});function x(e){return b(this,arguments,function*(t,o="website-images",r,u={}){try{const l=r||`${v()}-${t.name.replace(/\s+/g,"-")}`,c={cacheControl:u.cacheControl||"3600",upsert:u.upsert!==void 0?u.upsert:!0},{data:i,error:a}=yield m.storage.from(o).upload(l,t,c);if(a)return null;const{data:d}=m.storage.from(o).getPublicUrl(l);return d.publicUrl}catch(l){return null}})}function D(e,t={}){return e||"/placeholder.svg"}export{w as I,D as g,x as u};
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.