PageSourceSearch

https://whop.com/_web/assets/gha-35971278800-1/image-loader-DFCBZPkK.js

js whop.com collected 2026-09-24 08:31:46 UTC 2,663 bytes, 4 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="aacb6d07-730a-55c7-b706-8405c9b5329f")}catch(e){}}();
3var e=/^\/[^/]+\/(?:(?:[a-zA-Z0-9]+:[a-zA-Z0-9]+(?::[0-9]+)*\/)+)(?<hash>.+?)(?:\.[^/]+)?$/,t=/^.+[^/].+\/plain\/(?<url>.+?)(?:@[a-zA-Z0-9]+)?$/,n=/^.+[^/]+\/(?<id>.+)\/thumbnail\.(?<format>.+)$/,r=/^.+\.(?<extension>[^/.?]+)(?:\?.*)?$/,i=/^prod-whop-livekit-\d+\.s3\.amazonaws\.com$/,a=new Set([`svg`]),o=new Set([`content.whop.com`,`storage.api.whop.com`,`cdn.discordapp.com`,`assets.whop.com`,`ui-avatars.com`,`s3.us-east-2.amazonaws.com`,`assets-2-prod.whop.com`,`assets-2-prod-private.whop.com`,`courses.apps.whop.com`]),s=[640,750,828,1080,1200,1920,2048,3840],c=[16,32,48,64,96,128,256,384,...s];function l(e){if(!e)return s;let t=e*2,n=c.filter(e=>e<=t),r=n.at(-1);if(r===void 0||r<t){let e=c.find(e=>e>t);e!==void 0&&n.push(e)}return n.length>0?n:[c.at(-1)??t]}function u(e,t,n=75){if(!e)return;let r=l(t).map(t=>`${p(e,t,n)} ${t}w`);if(r.length!==0)return r.join(`, `)}function d(e){return c.find(t=>t>=e)??c.at(-1)}function f(e,t,n=75){if(!e||!t)return;let r=d(t),i=d(t*2),a=`${p(e,r,n)} 1x`;return r===i?a:`${a}, ${p(e,i,n)} 2x`}function p(s,c,l=75){if(!s||!c)return s;let u;try{let d=s.match(r)?.groups?.extension?.toLowerCase().split(`@`)[0];if(d&&a.has(d)||s.startsWith(`/`))return s;if(u=new URL(s),u.hostname===`img-v2-prod.whop.com`){let n=t.exec(u.pathname),r=e.exec(u.pathname);if(n?.groups?.url)u=new URL(decodeURIComponent(n.groups.url));else if(r?.groups?.hash){let n=atob(r.groups.hash),i=e.exec(n),a=t.exec(n);u=i?.groups?.hash?new URL(i.groups.hash):a?.groups?.url?new URL(decodeURIComponent(a.groups.url)):new URL(n)}}let f=u.pathname.match(r)?.groups?.extension?.toLowerCase().split(`@`)[0];if(u.protocol!==`https:`||f&&a.has(f))return s;let p=encodeURIComponent(u.toString());if(o.has(u.hostname))return`https://img-v2-prod.whop.com/unsafe/rs:fit:${c}:0/plain/${p}@avif?w=${c}&q=${l}`;if(u.hostname===`images.ctfassets.net`)return u.searchParams.set(`fm`,`avif`),u.searchParams.set(`w`,String(c)),u.searchParams.set(`q`,String(l)),u.toString();if(u.hostname===`image.mux.com`){let e=n.exec(u.toString());return e?.groups?.id?`https://image.mux.com/${e.groups.id}/thumbnail.webp?width=${c}&${u.searchParams.toString()}`:s}return i.exec(u.hostname)?`https://img-v2-prod.whop.com/unsafe/rs:fit:${c}:0/plain/${p}@avif?w=${c}&q=${l}`:s}catch{return s}}export{u as n,p as r,f as t};
4//# debugId=aacb6d07-730a-55c7-b706-8405c9b5329f

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.