(()=>{var i,t;window.jQuery,i=window.aff_connector,t={init:function(){this.isValidVisit()&&this.setReferralData()},isValidVisit:function(){return"fa_id"in i&&"visit_id"in i&&!(!i.fa_id||!i.visit_id)},setReferralData:function(){var t={fa_id:i.fa_id,visit_id:i.visit_id};this.setCookie("f_aff",JSON.stringify(t),30)},setCookie:function(i,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:30,n="";if(e){var a=new Date;a.setTime(a.getTime()+24*e*60*60*1e3),n="; expires="+a.toUTCString()}document.cookie=i+"="+(t||"")+n+"; path=/"}},document.addEventListener("DOMContentLoaded",function(){t.init()})})();