!function(){var t=("https:"===document.location.protocol?"https:":"http:")+"//"+(window._bsfthost||"api.getblueshift.com")+"/",l=t+"unity.gif",n=!1,d="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,f={};var o,h={eventApiKey:void 0,userParams:{},slots:[],slotParams:{},tz:(new Date).getTimezoneOffset()};function i(){for(var a=[],e=0;ei.unix_time_end||a++}if(0<(i.min_occurrences||0)+(i.max_occurrences||0)){if(!(a<(i.min_occurrences||0)||null!==i.max_occurrences&&a>i.max_occurrences))return!1}else if(0{renderLightbox(e,t,n,o,i)},document.body.append(s)}(t,n,o,i,r)):(n=h.slots[s].el,o=e.width,i=e.height,r=e.content,e=document.createElement("iframe"),n.innerHTML="",n.appendChild(e),e.src="about:blank",e.style.width=o,e.style.height=i,e.style.border="none",e.contentWindow.document.open(),e.contentWindow.document.write(r),e.contentWindow.document.close(),n.style.width=o,n.style.height=i,n.style.display="block",function(e){try{const t=e.contentDocument||e.contentWindow.document,n=t.querySelectorAll('img[style="display:none"][src*="/track?"]');n.forEach(e=>{const t=new URL(e.src);var n=t.searchParams.get("eid"),e=t.searchParams.get("a");"open"===e&&m(n,e)}),t.addEventListener("click",function(e){e=e.target;if(e&&"A"===e.tagName){const t=new URL(e.href);e=t.searchParams.get("eid");e&&m(e,"click")}})}catch(e){console.debug("Error initializing iframe tracking:",e)}}(e))}var t,n,o,i,r},h.slotParams[h.slots[s].name]||(h.slotParams[h.slots[s].name]={}),a[s].send(function(e,t){t.tz=h.tz,t.href=window.location.href;var n=y("_bs_hash");return n&&(h.userParams.cookie_hash=n),t={x:h.eventApiKey,slot:e,user:h.userParams,context:t},"true"==c("dev")&&(t.dev=!0),"true"==c("preview")&&(t.preview=!0),JSON.stringify(t)}(h.slots[s].name,h.slotParams[h.slots[s].name]))}(e)}function m(e,t){var n;"preview"!==e&&(n=y("_bsft_message_actions")||"{}",(n=JSON.parse(n))[t=e+"."+t]||(n[t]=[]),n[t].push(Math.floor((new Date).getTime()/1e3)),w("_bsft_message_actions",JSON.stringify(n),365))}function r(e){e&&(h.slotParams=e),function(){h.slots=[];for(var e=document.querySelectorAll("[data-bsft-slot]"),t=0;te.name===t)||h.slots.push({name:t})})}(),i()}function p(e){try{var t=g();t.open("GET",e,!0),t.send(e)}catch(e){}}function g(){if(window.XMLHttpRequest)try{var t=new XMLHttpRequest}catch(e){t=new window.ActiveXObject("Microsoft.XMLHTTP")}return t}function w(e,t,n){var o=new Date;o.setDate(o.getDate()+n);var i=window.location.hostname,r=i.split(".");4==r.length&&0<=r[0]&&r[0]<=255&&0<=r[1]&&r[1]<=255&&0<=r[2]&&r[2]<=255&&0<=r[3]&&r[3]<=255||(i="."+i.replace(/^www./,""));i=escape(t)+(null==n?"":";expires="+o.toUTCString())+";path=/;domain="+i+";SameSite=Strict;";document.cookie=e+"="+i}function y(e){for(var t,n,o=document.cookie.split(";"),i=0;i