!function(t){var e="advads_procfp",a="advanced_ads_ad_clicks",n=null,i=null;function r(t){try{return JSON.parse(t)}catch(t){return null}}t(document).on("advads-passive-cb-conditions",(function(t,e){e.conditions.ad_clicks="check_ad_clicks",e.check_ad_clicks=function(t,e){if(advads.cookie_exists(a+"_"+e.id)){var n=advads.get_cookie(a+"_"+e.id);n=r(n)}if(n){var i=parseInt((new Date).getTime()/1e3);for(var o in n)if("_"+t.expiration==o&&n[o].ttl>=i&&n[o].count>=parseInt(t.limit))return!1}return!0}}));var o=function(){this.$elements={},this.currentIFrame=!1,this.focusLost=!1,this.wrappers=[".google-auto-placed"],this.attributes={"data-anchor-status":"displayed","data-vignette-loaded":"true"},this.lastClick=0,this.init()};o.prototype={constructor:o,init:function(){const e=this;let a;t(document).on("click","a[data-cfpa]",(function(){e.onClick(parseInt(t(this).attr("data-cfpa")))})),t(window).on("blur",(function(t){setTimeout((function(){if(!e.currentIFrame)for(let t=document.activeElement;t&&t!==this&&t!==document&&(e.currentIFrame=e.checkWrappers(t),!e.currentIFrame);t=t.parentNode);e.currentIFrame&&(e.onClick(e.currentIFrame),e.focusLost=!0,top.focus())}),0)})),t(document).on("mouseenter","div[data-cfpa]",(function(){var a=parseInt(t(this).attr("data-cfpa"));e.addElement(a)})),document.addEventListener("touchmove",(function(){a=!0}),!1),document.addEventListener("touchstart",(function(){a=!1}),!1),["click","touchend"].forEach((function(t){document.addEventListener(t,(function(t){if(a||e.getTimestamp()-e.lastClick<1)return;let n=null;for(let a=t.target;a&&a!==this&&a!==document;a=a.parentNode){if(n=e.checkWrappers(a),n){e.onClick(n);break}if(a.hasAttribute("data-cfpa")&&a.hasAttribute("data-cfptl")){n=parseInt(a.getAttribute("data-cfpa"),10),e.onClick(n);break}}}))}))},getTimestamp:function(){return Math.floor(Date.now()/1e3)},checkWrappers:function(t){for(let e=0,a=this.wrappers.length,n=null;eh&&(h=parseFloat(v[c])),m["_"+v[c]]={count:1,ttl:parseInt(u.getTime()/1e3+3600*parseFloat(v[c]))};g.setTime(g.getTime()+60*h*60*1e3);var _="expires="+g.toUTCString();l=parseInt((g.getTime()-u.getTime())/1e3);m.exp=_,advads.set_cookie_sec(a+"_"+o,JSON.stringify(m,"false",!1),l,n,i)}if(advads.cookie_exists(e+"_"+o)&&(s=r(s=advads.get_cookie(e+"_"+o))),s){f=parseInt(s.count);s.count=f+1;u=new Date,l=((p=new Date(s.exp)).getTime()-u.getTime())/1e3;advads.set_cookie_sec(e+"_"+o,JSON.stringify(s,"false",!1),l,n,i),advadsCfpClickLimit<=s.count&&"undefined"!=typeof advadsCfpBan&&this._banVisitor()}else{g=new Date,u=new Date;g.setTime(g.getTime()+60*advadsCfpExpHours*60*1e3);_="expires="+g.toUTCString(),l=(g.getTime()-u.getTime())/1e3;advads.set_cookie_sec(e+"_"+o,'{"count":1,"exp":"'+_+'"}',l,n,i),1===advadsCfpClickLimit&&"undefined"!=typeof advadsCfpBan&&this._banVisitor()}}},t((function(){for(var e in window.advadsProCfp=new o,t(document).on("mouseenter","iframe[data-cfpa]",(function(e){var a=parseInt(t(this).attr("data-cfpa"));advadsProCfp.currentIFrame=a})).on("mouseenter",".google-auto-placed",(function(t){advadsProCfp.currentIFrame="google-auto-placed"})).on("mouseleave mouseout","[data-cfpa], .google-auto-placed",(function(){advadsProCfp.currentIFrame=!1,advadsProCfp.focusLost&&(advadsProCfp.focusLost=!1,t(window).trigger("focus"))})),advadsCfpQueue)advadsCfpQueue.hasOwnProperty(e)&&advadsProCfp.addElement(advadsCfpQueue[e]);advadsCfpQueue=[],void 0!==window.advadsCfpPath&&(""!=advadsCfpPath&&(n=advadsCfpPath),""!=advadsCfpDomain&&(i=advadsCfpDomain))}))}(window.jQuery);