1(()=>{let n="apl_referral_utm",o="apl_referral_ref",e=["fpr","utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid"],t=60,u="referral_data";function a(){return Math.floor(Date.now()/1e3)}function c(e){try{var r,t=localStorage.getItem(e);return t?(r=JSON.parse(t))._expiry&&a()>r._expiry?(localStorage.removeItem(e),null):r:null}catch(e){return null}}function m(e,r){r._expiry=a()+86400*t,localStorage.setItem(e,JSON.stringify(r))}function r(e){localStorage.removeItem(e)}function i(){let t={},n=new URLSearchParams(window.location.search);return e.forEach(function(e){var r=n.get(e);r&&(t[e]=(e=r,(r=document.createElement("div")).appendChild(document.createTextNode(e)),r.innerHTML))}),t}function l(){var e=document.referrer;if(e)try{var r=new URL(e).hostname,t=window.location.hostname;r&&r!==t&&!c(o)&&m(o,{referrer:(e=>{try{var r=new URL(e);if("http:"===r.protocol||"https:"===r.protocol)return e}catch(e){}return""})(e)})}catch(e){}}function f(){var e=c(n)||{},r=c(o)||{};return{fpr:e.fpr||"",utm_source:e.utm_source||"",utm_medium:e.utm_medium||"",utm_campaign:e.utm_campaign||"",utm_term:e.utm_term||"",utm_content:e.utm_content||"",gclid:e.gclid||"",referrer:r.referrer||""}}window.AplReferral={getParams:f,addToForm:function(e=null){var e=e??'form[name="signup"]',r=document.querySelector(e);if(r){var t=f();let e=r.querySelector('input[name="'+u+'"]');e||((e=document.createElement("input")).type="hidden",e.name=u,r.appendChild(e)),e.value=JSON.stringify(t)}else console.warn("AplReferral: form not found â",e)},clear:function(){r(n),r(o)}};{let t=i();if(t.fpr&&(t.utm_source="firstpromoter"),t.utm_source||t.gclid){var p=c(n);if(!p||"firstpromoter"!==p.utm_source||"firstpromoter"===t.utm_source){let r=p||{};e.forEach(function(e){r[e]=t[e]||""}),m(n,r)}}}l()})(); 2//# sourceMappingURL=utmreftracking.min.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.