window.addEventListener("load",function(f){var c=document.body.classList.contains("partners");var g=["/goto/real","/goto/demo"];var d={affid:{cookie:"affid"},clickid:{cookie:"clickid"}};function e(j){var k=new URL(j);var i=new URLSearchParams(k.search);var h={};for(var m in d){if(i.has(m)){continue}var l=$.cookie(d[m].cookie);h[m]={exists:true,data:null};h[m].exists=false;if(l){h[m].data=l}}return h}function b(h){var i=new URL(h);var k=e(h);for(var j in k){if(!k[j].exists){if(k[j].data){i.searchParams.append(j,k[j].data)}}}return i.href}var a=$("a");if(!c){a.each(function(h,k){for(var j=0;j<g.length;j++){if(k.href){if(k.href.includes(g[j])){k.href=b(k.href);break}}}})}});