
/******************
LIQWID Version 5.03
Copyright(C) 2010-2022, LeftsnRights Inc. All rights reserved.
******************/
var googletag=googletag||{};googletag.cmd=googletag.cmd||[];
class liqwidBoard extends HTMLElement {connectedCallback() {let video=this.getAttribute('video')||null,id=this.getAttribute('id')||null;}} class liqwidAd extends HTMLElement {connectedCallback(){let video=this.getAttribute('video')||null,id=this.getAttribute('id')||null;}} customElements.define("liqwid-board", liqwidBoard);customElements.define("liqwid-ad", liqwidAd);if(location.href.match(/quizland.net/)){class appAnswer extends HTMLElement {connectedCallback(){this.onclick=()=>{Liqwid.com.log('log');for(let i=0;i<Liqwid.ads.length;i++){let _p=Liqwid.pp[i],a=Liqwid.ad[i];if(_p&&_p.d)_p.d.remove();a=null;_p=null;}Liqwid.i=0;Liqwid.ad=[];Liqwid.ads=[];Liqwid.pp=[];Liqwid.qs_='';Liqwid.o=0;Liqwid.insert();}}}
customElements.define("app-answer", appAnswer);} 
if(typeof top.Liqwid!=='undefined')top.Liqwid.obj++;var Liqwid=Liqwid||{host:'//liqwid.net',url:window.location.href,pList:[],R:false,E:false,eT:{t1:0,t2:0,t3:0,t4:0,r:0,b:0,s:0,sP:0,bP:0,l:false},ui:false,wheel:false,obj:0,demo:false,keywords:'',mz:false,stp:0,lg:[],theme:{a:'#9cbd28',b:'#2f3d4a',c:'#fff',d:'#222',e:'#666',l:'%2391a6bb',lat:{s:'',t:'',c:''}},dbg:false,wrn:true,cmp:{u:'https://ccpa-wrapper.privacymanager.io/ccpa/da0c1f56-cebf-4177-9c96-53e1c9e30d94/ccpa-liveramp.js',t:'#menu-information',e:'li',m:1,c:'menu-item menu-item-type-post_type menu-item-object-page td-menu-item td-normal-menu',s:'',a:'<a onclick="__ccpa(\'showConsentManager\')" href="javascript:void(0);">Do Not Sell My Personal Information</a>'},log:class {
constructor(title) {this.title = {body: title || "LIQWID", color:"#fff",size:"0.8rem",backgroundColor:"#407457",weight:"normal"};this.body={color: "#407457",size:"0.8rem",weight:"normal"};}setTitleStyle({color,size,backgroundColor}) {if(color!==undefined)this.title.color=color;if(size!==undefined)this.title.size=size;if(backgroundColor!== undefined)this.title.backgroundColor=backgroundColor;}
setBodyStyle({color,size,weight}){if (color!==undefined)this.body.color=color;if(size!== undefined)this.body.size=size;if(weight!==undefined)this.body.weight=weight;}
log(body = "") {
console.log(`%c${this.title.body}%c${" " + body}`,`color: ${this.title.color}; border-radius:2px; padding:1px 4px 1px 4px; background-color: ${this.title.backgroundColor}; font-size: ${this.title.size};`,`color: ${this.body.color}; font-size: ${this.body.size}; font-weight: ${this.body.weight}; `);
}
},
msg: function(n, t, e, c) {
    var u = this.url,
        r = new RegExp('liqwid-' + c, 'g'),
		m='log';
    if (!n) n=++this.stp;
	if (!t||typeof t==="undefined") t='';else t=': ' + t;
	
	t = n + t;
	
    if (u.match(/liqwid:/) || u.match(/liqwid-/)) {
        this.wrn = true;
        if (c && u.match(r)) {
                this.dbg = true;
                this.wrn = false;
         }
	if (u.match(/-warn/)|| u.match(/:warn/)) {
               m='warn';
            }
	const l=new this.log;const er = new this.log("LIQWID");
	if (e===2) {l.setBodyStyle({color:"#0F5B87",weight:"bold"});l.setTitleStyle({color:"#FFF",backgroundColor:"#0F5B87"});}
	if (e===3) {l.setBodyStyle({color:"#0F5B87"});l.setTitleStyle({color:"#FFF",backgroundColor:"#0F5B87"});}
	if (e===4) {l.setBodyStyle({color:"#D95509"});l.setTitleStyle({color:"#FFF",backgroundColor:"#D95509"});}
	if (e===5) {l.setBodyStyle({color:"#7F2653"});l.setTitleStyle({color:"#FFF",backgroundColor:"#7F2653"});}
	er.setBodyStyle({color:"#C2423D"});er.setTitleStyle({color:"#FFF",backgroundColor:"#C2423D"});if(e!==1)l.log(t);else er.log(t);
   }
},kV:0.2,KM:true,kM:0,flag:0,bgad:0,tmp:null,KV:'',board_:0,rtb_flag:false,fall_flag:0,sN:0,cG:false,print:false,flash:false,eu:0,cs:'',lf:0,sln:0,i:0,i_:null,cnt:0,prevBot:0,prevS:0,fs:false,fx:false,trk:true,wait:0,lmt:0,cp:'',cln:0,clA:0,clB:0,clI:0,clJ:0,clK:0,clM:0,clN:0,clO:0,tx:'',fall:'',m:function(){var m=false;if("maxTouchPoints" in navigator){m=navigator.maxTouchPoints>0;}else if("msMaxTouchPoints" in navigator){m=navigator.msMaxTouchPoints>0;}else{var mQ=window.matchMedia&&matchMedia("(pointer:coarse)");if(mQ&&mQ.media==="(pointer:coarse)"){m=!!mQ.matches;}else if('orientation' in window){m=true;}else{var UA = navigator.userAgent;m=(/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(UA)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(UA));}}return m;},mob:false,use_min:false,slot:0,wx:0,wy:0,lstn:1,sec:0,lso:null,cmc:[],cn_:0,mg:0,_vq:function(i,a){if(typeof a.p==="undefined"||a.p==0)return;let sq=this.vq,lq=this.lq,nq=this.nq,v=[],l=0;try{v=sq.split('.');}catch(e){v[0]='';} l=v.length;if(a.fc!==0){if(nq===""){nq=a.p.toFixed();}else{nq+="."+a.p.toFixed();}if(!this.mq.includes(a.p.toFixed())){this.mq.push(a.p.toFixed());if(lq===""){lq=a.p.toFixed();}else{lq+="."+a.p.toFixed();}}let pv=Math.floor(this.com.gC("LP"+a.p.toFixed()));pv++;this.com.sC("LP"+a.p.toFixed(),pv.toFixed(),0,a.mg);}else{if(sq===''){sq=a.p.toFixed();}else{sq+='.'+a.p.toFixed();}if(l>100){sq=sq.substring(sq.indexOf('.')+1,sq.length);}this.vq=sq;}this.lq=lq;this.com.sC('LMQ',lq,0,0);this.com.sC('LVQ',sq,0,0);if(sq!==''&&nq!==''&&nq.substr(0,1)!=='.')nq='.'+nq; this.nq=nq;this.com.sC('liqwid',sq+nq,0,0);},rt:0,Ag:'',rex:function(i,a,_p,d){a.rtb.f=0;a.bt=null;if(a.pd){a.fs=_p.fs;a.rl=_p.rl;}a.pd=null;_p.cf=null;_p.Pt=null;_p.s=0;_p.j=null;if(!a.pr)this.ad[i].l=false;if(_p.trackRefresh)_p.g=this.com.guid();_p.Re++;if(!a.pr){Liqwid.msg('Refreshing Dir: '+i);this.fill(i);}else{var rn=this._(a.rtb.m[0],null);if(rn&&a.af!=="video"&&!_p.stN){Liqwid.msg('Refreshing Prog: '+i);this.demand(rn,1,i);}}},refresh:function(r){var _p,a,d,m=4,n=Math.floor(r);if(Math.floor(n)>-1){_p=this.pp[n];a=this.ad[n];d=_p.d;
if(!_p.rfd&&_p.q!==''){_p.rfd=1;this.com.rq+=_p.q.replace(';','&r~=1;');_p.q='';}
if(_p&&a&&d&&_p.vi){
//if(_p.vPaid||a.af==='video')return;
if(_p.s>m||a.rtb.f!==0)Liqwid.rex(n,a,_p,d);}}else{for(i=0;i<this.i+1;i++){_p=this.pp[i];a=this.ad[i];d=_p.d;if(_p&&a&&d&&_p.vi){if(_p.s>m||a.rtb.f!==0)Liqwid.rex(n,a,_p,d);}}}},noSmallPeel:function(){return;},peela:function(_p){if(!_p||!_p.exp)return;
let w=100,c=[],W=500,exp=_p.exp;_p.po=null;if(exp&&exp.length>2){w=exp[2][0];W=exp[2][1];if(exp[3])c=exp[3];}
if(c&&c.length>0 && c.length<4) {
for (var n=0;n<3;n++){
let s= document.getElementById('Liqwid_stop'+_p.i+'_'+n),C="#dddddd";if(n===1)C="#bbbbbb";
if (n===0) {C=c[0];} else if (n===1&&c[1]) {C=c[1];} else if (n===2&&c[2]) {C=c[2];} 
if(s)s.setAttributeNS(null,"stop-color",C);		
//c.push(1);
}
} 
const p=["M 0 0 Q "+(w*0.7)+" "+(w*1.7)+" "+(w*0.3)+" "+(w*3)+" "+(w*2.7)+" "+(w*3.5)+" "+W+" "+W+" L 0 0 Z","M 0 0 Q "+(w*1.7)+" "+(w*1.5)+" "+(w*1.2)+" "+(w*2.5)+" "+(w*3)+" "+(w*3.7)+" "+W+" "+W+" L 0 0 Z","M 0 0 Q "+(w*0.7)+" "+(w*1.7)+" "+(w*0.8)+" "+(w*3.7)+" "+(w*2.6)+" "+(w*3)+" "+W+" "+W+" L 0 0 Z","M 0 0 Q "+(w*1.3)+" "+(w*1.7)+" "+(w*0.07)+" "+(w*3.2)+" "+(w*1.2)+" "+(w*3.7)+" "+W+" "+W+" L 0 0 Z","M 0 0 Q 156 164 131 253 310 328 "+W+" "+W+" L 0 0 Z","M 0 0 Q 122 161 73 260 316 342 "+W+" "+W+" L 0 0 Z","M 0 0 Q 50 161 89 260 261 110 "+W+" "+W+" L 0 0 Z","M 0 0 Q 75 161 39 332 287 352 "+W+" "+W+" L 0 0 Z"];const o=top.document.querySelector('#Liqwid_cor'+_p.i+' > path');
if(typeof document.body.style.MozAppearance==="undefined"){setInterval(function(){let i=Math.floor(Math.random()*Math.floor(4));if(o)o.setAttributeNS(null,"d",p[i]);},500);let g=document.querySelector('#Liqwid_peel'+_p.i),m=document.querySelector('#Liqwid_mask'+_p.i+'_0 > path'); if(g)g.style.transition="all 0.7s ease-in-out";if(m)m.style.transition="all 0.7s ease-in-out";} 	
},dLk:function(_p,aP){let n=top.document.getElementsByTagName("P"),aS='',oH='',aC='',l=_p.dLk;
if(l==="default")l=_p.dLk_;/*this.msg('DeepLink',l);*/if(_p.aS)aS=' style="'+_p.aS.replace(/,/g,';')+'"';if(_p.oH)oH=' onmouseover="this.style.color=\''+_p.oH.on[0].replace(/,/g,';')+'\';this.style.textDecoration=\''+_p.oH.on[1].replace(/,/g,';')+'\';" onmouseout="this.style.color=\''+_p.oH.out[0].replace(/,/g,';')+'\';this.style.textDecoration=\''+_p.oH.out[1].replace(/,/g,';')+'\'"';
if(_p.aC)aC=' class="'+_p.aC+'"';
for (let p=0;p<n.length;p++){	
let t=n[p].innerHTML;
for (let i=0;i<l.length;i++){
let w=l[i][2].split(",");						  
for (j=0;j<w.length;j++) {
let r=w[j].trim(),R; 
R = ' '+r.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')+'s,';if(this.url.match(/liqwid-placement/)&&t.indexOf(R) >-1)this.msg('DeepLink',R);
t=t.replace(new RegExp(R,'g'),' <a href="https://go.shopyourlikes.com/pi/'+l[i][1]+'?afId=725745&afPlacementId='+aP+'" target="_blank" referrerpolicy="no-referrer-when-downgrade"'+aS+oH+aC+'>'+R+'</a> ');
R = ' '+r.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')+'s ';if(this.url.match(/liqwid-placement/)&&t.indexOf(R) >-1)this.msg('DeepLink',R);
t=t.replace(new RegExp(R,'g'),' <a href="https://go.shopyourlikes.com/pi/'+l[i][1]+'?afId=725745&afPlacementId='+aP+'" target="_blank" referrerpolicy="no-referrer-when-downgrade"'+aS+oH+aC+'>'+R+'</a> ');
R = ' '+r.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')+',';if(this.url.match(/liqwid-placement/)&&t.indexOf(R) >-1)this.msg('DeepLink',R);
t=t.replace(new RegExp(R,'g'),' <a href="https://go.shopyourlikes.com/pi/'+l[i][1]+'?afId=725745&afPlacementId='+aP+'" target="_blank" referrerpolicy="no-referrer-when-downgrade"'+aS+oH+aC+'>'+R+'</a> ');
R = ' '+r.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')+' ';if(this.url.match(/liqwid-placement/)&&t.indexOf(R) >-1)this.msg('DeepLink',R);
t=t.replace(new RegExp(R,'g'),' <a href="https://go.shopyourlikes.com/pi/'+l[i][1]+'?afId=725745&afPlacementId='+aP+'" target="_blank" referrerpolicy="no-referrer-when-downgrade"'+aS+oH+aC+'>'+R+'</a> ');
n[p].innerHTML=t;}}}
},peel:function(i,r){let p,P,g,b,c,d,_p=this.pp[i],w=100,W=700,exp=_p.exp;_p.po=null;if(exp&&exp.length>2){w=exp[2][0];W=exp[2][1];}let path=["M "+W+" "+w+" L "+W+" 0 "+(W-w)+" 0 "+W+" "+w+" Z","M "+W+" "+W+" L "+W+" 0 0 0 "+W+" "+W+" Z"];if(r){path.reverse();}else{_p.po=1;}p=document.querySelector('#Liqwid_mask'+i+'_0 > path');P=document.querySelector('#Liqwid_peel_prev'+i);g=document.querySelector('#Liqwid_peel'+i);b=document.querySelector('#Liqwid_peel_ad'+i);c=document.querySelector('#Liqwid_peel_clc'+i);d=document.querySelector('#Liqwid_peel_box'+i);if(!r)b.style.clip="auto";if(p)p.ontransitionend=()=>{if(r){b.style.clip="rect(0px,"+W+"px,"+w+"px,"+(W-w)+"px)";if(P)P.style.display="block";d.style.width=w+"px";d.style.height=w+"px";}else{b.style.zIndex=3;g.style.zIndex=0;let ms=5000;if(typeof _p.exp[4]!=='undefined')ms=parseInt(_p.exp[4]);setTimeout(function(){Liqwid.peel(_p.i,1);},ms);}};if(p){for(let x=0;x<path.length;x++){p.setAttributeNS(null,"d",path[x]);}}if(r){g.style.zIndex=3;g.style.width=w+"px";c.style.opacity=1;if(P)P.style.display="block";if(typeof document.body.style.MozAppearance!=="undefined") {
b.style.zIndex=0;g.style.zIndex=3;d.style.transition="unset"} else {setTimeout(function(){g.style.zIndex=3;b.style.zIndex=0;},700);
}}else{b.style.right="0";if(P)P.style.display="none";c.style.opacity=0;g.style.width=(W-2)+"px";g.style.zIndex=0;d.style.width=W+"px";d.style.height=W+"px";}},peel_rnd:function(_p){if(_p.peel_img_src) return;let f=_p.VF||_p.f[_p.cn], y;if(f)y=(f.contentWindow||f.contentDocument);if(y&&y.document){if(!_p.peel_img_src || Liqwid.ad[_p.i].pd) {_p.pre_img_src=true;let d=document.getElementById('Liqwid_peel_box'+_p.i);if(d){if(this.mob){d.onclick=function(){let r=0;if(Liqwid.pp[_p.i].po)r=1;Liqwid.peel(_p.i,r);}}}
if(_p.pr&&_p.primebid&&(!_p.bid||_p.bid==0))return d.style.dislay="none";const a=Liqwid.ad[_p.i];if((a.pr&&a.spT===''&&!Liqwid.mob)||(!_p.exp||typeof _p.exp[5]!=='undefined'))return Liqwid.peel(_p.i);}}},dM:function(i){let t_="",capt=this.d("Liqwid_demo"+i),_p=this.pp[i],a=this.ad[i],d=_p.d,b=_p.b,D=this.d("Liqwid_sb"+i);if(_p.s===0){capt.style.display="none";D.style.display="none";}else{capt.style.display="block";D.style.display="block";}
if(capt){t_="<div style='color:#000;margin-bottom:4px'>PID: "+a.p+"</div>";if(!_p.vi||!this.fs)t_+="<div style='color:red'><b>Not Viewable</b></div>";else t_+="<div style='color:#000'><b>Viewable</b></div>";if(!this.fs)t_+="<div style='color:red'>Out Of Focus</div>";else if(!_p.vi)t_+="<div style='color:red'>Out Of Viewport</div>";if(this.mz)t_+="<div style='color:red'>Webpage Is Hidden</div>";t_+="<div style='color:#000;'>Time In View: "+_p.s+" sec</div>";if((_p.gpt&&_p.gs<_p.gpt)||(_p.tD&&_p.gs<_p.tD)){let GS=_p.gpt;if(_p.tD)GS=_p.tD;t_+="<div style='color:green;margin-top:10px;'>Will Reload in "+(GS-_p.gs)+" sec<br>in view</div>";}capt.innerHTML=t_;if(b)d=b;let T=this.com.fp(d).t,L=this.com.fp(d).l+100;if(_p.iT===4){T=100;L=70;}if(a.ps=="B")L=this.com.fp(d).l-30;if(a.ps==='A'||a.ps==='B')T=this.ch/2-100;if(a.ps=="H")T=this.ch-250;if(a.mw==970)L=top.innerWidth/2;D.style.top=T+"px";D.style.left=L+"px";}setTimeout(function(){Liqwid.dM(i);},100);},timer:function(){var r=0,r_=0,q='',q_='',aq='',trk='',tl='';if(!this.fs){return setTimeout(function(){Liqwid.timer();},10);}for(i=0;i<this.i+1;i++){var _p=this.pp[i],a=this.ad[i];if(a&&_p){if(_p.cL)a.r=1;if((a.p!==0||_p.gpt||_p.tD)&& _p.vi){if(_p.tR&&a.rtb.f===_p.tR.sec){_p.tR.cnt++;if(_p.tR.max===_p.tR.cnt)_p.tR=null;this.refresh(i);continue;}}if(_p.vi&&a.rtb.f!==0&&_p.tR)a.rtb.f++;if(a.af==='video'||(_p.end||_p.rfd||(a.video!==1&&(a.ps==='B'&&_p.g===this.Ag))))continue;let wT=_p.wT||0,rt=_p.rT;if(_p.s<240){if(a.ps==='A' && !a.pr)this.Ag=_p.g;if(_p.vi){if(a.video!==1){this.sec++;_p.s++;if(_p.gpt||_p.tD)_p.gs++;if(a.ps==='A')this.A=_p.s;if(a.ps==='B')this.B=_p.s;}else{
if(_p.player){_p.s= Math.floor(_p.player.currentTime);if(_p.s>240)_p.s=240;}}}else{this.trk=false;}if(this.cnt<this.i+1)this.cnt++;var aw=_p.w,ah=_p.h,f='';if(a.fs!==0){aw=a.mw;ah=a.mh;}st='&g~='+_p.g+'&p~='+a.p+'&ps~='+a.ps+'&sp~='+a.sp+'&s~='+_p.s+'&w~='+aw+'&h~='+ah;if(_p.nR&&_p.s===_p.nR){var d=_p.d;if(d&&d.nextSibling){d.style.display='none';_p.end=true;d.nextSibling.classList.remove('Liqwid_'+i+'fadeout');d.nextSibling.classList.add('Liqwid_'+i+'fadein');}}}
if(_p.s>0){if(a.pr||a.video!==0){if(a.video!==0||(a.rtb.r)){q='&b=~'+st+'&f~='+a.rtb.n+'&fc~='+_p.cn+'&ap~='+a._p+'&c~='+_p.bid+'&a~=2';
}else{q='&b=~'+st+'&a~=5';}}else{q='&b=~'+st+'&a~=3';}r++;q_+=q+';';_p.q=q+';';if(wT>0){if(a.video===0&&a.ps!=='W'&&a.pr&&wT<10)wT=10;if(!_p.end&&_p.s>=wT/*&&_p.pf*/){this.close(i);}else{if(a.ps==='W'){var ct=this.d("Liqwid_captions"+i);if(ct&&wT-_p.s<wT){ct.innerHTML="AD SKIPS IN "+(wT-_p.s)+" sec";ct.style.display="block";}}}}
if(a.pr&&rt===-1&&a.rtb.n!=='D'&&_p.cn!==0)rt=20;if(a.af!=="video"&&a.video!==1&&rt>-1){if(a.pr&&rt===0){rt=30;if(this.mob)rt=15;}if(a.x===1)rt=0;  if(rt>9&&_p.s===rt) this.refresh(i);}}}}this.com.tl=q_;return setTimeout(function(){Liqwid.timer();},1000);},close:function(i,mV){let a=this.ad[i],_p=this.pp[i],d=_p.d,b=_p.b,df=_p.VF||_p.f[_p.cn],cB=this.d("Liqwid_close"+i),oB=_p.B,vK=this.d("Liqwid_vNB"+i);if(a&&_p&&d){
if(mV){_p.mV=-1;if(cB)cB.style.display='none';return;}else{if(_p.mP){this.pp[_p.mP.i].mV=-1;return;}}_p.end=true;if(a.op){d.style.height=0;d.style.overflow='hidden';}_p.cn=0;a.r=0;a.video=0;a.dur=0;if((_p.mV===5||_p.mV===6)&&_p.vN)this.ani(i,d,b,df,oB,a,_p,0,_p.w,_p.h,0,0,'absolute',null,_p.vD,_p.aE,_p.h,0,0.7);
if(_p.player){_p.player.pause();}if(cB)cB.style.display='none';if(oB)oB.style.display='none';if(vK)vK.style.display='none';if(d.className.indexOf("Liqwid_"+i+"fadein") >-1) {d.classList.remove("Liqwid_"+i+"fadein");d.classList.add("Liqwid_"+i+"fadeout");} if(_p.nR){if(d&&d.nextSibling){d.style.display='none';_p.end=true;d.nextSibling.classList.remove('Liqwid_'+i+'fadeout');d.nextSibling.classList.add('Liqwid_'+i+'fadein');}}else{return setTimeout(function(){Liqwid.msg('Placement ('+a.p+') Closed: '+i);d.style.display='none';d.classList.remove("Liqwid_"+i+"fadeout");},500);
}}},txt:'',vg:'',ip:'751461764',vl:'',vq:'',lq:'',mq:[],nq:'',pq:'',rec:function(){this.vg=this.com.gC('LVG');if(this.vg===''){this.vg=this.com.guid();this.com.sC('LVG',this.vg,365,0);}
let vq=this.com.gC('LVQ'),mq_=this.com.gC('LMQ'),mq=[],lq='',nq='',s=mq_.split('.');
for(let x=0;x<s.length;x++)if(s[x]!==''&&!mq.includes(s[x]))mq.push(s[x]);
for (let m=0; m<mq.length; m++) {let mp=Math.floor(this.com.gC("LP" + mq[m]));if (mp!==0) {for (let p=0;p<mp;p++){if (nq==="") {nq=mq[m];}else{nq+="."+mq[m];}}
if (lq===""){lq=mq[m];}else{lq+="." + mq[m];}}}if(vq!==''&&nq!=='')nq='.'+nq;this.lq=lq;this.vq=vq;this.nq=nq;this.mq=mq;this.com.sC('liqwid', this.vq+this.nq, 0, 0);		
this.pq=this.vq;var k='',m=top.document.querySelector("meta[name*='keywords']");if(m)k=m.getAttribute("content")||'';k=k.replace(new RegExp('<','g'),'').replace(new RegExp('>','g'),'').replace(new RegExp('/','g'),'').replace(new RegExp('\n','g'),'').replace(new RegExp('\r','g'),'').replace(new RegExp('"','g'),'');if(k.length>500)k=k.substring(0,500);this.keywords=k;if(k!=='')k='&kw='+encodeURIComponent(k);var m=0;if(this.mob)m=1;this._q='key=3484-F4C7-7B95-F52B'
+'&m='+m+'&vg='+this.vg+'&vdt='+this.com.vdt()+'&tz='+this.com.tz()+'&vd='+encodeURIComponent(document.domain)+'&sw='+top.screen.width+'&sh='+top.screen.height+'&cd='+screen.colorDepth+'&vip='+this.ip+k;},page:{u:'0',st:2,ep:1,pw:970,al:'center',pr:0,pp:70,mw:340,z:255,nl:1,nr:1,ns:2,ll:0,lr:0,lt:0,lb:0,lc:0,rl:0,rr:0,rt:0,rb:0,rc:0},logo:function(){},cw:0,ch:0,vp:function(){var w=top.document.documentElement.clientWidth||top.document.body.clientWidth;var h=top.innerHeight||top.document.documentElement.clientHeight||top.document.body.clientHeight;this.cw=Math.floor(w);this.ch=Math.floor(h);this.q=this._q+'&al='+this.page.al+'&cw='+this.cw+'&ch='+this.ch+'&u='+ encodeURIComponent(top.location.href);},drop:false,abord:false,_q:'',q:'',qs:'',qs_:'',ad:[],mc:'',par:function(i,_p,_w,_h,_v,_a){if(typeof this.ad[i]==='undefined'){this.ad[i]={p:0,af:'banner',d:'',e:'',l:false,r:0,j:0,s:0,cn:0,vcn:0,vcn_:0,c:'',al:_a,pp:{},pr:false,v:_v,ps:_p,mw:_w,mh:_h,ms:0,mt:0,t:0,ct:'',cm:'',rl:0,pt:'',cd:0,ci:'',cc:'',nf:null,tt:'',g:'',mg:0,fs:0,btn:[],rtb:{sT:[],c:[],m:[],w:[],h:[],n:'',r:false,f:null,s:0},vi:false,video:0,vast:false,vTr:null,dur:0,q:'',q_:''};this.pp[i]={w:1,h:1};this.i++;}},vCh:function(){if(typeof top.document.hidden==='undefined'){Liqwid.fs=false;this.mz=1;}else{if(!top.document.hidden){Liqwid.fs=true;this.mz=false;}else{Liqwid.fs=false;this.mz=1;}}},ds:0,ctr:function(u){this.click(0,u);},click:function(b,u,tr,m){console.log("a.ct", b) ; if(typeof Liqwid.ad[b].cm!=='undefined'&&Liqwid.ad[b].cm!=='')Liqwid.com.js(this.ad[b].cm);if(m&&m!=='')Liqwid.com.js(m);let u_=Liqwid.ad[b].ct||'';
	
	if(u_!=='')u=u_;Liqwid.com.log('log','&ct=1'+this.pp[b].q.replace(/~/g,b).replace(/;/,''));if(typeof u!=='undefined'&&u&&u!==''){window.open(u,'_blank');}},click_btn:function(b,c){this.ad[b].ct='//'+this.ad[b].btn[b,c];this.click(b,'');},blockURL:false,L:false,insert:function(p,i,I){if(top.Liqwid.obj!==0)return;if(!p)p='';this.msg((++this.stp),'Call for Placement: '+ p);if(this.lg.length>0&&p&&p!==''&&this.lg.includes(p)) return; this.lg.push(p);if(i===null&&this.i_)i=this.i_;if(this.blockURL||this.lmt===1||(this.L&&i===null))return;var a=this.ad[i],_p=this.pp[i];if(a&&_p&&!_p.cL){if (a.p!==0&&a.r===1&&_p.q!=='') this.com.log('log',_p.q+'&i=1');}this.vp();let u=this.q+this.qs_+'&ex='+this.vq+this.nq+'',p_=this.com.qk('liqwid_id');if(p_&&p_!=='')p=p_;if(this.vl!=='')u+='&vl='+encodeURIComponent(this.vl);if(typeof I!=="undefined"&&I!==null)u+='&di='+I;u+='&rnd='+Date.now();this.com.js(this.host+'/get/?'+u);this.msg((++this.stp),'Ad Request: https:'+this.host+'/get/?'+u);},_qs:function(i,w_,h_){var a=this.ad[i],_p=this.pp[i],w=0,h=0;if(a&&_p){w=_p.w;h=_p.h;if(w_)w=w_;if(h_)h=h_;if(a.ps==='G'||a.ps==='H'){w=w*1.2;h=250;}a.c='&i'+i+'='+i+'&ps'+i+'='+a.ps+'&w'+i+'='+Math.floor(w)+'&h'+i+'='+Math.floor(h)+'&b'+this.sln+'='+i+'&d'+i+'='+a.d;this.qs+=a.c;this.sln++;}},clt:0,
vPos: function(i,d,b,df,oB,a,_p,tm,w,h,t,l,P,cB){ 
if (typeof df==="undefined") {df=null; let f=_p.VF||_p.f[_p.cn]; if(f)df=f;} let cBA;
if(!df&&a.af==="video"){df=this.d("Liqwid_frame"+i+"_"+_p.cn);if(df)_p.VF=df;}
if(df)df.style="block";if(b)b.style="block";
if((_p.cF||_p.Fc)&&cB&&oB){
if(!_p.end && _p.mV>-1)cB.style.display="block"; 
this.cP(i,_p.cP,d,0,0,oB.offsetWidth,oB.offsetHeight);
if(_p.pi&&_p.pi>-1){
this.cP(_p.pi,_p.cP,d,0,0,oB.offsetWidth,oB.offsetHeight);
cBA=this.d("Liqwid_close"+_p.pi);
if(cBA)cBA.style.display="block";}
}
let oBd="block";if(_p.player && typeof _p.player.CP !=="undefined" && !_p.player.CP) oBd="none"; 
if (_p.mV === 2 || (_p.mRef&&this.fs) || ((_p.mV === 1 || _p.mV === 6 ) && _p.vJ && (tm+_p.h*0.8 < 0 || tm > this.ch - _p.h * 0.2))) {
a.video = 2;_p.mRef=null;if(_p.dR&&_p.D)_p.D.style.display="block";if(_p.pi&&this.ad[_p.pi])this.ad[_p.pi].video=2;let W=parseInt(_p.vW),H=Math.floor(W*(a.mh/a.mw)),L=_p.vL,T=_p.vU;if(_p.vH)H=parseInt(_p.vH);oB.style.width=W+"px";oB.style.height=H+"px";if(_p.vZ)oB.style.zIndex=_p.vZ;if(_p.mV===-1)oB.style.display="none";b.style.width=W+"px";b.style.height=H+"px";if(_p.player){if(_p.player.waiting) {b.style.filter="brightness(0%)";}else if(_p.player.waiting_){b.style.filter="brightness(0%)";}else{b.style.filter="brightness(100%)";}}
if(df){df.style.width=W+"px";df.style.height=H+"px";let _f=df.contentDocument||df.contentWindow;if(_f&&_f.document)_f=_f.document;if(_f){let f_=_f.getElementsByTagName("iframe");for(let F=0;F<f_.length;F++){f_[F].width=W+"px";f_[F].height=H+"px";}}}
  let vLN,vTN,vNB,vK="Liqwid_vNB"+i,vKB=this.d(vK);
  if (_p.vNB && !vKB) {
    let vE=document.querySelector(_p.vNB[0]);
    if (vE) {
      vNB = top.document.createElement('div');
      vNB.id = vK;
      if (_p.vNB[1] === "prepend") {
        vE.prepend(vNB);
      } else {
        vE.appendChild(vNB);
      }
      vNB.style.width = W+"px";
      vNB.style.height = H+"px";
      if (_p.vNB[2])vNB.style.cssText += ';'+_p.vNB[2].replace(/,/g, ';');
    }
  }
  if (_p.vTN) {
    vTN = document.querySelector(_p.vTN);
    if (vTN) {
      if(vKB)vKB.style.display="block";
       let VT=this.com.fp(vTN).t,ts = this.com.st();
      if ((_p.dR&&_p.dR.m) || (VT - ts) < parseInt(T)) {
	 oB.style.position="fixed";
	if(_p.vS && !_p.vS_){_p.vS_=1;oB.style.boxShadow=_p.vS;}
      } else {
	_p.vS_=null;
	 oB.style.position="absolute";T=VT+"px";if(_p.vS)oB.style.boxShadow='none';
      }
    }
  } else {
	if(_p.vS && !_p.vS_){_p.vS_=1;oB.style.boxShadow=_p.vS;}
	if(_p.dR&&!_p.dR.r){if(_p.dR.y)T=_p.dR.y+"px";if(_p.dR.x)L=_p.dR.x+"px";}
}
  if (_p.vLN) {
    vLN = document.querySelector(_p.vLN);
    if (vLN) L = (this.com.fp(vLN).l+Number(_p.vLM))+"px";
  }
  if (_p.Vp === "top-left") {
    oB.style.top = T;
    oB.style.left =L;
 } else if (_p.Vp === "top-right") {
    if (!vLN) L = (top.innerWidth-W-parseInt( _p.vR))+"px";
	if(_p.dR&&!_p.dR.r){if(_p.dR.y)T=_p.dR.y+"px";if(_p.dR.x)L=_p.dR.x+"px";}
	if(!_p.dR||!_p.dR.r){
   oB.style.top = T; 
   oB.style.left =L;
	}
  } else if (_p.Vp === "bottom-left") {
	oB.style.position="fixed";
	T=(top.innerHeight-H-parseInt( _p.vB))+"px";
	if(_p.dR&&!_p.dR.r){if(_p.dR.y)T=_p.dR.y+"px";if(_p.dR.x)L=_p.dR.x+"px";}
	if(!_p.dR||!_p.dR.r){
    oB.style.left=L;
    oB.style.top=T;
	}
  } else if (_p.Vp === "bottom-right") {
	oB.style.position="fixed";
	L=(top.innerWidth-W-parseInt(_p.vR))+"px";
	T=(top.innerHeight-H-parseInt(_p.vB))+"px";
	if(_p.dR&&!_p.dR.r){if(_p.dR.y)T=_p.dR.y+"px";if(_p.dR.x)L=_p.dR.x+"px";}
	if(!_p.dR||!_p.dR.r){
    oB.style.left=L;
    oB.style.top=T;
	}
  } 
  if (_p.mV === 6 && !_p.vX) {
    _p.vX = 1;
    this.ani(i, d, b, df, oB, a, _p, 0, _p.w, this.com.fp(_p.vN).t, 0, 0, 'absolute', null, _p.vD, _p.aE, _p.h, 0, 0.7);
  }
} else { 
	w=_p.w;h=_p.h;
	if(_p.dR&&_p.D)_p.D.style.display="none";_p.vS_=null;
  if (_p.vX) return; if(_p.dR)_p.dR.r=null;
  a.video = 1;
	if(_p.pi&&this.ad[_p.pi])this.ad[_p.pi].video = 1;
  if (_p.vi) _p.vJ = 1;
  if (_p.mV === 5 || _p.mV === 6) {
    w = this.cw;
    oB.style.background = "#000";
  }
  vKB = this.d("Liqwid_vNB" + i);
  if (vKB) vKB.style.display = "none";
if(_p.TV){ 
w=_p.TV.offsetWidth;
h=_p.TV.offsetHeight; 
t=this.com.fp(_p.TV).t;								   
l=this.com.fp(_p.TV).l;								   
}
  oB.style.position = P;
  oB.style.right == "auto";
  oB.style.bottom = "auto";
  oB.style.left = l + 'px';
  oB.style.top = t + 'px';
  oB.style.width = w + 'px';
  oB.style.display=oBd;

  if (d) {
    d.style.width = w + 'px';
	d.style.height = h + 'px';
	oB.style.height = h + 'px';
  }
  if (b) { 
	if(_p.player){
	if(_p.player.waiting) {
	h=0;
	b.style.filter="brightness(0%)";
	} else if(_p.player.waiting_) {
	b.style.filter="brightness(0%)";
	} else {
	b.style.filter="brightness(100%)";
	}
	//console.log('w ' + w) ;
    b.style.width = w + 'px';
    b.style.height = h + 'px';
	b.style.marginTop="0px";
  }}
  if (df) {
    df.style.width = w + 'px';
    df.style.height = h + 'px';
  }
  if (_p.vS) oB.style.boxShadow = "none";
  if (_p.mV === 1) {
    if (_p.Vz) oB.style.zIndex = _p.Vz;
  } else if (_p.mV === 5 || _p.mV === 6) {
    oB.style.zIndex = 0;
  } else {
    if (_p.vZ) oB.style.zIndex = _p.vZ;
  }
  if (cB) {
    if (_p.cF && cB) {
      cB.style.display = "block";
	if(cBA)cBA.style.display="block";
    } else {
      cB.style.display = "none";
	if(cBA)cBA.style.display="none";
    }
  }
  if (_p.mV === 5 || _p.mV === 6) {
    d.style.position = P;
    d.style.left = l + 'px';
    d.style.top = t + 'px';
    d.style.width = w + 'px';
    if (!a.nf) d.style.height = h + 'px';

    if (vKB) vKB.style.display = "none";

  }
  if (b) this.box(i, a, _p, d, b, df, w, h);
}},
dR:function(b,i){let _p=this.pp[i],p1=0,p2=0,p3=0,p4=0,x=0,y=0,d=document;b.onmousedown=m;function m(e){e=e||top.event;e.preventDefault();_p.dR.r=1;if(!_p.dR.X){_p.dR.X=Liqwid.com.fp(_p.B).l; _p.dR.Y=Liqwid.com.fp(_p.B).t;}p3=e.clientX;p4=e.clientY;d.onmouseup=c;d.onmousemove=n;}function n(e){e=e||top.event;e.preventDefault();p1=p3-e.clientX;p2=p4-e.clientY;p3=e.clientX;p4=e.clientY;x=(b.offsetTop-p2);b.style.top=x+"px";y=(b.offsetLeft-p1);b.style.left=y+"px";_p.dR.m=1}function c(){_p.dR.y=b.offsetTop;_p.dR.x=b.offsetLeft;d.onmouseup=null;d.onmousemove=null; 
	let l=Liqwid.com.fp(_p.B).l,t=Liqwid.com.fp(_p.B).t;
	if(t< _p.dR.Y+40 && t> _p.dR.Y-40&&l< _p.dR.X+40 && l> _p.dR.X-40){_p.dR.r=null;_p.dR.m=null;_p.B.style.position="absolute";_p.dR.y=null;_p.dR.x=null;} }},Vi:[],pA:0,pB:0,pH:0,pG:0,pR:0,TO:null,ov:function(l1,r1,l2,r2){if(l2.x<r1.x&&r2.x>l1.x&&l2.y<r1.y&&r2.y>l1.y) return true; return false;},board:function(E){if(E)this.E=true;
if(this.page.gE&&this.page.gE.length>0&&!this.gE_){this.gE(this.page.gE);}	
if(this.drop)return;for(i=0;i<this.i+1;i++){let a=this.ad[i],_p=this.pp[i];let df;if(_p&&_p.f&&_p.f.length>0)df=_p.VF||_p.f[_p.cn];if(!_p||!a||_p.end||_p.cancel||a.af==="playlist")continue;var _=this._,pw=this.page.pw,pN,LN,al=this.page.al,aW=this.cw,aH=this.ch,saW=top.screen.availWidth,saH=top.screen.availHeight,fN,NP,CU,vis=_p.vI,vk=0.1,va=_p.va,mb=_p.mb,mt=_p.mt,bh=_p.blh,be=_p.bl,wN,CW,mW=_p.mW,rE=_p.rE,S,rn=0,clnNum=0,i_=0,n_=0,_t=0,_l=0,nB=_p.nB,blS=_p.blS,fL=_p.fL,cln=0,s_in=_p.aI,s_out=_p.aO,pos_=_p.pZ,pO='',_n=this._(a.rtb.n,null),top_=Math.floor(_p.tO),btm_=Math.floor(_p.bO),nn=_p.nodeNum,cW=_p.cW,cM=_p.cM,cM_=0,eE=_p.eE,cL=_p.cL,sA=_p.sA,sS=_p.sS,cV=_p.cV,cD=_p.cD,cSec=0,cScr=0,mC=_p.mC,lE=_p.lE,sL=_p.sL,cI=_p.cI,ia=_p.ia,fw=_p.fw,pm=_p.pm,pW=_p.pW,pU=_p.pU,nP=_p.nP,tH=Number(_p.tH),bH=_p.bH,cT=_p.cT,an=_p.aN,rW=a.mw,sO=_p.sO,hO=_p.hO,nZ=_p.nZ,cF=_p.cF,ut=_p.ut,mM=_p.mM,bS=_p.bS,bG=_p.background,w=a.mw,h=a.mh,u_=top.location.href,zi=_p.zi||this.page.z,ts=this.com.st(),d=_p.d,b=_p.b,cB=this.d("Liqwid_close"+i),oB,d_,_d,rH=_p.rH,dL=0,dT=0,zw=1,fzw=1,wx=this.com.wp().l,wy=this.com.wp().t;if(_p.PA)al=_p.PA;if(this.cw<pw+260)sO=0;if(_p.TN&&!_p.NT) {let nt=false;for(let k=0;k<_p.TN.length;k++){_p.NT=top.document.querySelector(_p.TN[k]);if(_p.rC){let NT=top.document.querySelectorAll(_p.TN[k]);for(let C=0;C<NT.length;C++){for(let L=0;L<_p.rC.length;L++){if(NT[C].innerHTML.indexOf(_p.rC[L])>-1){_p.NT=NT[C];nt=true;break;}}if(nt)break;}}else{_p.NT=top.document.querySelector(_p.TN[k]);}if(_p.NT){nt=true;if(_p.TS)_p.NT.style.cssText+=';'+_p.TS.replace(/,/g,';');break;}}}
if (_p.stN&&!_p.stN.r){let f1;if(df)f1=df.contentDocument;else f1=_p.b;if(f1){let f2=f1.querySelector("iframe[name^='SendtoNews']"),dp=f1.querySelector(".s2nPlayer");if(dp)dp.setAttribute("data-type","full");if(f2){let bar=f2.contentDocument,st={sTN:{menu:'',bar:''},type: 'text/css',se: document.createElement('style'),apd:function(){this.se.type=this.type;this.se.append(document.createTextNode(".videoPlayer.smartMatch .menuButton::after, .videoPlayer.smartMatch .menuButton::before {"+this.sTN.lines.replace(/,/g, ';') + "} .titleBarContainer {"+this.sTN.bar.replace(/,/g, ';') + "} .menuButton {"+this.sTN.menu.replace(/,/g, ';') + "} "));bar.body.append(this.se);this.callback();},callback:function(){setTimeout(this.callback, 10);}};st.sTN=_p.stN;if(bar){if(st.sTN&&st.sTN.menu&&st.sTN.menu!==""){st.apd();_p.stN.r=1;}}}}}
if(location.href.match(/liqwid-/))_p.vI=1;if(a.af==="video")_p.vI=1;if(_p.V&&_p.V!==0)vk=_p.V/100;if(a.ps==='A'||a.ps==='B'||a.ps==='W'){vk=1;_p.vI=1;}if(this.mob&&a.pr){vk=0.1;_p.vI=1;}vis=_p.vI;if(this.mob){wx=0;wy=0;}else{if(top.devicePixelRatio){zw=top.devicePixelRatio;}else if(top.screenX=='0'){zw=(top.outerWidth-8)/top.innerWidth;}else{let scr=top.frames.screen;zw=scr.deviceXDPI/scr.systemXDPI;}if(this.com.br==='firefox')fzw=zw;}s_in=i+s_in;s_out=i+s_out;CU=null;wN=null;if(_p.CW){CW=top.document.querySelector(_p.CW);if(CW)aW=CW.offsetWidth;}if(pW){pw=pW;}else{if(this.page.pr===1){pw=Math.floor(aW/100*this.page.pp);if(pw>this.page.pw)pw=this.page.pw;if(pw<this.page.mw)pw=this.page.mw;}}

let mw_=_p.mw;if((a.ps==='A'&&this.pA!==0)||(a.ps==='B'&&this.pB!==0)){if(_p.mw===160){mw_=300;}}if (_p.sP&&a.p!=0&&((!a.pr&&a.r===1)||a.rtb.r)){for(m=0;m<_p.sP.length;m++){let sP=top.document.querySelectorAll(_p.sP[m]);if(al==="center"){pw=Math.floor(this.cw-mw_*2)-mM-mM;}else{pw=Math.floor(this.cw-mw_)-mM;}if(_p.pM&&pw>_p.pM)pw=_p.pM;if(_p.wP&&((!a.pr&&a.r===1)||a.rtb.r))sP.forEach(function(e){if(pw>_p.wP-mM-mM){e.style.maxWidth= pw+"px";}else{e.style.maxWidth= "none";}if(_p.mS)e.style.margin=_p.mS;});}} 

if(_p.pWN&&_p.pWN.length>0){let pWN;if(typeof _p.pWN[0]!=='object'){pWN=top.document.querySelector(_p.pWN[0]);if(pWN){pw=pWN.offsetWidth+40;if(pWN.offsetWidth>_p.pWN[1])pw=_p.pWN[1];}}else{for(let g=0;g<_p.pWN.length;g++){pWN=top.document.querySelector(_p.pWN[g][0]);if(pWN){pw=pWN.offsetWidth+40;if(pWN.offsetWidth>_p.pWN[g][1])pw=_p.pWN[g][1];break;}}}if(pWN&&pWN.offsetWidth>pw){pWN.style.maxWidth=(pw-40)+"px";
pWN.style.margin="0 auto";}}if(_p.pN){pN=top.document.querySelector(_p.pN);if(pN)pw=pN.offsetWidth+40;}
 
if (_p.cnd&&eval(_p.cnd)!==true){d.style.display="none";_p.vi=false;continue;}
	
if(_p.wN){wN=top.document.querySelector(_p.wN[0]);let v1=_(_p.wN[1],null),v2=_(_p.wN[2],null),v3=_(_p.wN[3],true);if(wN){if(v1 && v1!=="overlap"){let v0=top.getComputedStyle(wN,null).getPropertyValue(v1);if(v0==v2){if(!v3)CU=1;}else{if(v3)CU=1;}}else{if (v1==="overlap") {if(this.TO===i){d.style.display="none";_p.vi=false;continue;}var l1={},r1={},l2={},r2={};l1.x=this.com.fp(b).l;r1.x=l1.x+a.mw;l2.x=this.com.fp(wN).l;r2.x=l2.x+wN.offsetWidth;l1.y=this.com.fp(b).t;r1.y=l1.y+a.mh;l2.y=this.com.fp(wN).t;r2.y=l2.y+wN.offsetHeight;var dt=this.ov(l1,r1,l2,r2);if(dt&&!v3){CU=1;this.TO=i;setTimeout(function(){Liqwid.TO=null;},1500);}}else{if(!v3)CU=1;}}}}
	
if(_p.NS){wN=top.document.querySelector(_p.NS[0]);if(!wN||top.getComputedStyle(wN,null).getPropertyValue("display")==="none") CU=1;}
let vid;
if(a.tE&&a.tE.tagName.match(/LIQWID-/))vid=a.tE.getAttribute("video");
if(_p.nA/*&&!this.NA*/&&_p.vi&&((!a.pr&&a.r===1)||a.rtb.r))this.nA(_p.nA);
if(_p.NS){
if(CU){
	if(d&&d.style.display!=="none")d.style.display="none";_p.vi=false;
	if(_p.player&&!_p.player.paused_){_p.player.pause();_p.player.paused_=1;}
	if(a.r!==1)continue;
for (let n=0;n<this.Vi.length;n++){
let pl=Liqwid.pp[this.Vi[n]];
if(pl&&pl.player&&pl.player.paused_&&pl.player.playing&& !pl.end){
	try{
		pl.player.play();pl.player.paused_=false;
	}catch(e){}
	}
	}
	this.Vi=[];									
	} else { 
	
	if(a.tE.tagName.match(/LIQWID-/)&&(!vid||vid.length===0))continue;
	if (d&&!_p.M&&d&&d.style.display!=="block") {
	//d.style.display="block";
	if(_p.player&&_p.player.paused_&&_p.player.playing) {_p.player.play();
	_p.player.paused_=false;
	} else {
	_p.vs=1; Liqwid.video.init(a,_p);
	}
for (let V = 0; V < this.ads.length; V++) {
if (V !== i && this.pp[V].player) {
this.pp[V].player.pause();
this.pp[V].player.paused_ = true;
this.Vi.push(V);
}
}

if (a.PL&& a.PL.length>0 /*a.tE.tagName.match(/LIQWID-/)*/) { 
if(vid && vid.length > 0){
if (!a.tE.v || a.tE.v != vid) a.r = 0;
if (a.tE && a.af === "video" && a.r !== 1 && a.PL && a.PL.length !== 0) {
if (vid && vid !== '') {
for (let v = 0; v < a.PL.length; v++) {
if (a.PL[v].v == vid) {
a.sl = a.PL[v].u;
a.tE.v = vid;
let kv='',video_id=a.PL[v].oid;

if(_p.cp)kv=_p.cp;						
if (a.PL[v]&&a.PL[v].k&&a.PL[v].k.length>0)kv=a.PL[v].k;
if(kv&&kv.length>0){	
Liqwid.KV = kv;
Liqwid.msg('Cust Params (video: '+video_id+')',kv.replace(/&/g,', '),4);	
}
_p.vcn = v;
Liqwid.video.init(a, _p);
break;
                }
            }
        } }
    }
}	
	
	} 
}
}
	
if(_p.SP){NP=top.document.querySelector(_p.SP[0]);if(NP&&top.getComputedStyle(NP,null).getPropertyValue("display")!=="none"){eval(_p.SP[1]+"="+_p.SP[2]);if(_(_p.SP[3],null))this.nA([[_p.SP[0],_p.SP[3]]]);}}this.vp();if(va==='m'){d_=this.d('Liqwid_slot'+i);_d=this.d('Liqwid_rail');
if(d_&&d){if(d_.parentNode)rW=d_.parentNode.offsetWidth;if(rW>a.mw)rW=a.mw;/*d_.style.width=rW+"px";d.style.width="100%";*/}}
if ((typeof MIDTC!=="undefined"&&MIDTC.dataLayer.paywall.policy==='membership')||this.url.match(/wp-admin/))this.drop=true;
if(_p.cA){for(var A=0;A<_p.cA.length;A++){var O_=top.document.querySelector(_p.cA[A][0]),C_=_(_p.cA[A][1],null),V_=_(_p.cA[A][2],null),P_ = "";if (O_){if(C_&&V_){if(C_==="requests"){if(this.pv>=V_){this.drop=true;Liqwid.msg("ads dropped");break;}}else{P_=top.getComputedStyle(O_,null).getPropertyValue(C_);if(!C_||P_.indexOf(V_)>-1){this.drop=true;break;}}}}}}if(this.drop){for(var I=0;I<this.i+1;I++){var D=this.d('Liqwid_board'+I);if(D){this.msg((++this.stp),'Box: '+i+' Dropped: ' + a.p,1);D.style.display="none";D.innerHTML='';a.p=0;a.r=0;a.rtb.r=false;}}return;} 
if(!_p.end&&_p.cO&&_p.cO.length>0){
for(var O=0;O<_p.cO.length;O++){var O_,C_=_(_p.cO[O][1],null),V_=_(_p.cO[O][2],null),P_ = "";try{O_=top.document.querySelector(_p.cO[O][0]);} catch(e){}if(O_){if(C_)P_=top.getComputedStyle(O_,null).getPropertyValue(C_);if((!C_&&O_.offsetHeight>0)||(C_&&P_.indexOf(V_)>-1)){if(cB)cB.style.display="none";if(d){d.style.display="none";}this.msg((++this.stp),'Box: '+i+' Canceled: '+a.p, 1);a.p=0;a.r=0;a.rtb.r=false;_p.cancel=1;continue;}}}}if(_p.pO!==''||_p.sA){if(!_p.sA){pos_=_p.pO;}else{if(a.ps==='A'||a.ps==='B'){pos_="fixed";if(_p.s>=_p.sA||(a.ps==='B'&&this.A>=_p.sA)){if(!_p.pts) {_p.pts=ts;_p.pO='absolute';}pos_=_p.pO;}}else{pos_=_p.pO;}}}if(d){dL=this.com.fp(d).l;dT=this.com.fp(d).t;}if(_p.oB||(_p.mV&&_p.B))oB=_p.B;if(_p.iL&&!a.tE&&!this.ka/*&&_p.cE>0*/&&(_p.mC===0||a.k<_p.mC)){S=this.a(_p);if(S.length>a.kn){this.ka=1;a.kn=S.length;A=a;P=_p;setTimeout(function(){Liqwid.clon(S,A,P);},_p.iL);}}if (!a.op){if(a.c==='')this._qs(i);
	
if(!_p.TV){if(_p.CV)_p.TV=top.document.querySelector(_p.CV);if(_p.uP)_p.TV=_p.uP;}
	
if (_p.TV&&_p.TV.offsetHeight>0/*&&d&&!_p.mV*/){ 
if(_p.uP && !a.fs) {_p.TV.style.width="100%";_p.TV.style.height=Math.floor(_p.TV.offsetWidth/(a.mw/a.mh))+"px";}
_p.w=_p.TV.offsetWidth;_p.h=_p.TV.offsetHeight;
if (_p.TV.style.position==="fixed") {
d.style.position="fixed";	
_p.top=_p.TV.offsetTop;	
_p.left=_p.TV.offsetLeft;	
} else {
d.style.position="absolute";
_p.top=this.com.fp(_p.TV).t;
_p.left=this.com.fp(_p.TV).l;
	}
if(d){
d.style.top=_p.top+'px';				   
d.style.left=_p.left+'px';							   
d.style.width=_p.w+'px';
d.style.height=_p.h+'px'; 
	}
df=_p.VF||_p.f[_p.cn];
if(df){ 
df.style.width=_p.w+'px';
df.style.height=_p.h+'px'; 	
}
if(b){
b.style.width=_p.w+'px'; 
b.style.height=_p.h+'px'; 	
}	
}	
if(a.rl!==0&&(a.p!==0&&((!a.pr&&a.r===1)||a.rtb.r)&&d&&d.parentNode&&b)){ 
if(!a.nf){ 
if(b){b.style.width=_p.w+'px';if(a.ps!=='F')b.style.height=_p.h+'px';}if(df){df.style.width=_p.w+'px';df.style.height='100%';if(a.af==="video")df.style.height=_p.h+'px';}}if(_p.mV===5||_p.mV===6){va='';pos_=_p.Vp;}if(d_)dL=this.com.fp(d_).l;if(_d)dL=this.com.fp(_d).l;if(rE){var rE_=top.document.querySelector(rE[0]);if(rE_)w=Math.floor(this.com.fp(rE_).l-dL-rE[1]);}else{if(_p.mV===3||(_p.mV===4&&_p.pX)){w=Math.floor(this.cw-dL);}else{w=d.parentNode.offsetWidth;}}if(mW&&w>mW)w=mW;if(w>0)h=Math.floor(w*(a.mh/a.mw));};if(_p.fN)fN=document.querySelector(_p.fN);if(fN){w=fN.offsetWidth;h=fN.offsetHeight;};if(_p.mV===5||_p.mV===6){w=_p.w;h=_p.h;}var t_,n_,b_,l_,w_,h_,bl_=0,aY=0,bt=0,bl=0,lb=0,pd=true;t_=d_||d;
if(_p.TV&&!_p.M)t_=_p.TV;if(t_)aY=this.com.fp(t_).t;if(_p.TV&&!_p.M){dT=aY;dL=this.com.fp(_p.TV).l;}if(_p.NT){aY=this.com.fp(_p.NT).t;dL=this.com.fp(_p.NT).l;dT=aY;if(_p.d){_p.d.style.top=aY+'px';_p.d.style.left=dL+'px';}}_p.y=aY;if(va==='m'){if(blS){bl=blS;}else{if(be!==''||bh!==''||nB){if(bh!==''){n_=top.document.querySelectorAll(bh);if(n_.length>0)nn=n_.length-1;b_=n_[nn];if(b_){bl_=this.com.fp(b_).t+b_.offsetHeight;}}else if(be!==''){if(be==='auto'){if (!_p.bla){var bn=document.getElementsByTagName("div");for(var o=0;o<bn.length;o++){bt=this.com.fp(bn[o]).t;lb=this.com.fp(bn[o]).l;if(bt>aY&&lb<=dL&&lb+bn[o].offsetWidth>dL&&(!_p.blC||bn[o].className.indexOf(_p.blC)>-1)){_p.bla=bn[o];break;}}}b_=_p.bla;}else{if(nB){for(var j=0;j<nB.length;j++){var bW=top.document.querySelector(nB[j]);if(bW){if(dL>0&&this.com.fp(bW).l+bW.offsetWidth>dL){be=nB[j];break;}}}}b_=top.document.querySelector(be);}}if(!b_){if(be==='auto'){bl=aY+h;}else{bl=document.body.offsetHeight+mb;}}else{if(bt===0)bt=this.com.fp(b_).t;if(bl_===0||bl_>bt)bl_=bt;if(bl_>0)bl=bl_-aY+mb;if(bl<h&&_p.sH&&bl>_p.sH)_p.va='';}}}}if(_p.tN){var tN=top.document.querySelectorAll(_p.tN),tT,tL,tNM=0;for(var o=0;o<tN.length;o++) {tT=this.com.fp(tN[o]).t;tL=this.com.fp(tN[o]).l;
if(tT>=aY+h &&tL<dL+w&&tL+tN[o].offsetWidth>dL){bl=tT-aY-20;break;}}}if(_p.bl!=='ignore'){if(va==='m'&&bl<h)pd=false;}else{if(_p.rH)bl=_p.rH;}let t=dT,l=dL,tm=t*fzw-ts/*+(h-h*vk)*/,lm=l-this.com.sl(),hB=0,rm=Math.floor(lm+(w*vk)),bm=Math.floor(t+(h*vk)-ts),sl=Math.floor(wx+lm*zw+(w-w*vk)*zw),sr=Math.floor(wx+rm*zw),sb=Math.floor(wy+bm*zw),_t=Math.floor((this.ch/2)-h/2);if(ut)_t=ut;if(d&&b&&d.style.position==='fixed'){sb=Math.floor(wy+tm+(h*vk)*zw);sl=Math.floor(wx+this.com.fp(b).l*zw+(w-w*vk)*zw);tm=d.offsetTop;sr=Math.floor(wx+this.com.fp(b).l*zw+(w*vk)*zw);}if(_p.mV!==5){_p.w=w;_p.h=h;}if(_p.mK)tm-=_p.mK;if(a.t!==8){if(_p.iT===4){if(vis===0||(this.fs&&((_p.cM===0&&this.cw>pw+260)||(_p.cM!==0&&this.cw>=_p.cM))||(this.bgad===0||ts<this.bgad/2))){_p.vi=true;}else{_p.vi=false;}}else{ 
if(vis===0||(this.fs&&!isNaN(h*vk)&&!isNaN(w*vk)&&(_p.mV===2||((cM===0||cM<=this.cw)
&&(tm+_p.h*vk>=0)
&&(w*vk<=this.cw)
&&(cW===0||cW>=this.cw)
//&&(sl>=0&&sr<=screen.availWidth*fzw)
&&(h*vk<=this.ch)
//&&(sb-_p.TM<=screen.availHeight)
&&(a.r===0||bm-_p.TM<=this.ch)
&&(bl===0||bl>h)
&&(!_p.lS)/*&& pd */)))){
_p.vi=true;}else{_p.vi=false;}if(_p.oO){var od=top.document.querySelector(_p.oO[0]);if(od){if(od.style.display==='block'){_p.vi=true;}else{_p.vi=false;}}}}}if(vis===0)_p.vi=true; if(a.t===8&&a.fo.length>0){_p.vi=true;if(d&&b&&df){d.style.width="100%";b.style.width="100%";df.style.width="100%";}}if(_p.mV===5||_p.mV===6){if(ts>_p.h*0.3){_p.vi=false;}else{if(this.fs)_p.vi=true;}};if(sO!==0&&ts<sO)_p.vi=false;
if(!_p.l&&a.fs&&a.af=="banner"&&a.pr&&_p.vI!==1){_p.vi=true;tm=1;dT=1;}if(a.pp.onLoad){_p.vi=true;if(a.l)a.pp.onLoad=null;}
if(_p.nW){w_=top.document.querySelector(_p.nW);if(w_)_p.d.style.width=w_.offsetWidth+"px";}
if(va==='m'){
if(a.ps==='I'){cln=this.clI;}else if(a.ps==='J'){cln=this.clJ;}else if(a.ps==='K'){cln=this.clK;}else if(a.ps==='M'){cln=this.clM;}else if(a.ps==='N'){cln=this.clN;}else if(a.ps==='O'){cln=this.clO;}if(_p.mK)eE=_p.mK;if(eE>0&&eE>=_t)_t=eE;aY=Math.floor(aY);bl=Math.floor(bl);h=Math.floor(h);_t=Math.floor(_t);ts=Math.floor(ts);if(cD&&cD.length>0){cSec=cD[0];cScr=cD[1];if(cScr===-1)cSec===0}if(cScr===-1||(bl>h&&aY-ts<=_t-eE&&aY+bl-ts>=_t+h)){if(aY+bl-ts>=_t+h)_p.pX=(aY-ts);if(sS!==0||sA>0||cD){if(!cL){hB=parseInt(_t-(aY-ts)+h);if(rH)hB=rH;if(hB+40>bl)hB=bl;if(cScr===-1) hB=a.mh;if(d_)d_.style.height=hB+'px';if(_p.mB){d_.style.marginBottom=_p.mB;_p.mB=null;}}}if(!cL&&(mC===0||cln<mC)&&((sA>0&&sA<_p.s)||(sS!==0&&ts>_p.sL+sS)||((cSec===0||(cSec>0&&_p.s>=cSec))&&(cScr===0||ts>_p.sL+cScr||cScr===-1)))){if(!blS){blS=_p.blS=hB;if(bl-blS>=h){_p.cL=true;if(a.ps==='I'){this.clI++;}else if(a.ps=== 'J'){this.clJ++;}else if(a.ps==='K'){this.clK++;}else if(a.ps==='M'){this.clM++;}else if(a.ps==='N'){this.clN++;}else if(a.ps==='O'){this.clO++;}var n=this.i+1;if(!cI)cI=a.e;if(cV||cSec!==0||cScr!==0){if(cSec!==0||cScr!==0)this.ad[n]=a;this.insert(cI);}}}}if(d){if(cScr!==-1){d.style.position='fixed';d.style.top=_t+'px';}if(_p.mV&&!_p.end&&oB&&a.r===1)this.vPos(i,d,b,df,oB,a,_p,tm,w,h,_t,dL,"fixed",cB);}}else{if(d){pO="absolute";if(_p.pO!==''&&!_p.M)pO=_p.pO;d.style.position=pO;if(aY+bl-ts<_t+h){_t=(bl-h);if(_t<0)_t=0;d.style.top=_t+'px';if(_p.pX+bl>(aY+bl-ts+h*0.1))_p.pX=null;}else{d.style.top=eE+'px';if(_p.pX<(aY-ts-h*0.1))_p.pX=null;}if(_p.mV&&!_p.end&&oB&&a.r===1)this.vPos(i,d,b,df,oB,a,_p,tm,w,h,dT,dL,pO,cB);}}}else{if(_p.aF&&((!a.pr&&a.r===1)||a.rtb.r)){var ahd=top.document.querySelector(_p.aF[0]),ahdL=0,ahdT=0;if(ahd){if(!_p.aF[2]&&!_p.aF[3]){_p.aF[2]=this.com.fp(ahd).l;_p.aF[3]=this.com.fp(ahd).t;}if((aY+bl-ts)<(_p.aF[3]+ahd.offsetHeight+ts))_p.aF[1]=0;if(_p.aF[1]>_p.s||ts<_p.aF[5]){_p.vi=true;if(_p.aF[5]>0&&ts===0){_p.aF[5]=null;}else{ahd.style.position='fixed';ahd.style.left=_p.aF[2]+'px';ahd.style.top=_p.aF[3]+'px';}}else{ahd.style.position=_p.aF[4];if(!_p.aF[5]){_p.aF[5]=ts;ahd.style.left='auto';ahd.style.top=ts+'px';}}}}if(d&&b){if(_p.tO)d.style.top = top_+'px'; 
if(_p.mV&&df){let _f=df.contentDocument||df.contentWindow;if(_f&&_f.document)_f=_f.document;if(_f){let f_=_f.getElementsByTagName("iframe");for(let F=0;F<f_.length;F++){f_[F].width=w+"px" ;f_[F].height=h+"px";}}}

if(((_p.mV&&_p.mV<5)||(_p.mV&&_p.mV==6&&!_p.vi))&&!_p.end&&oB&&a.r===1){
if(!_p.vi){_p.mRef=1;}else{_p.mRef=null;}this.vPos(i,d,b,df,oB,a,_p,tm,w,h,dT,dL,"absolute",cB);}if (pos_!== '')pO=pos_;if(_p.pO!=='')pO=_p.pO;if(_p.pA){var pA=top.document.querySelector(_p.pA);if(pA){pO=top.getComputedStyle(pA).getPropertyValue('position');if(pO==='fixed'){d.style.top=this.com.fp(pA).t+pA.offsetHeight+50+'px';}else{if(_p.tO)d.style.top=top_+'px';}}}if(!_p.M)d.style.position=pO;if(pos_==='static') {if(fL)d.style.float=fL;}}}if(cM!==0){if(cM<=this.cw){
//if(!_p.end&&d)d.style.display='block';
}else{cM_=1;if(d)d.style.display='none';}}if(cW!==0){if(cW>=this.cw&&cM_!==1){
//if(!_p.end&&d)d.style.display='block';
}else{if(d)d.style.display='none';}}if(a.p!==0 &&!_p.l){if(_p.vi){if(!_p.SN&&(!_p.sN||this.sN<_p.sN)){_p.SN=true;this.sN++;} 
if(!_p.l&&_p.SN){_p.l=true;this.msg((++this.stp), 'Fill In View Slot #: ' + i + ' Placement: ' + a.p);
if(!_p.fD){if(!_p.TN||_p.NT)Liqwid.fill(i);}else{var I=i;if(!_p.end)setTimeout(function(){Liqwid.fill(I);},_p.fD);}} else {if (((!a.pr && a.r === 1) || a.rtb.r) && d) {if (_p.vc === 0) {_p.vc = 1;if (d.className.indexOf("Liqwid_" + s_out) > -1) d.classList.remove("Liqwid_" + s_out);if(!_p.end){if(b)b.style.display='inline-block';/*display 1*/d.style.display='block';}d.classList.add("Liqwid_"+s_in);}}}}else{/*if(!pd&&d)d.style.display="none";*/if(_p.SN){_p.SN=false;this.sN--;if(this.dbg)this.msg((++this.stp),'Ads in View: ' + this.sN,'debug');
}}if(a.video!==0&&_p.player&&!this.AF){if(_p.vi||(this.fs&&a.video===2)){if(_p.player._paused&&!_p.player.paused_&&!_p.player.ended){_p.player.play();_p.player._paused=false;}}else{if(!_p.player.paused_&&!_p.player.paused_){_p.player.pause();_p.player._paused=true;}}}}
} else { 
if(((this.abord||this.lmt===1) && typeof a.pp.ignoreSkinsControl==='undefined')||((cW!==0&&cW<this.cw)||(cM!==0&&cM>this.cw))||(a.pr && a.rtb.s===0) ){if(d)d.style.display='none';if(oB)oB.style.display='none';continue;}var X=0,ns=this.page.ns,nl=this.page.nl,nr= this.page.nr,in_sq=false,wx=this.com.wp().l,wy=this.com.wp().t,k=1,_cl=0,tP=this.page.lc,lM=this.page.ll,rM=this.page.lr,tM=this.page.lt,bM=this.page.lb,ver_num=nl,fy=0,dY=0,mY=0,dy='none';if(_p.LN){LN=top.document.querySelector(_p.LN);if(LN)lM=LN.offsetWidth;}
if(a.al==="right"){lM=this.page.rl;rM=this.page.rr;tM=this.page.rt;bM=this.page.rb,ver_num=nr;tP=this.page.rc;} if(this.mob){saW=aW;saH=aH;}
let min_sq=false,x=lM,y=0,kw=0,kh=0,rB=pw;if(pN){X=this.com.fp(pN).l;}if(_p.CW&&CW){X=this.com.fp(CW).l;x=X;}if(fw>0){wx=0;wy=0;}

if(vis===0){wx=0;wy=0;saW=this.cw;} 
if(pw>0){w=((aW-pw)/ns-(rM+lM));rB=pw;if(pN)w=X-lM-20;} 
if(a.ps!=='G'&&a.ps!=='H'){
if(al==='center'){
if(a.al==='right'){x=X+((aW-pw)/ns)+pw+lM;if(pN){x=X+pw;w=aW-x; }}
if(wx+x<0){aW+=wx;
if(a.al==='left'){
x-=(wx+8);w=(w-(x+rM));
} else { 
if(aW<w){
w=(aW-(rM+lM));x=(lM-wx);
}}} else if((wx+aW)>saW){
aW=saW-wx;
if(a.al==='right'){
w=(aW-x-rM);}else{if(aW<w){w=(aW-(rM+lM));}}}}else if(al==="left") {  
if((wx+aW)>saW)	aW=saW-wx;x=(pw+lM);w=(aW-x-rM);if(wx<0){aW+=wx;if(aW<w){w=aW-(rM+lM);x=lM-wx;}} 
} else {  
if(a.al==='left')w=(aW-pw)-(rM+lM);if(wx<0){aW+=wx;x=lM-wx;w=w-x-rM;} else if((wx+aW)>saW) {aW=saW-wx;if(aW<w) {w=(aW-(rM+lM));}} 
} 
/*y=tM-eE-tH,kw=0,kh=0,rB=pw; if(y<eE)y=eE;*/
			   
if (nP) {var te,_te=nP.replace(/,/g,'|').split('|'),teH=0,_teH=0;for(let j=0;j<_te.length;j++) {_te[j]=_te[j].trim();te=top.document.querySelector(_te[j]);if(te) {teH=this.com.fp(te).t;if(tH)teH+=Math.floor(te.offsetHeight+tH);if(teH>_teH)_teH=teH;}}if(_teH>tM)tM=_teH;mY=tM;tM-=ts;if(tM>pU)pU=0;}
	
if(pU!==0){if(tM<pU)tM=pU;else tM+=pU;}
if(bH){if(!Array.isArray(bH))bH=[bH];for(var j=0;j<bH.length;j++){var fe=top.document.querySelector(bH[j]);if(fe){fy=Liqwid.com.fp(fe).t+mb;if(fy<ts+aH)bM=aH-fy+ts;this.bE=bM;break;}}} 	
if(a.fs===1){if(tM<eE&&(fy===0||fy>ts+aH))tM=eE;if(fy-ts>0&&fy-ts<a.mh&&tM===0)tM=fy-ts-a.mh;}else{if(tM<0)tM=0;}
dY=tM;h-=dY;if(aH!==saH&&(wy+aH)>saH)aH=saH-wy;h=aH-(tM+bM);if(ver_num>1){h=(aH-(tM+bM+tP))/ver_num;if(a.v>0)dY=tM+h+tP;}
} else { 
if(pw>120) {w=pw;} else{w=aW;} //?
if(al==="center") {if(pw>0){x=(aW-pw)/2;}rB=(x+w);if(wx<0){aW+=wx;rB=(x+w);if(aW<(x+w)){x=-wx;w=(rB-x);}}
if((wx+aW)>saW){aW=(saW-wx);if((x+w)>(aW)){w=aW-x;}}
}else if(al==="left"){x=0;if(wx<0){x=-wx;w+=wx;}
if((wx+aW)>saW){aW=(saW-wx);if((x+w)>(aW))w=aW-x;}
}else {  
x=(aW-pw); if(wx<0){aW+=wx;rB=(x+w);if(aW<pw){x=-wx;w=(rB-x);}}
if((wx+aW)>saW){aW=(saW-wx);if((x+w)>(aW)){w=aW-x;}}} 

h=a.mh;w=a.mw;x=Math.floor(this.cw/2-w/2);if(cT){var ctN_=top.document.querySelector(cT);if(ctN_){x=this.com.fp(ctN_).l+ctN_.offsetWidth/2-a.mw/2;}}
dY=top_;if(eE>0)dY=eE;if(a.ps==='H')dY=Math.floor(aH)-h-btm_;	
}  
this.wx=wx;this.wy=wy;if(lE){var lEn=top.document.querySelector(lE[0]), lX=0;if(lEn)lX=this.com.fp(lEn).l-a.mw;if(lX<x)x=lX;}							   
 
if(w>3000)w=3000; kw=w;
if((a.ps==="A"||a.ps==="B")&&(a.rl!==0||fw!==0)){var w_=h*(a.mw/a.mh),h_=h;if(fw>0){w_=w; h_=w_*(a.mh/a.mw);if(h_<h){h_=h;w_=h*(a.mw/a.mh);}} 
if(a.ps==='A')x=x+w-w_;w=w_;h=h_;w=Math.floor(w);h=Math.floor(h);x=Math.floor(x);if(df){
try{var df_=df.contentDocument||df.contentWindow.document;if(df_)img_=df_.getElementById("LW_img");if(img_){img_.style.height=h.toFixed()+"px";img_.style.width=w.toFixed()+"px";}
} catch(ex){}}}   

if(vis===0||(this.cw>a.mw&&((kw>=a.mw*vk&&this.ch-tM>-a.mh*vk))))min_sq=true;if(_p.hN&&(a.ps==='G'||a.ps==='H')){var hn=top.document.querySelector(_p.hN);if(hn){if(this.com.fp(hn).t-ts<aH)min_sq=false;}}	
if(_p.wP&&(a.ps==='A'||a.ps==='B')){if(min_sq){min_sq=false;if(_p.wP&&this.cw>_p.wP+a.mw*2)min_sq=true;}}kh=h;if(a.mh>h)kh=a.mh;if(a.ps==='G'||a.ps==='H'){kw=this.cw; kh=250;}if(a.c==='')this._qs(i,kw,kh);if(a.fs!==0){var _x=Math.floor(w/2-a.mw/2),_y=0;if(a.ps==='A'||a.ps==='B'||a.ps==='W'){_y=Math.floor(this.ch/2-a.mh/2)-dY;if(dY>Math.floor(this.ch/2-a.mh/2))_y=0;if(_y<0)_y=0;}_p.y=_y;if(dY+a.mh/2*vk>this.ch)min_sq=false;if(a.al==='left'){if(_x+a.mw>w)_x=w-a.mw;if(pm)_x=w-a.mw-Math.floor(pm);if(pw+a.mw*2+mM+mM>=this.cw && _x+a.mw<w-mM)_x=w-mM-a.mw;}else if(a.al==='right'){if(_x<0)_x=0;if(pm)_x=Math.floor(pm);if(pw+a.mw*2+mM>=this.cw && _x<mM)_x=mM;}_p.x=_x;} 
 
if(a.fs!==0){if((a.ps==='A'&&this.pA!==0)||(a.ps==='B'&&this.pB!==0)){if(a.mw===160){min_sq=false;}else{if(!min_sq){if(a.ps==='A')this.pA=0;if(a.ps==='B')this.pB=0;}}}if((a.ps==='A'||a.ps==='B')&&(this.pR===1||(pU!==0&&a.mh>-(bM-(fy-ts)))||(bH&&fy-teH<a.mh)))min_sq=false;}if(_p.lS||((sO!==0&&ts+top_<sO)||(hO!==0&&((hO<sO&&ts+top_<hO)||(min_sq&&hO>sO&&ts+top_>hO)))))min_sq=false;if(this.demo&&(a.ps==='G'||a.ps==='H')){var sl=Math.floor(wx+(this.cw/2-a.mw/2)*zw),sr=Math.floor(wx+(this.cw/2+a.mw/2)*zw),sb=Math.floor(wy*fzw+this.ch*zw);if((sb>screen.availHeight*fzw)||(sl < 0)||(sr>screen.availWidth*fzw))min_sq=false;}if(a.ps==='W')min_sq=true;if(min_sq){
 
if((a.ps==='A'||a.ps==='B') && a.fs!==0 && a.mw!==160){if(a.ps==='A')this.pA=1;if(a.ps==='B')this.pB=1;}
if(a.ps==='G'||a.ps==='H'){if((!this.mob&&a.mw>728)||(this.mob&&a.mw>320)){if(a.ps==='H')this.pH=1;if(a.ps==='G')this.pG=1;} if(_p.fS&&_p.fS.length>1&&a.r)this.fitTo(i,a,_p.fS);}

if(_p.cE>0){
_cl=this.clA;if(a.ps==='B'&&a.p>0&&this.Ap!==a.p)_cl=this.clB;
if((a.ps==='A'||(a.ps==='B'&&this.Ap!==a.p))&&(_p.mC===0||_cl<_p.mC)&&_p.s>=_p.cE&&a.wait===0&&ts-this.prevS>h*2){
pos_="absolute";
var _d,_b,_df,_cl,_s='l';_l=0;	
if(d) {
if(a.ps==='A') {this.clA++;_cl=this.clA;} if(a.ps==='B'&&a.p>0&&this.Ap!==a.p){this.clB++;_cl=this.clB;_s='r';_l=1;}
d.id="Liqwid_clone_"+_s+"_"+_cl;
b.id="Liqwid_clone_b_"+_s+"_"+_cl;
//df.id="Liqwid_clone_f_"+_s+"_"+_cl;
if (a.ps==='A' && a.p >0 && this.ad[1].p===a.p) {
_d=this.d("Liqwid_board1"),_b=this.d("Liqwid_box1"),_df=this.d("Liqwid_frame1");
if(_d) {
_d.id="Liqwid_clone_r_"+_cl;
_b.id="Liqwid_clone_b_r_"+_cl;
_df.id="Liqwid_clone_f_r_"+_cl;
_d.style.position="absolute";	
	}
}
if(mY>dY)dY=mY;
if(this.prevBot<dY) this.prevBot=dY;
var incr=((ts-this.prevS)/50*1/(ts-this.prevS)),ts_=aY+ts;
a.wait=1;	
this.com.move(d,_l,ts_,this.prevBot,incr,incr/200,incr/200);
if(_d)this.com.move(_d,1,ts_,this.prevBot,incr,incr/200,incr/200);
}
}
if(a.ps==='A' && a.wait===2 && a.p>0) {
this.prevBot=dY+h*this.clA;
if(_p.cI){
this.insert(_p.cI);
} else {
this.add(0);
if(this.ad[1].p===a.p)this.add(1);
}
this.prevS=ts;a.wait=0;
}	
if(a.ps==='B' && a.wait===2 && a.p>0 && this.Ap!==a.p) {
this.prevBot=dY+h*this.clB;
if(_p.cI){
_p.cI=a.e;
this.insert(cI);
} else {
this.add(1);
}
this.prevS=ts;a.wait=0;
}}

if(d&&((!a.pr&&a.r===1)||a.rtb.r)) {if(nZ){var _nZ=top.document.querySelector(nZ[0]);if(_nZ){var np=_nZ.style.position;if (np!=='absolute'&&np!=='relative'&&np!=='fixed'){if(this._(_p.nZ[2],null)){_nZ.style.position=_p.nZ[2];}else{_nZ.style.position='relative';}}_nZ.style.zIndex=nZ[1];}}if(oB){var oBl=0;if(_p.oF)oBl=Math.floor(_p.oF.replace(/\s/g,'').replace('blur(','').replace('px)',''));if(isNaN(oBl))oBl=0;oB.style.position="fixed";oB.style.width=Math.floor((aW+oBl*2)+10)+"px";oB.style.height=Math.floor((h+oBl*2)+10)+"px";oB.style.left="-"+(oBl+5)+"px";oB.style.zIndex=zi-1;oB.style.display='block';if(cB){cB.style.right=-(aW-(aW/2+a.mw/2)-20)+'px';}}if(a.ps==="W"&&a.mw>1&&a.mh>1){w=this.cw;h=this.ch;y=0;x=0;}if(a.ps==='H'){if(_p.bN){var bN=top.document.querySelector(_p.bN);if(bN)btm_=bN.offsetHeight;}d.style.bottom=btm_+"px";if(oB)oB.style.bottom=-(_p.oT+oBl*2)+'px';}else{if(_p.cE>0){if(a.ps==='A'){_cl=this.clA;_s='l';}if(a.ps==='B'&&a.p>0&&this.Ap!==a.p){_cl=this.clB;_s='r';}if(_cl>0){var da=document.getElementById("Liqwid_clone_"+_s+"_"+_cl),_dY=dY;if(da){_dY=this.com.fp(da).t+h;this.prevBot=_dY;if(_dY-ts>tM){pos_="absolute";dY=this.prevBot;}}for (var s=1;s<_cl+1;s++){if(a.ps==='A'){var cl_=document.getElementById("Liqwid_clone_l_"+s);if(cl_){cl_.style.width=w+"px";cl_.style.display="block";}}if(a.ps==='B'){cl_=document.getElementById("Liqwid_clone_r_"+s);if(cl_){cl_.style.width=w+"px";cl_.style.display="block";cl_.style.left=x+"px";}}}}}	
if(_p.pts)dY=_p.pts;d.style.top=dY+"px";a.y=dY;if(oB)oB.style.top=(dY-_p.oT)+'px';}} 
_p.vi=true;if(!d)continue;
if (_p.peel){
	d.style.right=0;
	} else {
	if(a.pp.toSide) {
	if(a.ps==='B')d.style.right=0;else if(a.ps==='A')d.style.left=0;
	}else{
	d.style.left=x+'px';
	}
	d.style.width=w+'px';
	if(!a.nf||a.ps==='W')d.style.height=h+'px';d.style.position=pos_;
	}
d.style.zIndex=zi;_p.pf=1;if (a.ps==='G'&&_p.sE!==''&&_p.sE!=='body'){if (ts>0&& ts+top_>=this.com.fp(d).t&&!_p.fp){pos_="fixed";d.style.marginTop='0px';if(cB)cB.style.display='block';
	if(oB)oB.style.display='block';}else{_p.pf=null;if(_p.mt!=='')d.style.marginTop=_p.mt;if(cB)cB.style.display='none';if(oB)oB.style.display='none';}}_p.w=w;_p.h=h;if(a.fs!==0||(a.ps==='W'&&a.mw>1&&a.mh>1)){
	this.box(i,a,_p,d,b,df,w,h);
	if(b&&bS){if(!_p.pf)bS='none';b.style.boxShadow=bS;}}else{
let uw=w;if(_p.u160)uw=160;if(b){b.style.width=w+"px";b.style.height=h+"px";b.style.display='inline-block';if(df){df.style.left="0px";df.style.top="0px";df.style.width=uw+"px";
	df.style.height=h+"px";
	}}}
if(!_p.end&&d.style.display!=='block'&&((a.video===1)||((!a.pr&&a.r===1)||a.rtb.r))){
d.style.display='block';if(oB)oB.style.display='block';
}
 
if(!_p.l&&a.p!==0){_p.l=1;this.fill(i);}}else{_p.vi=false;if(d&&(!this.demo)||a.ps==='A'||a.ps==='B'){if(d)d.style.display='none';if(oB)oB.style.display='none';}if("A"===a.ps&&(_cl=this.clA,_s="l"),"B"===a.ps&&a.p>0&&this.Ap!==a.p&&(_cl=this.clB,_s="r"),_cl>0)for(var s=1;s<_cl+1;s++){if("A"===a.ps){var cl_=document.getElementById("Liqwid_clone_l_"+s);cl_&&(cl_.style.display="none")}"B"===a.ps&&(cl_=document.getElementById("Liqwid_clone_r_"+s))&&(cl_.style.display="none")}}}}if(this.qs!==''&&this.lf===0){this.lf++;this.qs+="&tp="+this.sln+"";this.qs_=this.qs;return this.insert();} this.sln=0;this.qs='';if(this.lstn!==0)this.cn_++;setTimeout(function(){Liqwid.board();},10);},di:0,d:function(e){var d=top.document.getElementById(e);return d;},bE:0,box:function(i,a,_p,d,b,df,w_,h_){if(!a.op){d.style.width=w_+'px';if(!a.nf&&((!a.pr&&a.r===1)||a.rtb.r))d.style.height=h_+'px';if(b){b.style.width=w_+'px';if(a.ps==='H')b.style.height=h_+'px';}return;}if(a&&b&&d){var w=a.mw,h=a.mh,x= x=_p.x,y=_p.y,fw=a.pp.fitWidth||0,ut=a.pp.useTop||0,fL=_p.fL,_=this._;if(a.rl!==0){w=w_;h=h_;if(a.ps==="W"){h=this.ch*0.9;if(_p.mH&&h>_p.mH)h=_p.mH;w=h*(a.mw/a.mh);if(_p.mW&&w>_p.mW)w=_p.mW;if(w>this.cw*0.9){w=this.cw*0.9;if(_p.mW&&w>_p.mW)w=_p.mW;h=w*(a.mh/a.mw);if(_p.mH&&h>_p.mH)h=_p.mH;}}}if(ut!==0||fw!==0)y=0;if(fw!==0){w=w_;h=h_;if(a.ps==='A')x=d.offsetWidth-w;}if(fL==='right')x=d.offsetWidth-w;if(fL==='left')x=0;if(a.ps==='W'){x=w_/2-w/2;y=h_/2-h/2;if(this.mob&&_p.tO)y=_p.tO;}var bT=y+"px",bL=x+"px",uB,bR;if(_p.lP||_p.rP){if(a.ps==='A'){if(_(_p.lP[0],null))bT=_p.lP[0];if(_(_p.lP[1],null))bR=_p.lP[1];if(_(_p.lP[3],null))bL=_p.lP[3];if(_(_p.lP[2],null))uB=_p.lP[2];}
if(a.ps==='B'){if(_(_p.rP[0],null))bT=_p.rP[0];if(_(_p.rP[1],null))bR=_p.rP[1];if(_(_p.rP[3],null))bL=_p.rP[3];if(_(_p.rP[2],null))uB=_p.rP[2];}}else{if(_p.mR){bR=_p.mR;}if(_p.uB){uB=_p.uB;}}uB=null;if(a.ps==='A'||a.ps==='B'){if(parseInt(bT)<0){uB=null;bT=0;}b.style.height=h+'px';df.style.height=h+'px';if(parseInt(bT)+h>h_){uB="auto";bT=(h_-h)+"px";if(h_<h){uB=null;bT=0;
}}}if(_p.pZ!=="static")b.style.position="absolute";if(bR){b.style.right=bR;if(this.clA>0&&a.ps==='A'){for(var s=1;s<this.clA+1;s++){var _c=document.getElementById("Liqwid_clone_b_l_"+s);if(_c)_c.style.right=bR;}}}
uB='auto';if(_p.uB){uB=_p.uB;bT='auto';}
b.style.top=bT;b.style.bottom=uB;
if(!bR){b.style.left=bL;if(this.clA>0&&a.ps==='A'){for(var s=1;s<this.clA+1;s++){var _c=document.getElementById("Liqwid_clone_b_l_"+s);if(_c)_c.style.left=bL;}}}if(_p.aM!=='')b.style.margin=_p.aM;b.style.display='inline-block';
let uw=w;if(_p.u160)uw=160;b.style.width=w+"px";if(df&&!_p.peel){df.style.width=uw+"px";if(a.ps==="W")df.style.height=h+"px";if(_p.u160){if(_p.FA){df.style.position="relative";df.style.left="70px";}}else{if(_p.FA){df.style.position="static";df.style.left="0px";}}}}if(_p.cF||_p.Fc)this.cP(i,_p.cP,d,x,y,w,h);},cP:function(i,cP,d,x,y,w,h){var c=this.d("Liqwid_close"+i);if(c){var S=cP[0],T=cP[1],R=cP[2],B=cP[3],L=cP[4],D=cP[5];if(D){y=0;x=0;w=d.offsetWidth;h=d.offsetHeight;}c.style.width=S+'px';S=Math.floor(S/2);if(T)c.style.top=(y-S+T)+'px';if(R)c.style.left=((x+w)-S-R)+'px';if(B)c.style.top=((y+h)-S-B)+'px';if(L)c.style.left=(x-S+L)+'px';}},cwl:function(i){var a=this.ad[i];_p=this.pp[i];if(a){_p.end=true;if(typeof a.pp.blur!=='undefined'){var bl=top.document.querySelector(a.pp.blur);if(bl)bl.classList.remove("Liqwid_"+i+"blur");}}var d=_p.d,bg=this.d('Liqwid_bg');if(bg)bg.style.display='none';if(d){d.classList.add('Liqwid_'+i+'min');setTimeout(function(){d.style.display='none'},250);}this.lmt++;},webm:function(i){var a=this.ad[i];if(a){if(a.op){_p.s=0;this.wp.x='c';if(a.video===1&&!_p.end){try{_p.player.play();}catch(e){}}}}},stl:function(i){let L='Liqwid_',S='',a=this.ad[i],_p=this.pp[i],H=document.head||document.getElementsByTagName('head')[0];if(a&&_p&&H){let at='0.2',t0=at+'s ease 1 forwards;',t1='fi '+t0, t2='out '+t0, t5='mx '+t0, t7='mn '+t0,t3='fi {from{opacity:0;}to{opacity:1;}}',t4='out {from{opacity:1;}to{opacity:0;}}',t6='mx {from{height:1px;opacity:0;}to{height:'+_p.h+'px;opacity:1;}}',t8='mn {from{height:'+_p.h+'px;opacity:1;}to{height:1px;opacity:0;}}';L+=i; S='<style>.'+L+'blur {-webkit-filter:blur(0.5em);-moz-filter:blur(0.5em);-ms-filter:blur(0.5em);-o-filter:blur(0.5em);filter: blur(0.5em);} .'+L+'fadein {-webkit-animation:'+L+t1+'-moz-animation:'+L+t1+'-ms-animation:'+L+t1+'-o-animation:'+L+t1+'animation:'+L+t1+'} @keyframes '+L+t3+' @-moz-keyframes '+L+t3+' @-webkit-keyframes '+L+t3+' @-ms-keyframes '+L+t3+' @-o-keyframes '+L+t3+' .'+L+'fadeout {-webkit-animation:'+L+t2+'-moz-animation:'+L+t2+'-ms-animation:'+L+t2+'-o-animation:'+L+t2+'animation:'+L+t2+'} @keyframes '+L+t4+' @-moz-keyframes '+L+t4+' @-webkit-keyframes '+L+t4+' @-ms-keyframes '+L+t4+' @-o-keyframes '+L+t4+' .'+L+'max {-webkit-animation:'+L+t5+'-moz-animation:'+L+t5+'-ms-animation:'+L+t5+'-o-animation:'+L+t5+'animation:'+L+t5+'} @keyframes '+L+t6+' @-moz-keyframes '+L+t6+' @-webkit-keyframes '+L+t6+' @-ms-keyframes '+L+t6+' @-o-keyframes '+L+t6+' .'+L+'min {-webkit-animation:'+L+t7+'-moz-animation:'+L+t7+'-ms-animation:'+L+t7+'-o-animation:'+L+t7+'animation:'+L+t7+'} @keyframes '+L+t8+' @-moz-keyframes '+L+t8+' @-webkit-keyframes '+L+t8+' @-ms-keyframes '+L+t8+' @-o-keyframes '+L+t8+' .Liqwid_btn {display:none;position:relative; font-size:xx-small;left:0;top:1px;width:70px;} .Liqwid_save {cursor:pointer;zIndex:10;padding:1px 1px 1px 3px;letter-spacing:1px;color:#111;height:17px;width:100%;} .Liqwid_save:hover {background:#DDD;} .Liqwid_close {position:fixed; z-index:100;font-size:x-small;color:rgba(250,250,250,0.6); text-align:center; background:transparent;width:100px;right:20px;top:20px;cursor:pointer;} .Liqwid_close:hover {background:#000;} .Liqwid_close'+i+' {display:none;position:absolute;z-index:2;cursor:pointer;opacity:0.9;} .Liqwid_close'+i+':hover{opacity:1;} .Liqwid_close'+i+':active{opacity:0.7;}';
let s=_p.EO;																			 
if(s){
																		 
if(s.css) S+=' .Liqwid_expO'+i+' {'+s.css.replace(/,/g,';')+'}';	
																			 
}

if(a.pp.vClass)S+=' .Liqwid_vClass'+i+': {'+a.pp.vClass.replace(/,/g,';').replace(/`/g,',')+'}';S+='</style>';H.insertAdjacentHTML("beforeend",S);}},max_box_id:0,pp:[],gp:function(n){n=n.replace(/[\[]/,'\\[').replace(/[\]]/,'\\]');var x=new RegExp('[\\?&]'+n+'=([^&#]*)'),r=x.exec(top.location.search);return r===null?'':decodeURIComponent(r[1].replace(/\+/g,' '));},P:function(p,n,i){var d='',j='';d=Liqwid.gp(n),j=Liqwid.gp('board');if(j==='')j=i;if(d!==''&&(j===''||i===Math.floor(j))){d=d.replace(/@/g,'#').replace(/!/g,'%').trim();if (d.indexOf(",")>-1) {var s=d.split(','),t='';for(var q=0;q<s.length;q++){if(s[q].trim()!==''){if(t===''){t="['"+s[q].trim()+"'";}else{t+=",'"+s[q].trim()+"'";}}d=t+"]";}}if((isNaN(Math.floor(d))||d.indexOf("auto")>-1||d.indexOf("px")>-1||d.indexOf("%")>-1) &&d!=='null'&&d.indexOf("[")<0&&d.indexOf("{")<0 )	d="'"+d+"'";Liqwid.msg("Param "+i+": "+n+": "+d);eval("Liqwid.pp["+i+"]."+p+"="+d);}},_:function(a,b){var c=b;if(typeof a!=='undefined') c=a;return c;},df:function(i) {var _=this._,p=this.ad[i].pp;this.pp[i]={l:null,L:0,VP:null,j:null,fs:1,rl:0,bF:0,bid:0,vast:{mode:1,vj:{},bu:''},aU:[],F:0,VF:null,Fn:0,vF:null,vFs:null,vFv:null,YO:_(p.YTobj,null),YT:{},B:null,tF:0.2,iF:0.2,kF:0.2,r:0,R:0,Re:0,cC:0,ci:_(p.cleanIt,null),re:_(p.removeOnFill,null),dS:_(p.display,null),nI:_(p.ani,'fadein'),hD:_(p.hold,null),psb:false,pms:0,s:0,gs:0,x:0,w:300,h:600,y:0,vi:false,q:'',rfd:false,i:i,g:this.com.guid(),aB:_(p.adBreaks,null),mP:null,vM:null,NC:_(p.playControls,null),VC:_(p.vControls,null),pX:null,fD:_(p.fillDelay,0),end:false,cancel:false,contentVideo:null,cVN:_(p.contentVideo,null),vPaid:null,vO:_(p.video,null),player:null,paused:false,pR:_(p.print,false),req:{n:'',w:0,h:0},cn:0,vcn:0,vcn_:0,wCN:0,M:_(p.monetize,null),WFL:0,pC:_(p.playAfterPreroll,0),vc:0,vs:null,cf:null,ALn:0,AL:[],cN:_(p.caption,null),cards:_(p.cards,null),uI:_(p.userInit,null),vP:null,mO:_(p.moat,null),sE:_(p.qs,'body'),tE:_(p.anc,null),aF:_(p.adhesiveFor,null),cE:_(p.cloneEvery,Number(0)),fr:_(p.firstNode,0),uN:_(p.useNode,null),uF:_(p.useFrame,null),f:[],b:null,d:null,kW:_(p.keyWords,null),fSW:'',fKW:_(p.feedsKeyWord,''),fCA:_(p.feedsCategory,''),pF:_(p.pageFrequency,1),uD:_(p.useDir,null),gpt:_(p.useGPT,null),tD:_(p.withDelay,null),pA:_(p.positionSameAs,null),sH:_(p.minSpaceHeight,null),sN:_(p.screenMaxAds,null),SN:false,wT:_(p.maxTime,null),bN:_(p.bottomNode,null),pS:_(p.parentSize,null),iT:_(p.it,3),pZ:_(p.pt,'fixed'),pts:null,pf:1,fp:null,uR:_(p.useRail,0),uS:_(p.useSlot,1),oO:_(p.onOpen,null),uE:_(p.useElement,'div'),mD:_(p.mobile,0),nodeNum:_(p.nodeNum,0),lN:_(p.lastNode,0),aD:_(p.addNode,null),tP:_(p.toPage,null),aN:_(p.avoidNode,null),nB:_(p.watchNodeBelow,null),va:_(p.va,''),aA:_(p.autoAdhesive,null),rT:_(p.refreshTime,0),tR:_(p.regTime,{cnt:0, max:30,sec:3}),oA:_(p.outsideAds,0),nS:_(p.noSize,null),aC:_(p.addClass,null),AA:_(p.addAttr,null),aS:_(p.addStyle,null),aSm:_(p.addStyleM,null),oH:_(p.hoverColor,null),wS:_(p.withStyle,null),pBG:_(p.peelBG,["#999","#CCC","#FFF"]),nA:_(p.nodeAddStyle,null),bC:_(p.boxAddClass,null),bA:_(p.boxAddStyle,null),FA:_(p.frameAddStyle,null),rC:_(p.reqContent,null),eC:_(p.excContent,null),mL:_(p.minListing,null),CW:_(p.clientWidthNode,null),nR:_(p.nextNodeRotation,null),vA:_(p.verticalAlign,null),fP:_(p.framePosition,null),rS:_(p.reqSize,null),mW:_(p.maxWidth,null),mH:_(p.maxHeight,null),pO:_(p.position,''),oP:_(p.opacity,0),tO:_(p.top,null),bO:_(p.bottom,0),uB:_(p.minBottom,null),mR:_(p.minRight,null),lP:_(p.leftPos,null),rP:_(p.rightPos,null),width:_(p.width,'1px'),height:_(p.height,'1px'),bG:_(p.background,''),oB:_(p.overlayBackground,null),oF:_(p.overlayFilter,null),oT:_(p.overlayTop,0),fL:_(p.float,null),nO:_(p.nodeOverflow,null),mA:_(p.margin,null),pG:_(p.padding,''),aM:_(p.adMargin,'auto'),vI:_(p.vis,0),V:_(p.viewability,50),mU:_(p.marginBelow,null),mK:_(p.marginAbove,null),mb:_(p.mb,0),mt:_(p.mt,0),mT:_(p.marginTop,null),mB:_(p.marginBottom,null),bLN:_(p.bottomLineNode,null),bB:_(p.bottomLineBlock,null),uC:_(p.bottomLineClass,null),blh:_(p.blh,''),bl:_(p.bl,'auto'),blC:_(p.blClass,null),blS:_(p.blS,null),bla:null,tN:_(p.breakNode,null),fC:_(p.fitCreative,null),aI:_(p.anyIn,"fadein"),aO:_(p.anyOut,"fadeout"),pD:_(p.pushDownLimit,0),nn:_(p.nodeNumber,0),nC:_(p.nthChild,[]),cW:_(p.maxClientWidth,0),peel_img_src:false,wH:_(p.belowNode,null),MA:_(p.inArticle,null),CM:_(p.clipMargin,null),isVPAID:0,TV:null,CAV:_(p.videoAdNode,null),CV:_(p.videoNode,null),CVs:_(p.videoNodes,null),TN:_(p.targetNode,null),TS:_(p.addTargetStyle,null),uP:_(p.usePlaceholder,null),MH:_(p.minHeight,null),FH:_(p.frameHeight,null),pi:-1,cM:_(p.minClientWidth,0),eI:_(p.emailInput,null), 
dLk_:[["build.com","75e56a179501b18b9b16fc3c536a4a746e9c7273","home,update,bathroom,lighting,replacing,landscaping,home,garden,renovate,repair"],["birkenstock.com","b42ac1dfb953a5bf5ce8a4e5d099103ea7b4d9a6","cozy,walking,ache,walking,running,shoes"],["orthofeet.com","4706cbfd204f1aef2817d93c96b6fdcd77022235","pain,relief,feet,comfortable,pain,relief,feet,comfortable"],["venus.com","0378644309fa248d11511dfd89aaca1399a94ed6","women,trend,seasonal,sweater,sleeveless,blouse,jacket,coat,blazer,denim,loungewear,activewear,top,bottom,dresses,jumpsuits,romper,sweatshirt,hoodie,jumpsuit,jeans,pants,leggings,casual,capris,t-shirt,shirt,skirt,shoe,boot,booties,heels,sandals, wedges,casual,accessories,handbag,hat,jewelry,earring,necklace,bracelet,women,fashion,clothing,wear"],["dickies.com","50bc3dd1f1d014d2cc7400f8c392fcb2584cacf2","performance,work,extreme,handcrafted,men,mens fashion"],["skechers.com","722f06f46141775ad5420f855aa1f7f252ffddc8","school,youth,kids,playground,walking"],["eyebuydirect.com","42a033378168d46c07f09a6f6b3ab0d08950b086","blurred,vision,glasses,sight,see,vision,glasses,sight"],["crutchfield.com","e3dcd2636bc25d58f96c016643bf81161ca4ceab","listen,sound,music,audio"],["lumens.com","1b4e32a884166e5eeb92a2f50170c03a8ee77ddb","modern,dining,table,seat,furniture"],["eufylife.com","0902089bc7847857f1037b0f23d989befff5abf1","smart,vaccuum,security,clean,smart home"],["zoro.com","426df2907b5b40bba90f532e05ec0b560f63b301","hardware,safety,light,plumbing"],["calibamboo.com","d79a965cc158f066135a204e6134e23804313251","floor,deck,trees,green"],["bloomist.com","a1396f951a56542b3a10bf80a087344bf41fdcaa","nature,simple,beautiful,decor"],["maurices.com","2a33fd5f63ab4337d217f8ea2b3b25cb6278ff4d","women,womens fashion,flexible,fit"],["rue21.com","fa60666fb6199ee489bc2285d2cc0fa0d49a828b","wash,waisted,sporty,flair"],["airoasis.com","1a4d1e12aa148f2a81a332b1c6e26bdba0db2de6","pollution,going green,eco-friendly,breathing"],["bloomingdales.com","831df1848e0ea1c8e084e347abf07114c50b2831","jewelry,coat,jacket"],["wellbefore.com","44ae47d0ed26c002d38e7b32340358c315a645a6","health,preventitive,medical,medicine"],["1800flowers.com","4942be8745330515989dbbd107bff2d3db948e7d","flower,garden,gift,obituary,birthday"],
["petco.com","5b0929cd10d4b33829e8faf541bfd6b8b4ef3704","pet,animal,dog,cat"],["toryburch.com","b06e4696a869e508be88d6be4851e3aa9ab5ecf5","collection,empower,handbag,dress"],["brownells.com","0f55c5e01fe7ec2efc554befd439b29b8f3f58c7","weapon,safety,protect,survive,hunting"],["samsclub.com","1d870cc26b3ed9f25ab4009b9dc8752754e60eb7","warehouse,wholesale,homegood,save"],["ashleystewart.com","6e7a2a021edd536369e63d059ce93879eb655bf2","fashion,oversized,clothing,comfortable"],["thredup.com","e577ca5c6c57acd076151e01ebd74a556b3ef072","closet,wallet,planet,cheap,"],["katom.com","754bb2073382be788e752570844be6bfdc48ef73","restaurant,prep,kitchen,equipment,dining,food"],["reebok.com","2697f4d035e823a1bd3799c27ffaee23634c2331","athletic,active,run,game,"],["belk.com","1babf83729acbc3da297fdd52838de3377e81f59","men,children,women"],["fragrancex.com","5ad9cdbe23bbd09c5d72b1e7afab5c9f36a025ac","smell,fragrance,purfume,aroma"],["jacketsthreads.com","081cd0e7beeedb29d811b367147a5e6feea355da","bike,leather,adventure,travel,vacation"],["crocs.com","5b9196dabfe8ece69d9a9401c54c1366b4b49dd2","water,outdoor,croc"],["wayfair.com","f4d8a1b04d3a3eeaf6c20de47d6b56f3fd78620f","homegood,wholesale,overstock,furniture,decor,fashion,home,garden"],["harryanddavid.com","407cdf71be191168ef44c978d30f44f3b9401084","homegood,wholesale,overstock,furniture,decor,fashion,home,garden"],["omahasteaks.com","868234fdd7319e8726e5412d587ab7039fe23c78","steak,seafood,food,butcher,cuisine,dining,food,dinner,breakfast,lunch"],["overstock.com","02cd5a124be5a61814b6cda71fef0eefb9ffd3f9","furniture,bedding,homegood,overstock,decor,design,home,backyard,frontyard"],["liquid-iv.com","825c1e740b58a81dfc9ac2aa30c465788d63187e","hydrate,energy,immune,sleep,health,wellness,energy,preventitive"],
["macys.com","51c5ddca48d9bfb5725d454c575ecdd1b2a824df","clothing,toys,jewelry,accessories,accessories,fashion,popular,fragrance,wear,perfume"],
["midwayusa.com","13d0768932df15e92d705524b0ee35bf7de4bd3f","weapon,outdoors,gun,rifle,weapon,safety,protect,survive,self defence"],["invictastores.com","d1a23ad01de14780ea39d0515894e1e276713bec","watch,jewelry,sunglasses,accessories,accessories,fashion,clothing,wear"],["shirtspace.com","868f1bd97bfe98c7771072ddffb625ca530d8373","t-shirt,hooded,zip-up,sweatshirt,pullover,sports,athletic,apparel,popular,trending,hat,beanie,headwear,jacket,outerwear,bag,backpack,face mask,face coverings"]],dLk:_(p.deepLink,null),US:_(p.useStack,null),pLC:_(p.playListControl,null),pL:_(p.playList,null),PL:_(p.PL,null),YTP:_(p.YTplayList,null),TP:_(p.thumbBtnPos,null),cnd:_(p.condition,null),maxLoops:0,loop:-1,u160:false,peel:null,NW:_(p.notWith,null),exp:_(p.expand,null),EXP:_(p.expands,null),EO:_(p.expandable,null),stN:_(p.SendtoNews,null),kP:_(p.onEnded,null),TM:_(p.topMargin,0),sR:_(p.styleRule,null),nW:_(p.widthNode,null),eE:_(p.minTopEdge,0),cL:_(p.cloned,null),iL:_(p.infiniteLoad,null),u:top.location.href,sA:_(p.scrollableAfter,0),sS:_(p.scrollableAfterScroll,0),cV:_(p.cloneOnScroll,null),cA:_(p.dropOn,null),wC:_(p.cancelOnWord,null),cO:_(p.cancelOn,null),CO:_(p.closeOn,null),cD:_(p.cloneAfter,null),mC:_(p.clonesMaxNum,0),sL:_(p.scrollLog,0),cI:_(p.cloneID,null),ia:_(p.inventoryAnalyzer,null),fw:_(p.fitWidth,0),pm:_(p.pageMargin,null),mS:_(p.setPageMargin||null),cP:_(p.closeBtn,null),sV:_(p.skipBtn,null),ST:_(p.skipTime,null),SC:_(p.skipControl,null),pW:_(p.pageWidth,null),al:_(p.align,null),pT:_(p.passTo,null),Pt:null,pP:_(p.passToPos,-1),pU:_(p.topEdgeMargin,0),nP:_(p.topEdgeNode,null),tH:_(p.useEdgeNodeHeight,1),wN:_(p.watchNode,null),bH:_(p.bottomEdgeNode,null),lE:_(p.leftEdgeNode,null),rE:_(p.rightEdgeNode,null),wF:_(p.waitFor,null),cT:_(p.centerTo,null),sO:_(p.showOnScroll,0),sU:_(p.subScroll,null),fS:_(p.flexSize,[]),hO:_(p.hideOnScroll,0),hN:_(p.hideOnNode,null),NS:_(p.showOnNode,null),nZ:_(p.setNodeLevel,null),cF:_(p.close,null),Fc:_(p.vClose,null),ut:_(p.useTop,null),rH:_(p.railHeight,null),sP:_(p.setPage,null),sW:_(p.setPageToWidth,null),pM:_(p.pageMaxWidth,null),pN:_(p.pageNode,null),LN:_(p.leftNode,null),pWN:_(p.pageWidthNode,null),SP:_(p.nodeSetParam,null),wP:_(p.pageMinWidth,null),mM:_(p.minMargin,0),cS:_(p.colSpan,null),bS:_(p.boxShadow,null),zi:_(p.zIndex,null),save:_(p.save,null),pV:null,mV:_(p.vType,null),dR:_(p.dragable,null),Vp:_(p.vPosition,"bottom-left"),FL:_(p.floor,[]),vU:_(p.vTop,'0'),vB:_(p.vBottom,'0'),vR:_(p.vRight,'0'),vL:_(p.vLeft,'0'),vLN:_(p.vNodeX,null),vLM:_(p.vLeftMargin,0),vTN:_(p.vNodeY,null),vNB:_(p.vNodeBoard,null),vW:_(p.vWidth,"30%"),vH:_(p.vHeight,null),fN:_(p.vFitNode,null),vD:_(p.vPageNode,null),vN:null,vJ:null,vX:null,vZ:_(p.vZindex,null),Vz:_(p.pZindex,0),vS:_(p.vShadow,null),PW:_(p.playWhen,'fixed'),sM:_(p.startMuted,true),aT:_(p.aniTyme,1),aP:_(p.autoPlay,false),vTrack:[],vT:[],aL:0,tS:_(p.trackSec,0),sB:_(p.setBoard,null),PA:_(p.pageAlign,null),rN:_(p.skipNode,null),eX:_(p.excludeNode,null),cG:_(p.confiant,null),aE:_(p.aniProperty,"marginTop"),nX:_(p.afterNext,0),F:[],fn:_(p.feeds,8),fF:_(p.feedsSearch,''),fc:_(p.feedsCategory,''),fct:_(p.feedsCategories,[]),sI:_(p.adSlot,'Liqwid_feed_ad'),iS:_(p.adPlacement,null),sQ:_(p.slotsNum,0),fA:null,iN:_(p.inFeedAds,0),iNs:_(p.feedAdSlots,[]),fcd:_(p.feedsCategoryDir,[]),ft:_(p.feedsType,1),gn:_(p.feedsCells,0),gc:_(p.feedsCols,0),pg:0,dW:_(p.fdWidth,[]),dH:_(p.fdHeight,[]),tW:_(p.ftWidth,[]),qW:_(p.fqWidth,[]),fd:_(p.feedsTheme,1),fb:_(p.feedsBgColor,'transparent'),fbc:_(p.feedsBoxBgColor,'transparent'),zoomd:_(p.zoomdID,null),fT:_(p.feedsTitleStyle,null),fX:_(p.feedsTextStyle,null),dA:_(p.feedsDisplay,["#7b8c72","#fff"]),fK:_(p.feedsBoxStyle,null),fM:_(p.feedsPageBar,"bottom"),FS:_(p.feedsStyle,null),fB:_(p.feedsBtnStyle,'border-bottom:#222 solid 1px;background-color:#222;color:#ccc;'),fBH:_(p.feedsBtnHoverStyle,'background-color:#339933;'),TL:_(p.feedsLogo,["#000","#DC4141"]),FP:_(p.feedsPB,["#fff","#222","#333","#222","#ccc","#ccc","#000"]),FT:_(p.feedsTitle,"MARKETPLACE"),FST:_(p.feedsSubTitle,''),flc:_(p.feedsLogoColor,''),fO:Number(0),iC:0,rO:_(p.runOn,null),dO:_(p.dropOn,null),lS:false}
	
var P=this.P; 
P('pB','primebid',i);
P('fn','feeds',i);
P('gn','feedsCells',i);
P('iN','inFeedAds',i);
P('iNs','feedAdSlots',i);
P('tD','withDelay',i);
P('sQ','slotsNum',i);
P('wN','watchNode',i);
P('iS','adPlacement',i);
P('ft','feedsType',i);
P('fd','feedsTheme',i);
P('sB','setBoard',i);
P('hD','hold',i);
P('fD','fillDelay',i);
P('vO','video',i);
P('pR','print',i);
P('cN','caption',i);
P('uI','userInit',i);
P('sN','screenMaxAds',i);
P('sE','qs','body',i);
P('tE','anc',null,i);
P('aF','adhesiveFor',i);
P('cE','cloneEvery',i);
P('fr','firstNode',i);
P('uN','useNode',i);
P('sH','minSpaceHeight',i);
P('wT','maxTime',i);
P('bN','bottomNode',i);
P('pS','parentSize',i);
P('iT','it',i);
P('pZ','pt',i);
P('uR','useRail',i);
P('uS','useSlot',i);
P('oO','onOpen',i);
P('uE','useElement',i);
P('mD','mobile',i);
P('lN','lastNode',i);
P('aN','avoidNode',i);
P('aD','addNode',i);
P('nB','watchNodeBelow',i);
P('va','va',i);
P('aA','autoAdhesive',i);
P('rT','refreshTime',i);
P('tR','regTime',i);
P('oA','outsideAds',i);
P('nS','noSize',i);
P('aC','addClass',i);
P('aS','addStyle',i);
P('nA','nodeAddStyle',i);
P('bC','boxAddClass',i);
P('bA','boxAddStyle',i);
P('rC','reqContent',i);
P('mL','minListNumRec',i);
P('nR','nextNodeRotation',i);
P('vA','verticalAlign',i);
P('rS','reqSize',i);
P('mW','maxWidth',i);
P('pO','position',i);
P('oP','opacity',i);
P('tO','top',i);
P('bO','bottom',i);
P('uB','minBottom',i);
P('mR','minRight',i);
P('lP','leftPos',i);
P('rP','rightPos',i);
P('bG','background',i);
P('oB','overlayBackground',i);
P('oF','overlayFilter',i);
P('oT','overlayTop',i);
P('fL','float',i);
P('nO','nodeOverflow',i);
P('mA','margin',i);
P('pG','padding',i);
P('aM','adMargin',i);
P('vI','vis',0,i);
P('mU','marginBelow',i);
P('mK','marginAbove',i);
P('mb','mb',i);P('mt','mt',i);
P('bLN','bottomLineNode',i);
P('bB','bottomLineBlock',i);
P('uC','bottomLineClass',i);
P('blh','blh',i);
P('bl','bl',i);
P('blC','blClass',i);
P('blS','blS',i);
P('tN','breakNode',i);
P('fC','fitCreative',i);
P('aI','anyIn',i);
P('aO','anyOut',i);
P('pD','pushDownLimit',i);
P('nn','nodeNumber',i);
P('cW','maxClientWidth',i);
P('cM','minClientWidth',i);
P('nW','widthNode',i);
P('eE','minTopEdge',i);
P('cL','cloned',i);
P('iL','infiniteLoad',i);
P('sA','scrollableAfter',i);
P('sS','scrollableAfterScroll',i);
P('cV','cloneOnScroll',i);
P('cA','dropOn',i);
P('cO','cancelOn',i);
P('cD','cloneAfter',i);
P('mC','clonesMaxNum',i);
P('sL','scrollLog',i);
P('cI','cloneID',i);
P('ia','inventoryAnalyzer',i);
P('fw','fitWidth',i);
P('pm','pageMargin',i);
P('mS','setPageMargin',i);
P('pW','pageWidth',i);
P('PA','pageAlign',i);
P('al','align',i);
P('pT','passTo',i);
P('pP','passToPos',i);
P('pU','topEdgeMargin',i);
P('nP','topEdgeNode',i);
P('tH','useEdgeNodeHeight',i);
P('bH','bottomEdgeNode',i);
P('lE','leftEdgeNode',i);
P('rE','rightEdgeNode',i);
P('cT','centerTo',i);
P('fS','flexSize',i);
P('sO','showOnScroll',i);
P('hO','hideOnScroll',i);
P('hN','hideOnNode',i);
P('nZ','setNodeLevel',i);
P('cF','close',i);
P('Fc','vClose',i);
P('cP','closeBtn',i);
P('rH','railHeight',i);
P('ut','useTop',i);
P('sP','setPage',i);
P('sW','setPageToWidth',i);
P('pM','pageMaxWidth',i);
P('pWN','pageWidthNode',i);
P('wP','pageMinWidth',i);
P('mM','minMargin',i);
P('cS','colSpan',i);
P('zi','zIndex',i);
P('bS','boxShadow',i);
P('save','save',i);
P('mV','vType',i);
P('Vp','vPosition',i);
P('vU','vTop',i);
P('vB','vBottom',i);
P('vR','vRight',i);
P('vL','vLeft',i);
P('vW','vWidth',i);
P('vH','vHeight',i);
P('vD','vPageNode',i);
P('vZ','vZindex',i);
P('Vz','pZindex',i);
P('fN','vFitNode',i);
P('vS','vShadow',i);
P('PW','playWhen',i);
P('sM','startMuted',i);
P('aP','autoPlay',i);
P('tS','trackSec',i);
P('aT','aniTime',i);
P('aE','aniProperty',i);
	
 
if((this.pp[i].mV===5)&&this.pp[i].Vp==="bottom-left")this.pp[i].Vp="absolute";},lpb_:1,lpb:function(i,a,_p){if(!this._(Lpbjs,null)||!this._(Lpbjs.que,null)){return setTimeout(function(){Liqwid.lpb(i,a,_p);},10);}let hMP=false,vl=Liqwid.vl,gpid='',device='desktop',lF=a.rtb.cpm[_p.cn],w=a.rtb.w[_p.cn],h=a.rtb.h[_p.cn],eF=_p.tF,size='',s=[],di=Liqwid.page.di,PREBID_TIMEOUT=3000,FAILSAFE_TIMEOUT=3000;if(a.af==="video"&&_p.TV&&_p.TV.offsetHeight>h&&_p.TV.offsetWidth>w){w=_p.TV.offsetWidth;h=_p.TV.offsetHeight;}size=w+'x'+h;s=[[w,h]];if(isNaN(w)||isNaN(h)||w<100||h<50||(a.PB.length===0&&a.PBV.length===0)){Liqwid.msg('d 1');return Liqwid.demand('Primebid',false,i);}_p.primebid=1;_p.SC_=null;if(_p.vF&&_p.vF.sb)_p.vF.sb.remove();if(this.mob)device='mobile';gpid=document.domain.replace('www.','')+'/'+device+'/'+size+'/'+a.p+'#Liqwid_board'+i;if(vl&&(vl.match(/2:US/)||vl.match(/2:GB/)||vl.match(/2:CA/)||vl.match(/2:FR/)||vl.match(/2:DE/)||vl.match(/2:AU/)||vl.match(/2:DE/)||vl.match(/2:IT/)||vl.match(/2:ES/)))hMP=true;
if(!hMP&&(location.href.indexOf('akhbarak.net')>-1 ||location.href.indexOf('santabanta.com')>-1||location.href.indexOf('quizland.net')>-1))_p.tF=0.01;if(_p.FL.length===3)lF=_p.lF;if(eF<lF)eF=lF;if((w===1024||w===970||w===728)&&h===60){w=970;h=90;}if(w===970&&h===90)s=[[w,h],[728,90]];if(w===300&&h===600){if(a.ps==="A"||a.ps==="B"){s=[[w,h],[160,600]];}else{s=[[w,h],[300,250]];}}if(w===970&&h===250)s=[[w,h],[970,90],[728,90]];if(w===728&&h===250)s=[[w,h],[728,90]];if(w===640&&h===100)s=[[w,h],[640,90],[320,50]];if(w===300&&h===250&&this.mob)s=[[w,h],[320,100],[320,50]];if(w===320&&h===100&&this.mob)s=[[w,h],[320,50]];let adUnits=[],aU=false;if(_p.aU.length!==0){aU=true;adUnits=_p.aU}if(!aU&&a.PB.length!==0){adUnits.push({code:'r'+i,ortb2Imp:{ext:{gpid:gpid}},mediaTypes:{banner:{sizes:s}},floors:{currency:'USD',skipRate:10,modelVersion:'default model 1.0',schema:{fields:['mediaType']},values:{'banner':_p.tF}},bids:a.PB});}if(!aU&&a.PBV.length!==0){adUnits.push({code:'r'+i,ortb2Imp:{ext:{gpid:gpid}},mediaTypes:{video:{context:'outstream',playerSize:[w,h],mimes:['video/mp4','video/webm'],minduration: 5,maxduration: 180,protocols: [1,2,3,4,5,6],api:[1,2],linearity:1,renderer:{render: function(bid) { console.log({targetId: bid.adUnitCode,adResponse: bid.adResponse});}},}},floors:{currency:'USD',skipRate:10,modelVersion:'default model 1.0',schema:{fields:['mediaType']},values:{'video':_p.tF}},bids:a.PBV});}Lpbjs.que.push(function(){if(!aU&&_p.R===1){if(PWT&&typeof PWT.getUserIds=="function"){adUnits.forEach(function(adUnit){adUnit.bids.forEach(function(bid){bid["userId"]=PWT.getUserIds();});});}Lpbjs.removeAdUnit();Lpbjs.addAdUnits(adUnits);if(!aU)_p.aU=adUnits;if(a.PBV.length!==0)Lpbjs.setConfig({usePrebidCache:true,cache:{url:'https://prebid-server.rubiconproject.com/cache'}});Lpbjs.setConfig({priceGranularity:"auto",userSync:{iframeEnabled: true,filterSettings:{iframe:{bidders:'*',filter:'include'}}}});Liqwid.msg('ULEH: '+Liqwid.com.gC('LEH'));Liqwid.msg('ULPH: '+Liqwid.com.gC('LPH'));Lpbjs.setConfig({userSync:{userIds:[{name: 'amxId',storage:{name:'amxId',type: 'html5',expires: 14}},{name:'fabrickId',params:{apiKey:'2209298679',i4:'44.202.101.132',e:Liqwid.com.gC('LEH'),p:Liqwid.com.gC('LPH')},storage:{name:'pbjs_fabrickId',type:'cookie',expires:7}}]}});Lpbjs.setConfig({"schain":{"validation":"relaxed","config":{"ver":"1.0","complete": 1,"nodes":[{"asi":"liqwid.com","sid":"2147483259","hp":1}]}}});}Liqwid.msg('Trying Box: '+i+' ('+a.af+') Floor: $' + _p.tF + ' Min Floor: $' + lF + ' ('+a.p+')','');Liqwid.eT.t3=Date.now();Liqwid.eT.r++;Lpbjs.requestBids({timeout:3000,bidsBackHandler:function(){
var sb=0,sh={};(function(){function forEach(responses,cb){Object.keys(responses).forEach(function(adUnitCode){var response=responses[adUnitCode];response.bids.forEach(function(bid){cb(adUnitCode,bid);});});}
var winners = Lpbjs.getAllWinningBids(),output=[];forEach(Lpbjs.getBidResponses(),function(code,bid){if(bid.mediaType==="banner"&&sb<bid.cpm){sb=bid.cpm; sh={b:bid.bidder,cpm:bid.cpm,w:bid.width,h:bid.height,adId:bid.adId,ttl:bid.ttl,r:bid.netRevenue,dt:Date.now()};}

output.push({bid:bid,adunit: code,adId:bid.adId,bidder:bid.bidder,time:bid.timeToRespond,cpm:bid.cpm,msg:bid.statusMessage,rendered:!!winners.find(function(winner){return winner.adId==bid.adId;})});});forEach(Lpbjs.getNoBids&&Lpbjs.getNoBids()||{},function(code,bid){output.push({msg:"no bid",adunit:code,adId:bid.bidId,bidder:bid.bidder});});
																																				 
})();
Liqwid.sh[i]=sh;
/*if(Lpbjs.initAdserverSet)return;Lpbjs.initAdserverSet=true;*/let m=false,e={},b=JSON.parse(JSON.stringify(Lpbjs.getHighestCpmBids('r'+i)));
if(b.length===0){Liqwid.msg((++Liqwid.stp), 'Box: ' + i + ' Primebid Done in ' + (Date.now() - a.bt) + 'ms; No Bid; (' + a.p + ') ', 4); 
let def = false;
if (a.af === "video") {
_p.filled=false;
return Liqwid.video.passBack(i);
} 
return Liqwid.demand("Default", false, _p.i);
}else{Liqwid.eT.t4=Date.now()-Liqwid.eT.t3;e=b[0];a.af=e.mediaType;_p.u160=false;if((a.ps==='A'||a.ps==='B')&&a.mw===300&&e.width===160)_p.u160=true;if(a.af!=='video'&&a.ps!=='A'&&a.ps!=='B'){a.rtb.w[_p.cn]=e.width;a.rtb.h[_p.cn]=e.height;if(e.width<=a.mw)_p.w=e.width;if(e.height<=a.mh)_p.h=e.height;}Liqwid.hb[i]={b:e.bidder,cpm:e.cpm,w:e.width,h:e.height,adId:e.adId,ttl:e.ttl,r:e.netRevenue,dt:Date.now()};Liqwid.msg((++Liqwid.stp),'Box: '+i+' Primebid Done in '+(Date.now()-a.bt)+'ms; Bid: $'+e.cpm+' '+Liqwid.pn(e.bidder) + '; Floor: ' + lF+'; ('+a.p+') ','');let blc=false,bd=[];if(Liqwid.page.bd.length!==0)bd=Liqwid.page.bd;if(Liqwid.url.includes("liqwid-test"))console.log(bd);if(bd.length!==0&&e.meta){if(e.meta.advertiserDomains){for(let K=0;K<e.meta.advertiserDomains.length;K++){for(var k=0;k<bd.length;k++){if(e.meta.advertiserDomains[K].toLowerCase().includes(bd[k])){blc=true;break;}}}}if(e.meta.brandName){for(var k=0;k<bd.length;k++){if(e.meta.brandName.toLowerCase().includes(bd[k])){blc=true;break;}}}if(e.adserverTargeting&&e.adserverTargeting.hb_adomain){for(var k=0;k<bd.length;k++){if(e.adserverTargeting.hb_adomain.toLowerCase().includes(bd[k])){blc=true;break;}}}}_p.bid=0;
if(!blc&&e.cpm&&((e.mediaType==='video'&&e.cpm>0) || e.cpm>0 /*=eF*/)) {var d=_p.d,c='';a.rtb.n=e.bidder;_p.bid=e.cpm;a.pd=1;if(e.mediaType!=='video') {Liqwid.eT.s+=e.cpm;Liqwid.eT.b++;if(e.bidder==='pubmatic'){Liqwid.eT.sP+=e.cpm;Liqwid.eT.bP++;}	a.nf=null;return Liqwid.ff(i,a,_p,c);} else {if (e.vastUrl&&e.vastUrl!==""){a.video=1;var videoUrl=Lpbjs.adServers.dfp.buildVideoUrl({adUnit: adUnits,params: {iu: 'rv'+i,cust_params: {section: 'video',  channel: 'news'},output: 'vast'}});let chr='&';if(e.vastUrl.indexOf('?')===-1)chr='?';_p.vast.bu=videoUrl.replace("https://securepubads.g.doubleclick.net/gampad/ads?",'');videoUrl=e.vastUrl+chr+_p.vast.bu;_p.vast={};_p.vast.vj={};_p.rT=-1;_p.s=0;return Liqwid.video.vpaidVAST(videoUrl,a,_p);} else {if(_p.R<10) {_p.R++;a.bt=Date.now();return setTimeout(function(){Liqwid.lpb(i,a,_p);},0);} else {return Liqwid.demand('Primebid', false, i);}}}
}else{  /*e.cpm>=eF*/ 
if ( 1===1/*_p.tF > lF && a.af!=="video"*/ ) {
if(blc)Liqwid.msg((++Liqwid.stp), 'Blocked domain: ' + i + ' ' + e.meta.advertiserDomains + ' Brand: ' + e.meta.brandName + ' Target: ' + e.adserverTargeting.hb_adomain, 4);
Liqwid.msg((++Liqwid.stp), 'Box: ' + i + ' Highest Bid $' + e.cpm + ' lower than Floor $' + eF + ' - Passback to Lower Floor (' + a.p + ') ', 4);
Liqwid.msg('Next call in the waterfall (demand #3.1):  '+(_p.cn+1));
//for(let x=0; x<a.PB.length;x++){if(a.PB[x].bidder==="pubmatic"){a.PB[x].params.kadfloor=(parseFloat(a.PB[x].params.kadfloor)-_p.iF).toFixed(2);}}
//_p.tF = Math.round((_p.tF-_p.iF)*1000)/1000;
if(_p.R<10) {													
_p.R++;a.bt=Date.now();
return setTimeout(function(){Liqwid.lpb(i,a,_p);},0);
	} else {
return Liqwid.demand('Primebid', false, i);	
	}
													
 }
} 
if(!e||!e.cpm||e.cpm===0){											  
Liqwid.msg('Next call in the waterfall:  '+(_p.cn+1));
console.log('demand #3') ;
Liqwid.demand('Primebid', false, i);
}
}}});});},ub:[],wb:[],hb:[],sh:[],ka:null,ke:null,ku:0,ads:[],def:[],bidder:false,a:function(_p){let s=_p.sE,n,e,eX="",a=[],_a=[],G=[],Fd,t=(_p.uN||".").split(','),tS,uF,fD;
if (_p.uF) {
    uF = top.document.querySelector(_p.uF);
    if (uF) {
        fD = uF.contentWindow || uF.contentDocument;
        if (fD) Fd = fD.document;
    }
if (!uF||!fD) return [];	
}
for (let N = 0; N < t.length; N++) {
tS=t[N].trim();if(tS==='')continue; 

        if (_p.uF&&this.bidder&&!Fd) {
            if (window.location !== top.location) {
                Fd = document;
                document.body.style.margin = 0;
                document.body.style.padding = 0;
            } else {
                let sn = top.document.scripts;
                for (let s_ = 0; s_ < sn.length; s_++) {
                    if (sn[s_].attributes.src) {
                        let at = sn[s_].getAttribute("src");
                        let a_ = this.ad[_p.i];
                        if (a_) {
                            if (at.indexOf("&placement=" + a_.p) > -1) {
                                Fd = sn[s_].parentNode;
                                _p.sE = [];
                                s = [];
                                _a.push(Fd);
                                break;
                            }
                        }
                    }
                }
            }
        }
	if(!Fd)Fd=document;
    if(tS!==".") n = Fd.querySelector(tS); 
   if (!n) {if(_p.uN)continue;n=document;} 
    if (_p.eX) eX += ":not(" + _p.eX + ")";
    for (let y = 0; y < s.length; y++) {
        var q = [],
            qS = s[y].replace("*", y);
        if (qS !== "") {
            let wH = _p.wH,
                wHN, wE = "p";
            if (wH) {
                wHN = document.querySelector(wH[0]);
               if(wH[1]) wE = wH[1];
            }
            if (wHN) {
                let wH_ = this.com.fp(wHN).t + wHN.offsetHeight,
                    wHP = n.getElementsByTagName(wE);
                for (let j = 0; j < wHP.length; j++) {
                    let pT = this.com.fp(wHP[j]).t;
                    if (wH_ < pT) {
                        q = Array.from(wHP).slice(j, wHP.length);
                        break;
                    }
                }
            } else {
                q = n.querySelectorAll(qS + eX);
            }
        }
        if (q.length !== 0) {
            let MA = _p.MA,
                MAl;
            if (MA) {
                MAl = Math.floor(q.length * MA);
                if (!isNaN(MA)) q = Array.from(q).slice(MAl, q.length);
            }
            if (_p.cE > 0) {
                _a.push.apply(_a, q);
                if (_p.nC.length !== 0) {
                    let s_ = [];
                    for (let x = 0; x < _a.length; x++) {
                        for (let c = 0; c < _p.nC.length; c++) {
                            if (x === _p.nC[c]) {
                                s_.push(_a[x]);
                                break;
                            }
                        }
                    }
                    _a = s_;
                }
            } else {
                _a = q;
                break;
            }
        }
	
   }
}
	
a=_a;_a=[];if(_p.rN&&_p.rN.length>0){var rN=[];try{rN=_p.rN.split(',');}catch(e){rN=_p.rN;}for(let u=0;u<rN.length;u++){var r=rN[u]; for(let C=0;C<a.length;C++){let R=Array.from(top.document.querySelectorAll(r)),R_;if(a[C].parentNode)R_=R.includes(a[C].parentNode);if(!R_)R_=R.includes(a[C]);if(!R_)_a.push(a[C]);}a=_a;_a=[];}}if(a.length!==0&&_p.cards){let rt=_p.cards[0];for(let C=0;C<a.length;C++){let en=a[C].parentNode.querySelectorAll(_p.cards[1]);let rs=en.length;Liqwid.msg(' rs ' + rs + ' Math.floor(rs/rt) ' + Math.floor(rs/rt) + ' * ' + rt) ;if(Math.floor(rs/rt)!= rt)_a.push(a[C]);}a=_a;_a=[];}if(a.length!==0&&_p.rC){if(typeof _p.rC!=='object')_p.rC=[_p.rC];for(let C=0;C<a.length;C++){for(let L=0;L<_p.rC.length;L++){if(a[C].innerHTML.indexOf(_p.rC[L])>-1){_a.push(a[C]);break;}}}a=_a;_a=[];}if(a.length!==0&&_p.eC){if(typeof _p.eC!=='object')_p.eC=[_p.eC];for(let C=0;C<a.length;C++){for(let L=0;L<_p.eC.length;L++){if(a[C].innerHTML.indexOf(_p.eC[L])<0){_a.push(a[C]);break;}}}a=_a;_a=[];}if(a.length!==0&&_p.rS){for(let C=0;C<a.length;C++){if((_p.rS[0]&&a[C].offsetWidth>=_p.rS[0])||(_p.rS[1]&&a[C].offsetHeight>=_p.rS[1]&&a[C].offsetHeight<_p.rS[1]+20&&(!_p.rS[2]||a[C].offsetHeight===_p.rS[2])))_a.push(a[C]);}a=_a;}return a;},delay:false,clon:function(s,a,_p){if(this.ke)return;this.ke=1;if(this.ka)s=this.a(_p);var f=0,F,dP=false,pF=_p.pF,cn=Math.floor((s.length-_p.nn)/_p.cE)+a.k,n=_p.nn,k=a.k,o=this.ads.length;if(_p.mC>0&&cn>_p.mC)cn=_p.mC;for(let c=k;c<cn;c++){var N=n,A,el;n+=_p.cE;N=n;_p.nn=N;el=s[N];if(!el)_p.nn=N-_p.cE;dP=false;
if(a.fc!==0){F=this.pq.split(',');f=0;if(F.length>0&&F[0]!=='')for(let C=0;C<F.length;C++){if(a.p===F[C])f++;}}if(_p.cC+1>=pF||(a.fc!==0&&f+1>=a.fc)){if(this.def.length>0&& typeof this.def[0]!=="undefined")for(let D=0;D<this.def.length;D++){if(this.def[D].dP===a.p){a=this.def[D];pF=1;dP=true;break;}}}if(el){k++;if(dP){_p.cC=0;pF=this._(a.pp.pageFrequency,1)}else{_p.cC++;}this.pq+=","+a.p;A={o:o,i:i,p:a.p,af:a.af,tE:el,kn:0,k:k,x:0,n:n,d:a.d,e:a.e,r:0,j:0,end:false,s:0,cn:0,c:'',al:a.al,wait:0,pp:a.pp,pr:a.pr,v:1,fc:a.fc,ps:a.ps,op:a.op,mw:a.mw,mh:a.mh,ms:a.ms,mt:a.mt,t:a.t,ct:a.ct,cm:a.cm,rl:a.rl,pt:a.pt,cd:a.cd,ci:a.ci,cc:a.cc,tt:a.tt,g:a.g,mg:a.mg,bt:null,xl:0,bid:0,pd:null,pb:a.pb,PB:a.PB,PBV:a.PBV,FB:a.FB,fs:a.fs,btn:null,rtb:a.rtb,vi:false,video:a.video,vast:a.vast,vTr:a.vTr,_l:0,_p:a._p,sp:a.sp,_bid:a._bid,_mw:a._mw,_mh:a._mh,_t:a._t,_cc:a._cc,_ct:a.ct,_cm:a._cm,_tt:a._tt,ts:a.ts,player:null,dur:0,pa:0,pl:0,q:'',q_:''};this.ads.push(A);}}a.k=k;this.ke=null;if(this.ka){Liqwid.add(o);}},o:0,fA:null,pv:0,hT:function(t){var r=document.head.getElementsByTagName("script");for(let n=0;n<t.length;n++){var e;for(let s=0;s<r.length;s++){if(r[s].src===t[n])e=1;}if (!e)this.com.js(t[n],"head");}},setTargeting:function(){/*todayshomeowner*/let d,c='',a='',r='';if(typeof dataLayer_content!=="undefined"){d=dataLayer_content;c=d.pageCategory;a=d.pageAttributes;if(c){for(let i=0;i<c.length;i++){if(r==='')r='"'+c[i]+'"';else r+=',"'+c[i]+'"';}if(a)for(let i=0;i<a.length;i++){if(r==='')r='"'+a[i]+'"';else r+=',"'+a[i]+'"';}}
}return r;},tads:function(a){
let u=false,a_=[];if(this.url.includes("liqwid-test"))u=true; if(u){
	console.log(Liqwid.page, a);
	//console.log(tdYoutubePlayers.players[0].tdYtPlayer);
	//tdYoutubePlayers.players[0].playVideo('ufYRA60v5MY');
	} this.msg('URL ID: '+this.page.u);
for(let i=0;i<a.length;i++){let _p=a[i].pp;if(_p){if(_p.notWith){let l=_p.notWith;if(l&&l.some(r=> this.pList.includes(r)))a.splice(i,1);}else{if(_p.clone){for(let c=0;c<_p.clone;c++)a_.push(a[i]);}}}}if(a_.length>0)a=a_.concat(a);this.ads=a;this.add(Liqwid.o);},add:function(o,I){if(!I)this.i=o;var a,i=0,k=0,F=[],f=0,dP=false,wF,wN,NW,rn=0,T=this.ads.length,_=this._;
/*if(T===0||(typeof this.page.d!=="undefined"&&this.url.indexOf(this.page.d)<0)||this.url.includes("privacy-policy")) ){this.ka=null;return;}*/
a=this.ads[o];if(!a){this.ka=null;return;} 
let Kc=[],Kd,Ka=[],Kw=_(a.pp.keyWords,null),Ek,Ik,tx,K=[];if(Kw){if (typeof dataLayer_content !== "undefined") {
Kd=dataLayer_content;Kc=Kd.pageCategory;Ka=Kd.pageAttributes;if(Kc&&Ka&&Ka.length>0)Kc=Kc.concat(Ka);K=Kw.split(",");if(Kc){if(this.url.includes("liqwid-"))console.log(Kc);for(let k=0;k<Kc.length;k++){if(K.includes(Kc[k].trim().toLowerCase())){Ik=1;this.msg((++this.stp),'Target Key "'+Kc[k]+'": ' + a.p + ' (' + i + ')', 3);}if(K.includes('(' + Kc[k].trim().toLowerCase() + ')')){this.msg((++this.stp), 'Un-Target Key "'+Kc[k]+'": ' + a.p + ' (' + i + ')', 4);Ek=1;break;}}if(Ek){this.msg((++this.stp),'Canceled -- Key Targeting: ' + a.p + ' (' + i + ')', 4);if(o+1<T){return this.add(o+1);}else{return;}}}}}if(_(a.fc,0)!==0){F=this.pq.split(',');for(let C=0;C<F.length;C++){if(a.p===F[C])f++;}if(f>=a.fc){if(!a.pr){if(this.def.length>0&& typeof this.def[0]!=="undefined")for(let D=0;D<this.def.length;D++){if(this.def[D].dP===a.p){a=this.def[D];this.pq+=","+a.p;dP=true;break;}}if(!dP){if(o+1<T){return this.add(o+1);}else{return;}}}else{if(o+1<T){return this.add(o+1);}else{if(!this.E)this.board(1);return;}}}};
let cO=_(a.pp.cancelIf,null);if(cO&&cO==="opted-in"&&Liqwid.com.gC('LEH')!==''){if(o+1<T){return this.add(o+1);}else{return;}}i=o;if(I!==null&&Number(I)>-1)i=I;this.ad[i]=a;this.wb[i]=null;
let del=_(a.pp.delay,null);if(del&&!this.delay){this.delay=1;if(del===2000)del=4000;return setTimeout(function(){Liqwid.add(o,i);},del);}wF=_(a.pp.waitFor,null);if(wF){for(let W=0; W<wF.length;W++){if(wF[W].indexOf('anchor:')>-1){if(top.location.href.indexOf(wF[W].replace('anchor:','').replace(/\s /g,''))>-1){wN=1;}else{wN=null;break;}}else{if(top.document.querySelector(wF[W])){wN=1;}else{wN=null;break;}}}if(!wN){return setTimeout(function(){Liqwid.add(o,i);},10);}}this.o=T;var _d,d_,tE,S=[],_S=[],tn='',tB,cTN='',B='',cen=0,cen_=0,row,cell,zi=0,L='Liqwid_',id_=L+'board'+i;this.df(i);var _p=this.pp[i],sE=_p.sE,iT=_p.iT,r_=_p.uR,s_=_p.uS,mob=_p.mD,mL=_p.mL,nn=_p.nn,pos_=_p.pZ,lN=_p.lN,fN=_p.fr,cE=_p.cE,op=_p.oP,tp=Math.floor(_p.tO),an=_p.aN,va=_p.va,fL=_p.fL,rS=_p.rS,W=_p.width,H=_p.height,mW=_p.mW,ots=_p.oA,mA=_p.mA,cM=_p.cM;_p.mw=a.mw;_p.mh=a.mh;_p.pr=a.pr;if(a.ps==='Q')_p.peel=1;if(this.mob&&_p.aSm)_p.aS=_p.aSm;_p.PBV=a.PBV.length;if(_p.sR){let sT="",St=top.document.createElement('style');St.type="text/css";for(let r=0;r<_p.sR.length;r++) sT+=_p.sR[r].replace(/,/g,";").replace(/media/,"@media");St.innerText=sT;top.document.head.appendChild(St);}if(_p.dLk){setTimeout(function(){Liqwid.dLk(_p,a.p);},0);if(o+1<T){return this.add(o+1);}else{return;}}if(a.ps==='P'&&a.cc!==''){_p.YTP=JSON.parse(a.cc.replace(/\n/g,'').replace(/%27/g,"'").replace(/%28/g,"'"));a.cc='';}if(_p.YTP)_p.PL=[{type:"YT"}];if(_p.PL&&_p.PL.length>0){a.PL=_p.PL;a.af="video";if(!_p.pLC){a.af="playlist";_p.cancel=1;}}if(_p.pLC)a.af="playlist";this.msg(a.af);if(_p.TN) {let nt;for(let k=0;k<_p.TN.length;k++){_p.NT=top.document.querySelector(_p.TN[k]);if(_p.rC){let NT=top.document.querySelectorAll(_p.TN[k]);for(let C=0;C<NT.length;C++){for(let L=0;L<_p.rC.length;L++){if(NT[C].innerHTML.indexOf(_p.rC[L])>-1){_p.NT=NT[C];nt=_p.NT;break;}}if(nt)break;}}else{_p.NT=top.document.querySelector(_p.TN[k]);}if(_p.NT){nt=_p.NT;if(_p.uP){let uP=document.createElement("IMG"),_uP=_p.uP[0];uP.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVQI12NgYAAAAAMAASDVlMcAAAAASUVORK5CYII=";if(_p.uP[1])uP.style.cssText=_p.uP[1].replace(/,/g,';');try{if(_uP==="append"){nt.append(uP);}else if(_uP==="prepend"){nt.prepend(uP);}else if(_uP==="insertBefore"){nt.parentNode.insertBefore(uP,nt);}else if(_uP==="insertAfter"){nt.parentNode.insertBefore(uP,nt.nextSibling);}}catch(e){console.log(e);this.msg((++this.stp),'No Target Found for Placeholder: '+a.p+' ('+i+')',4);/* */}_p.uP=uP;}if(_p.TS)_p.NT.style.cssText+=';'+_p.TS.replace(/,/g,';');break;}}}if(_p.CVs){for(let k=0;k<_p.CVs.length;k++){let V_=top.document.querySelector(_p.CVs[k]);if(V_){_p.CV=_p.CVs[k];break;}}}if(_p.CV){_p.TV=top.document.querySelector(_p.CV);if(!_p.TV){if(o+1<T){return this.add(o+1);}else{return;}}}if(a.af=="banner")_p.display=1;if(_p.cD && typeof _p.cD==="number"){var sec=_p.cD;_p.cD=[sec,0];}if(_p.zoomd)this.com.js('//search.zoomd.com/zoomd/SearchUi/Script?clientId='+_p.zoomd,'head');if(sE[0]==='feeds'&&!this.fA){this.fA=o;return;}_p.w=a.mw;_p.h=a.mh;_p.l=false;a.l=false;a.r=false;if(_p.tP)B=top.document.body.innerHTML;if(_p.uD){var u_=_p.uD.split(","),_u;for(let u=0;u<u_.length;u++){if(this.url.indexOf(u_[u].trim())>-1)_u=1;}if(!_u)_p.end=1;}if(_p.rO||_p.dO)this.lsn(i,_p.rO,_p.dO);if(_p.aD){for(let N=0;N<_p.aD.length;N++){let aD=top.document.createElement(_(_p.aD[N].elem,"div")),eN=top.document.querySelector(_(_p.aD[N].node,"body")),nT=_(_p.aD[N].insert,3),gS=_(_p.aD[N].cssClass,null),eS=_(_p.aD[N].cssStyle,null),eM=_(_p.aD[N].content,null);aD.id=_(_p.aD[N].id,'Liqwid_'+Date.now());if(gS)aD.classList.add(gS);if(eS)aD.style.cssText=eS.replace(/,/g,';');if(eM)aD.innerHTML=eM;if(nT===1){eN.insertBefore(aD,eN.firstChild);}else if(nT===2){eN.parentNode.insertBefore(aD,eN.nextSibling);}else if(nT===3){eN.appendChild(aD);}else{eN.parentNode.insertBefore(aD,eN);}}}if(a.sl&&a.sl.length>0){a.af="video";a.video=1;}if(a.video!==0){a.video=1;if(_p.mV===2||_p.mV===5||_p.mV===6){sE='body';iT=3;}_p.vT[i]=0;if(a.vTr)_p.vTrack=a.vTr;}if(this.bidder)iT=1;if(_p.aA){_p.va='m';va='m';}if(_p.uC)_p.blC=_p.uC;if(_p.bLN)_p.bl=_p.bLN;if(_p.bB)_p.blh=_p.bB;if(_p.mU)_p.mb=_p.mU;if(_p.mK)_p.mt=_p.mK;if((this.mob && mob===-1)||(mob>0&&!this.mob)/*||(cM!==0&&this.cw<=cM)*/||(ots!==0&&(a.ps==='A'||a.ps==='B'))){if(o+1<T){return this.add(o+1);}else{if(!this.E)this.board(1);return;}}if(an&&top.document.querySelector(an))return;tE=a.tE;if(!tE&&sE!==''){S=this.a(_p)||[];rn=S.length;if(rn===0){this.msg((++this.stp),'No Target Found for: '+a.p+' ('+i+')',4);if(o+1<T){return this.add(o+1);}else{if(!this.E)this.board(1);return;}}tE=S[nn];if(!tE)return;tn=tE.tagName;if(tn==='TABLE'&&_p.uE!='TR')tn='DIV';if(tn==='TABLE')tB=tE;if(tn==='TR'){tB=tE.parentNode;tn=tB.tagName;}if(tn==='TBODY'){tB=tE.parentNode.parentNode;tn='TABLE';}if(tn==='TABLE'){rn=tB.rows.length;if(rn===0){if(o+1<T){return this.add(o+1);}else{if(!this.E)this.board(1);return;}}S=tB.rows;}a.kn=rn;if(lN!==0)nn=rn-1;if(cE>0){nn=cE;if(fN>-1)nn=fN;}tE=S[nn];if(!a.op&&!a.tE&&cE>0){if(tE)_p.nn=nn;if(rn>cE&&(!mL||rn>= mL)&&!this.ka)this.clon(S,a,_p);}}if(tn==='TABLE'||(a.tE&&a.tE.tagName==='TR')){if(a.n>-1)nn=a.n;if(a.tE)tB=a.tE.parentNode.parentNode;row=tB.insertRow(nn);row.id="Liqwid_row"+i;row.style.visibility='hidden';if(!_p.cS){for(let l=0;l<tB.rows.length;l++){cen_=tB.rows[l].cells.length;if(cen_>cen)cen=cen_;if(l>100)break;}_p.cS=cen;}cell=row.insertCell(0);cell.colSpan=_p.cS;tE=row.cells[0];}if(_p.gpt)a.tE=tE;var b=top.document.body,el_=this.d(id_);el=el_||top.document.createElement(_p.uE);el.id=id_;if(!el||_p.cancel){if(o+1<T){return this.add(o+1);}else{if(!this.E)this.board(1);return;}}_p.d=el; 
if(iT!==4){if(_p.mV!==2&&_p.mV!==5&&_p.mV!==6){if(va==='m'&&s_!== 0){d_= this.d('Liqwid_slot' + i);if(!d_){d_=top.document.createElement("div");d_.id='Liqwid_slot'+i;d_.style.position = pos_; if(_p.tO)d_.style.top=tp+'px';if(mA)d_.style.margin=mA;d_.appendChild(el);}el=d_;if(!el){if(o+1<T){return this.add(o+1);}else{if(!this.E)this.board(1);return;}}if(r_){_d = this.d('Liqwid_rail'+i);if(_p.cN&&!_p.sB)_p.sB=1;if(!_d){_d=top.document.createElement("div");_d.id='Liqwid_rail'+i;_d.style.position='relative';tE.appendChild(_d);_d.appendChild(el);el=_d;}}}}if(el.id==='Liqwid_board'+i){if(_p.CO&&_p.CO==="bg-click")el.addEventListener('click',function(){Liqwid.close(i);},false);if(_p.sB)this.sD(i,el,null,a,_p);/*el.style.overflow='hidden';*/}if(!_d){try{if(iT===1){tE.insertBefore(el,tE.firstChild);}else if(iT===2){if(_p.nX===1){if(tE.nextSibling){tE.nextSibling.after(el);}else{tE.after(el);}}else{tE.parentNode.insertBefore(el,tE.nextSibling);}}else if(iT===3){tE.appendChild(el);}else{tE.parentNode.insertBefore(el,tE);}a.tE=tE;if(!tE.tagName.match(/LIQWID-/)&&a.PL&&a.PL.length>0){a.sl=a.PL[0].snippet.src.replace(/&amp;/g,'&');a.af="video";a.video=1;}if(tE&&a.PL&&a.PL.length!==0 &&tE.tagName.match(/LIQWID-/)){let v_=tE.getAttribute("video");if(v_&&v_!=='') {for(let v=0;v<a.PL.length;v++){if(a.PL[v].v==v_){a.tE.v=v_;a.sl=a.PL[v].u;_p.vcn=v;let kv='',video_id=a.PL[v].oid;	if(_p.cp)kv=_p.cp;if (a.PL[v]&&a.PL[v].k&&a.PL[v].k.length>0)kv=a.PL[v].k;if(kv&&kv.length>0){Liqwid.KV=kv;Liqwid.msg('Cust Params (video: '+video_id+')',kv.replace(/&/g,', '),4);}break;}}}}}catch (e){this.msg((++this.stp),'"LIQWID-" element error: '+a.p+' ('+i+')',4); /* */}}else{if(_d!==el)_d.appendChild(el);}}else{if(tE){if(_p.nA){if(_p.nA[0][1].match(/margin-top:/))this.bgad=parseInt(_p.nA[0][1].replace("margin-top:","").replace(" ",""));}if(((_p.cM===0&&this.bgad>0)||this.cw>=_p.cM)&&this.fs){tE.style.backgroundImage="url('"+ a.cc +"')";tE.style.backgroundRepeat="no-repeat";tE.style.backgroundAttachment="fixed";if(a.ct!=''&&!_p.peel){var s=top.document.createElement('style');document.head.appendChild(s);s.innerHTML=sE[0]+" {cursor:pointer;} "+ sE[0]+" > * {cursor:default;}";if(_p.tP){cTN="<style>"+sE[0]+" > * {cursor:default;}</style><div id='Liqwid_bg_click' style='position:fixed;z-index:1;width:"+this.cw+"px;height:"+this.ch+"px;top:0;left:0;cursor:pointer;' onclick='Liqwid.click("+i+");'></div>";}else{tE.addEventListener('click',function(e){if (e.stopPropagation){e.stopPropagation();}else{e.cancelBubble=true;}if(e.target===this){Liqwid.click(i);}});}}el=tE;} 
if(_p.tP){el.innerHTML=cTN+"<div id='Liqwid_page' style='position:relative;z-index:2;cursor:default;"+_p.tP.replace(/,/g,';')+"'>"+B+"</div>";history.scrollRestoration="manual";top.scrollBy({top:0,left:0,behavior:'smooth'});}}}
el.setAttribute("data-placement",a.p);if(_p.wS)el.style.cssText+=';'+_p.wS.replace(/,/g,';').replace(/~/g,',');
if(!_p.al && iT!==4 && a.ps!=='A' && a.ps!=='B')_p.al='center';if(_p.al)el.setAttribute("align",_p.al);if(_p.AA&&_p.AA.length>0){for(let n=0;n<_p.AA.length; n++)el.setAttribute(_p.AA[n][0],_p.AA[n][1]);}if(iT===4&&tE&&this.cw>=_p.cM&&this.fs)this.ss(i);
if(a.ps==='A'||a.ps==='B'||a.ps==='G'||a.ps==='H'||a.ps==='W'){el.style.display='none';}if(_p.FH)_p.h=_p.FH;if(_p.EXP&&!_p.EO){let opn=null; if(_p.EXP.length>3)opn=_p.EXP[3];_p.EO={EXP:1,open:opn,dir:_p.EXP[0],dis:0,w:"100%",h:_p.EXP[1],css:"transition: height 0.3s ease-out"}}this.stl(i);if(!a.op){if(_p.nO){var pn;if(_p.nO[0]&&_p.nO[0]==='parent'){pn=el.parentNode;}else{if(_p.nO[0])pn=top.document.querySelector(_p.nO[0]);}if(pn&&_p.nO[1])pn.style.overflow=_p.nO[1];}}
if(_p.FL.length===3){_p.lF=_p.FL[1];_p.tF=_p.FL[0];_p.kF=_p.tF;_p.iF=_p.FL[2];}if(_p.ci&&!_p.tD&&_p.d)this.DC(_p.ci,_p.d);
//console.log(JSON.stringify(a)) ;
if(this.url.match(/liqwid-demo/)){let nd=top.document.createElement("DIV"),bu='https://liqwid.com/images/bubble_v.png',tp="80";nd.id="Liqwid_sb"+i;if(_p.iT===4||a.ps=="A"||a.ps=="B"||a.ps=="G"||a.ps=="H"){nd.style.position="fixed";}else{nd.style.position="absolute";}nd.style.display="none";nd.style.width="300px";nd.style.height="240px";nd.style.zIndex=this.com.z()+110000;if(a.ps==="H"){bu='https://liqwid.com/images/bubble.png';tp="40";}nd.style.backgroundImage="url('"+bu+"')"; nd.style.backgroundRepeat="no-repeat";nd.innerHTML="<div id='Liqwid_demo"+i+"' style='position:absolute;left:34px;top:"+tp+"px;font-family:Rajdhani,Verdana,sans-serif;font-size:16px;letter-spacing:0.07em;white-space:nowrap;'></div>";top.document.body.appendChild(nd);this.dM(i);}T=this.ads.length;if(o+1<T){this.add(o+1);}else{this.ka=null;if(!this.E)this.board(1);}},ap:0,fill_:0,c1:"<!DOCTYPE html><html> <head><title>LIQWID Ad</title>",c2:"<style type='text/css'>html {overflow:hidden;font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;} body {margin:0px;padding:0;background-color:transparent;height:100%;} img {border:0;width:100%;}</style><scr"+"ipt>var SLOT_MACRO,Liqwid={passBack:function(){top.Liqwid.demand(%27Passback%27,false,LIQWID_SLOT); console.log(%27Passback #LIQWID_SLOT%27);}};</scr"+"ipt></head><body>",c3:"</body></html>",vC:function(_p,a,c){c=c.replace(/%27/g,"'").replace(/&amp;/g,"&").replace("[WIDTH]",_p.w.toFixed()).replace("[HEIGHT]",_p.h.toFixed()).replace("[DO_NOT_TRACK]",'0').replace("[GDPR]",'0').replace("[GDPRCS]",'').replace("[IP_ADDRESS]",'44.202.101.132').replace("[USER_AGENT]",'Mozilla%2f5.0+(X11%3b+Linux+x86_64)+AppleWebKit%2f537.36+(KHTML%2c+like+Gecko)+Chrome%2f101.0.4951.64+Safari%2f537.36').replace("[PAGEURL]",encodeURIComponent(this.url)).replace("[DOMAIN]",encodeURIComponent(document.domain)).replace("[ENCODED_URL]",encodeURIComponent(this.url)).replace("[CONTENT_ID]",a.p.toFixed()).replace("[CONTENT_TITLE]",'').replace("[CONTENT_LENGTH]",'').replace("[CONTENT_URL]",encodeURIComponent(this.url)).replace("[KEYWORDS]",encodeURIComponent(this.keywords)).replace("[CACHEBUSTER]",Date.now());return c;},
lsn:function(i,p,s){top.addEventListener(p,function(e){Liqwid.pp[i].lS=true;},false);top.addEventListener(s,function(e){Liqwid.pp[i].lS=false;},false);},
fill:function(i){let a=this.ad[i],_p=this.pp[i];if(!_p)return setTimeout(function(){Liqwid.fill(i);},100);let d=_p.d,c="";if(a.af==="playlist")return; 
if((_p.gpt&&_p.gpt>_p.gs)||(_p.tD&&_p.tD>_p.gs)) return setTimeout(function(){Liqwid.fill(i);},1000);
if(a&&_p&&d){if((!_p.M&&!_p.vi)||a.p===0){_p.l=false;return;}this.msg((++this.stp), 'Fill Box: '+i+' ('+a.p+')');for(let n=0;n<this.i+1;n++){let a_=this.ad[n];if(a_){if(a_.ps==='A'){this.ap=a_.p;break;}}}
if(a.ps==='F') {let W=this.com.gC('LFSW');if(W&&W!=='')_p.fKW=W;return this.reqFds(i);}
if (_p.mO) this.c1 += '<scr' + 'ipt src="https://z.moatads.com/' + _p.mO + '/moatad.js#moatClientLevel1=' + a.cd + '&moatClientLevel2=' + a.p + '&moatClientLevel3=' + a.pt + '&moatClientLevel4=' + a.ci + '"></scr' + 'ipt>';
if (a.pr) { 
Liqwid.msg('d 4');
this.demand(a.rtb.m[0],1,i);
} else {
if (a.video!==0&&!_p.YTP) {	
c=this.vC(_p,a,a.cc); 
if(!_p.NS&&(a.sl.length>0||_p.M)){_p.vs=1;return Liqwid.video.init(a,_p);
	}
} else { 
if(a.t!==4||a.cc.indexOf("-imglink")>-1)c=this.c1+this.c2+a.cc+this.c3;
if(a.nf&&!_p.peel)c=a.cc;
	// console.log('ff 0');
	Liqwid.ff(i,a,_p,c);
	//setTimeout(function(){Liqwid.ff(i,a,_p,c);},0);
} 
}
if(this.fill_!==1)this.fill_=1;
}},rtb_call:function(i,a,_p){ 
var d=_p.d,n=_p.cn; 
if (typeof a.rtb.c[n] === 'undefined') return;
_p.j = null;
var N=a.rtb.n; if((a.ps!=='A'&&a.ps!=='B')&&(N==='B'||N==='M'))a.pd=1;
if (a.rtb.w[n] !== 0) a.mw = a.rtb.w[n]; 
if (a.rtb.h[n] !== 0) a.mh = a.rtb.h[n];
this.rtb_flag = true;
if (N !== 'X') {
_p.req.n = N;
_p.req.w = a.mw;
_p.req.h = a.mh;
var c = "<!-- Call #" + n + "-" + N + " -->";
if (N!=='L'&&N!=='V'&&N!=='N'&&N!=='M'&&N!=='A'&&N!=='K'&&N!=='B'&&N!=='G'&&N!=='D'&&N!=='F'&&N!=='!') {
c+="<scr"+"ipt>var n=0,d=(function(){var _m=window.MutationObserver||window.WebKitMutationObserver,e=window.addEventListener; return function(obj,callback){if(_m){var obs=new _m(function(m,o){if( m[0].addedNodes.length||m[0].removedNodes.length)callback();});obs.observe(obj,{childList:true,subtree:true});} else if(e){obj.addEventListener('DOMNodeInserted',callback,false);obj.addEventListener('DOMNodeRemoved',callback,false);}}})();d(document,function(){top.Liqwid.check_ad(" + i + "," + n + ",++n);});</scr"+"ipt>";
 }
} 
		
if (a.af==="video" || (a.rtb.c[n].length>5 && a.rtb.c[n].substring(0,5)==='VIDEO')) {
_p.vPaid=1;
let vtp=0;
if(a.rtb.c[n].length>5 && a.rtb.c[n].substring(0,5)==='VIDEO')a.rtb.c[n] = a.rtb.c[n].substring(5,a.rtb.c[n].length);

if(a.rtb.c[n].length>4 && (a.rtb.c[n].substring(0,4).toLowerCase()==='http' || a.rtb.c[n].substring(0,2).toLowerCase()==='//' || a.rtb.c[n].indexOf('&prebid=1') >-1|| a.rtb.c[n].indexOf('&primebid=1') >-1)) vtp=1;

if (vtp===0) { 
	
let xmlTxt = this.com.rnl(a.rtb.c[n],i,a.p,4);
	
let xmlDoc = Liqwid.video.parseXml(xmlTxt) ;
let xmlToJson = Liqwid.video.xmlToJson(xmlDoc) ;
var vastJson = Liqwid.video.setVast(xmlToJson,a,_p) ;
	
if(vastJson &&((vastJson.src && vastJson.src!=="")||(vastJson.mf && vastJson.mf.src!=="")))  { 
a.video=1; a.pd=1; _p.vast.mode=1;
let ct; if(a.rtb.vast[_p.cn])ct=a.rtb.vast[_p.cn].ct;if(ct)a.ct=ct;a.rtb.vast[n]=vastJson; Liqwid.msg("init 1" ); 
return Liqwid.video.init(a,_p);

    } else {Liqwid.msg('d 5');
return Liqwid.demand("Default",false,i);
	}
} else if (vtp===1 && a.rtb.c[n]!=='') {
a.rtb.vast[n]={};
let u=a.rtb.c[n].replace("[video_duration]","180").replace("[page_url]",encodeURIComponent(this.url)).replace("[width]",a.mw.toFixed()).replace("[height]",a.mh.toFixed()).replace("[cb]",Date.now()); 
u=this.vC(_p,a,u);
if (u.match(/liqwid-d.openx./)) {
u+="&url="+encodeURIComponent(this.url)+"&cb="+Date.now()+"&ua="+encodeURIComponent(navigator.userAgent)+"&vht="+a.mh+"&vwd="+a.mw;
}
_p.AL=u.split('|');_p.ALn=0; 
_p.vast={};_p.vast.vj={};
	if (_p.AL[0].indexOf("&prebid=1")>-1 || _p.AL[0].indexOf("&primebid=1")>-1) {
	_p.R++;a.bt=Date.now();
	return Liqwid.lpb(_p.i,a,_p);
}
this.video.vpaidVAST(_p.AL[0],a,_p,a.rtb.m[_p.cn]);
}
}
		
if (N==='V'){
_p.w=d.offsetWidth;	_p.h=Math.floor(_p.w*(a.mh/a.mw));
var v=a.rtb.c[n].split('|'),v_="";for(var o=0;o<v.length;o++){ 
if (v[o]!=='') {	
var V=this.vC(_p,a,v[o].trim());
if (v_=="") {v_="'"+V+"'";}else{v_+=",'"+V+"'";}}}a.video=1;c=this.mc.replace(/LIQWID_video_VAST/,"["+v_+"]");}else{
var T=a.rtb.c[n].split('@'),C=T[0];if(T.length>1)c+=T[1];
a.video=0;if(N==='O')C='<div style="width:100%" align="center">'+C+'</div>';if(N==='N'||a.nf)c=C;else c=this.c1+c+this.c2+C+this.c3; 
}if (N==='L'){a.t=a._t;a.ct=a._ct;a.cm=a._cm;a.tt=a._tt;c= this.c1+this.c2+a._cc+this.c3;}var _n=this.pn(N); this.msg((++this.stp), 'Box ' + i + ': Call '+(_p.cn+1)+' Demand Tag Request: '+_n+'; Size: '+(a.rtb.w[_p.cn]+'x'+a.rtb.h[_p.cn])+' ('+a.p+')');if(a.af!=='video'&&(!a.pr||N ==='X'||N==='L'||N==='B'||N==='G'||N==='D'||N==='!'||N==='K'||N==='O'||N==='M'||N==='F'))Liqwid.ff(i,a,_p,c);},Fpg:function(_p){var c='',fp=1,n=0,fn=_p.fR,fr=_p.ftR,cp=1,bN=_p.FP[0];if(fr<bN) return '';if(_p.pg>0)c+='<span class="b0" onclick="pg--;req();">PREVIOUS</span>';if(fr>0&&fn>0)fp=Math.floor(fr/fn);cp=Math.floor(_p.pg/bN).toFixed();for(var r=0;r<bN;r++){let pn=cp*bN+r;if(pn<fp){c+='<span class="';if(pn===_p.pg){c+='b2';}else{c+='b0';}c+='"onclick="pg='+pn+';req();">'+(parseInt(pn)+1)+'</span>';}}if(fr>bN)c+='<span class="b0" onclick="pg++;req();">NEXT</span>';return c;},clipped:function(e){if(!e.origin.match(/liqwid.net/))return;var c=e.data;if(c&&c.match(/clipped=/)){c=c.replace("clipped=","");Liqwid.cl=c;if(Liqwid.cl_!=1){Liqwid.cl_=1;Liqwid.rF();}}},fStr(j){j.title=j.title.replace(/\"/g,'~'); if(j.description)j.description=j.description.replace(/\"/g,'~');if(j.brand && j.brand.name)j.brand.name=j.brand.name.replace(/\"/g,'~');return JSON.stringify(j).replace(/\"/g,'^').replace(/\'/g,'@');},fRem:function(i,f){let c=window.localStorage.getItem('clipped'),cs=[];if(c&&c!=='')cs=JSON.parse(c);let fj=JSON.parse(f.replace(/\~/g,'\\"').replace(/\^/g,'"'));for(let n=0;n<cs.length;n++){if(cs[n].title.localeCompare(fj.title)===0){cs.splice(n,1);break;}}window.localStorage.setItem('clipped',JSON.stringify(cs));if(cs.length===0){console.log(i);this.pp[i].mCI=0;this.reqFds(i);}},fClip:function(f){let c=window.localStorage.getItem('clipped'),cs=[],fj=JSON.parse(f.replace(/\~/g,'\\"').replace(/\^/g,'"'));if(c&&c!==''){cs=JSON.parse(c);}cs.push(fj);window.localStorage.setItem('clipped', JSON.stringify(cs));},Fcb:function(i,_p){let ct=Liqwid.ad[i].ct,q=_p.fF,c='<div style="display:table;width:100%;padding:10px 0 0 0;font-family: \'Lucida Grande\',\'Lucida Sans Unicode\',\'Lucida Sans\',\'DejaVu Sans\',Verdana,\'sans-serif\';font-size: 12px;';if(_p.FS)c+=_p.FS.replace(/,/g,';');c+='"><div for="Liqwid_q'+i+'" style="float:left;width:100%;margin-right:10px;margin-bottom:10px;';if(_p.fT)c+=_p.fT.replace(/,/g,';');c+='"';
if(ct!=='')c+=' onclick="window.open(\''+ct+'\',\'_top\');"';c+='>'+_p.FT+' '+_p.FST.replace(/,/g,';');c+='</div>';if(_p.gc===1||_p.gc===2)c+='<div style="float:left;width:100%;margin-bottom:20px;">';c+='<input type="text" id="Liqwid_q'+i+'" style="float:left;border-top-left-radius:4px;border-bottom-left-radius:4px;width:246px;font-size:14px;font-family:Helvetica, Arial,\'sans-serif\';padding:3px;padding-top:6px;padding-bottom:6px;border:#222 solid 1px;outline:none;background-image: linear-gradient(top, #DDDDDD, #FFFFFF);color:#222" maxlenght="25" value="'+parent.Liqwid.pp[i].fSW+'" onfocus="this.addEventListener(\'keypress\',function(e){if(e.keyCode===13){req();}});"/><span class="b1" style="float:left;height:17px;padding-top:6px;padding-bottom:6px;" onclick="req();"/>SEARCH</span>';if(_p.gc===1||_p.gc===2)c+='</div>';c+='<div id="Clip_btn" class="b1" style="padding-top:6px;padding-bottom:6px;';if(_p.gc===1||_p.gc===2)c+='float:left;width:310px;border-radius:4px;';else c+='float:right;width:240px;border-radius:4px;';
c+='" onclick="if(!parent.Liqwid.pp['+i+'].mCI){parent.Liqwid.pp['+i+'].mCI=1;parent.Liqwid.reqClp('+i+');document.getElementById(\'Clip_btn\').innerHTML=\'&#10148; BACK TO '+_p.FT+'...\';}else{parent.Liqwid.pp['+i+'].mCI=0;parent.Liqwid.reqFds('+i+');document.getElementById(\'Clip_btn\').innerHTML=\'&#10148; MY CLIPPED ITEMS...\';}" title="Open My Clipped Items...">&#10148; MY CLIPPED ITEMS...</div>';c+='</div>';return c;},reqClp:function(i){let a=this.ad[i],_p=this.pp[i],j=JSON.parse(window.localStorage.getItem('clipped')),cj={};cj.products={};cj.products.includedResults=j.length;cj.products.totalResults=j.length;cj.products.product=j;this.Fds(a,_p,cj);
},Fds:function(a,_p,j){let i=_p.i;_p.PF=j.products;_p.fR=j.products.includedResults;_p.ftR=j.products.totalResults;if(_p.fR===0&&_p.fCA!==''&&_p.fKW!==''){_p.fCA_=_p.fCA;_p.fCA='';return this.reqFds(i);}let cbc=_p.FP[2];if(_p.FP[8])cbc=_p.FP[8];
let hd='<!DOCTYPE html><html> <head><title>LIQWID Product Catalog</title>'
+'<style>body {font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, \'sans-serif\';} .b0 {border:'+_p.FP[3]+' solid 1px;background-color:'+_p.FP[1]+';color:'+_p.FP[2]+';border-radius:2px;padding: 4px 8px 4px 8px; margin-right:4px;cursor:pointer;}.b0:hover{background-color:'+_p.FP[4]+';color:'+_p.FP[5]+'}'
+'.b1 {cursor:pointer;border-bottom-right-radius:3px;padding: 3px 10px 3px 6px;'+_p.fB.replace(/,/g,';')+'}.b1:hover{'+_p.fBH.replace(/,/g,';')+'}'
+'.b2 {border:#339933 solid 1px; border-radius:2px;padding: 4px 8px 4px 8px; margin-right:4px;background-color:'+_p.FP[6]+';color:'+_p.FP[7]+'}'
+' a {color:'+_p.FP[2]+';text-decoration: none;} a:visited {color:'+_p.FP[2]+';} a:hover { color:'+_p.FP[4]+';} a:focus {outline: thin dotted;} a:hover,a:active {outline: 0;}</style><scr'+'ipt>var tW=20,mW=240,fR='+_p.fR+',pg=0,itm;function req(){N=0;parent.Liqwid.pp['+i+'].mCI=0;let SW=document.getElementById(\'Liqwid_q'+i+'\').value;if(SW!==\'\')parent.Liqwid.pp['+i+'].fWS=1;if(SW!=parent.Liqwid.pp['+i+'].fKW){if(SW!==\'\'||parent.Liqwid.pp['+i+'].fWS){pg=0;parent.Liqwid.pp['+i+'].fWS=0;parent.Liqwid.com.sC(\'LFSW\',SW,30,0);}parent.Liqwid.pp['+i+'].fSW=SW;}if(document.getElementById(\'Liqwid_q'+i+'\').value===\'\'&&parent.Liqwid.pp['+i+'].fCA_)parent.Liqwid.pp['+i+'].fCA=parent.Liqwid.pp['+i+'].fCA_;if(SW!==\'\')parent.Liqwid.pp['+i+'].fKW=SW;parent.Liqwid.pp['+i+'].pg=pg;parent.Liqwid.reqFds('+i+');parent.Liqwid.com.ani(top,parent.Liqwid.com.fp(parent.Liqwid.pp['+i+'].d).t-40,30,30,1);}function share(n){itm=n;let s=document.getElementById(\'share\'),d=document.getElementById(\'td\'+n),e=document.getElementById(\'email\');s.style.display=\'block\';const r=d.getBoundingClientRect();let x=r.left+window.scrollX+4;if(x+244>window.innerWidth)x=window.innerWidth-244;s.style.left=x+\'px\';s.style.top=(r.top+r.height-98+window.scrollY)+\'px\';}function cls(){document.getElementById("share").style.display="none";}function send(){let p=parent.Liqwid.pp['+i+'].PF.product[itm],e=document.getElementById(\'email\'),s=document.getElementById(\'share\');let tP=p.totalPrice;if(tP)tP=tP.value.toString();let e_=e.value,u=\'https://liqwid.net/share/?e=\'+encodeURIComponent(e_)+\'&s='+ encodeURIComponent(_p.FT)+'&t=\'+encodeURIComponent(p.title)+\'&p=\'+encodeURIComponent(tP)+\'&u=\'+encodeURIComponent(p.url.value);let x=new XMLHttpRequest();x.onreadystatechange=function(){if(this.readyState==4&&this.status==200){s.innerHTML="<div style=\'padding:12px;\'>This item has been sent.</div>"; setTimeout(function(){s.style.display="none";s.innerHTML=\''+this.SF()+'\'},1000);}};x.open("GET",u);x.send();}function ff(){fR=parent.Liqwid.pp['+i+'].fR; let tH=0,W=window.innerWidth;if(W>=1200){tW=16;mW=400;}else if(W>=800 && W<1200){tW=20;mW=400;}else if(W>=600 && W<800) {tW=25;mW=300;}else if(W>=320 && W<600) {tW=49.7;mW=300;}else if(W<320) {tW=100;mW=400;}'
+'for(let n=0;n<fR;n++){let d=document.getElementById("td"+n);d.style.height="auto";}' 
+'for(let n=0;n<fR;n++){let d=document.getElementById("td"+n);d.style.width=tW+"%";d.style.maxWidth=mW+"px";if(tH<d.offsetHeight)tH=d.offsetHeight+45;}'
+'for(let n=0;n<fR;n++){let d=document.getElementById("td"+n);d.style.height=tH+"px";}' 	
+'let f=parent.document.getElementById("Liqwid_frame'+i+'_0"),h='+_p.h+';if(f){h=document.body.offsetHeight+30;parent.Liqwid.pp['+i+'].h=h;f.style.height=h+"px";}}tH=0;'; 
hd+='this.addEventListener("resize",ff,false);';hd+='window.onload=ff;function remItem(i,j) {let d=document.getElementById(\'td\'+i); d.remove(); parent.Liqwid.fRem('+i+',j); } </scr'+'ipt></head><body>',fd='</body></html>';let c='<div id="Liqwid_feeds" style="background-color:#fff;display:table;width:100%"><div style="font-family:Verdana,Arial;font-size:12px;margin-bottom:3px">Search for best deals and items across best online stores and Clip here to keep what you need handy.</div>'+this.Fcb(i,_p),p=j.products.product,td=[],w=340;if(_p.fR===0) c+='<div style="margin-top: 40px">No Items Found</div>';for (let i=0;i<p.length;i++) {if(!p[i])continue;let u='';if(p[i]&&p[i].url&&p[i].url.value)u=p[i].url.value;td[i]='<div id="td'+i+'" style="float:left;margin-top:8px"><div style="position:relative;height:100%;padding:8px">';if(p[i].images&&p[i].images.image){let img=p[i].images.image;for(let n=0;n<img.length;n++){if(img[n].xsize>=w){td[i]+='<a href=\''+u+'\' target=\'_blank\' referrerpolicy=\'no-referrer-when-downgrade\'><img style="width:100%;cursor:pointer;border:none;" src="'+img[n].value+'" onload="window.dispatchEvent(new Event(\'resize\'));"/></a>';break;}}}let t=p[i].title;if(t.length>80){t=t.substring(0,60); while(t.substr(t.length-1,1)!==' ')t=t.substring(0,t.length-1);t=t.substring(0,t.length-1);if(t.substr(t.length-1,1)===',')t=t.substring(0,t.length-1);t+='...';}td[i]+='<div style="font-size:11px;line-height:12px;color:#44444; height:50px;"><a href=\''+u+'\' target=\'_blank\' referrerpolicy=\'no-referrer-when-downgrade\'>'+t.replace(/,/g,', ')+'</a></div>';let tP=p[i].totalPrice; if(tP)tP=tP.value.toString();if(!tP)tP='<div><a href=\''+u+'\' target=\'_blank\' referrerpolicy=\'no-referrer-when-downgrade\'>See Details...</a></div>';td[i]+='<table width="96%" cellpadding="0" cellspacing="0"><tr><td style="vertical-align: bottom; line-height: 12px">'+tP+'</td><td width="20">&nbsp;</td><td style="vertical-align: bottom;"><img style="float:right;max-width:70px" src="'+p[i].merchantLogoUrl+'" onerror="this.style.display=\'none\';"/></td></tr></table>';
let tj=this.fStr(p[i]);td[i]+='<div style="position:absolute; bottom:40px;font-size: 10px;"><span class="b1" onclick="share('+i+');" title="Send via e-mail.">SHARE...</span> &nbsp;<span id="c'+i+'" class="b1" onclick="';if(!_p.mCI){td[i]+='let c=document.getElementById(\'c'+i+'\');c.innerHTML=\'CLIPPED\';c.style.backgroundColor=\''+cbc+'\';parent.Liqwid.fClip(\''+tj+'\');">CLIP...';}else{td[i]+='remItem('+i+',\''+tj+'\')">REMOVE';}td[i]+='</span></div></div></div>';c+=td[i];}c+='<div style="width:100%;float:left;clear:both;margin-top:20px;font-size: 11px;" align="center">'+this.Fpg(_p)+'</div>';c+='<div id="share" style="display:none;position:absolute;width:240px;height:100px;border:#ccc solid 1px;background:#fff;-webkit-box-shadow: 5px 5px 12px -2px #000000;box-shadow: 5px 5px 12px -2px #000000;font-size:10px;">'+this.SF()+'</div>';a.cc=hd+c+fd;if(!_p.FF){this.ff(_p.i,a,_p,a.cc);}else{let d=_p.FF.contentDocument;if(d.document)d=d.document;
d.body.innerHTML=c;}},SF:function(){return '<div style="width:100%;"><div style="float:left;margin: 6px 0 0 8px; font-size:14px">Send to e-mail:</div><div class="b1" style="float:right;padding:2px 6px 2px 6px" onclick="cls()">X</div></div><input id="email" type="text" maxlength="254" style="padding:4px; width: 90%; margin:6px;font-size:14px"/><div class="b1" style="width: 40px;float:right; margin-right:6px;font-size:10px" onclick="send()" title="Send via e-mail.">SEND...</div></div>';},reqFds:function(i){let a=this.ad[i],_p=this.pp[i],x=new XMLHttpRequest();x.onreadystatechange=function(){if(this.status>200) {Liqwid.msg(null,'No Feeds Response',4);return;}if(this.readyState==4&&this.status==200){Liqwid.Fds(a,_p,JSON.parse(this.responseText));}};let s=_p.pg;if (s>0)s=s*_p.gn+1;let u='https://catalog.bizrate.com/services/catalog/v1/api/product?apiKey=055678e14c5d45b08b8b5e00d0ace928&publisherId=725745&placementId='+a.p+'&categoryId='+_p.fCA+'&keyword='+_p.fKW+'&start='+s+'&results='+_p.gn+'&startOffers=0&resultsOffers=0&sort=relevancy_desc&attFilter=&attWeights=&attributeId=&resultsAttribute=10&resultsAttributeValues=10&showAttributes=&showProductAttributes=&minRelevancyScore=100&maxAge=&showRawUrl=&showUnitPricing=true&useSecureImageDomain=&useSecureLinkDomain=&imageOnly=&reviews=none&format=json';x.open("GET",u);x.timeout=10000;x.ontimeout=function(e){Liqwid.msg('Loading Timeout: 10sec',e, 5);};x.send();},
DC: function(c,d) {for(let g=0;g<c.length;g++){let e=c[g];if(e.trim()==="parentNode"){if(d){let E = d.parentNode.children;for(let m=0;m<E.length; m++){if(E[m]&&!E[m].id.match('Liqwid_')){	E[m].parentNode.removeChild(E[m]);m--;}}}}else{let r=document.querySelector(e.replace("*",g));if(r)r.parentNode.removeChild(r);}}
},eS:function(b){var S=Array.prototype.slice.call(b.getElementsByTagName("script"));for(var g=0;g<S.length;g++){
if(S[g].src!=""){var t=document.createElement("script");t.src=S[g].src;t.setAttribute('type','text/javascript');t.setAttribute('async','async');b.innerHTML=b.innerHTML.replace(S[g].outerHTML,'');b.appendChild(t);}else{ eval(S[g].innerHTML);}}},	
bX:function(i,w,h,_p){var s='width:'+w+';padding:0;',b=top.document.createElement("div");try{if(w!=='auto'&&w.indexOf('px')>-1)s+='px';}catch(e){}if(_p.w===300&&_p.h===250)s='height:250px;';b.id="Liqwid_box"+i;b.align="center";b.className="liqwid-box-"+i;
if(_p.aM!=='')s+='margin:'+_p.aM+';';if(_p.sB){if(Number(_p.sB)>1){var u='//www.liqwid.net/ads/default/'+w.replace("px","")+'x'+h.replace("px","");if(Number(_p.sB)>2)u+='_'+_p.sB.toFixed();u+='.gif';s+='background-image:url(\''+u+'\');background-repeat:no-repeat;height:'+h+';';}}else{s+='display:none;';}if(_p.cT){var l,c;if(_p.cT==='viewport'){l=this.cw/2-w/2-this.com.fp(_p.d).l;c=1;}else{c=top.document.querySelector(_p.cT);if(c)l=this.com.fp(c).l+c.offsetWidth/2-w/2;}if(c)s+='position:relative;left:'+l+'px;';}b.style.cssText=s;if(_p.bC){for(var n=0;n<_p.bC.length;n++)b.classList.add(_p.bC[n]);}return b;},PC:function(_p){ 
let m=_p.PL.length,D=document.createElement('iframe'),np=document.createElement('DIV'),S=_p.pLC.style||{};D.id="Liqwid_PlayList"+_p.i;D.style.cssText='border:none;overflow:hidden';
D.setAttribute("seamless","seamless");D.setAttribute("scrolling","no");D.setAttribute("marginwidth","0");D.setAttribute("marginheight","0");D.setAttribute("hspace","0");D.setAttribute("vspace","0");D.setAttribute("frameborder","0");if(m>10)m=10;D.style.width=_p.w+'px';D.style.height='400px';D.style.display='table';D.style.position='relative';if(_p.aS)_p.d.style.cssText +=';'+_p.aS.replace(/,/g,';');if(_p.bA)_p.b.style.cssText+=';'+_p.bA.replace(/,/g,';'); 
if(_p.YTP){
m=_p.YTP.items.length;this.video.YT(_p); _p.b.style.width="100%";
}else{ 
m=_p.PL.length;	/* console.log(_p.PL[0]); a.sl=_p.PL[0].u; */
}
_p.d.appendChild(D);if(_p.fs!==0) _p.b.style.height=_p.h+"px";
let Dd=D.contentDocument; if(Dd.document)Dd=Dd.document;_p.PD=Dd;
let C='<!DOCTYPE html><html> <head><title>LIQWID Play List</title>'
+'<style type="text/css">body {font-family: \'Lucida Grande\', \'Lucida Sans Unicode\', \'Lucida Sans\', \'DejaVu Sans\', Verdana, \'sans-serif\';font-size:12px} img {border:0;width:100%;cursor:pointer} div::-webkit-scrollbar {width: 10px;}';
if(_p.pLC.type===1)	{
C+='.tC{float:left;margin:2px;width:32%;} .sV {width:30%;max-width:60px; position:absolute;left:5px;bottom:8px;z-index:1; cursor: pointer;} .im {position:relative;cursor:pointer;} .tT {float:left;width:100%; max-width:380px;} .mS {float:left;} @media only screen and (max-width: 480px) {.tC{max-width:32%;} } @media only screen and (max-width: 360px) {.tC{max-width:45%;} } ';
} else if (_p.pLC.type===2){
C+='.tC{float:left;margin:2px;width:100%;background:#222;color:#CCC;font-family: Arial; font-size: 12px;} .sV {width:30%;max-height:60px; position:absolute;left:5px;bottom:5px;z-index:1} .im {position:relative;cursor:pointer;} .tT{float:left;width:30%; max-width:380px;} .mS {float:left; max-width: 65%; margin: 1%; }';		
}
if(S.list)C+='body {'+S.list.replace(/,/g,';')+'}';C+='</style><scr'+'ipt>function fit(){let f=parent.document.getElementById("Liqwid_PlayList'+i+'"),h='+_p.h+';if(f){h=document.body.scrollHeight;parent.Liqwid.pp['+i+'].h=h;f.style.height=h+"px";}} function nxt(m,i,v,YT){top.Liqwid.pp['+_p.i+'].vcn=i;for(let n=0;n<m;n++){document.getElementById("Lnp"+n).style.display="none";}for(let n=0;n<m;n++){document.getElementById("Lpl"+n).style.display="block";}document.getElementById("Lnp"+i).style.display="block";document.getElementById("Lpl"+i).style.display="none";if(YT){let TV=parent.document.getElementById("widget2");TV.src="https://www.youtube.com/embed/"+v+"?autoplay=1";} else {let _p=top.Liqwid.pp['+_p.i+']; if(_p.player){_p.player.src=v;if(_p.player.paused_){_p.video.pause();}top.Liqwid.video.updatePlayButton('+_p.i+');}}}'
+'window.onload=function(){fit();window.onresize=fit;setTimeout(function(){for(let n=0;n<'+m+';n++){let ht=document.getElementById("Ltb"+n);if(ht)ht.style.overflowY="hidden";}fit();},1000);} </scr'+'ipt><body>'; var interval=[],v=[],c=[],c_=[];
for (let i=0;i<m;i++){ 
let d='',t='',u=_p.PL[i].snippet.thumb.def.url,ts=_p.PL[i].snippet.thumb.def.ts,tS="font-weight:bold;",dS="font-weight:thin",cS='background:#2266C2;font-family:Arial;color:#FFF;font-size:10px;padding:3px 10px 3px 10px;';	
if(S.title)tS=';'+S.title.replace(/,/g,';');if(S.desc)dS=';'+S.desc.replace(/,/g,';');if(S.np)cS=S.np.replace(/,/g,';');
if(_p.YTP){ 	
t=_p.YTP.items[i].snippet.title;
d=_p.YTP.items[i].snippet.description;
}
C+='<div id="L_thumb'+i+'" class="tC"';if(S.block)C+=' style="'+S.block.replace(/,/g,';')+'"';C+='><div style="width:100%;display:inline-block;position:relative;">';
if(_p.YTP){	
C+='<div class="tT"><div class="im" onclick="nxt('+m+','+i+',\''+_p.YTP.items[i].snippet.resourceId.videoId+'\',1);">';					   
C+='<img src="'+_p.YTP.items[i].snippet.thumbnails.medium.url+'" />'	
}else{
t=_p.PL[i].snippet.title;d=_p.PL[i].snippet.desc;					   
C+='<div class="tT"><div class="im" onclick="nxt('+m+','+i+',\''+_p.PL[i].snippet.src+'\');">';						   
if(u!==''&&ts==='')C+='<img src="https://www.liqwid.net/content/'+u+'" />';
if(ts!=='')C+='<video id="canv'+i+'" src="'+_p.PL[i].snippet.src.replace(/&amp;/g,'&')+'" style="width:100%; height:100%;" oncanplay="this.currentTime='+_p.PL[i].snippet.thumb.def.ts+'"></video>';				   
}
C+='<svg id="Lpl'+i+'"';
if(i===0)C+='  style="display:none;"';				   
C+=' viewBox="0 0 60 60" class="sV"><style type="text/css">.s0{fill:rgba(255,255,255,0.35);stroke:rgba(255,255,255,1);stroke-miterlimit:10;}	.s1{fill:rgba(255,255,255,0.9);;stroke:rgba(255,255,255,1);stroke-miterlimit:10;}</style><circle class="s0" cx="30" cy="30" r="28"/><polygon class="s1" points="47,30 20,46 20,16 "/></svg>'
+'<div id="Lnp'+i+'" style="position:absolute;right:0;bottom:3px;';
if(i!==0)C+='display:none;';
C+=cS+'">NOW PLAYING</div></div></div>';
/*	   
C+='<div id="Ltb'+i+'" class="mS"';if(S.textBlock)C+=' style="'+S.textBlock.replace(/,/g,';')+'"';
C+=' onmouseover="document.getElementById(\'Ltb'+i+'\').style.overflowY=\'visible\';fit();" onmouseout="document.getElementById(\'Ltb'+i+'\').style.overflowY=\'hidden\';fit();'; 
C+='>';
*/					   
C+='<div style="'+tS+'">'+t+'</div>';
C+='<div style="'+dS+'">'+d+'</div></div>';
C+='</div></div>';
}
C+='</body></html>'; Dd.open();Dd.write(C);Dd.close();
},
ff:function(i,a,_p,c){  //console.log(a);
if(a.af==="video"){if(a.fs){if(a.mw===320){a.mh=240;_p.h=240}else if(a.mw===728){a.mh=546;_p.h=546}}else{w='100%';h=Math.floor(_p.d.offsetWidth*0.65)+'px';}}
a.rtb.s=1;var F='',N=a.rtb.n,im,f,f_,b,B,w=a.mw+'px',h=a.mh+'px',r;if(a.pr&&a.rtb)a.rtb.sT[_p.cn]=Date.now();
if(!_p.b)_p.b=this.bX(i,w,'auto',_p);if(_p.mV&&_p.mV>0){var _b=top.document.createElement("div");_b.id="Liqwid_bg"+i;_b.style.position="fixed";_b.style.display="none";
_p.B=_b;top.document.body.append(_b); if(a.pp.vStyle)_p.B.style.cssText=a.pp.vStyle.replace(/,/g,';');if(a.pp.vClass){_p.B.classList.add("Liqwid_vClass"+i);}if(_p.dR&&_p.dR.type===1){_p.D=top.document.createElement("div");_p.D.style.cssText='position:absolute;cursor:move;opacity:0';if(_p.dR.style)_p.D.style.cssText+=';'+_p.dR.style.replace(/,/g,';');if(_p.dR.text)_p.D.append(_p.dR.text);_p.B.append(_p.D);this.dR(_p.D,i);this.dR(_p.B,i);_p.D.onmouseout=function(){_p.D.style.opacity=0;};_p.D.onmouseenter=function(){_p.D.style.opacity=1;}; }_p.B.append(_p.b);}else{_p.d.append(_p.b);}b=_p.b;if(a.nf&&!_p.peel){c=this.com.rnl(c,i,a.p,1);b.innerHTML=c;this.eS(b);}else{if(a.t===2&&a.ct!==''){var cT=this.d('Liqwid_cT'+i);if(!cT){cT=top.document.createElement("div");cT.id='Liqwid_cT'+i;cT.style.cssText='position:absolute;z-index:1000003;width:'+w+';height:'+h+';cursor:pointer;';cT.addEventListener('click',function(){Liqwid.click('+i+');},false);b.appendChild(cT);}} f=_p.f[_p.cn];if(_p.peel){let sW=100,rW=500;if(_p.exp&&_p.exp[2]){sW=_p.exp[2][0];rW=_p.exp[2][1];}let clp="0px "+rW+"px "+sW+"px "+(rW-sW)+"px",path=["M "+rW+" "+sW+" L "+rW+" 0 "+(rW-sW)+" 0 "+rW+" "+sW+" Z","M "+rW+" "+rW+" L "+rW+" 0 0 0 "+rW+" "+rW+" Z"];if(N==='!')return this.close(i);_p.d.id="Liqwid_peel_box"+i; _p.b.id="Liqwid_peel_ad"+i;_p.d.style.cssText="position:absolute;right:0;top:0;";if(_p.wS)_p.d.style.cssText+=';'+_p.wS.replace(/,/g,';').replace(/~/g,',');_p.d.innerHTML=a.peel.replace(/~/g,i).replace(/rW/g,rW).replace(/sW/g,sW).replace(/trS/,path[0]).replace(/recS/g,clp).replace(/`/g,_p.cn).replace(/bgfill0/,_p.pBG[0]).replace(/bgfill1/,_p.pBG[1]).replace(/bgfill2/,_p.pBG[2]);_p.f[_p.cn]=top.document.getElementById("Liqwid_frame"+i+'_'+_p.cn);f=_p.f[_p.cn];_p.d.style.position=_p.pZ;if(f)f.onload=function(){setTimeout(function(){Liqwid.peel_rnd(_p);},10);};let _f2,f2=top.document.getElementById("Liqwid_frame_ps"+i);if(f2){_f2=f2.contentWindow||f2.contentDocument;if(_p.peelTBG==='')_f2.document.body.style.background=_p.peelTBG;}if(!a.pr||a.spT!==''){if(_f2 && _f2.document){_f2=_f2.document;let spT=a.cc;if(a.spT!=='')spT=a.spT;spT=this.com.rnl(spT,i,a.p,4);_f2.open();_f2.write(spT);_f2.close();}}if((!a.pr)&&a.exp&&a.exp.c)c=a.exp.c;}else{if(!f||a.af==="video"){

	if(_p.YTP) return this.PC(_p);
	f=top.document.createElement("iframe");f.frameBorder="0";f.style.cssText='border:none;display:none;';if(_p.fP)f.style.cssText+='position:'+_p.fP+';let:0;top:0;';f.scrolling="no";if(a.t===4){if(a.cc.indexOf("-imglink") >-1){a.cc=a.cc.replace("-imglink","");im=1;}else{if(a.ps!=='F'&&a.ps!=='U')f.src=a.cc;}}if(a.t===2)f.src=a.cc;f.allow="fullscreen";f.marginWidth="0";f.marginHeight="0";f.vspace="0";f.hspace="0";f.allowTransparency="true";f.id='Liqwid_frame'+i+'_'+_p.cn;b.appendChild(f);if(a.af==="video"){f.id+='_'+_p.Fn;f.style.display="none";f.style.position="absolute";_p.VF=f;

	if(_p.pLC&&!_p.YTP){_p.PL=a.PL;this.PC(_p);}
	
	}_p.f[_p.cn]=f;}}if(f&&!_p.ia&&a.t!==2&&(a.t!==4||im||a.ps==='F')){if(a.ps==='F')_p.FF=f;f_=f.contentWindow||f.contentDocument;if(f_&&f_.document)f_=f_.document;if(a.ct!==''&&_p.peel)c+='<div style="position:absolute;z-index:100;width:100%;height:100%;top:0;right:0;cursor:pointer;" onclick="top.Liqwid.click('+i+')">';if(f_){_p.psb=false;if(a.pr&&a.pd&&Object.keys(this.hb[i]).length>0&&this.hb[i].adId&&a.af!=="video"){Liqwid.ss(i);if(_p.d&&_p.MH)_p.d.style.minHeight=_p.MH+"px";Lpbjs.renderAd(f_,this.hb[i].adId);return;} else {c=this.com.rnl(c,i,a.p,3);if(f&&_p.fC) {c += '<scr' + 'ipt>function fitIF(h){const f=parent.document.getElementById("'+f.id+'");let H=document.body.offsetHeight;if(h)H=h;if(f){f.style.height=H+"px";}}window.onload=function(){fitIF('+_p.h+');};window.onresize=function(){fitIF();}</scr' + 'ipt>';}if (c==='') return;f_.open();f_.write(c);f_.close();

let eO=_p.EO,wE=_p.w+'px',hE=_p.h+'px',dR="down";
if(eO){
if(eO.w)wE=eO.w;if(eO.h)hE=eO.h;if(eO.dir)dR=eO.dir;
	if(!_p.bE){
	if(a.exp&&a.exp.c!=='') {
	_p.bE=document.createElement("div");
	_p.bE.style.transform="translate(9999px)";

	_p.bE.style.position="absolute";
	if(_p.EO.EXP){
	_p.bE.style.top="0"; 
	_p.bE.style.left="0"; 
	_p.bE.style.width="100%";
	_p.bE.style.height="100%";
	}
	_p.bE.style.width="100%";
	_p.b.appendChild(_p.bE);_p.fE=document.createElement("iframe");_p.bE.appendChild(_p.fE);_p.fE.frameBorder="0";_p.fE.scrolling="no";
	
	if (a.ps==='B') {
	let cL=document.createElement("div");cL.style.cssText="height:100%;width:1000px;top:0;left:"+_p.w+"px;position:absolute;z-index:3;";
	_p.d.appendChild(cL);
	}
	
	if(_p.EO.EXP) {wE="100%"; hE="100%";}
	_p.fE.style.cssText='border:none;width:'+wE+';height:'+hE+';';
	f_=_p.fE.contentWindow||_p.fE.contentDocument;if(f_&&f_.document)f_=f_.document;c=this.c1+this.c2+a.exp.c+this.c3; c=this.com.rnl(c,i,a.p,2);f_.open();f_.write(c);f_.close();

	if(_p.EO.EXP||eO.overlay){
	_p.b.style.position="relative";
	if(_p.EO.EXP)_p.b.style.overflow="hidden";
	_p.b.style.height=a.mh+"px";
	f.style.height=a.mh+"px";
	}
	
	} else {

	if(_p.EO.h){
	if(!_p.EO.EXP){
	_p.h=_p.EO.h;
	f.style.height=_p.EO.h;
	} else {
	_p.b.style.overflow="hidden";
	_p.b.style.height=a.mh+"px";
	f.style.height=_p.EO.h;
	}
	
	}
	if(_p.EO.w){
	if(!_p.EO.EXP){
	_p.w=_p.EO.w;
	f.style.width=_p.EO.w;
	} else {
	
	_p.b.style.overflow="hidden";
	_p.b.style.width=a.mw+"px";
	_p.b.style.width==_p.EO.w;
	f.style.width=_p.EO.w;
	}
	}
	}
	
	if ((getComputedStyle(_p.d).position!=="static"||eO.overlay)&&_p.bE){	
		eO.bN=_p.bE;}else{
	eO.bN=_p.b;}
	eO.bN.className="Liqwid_expO"+i;
	
 eO.cF=function(){
	
	let dR="down",dS='0',wE,hE,tE="0",lE="0",bE,rE;
	if(_p.EO){
	if(_p.EO.dir)dR=_p.EO.dir;
	if(_p.EO.dis&&_p.EO.dis!==0)dS=_p.EO.dis;
	if(_p.EO.t)tE=_p.EO.t;
	if(_p.EO.l)lE=_p.EO.l;
	if(_p.EO.w)wE=_p.EO.w;
	if(_p.EO.h)hE=_p.EO.h;
	if(_p.EO.r)rE=_p.EO.r;
	if(_p.EO.b)bE=_p.EO.b;
	}
	
	if((dR==="down"||dR==="up")) {
	if(!_p.EO.EXP){
	
	eO.bN.style.top=tE;
	
	} else {
	_p.b.style.height=a.mh+"px";
	
	}
	
	}
	if(dR==="left"||dR==="right")eO.bN.style.left=lE;
	
	if(_p.bE) {
eO.bN.ontransitionend=()=>{

	_p.bE.style.transform="translate(9999px)";

	}
}
}	
eO.bN.addEventListener("mouseleave", eO.cF );
	
eO.oF=function(){
let dR="down",dS='0',wE,hE,tE,lE,bE,rE,b;if(!_p)return;
b=eO.bN;
	eO.bN.ontransitionend=null;
	if(_p.bE)_p.bE.style.transform="translate(0)";

	if(_p.EO){
	if(_p.EO.dir)dR=_p.EO.dir;
	if(_p.EO.dis && _p.EO.dis!==0)dS=_p.EO.dis;
	
	if(_p.EO.t)tE=_p.EO.t;
	if(_p.EO.l)lE=_p.EO.l;
	if(_p.EO.w)wE=_p.EO.w;
	if(_p.EO.h)hE=_p.EO.h;
	if(_p.EO.r)rE=_p.EO.r;
	if(_p.EO.b)bE=_p.EO.b;
	}

	if(dS && (dR==="down"||dR==="up"))tE=dS;
	if(dS && (dR==="left"||dR==="right"))lE=dS;

	if(hE)b.style.height=hE;
	if(wE)b.style.width=wE;
	if(tE)b.style.top=tE;
	if(lE)b.style.left=lE;
	if(rE)b.style.right=rE;
	if(bE)b.style.bottom=bE;
	
	if(eO.open)setTimeout(eO.cF, eO.open)
}	
	
_p.b.addEventListener("mouseenter",eO.oF);
if(eO.open)eO.oF();
	
}}if(N==='!'&&!f_.body.hasChildNodes())f_.body.innerHTML=c;}}}}
if(a.tt!==''){f=this.d('Liqwid_framet'+i);if(!f){var fT=document.createElement("iframe");fT.style.cssText='diplay:none;';fT.id='Liqwid_framet'+i;b.appendChild(fT);}if(f){f_=f.contentWindow.document||f.contentDocument;if(f_){f_.open("text/html","replace");f_.write(a.tt);f_.close();}}}
if(N!=='O'&&N!=='F'){if(!_p.ia&&a.af!="video"&&((!N||N ==='X'||N==='L'||N==='B'||N==='G'||N==='!'||(N==='D'&&!_p.vPaid))||(a.video!==1||a.cc.match(/YouTubeVideoPlayer/))))this.ss(i);}
},check_ad:function(i,n,r){ 
var a=this.ad[i],_p=this.pp[i],t,f=_p.VF||_p.f[_p.cn],d,d_,f_,fw_=0,_=this._,_n;if(a&&f&&_p){ 
_n=_(a.rtb.n,null);if(_n!=='O')return;if(!_n||_p.cf||_p.cn!==n||a.p===0||_n==='M'||_n==='B'||_n==='A'||(_n==='F'&&r<4))return;   
d=f.contentWindow.document||f.contentDocument;if(d){if(t){t=d.body.outerHTML;if(!t||t===''||_n==='T') return;}if (_n==='O') {f_=d.querySelector('iframe[id^="ox_"]');if(f_){a.pd=1;a.mw=f_.width;a.mh=f_.height;} else {return;}}else if(_n==='P') {if(r<4) return;if(t.match(/Liqwid.demand/)) return;} else if (_n==='E') {if(r>-1)return;}else if (_n==='N'||_n==='S'){f_=d.getElementsByTagName("iframe");for (var j=0;j<f_.length;j++){var w_=f_[j].width||Math.floor(f_[j].style.width),h_=f_[j].height||Math.floor(f_[j].style.height);if(isNaN(w_))w_=0;if(isNaN(h_))h_=0;if(w_>=a.mw&&h_>=a.mh)fw_++;}
if(fw_===0)return;}if(!_p.cf){var ms=1;if(_n==='D')ms=1000;if(_p.hD){for(var h=0;h<_p.hD.length;h++){if(_p.hD[h][0]===_n){ms=_p.hD[h][1];break;}}}_p.cf=1; this.ss(i);	
}}}},NA:null,nA:function(s){for(var n=0;n<s.length;n++){var d=top.document.querySelectorAll(s[n][0]),x;if(s[n][2]){if(s[n][2]==='*'){x=null;}else{x=d[s[n][2]];}}else{x=d[0];}if(x&&s[n][2]){x.style.cssText+=';'+s[n][1].replace(/,/g,';');}else{for(var R=0;R<d.length;R++){if(d[R]){d[R].style.cssText+=';'+s[n][1].replace(/,/g,';');if(typeof s[n][3]==="undefined")this.NA=1;}}}}},sD:function(i,d,s,a,_p){_p.d=d;var D=s||d,zi=_p.zi||this.page.z,r=this.d('Liqwid_row'+i);
//if(zi===255)zi=this.com.z()+1;
let oB=this.d("Liqwid_bg"+i);if(oB)oB.style.zIndex=zi;
if(_p.dS!=='none'&&_p.nI&&!_p.NS)d.classList.add("Liqwid_"+i.toFixed()+_p.nI);if(_p.mV===1||_p.mV===2||_p.mV===5||_p.mV===6)zi=-1;
if(zi)D.style.zIndex=zi;
_p.zi=zi;if(_p.bG)D.style.background=_p.bG;if(_p.mT)D.style.marginTop=_p.mT;if(_p.mB)D.style.marginBottom=_p.mB;if(_p.mA){if(this.mob)_p.mA='0 auto'; D.style.margin=_p.mA;}if(_p.pG)D.style.padding=_p.pG;if (_p.dS)D.style.display=_p.dS;if(!_p.nS&&_p.vA){d.style.top=_p.vA+'%';d.style.transform='translateY(-'+_p.vA+'%)';}
if(!_p.peel)d.style.overflow='visible';
if(r)r.style.visibility='visible';if(_p.sU)this.com.ms(d,_p.sU,i);if(_p.nR&&d.nextSibling){d.nextSibling.classList.add('Liqwid_'+i+'fadeout');}if(_p.sB&&!_p.b){_p.b=this.bX(i,'auto','auto',_p);d.appendChild(_p.b);}if(_p.cN){var c=top.document.createElement("div"),C=_p.cN[1]||2,S=_p.cN[2]||null;c.innerHTML=_p.cN[0];c.style.textAlign='center';if(C===1){c.style.position='relative';d.prepend(c);}else if(C===2){c.style.position='relative';d.parentNode.insertBefore(c,d);}else if(C===3){c.style.position='relative';d.appendChild(c);}else if(C===4){c.style.position='absolute';b.appendChild(c);}if(S)c.style.cssText+=S.replace(/,/g,';');_p.cN=null;}},
ss:function(i,vp,dur){var a=this.ad[i],_p=this.pp[i],d=_p.d,b=_p.b,f=_p.VF||_p.f[_p.cn],s=this.d('Liqwid_slot'+i),oB=_p.B,_=this._,s_=null;if(_p.FH)_p.h=_p.FH;_p.rfd=false;_p.end=false;_p.sL=this.com.ts();
if(b){let S=b.getElementsByTagName("iframe");for(var g=0;g<S.length;g++){S[g].style.display="none";}}
if(d)d.style.display="block";if(_p.eI){this.gE(_p.eI);}
if(_p.cVN){let cVN=document.querySelector(_p.cVN);if(cVN){_p.contentVideo=cVN;_p.vM={cT:1};Liqwid.video.CT(_p);} }
if(_p.YT&&_p.YT.player)_p.TV=document.querySelector("#Liqwid_YT"+i+" > iframe");								   
if (_p.TV&&d) { 
if(_p.TV.offsetHeight>0){
_p.w=_p.TV.offsetWidth;
_p.h=_p.TV.offsetHeight;
if(_p.w>0&&_p.h>0){	
d.style.top=this.com.fp(_p.TV).t+'px';						   
d.style.left=this.com.fp(_p.TV).l+'px';								   
d.style.width=_p.w+'px';
d.style.height=_p.h+'px';
}}}
_p.j=1;a.r=1;if(_p.stN)_p.stN.r=0;if(a.video!==1&&a.pr&&a.pd){_p.fs=a.fs;_p.rl=a.rl;a.fs=1;a.rl=0;}if(b&&d){
if(_p.peel){/*if(a.pd) {a.mw=300;a.mh=250;if(f){f.style.float="right";f.style.width="300px";f.style.height="250px";}}*/this.peela(_p);}
if(f){f.style.display="block";f.style.width=_p.w+'px';f.style.height=_p.h+'px';
if(_p.fE)_p.fE.style.display="block";
}if((!_p.wS||!_p.wS.match(/width/))&&(!_p.aS||!_p.aS.match(/width/)))d.style.width=_p.w+'px';if(b){b.style.display="inline-block";b.style.width=_p.w+'px';if(!!_p.EXP){b.style.height=_p.h+'px';if(f)f.style.height='100%';}
if(a.pr&&!_p.EXP&&a.rtb.m[_p.cn]==='D') {_p.rT=-1;if(a.rtb.w[_p.cn]){_p.w=a.rtb.w[_p.cn];b.style.width=_p.w+'px';if(f)f.style.width=_p.w+'px';}
if(a.rtb.h[_p.cn]&&f){_p.h=a.rtb.h[_p.cn];b.style.height=_p.h+'px';f.style.height=_p.h+'px';}
}}	
if(_p.gpt){_p.gpt=null;if(a.tE)a.tE.parentNode.removeChild(a.tE);}
if(_p.re){for(let r=0;r<_p.re.length;r++){console.log('_p.re[r] ', _p.re[r]);let re=top.document.querySelector(_p.re[r]);if(re)re.remove();}}

if(a.pr){var eT=(Date.now()-a.rtb.sT[_p.cn])||0,_n=_(this.pn(a.rtb.n),'');if(eT!==0)eT='in '+eT.toFixed()+'ms';this.msg((++this.stp),'Box '+i+': Renders Ad: '+a.p+' '+eT+' Call: '+(_p.cn+1)+' '+_n+' ('+_p.w+'x'+_p.h+')',2);} else {this.msg((++this.stp),'Box '+i+': Renders Ad: '+a.p+' ('+_p.w+'x'+_p.h+')',2);}if(a.rtb.m[_p.cn]==='O'&&f&&a.ps!=='A'&&a.ps!=='B'){var oD=f.contentWindow.document||f.contentDocument;if(oD){var f_=oD.querySelector('iframe[id^="ox_"]');if(f_){a.rtb.w[_p.cn]=f_.width;a.rtb.h[_p.cn]=f_.height;}}}if((a.ps==='A'||a.ps==='B')&&a.mw===300&&a.rtb.w[_p.cn]===160)_p.u160=true;if(a.fs!==0&&a.pr){if(!_p.u160){a.mw=a.rtb.w[_p.cn];a.mh=a.rtb.h[_p.cn];}
if(f&&!a.nf){let uw=_p.w;if(_p.u160){uw=160;f.style.width=uw+'px';}}
}if(typeof a.rtb.x!=='undefined'){var nr=_(a.rtb.x[_p.cn],0);if(nr===1)a.x=1;}
if(a.af!=="video"){
if(_p.Re>0) {S=b.getElementsByTagName("ins");for(var g=0;g<S.length;g++){S[g].style.display="none";S[g].innerHTML="";}S=b.getElementsByTagName("div");for(var g=0;g<S.length;g++){S[g].style.display="none";S[g].innerHTML="";}}
}
var aC=_p.aC,aS=_p.aS;if(aC){for(var n=0;n<aC.length; n++)d.classList.add(aC[n]);}if(aS){try{d.style.cssText +=';'+aS.replace(/,/g,';');} catch(e){} }if(_p.bA)b.style.cssText+=';'+_p.bA.replace(/,/g,';');if(_p.nA&&!this.NA&&_p.vi&&((!a.pr&&a.r===1)||a.rtb.r))this.nA(_p.nA);if(_p.ci&&_p.tD)this.DC(_p.ci,_p.d);
if(a.rl!==0&&d.parentNode&&!a.nf){_p.w=d.parentNode.offsetWidth;if(_p.mW&&_p.w>_p.mW)_p.w=_p.mW;_p.h=Math.floor(_p.w*(a.mh/a.mw));if(_p.mH&&_p.h>_p.mH)_p.h=_p.mH;}else{if(_p.mW)d.style.maxWidth=_p.mW+'px';_p.w=a.mw;_p.h=a.mh;}_p.s=0;if(a.pr){a.rtb.r=true;if(a.ps==='A')this.Ap=a.p;if(a.ps==='B')this.Bp=a.p;}if(vp)_p.player=vp;if(dur)a.dur=dur;if(a.pr||((a.ps!=='A'&&a.ps!=='B')||((a.ps==='B'&&this.ap===0)||(a.ps!=='B'||(this.ap!==0&&a.p!==this.ap)))))this._vq(i,a);if(!_p.sB)this.sD(i,d,null,a,_p);if(_p.uI) {var cb=top.document.createElement("div");cb.style.cursor='pointer';cb.id='Liqwid_pb'+i;cb.style.width="100%";cb.style.height="100%";cb.style.position='absolute';cb.style.left='0';cb.style.top='0';cb.style.background='transparent';cb.style.zIndex=100;cb.innerHTML='<div style="width:106px;height:106px;position:relative;left:50%;top:50%;transform:translateX(-50%) translateY(-50%);opacity:0.7;"><svg version="1.1" id="Layer_1" x="0px" y="0px" viewBox="0 0 200 200" style="enable-background:new 0 0 200 200;" xml:space="preserve"><style type="text/css"> .st0{fill:rgba(1,20,17,0.2);stroke:#02B79E;stroke-width:4;} .st1{fill:#02B79E;stroke:#0EAA4B;stroke-miterlimit:10;}</style><circle class="st0" cx="100" cy="100" r="90"/><polygon class="st1" points="70,55 70,145 145,100 "/></svg></div>';b.appendChild(cb);cb.addEventListener('click',function(){var p=Liqwid.pp[i].player;
//if(p){p.currentTime(0);p.play();Liqwid.pp[i].vP=1;}document.getElementById("Liqwid_pb"+i).style.display='none';
},false);} 
if(_p.oB){if(!oB){oB=top.document.createElement("div");oB.id="Liqwid_bg"+i;oB.style.background=_p.oB;_p.B=oB;if(oB)oB.style.display='none';if(_p.zi)oB.style.zIndex=_p.zi;if(_p.oF)oB.style.webkitFilter=_p.oF;top.document.body.appendChild(oB);if(_p.nI)oB.classList.add("Liqwid_"+i.toFixed()+_p.nI);}}
if((_p.cF||_p.Fc)&&a.mw>1){var cP=_p.cP;if(!_p.cP){if(a.ps==='H'||!a.op||a.ps==='A')cP=[32,1,1,null,null,null]; if(a.ps==='G')cP=[32,null,-1,-1,null,null];if(a.ps==='B')cP=[32,1,null,null,-1,null];if(a.ps==='W'){if(!this.mob) {cP=[40,-10,-10,null,null,null];}else{cP=[32,1,1,null,null,null];}}}_p.cP=[cP[0],cP[1],cP[2],cP[3],cP[4],cP[5]];this.closebtn(i,a.ps,d,_p.mV,_p.cP[0],_p.cP[1],_p.cP[2],_p.cP[3],_p.cP[4],_p.cP[5]);}
if(_p.pS&&d.parentNode){var pn=d.parentNode;if(_p.pS[0]===1)pn=d.parentNode.parentNode;if(_p.pS[1])pn.style.width=_p.pS[1]+'px';if(_p.pS[2])pn.style.height=_p.pS[2]+'px';}
var vD,fN,w,h,oB;if(_p.fN)fN=document.querySelector(_p.fN);if(fN){w=fN.offsetWidth;h=fN.offsetHeight;_p.w=w;_p.h=h;};if(_p.mV===5||_p.mV===6){if(_p.vD)vD=document.querySelector(_p.vD);if (vD) {_p.vN=vD; if(!fN){h=parseInt(_p.vH);w=Math.floor(h*(a.mw/a.mh));if(w>this.cw){w=this.cw;h=Math.floor(w*(a.mh/a.mw));};_p.w=w;_p.h=h;};
vD.style.zIndex=1;oB=_p.B;this.ani(i,d,b,f,oB,a,_p,0,w,h,0,0,_p.Vp,null,_p.vD,_p.aE,0,h,0.8);
}}}let cB=this.d("Liqwid_close"+i),cM=0;if(a.ps==='W')cM=0;if(cB)setTimeout(function(){if(!_p.end)cB.style.display="block";},cM);},ani:function(i,d,b,df,oB,a,_p,tm,w,h,dT,dL,vP,cB,o,p,s,e,k) {
var F=setInterval(f,5);var d_,k_;if(s<e)d_=1;function f(){if((d_&&s>=e)||(!d_&&s<=e)){clearInterval(F);}else{k_=(Math.pow(10/_p.aT,k)*k);if(d_){s+=k_;}else{s-=k_;}eval('document.querySelector("'+o+'").style.'+p+'="'+s+'px"');Liqwid.vPos(i,d,b,df,oB,a,_p,0,w,s,dT,dL,vP,cB);}}},stopW:false,
closebtn:function(i,p,d,v){if(d)d.style.overflow='visible';var c=this.d("Liqwid_close"+i),b=this.d("Liqwid_bg"+i),x="";if(!c){c=document.createElement("div");c.id="Liqwid_close"+i;c.classList.add('Liqwid_close'+i);}c.style.display="none";c.style.height="0";c.style.width="0";if(p==='W')x="<div id='Liqwid_captions"+i+"' style='color:#AAA;font: 10px arial, sans-serif; background:#222;padding:6px; left:-110px;top:7px; z-index:0; position:absolute; width:110px;display:none;'></div>";x+='<div style="position:relative; z-index:1;"><svg viewBox="0 0 32 32" style="top:0;left:0;"><circle style="stroke:rgba(157,194,250,0.7);stroke-width:2;fill:transparent;" cx="16" cy="16.3" r="15"/><circle style="fill:rgba(157,194,250,0.7);stroke: rgba(86,94,126,0.8);" cx="16" cy="16.3" r="13"/><path style="fill:#FEFEFE;" d="M23.2,10.2c0.1,0.2,0.5,1.8-0.3,2.9c-1.2,1.7-3.8,0.5-7.4,1.3c-5.2,1.2-7,5.3-8.8,4.4c-1.6-0.8-1.1-4.7-1.1-5 c0.5-3.6,3.4-7,7.2-7.9C17.1,4.8,22.3,7,23.2,10.2z"/><g><line style="fill:none;stroke:#222;stroke-width:2;stroke-linecap:butt" x1="12" y1="12" x2="20" y2="20"/><line style="fill:none;stroke:#222;stroke-width:2;stroke-linecap:butt" x1="12" y1="20" x2="20" y2="12"/></g></svg></div>';c.innerHTML=x;if(v&&b)d=b;d.insertBefore(c,d.firstChild);c.addEventListener('click',function(){Liqwid.close(i,v);},false);/*c.classList.add("Liqwid_"+i+"fadein");*/},pn:function(n){var N='';switch(n){case 'D':N='Default';break;case 'P':N='Prebid';break; case 'A':N='AppNexus';break;case 'I':N='Index';break;case 'H':N='SpotX';break;case 'spotx':N='SpotX';break;case 'ix':N='Index';break;case 'amx':N='AMX';break;case 'O':N='OpenX';break;case '$':N='Primebid';break;case 'openx':N='OpenX';break;case 'appnexus':N='AppNexus';break; case 'C':N='Criteo';break;case 'N':N='StreamAMP';break;case 'M':N='Amazon';break;case 'pubmatic':N='PubMatic';break;case 'F':N='DFP';break;case 'S':N='AppNexus';break;case 'B':N='bluTonic';break;case 'G':N='AdSense';break;case 'R':N='Rubicon';break;case 'rubicon':N='Rubicon';break;case 'criteo':N='Criteo';break;case 'smartadserver':N='SmartAdServer';break;case 'T':N='OpenX';break;case 'E':N='PulsePoint';} return N;},A:0,B:0,Ap:false,Bp:false,pT:0,fitTo:function(i,a,S) {var f=this.d("Liqwid_frame"+i+'_0'),d;if(f){d=f.contentDocument||f.contentWindow.document;if(d){var F=d.getElementsByTagName('iframe'),D,w,h;for(var n=0; n<F.length; n++){w=F[n].width;h=F[n].height;if(w>=S[1]){a.mw=w;a.mh=h;if (w==S[0]){try{D=F[n].contentDocument||F[n].contentWindow.document;}catch(e){D=null;}if(D){var J=D.getElementsByTagName('iframe'),T,W;for(var N=0;N<J.length;N++){W=J[N].width;if(W==S[1]){a.mw=W;break;}if (W==S[0]) {var L;try{L=J[N].contentDocument||J[N].contentWindow.document;}catch(e){L=null;}if(L) {var K=L.getElementsByTagName('iframe'),v;for (var s=0;s<K.length;s++) {v=K[s].width;	if (v==S[1]) {a.mw=v;break;}}}}}}} break;}}}}},
pC:function(t,p,m){if(!m)m='passTo';var r=false;if(t&&(t.indexOf("Liqwid."+m+"("+p.replace(/\s+/g,'')+")")>-1||t.indexOf("Liqwid."+m+"(["+p.replace(/\s+/g,'')+"])")>-1) )r=1;return r;},passTo:function(p,m){this.msg(' passTo: ', 'P: '+p+' m: '+m);var i=null,P="";if(p)P=p.toString();for(var I=0;I<this.i+1;I++){
let a=this.ad[I],_p=this.pp[I],bt='';if(a&&a.ps==='W')this.close(I);if(_p&&a&&a.nf){var b=_p.b;if(b){bt=b.innerHTML;if(this.pC(bt,'',null)){i=I;break;}}} 
F=null;if(_p&&_p.f)F=_p.VF||_p.f[_p.cn];if(F){try{D=F.contentDocument||F.contentWindow.document;}catch(e){D=null;}if(D){let S=D.getElementsByTagName('script');for(var N=0;N<S.length;N++){if(S[N]){var T=S[N].innerText.replace(/\s+/g,'');if(this.pC(T,P,m)){var p_=this.pp[I]; if(p_ && !p_.Pt) {p_.Pt=1;i=I;break;}}}}try{if(!i){var _F=D.getElementsByTagName('iframe'),D;for(var _N=0;_N<_F.length;_N++){D=_F[_N].contentDocument||_F[_N].contentWindow.document;S=D.getElementsByTagName('script');for(var N=0;N<S.length;N++){if(S[N]){var T=S[N].innerText.replace(/\s+/g,'');if(this.pC(T,P,m)){i=I;break;}}}}}} catch(e){}}}if(i)break;}if(i===null||Number(i)<0)return;var _p=this.pp[i];if(_p){_p.psb=true;}if(P!="")P=p.toString();if(_p&&_p.pT)P=_p.pT.toString();if(P&&P!==""){if(!this.pT||this.pT<50){this.pT++;this.close(i);this.insert(P,i);}}else{if(!this.pT||this.pT<50){this.pT++;
this.msg('demand #6') ;
this.demand("Default",false,i);
} }},ar:function(a,o,n){if(n>=a.length){n=a.length-1;}a.splice(n,0,a.splice(o,1)[0]);return a;},
demand:function(n,f,i){Liqwid.msg('Demand Started: ' + i); 
if(typeof i==="undefined") {
console.log('demand #7');	
return this.passTo(null,"demand");}var a=this.ad[i],_p=this.pp[i],d=_p.d,tF=0.2,_n='',fL='',fl=0,eT='',n_,u_='',s=false,c='',_=this._,P="";if(a&&_p){/*a.video=0;*/ _p.primebid=null;_p.R=0;_p.isVPAID=0;a.dur=0;a.rtb.r=false;a.rtb.s=0;a.s=0;_p.bid=0;_p.psb=true;_p.cf=null;_p.u160=false;_p.WFL=a.rtb.c.length;fl=_(a.rtb.cpm[_p.cn],0);_p.SC_=null;if(_p.vF&&_p.vF.sb)_p.vF.sb.remove();if(f){_p.cn=0;a.r=0;this.wb[i]=null;this.hb[i]={};this.ub[i]=0;if(_p.Re>0&&(a.rtb.m[0]==='D'||a.rtb.m[0]==='Default'))_p.cn=1;if(a.rtb.m[0]==='D'&&a.rtb.m[1]&&a.rtb.m[1]==='D')_p.cn++;}else{_p.cn++;}if(typeof a.rtb.c[_p.cn]==="undefined")_n='End of Stack';if(a.rtb.af[_p.cn]==="video"){a.af="video";_p.loop++;}n_=_(a.rtb.m[_p.cn],null);if(n_){a.rtb.n=n_;a.nf=a.rtb.nf[_p.cn];}fL=' Floor: $'+_p.tF+';';
if(n.length===1)n=this.pn(n);if(n_&&n_.length===1){_n=this.pn(n_);u_='Size: '+(a.rtb.w[_p.cn]+'x'+a.rtb.h[_p.cn]);}
if(_p.CV&&_p.CAV){let CAV=document.querySelector(_p.CAV);if(CAV&&getComputedStyle(CAV, null).display==="block")return console.log('CAV ' + getComputedStyle(CAV, null).zIndex)}	
if(_p.cn===0){this.msg((++this.stp),'Box: '+i+' First Look: '+_n+';'+fL+' '+u_+' ('+a.p+') ', 3);}else{
if (_n==='End of Stack') {
if(n==="DFP")this.close(i);
this.msg((++this.stp),'Box: '+i+' Pass From: '+n+eT+' To: '+_n+';'+fL+' '+u_+' ('+a.p+') ',5);
if(a.pp.passBack&&a.pp.passBack===1){a.pr=null;this.fill(i);}
if(a.af==='video'&&_p.player)this.video.passBack(i);
} else {
this.msg((++this.stp),'Box: '+i+' Pass From: '+n+eT+' To: '+_n+';'+fL+' '+u_+' ('+a.p+') ',3);
}
}
if(a.rtb.t===_p.cn||!_(a.rtb.c[_p.cn],null)){a.rtb.f=1;return;}this.i_=i;if(n_==='$'){_p.R++;a.bt=Date.now();this.msg((++this.stp),'Box: '+i+' Primebid Run ('+a.p+') ');this.lpb(i,a,_p);}else{this.rtb_call(i,a,_p);}
}},
save:function(i){var a=this.ad[i],_p=this.pp[i],t,c,f=_p.VF||_p.f[_p.cn],f_,b=Liqwid.d('Liqwid_save'+i),b_='',d;
if(a){
var rtb=a.rtb.n||'',cn=this.pp[i].cn||-1,p=a.p||0,guid=_p.g||'',vg=this.vg||'';
d=f.contentDocument||f.contentWindow.document;
if(d){
b_=d.body.outerHTML;
f_=d.getElementsByTagName("iframe");
for (f=0;f<f_.length;f++){
if(f_[f].offsetWidth>=a.mw &&f_[f].offsetHeight>=a.mh){
try {
var df=f_[f].contentDocument||f_[f].contentWindow.document;
b_=df.body.outerHTML; 
var af=df.getElementsByTagName("iframe");
for (j=0;j<af.length;j++){
if(af[j].offsetWidth>=a.mw &&af[j].offsetHeight>=a.mh){
try {
var af_=af[j].contentDocument||af[j].contentWindow.document;b_=af_.body.outerHTML;
}catch(e){
//b_=2..
} 
break;
}} }catch(e){
//b_=1..
}   
break; 
}}
t=this.com.rnl(b_,i,a.p,4);c="ad="+encodeURIComponent(t.replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/&#/g,'a_h'))+"&vid="+encodeURIComponent(vg)+"&g="+encodeURIComponent(guid)+'&p='+p+'&r='+rtb+'&cn='+cn;this.com.log('save',c);if(b)b.innerHTML='<div style="color:#111;margin-top:3px;">SAVED</div>';}}},sha256:function a(b){function c(a,b){return a>>>b|a<<32-b}for(var d,e,f=Math.pow,g=f(2,32),h="length",i="",j=[],k=8*b[h],l=a.h=a.h||[],m=a.k=a.k||[],n=m[h],o={},p=2;64>n;p++)if(!o[p]){for(d=0;313>d;d+=p)o[d]=p;l[n]=f(p,.5)*g|0,m[n++]=f(p,1/3)*g|0}for(b+="\x80";b[h]%64-56;)b+="\x00";for(d=0;d<b[h];d++){if(e=b.charCodeAt(d),e>>8)return;j[d>>2]|=e<<(3-d)%4*8}for(j[j[h]]=k/g|0,j[j[h]]=k,e=0;e<j[h];){var q=j.slice(e,e+=16),r=l;for(l=l.slice(0,8),d=0;64>d;d++){var s=q[d-15],t=q[d-2],u=l[0],v=l[4],w=l[7]+(c(v,6)^c(v,11)^c(v,25))+(v&l[5]^~v&l[6])+m[d]+(q[d]=16>d?q[d]:q[d-16]+(c(s,7)^c(s,18)^s>>>3)+q[d-7]+(c(t,17)^c(t,19)^t>>>10)|0),x=(c(u,2)^c(u,13)^c(u,22))+(u&l[1]^u&l[2]^l[1]&l[2]);l=[w+x|0].concat(l),l[4]=l[4]+w|0}for(d=0;8>d;d++)l[d]=l[d]+r[d]|0}for(d=0;8>d;d++)for(e=3;e+1;e--){var y=l[d]>>8*e&255;i+=(16>y?0:"")+y.toString(16)}return i},gH:function(t,a="SHA-256"){/*https only*/let b=new TextEncoder().encode(t);return crypto.subtle.digest(a,b).then(h=>{let r='';const v=new DataView(h);for(let i=0;i<h.byteLength;i+=4){r+=('00000000'+v.getUint32(i).toString(16)).slice(-8);}return r;});},vE:function(e){const r = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return r.test(e);},vT:function(p){const r =/^\+?([0-9]{2})\)?[-. ]?([0-9]{4})[-. ]?([0-9]{4})$/;return r.test(p);},
lE:function(e){this.gE_=1;let t='';e.addEventListener('keyup',()=>{t= e.value.replace(/\s/g,'',).replace('1(','').replace('(','').replace(')','');if(this.vE(t)&&t.match(/\.com/)||t.match(/\.net/)||t.match(/\.net/)||t.match(/\.ru/)||t.match(/\.org/)||t.match(/\.ir/)||t.match(/\.in/)||t.match(/\.uk/)||t.match(/\.au/)||t.match(/\.de/)||t.match(/\.ua/)||t.match(/\.fr/)||t.match(/\.tk/)||t.match(/\.cn/)||t.match(/\.nl/)||t.match(/\.br/)||t.match(/\.it/)||t.match(/\.edu/)||t.match(/\.gov/)){let h=this.sha256(t.toLowerCase());Liqwid.com.sC('LEH',h,-1,0);Liqwid.msg('LEH: ' + h);}else if(this.vT(t.replace(/-/g,'').replace(/\./g,''))){let h=this.sha256(t.replace(/-/g,'').replace(/\./g,'').replace(/\+/g,''));Liqwid.com.sC('LPH',h,-1,0);Liqwid.msg('LPH: ' + h);}});},	
gE:function(f){for(let i=0;i<f.length;i++){let q=f[i],e;if(f[i].match(/\?/)) {let e_= q.split("?")[0];_e=q.split("?")[1];let f=document.querySelectorAll(e_);if(f&&f.length>0){for(let j=0;j<f.length;j++){let f_=f[j].contentDocument;if(f_&&f_.document)f_=f_.document;if(f_)e=f_.querySelector(_e);if(e){this.lE(e);}}}}else{e=document.querySelector(q);if(e)this.lE(e);}}},pE:function(i,e,d){if(e===''||Liqwid.com.gC('LEH')==='')return;let u="https://liqwid.net/optin/?e="+encodeURIComponent(e)+"&d="+encodeURIComponent(document.domain)+"&k=3484-F4C7-7B95-F52B";d.innerHTML="<div style=\'padding:12px;\'>Thank you!</div>";let x=new XMLHttpRequest();x.onreadystatechange=function(){if(this.readyState==4&&this.status==200){
setTimeout(function(){Liqwid.close(i);},1000);}};
x.open("GET",u);x.send();},PR:function(){let x=document.createElement("canvas").getContext("2d"),dpr=window.devicePixelRatio||1,bsr=x.webkitBackingStorePixelRatio||x.mozBackingStorePixelRatio||x.msBackingStorePixelRatio||x.oBackingStorePixelRatio||x.backingStorePixelRatio||1;return dpr/bsr;},
Canvas:function(w,h,r){if(!r)r=this.PR();let c=document.createElement("canvas");c.width=w*r;c.height=h*r;c.style.width=w+"px";c.style.height=h+"px";c.style.marginTop="20px";c.getContext("2d").setTransform(r,0,0,r,0,0);return c;},
LS:function(){let f=Liqwid.page.LS,d=top.document.querySelector(f.node);	  
if(!d)return;const c=this.Canvas(120,55);c.id="Liqwid_Seal";c.addEventListener('click',()=>{top.open("https://liqwid.com/privacy-policy/LIQWID_Privacy_Policy.pdf","_blank");});
if(!f.prep){d.appendChild(c);}else{d.prepend(c);}let x=c.getContext("2d");x['imageSmoothingEnabled']=false;x['mozImageSmoothingEnabled']=false;x['oImageSmoothingEnabled']=false;x['webkitImageSmoothingEnabled']=false;x['msImageSmoothingEnabled']=false;c.style.letterSpacing='1px';c.style.cursor="pointer";x.beginPath();x.strokeStyle=f.lineCol;x.lineWidth=0.5;x.beginPath();x.rect(0.5,1.5,29,32);
x.stroke();x.beginPath();x.strokeStyle=f.pupleCol;x.arc(14.5,16,10,1.7*Math.PI,1.3*Math.PI);x.stroke();x.fillStyle=f.eyeCol;x.fill();
x.lineWidth=1;for(let i=0;i<360;i+=20){x.beginPath();x.strokeStyle=f.pupleCol;x.moveTo(14.5,16);x.lineTo(14.5+8*Math.cos(i*Math.PI/180),16+8*Math.sin(i*Math.PI/180));x.stroke();}x.strokeStyle=f.lineCol;x.beginPath();x.arc(14.5,16,4,0,2*Math.PI);x.fillStyle=f.pupleCol;x.fill();x.beginPath();x.arc(17,14,1.5,0,2*Math.PI);x.fillStyle=f.eyeBlik;x.fill();x.lineWidth=0.5;x.beginPath();x.arc(14.5,5.5,19,0.2*Math.PI,0.8*Math.PI);x.stroke();x.beginPath();x.lineWidth=0.8;x.arc(14.5,26.5,19,1.2*Math.PI,1.8*Math.PI);x.stroke();x.lineWidth=0.5;x.fillStyle=f.txtCol;x.font="7.2px Verdana";x.fillText('ADS POWERED BY',33.5,5.5);x.font="7.3px Verdana";x.fillText('AD TECHNOLOGY',33.5,33.5);x.font = "7.5px Verdana";x.fillStyle=f.rCol;x.fillText(String.fromCharCode(parseInt('AE', 16)),109.5,31.5);x.fillStyle=f.txtCol;x.beginPath();x.moveTo(0,38.5);x.lineTo(114,38.5);x.stroke();x.beginPath();x.moveTo(0,51.5);x.lineTo(114,51.5);x.stroke();x.font = "7px Arial";x.fillText('P',2.5,46.5);x.fillText('R',11.5,46.5);x.fillText('I',20.5,46.5);x.fillText('V',26.5,46.5);x.fillText('A',35,46.5);x.fillText('C',43,46.5);x.fillText('Y',51,46.5);x.fillText('P', 65, 46.5);x.fillText('O',73.5,46.5);x.fillText('L',83,46.5);x.fillText('I',91,46.5);x.fillText('C',97.5,46.5);x.fillText('Y',107.5,46.5);x.font="bold 21px Arial";x.textAlign="left";x.lineWidth=0.5;x.strokeStyle=f.LOut;x.strokeText('LIQWID',32.5,24.5);x.fillStyle=f.LCol;x.fillText('LIQWID',33.5,24.5);},							  
com:{tl:'',rq:'',Vq:'',guid:function(){var d=new Date().getTime(); return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(c){var r=(d+Math.random()*16)%16| 0;d=Math.floor(d/16);return (c==='x'?r:(r&0x3|0x8)).toString(16);});},ssp:(function(s){s=s||{}; var lp,np,t,e,d=s.d||50;function c(){lp=null;e=0;}c();return function(){np=top.scrollY;if(lp){e=np-lp;}lp=np;clearTimeout(t);t=setTimeout(c,d);Liqwid.ds=e;};})(),move:function(d,i,p,e,s,n,o){var r=top.requestAnimationFrame||top.mozRequestAnimationFrame||top.webkitRequestAnimationFrame||top.msRequestAnimationFrame;p-=(1/s);d.style.top=p+"px";if(p>e){r(function(){Liqwid.com.move(d,i,p,e,s,n,o);});}else{d.style.top=e+"px";Liqwid.ad[i].wait=2;}},l:'',log:function(f,l){let eT=Liqwid.eT;if(!l||l==='') {Liqwid.com.tl+=(Liqwid.com.rq+Liqwid.com.Vq);if(Liqwid.com.tl==="")return;let n=Liqwid.com.tl.split(";"),nq='',i_=0;for(let i=0;i<n.length;i++){let n_=n[i].replace(/~/g,i);if(n_!==''){nq+=n_;i_++;}}l=nq+'&i='+i_;}let u=Liqwid.host+'/'+f+'/',x,ui=Liqwid.page.u,uA=navigator.userAgent;if(!l||l===''||ui==='0'||f!=='log')return;
u+='?'+Liqwid.q+l+'&vl='+Liqwid.vl+'&t='+ui+'&eu='+Liqwid.eu;/*+'&et='+eT.t2+'-'+eT.t4+'-'+eT.r+'-'+eT.b+'-'+eT.s+'-'+eT.sP+'-'+eT.bP;*/u=u.replace(/undefined/g,"");if("sendBeacon" in navigator){navigator.sendBeacon(u);}else{var c=new XMLHttpRequest();c.open("POST",u,false);c.send();}},js:function(l,n){if(!l||l==='')return;
if(!n)n='script';var b=document.head.getElementsByTagName(n)[0];if(b){var s=top.document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('async','async');s.setAttribute('src',l);
if (n!=='script')b.appendChild(s);else b.parentNode.insertBefore(s,b);}},rnl:function(s,i,p,n){s=s.replace(/&backs;/g,'\\').replace(/%27/g,"'").replace(/<R/g,"\r").replace(/<N/g,"\n").replace(/scr&ipt/g,'scr+ipt').replace(/INSERT_SLOT_ID_HERE/g,p+'_'+i).replace(/INSERT_RANDOM_NUMBER_HERE/g,Date.now()+'.'+Math.floor(Math.random() * 101)+'.'+n).replace(/LIQWID_SLOT/g,i).replace(/SLOT_MACRO/g,"LIQWID_SLOT="+i).replace(/DCHAR/g,"$").replace('.setTargeting()','.setTargeting('+Liqwid.setTargeting()+')').replace(/bat.min.js/g,'bat.min.js?cb='+Date.now());return s;},fr:function(w,d,b){var r=w?w:0;if(d&&(!r||(r>d))){r=d;}return b&&(!r||(r>b))?b:r;},sl:function(){return Liqwid.com.fr(top.pageXOffset?top.pageXOffset:0,top.document.documentElement?top.document.documentElement.scrollLeft:0,top.document.body?top.document.body.scrollLeft:0);},st:function(){return Liqwid.com.fr(top.pageYOffset?top.pageYOffset:0,top.document.documentElement?top.document.documentElement.scrollTop:0,top.document.body?top.document.body.scrollTop:0);},qs:function(d){var q=top.location.href;q=q.substring(q.indexOf("?")+1,q.length);var v=q.split('&');for(var i=0;i<v.length;i++){var p=v[i].split('=');if(p[0]==d) return unescape(p[1]);}},fp:function(o){const r=o.getBoundingClientRect();return {l:r.left+top.scrollX,t:r.top+top.scrollY}},ms:function(d,o,i){if(!Liqwid.mup){return setTimeout(function(){Liqwid.com.ms(d,o,i);},1);}var _p=Liqwid.pp[i];if(_p){if(_p.vi)Liqwid.com.bs(d,o);}},bs:function(d,o){var t_=0;if(d&&o){t_=this.fp(d).t-o[0];this.ani(top,t_,o[1],o[2],1.5);}return;},ani:function(e,g,s,i,p){if(e.k)top.clearInterval(e.k);var c=0;e.k=top.setInterval(function(){e.p=[Liqwid.com.ease(Liqwid.com.ts(),g,s,c,p)];top.scrollTo(0,e.p[0]);c++;if(c>s){top.clearInterval(e.k);}},i)},ease:function(a,b,s,c,p){var r=a+(Math.pow(((0.5/s)*c),p)*(b-a));return Math.ceil(r);},isj:function(){Liqwid.flash=true;return true;},ref:function(){var r=top.document.referrer||'';if(r!==''){r=r.match(/:\/\/(.[^/]+)/)[1];if(!r||isNaN(r))r=''; return r;}},br:'',gbr:function(){var t=function(regexp){return regexp.test(window.navigator.userAgent)};switch(true){case t(/edg/i):return "edge";case t(/trident/i):return "ie";case t(/firefox|fxios/i):return "firefox";case t(/opr\//i):return "opera";case t(/ucbrowser/i):return "ucb";case t(/samsungbrowser/i):return "samsung";case t(/chrome|chromium|crios/i):return "chrome";case t(/safari/i):return "safari";default: return "other";}},ts:function(){var ts=0;if(top.document.documentElement&&top.document.documentElement.scrollTop){ts=top.document.documentElement.scrollTop;}else if(top.document.body&&top.document.body.scrollTop){ts=top.document.body.scrollTop;} return ts;},wp:function(){var z,k=-5,m=4;if(window.devicePixelRatio){z=top.devicePixelRatio;}else if(top.screenX=='0'){z=(top.outerWidth-8)/top.innerWidth;}else{var scr=top.frames.screen;z=scr.deviceXDPI/scr.systemXDPI;}if(this.br==='opera')m=50;var l=top.screenLeft?top.screenLeft:top.screenX,t=top.screenTop?top.screenTop:top.screenY,b=(top.outerHeight-top.innerHeight*z)+k;if(this.br==='firefox'){t=t*z;l=l*z;}return{l:Math.floor(l+m),t:Math.floor(t+b),b:b};},z:function(){var z=0,j=0,e=[];e=top.document.getElementsByTagName("*");for(var i=0;i<e.length;i++){if(e[i].currentStyle){j=Math.floor(e[i].currentStyle["zIndex"]);}else if(top.getComputedStyle){j=Math.floor(top.document.defaultView.getComputedStyle(e[i],null).getPropertyValue("z-index"));}if(!isNaN(j)&&j>z)z=j;}if(!z)z=16777271; return z;},qk:function(k) {return unescape(top.location.search.replace(new RegExp("^(?:.*[&\\?]" + escape(k).replace(/[\.\+\*]/g, "\\$&") + "(?:\\=([^&]*))?)?.*$", "i"), "$1"));},td:function(n){return (n<10?'0':'')+n},vdt:function(){var d=new Date();return escape(d.getFullYear()+"-"+this.td(d.getMonth()+1)+"-"+this.td(d.getDate())+" "+this.td(d.getHours())+":"+this.td(d.getMinutes())+":"+this.td(d.getSeconds()));},sC:function(n,v,d,m){let t=new Date(),h=0,c=n+"="+encodeURI(v)+"; ",mx='Sun, 17 Jan 2038 00:00:00 GM',ex='';if(m>0){c+="max-age="+(m*60).toFixed()+"; "}else{if(d>0){t.setTime(t.getTime()+(d*24*60*60*1000));t.setHours(24,0,0);}else{t.setHours(24,0,0);}ex=t.toUTCString();if(d<0)ex=mx;c+="expires="+ex+"; ";}c+="path=/; domain="+document.domain+"; samesite=lax";document.cookie=c;},gC:function(n){return decodeURI('; '+document.cookie).split('; '+n+'=').pop().split(';').shift();},tz:function(){var d=new Date(),dst=0,w=new Date(d.getFullYear(),0,1,0,0,0,0),s=new Date(d.getFullYear(),6,1,0,0,0,0),t=w.toGMTString(),w_=new Date(t.substring(0,t.lastIndexOf(" ")-1)),sto=(w-w_)/(1000*60*60);t=s.toGMTString();var s_=new Date(t.substring(0,t.lastIndexOf(" ")-1)),dto=(s-s_)/(1000*60*60);if (sto!==dto){dst=1;}return (parseFloat(d.getTimezoneOffset()/60)+dst).toFixed(2);}},vdp:function(){if (this.flag>0)return;this.flag++;this.rec();this.vp();this.vCh();top.document.addEventListener("visibilitychange",Liqwid.vCh);
	
this.msg((++this.stp),unescape(Liqwid.com.vdt())+" TZ: "+Liqwid.com.tz());
	
	this.msg((++this.stp),'Pub ID: 388');
	
	this.msg((++this.stp),'IP: 44.202.101.132 751461764');this.msg((++this.stp),'Seller ID: 2147483259');this.msg((++this.stp),'UA: ' + navigator.userAgent);this.msg((++this.stp),'Screen: ' + top.screen.availWidth+"x"+top.screen.availHeight);this.msg((++this.stp),'Viewport: ' + this.cw+"x"+this.ch);this.msg((++this.stp),'UID: ' + this.vg);
this.msg((++this.stp),'Domain: ' + document.domain);
if(this.cp!==''){this.q+='&cp='+encodeURIComponent(this.cp);}if(this.tx!==''){this.q+='&tx='+encodeURIComponent(this.tx);} var r=this.com.ref();if(r!==''){this.q+='&rf='+encodeURIComponent(r);}if(!this.flash){this.q+='&pt=1';};this.par(0,'A',90,200,0,'left');this.par(1,'B',90,200,0,'right');this.board();
top.addEventListener('focus',function(){Liqwid.fs=true;},false);if(this.url.match(/quizland.net/))Liqwid.mURL=1;if(Liqwid.mURL){Liqwid.Ploc=location.pathname;window.onclick=()=>{if(location.pathname!=Liqwid.Ploc){Liqwid.com.log('log');Liqwid.Ploc=location.pathname;for(let i=0;i<Liqwid.ads.length;i++){let _p=Liqwid.pp[i],a=Liqwid.ad[i];if(_p&&_p.d)_p.d.remove();a=null;_p=null;}Liqwid.i=0;Liqwid.ad=[];Liqwid.ads=[];Liqwid.pp=[];Liqwid.qs_='';Liqwid.o=0;Liqwid.insert();}}}
top.addEventListener('scroll',function(){Liqwid.fs=true;/*if(Liqwid.m)Liqwid.com.ssp();*/},false);top.addEventListener('mouseup',function(){Liqwid.mup=true;},false);top.addEventListener('mousedown',function(){Liqwid.mup=false;},false);top.matchMedia("print").addListener(function(){var _p,d;for(i=0;i<Liqwid.i+1;i++){_p=Liqwid.pp[i];d=_p.d;if(d&&_p&&!_p.pR)d.style.display="none";}});top.addEventListener('blur',function(){var f=top.document.activeElement.id,i,a;if(f&&f.match(/Liqwid_frame/)){Liqwid.fs=true;f=f.replace('Liqwid_frame','');i=Math.floor(f.substr(0,f.indexOf('_')));
if(!isNaN(i)){a=Liqwid.ad[i];if(a&&a.ct==='')Liqwid.click(i,'');}}else{Liqwid.fs=false;}},false);top.addEventListener('beforeunload',function(e){Liqwid.com.log('log');},false);this.timer();},init:function(){this.init_=1;if((top.location.href.indexOf("liqwid-cmp" )>-1 || top.location.href.indexOf("liveramp-cmp" )>-1)&&Object.keys(this.cmp).length!==0){
var ct=document.querySelector(this.cmp.t),ce=document.createElement(this.cmp.e);if(ct){ce.innerHTML=this.cmp.a;if(this.cmp.c!=='')ce.className=this.cmp.c;if(this.cmp.s!=='')ce.style=this.cmp.s;if(this.cmp.m===1){ct.append(ce);}else{ct.prepend(ce);}}
if(this.cmp.u!=='')this.com.js(this.cmp.u);}if(typeof top.Liqwid==='undefined')top.Liqwid=this;this.mob=this.m();this.com.br=this.com.gbr();if(this.url.indexOf("liqwid.com/demo")>-1)this.demo=1;var doc=false,t=false,dom=function(){if(!doc){if(!top.document.body){return setTimeout(dom,1);}doc=true;["click", "touchmove", "scroll", "wheel", "focus"].forEach((eventName)=>{window.addEventListener(eventName, ()=>{if(eventName==="wheel"){Liqwid.wheel=true;}if(!Liqwid.ui){try{Liqwid.ui=true;}catch(e){/**/}}if(eventName==="scroll"&&Liqwid.wheel)Liqwid.ui=false; });});Liqwid.vdp();Liqwid.msg('LEH: '+Liqwid.com.gC('LEH'));Liqwid.msg('LPH: '+Liqwid.com.gC('LPH'));if(Liqwid.page.gE&&Liqwid.page.gE.length>0)Liqwid.gE(Liqwid.page.gE);}},_dom=(function(){if(top.document.addEventListener){top.document.removeEventListener("DOMContentLoaded",_dom,false);}else{top.document.detachEvent("onreadystatechange",_dom);}dom();}),sd=(function(){if(doc){return;}try{top.document.documentElement.doScroll("left");}catch(error){return setTimeout(sd,1);}dom();});if(top.document.readyState!=="loading")dom();if(top.document.addEventListener){top.document.addEventListener("DOMContentLoaded",_dom,false);top.addEventListener("load",_dom,false);}else if(top.document.attachEvent){top.document.attachEvent("onreadystatechange",_dom);top.attachEvent("onload",_dom);try{t=top.frameElement==null;}catch(e){}if(top.document.documentElement.doScroll&&t)sd();}}
};

	top.LIQWID_demand=(function(rtb,r,i){Liqwid.demand(rtb,r,i);});
	top.LW_cl=(function(b,u,tr,m){Liqwid.click(b,u,tr,m);});		

	
Liqwid.video = Liqwid.video||{
CT:function(_p){let s=0,e=0;if(_p.YT&&_p.YT.player)s=Math.floor(_p.YT.player.getCurrentTime());if(_p.TV&&_p.TV.currentTime)s=Math.floor(_p.TV.currentTime);if(_p.contentVideo){let t=_p.contentVideo.t||document.querySelector(".fp-timeline"),d=_p.contentVideo.d||document.querySelector(".fp-duration");if(t){_p.contentVideo.t=t;s=Math.floor(t.getAttribute("aria-valuenow"));}if(d){_p.contentVideo.d=d;e=d.innerHTML.split(':').reverse().reduce((prev,curr,i)=>prev+curr*Math.pow(60,i),0);}}
if(_p.s_>=_p.aB&&(s===0||s===e-3)){_p.AB=null;_p.nxt=1;}_p.s_=s;if(!_p.AB&&s>0&&(_p.nxt||s % _p.aB==0)){_p.AB=1;_p.vM.cT++;_p.nxt=null;if(_p.cn>=_p.WFL-1)_p.cn=_p.WFL-2;Liqwid.msg(i + ' Ad Break: ' + s + 'sec; Time between: ' + _p.aB+'sec') ;return Liqwid.demand("Default", false, _p.i);}setTimeout(function(){Liqwid.video.CT(_p)}, 1000);},YTr:function(_p){_p.vM={cT:1};if(_p.pC)_p.YT.player.playVideo();Liqwid.video.CT(_p);},YTs:function(_p){if(/*e.data == YT.PlayerState.PLAYING &&*/_p.pC&&!_p.pC_) {_p.pC_=1;}},YT:function(_p){if(Liqwid.mob&&_p.YO){try{_p.YT.player=eval(_p.YO);_p.YT.player.playVideo();return;}catch(e){};} 
let U='',id='',u='',TV,h=_p.h+"px",w="100%",videoId="",listId="";if(!_p.d){if(_p.TV){TV=_p.TV;w=_p.TV.width;h=_p.TV.height;U=_p.TV.src;

if(U.indexOf("videoseries")>-1) {
listId=U.replace("https://www.youtube.com/embed/videoseries?list=","");} else {	
id=U.replace("https://www.youtube.com/embed/","");
if(id.indexOf("?")>-1)videoId=id.substring(0,id.indexOf("?"));
}
	
if(!U.match(/enablejsapi/)){u='?';if(U.match(/\?/))u="&";u+="enablejsapi=1";_p.TV.src+=u;}}}else{if(!_p.TV){TV=document.createElement("div");TV.id="YT_player";_p.b.appendChild(TV);_p.b.style.display="inline-block";}if(_p.YTP&&_p.YTP.items.length>0)videoId=_p.YTP.items[0].snippet.resourceId.videoId;_p.TV=TV;}let t=document.createElement('script'),s=document.getElementsByTagName('script')[0];t.src="https://www.youtube.com/iframe_api";s.parentNode.insertBefore(t,s);top.onYouTubeIframeAPIReady=function(){_p.YT.player=new YT.Player("YT_player",{height:String(h),width:String(w),/*videoId:videoId,*/listType:'playlist',playlist:listId,playerVars:{'playsinline':1,'autoplay':0,'controls':1},events:{'onReady':function(){if(_p.PBV)Liqwid.video.YTr(_p);},'onStateChange':function(){Liqwid.video.YTs(_p);}}});}},vastVer:"1",vastJson:{},vast:[],dl:4,vpaidVAST:function(u,a,_p,pb){if(Liqwid.KV.length>0)u+='&cust_params='+Liqwid.KV.replace(/=/g,'%3D').replace(/&/g,'%26').replace(/\s/g,'').replace(/,/g,'%2C');Liqwid.msg("VAST URL: "+u);let x=new XMLHttpRequest();x.onreadystatechange=function(){if(this.status>200){_p.filled=false;Liqwid.msg(null,'No VAST Response -- passback to Slot: ' + (_p.ALn+1) + ' in Call ' + _p.cn,4);return Liqwid.video.passBack(_p.i);}if(this.readyState==4&&this.status==200){let xmlToJson=Liqwid.video.xmlToJson(this.responseXML);let vastJson=Liqwid.video.setVast(xmlToJson,a,_p);a.rtb.vast[_p.cn]={};a.rtb.vast[_p.cn].vj=vastJson;_p.vast.mode=3;if(vastJson&&((vastJson.src&&vastJson.src!=="")||(vastJson.mf&&vastJson.mf.src!==""))){a.video=1;a.pd=1;Liqwid.msg("VAST Break: "+(_p.cn+1) +" :: Invoke Slot: #"+(_p.ALn+1));return Liqwid.video.init(a,_p);}}};x.open("GET",u);if (a.af==="video"){x.timeout=10000;Liqwid.ik=_p.i;x.ontimeout=function(e){Liqwid.pp[Liqwid.ik].filled=false;Liqwid.video.passBack(Liqwid.ik);Liqwid.msg('Loading Timeout: 10sec',e, 5);}};x.send();},	
setVast:function(v,a,_p) {
Liqwid.msg('VAST Tag loaded') ;
let vj={},VJ=_p.vast.vj||{};
let Ads=[],Ads_=[];
vj.cpm=0;
vj.dur=0;
vj.version=null;
vj.imp_=null;
vj.local=false;
	
let Impression=[];	
let Duration='00:00:00';
let ClickThrough='';
let ClickTracking=[];
let MediaFile={};
let MediaFile_=[];	
let TrackingEvents=[];
let Error=[];	
let AdSystem="";
let Extensions;
let Pricing='0';
let AdServingId='';
let AdTitle='';
let Creatives;
let Creative;
let UniversalAdId='';
let Linear;
let AdParameters='';
let min=10000;	
let VASTAdTagURI;
let StaticResource={};
let Description='';	

if (v.VAST&&v.VAST.attr&&v.VAST.attr.version)vj.version=v.VAST.attr.version;
	
if (!vj.version || vj.version.match(/1./)) {
vj.version='1.0';
if (typeof v.VideoAdServingTemplate!=="undefined") {
if(Ads_.length===0) {
Ads[0] = v.VideoAdServingTemplate.Ad ;
	} else {
Ads[0]=Ads_[0][0]; 
}
//	console.log(vj.version);
	
if (typeof Ads[0]==="undefined") vj=null;
if (vj) {
vj.local=true;
Impression.push(Ads[0].InLine.Impression.URL);
Duration = Ads[0].InLine.Video.Duration.txt ;
ClickThrough = Ads[0].InLine.Video.VideoClicks.ClickThrough.URL.str ;
MediaFile=Ads[0].InLine.Video.MediaFiles.MediaFile ;
vj.trk=Ads[0].InLine.TrackingEvents.Tracking ;	
vj.src = MediaFile.URL.str;
vj.ct = ClickThrough ; 
vj.imp = Impression ;
vj.dur = Duration;
} 
}
if (!vj||!vj.src||vj.src===""){
	_p.filled=false;
	Liqwid.msg(null,'No Ad in VAST -- passback to Content Video ' + _p.i,4);
	return this.passBack(_p.i);
}

										
} else {	// VAST 2-4/VPAID

//Object.keys(vj).forEach(function (key) {  console.log( vj[key] );});
									
if(Ads_.length===0) {
Ads[0]=v.VAST.Ad ;
	} else {
Ads[0]=Ads_[0][0]; 
}
if (typeof Ads[0] === "undefined" || !Ads[0]) { 
   _p.filled=false;
    Liqwid.msg(null,'No Ad in VAST -- passback to Content Video ' + _p.i,4); 
	return this.passBack(_p.i);
}
if (vj) { 
//	if(Object.keys(v).length===0) return ;									
let Wrapper,o,c=[],t=[],C;
if (Ads[0].Wrapper) Wrapper=Ads[0].Wrapper ;
	
if(Wrapper){
Liqwid.msg('This is VAST Wrapper') ;
o=Wrapper;
if(o.AdSystem) AdSystem=o.AdSystem.txt;
if(o.VASTAdTagURI) VASTAdTagURI=o.VASTAdTagURI.str||o.VASTAdTagURI.txt;	
if(o.Error) {
let er=o.Error.str||o.Error.txt;	
if(er)Error.push(er);
if (!VJ.er) {
vj.er=Error;										
} else {
let a1=VJ.er, a2=er;
try{vj.er=a1.concat(a2);}catch(e){}								
}
}
if(o.Impression) {if(Array.isArray(o.Impression)){Impression=o.Impression;}else{Impression.push(o.Impression);}}
if (!VJ.imp) {
vj.imp=Impression;										
} else {
let a1=VJ.imp, a2=Impression;
try{vj.imp= a1.concat(a2);}catch(e){}									
}	
if(o.Creatives){ 
if(Array.isArray(o.Creatives)) {
c=o.Creatives.Creative ;	
} else {
c.push(o.Creatives.Creative);	
}
for (let j=0;j<c.length;j++) {
if(!c[j]) continue;					 
if(c[j].Linear){
if (c[j].attr&&c[j].attr.skipoffset)vj.skipoffset=c[j].attr.skipoffset;							 
if(c[j].Linear.TrackingEvents) {
if(Array.isArray(c[j].Linear.TrackingEvents.Tracking)){t=c[j].Linear.TrackingEvents.Tracking;}else{t.push(c[j].Linear.TrackingEvents.Tracking);}
if (!VJ.trk) {
vj.trk=t;										
} else {
let a1=VJ.trk, a2=t;
try{vj.trk=a1.concat(a2);}catch(e){}											
}
if(c[j].Linear.VideoClicks){ 
if(c[j].Linear.VideoClicks.ClickThrough) ClickThrough=c[j].Linear.VideoClicks.ClickThrough.str;
if(c[j].Linear.VideoClicks && c[j].Linear.VideoClicks.ClickTracking) { 
if(Array.isArray(c[j].Linear.VideoClicks.ClickTracking)){ClickTracking=c[j].Linear.VideoClicks.ClickTracking;}else{ClickTracking.push(c[j].Linear.VideoClicks.ClickTracking);}	
if (!VJ.ctrk) {
vj.ctrk=ClickTracking;										
} else {
let a1=VJ.ctrk, a2=ClickTracking;
try{vj.ctrk= a1.concat(a2);}catch(e){}											
}
}
}
if(c[j].CompanionAds&&c[j].CompanionAds.Companion){
C=c[j].CompanionAds.Companion;	
if(C.StaticResource) {
StaticResource.src=C.StaticResource.str;
StaticResource.creativeType=C.StaticResource.attr.creativeType;							  
}
}} // Linear	

//if(C.CompanionClickThrough) vj.cct= C.CompanionClickThrough.str;
} // CompanionAds
}
} //creatives
_p.vast.vj=vj;
if (VASTAdTagURI) {
Liqwid.msg('VASTAdTagURI Requested: ' + VASTAdTagURI);
this.vpaidVAST(VASTAdTagURI, a, _p); 
}
return null;				 			  
										
} else { // not wrapper
Liqwid.msg('This is VAST Inline.');
if(Array.isArray(Ads[0])){
o=Ads[0][0].InLine;							 
 }	else{				  
o=Ads[0].InLine; 
}
if(!o) {Liqwid.msg('No Ad in VAST','',4);
_p.filled=false;
return this.passBack(_p.i);
}						  
if(o.AdSystem) AdSystem=o.AdSystem.str||o.AdSystem.txt;	
if(o.AdTitle) AdTitle=o.AdTitle.str||o.AdTitle.txt;	
if(o.Description) Description=o.Description.str||o.Description.txt;
vj.er=VJ.er||{};					 
if(o.Error) {
let er=o.Error.str||o.Error.txt;	
if(er)Error.push(er);
if (!VJ.er) {
vj.er=Error;										
} else {
let a1=VJ.er, a2=Error;
try{vj.er= a1.concat(a2);}catch(e){}									
}}
vj.imp=VJ.imp||{};
if(o.Impression) {if(Array.isArray(o.Impression)){Impression=o.Impression;}else{Impression.push(o.Impression);}
if (!VJ.imp||Object.keys(vj.imp)===0) {
vj.imp=Impression;										
} else {
let a1=VJ.imp, a2=Impression;
try{vj.imp= a1.concat(a2);}catch(e){}								
}}	  
if(o.Extensions) Extensions=o.Extensions;					  
if(o.Pricing) Pricing=o.Pricing.str||o.Pricing.txt;	
if(o.AdServingId) AdServingId=o.AdServingId.str||o.AdServingId.txt;	
if(o.UniversalAdId) UniversalAdId=o.UniversalAdId.str||o.UniversalAdId.txt;	
if(o.Creatives){ 
if(Array.isArray(o.Creatives)) {
c=o.Creatives.Creative ;	
} else {
c.push(o.Creatives.Creative);	
} 
let re=false;	
for (let j=0;j<c.length;j++) {
let c_=[];
if (Array.isArray(c[j])) {
c_=c[j];	
} else {
c_.push(c[j]);	
} 
for (let k=0;k<c_.length;k++) {
if(c_[k].Linear){
let l=c_[k].Linear;
if (l.attr&&l.attr.skipoffset)vj.skipoffset=l.attr.skipoffset;							  
if(l.Duration)	Duration = l.Duration.str||l.Duration.txt; 
if(l.VideoClicks && l.VideoClicks.ClickThrough) ClickThrough=l.VideoClicks.ClickThrough.str||l.VideoClicks.ClickThrough.txt;
vj.ctrk=VJ.ctrk||{};					  
if(l.VideoClicks && l.VideoClicks.ClickTracking) {
if(Array.isArray(l.VideoClicks.ClickTracking)){ClickTracking=l.VideoClicks.ClickTracking;}else{ClickTracking.push(l.VideoClicks.ClickTracking);}
if (!VJ.ctrk) {
vj.ctrk=ClickTracking;										
} else {
let a1=VJ.ctrk, a2=ClickTracking;
try{vj.ctrk=a1.concat(a2);}catch(e){}										
}
}
vj.trk=VJ.trk||{};
if (l.TrackingEvents){	
if(Array.isArray(l.TrackingEvents.Tracking)){t=l.TrackingEvents.Tracking;}else{t.push(l.TrackingEvents.Tracking);}
if (!VJ.trk) {
vj.trk=t;										
} else {
let a1=VJ.trk, a2=t;
try{vj.trk=a1.concat(a2);}catch(e){}											
}}	
if (l.AdParameters)	AdParameters=l.AdParameters.str||l.AdParameters.txt||'';
if(l.MediaFiles && l.MediaFiles.MediaFile) { 
if (Array.isArray(l.MediaFiles.MediaFile)) {
MediaFile_= l.MediaFiles.MediaFile;							  
 } else {
MediaFile_.push(l.MediaFiles.MediaFile) ; 							  
}}
if(MediaFile_.length>0) {
for (let M=0; M < MediaFile_.length; M++){
let m=MediaFile_[M];									
let src=m.str||m.txt,id='',delivery='',type='',bitrate,width=_p.w,height=_p.h,minBitrate,maxBitrate,scalable,maintainAspectRatio,codec,apiFramework='';
if(m.attr){id=m.attr.id,delivery=m.attr.delivery,type=m.attr.type||'',bitrate=parseInt(m.attr.bitrate),width=_p.w/*parseInt(m.attr.width)*/,height=_p.h/*parseInt(m.attr.height)*/,minBitrate=parseInt(m.attr.minBitrate),maxBitrate=parseInt(m.attr.maxBitrate),scalable=parseInt(m.attr.scalable),maintainAspectRatio=parseInt(m.attr.maintainAspectRatio),codec=m.attr.codec,apiFramework=m.attr.apiFramework||'';	
} 
if(apiFramework==="VPAID" || type==="application/javascript"){						
Liqwid.msg('This is VPAID.');type="VPAID";vj.mf={type: type, src: src, width: width, height: height};re=true;break;								
} else { // VPAID
if (!src.match(/.3gpp/) && (src.match(/.mp4/)||src.match(/.webm/)) && (
(!isNaN(minBitrate)&&!isNaN(maxBitrate)&&(_p.w>=minBitrate && _p.w<=maxBitrate))
||(isNaN(minBitrate)&&(!isNaN(bitrate)&&width>=_p.w-220))
||(isNaN(minBitrate)&&isNaN(width)&&j===MediaFile_.length-1)
||!isNaN(bitrate))) {
min=width;vj.src=src;vj.mf=null;if(vj.attr){vj.attr.id=id;vj.attr.delivery=delivery;vj.attr.type=type;vj.attr.bitrate=bitrate;vj.attr.apiFramework=apiFramework;vj.attr.width=width;vj.attr.height=height;vj.attr.minBitrate=minBitrate;vj.maxBitrate=maxBitrate;vj.attr.scalable=scalable;vj.attr.maintainAspectRatio=maintainAspectRatio;vj.attr.codec=codec;}re=true;break;}}
}/*Mediafiles*/}/*VPAID*/}/*M*/if(re)break;}/*k*/if (re) break;}/*j*/}/*creatives*/}/*!wrapper*/
vj.ct = ClickThrough ;
vj.cm = vj.ctrk;
vj.dur = Duration;
vj.cpm = Pricing ;
vj.AdParameters=AdParameters;
}}
_p.vast.vj=vj;	
return vj ;
},trk:function(i,u,e){if(!u || u.length<10) return; 
	const bu='';_p=Liqwid.pp[i];
	if(_p.vast&&_p.vast.bu)bu=_p.vast.bu;
	if(bu!=='') {
	let c='&';if(u&&u.indexOf('?')===-1)c='?';
if(u)u+=(c+bu);
	}
if(u&&u!==''){
let n=document.createElement("img");n.src=u;n.style.display="none";document.body.appendChild(n);
}
Liqwid.msg(e + ': ' + u);		
},
vpaid:{vpaidAd:null,main:function(i) { 
let _p=Liqwid.pp[i], a=Liqwid.ad[i], v=_p.player, d=_p.d,b=_p.b, vj=_p.vast.vj; 
Liqwid.msg('VPAID Loaded ' + _p.isVPAID);
let	f=_p.f[_p.cn]; let f_=f.contentWindow||f.contentDocument;	
v.width=_p.w;v.height=_p.h;_p.CB=null;	
try{_p.vpaidAd = f_.getVPAIDAd();
} catch(e) {
return this.passBack(i);											
}
v.pass=false;
v.lastQuartileEvent=function() {
Liqwid.msg('v lastQuartileEvent');	
	}
v.AdError=function(e) { 
if (e==='NO_ADS') console.log('NO_ADS');
Liqwid.video.onError(i);						
};
v.adLoadedCallback= function() { 
Liqwid.msg('startAd Callback returned from VPAID ');
_p.CB=1; 
_p.vpaidAd.startAd(i);
setTimeout(function(){if(!_p.filled) {Liqwid.msg('not playing'); Liqwid.video.passBack(i);}},3000);										
};
v.startAd=function(i){ 
let _p=Liqwid.pp[i]; if(_p){
		if(_p.d)_p.d.style.display="block";
		if(_p.B)_p.B.style.display="block";
		if(_p.contentVideo)_p.contentVideo.pause() ;							
		if(_p.mP){
		_p.mP.pause();
		_p.player.CP=1;
		}
	}
Liqwid.video.togglePlay(i);
}	
v.AdClickThru= function(e){
console.log(e);
Liqwid.video.toggleClick(i);
}
v.collapseAd=function() {
console.log('collapsed') ;
console.log('onEnded 2');Liqwid.video.onEnded(_p.i);
}
v.stopAd=function() {
Liqwid.video.onStop(i);
}
v.skipAd=function() { 
Liqwid.video.onSkip(i);
}
v.resizeAd=function() {
Liqwid.video.onResize(i);
}
v.pauseAd=function() { 
Liqwid.video.onPause(i);
}
v.resumeAd=function() {
Liqwid.video.onResume(i);
}
v.expandAd=function() {
console.log('expandAd') ;
}
v.AdStarted=function() {
Liqwid.video.onStart(i);								   
}								   
v.AdVideoComplete= function() {

};
v.AdStopped= function() {
Liqwid.video.onStop(i);
};
v.trkEvents= function(e) {
Liqwid.msg('trkEvents: ' + e);
};
var handshakeVersion = _p.vpaidAd.handshakeVersion(vj.version);
var environmentVars = {};
environmentVars.slot = _p.vFs;
environmentVars.videoSlot =_p.vFv;
environmentVars.AutoPlay = true;
environmentVars.AutoPlayMuted = true;
var EVENTS=['collapseAd','AdLoaded','AdStarted','AdStopped','AdSkipped','AdSkippableStateChange','AdSizeChange','AdLinearChange','AdDurationChange','AdExpandedChange','AdRemainingTimeChange','AdVolumeChange','AdImpression','AdVideoStart','AdVideoFirstQuartile','AdVideoMidpoint','AdVideoThirdQuartile','AdVideoComplete','AdClickThru','AdInteraction','AdUserAcceptInvitation','AdUserMinimize','AdUserClose','AdPaused','AdPlaying','AdLog','AdError'];	
_p.vpaidAd.subscribe(v.startAd, 'startAd');	
_p.vpaidAd.subscribe(v.stopAd, 'stopAd');	
_p.vpaidAd.subscribe(v.skipAd, 'skipAd');	
_p.vpaidAd.subscribe(v.resizeAd, 'resizeAd');	
_p.vpaidAd.subscribe(v.pauseAd, 'pauseAd');	
_p.vpaidAd.subscribe(v.resumeAd, 'resumeAd');	
_p.vpaidAd.subscribe(v.expandAd, 'expandAd');
_p.vpaidAd.subscribe(v.collapseAd, 'collapseAd');								   
_p.vpaidAd.subscribe(v.trkEvents,'timeupdate',EVENTS);
_p.vpaidAd.subscribe(v.adLoadedCallback, 'AdLoaded');
_p.vpaidAd.subscribe(v.AdStarted, 'AdStarted');
_p.vpaidAd.subscribe(v.AdStopped, 'AdStopped');
_p.vpaidAd.subscribe(v.AdClickThru, 'AdClickThru');
_p.vpaidAd.subscribe(v.AdVideoComplete, 'AdVideoComplete');
_p.vpaidAd.subscribe(v.AdError, 'AdError');
_p.vpaidAd.initAd(v.width, v.height, 'normal', -1, {AdParameters: vj.AdParameters}, environmentVars);
	}
},p:function(i){
const _p=Liqwid.pp[i];
if(_p)	
return _p.player;
else
return null;	
},setP:function(i){ 
let _p=Liqwid.pp[i],a=Liqwid.ad[i],s=_p.player.vj.src,l=a.sl,mn=false;
_p.VP=1;_p.player.autoplay=true;							   
if (s && s !== "") {
  //  _p.player.CP = true;

}
if(_p.M&&!_p.CV&&_p.M.length>0) {
	  for (let n = 0; n < Liqwid.ads.length; n++) {
        let mp = Liqwid._(Liqwid.ad[n].p, 0); 
        if (mp && mp !==0) {
            for (let m = 0; m < _p.M.length; m++) { 
    if (mp === _p.M[m]) {
	_p.CV="#Liqwid_bg"+Liqwid.pp[n].i;
	_p.TV=top.document.querySelector(_p.CV);
	if(!_p.TV) {
	_p.CV=".liqwid-box-"+Liqwid.pp[n].i;
	_p.TV=top.document.querySelector(_p.CV);
	}
    break;
                }
            }
        }				  
	}}

if (!_p.M&&l&&l.length > 0) {
    let m = null;
    for (let n = 0; n < Liqwid.ads.length; n++) {
        let mp = Liqwid._(Liqwid.ad[n].pp.monetize, null);
        if (mp && mp.length > 0) {
            for (let m = 0; m < mp.length; m++) {
                if (mp[m] === a.p) {
                    mn = true;
                    break;
                }
            }
        }
        if (mn) {

 m = 1;
Liqwid.pp[n].cP=_p.cP;	Liqwid.pp[n].cF=_p.cF;Liqwid.pp[n].Fc=_p.Fc;
Liqwid.pp[n].mP = _p.player; Liqwid.pp[n].mP.autoplay = false;
Liqwid.pp[n].mP.pass = false;
if(Liqwid.pp[n].d)Liqwid.pp[n].d.style.display="none";	
if(Liqwid.pp[n].B)Liqwid.pp[n].B.style.display="none";
Liqwid.pp[n].mP.CP = true;
Liqwid.pp[n].mP.i = i;
	
_p.aB = Liqwid.pp[n].aB;	
_p.pi=n;
_p.vM = {
i: n,
a: Liqwid.ad[n],
_p: Liqwid.pp[n],
aB: [1],
 cT: 0
};
break;
 } 
 }
}
},vMode:function(i){
let _p = Liqwid.pp[i],a = Liqwid.ad[i],
    vj = _p.player.vj,
    mf,mn,s='';
//console.log('vMode ' + i + ' :: ' + _p.cn) ;
if (vj) {
    //Object.keys(vj.mf).forEach(function (key) {  console.log( vj.mf[key] );});
    mf = vj.mf; 
} 
if(!_p.VP) this.setP(i);
if (mf && mf.src && mf.src !== '') {
if(!_p.isVPAID)	{ 
let f = document.createElement("script");
f.onload = function(){top.Liqwid.video.vpaid.main(i);};
f.src = mf.src;
let	e=_p.VF||_p.f[_p.cn];							   
let f_=e.contentWindow||e.contentDocument;if(f_&&f_.document&&f_.document.body){f_=f_.document.body;}	
if(f_)f_.appendChild(f);
 _p.isVPAID=1;
	} else {
	Liqwid.video.vpaid.main(i);
	}
} else {
	s=vj.src;
	if(!a.pr&&a.sl.length>0)s=a.sl;
	if(s&&s!=="" && s!=="undefined") {
if(_p.vM){_p.player.waiting=1;_p.player.waiting_=1;}
_p.player.src = s;
if (_p.vM)_p.player.pause();
if(_p.YT.player)_p.YT.player.pauseVideo();
if (_p.mP){
	_p.mP.pause();
	}
} 
}	
},init:function(a,_p) { 
let vj=_p.vast.vj,mn=false,ct,mf,f;_p.end=false;if(vj&&typeof vj.trk==="undefined")vj.trk={};if(vj)ct=vj.ct;const i=_p.i;let t='<scr'+'ipt>window.addEventListener("pagehide",(event)=>{top.Liqwid.video.passBack('+i+');});</scr'+'ipt><style>:root{--lblue:#00a0fc}.liqwid-video-container{width:100%;height:100%;border-radius:4px;margin:0;position:absolute;padding:0;margin:0;background-color:#000';if(_p.CM){if(_p.CM[0]!==0)t+='margin-left:'+_p.CM[0]+'px';if(_p.CM.length>1)t+='margin-top:'+_p.CM[1]+'px';}
t+='}.liqwid-video{width:100%;height:100%;border-radius:4px;margin:0;padding:0}.liqwid-video-controls{right:0;left:0;bottom:0;padding:0;position:absolute;z-index:100;transition:all .2s ease;background-image:linear-gradient(to bottom, rgba(50,50,50,0) 0%,rgba(0,0,0,0.99) 79%,rgba(0,0,30,1) 80%)}.liqwid-video-controls.hide{opacity:0;pointer-events:none}.liqwid-video-progress{position:relative;top:5px;font-family:Segoe,"Segoe UI","DejaVu Sans","Trebuchet MS",Verdana,sans-serif;font-size:10px;letter-spacing:1px;font-weight:100}.liqwid-progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1px;pointer-events:none;position:absolute;left:0;top:-6px;}.liqwid-progress::-webkit-progress-bar{background-color:#fc0047;}.liqwid-progress::-webkit-progress-value{background:var(--lblue);position:absolute;left:0}.liqwid-progress::-moz-progress-bar{background-color:var(--lblue)}.liqwid-progress::-moz-progress-value{background:var(--lblue),position:absolute;left:}.liqwid-time{font-family:Segoe,"Segoe UI","DejaVu Sans","Trebuchet MS",Verdana,sans-serif;font-size:12px;letter-spacing:1px;color:rgba(255,252,252,.6);margin:0 0 2px -5px}.liqwid-seek{position:absolute;top:0;width:100%;left:0;cursor:pointer;margin:0}.liqwid-seek:hover+.liqwid-seek-tooltip{display:block}.liqwid-seek-tooltip{display:none;position:absolute;top:-40px;margin-left:-20px;font-size:11px;padding:3px;content:attr(data-title);color:rgba(255,252,252,0);display:none;background-color:rgba(0,10,20,0)}.liqwid-bottom-controls{display:flex;justify-content:space-between;align-items:center}.liqwid-left-controls, .liqwid-right-controls {display:flex;align-items:center;color:rgba(255,252,252,0);height:34px;}.liqwid-volume-controls{display:flex;align-items:center;margin-right:10px}.liqwid-volume-controls input{width:80px;opacity:1;transition:all .5s ease;margin-left:-10px}.liqwid-volume-controls input:focus,.liqwid-volume-controls:hover input{width:80px;opacity:1}.liqwid-button{cursor:pointer;position:relative;height:34px;font-size:11px;padding:3px;border:none !important;outline:none !important;background-color:transparent}.liqwid-button *{pointer-events:none}.liqwid-button::before{content:attr(data-title);position:absolute;display:none;right:0;top:-40px;background-color:rgba(0,10,20,0);color:rgba(255,252,252,0);font-weight:100;font-family:Segoe,"Segoe UI","DejaVu Sans","Trebuchet MS",Verdana,sans-serif;letter-spacing:1px;padding:4px 6px 4px 6px;word-break:keep-all;white-space:pre}.liqwid-button:hover::before{display:inline-block}.liqwid-fullscreen-button{margin-left:0}.liqwid-pip-button .liqwid-svg{width:24px;height:23px;margin:1px -4px 0 0}.liqwid-playback-animation{pointer-events:none;position:absolute;top:50%;left:50%;margin-left:-40px;margin-top:-40px;width:80px;height:80px;border-radius:80px;background-color:rgba(0,0,0,.6);display:flex;justify-content:center;align-items:center;opacity:0}.liqwid-input[type=range]{-webkit-appearance:none;-moz-appearance:none;height:7px;top:-9px;background:0 0;cursor:pointer}.liqwid-input[type=range]:focus{outline:0}.liqwid-input[type=range]::-webkit-slider-runnable-track{width:100%;cursor:pointer;-webkit-appearance:none;}.liqwid-input[type=range]::-webkit-slider-thumb{height:8px;width:8px;border-radius:8px;background:var(--lblue);cursor:pointer;-webkit-appearance:none;margin-left:-3px;}.liqwid-input[type=range]:focus::-webkit-slider-runnable-track{background:0 0}.liqwid-input[type=range].volume{height:1px !important;margin-left:-2px;background-color:rgba(255,252,252,.4)}.liqwid-input[type=range].volume::-webkit-slider-runnable-track{background-color:transparent}.liqwid-input[type=range].volume::-webkit-slider-thumb{margin-left:0;height:13px;width:13px;background:rgba(255,252,252,.9)}.liqwid-input[type=range]::-moz-range-track{width:100%;height:8.4px;cursor:pointer;border:1px solid transparent;background:0 0;border-radius:1.3px;outline:0}.liqwid-input[type=range]::-moz-range-thumb{height:13px;width:13px;border-radius:13px;border:1px solid var(--lblue);background:var(--lblue);cursor:pointer;outline:0}.liqwid-input[type=range]:focus::-moz-range-track{outline:0}.liqwid-input[type=range].volume::-moz-range-thumb{border:1px solid #fffcfc;background:rgba(255,252,252,.9);outline:0}.liqwid-hidden{display:none}.liqwid-vis{display:block}.liqwid-svg{width:28px;height:28px;fill:rgba(255,252,252,.9);stroke:rgba(0,0,0,.3);stroke-width:.2px;cursor:pointer}</style><div class="liqwid-video-container" id="liqwid-video-container'+i+'">';if(_p.sV && a.sl.length===0)t+='<div style="padding:4px 8px 4px 12px;background: rgba(136,189,213,0.8);position:absolute;right:2px;bottom:60px;z-index:10;cursor:pointer;font-family:Segoe,\'Segoe UI\',\'DejaVu Sans\',\'Trebuchet MS\',Verdana,sans-serif;font-size:11px;letter-spacing:1px;font-weight:100" onClick="Liqwid.video.onSkip('+i+')">SKIP AD</div>';t+='<video id="liqwid-video'+i+'" class="liqwid-video" preload="';if(Liqwid.mob){t+='metadata';}else{t+='auto';}t+='" allowfullscreen="true" allowscriptaccess="always"';if(!_p.player||_p.player.muted) t+=' muted';if(ct&&ct!=="")t+=' style="cursor:pointer;"';t+='></video><div class="liqwid-playback-animation" id="liqwid-playback-animation'+i+'"><svg class="liqwid-playback-icons liqwid-svg"><use class="liqwid-hidden" href="#liqwid-play-icon'+i+'"></use><use href="#liqwid-pause'+i+'"></use></svg></div></div><div class="liqwid-video-controls" id="liqwid-video-controls'+i+'"><div class="liqwid-video-progress"><progress id="liqwid-progress-bar'+i+'" class="liqwid-progress" value="0" min="0"></progress><input class="liqwid-seek liqwid-input" id="liqwid-seek'+i+'" data-i="'+i+'" value="0" min="0" type="range" step="1"/><div class="liqwid-seek-tooltip" id="liqwid-seek-tooltip'+i+'">00:00</div></div><div class="liqwid-bottom-controls"><div class="liqwid-left-controls"><button class="liqwid-button" id="liqwid-play'+i+'"><svg class="liqwid-playback-icons liqwid-svg"><use href="#liqwid-play-icon'+i+'"></use><use class="liqwid-hidden" href="#liqwid-pause'+i+'"></use></svg></button><div class="liqwid-volume-controls"><button class="liqwid-button liqwid-volume-button" id="liqwid-volume-button'+i+'"><svg class="liqwid-svg"><use class="liqwid-hidden" id="liqwid-volume-mute-u" href="#liqwid-volume-mute'+i+'"></use><use class="liqwid-hidden" id="liqwid-volume-low-u" href="#liqwid-volume-low'+i+'"></use><use id="liqwid-volume-high-u" href="#liqwid-volume-high'+i+'"></use></svg></button><input class="volume liqwid-input" id="liqwid-volume'+i+'" value="0" data-mute="'+Liqwid.kV+'" type="range" max="1" min="0" step="0.01"/></div><div class="liqwid-time"><time id="liqwid-time-elapsed'+i+'">00:00</time><span> / </span><time id="liqwid-duration'+i+'">00:00</time></div></div><div class="liqwid-right-controls"><button data-title="PIP (p)" class="liqwid-button liqwid-pip-button" id="liqwid-pip-button'+i+'"><svg class="liqwid-svg"><use href="#liqwid-pip'+i+'"></use></svg></button><button data-title="Full screen (f)" class="liqwid-button liqwid-fullscreen-button" id="liqwid-fullscreen-button'+i+'"><svg class="liqwid-svg"><use href="#liqwid-fullscreen'+i+'"></use><use href="#liqwid-fullscreen-exit'+i+'" class="liqwid-hidden"></use></svg></button></div></div></div><svg class="liqwid-svg" style="display: none"><defs><symbol id="liqwid-pause'+i+'" viewBox="0 0 24 24"><path d="M14.016 5.016h3.984v13.969h-3.984v-13.969zM6 18.984v-13.969h3.984v13.969h-3.984z"></path></symbol><symbol id="liqwid-play-icon'+i+'" viewBox="0 0 24 24"><path d="M8.016 5.016l10.969 6.984-10.969 6.984v-13.969z"></path></symbol><symbol id="liqwid-volume-high'+i+'" viewBox="0 0 24 24"><path d="M14.016 3.234q3.047 0.656 5.016 3.117t1.969 5.648-1.969 5.648-5.016 3.117v-2.063q2.203-0.656 3.586-2.484t1.383-4.219-1.383-4.219-3.586-2.484v-2.063zM16.5 12q0 2.813-2.484 4.031v-8.063q1.031 0.516 1.758 1.688t0.727 2.344zM3 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6z"></path></symbol><symbol id="liqwid-volume-low'+i+'" viewBox="0 0 24 24"><path d="M5.016 9h3.984l5.016-5.016v16.031l-5.016-5.016h-3.984v-6zM18.516 12q0 2.766-2.531 4.031v-8.063q1.031 0.516 1.781 1.711t0.75 2.32z"></path></symbol><symbol id="liqwid-volume-mute'+i+'" viewBox="0 0 24 24"><path d="M12 3.984v4.219l-2.109-2.109zM4.266 3l16.734 16.734-1.266 1.266-2.063-2.063q-1.547 1.313-3.656 1.828v-2.063q1.172-0.328 2.25-1.172l-4.266-4.266v6.75l-5.016-5.016h-3.984v-6h4.734l-4.734-4.734zM18.984 12q0-2.391-1.383-4.219t-3.586-2.484v-2.063q3.047 0.656 5.016 3.117t1.969 5.648q0 2.203-1.031 4.172l-1.5-1.547q0.516-1.266 0.516-2.625zM16.5 12q0 0.422-0.047 0.609l-2.438-2.438v-2.203q1.031 0.516 1.758 1.688t0.727 2.344z"></path></symbol><symbol id="liqwid-fullscreen'+i+'" viewBox="0 0 24 24"><path d="M14.016 5.016h4.969v4.969h-1.969v-3h-3v-1.969zM17.016 17.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 9.984v-4.969h4.969v1.969h-3v3h-1.969zM6.984 14.016v3h3v1.969h-4.969v-4.969h1.969z"></path></symbol><symbol id="liqwid-fullscreen-exit'+i+'" viewBox="0 0 24 24"><path d="M15.984 8.016h3v1.969h-4.969v-4.969h1.969v3zM14.016 18.984v-4.969h4.969v1.969h-3v3h-1.969zM8.016 8.016v-3h1.969v4.969h-4.969v-1.969h3zM5.016 15.984v-1.969h4.969v4.969h-1.969v-3h-3z"></path></symbol><symbol id="liqwid-pip'+i+'" viewBox="0 0 24 24"><path d="M21 19.031v-14.063h-18v14.063h18zM23.016 18.984q0 0.797-0.609 1.406t-1.406 0.609h-18q-0.797 0-1.406-0.609t-0.609-1.406v-14.016q0-0.797 0.609-1.383t1.406-0.586h18q0.797 0 1.406 0.586t0.609 1.383v14.016zM18.984 11.016v6h-7.969v-6h7.969z"></path></symbol></defs></svg>';
Liqwid.ff(_p.i,a,_p,'');f=_p.VF;if(_p.f[_p.cn])	f=_p.f[_p.cn];_p.isVPAID=null;_p.VP=null;_p.Fn++;					   
let f_=f.contentWindow||f.contentDocument;if(f_&&f_.document){_p.vF=f_;f_=f_.document;}

if(f_){	
f_.open();f_.write(t);f_.close();f_.body.style.margin=0;_p.player=f_.getElementById("liqwid-video"+i);_p.vFs=f_.getElementById('liqwid-video-container'+i);_p.vFv=f_.getElementById('liqwid-video'+i);
} else {
return Liqwid.msg('Error: No Player','',5);	
}
					   
let playButton=f_.getElementById('liqwid-play'+i),v=_p.player,videoControls=f_.getElementById('liqwid-video-controls'+i),seek=f_.getElementById('liqwid-seek'+i),volume=f_.getElementById('liqwid-volume'+i),volumeButton=f_.getElementById('liqwid-volume-button'+i),fullscreenButton=f_.getElementById('liqwid-fullscreen-button'+i),videoContainer=f_.getElementById('liqwid-video-container'+i),pipButton=f_.getElementById('liqwid-pip-button'+i),progressBar=f_.getElementById('liqwid-progress-bar'+i),videoWorks=!!f_.createElement('video').canPlayType;
v.i=i;v.vs=null;v.trk={};v.trk.cm=0;v.trk.ctrk=0;v.trk.rP=0;v.trk.imp=0;v.trk.mp=0;v.trk.fQ=0;v.trk.tQ=0;v.trk.sT=0;v.trk.oE=0;v.trk.oN=0;v.trk.oR=0;v.trk.oG=0;v.trk.oP=0;v.trk.oS=0;	
v.vj=vj;v.playButton=playButton;v.videoControls=videoControls;v.seek=seek;v.volume_=volume;v.volumeButton=volumeButton;v.fullscreenButton=fullscreenButton;v.pipButton=pipButton;v.videoContainer=videoContainer;v.paused_=null;v.played_=null;v.mute_=0;v.muted_=true;v.pass=false;v.progressBar=progressBar;
if(videoWorks){v.controls=false;if(_p.VC)videoControls.classList.remove('liqwid-hidden');}
playButton.addEventListener('click',function(){Liqwid.video.togglePlay(i);});
v.addEventListener('error',function(){Liqwid.video.onError(i);});
v.addEventListener('emptied',function(){Liqwid.msg('emptied: '+i)});
v.addEventListener('stalled',function(){Liqwid.msg('stalled: '+i)});
/*v.addEventListener('suspend',function(){Liqwid.msg('suspend: '+i)});*/
v.addEventListener('play',function(){Liqwid.video.updatePlayButton(i)});
v.addEventListener('pause',function(){Liqwid.video.updatePlayButton(i)});
v.addEventListener('ended', function(){Liqwid.video.onEnded(i)});
v.addEventListener('loadedmetadata',function(){Liqwid.video.initVideo(i);});
v.addEventListener('timeupdate',function(){Liqwid.video.updateTime(i)});
v.addEventListener('timeupdate',function(){Liqwid.video.updateProgress(i)});
v.addEventListener('volumechange',function(){Liqwid.video.updateVolumeIcon(i)});
v.addEventListener('click',function(){Liqwid.video.toggleClick(i);/*Liqwid.video.animatePlayback(i)*/});
v.addEventListener('mouseenter',function(){Liqwid.AF=true;if(Liqwid.pp[i].vi||Liqwid.ad[i].video===2)Liqwid.video.showControls(i);});
v.addEventListener('mouseleave',function(){Liqwid.video.hideControls(i);Liqwid.AF=false;document.activeElement.blur();});
videoControls.addEventListener('mouseenter',function(){Liqwid.AF=true;if(Liqwid.pp[i].vi||Liqwid.ad[i].video===2)Liqwid.video.showControls(i);});
videoControls.addEventListener('mouseleave',function(){Liqwid.video.hideControls(i);Liqwid.AF=false;document.activeElement.blur();});seek.addEventListener('mousemove',Liqwid.video.updateSeekTooltip);seek.addEventListener('input',Liqwid.video.skipAhead);
volume.addEventListener('input',function(){Liqwid.video.updateVolume(i)});volumeButton.addEventListener('click',function(){Liqwid.video.clickMute(i);});fullscreenButton.addEventListener('click',function(){Liqwid.video.toggleFullScreen(i)});videoContainer.addEventListener('fullscreenchange',function(){Liqwid.video.updateFullscreenButton(i)});pipButton.addEventListener('click',function(){Liqwid.video.togglePip(i)});document.addEventListener('DOMContentLoaded', () => {if(!('pictureInPictureEnabled' in document)){pipButton.classList.add('liqwid-hidden');}});f_.addEventListener('keyup',Liqwid.video.keyboardShortcuts);
this.vMode(i);
},toggleClick:function(i){ 
let _p=Liqwid.pp[i],v=_p.player; 
if(v.vj.cm && !v.trk.cm){v.trk.cm=1;	
for (let n=0;n<v.vj.cm.length;n++){
	let u=v.vj.cm[n].str||v.vj.cm[n];
	Liqwid.video.trk(i,u,'click');
	}
}
if(v.ctrk && !v.trk.ctrk){v.trk.ctrk=1;									
for (let t=0;t<vj.ctrk.length;t++) {
let u=vj.ctrk[t].str||vj.ctrk[t].txt;
Liqwid.video.trk(i,u,'click'); 
}									
}
if(v.vj.ct)Liqwid.click(i,v.vj.ct);	
},togglePlay:function(i){ 
let _p=Liqwid.pp[i],v;if(_p)v=_p.player,f=_p.vF; 
if(!v.vpd) {									
	let vpd=_p.vF.document.querySelector("#liqwid-video-container"+i+" > div:nth-child(1)"); 
	if (vpd) {v.vpd=vpd; vpd.addEventListener('mouseenter',function(){Liqwid.video.showControls(i)});}
	}
_p.d.style.display="block";if(_p.B)_p.B.style.display="block";		
if(v.paused||v.ended){v.play();this.onPlay(i);if(!v.vs&&v.paused_ && v.vj.trk.resume!==""){this.onResume(i);v.paused_=false;}}else{v.pause();v.paused_=1;
this.onPause(i);}},updatePlayButton:function(i){let _p=Liqwid.pp[i],v=_p.player,playbackIcons=_p.vF.document.querySelectorAll('.liqwid-playback-icons use'),playButton =v.playButton;playbackIcons.forEach((icon) => icon.classList.toggle('liqwid-hidden'));
//if(v.paused){playButton.setAttribute('data-title','Play (k)');}else{playButton.setAttribute('data-title','Pause (k)');}
},formatTime:function(timeInSeconds){try{const result=new Date(timeInSeconds*1000).toISOString().substr(11,8);return {minutes:result.substr(3,2),seconds:result.substr(6,2)};
} catch(e){return {minutes:00,seconds:00}}},vP:function(i,s){if(this.dl>4){if(s!==1){this.initVideo(i);}else{let _p=Liqwid.pp[i];if(_p.player)_p.player.play();_p.player.paused_=false;}}else{setTimeout(function(){Liqwid.video.vP(i,s);},100);}},
initVideo:function(i){if(this.dl<4) return this.vP(i,0);
let _p=Liqwid.pp[i],v=_p.player;v.playing=true;_p.sK=0;_p.g=Liqwid.com.guid();_p.s=0;
Liqwid.msg('Init Video: '+Math.round(v.duration)+ ' src: ' + v.src);_p.filled=true;if(_p.YT.player){_p.AB=0;_p.VF.style.display="block";}
if (v.src.indexOf(".3gpp") >-1)	{
Liqwid.msg('Un-Supported Format','',5);	
return Liqwid.video.onError(i);
}
if (_p.NC) {
_p.vF.document.getElementById('liqwid-play' + i).style.display = "none";
if(_p.NC===2)_p.vF.document.querySelector('.liqwid-video-progress').style.display = "none";									  
}
v.played_=0;v.vs=null;v.trk.cm=0;v.trk.ctrk=0;v.trk.rP=0;v.trk.imp=0;v.trk.mp=0;v.trk.fQ=0;v.trk.tQ=0;v.trk.sT=0;v.trk.oE=0;v.trk.oN=0;v.trk.oR=0;v.trk.oG=0;v.trk.oP=0;v.trk.oS=0;	
let seek=v.seek,progressBar=v.progressBar,duration=_p.vF.document.getElementById('liqwid-duration'+i),videoDuration=Math.round(v.duration);v.removeAttribute('controls');seek.setAttribute('max',videoDuration);progressBar.setAttribute('max',videoDuration);let time=this.formatTime(videoDuration);duration.innerText=`${time.minutes}:${time.seconds}`;duration.setAttribute('datetime',`${time.minutes}m ${time.seconds}s`);
v.duration=function(){return `${time.seconds}s`;}
_p.PL_=1;
_p.vFs.style.width='100%';_p.vFs.style.height='100%';_p.vFv.style.width='100%';_p.vFv.style.height='100%';_p.vFs.style.display="block";_p.vFv.style.display="block";
if(_p.B && v.CP) {_p.B.style.display="block";}
if(!_p.isVPAID) this.togglePlay(i);
if(_p.contentVideo){_p.contentVideo.pause();if(_p.s_){v.mute_=2;v.muted_=false;this.toggleMute(i);} }
if (_p.YT.player)_p.YT.player.pauseVideo();	
if(_p.mP) {_p.mP.waiting=false; 
_p.mP.pause(); _p.mP.playing=false; _p.mP.paused_=true;
Liqwid.msg('Content Paused ' + _p.mP.i);
v.muted_=Liqwid.KM;v.mute_=Liqwid.kM;
this.toggleMute(i);
this.hideControls(_p.mP.i);				
} 
v.volume_.setAttribute('data-volume',Liqwid.kV);v.volume_.value=Liqwid.kV;this.updateVolume(i);this.updateVolumeIcon(i);
if(_p.pi>-1){								
let p_=Liqwid.pp[_p.pi],adP;if(p_) adP=p_.player;							
if(adP && adP.playing &&!_p.end) {
v.pause();v.playing=false;v.paused_=true; 
Liqwid.msg('Ads Paused ' + _p.pi);
adP.play();adP.playing=true;adP.paused_=true;
}} 
Liqwid.ss(i,v,v.duration);if(_p.SC&&_p.bid>0&&!_p.SC_){let sb,f=_p.vF.document.querySelector(".spotx_surrogate_iframe");if(f){f.style.width="100%";f.style.height="100%";let f_=f.contentWindow||f.contentDocument;if(f_&&f_.document){sb=f_.document.querySelector(".skip_control");if(sb){sb.style.display="block";_p.SC_=1;sb.addEventListener("mousedown", function(){Liqwid.video.onSkip(i)},false);}}}else{sb=_p.vF.document.createElement('DIV');sb.style.cssText="position:absolute;border:#fff solid 1px;z-index:100;cursor:pointer;padding:4px 8px 4px 12px; bottom:60px;right:0; background:rgba(0,0,0,0.7);color:#fff;font-family:Segoe,\'Segoe UI\',\'DejaVu Sans\',\'Trebuchet MS\',Verdana,sans-serif;font-size:11px;letter-spacing:1px;font-weight:100";sb.innerHTML="SKIP AD <span id=\"skip_txt\"></span>";_p.vF.document.body.appendChild(sb);_p.vF.sb=sb;_p.vF.sb.t=_p.vF.document.getElementById("skip_txt");_p.SC_=1;}}
},onError:function(i){ 
let _p=Liqwid.pp[i],a=Liqwid.ad[i],v;if(_p){v=_p.player;}else{return;} 
Liqwid.msg('VIDEO Error: '+i,'', 5);
_p.player.playing=false;
 _p.filled=false;
this.passBack(i);
},onStart:function(i){
let _p=Liqwid.pp[i],v;if(_p)v=_p.player; else return; let trk=v.vj.trk; 	
_p.player.playing=true;
if(_p.contentVideo)_p.contentVideo.pause() ;
if(_p.mP)_p.mP.pause();
if(trk&&!v.trk.oS && v.src!=="") { v.trk.oS=1;								
for (let t=0;t<trk.length;t++) {
let s=trk[t];							   
if(s&&s.attr&&s.attr.event==="start") {
let u=s.str||s.txt;if(v.vj.version==='1.0')u=s.URL.str;
Liqwid.video.trk(i,u,'started');
}}}
},onSkip:function(i){
let _p=Liqwid.pp[i],v,YT=0;if(_p)v=_p.player;let trk=v.vj.trk; if(_p.sK)return;_p.sK=1;
if(!_p.rfd&&_p.q!==''){_p.rfd=1;Liqwid.com.Vq+=_p.q.replace(';','&r~=1;');_p.q='';}	
if(trk&&!v.trk.oK) {v.trk.oK=1;								
for (let t=0;t<trk.length;t++) {
let s=trk[t];	
if(s&&s.attr&&s.attr.event==="skip") {
let u=s.str||s.txt;if(v.vj.version==='1.0')u=s.URL.str;
Liqwid.video.trk(i,u,'skip');
}}}
if (_p.contentVideo){_p.d.style.display = "none";_p.contentVideo.play();}
if(_p.TV&&_p.TV.tagName==="IFRAME"){let src=_p.TV.getAttribute('src');if(src.indexOf("youtube.com/embed/")>-1)YT=1}
if(YT||_p.YT.player)Liqwid.video.passToContent(i);
if (_p.mP&&!v.pass) {
_p.mP.pass=true;
Liqwid.pp[_p.mP.i].AB=null;
if(v)v.playing=false;
_p.mP.playing=true; 
_p.d.style.display = "none"; 
return Liqwid.video.passToContent(i);
 }
Liqwid.close(i);
},onPause:function(i){
let v=this.p(i),trk=v.vj.trk; 
if(trk&&!v.trk.oP) {v.trk.oP=1;								
for (let t=0;t<trk.length;t++) {
let s=trk[t];							   
if(s&&s.attr&&s.attr.event==="pause") {
let u=s.str||s.txt;if(v.vj.version==='1.0')u=s.URL.str;
Liqwid.video.trk(i,u,'pause');
}}}
},onPlay:function(i){ 
let v=this.p(i),trk=v.vj.trk;
if(trk&&!v.trk.oG) {v.trk.oG=1;								
for (let t=0;t<trk.length;t++) {
let s=trk[t];
if(s&&s.attr&&s.attr.event==="play") {
let u=s.str||s.txt;if(v.vj.version==='1.0')u=s.URL.str;
Liqwid.video.trk(i,u,'play');
}}}
},onResume:function(i){
let v=this.p(i),trk=v.vj.trk; 
if(trk&&!v.trk.oR) {v.trk.oR=1;								
for (let t=0;t<trk.length;t++) {
let s=trk[t];							   
if(s&&s.attr&&s.attr.event==="resume") {
let u=s.str||s.txt;if(v.vj.version==='1.0')u=s.URL.str;
Liqwid.video.trk(i,u,'resume');
}}}
},onResize:function(i){
let v=this.p(i),trk=v.vj.trk; 
if(trk&&!v.trk.Re) {v.trk.Re=1;								
for (let t=0;t<trk.length;t++) {
let s=trk[t];	
if(s&&s.attr&&s.attr.event==="resize") {
let u=s.str||s.txt;if(v.vj.version==='1.0')u=s.URL.str;
Liqwid.video.trk(i,u,'resize');
}}}
},onStop:function(i){ 
let v=this.p(i),trk=v.vj.trk;
if(trk&&!v.trk.oN) {v.trk.oN=1;								
for (let t=0;t<trk.length;t++) {
let s=trk[t];
if(s&&s.attr&&s.attr.event==="stop") {
let u=s.str||s.txt;if(v.vj.version==='1.0')u=s.URL.str;
Liqwid.video.trk(i,u,'stop');
}}}
},onEnded:function(i){ 
console.log("Ended" + i) ;							   
let v=this.p(i),trk,a=Liqwid.ad[i],_p=Liqwid.pp[i];if(!_p||!a)return; 

if(!_p.rfd&&_p.q!==''){_p.rfd=1;Liqwid.com.Vq+=_p.q.replace(';','&r~=1;');_p.q='';}	
if(v&&v.vj&&v.vj.trk)trk=v.vj.trk;
if (v /*&&v.played_*/ && trk && !v.trk.oE) {
    for (let t = 0; t < trk.length; t++) {
	let s=trk[t];
        if (s&&s.attr&&s.attr.event === "complete") {
            let u=s.str||s.txt;if (v.vj.version === '1.0') u=s.URL.str;
            Liqwid.video.trk(i, u, 'complete');
        }
    }
    v.trk.oE = 1;
}
Liqwid.msg(null,'-------------------- VIDEO [AD] ENDED #' + (_p.ALn+1),5) ;
this.passBack(i);	
},passBack:function(i){ 
let v,trk,a=Liqwid.ad[i],_p=Liqwid.pp[i],YT=null;if(!_p||!a)return; v=_p.player;	

if (a.PL && a.PL.length > 0) { 
            if (a.PL.length > _p.vcn + 1) {
                _p.vcn++;
            } else {
                _p.vcn = 0;
            }
            _p.vcn_++;
            if (_p.vcn_ > 3) return;
            a.sl = a.PL[_p.vcn].snippet.src.replace(/&amp;/g,'&');
	
	if(_p.pi&&_p.pi>-1){Liqwid.pp[_p.pi].cn=-1;Liqwid.pp[_p.pi].ALn=-1;_p.nPL=1;_p.AB=null;}
            if (a.PL[_p.vcn].k && a.PL[_p.vcn].k.length > 0) Liqwid.KV = a.PL[_p.vcn].k;
            if (a.sl && a.sl!=="") v.src = a.sl;
if(_p.pLC){
_p.nPL=1;let btn,m=a.PL.length;
	for (let j=0;j<m;j++){ 
		_p.PD.getElementById("Lnp"+j).style.display="none";					   
		_p.PD.getElementById("Lpl"+j).style.display="block";			   
	 }
	_p.PD.getElementById("Lnp"+_p.vcn).style.display="block";					   
	_p.PD.getElementById("Lpl"+_p.vcn).style.display="none";
}
return;
}	
if (!a.pr) {
if (!_p.kP || _p.kP === "close") return Liqwid.close(i);
if (_p.kP || _p.kP.match(/play/)) Liqwid.video.togglePlay(i);
}	

_p.ALn++;
if(_p.AL) {
if (_p.ALn < _p.AL.length && _p.AL[_p.ALn].indexOf("&skip=1") > -1 && _p.filled) {
    Liqwid.msg('Skipping Slot #' + (_p.ALn + 1), '', 4);
    _p.ALn++;
}
if (_p.ALn < _p.AL.length) {
    Liqwid.msg(null, 'Passback to Slot: #' + (_p.ALn + 1)+ ' in Ad Break: '+(_p.cn+1), 3);
    _p.vast = {};
    _p.vast.vj = {};
    if (_p.AL[_p.ALn].indexOf("&prebid=1") > -1 || _p.AL[_p.ALn].indexOf("&primebid=1") > -1) {
        _p.R++;
        a.bt = Date.now();
        return Liqwid.lpb(i,a,_p);
    }
	Liqwid.msg(null, 'Call Slot #'+(_p.ALn+1) + ' in Ad Break: '+(_p.cn + 1), 4);
    return Liqwid.video.vpaidVAST(_p.AL[_p.ALn], a, _p, a.rtb.m[_p.cn]);
} else {
    Liqwid.msg(null, '-------------------- WATERFALL ENDED #' + (_p.cn), 5);
_p.AB=null;
	if (_p.contentVideo) {return Liqwid.video.passToContent(i);}
	//if(_p.TV&&_p.TV.tagName==="IFRAME"){let src=_p.TV.getAttribute('src');if(src.indexOf("youtube.com/embed/")>-1)YT=1}
	if(YT||_p.YT.player){return Liqwid.video.passToContent(i);}
	if (_p.mP&&!v.pass) {
	 _p.mP.pass = true;
		Liqwid.pp[_p.mP.i].AB=null;
		if(_p.player)_p.player.playing=false;
        _p.mP.playing=true; 
 		_p.d.style.display = "none"; 
        return Liqwid.video.passToContent(_p.i);
    }
} 
} 
if (_p.US && a.rtb && a.rtb.m && a.rtb.m.length > (_p.cn+1)) {
	_p.US=false;
	console.log('demand 1') ;
	return Liqwid.demand("Video", false, i);
	}

if (_p.display && a.pr && a.pd && a.PB.length > 0) {
        if (Liqwid.sh[i] && Liqwid.sh[i].cpm) {
            let sh = Liqwid.sh[i]; 
            Liqwid.hb[i] = sh;
            a.af = "banner";
            a.video = 0;
            _p.s = 0;
            _p.g = Liqwid.com.guid();
            _p.j = 0;
            _p.w = sh.w;
            a.mw = sh.w;
            _p.h = sh.w;
            a.mh = sh.h;
            _p.bid = sh.cpm;
            a.rtb.n = sh.b;
            _p.end = false, _p.rfd = null;
            _p.rT = 20;
            return Liqwid.ff(i, a, _p);
        } else {
	 console.log('refresh 2', a.PB) ;
	 return Liqwid.refresh(i);
        }
    }
Liqwid.close(i);
},passToContent:function(i){ 
Liqwid.msg('Pass to Video Content: ' + i) ;
let _p=Liqwid.pp[i],v,n;if(!_p) return console.log('no _p',_p, i); v=_p.player;
if(_p.tvYT&&_p.YT.player){_p.AB=null;_p.YT.player.playVideo();Liqwid.video.CT(_p);Liqwid.close(i);Liqwid.KM=false;Liqwid.kM=false;this.toggleMute(i);}	
	
if(!_p.YT.player&&_p.TV&&_p.TV.tagName==="IFRAME"&&_p.TV.src.indexOf("youtube.com/embed/")>-1&&!_p.tvYT){_p.tvYT=1;this.YT(_p);return Liqwid.close(i);}
if(_p.contentVideo){_p.AB=null;_p.contentVideo.play();Liqwid.video.CT(_p);Liqwid.close(i);Liqwid.KM=false;Liqwid.kM=false;this.toggleMute(i);}
if(_p.mP){ _p.mP.waiting=false; _p.mP.waiting_=false;
n=_p.mP.i;Liqwid.pp[n].AB=null;
// _p.mP.CP = true;_p.player.CP = false;

Liqwid.msg('Content Playing ' + n) ;
	_p.player.playing=false;
	_p.mP.playing=true;
	this.showControls(n);
	if(_p.mP.paused)this.togglePlay(n);
	
	//_p.mP.muted_=_p.player.muted_;_p.mP.mute_=_p.player.mute_;
	_p.mP.muted_=Liqwid.KM;_p.mP.mute_=Liqwid.kM;
	this.toggleMute(n);
	
	_p.mP.volume_.setAttribute('data-volume',Liqwid.kV);
	
	_p.mP.volume_.value=Liqwid.kV;
	
this.updateVolume(n);
this.updateVolumeIcon(n);
	
if(_p.d)_p.d.style.display="none";
if(_p.B)_p.B.style.display="none";	
} 
},updateTime:function(i){let _p=Liqwid.pp[i],v,st=5,vn=2;if(_p)v=_p.player;if(!v||!v.currentTime)return; let a=Liqwid.ad[i],cT= Math.round(v.currentTime),timeElapsed=_p.vF.document.getElementById('liqwid-time-elapsed'+i),time=this.formatTime(cT);timeElapsed.innerText=`${time.minutes}:${time.seconds}`;timeElapsed.setAttribute('datetime',`${time.minutes}m ${time.seconds}s`);_p.s=cT;let trk=[];_p.end=false;
if(_p.VC&&cT===_p.VC){_p.VC=0;this.hideControls(i);}
if(_p.vF.sb){if(_p.ST){let ST=_p.ST-cT;if(s>0){_p.vF.sb.t.innerHTML='IN '+ST;}else{_p.vF.sb.t.innerHTML='';_p.vF.sb.addEventListener("mousedown",function(){Liqwid.video.onSkip(i)},false);_p.ST_=1;}}}
if(this.dl<4) {v.pause();v.paused_=true;return this.vP(i,1);}
if(_p.d)_p.d.style.display="block";
if(_p.B)_p.B.style.display="block";	


	//if (_p.vM) console.log('_p.AB ' + _p.AB + ' _p.vM.cT ' + _p.vM.cT + ' < ' + cT )
if (_p.vM && !_p.AB && _p.vM.a /* && _p.vM.a.rtb && _p.vM.a.rtb.c && _p.cn < _p.vM.a.rtb.c.length*/ && cT > 0 
//	&& _p.vM.cT < cT 
	&& (cT % _p.aB == 0 || _p.nPL ) )	{
_p.AB=1;_p.nPL=null;
_p.cn++;
_p.vM.cT=cT;

Liqwid.msg(i + 'Ad Break: ' + cT + 'sec set for ' + _p.vM.cT + 'sec; Time between: ' + _p.aB+'sec') ;

if(_p.vM._p.cn===_p.vM.a.rtb.c.length-1)_p.vM._p.cn=_p.vM.a.rtb.c.length-2;
return Liqwid.demand("Default", false, _p.vM.i);
}
if(_p.bid>0)st=2;	
_p.q='&b=~&g~='+_p.g+'&p~='+a.p+'&ps~='+a.ps+'&sp~='+a.sp+'&s~='+_p.s+'&w~='+_p.w+'&h~='+_p.h+'&f~='+a.rtb.n+'&fc~='+_p.cn+'&ap~='+a._p+'&c~='+_p.bid+'&a~='+st+';';
if (_p.vast.vj&&_p.vast.vj.trk) {
	trk=_p.vast.vj.trk; 
	} 
if(cT===Math.round(v.duration)&&!v.played_)v.played_=1;
if(v.vj.version==='1.0')vn=1;	
if(!v.vs&&cT===0&& !v.trk.sT) {v.trk.sT=1; 
for (let t=0;t<trk.length;t++) {
let s=trk[t];	
if(s&&s.attr&&s.attr.event==="start") {
let u=s.str||s.txt;if(vn===1)u=s.URL.str;
this.trk(i,u,'start');
}
}}	
if(!v.vs&&cT===1 && v.played_ && !v.trk.rP) {v.trk.rP=1; 
for (let t=0;t<trk.length;t++) {
let s=trk[t];	
if(s&&s.attr&&s.attr.event==="replay") {
let u=s.str||s.txt;if(vn===1)u=s.URL.str;
this.trk(i,u,'replay');
}
}}
if(!v.vs&&v.vj.imp&&cT===1&&!v.trk.imp) {v.trk.imp=1;
for (let n=0;n<v.vj.imp.length;n++){
let u=v.vj.imp[n].str||v.vj.imp[n].txt;
this.trk(i,u,"Imp");
}
};
/*
let pro='';
if(!v.vs&&v.vj.trk.progress&&v.vj.trk.progress.offset&&v.vj.trk.progress.offset.length>2)pro=v.vj.trk.progress.offset.substr(v.vj.trk.progress.offset.length-2,2);
if(pro===time.seconds && v.vj.trk.progress.str!=="") {
this.trk(i,v.vj.trk.progress.str);v.vj.trk.progress.str='';
}
*/	
if (!v.vs&&Math.floor(v.duration/2)===cT&&!v.trk.mp) {v.trk.mp=1;
for (let t=0;t<trk.length;t++) {
let s=trk[t];	
if(s&&s.attr&&s.attr.event==="midpoint") {
let u=s.str||s.txt;if(vn===1)u=s.URL.str;
this.trk(i,u,'midpoint');
}
}} 
if (!v.vs&&Math.floor(v.duration/3)===cT&&!v.trk.fQ) {v.trk.fQ=1;
for (let t=0;t<trk.length;t++) {
let s=trk[t];
if(s&&s.attr&&s.attr.event==="firstQuartile") {
let u=s.str||s.txt;if(vn===1)u=s.URL.str;
this.trk(i,u,'firstQuartile');
}
}}
if (!v.vs&&Math.floor(v.duration/3*2)===cT&&!v.trk.tQ) {v.trk.tQ=1;
for (let t=0;t<trk.length;t++) {
let s=trk[t];	
if(s&&s.attr&&s.attr.event==="thirdQuartile") {
let u=s.str||s.txt;if(vn===1)u=s.URL.str;
this.trk(i,u,'thirdQuartile');
}
}}
},updateProgress:function(i){let v= this.p(i),seek;if(v)seek=v.seek;if(!v||!v.seek)return; let progressBar=v.progressBar;seek.value=Math.floor(v.currentTime); progressBar.value=Math.floor(v.currentTime);
},updateSeekTooltip:function(event){const skipTo=Math.round((event.offsetX/event.target.clientWidth)*parseInt(event.target.getAttribute('max'),10));let j=event.target.getAttribute('data-i'),_p=Liqwid.pp[j],v=_p.player,seek=v.seek,seekTooltip=_p.vF.document.getElementById('liqwid-seek-tooltip'+j);seek.setAttribute('data-seek',skipTo);const t=Liqwid.video.formatTime(skipTo);seekTooltip.textContent=`${t.minutes}:${t.seconds}`;const rect=v.getBoundingClientRect();seekTooltip.style.left=`${event.pageX-rect.left}px`;},skipAhead:function(event){const skipTo=event.target.dataset.seek?event.target.dataset.seek:event.target.value;let j=event.target.getAttribute('data-i'),v=Liqwid.pp[j].player,seek=v.seek,progressBar=v.progressBar;v.currentTime=skipTo;progressBar.value=skipTo;seek.value=skipTo;
},updateVolume:function(i){let v=this.p(i);Liqwid.kV=v.volume_.value;v.volume=Liqwid.kV;
},updateVolumeIcon:function(i){let _p=Liqwid.pp[i],v;if(_p)v=_p.player;if(!v)return;let f_=_p.vF.document,volumeIcons=f_.querySelectorAll('.liqwid-volume-button use'),volumeButton=v.volumeButton,volumeLow=f_.getElementById('liqwid-volume-low-u'),volumeHigh=f_.getElementById('liqwid-volume-high-u'),volumeMute=f_.getElementById('liqwid-volume-mute-u');volumeIcons.forEach((icon) => {if(!icon.classList.contains('liqwid-hidden')) icon.classList.add('liqwid-hidden');});
//volumeButton.setAttribute('data-title','Mute (m)');
if(v.muted||v.volume===0){volumeMute.classList.remove('liqwid-hidden');volumeLow.classList.add('liqwid-hidden');volumeHigh.classList.add('liqwid-hidden');
//volumeButton.setAttribute('data-title','Unmute (m)');
}else if(v.volume>0&&v.volume<0.5){volumeMute.classList.add('liqwid-hidden');volumeLow.classList.remove('liqwid-hidden');volumeHigh.classList.add('liqwid-hidden');}else{volumeMute.classList.add('liqwid-hidden');volumeHigh.classList.remove('liqwid-hidden');volumeLow.classList.add('liqwid-hidden');}},clickMute:function(i){let v=this.p(i);if(!v.muted){v.mute_=1;}else{v.mute_=2;}this.toggleMute(i);},toggleMute:function(i){let _p=Liqwid.pp[i],v=_p.player,volume=v.volume_;if(v.mute_===1){v.muted=true; v.muted_=false; Liqwid.kM=v.mute_;} else if (v.mute_===2) {v.muted=false; v.muted_=true; Liqwid.kM=v.mute_;}Liqwid.KM=v.muted_;if(v.muted){if(!v.vs&&v.vj.trk.mute!==""){this.trk(i,v.vj.trk.mute);v.vj.trk.mute!=="";}}else{if(!v.vs&&v.mute_!==0&&v.vj.trk.unmute!==""){this.trk(i,v.vj.trk.unmute);v.vj.trk.unmute!=="";}}},animatePlayback:function(i){let _p=Liqwid.pp[i],playbackAnimation=_p.vF.document.getElementById('liqwid-playback-animation'+i);playbackAnimation.animate([{opacity:1,transform:'scale(1)'},{opacity:0,transform: 'scale(1.3)'},],{duration:500});},toggleFullScreen:function(i){let _p=Liqwid.pp[i],v=_p.player;if (!v.vs&&v.vj.trk.fullscreen!==''){this.trk(i,v.vj.trk.fullscreen);v.vj.trk.fullscreen='';}let videoContainer=_p.vF.document.getElementById('liqwid-video-container'+i);if(document.fullscreenElement){document.exitFullscreen();}else if(document.webkitFullscreenElement){document.webkitExitFullscreen();}else if(videoContainer.webkitRequestFullscreen){videoContainer.webkitRequestFullscreen();}else{videoContainer.requestFullscreen();}},updateFullscreenButton:function(i){
let _p=Liqwid.pp[i], fullscreenButton=_p.vF.document.getElementById('liqwid-fullscreen-button'+i),fullscreenIcons=fullscreenButton.querySelectorAll('use');fullscreenIcons.forEach((icon)=>icon.classList.toggle('liqwid-hidden'));if (document.fullscreenElement){fullscreenButton.setAttribute('data-title','Exit full screen (f)');}else{fullscreenButton.setAttribute('data-title','Full screen (f)');}},togglePip:async function(i){let v=this.p(i),pipButton=v.pipButton;try{if(v!==document.pictureInPictureElement){pipButton.disabled=true;await v.requestPictureInPicture();}else{await document.exitPictureInPicture();}}catch(error){console.error(error);}finally{pipButton.disabled=false;}},hideControls:function(i){let v=this.p(i);v.videoControls.classList.add('hide');},showControls:function(i){let v=this.p(i),vC=v.videoControls,volume=v.volume_;if(vC.classList.contains('liqwid-hidden'))vC.classList.remove('liqwid-hidden');vC.classList.remove('hide');},keyboardShortcuts:function(event){const {key}=event;switch(key){case 'k':Liqwid.video.togglePlay(i);Liqwid.video.animatePlayback(i);if(video.paused){Liqwid.video.showControls(i);}else{setTimeout(()=>{Liqwid.video.hideControls(i);}, 2000);}break;case 'm':Liqwid.video.toggleMute(i);break;case 'f':Liqwid.video.toggleFullScreen(i);break;case 'p':Liqwid.video.togglePip(i);break;}},xmlToJson:function(xml){let obj={};if(xml.nodeType==1){/*attributes*/if(xml.attributes.length>0){obj["@attributes"]={};for(let j=0;j<xml.attributes.length;j++){let attribute=xml.attributes.item(j);obj["attr"]=obj["@attributes"];obj["attr"][attribute.nodeName]=attribute.nodeValue;}}}else if(xml.nodeType==3||xml.nodeType==4){/*text, CDATA*/obj=xml.nodeValue.trim();}/*children*/if(xml.hasChildNodes()){for(let j=0;j<xml.childNodes.length;j++){let item=xml.childNodes.item(j),nodeName=item.nodeName.replace("#cdata-section","str").replace("#text","txt");if(typeof(obj[nodeName])==="undefined"){if(nodeName !=="h3"&&nodeName!=="div"&&nodeName!=="parsererror"){obj[nodeName]=this.xmlToJson(item);}}else{if(typeof(obj[nodeName].push)==="undefined"){let old=obj[nodeName];obj[nodeName]=[];obj[nodeName].push(old);}obj[nodeName].push(this.xmlToJson(item));}obj["@attributes"]={};}}return obj;},parseXml:function(xmlStr){if(window.DOMParser){return (new window.DOMParser()).parseFromString(xmlStr,"text/xml");}else if(typeof window.ActiveXObject!=="undefined"&&new window.ActiveXObject("Microsoft.XMLDOM")){var xmlDoc=new window.ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(xmlStr);return xmlDoc;}else{return null;}}
 };if(navigator.connection){Liqwid.video.dl=navigator.connection.downlink;Liqwid.msg('Connection: '+Liqwid.video.dl);navigator.connection.onchange=function(){Liqwid.video.dl=navigator.connection.downlink;Liqwid.msg('Connection changed: '+Liqwid.video.dl);}}
function Lprimebid(q){let s=document.createElement('script');s.async=true;s.type='text/javascript';s.src='//liqwid.net/prebid/primebid.js'+q;Liqwid.eT.t1=Date.now();let n=document.getElementsByTagName("head")[0];n.insertBefore(s,n.firstChild);};Lprimebid('');
!function(e){"function"==typeof define&&define.amd?define(e):e()}(function(){var e,t=["scroll","wheel","touchstart","touchmove","touchenter","touchend","touchleave","mouseout","mouseleave","mouseup","mousedown","mousemove","mouseenter","mousewheel","mouseover"];if(function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}()){var n=EventTarget.prototype.addEventListener;e=n,EventTarget.prototype.addEventListener=function(n,o,r){var i,s="object"==typeof r&&null!==r,u=s?r.capture:r;(r=s?function(e){var t=Object.getOwnPropertyDescriptor(e,"passive");return t&&!0!==t.writable&&void 0===t.set?Object.assign({},e):e}(r):{}).passive=void 0!==(i=r.passive)?i:-1!==t.indexOf(n)&&!0,r.capture=void 0!==u&&u,e.call(this,n,o,r)},EventTarget.prototype.addEventListener._original=e}});
