1import{j as e}from"./ErrorLayoutTypes-DbytFm15.js";import{l as i}from"./index-CNLjR7kN.js";import{r as o}from"./utils-Bz76n4nO.js";import{S as r}from"./sponsored-DXaPjYxw.js";function f(t){if(/^(?:https?:\/\/)?(?:[\w-]+\.)*(?:amazon(?:\.[\w]{2,4})+|amzn\.to)(?:\/.*)?$/i.test(t)){const n="https://buy.geni.us";return new URL(`Proxy.ashx?tsid=${e.geniuslinkId}&GR_URL=${encodeURI(t)}`,n).toString()}return t}function l(){return o.useEffect(()=>{const t="//geniuslinkcdn.com/snippet.min.js",s=`https://s.skimresources.com/js/${e.skimlinkId}.skimlinks.js`;i(t,!0).then(()=>{window.Genius.amazon.addOnClickRedirect(e.geniuslinkId,!0,"https://buy.geni.us"),i(s,!0)},()=>{})},[]),null}class a extends Error{constructor(s,n){super(s),this.statusCode=n,this.name="FetchError"}statusCode}const p=async t=>{const s=await fetch(t);if(!s.ok)throw r&&console.error("[api fetcher]",s.status,t),new a(s.statusText,s.status);return s.json()};export{l as A,p as f,f as g}; 2//# sourceMappingURL=swr-IoQShxJ8.js.map
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.