1import{aB as c,b2 as l,as as h,w as p}from"./logger-BOxpBNGt.js";const f=()=>{const r=Promise.withResolvers();return(async()=>{try{await window.cda?.isInitReady;const{preparedUrl:e,suspense:a}=c({location:window.location,pageType:"product",routerDomain:window.INITIAL_DATA?.afh?.routerDomain,ffLastCookie:!!window.INITIAL_DATA?.afh?.lastCookie,patchUrl:!1}),{pathname:o,search:t,hash:s}=e,n=o.replace(/^\/+/,"/");history.replaceState(history.state,"",`${n}${t}${s}`);const{searchParams:i}=await a();r.resolve({searchParams:i})}catch(e){r.reject(e)}})(),l("error",({error:e})=>{const a=e instanceof Error?e.message:"Unknown error";p.error({category:"affiliate",name:"error_event",message:a})}),{resolution:r.promise,get partnerKey(){return h().partner_key}}};export{f as h};
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.