452ad6fb9a34a4fcd7d7e61f9292ec31cca5d74d195d558fecacfff11b7ca352

Source Code:

!function(i){var n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return i[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.m=i,o.c=n,o.d=function(e,t,i){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)o.d(i,n,function(e){return t[e]}.bind(null,n));return i},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=5)}([function(t,e){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(e){return typeof e}:t.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}t.exports=i},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}},function(e,t,i){var n,o,r;function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}o=[],void 0===(r="function"==typeof(n=function(){function m(e){var t,i;if(this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.maxElements=e.maxElements,null==this.width||null==this.height)throw new Error("Missing quadtree dimensions.");if(null==this.x&&(this.x=0),null==this.y&&(this.y=0),null==this.maxElements&&(this.maxElements=1),this.contents=[],this.oversized=[],this.size=0,this.width<1||this.height<1)throw new Error("Dimensions must be positive integers.");if(!Number.isInteger(this.x)||!Number.isInteger(this.y))throw new Error("Coordinates must be integers");if(this.maxElements<1)throw new Error("The maximum number of elements before a split must be a positive integer.");for(t in(i=this).children={NW:{create:function(){return new m({x:i.x,y:i.y,width:Math.max(Math.floor(i.width/2),1),height:Math.max(Math.floor(i.height/2),1),maxElements:i.maxElements})},tree:null},NE:{create:function(){return new m({x:i.x+Math.max(Math.floor(i.width/2),1),y:i.y,width:Math.ceil(i.width/2),height:Math.max(Math.floor(i.height/2),1),maxElements:i.maxElements})},tree:null},SW:{create:function(){return new m({x:i.x,y:i.y+Math.max(Math.floor(i.height/2),1),width:Math.max(Math.floor(i.width/2),1),height:Math.ceil(i.height/2),maxElements:i.maxElements})},tree:null},SE:{create:function(){return new m({x:i.x+Math.max(Math.floor(i.width/2),1),y:i.y+Math.max(Math.floor(i.height/2),1),width:Math.ceil(i.width/2),height:Math.ceil(i.height/2),maxElements:i.maxElements})},tree:null}},this.children)this.children[t].get=function(){return null!=this.tree||(this.tree=this.create()),this.tree}}var f,g,x,n,I,s,o,k;return n=function(e){var t,i;return{x:Math.floor((null!=(t=e.width)?t:1)/2)+e.x,y:Math.floor((null!=(i=e.height)?i:1)/2)+e.y}},f=function(e,t){var i,n,o,r;return!(e.x>=t.x+(null!=(i=t.width)?i:1)||e.x+(null!=(n=e.width)?n:1)<=t.x||e.y>=t.y+(null!=(o=t.height)?o:1)||e.y+(null!=(r=e.height)?r:1)<=t.y)},g=function(e,t){var i;return i=n(t),e.x<i.x?e.y<i.y?"NW":"SW":e.y<i.y?"NE":"SE"},k=function(e){if("object"!=v(e))throw new Error("Element must be an Object.");if(null==e.x||null==e.y)throw new Error("Coordinates properties are missing.");if((null!=e?e.width:void 0)<0||(null!=e?e.height:void 0)<0)throw new Error("Width and height must be positive integers.")},s=function(e){var t=Math.max(Math.floor(e.width/2),1),i=Math.ceil(e.width/2),n=Math.max(Math.floor(e.height/2),1),o=Math.ceil(e.height/2);return{NW:{x:e.x,y:e.y,width:t,height:n},NE:{x:e.x+t,y:e.y,width:i,height:n},SW:{x:e.x,y:e.y+n,width:t,height:o},SE:{x:e.x+t,y:e.y+n,width:i,height:o}}},x=function(e,t){var i,n,o=[],r=s(t);for(n in r)i=r[n],f(e,i)&&o.push(n);return o},I=function(e,i){var t;return(t=function(t){return e["_"+t]=e[t],Object.defineProperty(e,t,{set:function(e){return i.remove(this,!0),this["_"+t]=e,i.push(this)},get:function(){return this["_"+t]},configurable:!0})})("x"),t("y"),t("width"),t("height")},o=function(t){var e;return(e=function(e){if(null!=t["_"+e])return delete t[e],t[e]=t["_"+e],delete t["_"+e]})("x"),e("y"),e("width"),e("height")},m.prototype.clear=function(){var e,t;for(e in this.contents=[],this.oversized=[],this.size=0,t=[],this.children)t.push(this.children[e].tree=null);return t},m.prototype.push=function(e,t){return this.pushAll([e],t)},m.prototype.pushAll=function(e,t){for(var i,n,o,r,s,a,l,d,c,p,u,h,m,g,f,v,b,y,w=0,_=e.length;w<_;w++)p=e[w],k(p),t&&I(p,this);for(l=[{tree:this,elements:e}];0<l.length;){for(y=(f=l.shift()).tree,d={NW:null,NE:null,SW:null,SE:null},u=0,m=(a=f.elements).length;u<m;u++)if(s=a[u],y.size++,1!==(c=x(s,y)).length||1===y.width||1===y.height)y.oversized.push(s);else if(y.size-y.oversized.length<=y.maxElements)y.contents.push(s);else{for(r=c[0],b=y.children[r],null==d[r]&&(d[r]={tree:b.get(),elements:[]}),d[r].elements.push(s),h=0,g=(v=y.contents).length;h<g;h++)n=v[h],null==d[o=x(n,y)[0]]&&(d[o]={tree:y.children[o].get(),elements:[]}),d[o].elements.push(n);y.contents=[]}for(r in d)null!=(i=d[r])&&l.push(i)}return this},m.prototype.remove=function(e,t){var i,n;return k(e),-1<(i=this.oversized.indexOf(e))?(this.oversized.splice(i,1),this.size--,t||o(e),!0):-1<(i=this.contents.indexOf(e))?(this.contents.splice(i,1),this.size--,t||o(e),!0):!(null==(n=this.children[g(e,this)]).tree||!n.tree.remove(e,t)||(this.size--,0===n.tree.size&&(n.tree=null),0))},m.prototype.colliding=function(e,t){var i,n,o,r,s,a,l,d,c,p,u,h,m,g;for(null==t&&(t=f),k(e),s=[],o=[this];0<o.length;){for(a=0,c=(h=(g=o.shift()).oversized).length;a<c;a++)(n=h[a])!==e&&t(e,n)&&s.push(n);for(l=0,p=(m=g.contents).length;l<p;l++)(n=m[l])!==e&&t(e,n)&&s.push(n);for(0===(r=x(e,g)).length&&(r=[],e.x>=g.x+g.width&&r.push("NE"),e.y>=g.y+g.height&&r.push("SW"),0<r.length&&(1===r.length?r.push("SE"):r=["SE"])),d=0,u=r.length;d<u;d++)i=r[d],null!=g.children[i].tree&&o.push(g.children[i].tree)}return s},m.prototype.onCollision=function(e,t,i){var n,o,r,s,a,l,d,c,p,u,h,m,g;for(null==i&&(i=f),k(e),r=[this];0<r.length;){for(a=0,c=(h=(g=r.shift()).oversized).length;a<c;a++)(o=h[a])!==e&&i(e,o)&&t(o);for(l=0,p=(m=g.contents).length;l<p;l++)(o=m[l])!==e&&i(e,o)&&t(o);for(0===(s=x(e,g)).length&&(s=[],e.x>=g.x+g.width&&s.push("NE"),e.y>=g.y+g.height&&s.push("SW"),0<s.length&&(1===s.length?s.push("SE"):s=["SE"])),d=0,u=s.length;d<u;d++)n=s[d],null!=g.children[n].tree&&r.push(g.children[n].tree)}return null},m.prototype.get=function(e){return this.where(e)},m.prototype.where=function(n){var e,t,i,o,r,s,a,l,d,c,p,u,h;if("object"==v(n)&&(null==n.x||null==n.y))return this.find(function(e){var t,i=!0;for(t in n)n[t]!==e[t]&&(i=!1);return i});for(k(n),o=[],i=[this];0<i.length;){for(r=0,l=(c=(h=i.shift()).oversized).length;r<l;r++){for(a in t=c[r],e=!0,n)n[a]!==t[a]&&(e=!1);e&&o.push(t)}for(s=0,d=(p=h.contents).length;s<d;s++){for(a in t=p[s],e=!0,n)n[a]!==t[a]&&(e=!1);e&&o.push(t)}null!=(u=h.children[g(n,h)]).tree&&i.push(u.tree)}return o},m.prototype.each=function(e){for(var t,i,n,o,r,s,a,l,d,c=[this];0<c.length;){for(n=0,r=(a=(d=c.shift()).oversized).length;n<r;n++)i=a[n],"function"==typeof e&&e(i);for(o=0,s=(l=d.contents).length;o<s;o++)i=l[o],"function"==typeof e&&e(i);for(t in d.children)null!=d.children[t].tree&&c.push(d.children[t].tree)}return this},m.prototype.find=function(e){for(var t,i,n,o,r,s,a,l,d,c=[this],p=[];0<c.length;){for(n=0,r=(a=(d=c.shift()).oversized).length;n<r;n++)i=a[n],"function"==typeof e&&e(i)&&p.push(i);for(o=0,s=(l=d.contents).length;o<s;o++)i=l[o],"function"==typeof e&&e(i)&&p.push(i);for(t in d.children)null!=d.children[t].tree&&c.push(d.children[t].tree)}return p},m.prototype.filter=function(u){var h;return(h=function(e){var t,i,n,o,r,s,a,l,d,c,p;for(t in(i=new m({x:e.x,y:e.y,width:e.width,height:e.height,maxElements:e.maxElements})).size=0,e.children)null!=e.children[t].tree&&(i.children[t].tree=h(e.children[t].tree),i.size+=null!=(l=null!=(d=i.children[t].tree)?d.size:void 0)?l:0);for(o=0,s=(c=e.oversized).length;o<s;o++)n=c[o],(null==u||"function"==typeof u&&u(n))&&i.oversized.push(n);for(r=0,a=(p=e.contents).length;r<a;r++)n=p[r],(null==u||"function"==typeof u&&u(n))&&i.contents.push(n);return i.size+=i.oversized.length+i.contents.length,0===i.size?null:i})(this)},m.prototype.reject=function(t){return this.filter(function(e){return!("function"==typeof t&&t(e))})},m.prototype.visit=function(e){for(var t,i,n=[this];0<n.length;)for(t in i=n.shift(),e.bind(i)(),i.children)null!=i.children[t].tree&&n.push(i.children[t].tree);return this},m.prototype.pretty=function(){for(var e,t,i,n,o="",r=function(e){for(var t,i="",n=t=e;t<=0?n<0:0<n;t<=0?++n:--n)i+="   ";return i},s=[{label:"ROOT",tree:this,level:0}];0<s.length;){for(e in o+=(t=r((n=s.shift()).level))+"| "+n.label+"\n"+t+"| ------------\n",0<n.tree.oversized.length&&(o+=t+"| * Oversized elements *\n"+t+"|   "+n.tree.oversized+"\n"),0<n.tree.contents.length&&(o+=t+"| * Leaf content *\n"+t+"|   "+n.tree.contents+"\n"),i=!1,n.tree.children)null!=n.tree.children[e].tree&&(i=!0,s.unshift({label:e,tree:n.tree.children[e].tree,level:n.level+1}));i&&(o+=t+"└──┐\n")}return o},m})?n.apply(t,o):n)||(e.exports=r)},function(t,e){(function(e){t.exports=e}).call(this,{})},function(l,e,c){"use strict";c.r(e);var t=c(0),p=c.n(t);function j(e){var t={};return e.forEach(function(e){t[e.bidder]=[]}),t.vlidsp=[],t}function X(e){var t=0<arguments.length&&void 0!==e?e:[];return null===t&&(t=[]),"on"===pe.biddingTest&&t.push({bidder:"viadapter"}),(t=function(e){var t=0<arguments.length&&void 0!==e?e:[],i="prebid-asia";return-1!==pe.EUCountry.split(" ").indexOf(pe.VIGeo)&&(i="prebid-eu"),"US"===pe.VIGeo&&(i="prebid-us"),t.forEach(function(e){"rtbhouse"===e.bidder&&(e.params=e.params||{},e.params.region=i)}),t}(t)).forEach(function(e){"valueimpression"===e.bidder&&(e.params=e.params||{},e.params.siteId=pe.domainID.toString()),"quantumdex"===e.bidder&&(e.params=e.params||{},e.params.siteId=pe.domainID.toString())}),t=t.filter(function(e){return t=e.bidder,!pe.biddersTrafficDrive||!pe.biddersTrafficDrive[t]||!pe.biddersTrafficDrive[t].rule||("allow"===pe.biddersTrafficDrive[t].rule?pe.biddersTrafficDrive[t].country.length<=0||-1!==pe.biddersTrafficDrive[t].country.indexOf(pe.VIGeo):"deny"!==pe.biddersTrafficDrive[t].rule||!(pe.biddersTrafficDrive[t].country.length<=0)&&-1===pe.biddersTrafficDrive[t].country.indexOf(pe.VIGeo));var t})}function G(e,t){var i=0<arguments.length&&void 0!==e?e:[],n=1<arguments.length?t:void 0;null===i&&(i=[]);var o={emxdigital:{param:"bidfloor",type:"float"},conversant:{param:"bidfloor",type:"float"},aol:{param:"bidFloor",type:"string"},appnexus:{param:"reserve",type:"float"},vertoz:{param:"cpmFloor",type:"float"},emx_digital:{param:"bidfloor",type:"string"},beachfront:{param:"bidfloor",type:"float"},sonobi:{param:"floor",type:"float"},rubicon:{param:"floor",type:"float"},pubmatic:{param:"kadfloor",type:"string"},valueimpression:{param:"floorPrice",type:"float"},quantumdex:{param:"floorPrice",type:"float"}};return i.forEach(function(e){e.bidder in o&&(e.params=e.params||{},e.params[o[e.bidder].param]="string"===o[e.bidder].type?n.toString():n)}),i}function o(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))}function J(e){if("object"!==p()(e))return[];return e.sort(function(e,t){return e.cpm<t.cpm?1:e.cpm>t.cpm?-1:0}),e}function Y(e,t){if(e.bids.length<=0)return[];var i=[],n=e.bids;n.reverse();for(var o=n[0].auctionId,r=0;r<n.length;r++){var s=n[r];if(s.auctionId==pe.auctionLogs[t].preAuction)break;0<pe.blockCreatives.length&&-1!==pe.blockCreatives.indexOf(String(s.creativeId))?vlipb.markWinningBidAsUsed({adId:s.adId}):i.push(s)}return pe.auctionLogs[t].preAuction=o,i}function K(t,e,i,n){var o,r;pe.preventRqBid&&"videodiscover"===n||(r=function(e,t,i){"a9"===e&&(o.a9=!0),"prebid"===e&&(o.prebid=!0),function(){var e=!0;for(var t in o)o[t]||(e=!1);return e}()&&t(i)},(o={}).prebid=!1,vlipb.requestBids({timeout:pe.prebidTimeout,adUnitCodes:t,bidsBackHandler:function(){r("prebid",i,t)}}),0<e.length&&(o.a9=!1,apstag.fetchBids({slots:e,timeout:pe.prebidTimeout},function(e){r("a9",i,t)})))}function N(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,N)}function $(e){var t,i,n,o=!1;"hb"===e.type&&"Adx"===e.bidder&&(o=!0),"passback"!=e.type&&"passback_video"!=e.type||1!=pe.viAdFill||(e.type="hb",e.bidder="Adx",e.cpm=0),o||(t=document.getElementById(pe.pixelID),(i=document.createElement("img")).width="0",i.height="0",i.style.cssText="display:none",i.src=(n=Q(e),"//"+pe.statsDomain+"/pi/?e="+n),t.appendChild(i)),"native"===e.adType&&(e.bidder="native_"+e.bidder),"hb"==e.type||"hb_video"==e.type?("hb_video"==e.type&&(e.bidder+="_video"),P({bidder:e.bidder,cpm:e.cpm})):P({bidder:"passback_video"==e.type?"noBid_video":"noBid",cpm:"0.00"})}function Z(){try{if(/Mobi|Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))return!0}catch(e){}return!1}function Q(e){var t=Z()?"mobile":"";return"hb"==e.type||"hb_video"==e.type?i("tm="+N()+"&d="+pe.domainID+"&z="+e.zoneID+"&b="+e.bidder+"&p="+e.cpm+"&dvid="+e.divID+"&de="+t+"&vliref_id="+pe.refererSlotID):i("tm="+N()+"&t=passback&d="+pe.domainID+"&z="+e.zoneID+"&dvid="+e.divID+"&de="+t+"&vliref_id="+pe.refererSlotID)}function i(e){var t={a:"q",b:"w",c:"e",d:"r",e:"t",f:"y",g:"u",h:"i",i:"o",j:"p",k:0,l:"s",m:"d",n:"f",o:"g",p:"h",q:"j",r:"k",s:"l",t:"z",u:"x",v:"c",w:"v",x:"b",y:"n",z:"m",0:"A",A:1,1:"T",T:2,2:"Y",Y:3,3:"B",B:4,4:"P",P:5,5:"Z",Z:6,6:"U",U:7,7:"K",K:8,8:"M",M:9,9:"a","&":"R","=":"N",".":"G"};return(e=e.toLowerCase()).split("").map(function(e){return void 0!==t[e]?t[e]:e}).join("")}function z(e){var t=Z()?e.t+"_mobile":e.t+"_pc";t+="_"+e.b;var i=document.getElementById(pe.analyticIframeId);i?"function"==typeof i.contentWindow.vliAnatrack&&i.contentWindow.vliAnatrack("Error_video_"+e.e,pe.domainName,t,e.b):n("Error_video_"+e.e,pe.domainName,t,e.b)}function P(e){var t=document.getElementById(pe.analyticIframeId);t?"function"==typeof t.contentWindow.vliAnatrack&&t.contentWindow.vliAnatrack(e.bidder,pe.domainName,e.cpm,"Default"):n(e.bidder,pe.domainName,e.cpm,"Default")}function n(e,t,i,n){var o=document.getElementById(pe.pixelID),r=document.createElement("iframe");r.id=pe.analyticIframeId,r.width="0",r.height="0",r.style.cssText="display:none",o.appendChild(r);var s='<script async src="https://www.googletagmanager.com/gtag/js?id='+pe.analyticsID+'"><\/script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag("js", new Date()); gtag("config", "'+pe.analyticsID+'", { "page_title": "'+e+"_"+t+"_"+i+"_"+n+'", "campaign": { "medium": "'+e+'", "source": "'+t+'", "name": "'+i+'", "content": "'+n+'" } }); function vliAnatrack(medium, source, campaign, content){ gtag("config", "'+pe.analyticsID+'", { "page_title": medium + "_" + source + "_" + campaign + "_" + content, "campaign": { "medium": medium, "source": source, "name": campaign, "content": content } }); } <\/script>';r.contentWindow.document.open(),r.contentWindow.document.write(s),r.contentWindow.document.close()}function M(e,t,i){i=i||90;var n=new Date;n.setTime(n.getTime()+24*i*60*60*1e3);var o="expires="+n.toUTCString();document.cookie=e+"="+t+";"+o+";path=/"}function R(e){for(var t=e+"=",i=document.cookie.split(";"),n=0;n<i.length;n++){for(var o=i[n];" "===o.charAt(0);)o=o.substring(1);if(0===o.indexOf(t))return o.substring(t.length,o.length)}return""}function I(e,t){if(e&&e.adserverTargeting)for(var i in e.adserverTargeting)t.setTargeting(i,e.adserverTargeting[i])}function k(e,t,i){var n,o,r,s;void 0!==window.$sf&&null!=window.$sf&&null!=window.$sf.host&&(n={id:e,w:t.width,h:t.height,dest:e},o=i,r=new $sf.host.PosConfig(n),s=new $sf.host.Position(r,o),$sf.host.render(s))}function S(e,t,i,n){e.innerHTML='<iframe class="vliIgnore" id="ifr_'+t+'" SRC="about:blank" FRAMEBORDER="0" SCROLLING="no" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0" ALLOWTRANSPARENCY="true" width="0" height="0" sandbox="allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation"> </iframe>';var o=document.getElementById("ifr_"+t);o.width=i,o.height=n;var r=o.contentWindow||o.contentDocument;return r.document&&(r=r.document),r}function C(e,t){var i="";i+='<div id="native-placeholder" style="width:'+t.width+"px;height:"+t.height+'px;"></div>',i+='<script src="//'+pe.staticDomain+'/plugins/native-universal-creative/test.js"><\/script>',i+="<script>",i+="var pbNativeTagData = {};",i+='pbNativeTagData.width = "'+t.width+'";',i+='pbNativeTagData.height = "'+t.height+'";',i+='pbNativeTagData.adId = "'+t.adId+'";',i+='pbNativeTagData.pubUrl = "'+t.pubUrl+'";',i+="try {pbNativeTag.init(pbNativeTagData);} catch (e) {console.log(e);}",i+="<\/script>",e.open(),e.write(i),e.close()}function ee(e,t,i,n){n=Object.assign({},{viewport:null,threshold:[100]},n);observeElementInViewport.observeElementInViewport(e,t,i,n)}function te(){var e=navigator.userAgent.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i),t=navigator.userAgent.match(/Edge/i)||navigator.userAgent.match(/Trident.*rv[ :]*11\./i)?"msie":e[1].toLowerCase();return t}function s(e,t,i,n,o,r,s,a){var l=0<arguments.length&&void 0!==e?e:"",d=1<arguments.length&&void 0!==t?t:"GET",c=2<arguments.length&&void 0!==i?i:"text",p=3<arguments.length&&void 0!==n?n:1500,u=4<arguments.length&&void 0!==o&&o,h=5<arguments.length&&void 0!==r?r:"",m=6<arguments.length&&void 0!==s?s:function(){},g=7<arguments.length&&void 0!==a?a:function(){};l||g(Error("URL is required"));var f=new XMLHttpRequest;f.responseType=c,f.onreadystatechange=function(){f.readyState===XMLHttpRequest.DONE&&(200===f.status?m(f.response):g(Error(f.status)))},f.withCredentials=u,f.onerror=function(){g(Error("Network Error"))},f.timeout=p,f.ontimeout=function(){g(Error("Request Timeout"))},f.open(d,l,!0),f.send(h)}function O(t,i){window.requestAnimationFrame(function e(){document.querySelector(t)?"function"==typeof i&&i():window.requestAnimationFrame(e)})}function E(){try{return window.self!==window.top}catch(e){return 1}}function r(e,t){return e.classList?e.classList.contains(t):new RegExp("(^| )"+t+"( |$)","gi").test(e.className)}function ie(e,t){var i=setInterval(function(){pe.isVisible&&(clearInterval(i),e())},t)}function F(e){var i=0,n=0;return e.forEach(function(e,t){e.cpm>i&&(i=e.cpm,n=t)}),n}function V(e){return e.vastXml?e.vastXml:e.adResponse&&e.adResponse.ad&&e.adResponse.ad.video&&e.adResponse.ad.video.content?e.adResponse.ad.video.content:null}function ne(e){e.hidden&&(pe.visibilChangAction.hidden[e.divID]=e.hidden),e.watching&&(pe.visibilChangAction.watching[e.divID]=e.watching)}function oe(e){pe.visibilChangAction.hidden[e]&&delete pe.visibilChangAction.hidden[e],pe.visibilChangAction.watching[e]&&delete pe.visibilChangAction.watching[e]}function A(){var e=Math.floor(900*Math.random())+100;return-1!==pe.displayAdID.indexOf(e)?A():(pe.displayAdID.push(e),e)}function D(e,t){var i,n;"undefined"!=typeof Storage&&""!=o("__vlilbg").toUpperCase()&&(10<=(i=(i=localStorage.getItem("bidwon_history"))?JSON.parse(i):[]).length&&i.splice(0,1),n={id:N(),domain:pe.domainID,time:(new Date).getTime(),adType:e,bidwon:t},i.push(n),localStorage.setItem("bidwon_history",JSON.stringify(i)))}function u(e){return new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}var a={"accountId":"e8df28e7-78ff-452d-b3af-ff4df83df832","adHesion":null,"adloadType":"lazy_load","adunitOrder":1,"adunitSM":1,"adunitVideo":1,"anxsSchain":"interdogmedia.com","bgRefresh":30000,"bidAdjustment":{"brightcom":0.8,"connectad":0.4,"consumable":0.75,"criteo":0.85,"districtm":0.85,"fidelity":0.58,"getintent":0.6,"oftmedia":0.9,"onefiftytwomedia":0.75,"pubmatic":0.74},"biddersTrafficDrive":{"33across":{"country":["US","GB","CA","AU"],"rule":"allow"},"adkernel":{"country":["PH","MY","ID","BD","VN","PK","FJ","SZ","TJ","DJ","CW","SD","CU","LR","TG","NE","BF","BJ","AX","LI","SL","MR","HT","SB","SM","PF","MP","SC","TM","VU","NC","VG","GA","TD","KV","CV","GL","AI","ER","GM","GN","DM","FM","ML","TC","MF","VA","FO","CF","CG","CK","GW","KM","PW","WS","MH","GQ","NR","ST","FK","YT","PM","NU","NF","WF","MS","SH","CC","TK","UM","BN","MW","PG","SI","SY","SN","RW","GY","CM","LT","AO","EG","TZ","AD","TO","KG","BT","LC","SD","AM","BB","SO","LA","IM","VC","LY","CY","YE","BW","MG","LU","ET","LS","SR","RS","MK","AW","GE","LB","MN","BM","MA","AZ","MM","BI","AT","NG","TT","TN","DZ","IL","AF","KH","MZ","PA","IS","UZ","BA","VE","GH","IR","NP","IN","EC","BH","AS","ZW"],"rule":"deny"},"adsolut":{"country":["IN"],"rule":"allow"},"consumable":{"country":["US"],"rule":"allow"},"conversant":{"country":["US","GB","CA","UM"],"rule":"allow"},"districtm":{"country":["US","CA"],"rule":"allow"},"districtmdmx":{"country":["US","CA"],"rule":"allow"},"oftmedia":{"country":["PH","MY","ID","BD","VN","PK","FJ","SZ","TJ","DJ","CW","SD","CU","LR","TG","NE","BF","BJ","AX","LI","SL","MR","HT","SB","SM","PF","MP","SC","TM","VU","NC","VG","GA","TD","KV","CV","GL","AI","ER","GM","GN","DM","FM","ML","TC","MF","VA","FO","CF","CG","CK","GW","KM","PW","WS","MH","GQ","NR","ST","FK","YT","PM","NU","NF","WF","MS","SH","CC","TK","UM","BN","MW","PG","SI","SY","SN","RW","GY","CM","LT","AO","EG","TZ","AD","TO","KG","BT","LC","SD","AM","BB","SO","LA","IM","VC","LY","CY","YE","BW","MG","LU","ET","LS","SR","RS","MK","AW","GE","LB","MN","BM","MA","AZ","MM","BI","AT","NG","TT","TN","DZ","IL","AF","KH","MZ","PA","IS","UZ","BA","VE","GH","IR","NP","IN","EC","BH","AS","ZW"],"rule":"deny"},"onefiftytwomedia":{"country":["PH","MY","ID","BD","VN","PK","FJ","SZ","TJ","DJ","CW","SD","CU","LR","TG","NE","BF","BJ","AX","LI","SL","MR","HT","SB","SM","PF","MP","SC","TM","VU","NC","VG","GA","TD","KV","CV","GL","AI","ER","GM","GN","DM","FM","ML","TC","MF","VA","FO","CF","CG","CK","GW","KM","PW","WS","MH","GQ","NR","ST","FK","YT","PM","NU","NF","WF","MS","SH","CC","TK","UM","BN","MW","PG","SI","SY","SN","RW","GY","CM","LT","AO","EG","TZ","AD","TO","KG","BT","LC","SD","AM","BB","SO","LA","IM","VC","LY","CY","YE","BW","MG","LU","ET","LS","SR","RS","MK","AW","GE","LB","MN","BM","MA","AZ","MM","BI","AT","NG","TT","TN","DZ","IL","AF","KH","MZ","PA","IS","UZ","BA","VE","GH","IR","NP","IN","EC","BH","AS","ZW"],"rule":"deny"},"onemobile":{"country":["US","IN","GB","DE","CA","RO","MY","PH","ES","BR","NG","MX","AT"],"rule":"allow"},"onevideo":{"country":["US","RO","IN","GB","DE","PR","CA","BR","IT","JP"],"rule":"allow"},"pulsepoint":{"country":["US","CA","AU","JP","RU","EU","AD","AL","AT","BA","BE","BG","BY","CH","CS","CZ","DE","DK","EE","ES","FI","FO","FR","FX","GB","GI","GR","HR","HU","IE","IS","IT","LI","LT","LU","LV","MC","MD","MK","MT","NL","NO","PL","PT","RO","SE","SI","SJ","SK","SM","UA","VA","AE"],"rule":"allow"},"rhythmone":{"country":["US","CA","AU"],"rule":"allow"},"sharethrough":{"country":["US","GB","CA"],"rule":"allow"},"sovrn":{"country":["US","GB","CA","AU","DE"],"rule":"allow"},"underdogmedia":{"country":["AU","BR","CA","FR","DE","IT","RU","SG","ES","US"],"rule":"allow"}},"blockCreatives":["3450172","3163599","72154833","4642641","3718188","178770573","178770608"],"caPub":"","dfpFloorPrice":0.01,"dfpId":21766281334,"dfpRefresh":"on","dfpSlotID":"/21766281334/Prebid_Display_Lazyload_SignalReload","dfpVideoSlotID":"/21766281334/Video_Discovery","disableDefaultDfpFloorPrice":[901,978,4750],"disableDfp":"video","displayBids":{"160_600":[{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407169}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407182}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"160X600","cp":557779,"ct":711738}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"120X600","cp":557779,"ct":712326}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"used":false},{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407169}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407182}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"160X600","cp":557779,"ct":711738}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"120X600","cp":557779,"ct":712326}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"used":false}],"300_250":[{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407163}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"300X250","cp":557779,"ct":711736}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"used":false},{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407163}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"300X250","cp":557779,"ct":711736}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"used":false}],"300_600":[{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407163}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407172}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407169}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407182}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"300X250","cp":557779,"ct":711736}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"160X600","cp":557779,"ct":711738}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"300X600","cp":557779,"ct":711739}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"120X600","cp":557779,"ct":712326}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"used":false}],"728_90":[{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407178}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407177}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"728X90","cp":557779,"ct":711737}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"468X60","cp":557779,"ct":712325}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"used":false},{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407178}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407177}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"728X90","cp":557779,"ct":711737}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"468X60","cp":557779,"ct":712325}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"used":false}],"970_250":[{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407163}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407178}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407164}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407177}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407173}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"300X250","cp":557779,"ct":711736}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"728X90","cp":557779,"ct":711737}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"970X90","cp":557779,"ct":711740}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"970X250","cp":557779,"ct":711741}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"468X60","cp":557779,"ct":712325}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}}],"used":false},{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"allowSmallerSizes":true,"placementId":"18899172"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407163}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407178}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407164}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407177}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1407173}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"300X250","cp":557779,"ct":711736}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"728X90","cp":557779,"ct":711737}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"970X90","cp":557779,"ct":711740}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"970X250","cp":557779,"ct":711741}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"468X60","cp":557779,"ct":712325}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"rtbhouse","params":{"bidfloor":0.1,"publisherId":"wed0epy3b6Wg3KDMeJ5n","region":"prebid-asia"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"eplanning","params":{"ci":"2c995"}}],"used":false}]},"displaySlot":{"vi_427113737":{"adunit":{"bids":null,"code":"vi_427113737","mediaTypes":{"banner":{"sizes":[[300,250],[250,250],[200,200],[180,150]]}}},"display_type":"","floorPrice":0.01,"geo_target":"","h":250,"mid":0,"noPublisherPb":true,"sizeConfig":[[300,250],[250,250],[200,200],[180,150]],"type":"normal","w":300,"zid":13737},"vi_427113738":{"adunit":{"bids":null,"code":"vi_427113738","mediaTypes":{"banner":{"sizes":[[728,90],[468,60]]}}},"display_type":"","floorPrice":0.01,"geo_target":"","h":90,"mid":0,"noPublisherPb":true,"sizeConfig":[[728,90],[468,60]],"type":"normal","w":728,"zid":13738},"vi_427113739":{"adunit":{"bids":null,"code":"vi_427113739","mediaTypes":{"banner":{"sizes":[[160,600],[120,600]]}}},"display_type":"","floorPrice":0.01,"geo_target":"","h":600,"mid":0,"noPublisherPb":true,"sizeConfig":[[160,600],[120,600]],"type":"normal","w":160,"zid":13739},"vi_427113740":{"adunit":{"bids":null,"code":"vi_427113740","mediaTypes":{"banner":{"sizes":[[300,250],[160,600],[300,600],[250,250],[120,600],[200,200],[180,150]]}}},"display_type":"","floorPrice":0.01,"geo_target":"","h":600,"mid":0,"noPublisherPb":true,"sizeConfig":[[300,250],[160,600],[300,600],[250,250],[120,600],[200,200],[180,150]],"type":"normal","w":300,"zid":13740},"vi_427113742":{"adunit":{"bids":null,"code":"vi_427113742","mediaTypes":{"banner":{"sizes":[[300,250],[728,90],[970,250],[970,90],[468,60],[970,66],[930,180],[950,90],[960,90],[750,100]]}}},"display_type":"","floorPrice":0.01,"geo_target":"","h":250,"mid":0,"noPublisherPb":true,"sizeConfig":[[300,250],[728,90],[970,250],[970,90],[468,60],[970,66],[930,180],[950,90],[960,90],[750,100]],"type":"normal","w":970,"zid":13742}},"dmtk":"podtiqh9vv","domainID":4271,"enableDebug":"off","enableIcon":"on","gaId":"UA-128776493-22","instreamSlot":{"vi_427113735":{"adunit":{"bids":[{"bidder":"sonobi","params":{"placement_id":"4160edf830ca9bd1c363","sizes":[[640,480]]}},{"bidder":"appnexus","params":{"placementId":"18899174","video":{"playback_methods":"auto_play_sound_on","skippable":true}}},{"bidder":"oftmedia","params":{"placementId":"16682446"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"code":"vi_427113735","mediaTypes":{"video":{"api":[2],"context":"instream","linearity":1,"maxduration":120,"mimes":["video/mp4","video/x-flv","video/x-ms-wmv","application/vnd.apple.mpegurl","application/x-mpegurl","video/3gpp","video/mpeg","video/ogg","video/quicktime","video/webm","video/x-m4v","video/ms-asf","video/x-msvideo"],"playbackmethod":[3],"playerSize":[640,480],"protocols":[1,2,3,4,5,6]}}},"bannerFloorPrice":0.1,"display_type":"","feed_url":null,"floorPrice":0.1,"geo_target":"","h":480,"mid":0,"pb":null,"type":"normal","vast":null,"vid":null,"w":640,"zid":13735},"vi_427113736":{"adunit":{"bids":[{"bidder":"sonobi","params":{"placement_id":"4160edf830ca9bd1c363","sizes":[[640,480]]}},{"bidder":"appnexus","params":{"placementId":"18899179","video":{"playback_methods":"auto_play_sound_off","skippable":false}}},{"bidder":"oftmedia","params":{"placementId":"16682446"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"code":"vi_427113736","mediaTypes":{"video":{"api":[2],"context":"instream","linearity":1,"maxduration":120,"mimes":["video/mp4","video/x-flv","video/x-ms-wmv","application/vnd.apple.mpegurl","application/x-mpegurl","video/3gpp","video/mpeg","video/ogg","video/quicktime","video/webm","video/x-m4v","video/ms-asf","video/x-msvideo"],"playbackmethod":[6],"playerSize":[640,480],"protocols":[1,2,3,4,5,6]}}},"bannerFloorPrice":0.1,"display_type":"","feed_url":null,"floorPrice":0.1,"geo_target":"","h":480,"mid":0,"pb":null,"type":"inbanner","vast":null,"vid":{"contents":[{"des":"","id":"89","link":"","thumb":"/widget/2020/06/22/1592801729.jpg","title":"5 Minute Crafts For School Supplies","video_url":{"m3u8":"","mp4":"/vid/?id=5aWbsTPK-_0\u0026t=y","ogg":""}},{"des":"","id":"91","link":"","thumb":"/widget/2020/07/30/1596163502.jpg","title":"FUN TikTok Life Hacks To Do When You're Bored at Home!","video_url":{"m3u8":"","mp4":"/vid/?id=QfsviWpOGno\u0026t=y","ogg":""}},{"des":"","id":"92","link":"","thumb":"/widget/2019/11/05/1572962767.jpg","title":"7 Easy Crafts Ideas at Home","video_url":{"m3u8":"","mp4":"/vid/?id=O5RRxWcXyjc\u0026t=y","ogg":""}},{"des":"","id":"93","link":"","thumb":"/widget/2019/11/05/1572962788.jpg","title":"9 Easy Crafts Ideas at Home","video_url":{"m3u8":"","mp4":"/vid/?id=r8AoVMBwjcc\u0026t=y","ogg":""}},{"des":"","id":"94","link":"","thumb":"/widget/2020/06/22/1592802620.jpg","title":"DIY URBAN OUTFITTERS ROOM DECOR + FURNITURE!!","video_url":{"m3u8":"","mp4":"/vid/?id=k3c-ygaCGXY\u0026t=y","ogg":""}},{"des":"","id":"95","link":"","thumb":"/widget/2019/11/05/1572962830.jpg","title":"Beautiful Veneer Lamp","video_url":{"m3u8":"","mp4":"/vid/?id=aOSRX0RXaas\u0026t=y","ogg":""}},{"des":"","id":"96","link":"","thumb":"/widget/2020/06/16/1592294784.jpg","title":"DIY ROOM DECOR! 7 Easy Crafts Ideas at Home","video_url":{"m3u8":"","mp4":"/vid/?id=TV1MKMdUJ3Y\u0026t=y","ogg":""}},{"des":"","id":"97","link":"","thumb":"/widget/2019/11/05/1572962870.jpg","title":"Robopet Make Your Robot Follow You","video_url":{"m3u8":"","mp4":"/vid/?id=HhZDAZTz3rk\u0026t=y","ogg":""}}]},"w":640,"zid":13736}},"jsType":"dfp","jsVersion":"v1","nativeSlot":null,"outstreamSlot":{"vi_427113741":{"adunit":{"bids":[{"bidder":"sonobi","params":{"placement_id":"8c233285c20fc4f316f6","sizes":[[410,231]]}},{"bidder":"appnexus","params":{"placementId":"18899183","video":{"playback_methods":"auto_play_sound_off","skippable":false}}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}}],"code":"vi_427113741","mediaTypes":{"video":{"api":[2],"context":"outstream","linearity":1,"maxduration":120,"mimes":["video/mp4","video/x-flv","video/x-ms-wmv","application/vnd.apple.mpegurl","application/x-mpegurl","video/3gpp","video/mpeg","video/ogg","video/quicktime","video/webm","video/x-m4v","video/ms-asf","video/x-msvideo"],"playbackmethod":[6],"playerSize":[410,231],"protocols":[1,2,3,4,5,6]}}},"floorPrice":0.1,"h":231,"mid":0,"type":"slider","vast":null,"w":410,"zid":13741}},"passBackUpdateTime":"1596166146","passbackTargeted":[{"country":[],"device":[],"id":11,"size":["970_90"],"time":1589795697},{"country":[],"device":[],"id":10,"size":["970_250"],"time":1589795697},{"country":[],"device":[],"id":8,"size":["300_600"],"time":1589795697},{"country":[],"device":[],"id":7,"size":["300_250"],"time":1589795697},{"country":[],"device":[],"id":6,"size":["160_600"],"time":1589795697},{"country":[],"device":[],"id":5,"size":["728_90"],"time":1589795697}],"pbRender":"iframe","prebidJs":"/prebid/default/prebid-v3.27.0.js","prebidTimeout":2000,"reBidDiscoveryTypeDfp":30,"reBidDiscoveryTypePostbid":15,"reloadMode":"signal","rootDomain":"vlitag.com","s2sBidders":["adform"],"safeFrame":"","smartBanner":[{"adSlot":"vi_427121286","adunit":{"160_600":{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"placementId":"19128584"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1417062}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"160X600","cp":557779,"ct":712322}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}}],"code":"vi_427121286","mediaTypes":{"banner":{"sizes":[[160,600]]}}},"300_250":{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"placementId":"19128584"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1417060}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"300X250","cp":557779,"ct":712320}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}}],"code":"vi_427121286","mediaTypes":{"banner":{"sizes":[[300,250]]}}},"300_600":{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"placementId":"19128584"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1417059}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"300X600","cp":557779,"ct":712323}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}}],"code":"vi_427121286","mediaTypes":{"banner":{"sizes":[[300,600]]}}},"320_50":{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"placementId":"19128584"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1417063}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"320X50","cp":557779,"ct":712324}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}}],"code":"vi_427121286","mediaTypes":{"banner":{"sizes":[[320,50]]}}},"728_90":{"bids":[{"bidder":"sonobi","params":{"placement_id":"2d1fc23718bea69fadaa"}},{"bidder":"appnexus","params":{"placementId":"19128584"}},{"bidder":"connectad","params":{"networkId":10047,"siteId":1034421}},{"bidder":"criteo","params":{"networkId":9002,"zoneId":1417061}},{"bidder":"pulsepoint","params":{"bidfloor":0.01,"cf":"728X90","cp":557779,"ct":712321}},{"bidder":"valueimpression","params":{"siteId":"6868"}},{"bidder":"rhythmone","params":{"path":"mvo","placementId":"204304","zone":"1r"}},{"bidder":"oftmedia","params":{"placementId":"16682319"}},{"bidder":"eplanning","params":{"ci":"2c995"}},{"bidder":"33across","params":{"productId":"siab","siteId":"cnkF7AvcCr6izkaKkGJozW"}}],"code":"vi_427121286","mediaTypes":{"banner":{"sizes":[[728,90]]}}}},"floorPrice":0.01,"zid":21286}],"tagConfig":{"brand":"Valueimpression","className":"adsbyvli","homePage":"valueimpression.com","icon":"/media/icon/vi-icon.svg","logo":"/media/icon/vi-logo.svg","tagApi":"viAPItag","tagName":"vitag"},"tagDomain":"tag.vlitag.com","topArticle":null,"uId":3415,"useAmazonUAM":"off","useBidFilter":"on","viAdFill":0};window._VLIOBJ=window._VLIOBJ||{},window._VLIOBJ.dID=a.domainID;var d,h={staticDomain:"assets."+a.rootDomain,statsDomain:"stats."+a.rootDomain,passbackDomain:a.tagDomain,tagName:a.tagConfig.tagName,adClass:a.tagConfig.className,brandName:a.tagConfig.brand,brandHomepage:a.tagConfig.homePage,adRenderAction:{action:{},pb:{},bidWon:{}},auctionLogs:{},pixelID:"vi_pixel_8383",analyticIframeId:"vi_track_8383",visibilChangAction:{hidden:{},watching:{}},totalLoad:1,inLoading:0,gSlots:[],displayAdID:[],isVisible:null,userState:null,adsVolume:0,changeAdsVolume:!1,preventRqBid:!1,viewabilityCheck:{},VIdebug:"TRUE"===o("vi_debug").toUpperCase()&&"on"==a.enableDebug,biddingTest:"TRUE"===o("bidtest").toUpperCase()||"undefined"!=typeof Storage&&"true"===sessionStorage.getItem("bidtest")?"on":"off",EUCountry:"IS LI NO CH BE BG CZ DK DE EE IE GR ES FR HR IT CY LV LT LU HU MT NL AT PL PT RO SI SK FI SE GB",analyticsID:a.gaId,domainName:(d={s:"a",d:"s",f:"d",g:"f",h:"g",j:"h",k:"j",l:"k",z:"l",x:"z",c:"x",v:"c",b:"v",n:"b",m:"n",q:"m",w:"q",a:"w",9:".",0:9,6:0,2:6,_:2,".":"_"},a.dmtk.split("").map(function(e){return void 0!==d[e]?d[e]:e}).join("")),VIGeo:window._VLIOBJ.geo||"N/A",GeoState:window._VLIOBJ.state||[],refererSlotID:R("__vlirefsid"),refererDomainID:R("__vliref"),noneSafeFrameBidder:["sharethrough","consumable","audienceNetwork","brightcom"],dfpFloorPrice:a.dfpFloorPrice,bannerRequestMode:"banner"===a.disableDfp||!0===window._VLIOBJ.block?"postbid":a.jsType,videoRequestMode:"video"===a.disableDfp||!0===window._VLIOBJ.block?"postbid":a.jsType,modeDisplayPrioritize:a.modeDisplayPrioritize?a.modeDisplayPrioritize:"all",userSyncConfig:{filterSettings:{iframe:{bidders:"*",filter:"include"}},aliasSyncEnabled:!0,syncsPerBidder:0},disableDefaultDfpFloorPrice:a.disableDefaultDfpFloorPrice?a.disableDefaultDfpFloorPrice:[],reBidDiscoveryTypeDfp:a.reBidDiscoveryTypeDfp?a.reBidDiscoveryTypeDfp:30,reBidDiscoveryTypePostbid:a.reBidDiscoveryTypePostbid?a.reBidDiscoveryTypePostbid:15};h.brandIcon=h.staticDomain+a.tagConfig.icon,h.brandLogo=h.staticDomain+a.tagConfig.logo,h.googleDfpAdunitCode=[];var m,g=a.domainID.toString()+"_"+("string"!=typeof(m=h.domainName)?"":m.charAt(0).toUpperCase()+m.slice(1));h.rootDfpAdunitCode="/"+a.dfpId.toString()+"/"+g;for(var f,v,b=a.adunitOrder?a.adunitOrder:1,y=b+9,w=b;w<=y;w++)h.googleDfpAdunitCode.push(h.rootDfpAdunitCode+"/"+g+"_"+w);(h=Object.assign({},h,a)).smartBannerDfpID=h.rootDfpAdunitCode+"/"+g+"_SmartBanner_"+a.adunitSM.toString(),h.dfpVideoSlotID=h.rootDfpAdunitCode+"/"+g+"_VideoDiscovery_"+a.adunitVideo.toString(),h.VIGeo&&"JP"===h.VIGeo&&(h.useAmazonUAM="off"),void 0!==document.hidden?(f="hidden",v="visibilitychange"):void 0!==document.msHidden?(f="msHidden",v="msvisibilitychange"):void 0!==document.webkitHidden&&(f="webkitHidden",v="webkitvisibilitychange"),h.userState=document[f]?"inactive":"active",void 0!==document.addEventListener&&void 0!==f&&document.addEventListener(v,function(){document[f]?h.userState="inactive":h.userState="active"},!1),s("//services."+h.rootDomain+"/page_status?url="+encodeURIComponent(window.location.href),"GET","text",2e3,!1,"",function(e){1==JSON.parse(e).isBlocked?(h.bannerRequestMode="postbid",h.videoRequestMode="postbid"):(h.bannerRequestMode="banner"===a.disableDfp?"postbid":a.jsType,h.videoRequestMode="video"===a.disableDfp?"postbid":a.jsType)},function(){});function re(e){var t,i;document.getElementById("VIEventStats")||(t=document.getElementById(e),(i=document.createElement("iframe")).id="VIEventStats",i.width="0",i.height="0",i.style.cssText="display:none",t.appendChild(i),i.contentWindow.document.open(),i.contentWindow.document.write('<script async src="https://www.googletagmanager.com/gtag/js?id=UA-128776493-10"><\/script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag("js", new Date()); function viPushStats(medium, source, campaign, content) { gtag("config", "UA-128776493-10", { "page_title": medium + "_" + source + "_" + campaign + "_" + content, "campaign": { "medium": medium, "source": source, "name": campaign, "content": content } }); } <\/script>'),i.contentWindow.document.close())}function se(e,t,i,n){var o=document.getElementById("VIEventStats");o&&"function"==typeof o.contentWindow.viPushStats&&o.contentWindow.viPushStats(e,t,i,n)}function ae(e){return-1!==e.search("<PAGE_URL>")&&(e=e.replace("<PAGE_URL>",window.location.href)),e}function le(e,t){var i,n,o=document.getElementById(e);o&&((i=document.createElement("iframe")).id="debug_"+e,i.setAttribute("frameborder","no"),i.setAttribute("scrolling","no"),i.setAttribute("allowtransparency","true"),i.setAttribute("hidefocus","true"),i.setAttribute("marginwidth","0"),i.setAttribute("marginheight","0"),i.setAttribute("topmargin","0"),i.setAttribute("leftmargin","0"),i.style.cssText="width: 100%; height: 100%; position: absolute; background-color: rgba(255, 255, 255, 0.8); top: 0; left: 0; z-index: 9998;",!0===t?o.appendChild(i):o.parentNode.appendChild(i),(n=i.contentWindow||i.contentDocument).document&&(n=n.document),n.open(),n.write('<div id="infoPanel" style="padding: 5px; font-size: 12px; font-family: Consolas; color: #000;"><div style="font-weight: bold; color: #ff0000;">vi_debug: on</div></div>'),n.close())}function de(e,t,i){var n,o,r,s=document.getElementById("debug_"+e);s&&((n=s.contentWindow||s.contentDocument).document&&(n=n.document),(o=n.getElementById("infoPanel"))&&((r=n.createElement("div")).className="infoMessage",r.innerHTML='<span style="font-weight:bold;">'+t+": </span><span>"+i+"</span>",o.appendChild(r)))}function ce(e){var t,i=document.getElementById("debug_"+e);i&&((t=i.contentWindow||i.contentDocument).document&&(t=t.document),t.querySelectorAll(".infoMessage").forEach(function(e){e.remove()}))}function _(){var g,f,t,e,i;function d(e){this.time=e.time,this.target=e.target,this.rootBounds=e.rootBounds,this.boundingClientRect=e.boundingClientRect,this.intersectionRect=e.intersectionRect||s(),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,i=t.width*t.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=i?Number((o/i).toFixed(4)):this.isIntersecting?1:0}function n(e,t){var i,n,o,r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o=o||setTimeout(function(){i(),o=null},n)}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" ")}function o(e,t,i,n){"function"==typeof e.addEventListener?e.addEventListener(t,i,n||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,i)}function r(e,t,i,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,i,n||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,i)}function v(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):s()}function s(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(e,t){for(var i=t;i;){if(i==e)return!0;i=b(i)}return!1}function b(e){var t=e.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}"function"!=typeof window.IntersectionObserver&&(g=window,f=document,"IntersectionObserver"in g&&"IntersectionObserverEntry"in g&&"intersectionRatio"in g.IntersectionObserverEntry.prototype?"isIntersecting"in g.IntersectionObserverEntry.prototype||Object.defineProperty(g.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}):(t=[],n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},n.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,i){if("number"!=typeof e||isNaN(e)||e<0||1<e)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==i[t-1]})},n.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(g,"resize",this._checkForIntersections,!0),o(f,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in g&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,r(g,"resize",this._checkForIntersections,!0),r(f,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var a=this._rootIsInDom(),l=a?this._getRootRect():s();this._observationTargets.forEach(function(e){var t=e.element,i=v(t),n=this._rootContainsTarget(t),o=e.entry,r=a&&n&&this._computeTargetAndRootIntersection(t,l),s=e.entry=new d({time:g.performance&&performance.now&&performance.now(),target:t,boundingClientRect:i,rootBounds:l,intersectionRect:r});o?a&&n?this._hasCrossedThreshold(o,s)&&this._queuedEntries.push(s):o&&o.isIntersecting&&this._queuedEntries.push(s):this._queuedEntries.push(s)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(e,t){if("none"!=g.getComputedStyle(e).display){for(var i,n,o,r,s,a,l,d,c=v(e),p=b(e),u=!1;!u;){var h=null,m=1==p.nodeType?g.getComputedStyle(p):{};if("none"==m.display)return;if(p==this.root||p==f?(u=!0,h=t):p!=f.body&&p!=f.documentElement&&"visible"!=m.overflow&&(h=v(p)),h&&(i=h,n=c,d=l=a=s=r=o=void 0,o=Math.max(i.top,n.top),r=Math.min(i.bottom,n.bottom),s=Math.max(i.left,n.left),a=Math.min(i.right,n.right),d=r-o,!(c=0<=(l=a-s)&&0<=d&&{top:o,bottom:r,left:s,right:a,width:l,height:d})))break;p=b(p)}return c}},n.prototype._getRootRect=function(){var e,t,i;return i=this.root?v(this.root):(e=f.documentElement,t=f.body,{top:0,left:0,right:e.clientWidth||t.clientWidth,width:e.clientWidth||t.clientWidth,bottom:e.clientHeight||t.clientHeight,height:e.clientHeight||t.clientHeight}),this._expandRectByRootMargin(i)},n.prototype._expandRectByRootMargin=function(i){var e=this._rootMarginValues.map(function(e,t){return"px"==e.unit?e.value:e.value*(t%2?i.width:i.height)/100}),t={top:i.top-e[0],right:i.right+e[1],bottom:i.bottom+e[2],left:i.left-e[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t},n.prototype._hasCrossedThreshold=function(e,t){var i=e&&e.isIntersecting?e.intersectionRatio||0:-1,n=t.isIntersecting?t.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var r=this.thresholds[o];if(r==i||r==n||r<i!=r<n)return!0}},n.prototype._rootIsInDom=function(){return!this.root||a(f,this.root)},n.prototype._rootContainsTarget=function(e){return a(this.root||f,e)},n.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},n.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},g.IntersectionObserver=n,g.IntersectionObserverEntry=d)),e=window,i=function(e){var m={viewport:null,modTop:"0px",modRight:"0px",modBottom:"0px",modLeft:"0px",threshold:[0]};function o(s,a,l,e){if(!s)throw new Error("Target element to observe should be a valid DOM Node");var t=void 0!==(e=Object.assign({},m,e)).viewport?e.viewport:m.viewport,i=void 0!==e.modTop?e.modTop:m.modTop,n=void 0!==e.modRight?e.modRight:m.modRight,o=void 0!==e.modBottom?e.modBottom:m.modBottom,r=void 0!==e.modLeft?e.modLeft:m.modLeft,d=void 0!==e.threshold?e.threshold:m.threshold;if(!Array.isArray(d)&&"number"!=typeof d)throw new Error("threshold should be a number or an array of numbers");var c=Array.isArray(d)?d.map(function(e){return Math.floor(e%101)/100}):[Math.floor(d?d%101:0)/100];var p=Math.min(Math.min.apply(null,c)),u={root:t instanceof Node?t:null,rootMargin:i+" "+n+" "+o+" "+r,threshold:c},h=new IntersectionObserver(function(e,t){var i=e.filter(function(e){return e.target===s})[0];function n(){t.unobserve(s)}var o,r;i&&(o=i.isIntersecting,r=i.intersectionRatio,i.isInViewport=o&&p<=r,(i.isInViewport?a:l)(i,n,s))},u);return h.observe(s),function(){h.unobserve(s)}}e.observeElementInViewport=o,e.isInViewport=function(e,n){return new Promise(function(i,t){try{o(e,function(e,t){t(),i(!0)},function(e,t){t(),i(!1)},n)}catch(e){t(e)}})},Object.defineProperty(e,"__esModule",{value:!0})},"undefined"==typeof observeElementInViewport&&("object"===("undefined"==typeof exports?"undefined":p()(exports))&&void 0!==l?i(exports):"function"==typeof define&&c(4)?define(["exports"],i):i(e.observeElementInViewport={}))}var pe=h,x=c(1),T=c.n(x),L=c(2),B=c.n(L),U=c(3),q=function(){function e(){var t=this;T()(this,e),this.defaultOpts={autoload:!0,enablePC:!0,enableMobile:!0,disableHorizontalPosition:"",disableVerticalPosition:""},this.opts=Object.assign({},this.defaultOpts,window[pe.tagName].smartBannerConfig),this.elementID="vi-smartbanner",this.quadtree=null,this.innerRect=[],this.smartBannerSlots=null,this.floorPrice=.1,this.deviceType=Z()?"mobile":"pc",this.allPosition=[{id:1,width:300,height:600,type:"pc",horizontal:"left",vertical:"bottom"},{id:2,width:300,height:600,type:"pc",horizontal:"right",vertical:"bottom"},{id:3,width:160,height:600,type:"pc",horizontal:"left",vertical:"bottom"},{id:4,width:160,height:600,type:"pc",horizontal:"right",vertical:"bottom"},{id:5,width:300,height:250,type:"pc",horizontal:"left",vertical:"bottom"},{id:6,width:300,height:250,type:"pc",horizontal:"right",vertical:"bottom"},{id:7,width:728,height:90,type:"pc",horizontal:"middle",vertical:"bottom"},{id:8,width:320,height:50,type:"mobile",horizontal:"middle",vertical:"top"},{id:9,width:320,height:50,type:"mobile",horizontal:"middle",vertical:"bottom"},{id:10,width:300,height:50,type:"mobile",horizontal:"middle",vertical:"top"},{id:11,width:300,height:50,type:"mobile",horizontal:"middle",vertical:"bottom"}],this.allPosition=this.allPosition.filter(function(e){return(""===t.opts.disableHorizontalPosition||-1===t.opts.disableHorizontalPosition.split(" ").indexOf(e.horizontal))&&(""===t.opts.disableVerticalPosition||-1===t.opts.disableVerticalPosition.split(" ").indexOf(e.vertical))}),this.nicePositions=[],this.chosenPosition=null,this.onHideTimer=null,this.hideTime=0,this.adDiv=null,this.adUnitCode="vi-smartbanner-unit",this.adContainer=null,this.bodyMarginTop="0px",this.slotRenderEndedRegisted={},this.hasFixedAds=!1,this.refreshTime=20,this.isPaused=!1===this.opts.autoload,this.pause=function(){this.isPaused||(this.isPaused=!0,this.hideDiv(!0),this.chosenPosition=null,setTimeout(function(){this.removeAdContainer()}.bind(this),500))}.bind(this),this.continue=function(){this.isPaused&&(this.isPaused=!1,this.getBids())}.bind(this)}return B()(e,[{key:"onElementHeightChange",value:function(t,i){var n,o=t.clientHeight;!function e(){n=t.clientHeight,o!=n&&i(n),o=n,t.onElementHeightChangeTimer&&clearTimeout(t.onElementHeightChangeTimer),t.onElementHeightChangeTimer=setTimeout(e,500)}()}},{key:"lazyScanContent",value:function(){this._debounce&&clearTimeout(this._debounce),this._debounce=setTimeout(this.scanContent.bind(this),250)}},{key:"init",value:function(){O("body",function(){var i=this;this.bodyMarginTop=document.body.style.marginTop,!this.opts.enablePC&&"pc"==this.deviceType||!this.opts.enableMobile&&"mobile"==this.deviceType||(this.smartBannerSlots=pe.smartBanner&&pe.smartBanner[0]?JSON.parse(JSON.stringify(pe.smartBanner[0])):null,this.smartBannerSlots&&(this.floorPrice=this.smartBannerSlots.floorPrice,setTimeout(function(){this.scanContent(),this.getBids()}.bind(this),3e3),window.addEventListener("resize",function(){i.lazyScanContent(),i.checkAdCollision()}),window.addEventListener("scroll",function(){i.lazyScanContent(),i.checkAdCollision()}),this.onElementHeightChange(document.body,function(e){i.lazyScanContent()}),document.body.addEventListener("click",function(e){if(e.target.parentElement)for(var t=e.target.parentElement;t;){if("hideSlideBanner"===t.id){i.hideDiv(!0),i.chosenPosition=null,setTimeout(function(){this.removeAdContainer()}.bind(i),500);break}t=t.parentElement}}),new MutationObserver(function(e){setTimeout(function(){this.lazyScanContent(),this.checkAdCollision()}.bind(this),500)}.bind(this)).observe(document.body,{attributes:!0,childList:!0,characterData:!0,subtree:!0})))}.bind(this))}},{key:"refreshAd",value:function(){var e,t,i,n,o;this.chosenPosition&&this.adContainer&&(e=[],t=[],i=this.chosenPosition.width+"_"+this.chosenPosition.height,(n=JSON.parse(JSON.stringify(this.smartBannerSlots.adunit[i])))&&(n.code=this.adContainer.lastElementChild.id,n.bids=X(n.bids),n.bids=G(n.bids,pe.smartBanner[0].floorPrice),vlipb.removeAdUnit(n.code),vlipb.addAdUnits(n),0<n.bids.length&&!pe.auctionLogs[n.code]&&(pe.auctionLogs[n.code]={bidder:j(n.bids),preAuction:""}),e.push(n.code),"on"===pe.useAmazonUAM&&(o={slotID:n.code,sizes:n.mediaTypes.banner.sizes,slotName:pe.smartBannerDfpID},t.push(o))),K(e,t,this.displayBackHandler.bind(this)))}},{key:"removeAdContainer",value:function(){this.adContainer&&this.adContainer.parentNode.removeChild(this.adContainer),this.adContainer=null,this.adDiv=null}},{key:"checkAdCollision",value:function(){var t=this;this._checkAdCollision&&clearTimeout(this._checkAdCollision),this._checkAdCollision=setTimeout(function(){var e;t.chosenPosition&&"middle"!==t.chosenPosition.horizontal&&(e={x:"left"===t.chosenPosition.horizontal?t.getScrollX()+0:t.getScrollX()+document.documentElement.clientWidth-t.chosenPosition.width,y:"top"===t.chosenPosition.vertical?t.getScrollY()+0:t.getScrollY()+document.documentElement.clientHeight-t.chosenPosition.height,width:t.chosenPosition.width,height:t.chosenPosition.height},t.isColliding(e)?t.hideDiv():t.showDiv())},250)}},{key:"isAdElement",value:function(e){if(e.nodeName){if("ins"===e.nodeName.toLowerCase())return e._isAd=!0;if("iframe"!==e.nodeName.toLowerCase()&&"img"!==e.nodeName.toLowerCase())return!1;if("iframe"===e.tagName.toLowerCase())for(;e&&e!==document;e=e.parentNode)if(e.id!==this.elementID&&e.classList&&e.classList.contains(pe.tagConfig.className))return e._isAd=!0;var t=e.clientWidth,i=e.clientHeight;if(-1<["300x600","160x600","120x600","200x200","250x250","180x180","150x150","970x250","970x90","970x66","960x90","950x90","930x180","770x90","750x200","750x100","728x90","468x60","336x280","320x100","320x50","300x250","300x75","300x31","180x150"].indexOf(t+"x"+i))return e._isAd=!0}return!1}},{key:"getBoundingClientRect",value:function(e){if(e.getBoundingClientRect)return e.getBoundingClientRect();var t=document.createRange();t.selectNode(e);var i=t.getBoundingClientRect();return e.clientWidth=i.right-i.left,e.clientHeight=i.bottom-i.top,i}},{key:"getInnerBoundingClientRect",value:function(e,t){var i,n=this.getBoundingClientRect(e),o=this.getBoundingClientRect(t);n.right<o.left||n.left>o.right||n.bottom<o.top||n.top>o.bottom||(i={},n.left<=o.left?(i.left=o.left,i.x=i.left):n.left>=o.left&&(i.left=n.left,i.x=i.left),n.right<=o.right?(i.right=n.right,i.width=i.right-i.left):n.right>=o.right&&(i.right=o.right,i.width=i.right-i.left),o.top<=n.top?(i.top=n.top,i.y=i.top):o.top>=n.top&&(i.top=o.top,i.y=i.top),o.bottom<=n.bottom?i.bottom=o.bottom:o.bottom>=n.bottom&&(i.bottom=n.bottom),i.top&&i.bottom&&(i.height=i.bottom-i.top),i.isOverflow=!0,i.clientWidth=i.width,i.clientHeight=i.height,this.innerRect.push(i))}},{key:"funcB",value:function(e){if(e.parentElement)for(var t=e.parentElement;t;){if(-1!==this.innerRect.indexOf(t))return!1;var i=["hidden","scroll","auto","visible"],n=window.getComputedStyle(t);if(-1<i.indexOf(n.overflow)||-1<i.indexOf(n["overflow-x"])||-1<i.indexOf(n["overflow-y"]))return this.getInnerBoundingClientRect(e,t),!0;t=t.parentElement}return!1}},{key:"isContentElement",value:function(e){if(void 0!==e._isContentElement)return e._isContentElement;if(this.isAdElement(e))return e._isAd=!0;if(e.parentNode.tagName&&"VLI"===e.parentNode.tagName)for(;e&&e!==document;e=e.parentNode)if(e.id===this.elementID)return!1;if("IFRAME"===e.tagName)for(;e&&e!==document;e=e.parentNode)if(e.id===this.elementID)return!1;if(r(e,"vliIgnore")){if(e.children)for(var t=0;t<e.children.length;t++)e.children[t].classList&&e.children[t].classList.add("vliIgnore");return!1}for(var i=e;i;){if(-1!==this.innerRect.indexOf(i)||r(i,"vliIgnore"))return!1;i=i.parentElement}var n=!function(e){if(e.parentElement instanceof Element){var t=window.getComputedStyle(e.parentElement);if("hidden"===t.visibility||"0"===t.opacity||"none"===t.display)return 1}}(e)&&this.funcB(e)&&(!(!e.nodeName||"video"!==e.nodeName.toLowerCase())||!(!e.nodeName||"img"!==e.nodeName.toLowerCase())||(void 0===e.clientWidth&&getBoundingClientRect(e),!(e.clientWidth<2||e.clientHeight<2||document.body.clientWidth<=e.clientWidth)));return e._isContentElement=n}},{key:"getScrollX",value:function(){return window?window.pageXOffset:window.document.documentElement.scrollLeft}},{key:"getScrollY",value:function(){return window?window.pageYOffset:window.document.documentElement.scrollTop}},{key:"scanContent",value:function(){var e=[],t=[],i=document.body.clientWidth||top.innerWidth,n=document.body.clientHeight||top.innerHeight;this.quadtree=new U({width:i,height:n,maxElements:4}),t=(t=t.concat(function(e){for(var t,i=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,null,!1);t=n.nextNode();)-1===i.indexOf(t)&&i.push(t);return i}(document.body))).concat(Array.from(document.querySelectorAll("ins, video, iframe, img, span, p, a *")));for(var o=0;o<t.length;o++){var r=t[o];this.isContentElement(r)&&e.push(r)}var s=[];e.forEach(function(e){var t=e.isOverflow?e:this.getBoundingClientRect(e);s.push({x:t.left+this.getScrollX(),y:t.top+this.getScrollY(),width:e.clientWidth,height:e.clientHeight,element:e})}.bind(this)),this.quadtree.pushAll(s),this.nicePositions=this.collisionCheck()}},{key:"getBids",value:function(){var o,r,s,a=this;this.isPaused||(this.chosenPosition=null,this.removeAdContainer(),o=[],r=[],s=[],this.allPosition.forEach(function(e){var t,i,n;e.type===a.deviceType&&(t=e.width+"_"+e.height,a.smartBannerSlots.adunit[t]&&-1===o.indexOf(t)&&(o.push(t),(i=JSON.parse(JSON.stringify(a.smartBannerSlots.adunit[t])))&&(i.code=i.code+"_"+e.id,i.bids=X(i.bids),i.bids=G(i.bids,pe.smartBanner[0].floorPrice),vlipb.removeAdUnit(i.code),vlipb.addAdUnits(i),0<i.bids.length&&!pe.auctionLogs[i.code]&&(pe.auctionLogs[i.code]={bidder:j(i.bids),preAuction:""}),r.push(i.code),"on"===pe.useAmazonUAM&&(n={slotID:i.code,sizes:i.mediaTypes.banner.sizes,slotName:pe.smartBannerDfpID},s.push(n)))))}),0!==r.length&&K(r,s,this.displayBackHandler.bind(this)))}},{key:"displayBackHandler",value:function(e){var i=[];e.forEach(function(e){var t=Y(vlipb.getBidResponsesForAdUnitCode(e),e);i=i.concat(t)});var t=(t=J(i)).filter(function(e){return!(e.cpm<this.floorPrice||e.cpm<pe.dfpFloorPrice)||(vlipb.markWinningBidAsUsed({adId:e.adId}),!1)}.bind(this));this.beforeRenderAd(t)}},{key:"beforeRenderAd",value:function(e){var t=this;if(this.nicePositions.length<=0)setTimeout(function(){t.beforeRenderAd(e)},1e3);else if(0<e.length){var i=e[0];if(e.splice(0,1),!this.chosenPosition)for(var n=0;n<this.nicePositions.length;n++)if(this.nicePositions[n].width===i.width&&this.nicePositions[n].height===i.height){this.chosenPosition=this.nicePositions[n];break}this.chosenPosition?this.renderAd(this.chosenPosition,i):this.beforeRenderAd(e)}else this.chosenPosition||(this.chosenPosition=this.nicePositions[0]),this.renderAd(this.chosenPosition,null)}},{key:"createAdContainer",value:function(e){var t=document.createElement("div");t.id=this.elementID,t.status="hide",t.style.position="fixed",t.style.zIndex=2147483647,t.style.transition="all 0.5s ease 0s",t.style.boxShadow="rgba(0, 0, 0, 0.8) 0px 0px 15px 0px",t.style.backgroundColor="#ffffff",t.style.width=e.width+"px",t.style.height=e.height+"px",t.style.textAlign="center","left"===e.horizontal?t.style.left="-"+(e.width+30)+"px":"right"===e.horizontal?t.style.right="-"+(e.width+30)+"px":"middle"===e.horizontal&&(Z()?t.style.left="0":(t.style.left="50%",t.style.transform="translateX(-50%)")),"top"===e.vertical?t.style.top="middle"===e.horizontal?"-"+(e.height+30)+"px":0:"bottom"===e.vertical&&(t.style.bottom="middle"===e.horizontal?"-"+(e.height+30)+"px":0),"mobile"===e.type?(t.style.width=window.screen.width+"px",t.style.backgroundColor="rgb(84, 110, 122)","bottom"===e.vertical&&(t.innerHTML='\n                <div class="vliIgnore" style="display: block; position: absolute; width: 100%; top: -5px; height: 10px; background-color: rgb(84, 110, 122) !important;">\n                    <div id="hideSlideBanner" style="width: 70px; height: 30px; position: absolute; top: -15px; left: 50%; transform: translateX(-50%); text-align: center; background-color: rgb(84, 110, 122) !important; border-top-right-radius: 50%; border-top-left-radius: 50%;">\n                        <div style="display: block; width: 36px; height: 30px; margin: 0 auto;">\n                            <svg style="display: block; padding: 8px 0px;" enable-background="new 0 0 451.847 451.847" version="1.1" viewBox="0 0 452 87" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect class="" width="100%" height="100%" fill="none" style=""/><g class="currentLayer" style=""><title>Layer 1</title><g class="" fill="#dadada"><path d="m225.92 86.968c-8.098 0-16.195-1.044-22.369-3.1277l-194.28-65.602c-12.359-4.1731-12.359-10.939 0-15.11 12.354-4.1714 32.388-4.1714 44.748 0l171.9 58.048 171.91-58.046c12.359-4.1714 32.391-4.1714 44.744 0 12.365 4.1714 12.365 10.937 0 15.11l-194.28 65.602c-6.177 2.084-14.274 3.1257-22.369 3.1257z" fill="#dadada"/></g></g></svg>\n                        </div>\n                    </div>\n                </div>\n                '),"top"===e.vertical&&(t.innerHTML='\n                <div class="vliIgnore" style="display: block; position: absolute; width: 100%; bottom: -5px; height: 10px; background-color: rgb(84, 110, 122) !important;">\n                    <div id="hideSlideBanner" style="width: 70px; height: 30px; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); text-align: center; background-color: rgb(84, 110, 122) !important; border-bottom-right-radius: 50%; border-bottom-left-radius: 50%;">\n                        <div style="display: block; width: 36px; height: 30px; margin: 0 auto;">\n                            <svg display="block" enable-background="new 0 0 451.847 451.847" style="padding: 15px 0 0 0;" version="1.1" viewBox="0 0 452 87" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="none"/><g class="currentLayer" style=""><title>Layer 1</title><g class="" transform="rotate(180 225.92 43.484)" fill="#dadada"><path d="m225.92 86.968c-8.098 0-16.195-1.044-22.369-3.1277l-194.28-65.602c-12.359-4.1731-12.359-10.939 0-15.11 12.354-4.1714 32.388-4.1714 44.748 0l171.9 58.048 171.91-58.046c12.359-4.1714 32.391-4.1714 44.744 0 12.365 4.1714 12.365 10.937 0 15.11l-194.28 65.602c-6.177 2.084-14.274 3.1257-22.369 3.1257z" fill="#dadada"/></g></g><g><title>Layer 2</title><rect class="" width="100%" height="100%" fill="none" style=""/></g></svg>\n                        </div>\n                    </div>\n                </div>\n                ')):t.innerHTML='\n            <vli class="vliIgnore" style="'.concat("on"==pe.enableIcon?"width: 105px;":"width: 20px;",' background: unset!important;box-sizing: unset!important;display: block; border-bottom: 20px solid rgba(0, 0, 0, 0.7); border-right: 10px solid transparent; position: absolute; top: -20px; left: 0;">\n                <vli style="background: unset!important;box-sizing: unset!important;padding: 2px;position:absolute; top: 0; left: 0;">\n                    <vli id="hideSlideBanner" style="background: unset!important;box-sizing: unset!important;cursor:pointer;display: block; float: left; width: 10px; height: 10px; margin: 3px;">\n                        <svg width="512px" height="512px" display="inherit" enable-background="new 0 0 92.132 92.132" style="box-sizing:unset!important;height:100%;width:100%" version="1.1" viewBox="0 0 92.132 92.132" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path class="active-path" d="m2.141 89.13c1.425 1.429 3.299 2.142 5.167 2.142 1.869 0 3.742-0.713 5.167-2.142l33.591-33.592 33.591 33.592c1.426 1.429 3.299 2.142 5.167 2.142 1.867 0 3.74-0.713 5.167-2.142 2.854-2.854 2.854-7.48 0-10.334l-33.593-33.591 31.869-31.869c2.855-2.853 2.855-7.481 0-10.334-2.853-2.855-7.479-2.855-10.334 0l-31.868 31.868-31.867-31.869c-2.854-2.855-7.481-2.855-10.333 0-2.855 2.853-2.855 7.481 0 10.334l31.868 31.869-33.59 33.591c-2.857 2.853-2.857 7.479-2e-3 10.335z" fill="#fff" data-old_color="#ffffff" data-original="#000000"></path></svg>\n                    </vli>\n                    ').concat("on"==pe.enableIcon?'<a style="box-sizing: unset!important;display: flex; float: left; margin-left: 5px;" href="//'+pe.brandHomepage+"/?ref="+window.location.hostname+'" target="_blank" rel="nofollow"><img style="width: 80px!important;height:15px!important;" src="//'+pe.brandLogo+'"></a>':"","\n                </vli>\n            </vli>\n            ");var i=document.createElement("div");i.id=this.adUnitCode,i.style.cssText="z-index: 9999; position: relative; display: inline-block;",t.appendChild(i),document.body.appendChild(t);var n=function(){pe.viewabilityCheck[this.elementID].setInterval=setInterval(function(){"active"===pe.userState&&(pe.viewabilityCheck[this.elementID].viewableTime++,pe.viewabilityCheck[this.elementID].viewableTime>=this.refreshTime&&(this.refreshAd(),pe.viewabilityCheck[this.elementID].viewableTime=0))}.bind(this),1e3)}.bind(this),o=function(){clearInterval(pe.viewabilityCheck[this.elementID].setInterval)}.bind(this);pe.viewabilityCheck[this.elementID]={},pe.viewabilityCheck[this.elementID].viewableTime=0,pe.viewabilityCheck[this.elementID].setInterval=null,ee(i,n,o,{threshold:[51]}),this.adContainer=t,this.adDiv=i}},{key:"showDiv",value:function(){var e;this.adContainer&&"show"!==this.adContainer.status&&!0===this.adContainer.hasAd&&this.chosenPosition&&(this.adContainer.status="show","left"===this.chosenPosition.horizontal?this.adContainer.style.left=0:"right"===this.chosenPosition.horizontal?this.adContainer.style.right=0:"middle"===this.chosenPosition.horizontal&&(Z()?this.adContainer.style.left="0":(this.adContainer.style.left="50%",this.adContainer.style.transform="translateX(-50%)")),"top"===this.chosenPosition.vertical?(Z()&&(e=parseInt(this.bodyMarginTop.replace("px",""))?parseInt(this.bodyMarginTop.replace("px","")):0,document.body.style.setProperty("margin-top",e+this.chosenPosition.height+5+"px","important")),this.adContainer.style.top=0):"bottom"===this.chosenPosition.vertical&&(this.adContainer.style.bottom=0),clearInterval(this.onHideTimer),this.onHideTimer=null,this.hideTime=0)}},{key:"hideDiv",value:function(e){this.adContainer&&"hide"!==this.adContainer.status&&this.chosenPosition&&(this.adContainer.status="hide","left"===this.chosenPosition.horizontal?this.adContainer.style.left="-"+(this.chosenPosition.width+20)+"px":"right"===this.chosenPosition.horizontal?this.adContainer.style.right="-"+(this.chosenPosition.width+20)+"px":"middle"===this.chosenPosition.horizontal&&("top"===this.chosenPosition.vertical&&(Z()&&document.body.style.setProperty("margin-top",this.bodyMarginTop),this.adContainer.style.top="-"+(this.chosenPosition.height+20)+"px"),"bottom"===this.chosenPosition.vertical&&(this.adContainer.style.bottom="-"+(this.chosenPosition.height+20)+"px")),"middle"!==this.chosenPosition.horizontal&&(e||this.onHideTimer||(this.onHideTimer=setInterval(function(){this.hideTime++,10<=this.hideTime&&(clearInterval(this.onHideTimer),this.onHideTimer=null,this.hideTime=0,this.getBids())}.bind(this),1e3))))}},{key:"renderAd",value:function(e,t){if(this.adDiv||this.createAdContainer(e),"dfp"!=pe.bannerRequestMode&&"postbid_dfp"!=pe.bannerRequestMode||(pe.gSlots[this.adUnitCode]&&googletag.destroySlots([pe.gSlots[this.adUnitCode]]),googletag.cmd.push(function(){t&&"native"===t.mediaType?pe.gSlots[this.adUnitCode]=googletag.defineSlot(pe.smartBannerDfpID,"fluid",this.adUnitCode).addService(googletag.pubads()):pe.gSlots[this.adUnitCode]=googletag.defineSlot(pe.smartBannerDfpID,[[e.width,e.height]],this.adUnitCode).addService(googletag.pubads()),this.slotRenderEndedRegisted[this.adUnitCode]||(googletag.pubads().addEventListener("slotRenderEnded",function(e){var t;e.slot.getSlotElementId()===this.adUnitCode&&(!0===e.isEmpty?this.reGetBids():!0===e.isBackfill?(this.adContainer.hasAd=!0,this.showDiv(),P({bidder:"Adx_smartbanner",cpm:0})):(t=!1,0<e.slot.getTargeting("amznbid").length&&-1===e.slot.getTargeting("amznbid").indexOf("0")&&-1===e.slot.getTargeting("amznbid").indexOf("1")&&-1===e.slot.getTargeting("amznbid").indexOf("2")&&(t=!0),-1===e.slot.getTargeting("up_bid").indexOf("true")||t||this.reGetBids()),e.isEmpty||e.isBackfill&&null!==e.size&&-1===[0,1].indexOf(e.size[0])&&-1===[0,1].indexOf(e.size[1])&&(this.adDiv.style.setProperty("margin","0 auto","important"),this.adDiv.style.setProperty("width",e.size[0]+"px","important"),this.adDiv.style.setProperty("height",e.size[1]+"px","important"),this.adDiv.style.setProperty("position","absolute","important"),this.adDiv.style.setProperty("top","50%","important"),this.adDiv.style.setProperty("left","50%","important"),this.adDiv.style.setProperty("transform","translate(-50%,-50%)","important")))}.bind(this)),this.slotRenderEndedRegisted[this.adUnitCode]=!0)}.bind(this))),t){var i={type:"hb",divID:this.elementID,zoneID:this.smartBannerSlots.zid,bidder:t.bidderCode,cpm:t.cpm};"native"===t.mediaType&&(i.adType="native");var n=function(e){$(i),this.adContainer.hasAd=!0,this.showDiv(),D("smart_banner",e),vlipb.offEvent("bidWon",n,t.adUnitCode)}.bind(this);if(vlipb.onEvent("bidWon",n,t.adUnitCode),pe.adRenderAction.bidWon[this.adUnitCode]=function(){$(i),this.adContainer.hasAd=!0,this.showDiv()}.bind(this),"dfp"==pe.bannerRequestMode&&googletag.cmd.push(function(){"on"===pe.useAmazonUAM&&apstag.setDisplayBids([t.adUnitCode]),-1!==pe.noneSafeFrameBidder.indexOf(t.bidderCode)?pe.gSlots[this.adUnitCode].setTargeting("vli_sf","0"):pe.gSlots[this.adUnitCode].setTargeting("vli_sf","1"),pe.refererDomainID?pe.gSlots[this.adUnitCode].setTargeting("vli_ref",pe.refererDomainID+"_"+pe.domainID):pe.gSlots[this.adUnitCode].setTargeting("vli_adslot",this.smartBannerSlots.zid),pe.gSlots[this.adUnitCode].setTargeting("vli_adtype","display"),pe.gSlots[this.adUnitCode].setTargeting("hb_width",e.width),pe.gSlots[this.adUnitCode].setTargeting("hb_height",e.height),I(t,pe.gSlots[this.adUnitCode]),googletag.pubads().refresh([pe.gSlots[this.adUnitCode]])}.bind(this)),"postbid"==pe.bannerRequestMode||"postbid_dfp"==pe.bannerRequestMode)switch(t.mediaType){case"banner":-1===pe.noneSafeFrameBidder.indexOf(t.bidderCode)&&"on"===pe.safeFrame?(this.adDiv.innerHTML='<div id="vli_sf_'+this.adUnitCode+'"></div>',k("vli_sf_"+this.adUnitCode,{width:t.width?t.width:e.width,height:t.height?t.height:e.height},t.ad)):vlipb.renderAd(S(this.adDiv,this.adUnitCode,t.width?t.width:e.width,t.height?t.height:e.height),t.adId);break;case"native":var o={adUnitCode:this.adUnitCode,adId:t.adId,pubUrl:window.location.href,width:e.width,height:e.height};C(S(this.adDiv,this.adUnitCode,t.width?t.width:e.width,t.height?t.height:e.height),o)}}else"postbid"===pe.bannerRequestMode&&this.reGetBids(),"dfp"!==pe.bannerRequestMode&&"postbid_dfp"!==pe.bannerRequestMode||googletag.cmd.push(function(){pe.refererDomainID?pe.gSlots[this.adUnitCode].setTargeting("vli_ref",pe.refererDomainID+"_"+pe.domainID):pe.gSlots[this.adUnitCode].setTargeting("vli_adslot",this.smartBannerSlots.zid),pe.gSlots[this.adUnitCode].setTargeting("vli_adtype","display"),pe.gSlots[this.adUnitCode].setTargeting("vli_sf","1"),googletag.pubads().refresh([pe.gSlots[this.adUnitCode]])}.bind(this))}},{key:"reGetBids",value:function(){var e=0,t=setInterval(function(){"active"===pe.userState&&e++,e>=this.refreshTime&&(clearInterval(t),this.adContainer&&"hide"===this.adContainer.status&&this.getBids())}.bind(this),1e3)}},{key:"collisionCheck",value:function(){for(var e=[],t=0;t<this.allPosition.length;t++){var i=this.allPosition[t];if(!(document.documentElement.clientWidth<i.width||document.documentElement.clientHeight<i.height)&&(!(.3<=i.width*i.height/(document.documentElement.clientWidth*document.documentElement.clientHeight))&&this.deviceType===i.type)){if("pc"===this.deviceType){if(728===i.width&&90===i.height){e.push(i);continue}var n={x:"left"===i.horizontal?this.getScrollX()+0:this.getScrollX()+document.documentElement.clientWidth-i.width,y:"top"===i.vertical?this.getScrollY()+0:this.getScrollY()+document.documentElement.clientHeight-i.height,width:i.width,height:i.height};this.isColliding(n)||e.push(i)}"mobile"===this.deviceType&&e.push(i)}}return e}},{key:"isColliding",value:function(e){return 0<this.quadtree.colliding(e).length}}]),e}(),H=function(){function e(){T()(this,e),this.defaultOpts={skipDelay:15},this.opts=Object.assign({},this.defaultOpts,window[pe.tagName].smartVideoConfig),this.tagId=null,this.adSlot=null,this.adWidth=null,this.adHeight=null,this.adDiv=null,this.adWrapper=null,this.backgroundVideo=null,this.adsManager=null,this.currentVolume=0,this.numBidRequest=0,this.maxBidRequest=10,this.refreshTime=1,this.noBidTime=5,this.clicked=!1,this.scrolled=!1,this.waitInteractive=function(){},(this.opts.skipDelay!==parseInt(this.opts.skipDelay,10)||this.opts.skipDelay<0||15<this.opts.skipDelay)&&(this.opts.skipDelay=this.defaultOpts.skipDelay)}return B()(e,[{key:"init",value:function(){if((!(pe.outstreamSlot&&"enablePC"in window[pe.tagName].outStreamConfig&&!1===window[pe.tagName].outStreamConfig.enablePC)||Z())&&!(pe.outstreamSlot&&"enableMobile"in window[pe.tagName].outStreamConfig&&!1===window[pe.tagName].outStreamConfig.enableMobile&&Z())&&(!(0<document.getElementsByClassName("vlivideodiscover").length)||!0!==window[pe.tagName].videoDiscoverConfig.alwayDisplayAd&&!1!==window[pe.tagName].videoDiscoverConfig.noFixedVideo)&&pe.instreamSlot){for(var e in pe.instreamSlot){var t;!pe.instreamSlot.hasOwnProperty(e)||"smart_video"===(t=pe.instreamSlot[e]).type&&(this.adSlot=JSON.parse(JSON.stringify(t)),this.tagId=e)}this.adSlot&&(window[pe.tagName].outStreamConfig.instantLoad=!1,O("body",function(){var e=this;this.createContainer(),this.eventHandler(),this.clicked||this.scrolled?this.getAds():this.waitInteractive=function(){e.getAds(),e.waitInteractive=function(){}}}.bind(this)))}}},{key:"eventHandler",value:function(){var e=this;document.body.addEventListener("click",function(){e.clicked=!0,e.waitInteractive()}),window.addEventListener("scroll",function(){e.scrolled=!0,e.waitInteractive()}),this.adDiv.addEventListener("mouseover",function(){Z()||1!=this.clicked||(this.backgroundVideo&&(this.backgroundVideo.muted=!1),this.adsManager&&this.adsManager.setVolume(1))}.bind(this)),this.adDiv.addEventListener("mouseout",function(){!Z()&&this.clicked&&(this.backgroundVideo&&(this.backgroundVideo.muted=!0),this.adsManager&&this.adsManager.setVolume(0))}.bind(this)),ne({divID:this.tagId,hidden:function(){e.adsManager&&e.adsManager.pause(),e.backgroundVideo&&!e.adsManager&&e.backgroundVideo.pause()},watching:function(){e.adsManager&&e.adsManager.resume(),e.backgroundVideo&&!e.adsManager&&e.backgroundVideo.play()}})}},{key:"createContainer",value:function(){this.adWidth=Z()?Math.round(window.innerWidth/100*80):410,this.adHeight=Z()?Math.round(this.adWidth/16*9):231;var e=Z()?40:0,t=document.createElement("div");t.className=pe.adClass,t.id=this.tagId,t.style.cssText="width: "+this.adWidth+"px; height: "+this.adHeight+"px; position: fixed; bottom: "+e+"; right:-"+(this.adWidth+50)+"px; background-color: #fff; transition: right 1s ease 0s; z-index: 2147483647;";var i=document.createElement("div");i.className="videoWrapper",i.style.cssText="position: relative;";var n=document.createElement("video"),o=Math.floor(Math.random()*this.adSlot.vid.contents.length),r=this.adSlot.vid.contents[o],s=r.thumb.startsWith("http")?r.thumb:"//assets."+pe.rootDomain+r.thumb,a=u(r.video_url.mp4)?r.video_url.mp4:"//media."+pe.rootDomain+r.video_url.mp4;n.poster=s,n.muted=!0,n.src=a,n.style.width="100%",n.style.height="100%",i.appendChild(n);var l=document.createElement("div");l.className="adWrapper",t.appendChild(i),t.appendChild(l),document.body.appendChild(t),this.backgroundVideo=n,this.adWrapper=l,this.adDiv=t}},{key:"showSkip",value:function(){var e,t=this;1<this.numBidRequest||((e=document.createElement("vli")).style.cssText="width: 105px; background: unset!important;box-sizing: unset!important;display: block; border-bottom: 20px solid rgba(0, 0, 0, 0.7); border-right: 10px solid transparent; position: absolute; top: 0; left: 0;transition: top .5s ease 0s;",e.innerHTML='<vli style="background: unset!important;box-sizing: unset!important;padding: 2px;position:absolute; top: 0; left: 0;"><vli id="vi_smvideo_close" title="Skip Ad" style="background: unset!important;box-sizing: unset!important;cursor:pointer;display: block; float: left; width: 10px; height: 10px; margin: 3px;"><svg width="512px" height="512px" display="inherit" enable-background="new 0 0 92.132 92.132" style="box-sizing:unset!important;height:100%;width:100%" version="1.1" viewBox="0 0 92.132 92.132" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path class="active-path" d="m2.141 89.13c1.425 1.429 3.299 2.142 5.167 2.142 1.869 0 3.742-0.713 5.167-2.142l33.591-33.592 33.591 33.592c1.426 1.429 3.299 2.142 5.167 2.142 1.867 0 3.74-0.713 5.167-2.142 2.854-2.854 2.854-7.48 0-10.334l-33.593-33.591 31.869-31.869c2.855-2.853 2.855-7.481 0-10.334-2.853-2.855-7.479-2.855-10.334 0l-31.868 31.868-31.867-31.869c-2.854-2.855-7.481-2.855-10.333 0-2.855 2.853-2.855 7.481 0 10.334l31.868 31.869-33.59 33.591c-2.857 2.853-2.857 7.479-2e-3 10.335z" fill="#fff" data-old_color="#ffffff" data-original="#000000"></path></svg></vli><a style="box-sizing: unset!important;display: flex; float: left; margin-left: 5px;" href="//'+pe.brandHomepage+"/?ref="+window.location.hostname+'" target="_blank" rel="nofollow"><img style="width: 80px!important;" src="//'+pe.brandLogo+'"></a></vli>',this.adDiv.insertBefore(e,this.adDiv.firstChild),setTimeout(function(){e.style.top="-20px"},1e3*this.opts.skipDelay),document.getElementById("vi_smvideo_close").addEventListener("click",function(){t.adsManager&&t.adsManager.skip(),t.removeAd()}))}},{key:"showAd",value:function(){this.adDiv.style.right=0}},{key:"hideAd",value:function(){this.adDiv.style.right="-"+(this.adWidth+50)+"px",this.backgroundVideo.muted=!0}},{key:"removeAd",value:function(){var e=this;this.adDiv.style.right="-"+(this.adWidth+50)+"px",setTimeout(function(){document.body.removeChild(e.adDiv)},1e3)}},{key:"getAds",value:function(){var e;!this.adSlot.adunit||(e=this.adSlot.adunit).bids&&(e.code=this.tagId,e.bids=X(e.bids),e.bids=G(e.bids,this.adSlot.floorPrice),vlipb.removeAdUnit(e.code),vlipb.addAdUnits(e),0<e.bids.length&&(pe.auctionLogs[this.tagId]={bidder:j(e.bids),preAuction:""}),K([this.tagId],[],this.bidBackHandler.bind(this),"smartvideo"),this.numBidRequest++)}},{key:"bidBackHandler",value:function(e){var t,i,n,o,r,s=Y(vlipb.getBidResponsesForAdUnitCode(e[0]),e[0]),a=(a=J(s)).filter(function(e){return!("video"===e.mediaType&&e.cpm<this.adSlot.floorPrice)||(vlipb.markWinningBidAsUsed({adId:e.adId}),!1)}.bind(this));"dfp"===pe.videoRequestMode?(t=null,0<a.length&&(t=a[0],a.splice(0,1)),i="",t&&(i=Q({type:"hb_video",divID:this.tagId,zoneID:this.adSlot.zid,bidder:t.bidderCode,cpm:t.cpm})),n={hb_domain:pe.domainName,section:"blog",anotherKey:"anotherValue",vli_adtype:"discovery",impression_url:pe.statsDomain,token:i},pe.refererDomainID?n.vli_ref=pe.refererDomainID+"_"+pe.domainID:n.vli_adslot="videodiscovery_"+this.adSlot.zid,o=vlipb.adServers.dfp.buildVideoUrl({adUnit:this.adSlot.adunit,params:{description_url:window.location.href,iu:pe.dfpVideoSlotID,cust_params:n,output:"vast"}}),t&&vlipb.markWinningBidAsUsed({adId:t.adId}),r={start:function(){pe.VIdebug&&(Debug.cleanInfoOverlay(this.tagId),Debug.pushInfoOverlay(this.tagId,"adId",this.tagId),Debug.pushInfoOverlay(this.tagId,"creativeId",t?t.creativeId:"unknown from Adx"))}.bind(this),error:function(){this.startRender(a)}.bind(this)},this.playVast({vastUrl:o,vastXml:null},r)):this.startRender(a)}},{key:"startRender",value:function(e){var t,i,n,o,r=0<arguments.length&&void 0!==e?e:[],s={start:function(){},impression:function(){},error:function(){},hidden:function(){},adsVolumeChange:function(){}};0<r.length?(o=r[0],vlipb.markWinningBidAsUsed({adId:o.adId}),r.splice(0,1),t=o.vastUrl||null,i=o.vastXml||null,s.start=function(){pe.VIdebug&&(Debug.cleanInfoOverlay(this.tagId),Debug.pushInfoOverlay(this.tagId,"adId",this.tagId),Debug.pushInfoOverlay(this.tagId,"creativeId",o.creativeId))}.bind(this),s.error=function(e){this.startRender(r)}.bind(this),s.impression=function(){var e,t,i={type:"hb_video",divID:this.tagId,zoneID:this.adSlot.zid,bidder:o.bidderCode,cpm:o.cpm};$(i),"string"==typeof(e="[Smart Video] Video Win ___ "+i.bidder+" ___ "+i.cpm)?(t=(new Date).toLocaleTimeString(),t+=":"+(new Date).getMilliseconds(),window.console.log.apply(console,["%cVLI","display: inline-block; color: #fff; background: #DD0420; padding: 1px 4px; border-radius: 3px;",t,e])):console.log(e)}.bind(this),n={vastUrl:t,vastXml:i},this.playVast(n,s)):this.caseTwo()}},{key:"caseTwo",value:function(){var e,t,i;"postbid_dfp"===pe.videoRequestMode&&(e={hb_domain:pe.domainName,section:"blog",anotherKey:"anotherValue",vli_adtype:"discovery"},pe.refererDomainID?e.vli_ref=pe.refererDomainID+"_"+pe.domainID:e.vli_adslot="videodiscovery_"+this.adSlot.zid,t=vlipb.adServers.dfp.buildVideoUrl({adUnit:this.adSlot.adunit,params:{description_url:window.location.href,iu:pe.dfpVideoSlotID,cust_params:e,output:"vast"}}),i={start:function(){pe.VIdebug&&(Debug.cleanInfoOverlay(this.tagId),Debug.pushInfoOverlay(this.tagId,"adId",this.tagId),Debug.pushInfoOverlay(this.tagId,"creativeId","unknown from Adx"))}.bind(this),error:function(){this.tryWithCustomVast()}.bind(this)},this.playVast({vastUrl:t},i)),"dfp"!==pe.videoRequestMode&&"postbid"!==pe.videoRequestMode||this.tryWithCustomVast()}},{key:"tryWithCustomVast",value:function(){re(pe.pixelID);var e=[];this.adSlot.vast&&(e=JSON.parse(JSON.stringify(this.adSlot.vast)));for(var t=0;t<e.length;t++)e[t].link=ae(e[t].link);this.renderCustomVast(e)}},{key:"renderCustomVast",value:function(t){var e,i,n={start:function(){},impression:function(){},error:function(){},hidden:function(){},adsVolumeChange:function(){}};0<t.length?(i=t[0],t.splice(0,1),i.link&&i.bidder?(n.start=function(){},n.complete=function(){},n.impression=function(){se(pe.domainName,"OK - "+i.bidder,"ok","ok")},n.error=function(e){se(pe.domainName,"ERROR - "+i.bidder,"er","er"),this.renderCustomVast(t)}.bind(this),n.hidden=function(){},n.adsVolumeChange=function(e){},e={vastUrl:i.link,vastXml:null},this.playVast(e,n)):this.renderCustomVast(t)):(this.adWrapper.style.cssText="",this.adWrapper.innerHTML="",this.refreshBid(this.noBidTime))}},{key:"refreshBid",value:function(e){this.adsManager=null,this.numBidRequest>=this.maxBidRequest||setTimeout(function(){var e,t=this;pe.isVisible?(K([this.tagId],[],this.bidBackHandler.bind(this),"smartvideo"),this.numBidRequest++):ne({divID:e="smartvideo_refresh_queue",hidden:function(){},watching:function(){oe(e),K([t.tagId],[],t.bidBackHandler.bind(t),"smartvideo"),t.numBidRequest++}})}.bind(this),1e3*e)}},{key:"playVast",value:function(e,t){var i=new vlPlayer({baseDomain:pe.rootDomain,brandLogo:pe.brandLogo});this.adsManager=i.play({type:"instreamBanner",vastUrl:e.vastUrl?e.vastUrl:null,vastXML:e.vastXML?e.vastXML:null,adElement:this.adWrapper,volume:this.currentVolume,volumeControl:!!Z(),start:function(){this.showSkip(),this.showAd(),this.backgroundVideo.pause(),t.start&&t.start()}.bind(this),complete:function(){t.complete&&t.complete()},error:function(e){t.error&&t.error(e)},impression:function(){t.impression&&t.impression()},hidden:function(){this.currentVolume&&(this.backgroundVideo.muted=!1),this.backgroundVideo.play(),this.adWrapper.style.cssText="",this.adWrapper.innerHTML="",this.adsManager=null,this.refreshBid(this.refreshTime),t.hidden&&t.hidden()}.bind(this),adsVolumeChange:function(e){pe.adsVolume=e,this.currentVolume=e,pe.changeAdsVolume=!0,t.adsVolumeChange&&t.adsVolumeChange(e)}.bind(this)})}}]),e}(),W=function(){function t(e){T()(this,t),this.dId="vi_outstrAd_"+e,this.stop=!1,this.timeReq=20,this.reqLimit=20,this.reqCount=0,this.adIsActive=!1,this.action=!1,this.issetClick=!1,this.adSlot=e,this.config=this.getAdConfig(),this.floorPrice=0,this.outstreamSlot=this.getOutStreamSlot("inline"),this.outstreamID=null,this.inViewport=!1,this.adContainer=null,this.adContainerChild=null,this.adPlayer=null,this.viPlayer=new vlPlayer({baseDomain:pe.rootDomain}),this.viAcAd=function(){},this.wrapperWidth=null,this.wrapperHeight=null}return B()(t,[{key:"init",value:function(){var e=this;if(this.outstreamSlot&&(!1!==this.config.enablePC||Z())&&(!1!==this.config.enableMobile||!Z())){var t,i=document.getElementsByClassName(pe.adClass);if(0<i.length)for(var n=0;n<i.length;n++)if(i[n].getAttribute("data-ad-slot")===this.adSlot){this.adContainer=i[n];break}this.adContainer&&(this.floorPrice=this.outstreamSlot.floorPrice?this.outstreamSlot.floorPrice:0,(t=JSON.parse(JSON.stringify(this.outstreamSlot.adunit))).bids&&(t.bids=X(t.bids),t.bids=G(t.bids,this.floorPrice),t.renderer=t.renderer||{url:"",render:function(){}},vlipb.removeAdUnit(t.code),vlipb.addAdUnits(t),this.outstreamID=t.code,0<t.bids.length&&!pe.auctionLogs[this.outstreamID]&&(pe.auctionLogs[this.outstreamID]={bidder:j(t.bids),preAuction:""}),O("body",function(){document.body.addEventListener("click",this.viBodyCLick.bind(this)),document.body.addEventListener("click",this.viActiveAd.bind(this))}.bind(this)),window.addEventListener("scroll",this.viActiveAd.bind(this)),ie(this.viReqBid.bind(this),1e3),ee(this.adContainer,function(){e.inViewport||(e.inViewport=!0,e.action&&e.viAcAd()),setTimeout(function(){this.adPlayer&&this.adPlayer.resume()}.bind(e),200)},function(){e.inViewport&&(e.inViewport=!1),e.adPlayer&&e.adPlayer.pause()},{threshold:[0]})))}}},{key:"getOutStreamSlot",value:function(e){if(!pe.outstreamSlot)return!1;for(var t in pe.outstreamSlot)if(pe.outstreamSlot[t].type===e)return pe.outstreamSlot[t];return!1}},{key:"getAdConfig",value:function(){var e={limit:null,every:null,unit:null},t={enablePC:!0,enableMobile:!0,displayFrequency:e,complete:function(){},error:function(){},hidden:function(){}};if(!window[pe.tagName].outstreamInlineConfig)return t;var i=window[pe.tagName].outstreamInlineConfig;for(var n in t)void 0===i[n]&&(i[n]=t[n]);return(null!==i.displayFrequency.limit&&(!Number.isInteger(i.displayFrequency.limit)||i.displayFrequency.limit<=0)||null!==i.displayFrequency.every&&(!Number.isInteger(i.displayFrequency.every)||i.displayFrequency.every<=0)||!(null===i.displayFrequency.unit||i.displayFrequency.unit&&-1!==["second","minute","hour","day"].indexOf(i.displayFrequency.unit)))&&(i.displayFrequency=e),i}},{key:"viActiveAd",value:function(){this.action=!0,document.body.removeEventListener("click",this.viActiveAd.bind(this)),window.removeEventListener("scroll",this.viActiveAd.bind(this)),this.viAcAd()}},{key:"viBodyCLick",value:function(){this.issetClick=!0,document.body.removeEventListener("click",this.viBodyCLick.bind(this))}},{key:"viReqBid",value:function(){this.isFrequencyLimit()?this.refreshBid():1!=this.stop&&this.reqCount!=this.reqLimit&&(vlipb.requestBids({timeout:pe.prebidTimeout,adUnitCodes:[this.outstreamID],bidsBackHandler:function(){var e,t,i=Y(vlipb.getBidResponsesForAdUnitCode(this.outstreamID),this.outstreamID),n=function(){},o=this.floorPrice;0<i.length?(e=F(i),(t=i[e]).cpm>=this.floorPrice?(n=function(){this.viDisplayOutstream(t,function(){this.tryWithAnotherBidder(e,i)}.bind(this))}.bind(this),o=t.cpm):(P({bidder:t.bidderCode+"_Below_Floor_Outstream",cpm:t.cpm}),n=function(){this.tryCustomVast()}.bind(this))):(P({bidder:"Nobid_Outstream",cpm:"0.00"}),n=function(){this.tryCustomVast()}.bind(this));var r=function(e){if(e)this.viDisplayOutstream(e,function(){this.tryWithAnotherBidder(!1,i)}.bind(this));else try{n()}catch(e){console.log(e)}}.bind(this);this.tryDspAd(o,r)}.bind(this)}),this.reqCount++)}},{key:"tryDspAd",value:function(e,i){var t,n=te(),o=Z()?"mobile":"desktop";-1!==[101,392,400,435,575,788,789,801,845,955,1213,2659,3103].indexOf(pe.domainID)?((t=new XMLHttpRequest).onreadystatechange=function(){var e,t;4===this.readyState&&(200===this.status&&this.responseText&&(e=JSON.parse(this.responseText)).status?(t={bidderCode:"vlidsp",vastUrl:e.vast,cpm:e.price,creativeId:"dspcreative",auctionId:generateUUID()},i(t)):i(!1))},t.timeout=1500,t.ontimeout=function(){i(!1)},t.open("GET","//ms.vliplatform.com/campaign/get?location="+pe.VIGeo+"&device="+o+"&browser="+n+"&price="+e+"&d="+encodeURI(window.location.protocol+"//"+window.location.hostname),!0),t.withCredentials=!0,t.send()):i(!1)}},{key:"viDisplayOutstream",value:function(t,i){var e,n;this.inViewport&&this.action?(this.viCreateAdwrapper(),e=V(t),n=t.vastUrl?t.vastUrl:null,this.adPlayer=this.viPlayer.play({type:"outstream",vastXML:e,vastUrl:n,divID:this.dId,adHeight:this.wrapperHeight,issetClick:this.issetClick,volumeControl:!0,start:function(){ne({divID:this.outstreamID,hidden:function(){this.adPlayer.pause()}.bind(this),watching:function(){this.adPlayer.resume()}.bind(this)}),pe.VIdebug&&(Debug.pushInfoOverlay(this.outstreamID,"adId",this.outstreamID),Debug.pushInfoOverlay(this.outstreamID,"creativeId",t.creativeId)),this.viShowAd()}.bind(this),complete:function(){this.reqCount=0,this.config.complete&&this.config.complete({id:this.outstreamID}),this.refreshBid()}.bind(this),error:function(e){oe(this.outstreamID),z({e:e,b:t.bidderCode,t:"outstream",c:t.creativeId}),i()}.bind(this),impression:function(){$({type:"hb_video",divID:this.outstreamID,zoneID:this.outstreamSlot.zid,bidder:t.bidderCode,cpm:t.cpm})}.bind(this),hidden:function(){this.viHideAd(),oe(this.outstreamID),this.config.hidden&&this.config.hidden({id:this.outstreamID})}.bind(this)})):this.viAcAd=function(){if(this.inViewport&&this.action){if(this.adIsActive)return;this.adIsActive=!0,this.viDisplayOutstream(t,i)}}.bind(this)}},{key:"tryCustomVast",value:function(){this.viCreateAdwrapper();var n=function(){this.config.error&&this.config.error({id:this.outstreamID})}.bind(this),o=function(){if(r.length<=0)return n(),void this.refreshBid();for(var e="",t="",i=0;i<r.length;i++)if(!r[i].requested){r[i].requested=!0,e=r[i].link,t=r[i].bidder;break}if(!e||!t)return n(),void this.refreshBid();this.adPlayer=this.viPlayer.play({type:"outstream",vastXML:null,vastUrl:e,divID:this.dId,adHeight:this.wrapperHeight,issetClick:this.issetClick,volumeControl:!0,start:function(){ne({divID:this.outstreamID,hidden:function(){this.adPlayer.pause()}.bind(this),watching:function(){this.adPlayer.resume()}.bind(this)}),this.viShowAd()}.bind(this),complete:function(){this.reqCount=0,this.config.complete&&this.config.complete({id:this.outstreamID}),this.refreshBid()}.bind(this),error:function(e){oe(this.outstreamID),se(pe.domainName,"ERROR - "+t,"er","er"),o()}.bind(this),impression:function(){se(pe.domainName,"OK - "+t,"ok","ok")}.bind(this),hidden:function(){this.viHideAd(),oe(this.outstreamID),this.config.hidden&&this.config.hidden({id:this.outstreamID})}.bind(this)})}.bind(this);re(pe.pixelID);var r=[];this.outstreamSlot.vast&&(r=JSON.parse(JSON.stringify(this.outstreamSlot.vast)));for(var e=0;e<r.length;e++)r[e].requested=!1,r[e].link=ae(r[e].link);o()}},{key:"tryWithAnotherBidder",value:function(e,t){if(oe(this.outstreamID),t.length<=1)return this.viHideAd(),void this.tryCustomVast();!1!==e&&t.splice(e,1);var i=F(t),n=t[i];if(n.cpm<this.floorPrice)return this.viHideAd(),void this.tryCustomVast();this.viDisplayOutstream(n,function(){this.tryWithAnotherBidder(i,t)}.bind(this))}},{key:"refreshBid",value:function(){setTimeout(function(){var e,t=this;pe.isVisible?this.viReqBid():ne({divID:e="outstream_refresh_queue",hidden:function(){},watching:function(){oe(e),t.viReqBid()}})}.bind(this),1e3*this.timeReq)}},{key:"isFrequencyLimit",value:function(){if(null!==this.config.displayFrequency.limit&&null!==this.config.displayFrequency.every&&null!==this.config.displayFrequency.unit){var e=R("vi-outstream-frequency");if(e){var t=JSON.parse(e);if(t[this.outstreamID]){var i=t[this.outstreamID].count,n=t[this.outstreamID].start;if(this.calcTimeOffset(n)<this.config.displayFrequency.every&&i>=this.config.displayFrequency.limit)return!0}}}return!1}},{key:"countDisplay",value:function(){var e,t,i,n;null!==this.config.displayFrequency.limit&&null!==this.config.displayFrequency.every&&null!==this.config.displayFrequency.unit&&(e={},(t=R("vi-outstream-frequency"))&&(e=JSON.parse(t)),e[this.outstreamID]?(i=e[this.outstreamID].count,n=e[this.outstreamID].start,this.calcTimeOffset(n)<this.config.displayFrequency.every?e[this.outstreamID]={count:i+1,start:n}:e[this.outstreamID]={count:1,start:(new Date).getTime()}):e[this.outstreamID]={count:1,start:(new Date).getTime()},M("vi-outstream-frequency",JSON.stringify(e)))}},{key:"calcTimeOffset",value:function(e){var t=(new Date).getTime(),i=0;return"second"===this.config.displayFrequency.unit&&(i=Math.round((t-e)/1e3)),"minute"===this.config.displayFrequency.unit&&(i=Math.round((t-e)/1e3/60)),"hour"===this.config.displayFrequency.unit&&(i=Math.round((t-e)/1e3/60/60)),"day"===this.config.displayFrequency.unit&&(i=Math.round((t-e)/1e3/60/60/24)),i}},{key:"viHideAd",value:function(){this.adContainerChild.style.height="0px",this.adPlayer=null}},{key:"viShowAd",value:function(){this.countDisplay(),this.adContainerChild.style.height=this.wrapperHeight+"px"}},{key:"cleanAdwrapper",value:function(){for(var e=document.getElementsByClassName("vlioutstream"),t=0;t<e.length;t++)e[t].id&&e[t].id===this.outstreamID&&e[t].parentNode.removeChild(e[t])}},{key:"viCreateAdwrapper",value:function(){this.cleanAdwrapper();var e=document.createElement("vli");e.id=this.outstreamID,e.className="vlioutstream",this.adContainer&&(this.wrapperWidth=this.adContainer.clientWidth,900<this.wrapperWidth&&(this.wrapperWidth=900),this.wrapperWidth<300&&(this.wrapperWidth=300),this.wrapperHeight=parseInt(this.wrapperWidth/16*9),e.style.cssText="background:unset!important;position:relative; transition: height 0.5s ease-in-out 0s; width: "+this.wrapperWidth+"px; height: 0px; overflow: hidden; background-color: rgba(0, 0, 0, 0.6); display: block; margin: 0 auto;",e.innerHTML=this.vioutstrCloseBtn()+'<vli style="background:unset!important;display:block" id="'+this.dId+'"></vli>',this.adContainer.appendChild(e),this.adContainerChild=e,pe.VIdebug&&Debug.createInfoOverlay(this.outstreamID,!0),document.getElementById("vi_outstrClose_"+this.outstreamID).addEventListener("click",function(){this.adPlayer.pause(),this.stop=!0,oe(this.outstreamID),this.config.hidden&&this.config.hidden({id:this.outstreamID}),this.viHideAd()}.bind(this)))}},{key:"vioutstrCloseBtn",value:function(){return'<vli id="vi_outstrClose_'.concat(this.outstreamID,'" style="background: unset!important;-webkit-box-sizing: unset !important; -ms-box-sizing: unset !important; -moz-box-sizing: unset !important; box-sizing: unset !important;position:absolute;z-index:9999;cursor:pointer;width:14px;height:14px;top:8px;left:8px;">\n            <svg width="512px" height="512px" display="inherit" enable-background="new 0 0 92.132 92.132" style="box-sizing:unset!important;height:100%;width:100%" version="1.1" viewBox="0 0 92.132 92.132" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path class="active-path" d="m2.141 89.13c1.425 1.429 3.299 2.142 5.167 2.142 1.869 0 3.742-0.713 5.167-2.142l33.591-33.592 33.591 33.592c1.426 1.429 3.299 2.142 5.167 2.142 1.867 0 3.74-0.713 5.167-2.142 2.854-2.854 2.854-7.48 0-10.334l-33.593-33.591 31.869-31.869c2.855-2.853 2.855-7.481 0-10.334-2.853-2.855-7.479-2.855-10.334 0l-31.868 31.868-31.867-31.869c-2.854-2.855-7.481-2.855-10.333 0-2.855 2.853-2.855 7.481 0 10.334l31.868 31.869-33.59 33.591c-2.857 2.853-2.857 7.479-2e-3 10.335z" fill="#fff" data-old_color="#ffffff" data-original="#000000"/></svg>\n        </vli>')}}]),t}();window[pe.tagName]=window[pe.tagName]||{},window[pe.tagName].Init=window[pe.tagName].Init||[],window[pe.tagName].videoInit=window[pe.tagName].videoInit||[],window[pe.tagName].displayInit=window[pe.tagName].displayInit||[],window[pe.tagName].videoConfig=window[pe.tagName].videoConfig||{},window[pe.tagName].outStreamConfig=window[pe.tagName].outStreamConfig||{},window[pe.tagName].outstreamInlineConfig=window[pe.tagName].outstreamInlineConfig||{},window[pe.tagName].videoDiscoverConfig=window[pe.tagName].videoDiscoverConfig||{},window[pe.tagName].displayConfig=window[pe.tagName].displayConfig||{},window[pe.tagName].smartBannerConfig=window[pe.tagName].smartBannerConfig||{},window[pe.tagName].smartVideoConfig=window[pe.tagName].smartVideoConfig||{},window[pe.tagName].topArticlesConfig=window[pe.tagName].topArticlesConfig||{},window[pe.tagName].gdprShowConsentTool=!1!==window[pe.tagName].gdprShowConsentTool,window[pe.tagName].gdprShowConsentToolButton=!0===window[pe.tagName].gdprShowConsentToolButton,window[pe.tagName].imaLanguage=window[pe.tagName].imaLanguage||null;var ue=pe.tagConfig.tagApi;window.tagApi=ue;var he,me,ge,fe,ve,be,ye,we,_e,xe,Ie,ke,Se,Ce,Ee,Ae,De,Te,Le,Be,Ne,ze,Pe,Me,Re,Oe,Fe,Ve,Ue,qe,He,We,je,Xe,Ge,Je,Ye,Ke,$e,Ze,Qe,et,tt,it,nt,ot,rt;function st(){var i;1!=R("_vlicapErr")&&(window.onerror=function(e,t,i,n,o){var r;-1<e.toLowerCase().indexOf("script error")||t&&t.includes(pe.rootDomain)&&(r={message:e,url:t,line:i,col:n,url_page:window.location.href,user_agent:navigator.userAgent,error:JSON.stringify(o)},s("https://lg.vliplatform.com/lbt/?type="+window.location.hostname,"POST","text",2e3,!1,JSON.stringify(r),function(){},function(){}),M("_vlicapErr",1,1))}),"undefined"!=typeof Storage&&""!=o("__vlilbg").toUpperCase()&&(i=localStorage.getItem("bidwon_history"),new Promise(function(e,t){s("https://vliplatform.com/bidlog/index.php","POST","text",3e3,!1,i,e,t)}).then(function(e){"success"===e&&localStorage.removeItem("bidwon_history")}).catch(function(){})),o("vli_ref")&&M("__vliref",o("vli_ref"),30),o("vli_ref_sid")&&M("__vlirefsid",o("vli_ref_sid"),30),pe.refererSlotID=R("__vlirefsid"),pe.refererDomainID=R("__vliref");var e=new Date(1970);-1!==document.cookie.indexOf("vlipb-id5id")&&(document.cookie="vlipb-id5id=;expires="+e.toDateString()+";path=/"),-1!==document.cookie.indexOf("vlipb-id5id_last")&&(document.cookie="vlipb-id5id_last=;expires="+e.toDateString()+";path=/"),(1266!==pe.domainID&&3332!==pe.domainID||"LK"!==pe.VIGeo)&&(986!==pe.domainID&&697!==pe.domainID||"LK"!==pe.VIGeo)&&(""==o("__vliddf")&&-1===window.location.hostname.search(pe.domainName)&&-1===[4,3576].indexOf(pe.domainID)||!0!==function(){if(1==R("_vlirfbbc"))return!0;var i=!1;return["mybesucher.de","bird-mailer.de"].forEach(function(e){var t;document.referrer&&-1!==document.referrer.search(e)&&(s("https://lg.vliplatform.com/lbt/?type=referrerblocked","POST","text",2e3,!(t={domain:pe.domainName,referrer:document.referrer,page:window.location.href}),JSON.stringify(t),function(){},function(){}),M("_vlirfbbc",1,1),i=!0)}),i}()&&(pe.caPub&&nt("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",!1,function(){(adsbygoogle=window.adsbygoogle||[]).push({google_ad_client:pe.caPub,enable_page_level_ads:!0})},function(){}),ke(),Se()))}function at(e){var t=!!pe.displayBids[e]&&JSON.parse(JSON.stringify(pe.displayBids[e]));if(!t)return[];for(var i=[],n=0;n<t.length;n++)if(!1===t[n].used&&t[n].bids){i=t[n].bids,t[n].used=!0;break}return 0===i.length&&t[0].bids&&(i=t[0].bids),i}function lt(l,c,p,n,u){var d,h,m,g,f=l,v={slotID:f},b=function(e){var i=[];e.forEach(function(e){var t=Y(vlipb.getBidResponsesForAdUnitCode(e),e);i=i.concat(t)});var t,n,o,r,s,a,l=(l=J(i)).filter(function(e){return!(("video"===e.mediaType&&e.cpm<h||"banner"===e.mediaType&&e.cpm<g)&&(vlipb.markWinningBidAsUsed({adId:e.adId}),1))});"dfp"===pe.videoRequestMode?(n=(t=x(l)).bidSelected,o=t.indx,r="",n&&(l.splice(o,1),r=Q({type:"hb_video",divID:f,zoneID:d.zid,bidder:n.bidderCode,cpm:n.cpm})),s={hb_domain:pe.domainName,section:"blog",anotherKey:"anotherValue",vli_adtype:"instream",impression_url:pe.statsDomain,token:r},pe.refererDomainID?s.vli_ref=pe.refererDomainID+"_"+pe.domainID:s.vli_adslot="instream_"+d.zid,n||(s.hb_pb=h),a=vlipb.adServers.dfp.buildVideoUrl({adUnit:d.adunit,params:{description_url:window.location.href,iu:pe.dfpVideoSlotID,cust_params:s,output:"vast"}}),n&&vlipb.markWinningBidAsUsed({adId:n.adId}),w({vastUrl:a,vastXml:null},{error:function(){y(l)}})):y(l)},y=function t(e){var i,n,o,r=0<arguments.length&&void 0!==e?e:[],s={start:function(){},impression:function(){},error:function(){},hidden:function(){}};0<r.length?(o=r[0],vlipb.markWinningBidAsUsed({adId:o.adId}),r.splice(0,1),"video"===o.mediaType?(i=o.vastUrl||null,n=o.vastXml||null,s.error=function(e){t(r)},s.impression=function(){$({type:"hb_video",divID:f,zoneID:d.zid,bidder:o.bidderCode,cpm:o.cpm})},w({vastUrl:i,vastXml:n},s)):a(o)):_()},w=function(e,t){oe(f);var i=new vlPlayer({baseDomain:pe.rootDomain,brandLogo:pe.brandLogo}).play({vastUrl:e.vastUrl?e.vastUrl:null,vastXML:e.vastXML?e.vastXML:null,adElement:p,volume:n,volumeControl:!0,loadingText:c.loadingText,complete:function(){c.complete&&c.complete(v),u.complete&&u.complete(v),t.complete&&t.complete()},error:function(e){t.error&&t.error(e)},impression:function(){t.impression&&t.impression()},hidden:function(){c.hidden&&c.hidden(v),u.hidden&&u.hidden(v),p.style.cssText="",p.innerHTML="",p.classList.remove("running"),oe(f),t.hidden&&t.hidden()},adsVolumeChange:function(e){c.adsVolumeChange&&c.adsVolumeChange(e),u.adsVolumeChange&&u.adsVolumeChange(e)}});ne({divID:f,hidden:function(){i.pause()},watching:function(){i.resume()}})},a=function(e,t){var i=0<arguments.length&&void 0!==e?e:null,n=(n=1<arguments.length&&void 0!==t?t:null)||function(){c.error&&c.error(),u.error&&u.error()};if(m){var o=m.adunit.code;p.style.cssText="z-index: 9998; position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; background: rgb(0, 0, 0); display: block; padding: 0px; margin: 0px;",p.innerHTML='<div id="'.concat(o,'"></div>\n                                        <style>vli{ display:block; } .videoAdUiPreSkipContainer { display: none; opacity: 0; bottom: 12px; cursor: default; padding: 15px 0 15px 15px; pointer-events: auto; position: absolute; right: 0; z-index: 1000; } .videoAdUiPreSkipContainer .skipTime{ display: inline; } .videoAdUiPreSkipButton { background: rgba(0,0,0,0.8); min-width: 155px; padding: 6px; } .videoAdUiPreSkipText { color: #e6e6e6; font-family: arial,sans-serif; font-weight: normal; font-size: 11px; line-height: 21px; padding-right: 0; text-align: center; display: inline-block; width: 100%; vertical-align: middle; } .videoAdUiSkipContainer { display: none; opacity: 0; -webkit-tap-highlight-color: rgba(0,0,0,0); bottom: 12px; cursor: pointer; padding: 15px 0 15px 15px; pointer-events: auto; position: absolute; right: 0; z-index: 1000; } .videoAdUiSkipButton { line-height: normal; min-width: 0; padding: 7px 6px 7px 10px; width: auto; margin: 0; } .videoAdUiAction { -webkit-tap-highlight-color: rgba(0,0,0,0); background: rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.5); border-right: 0; box-sizing: content-box; color: #fff; cursor: pointer; direction: ltr; font-family: arial,sans-serif; font-weight: normal; font-size: 18px; line-height: normal; min-width: 100px; padding: 10px 7px; text-align: center; } .videoAdUiSkipButtonExperimentalText { display: inline-block; font-size: 18px; vertical-align: middle; width: initial; } .videoAdUiSkipIcon { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAQAAABKfvVzAAAABGdBTUEAALGPC/xhBQAAAAJiS0dEAP+Hj8y/AAAAZElEQVQ4y+3SwQmDQBBGYRFy9mYLSRXWEyvRRtKBbdhDUoTH8HkVllX+u++48GD2zTTNTYiPrnhDXeBnyAT+Zo9EgNUrE9iMmQCLvhTas2jXWY8jvbNPP5OsU5L1my0uPY2bCjtXdo6mqRVtTgAAAABJRU5ErkJggg=="); background-repeat: no-repeat; display: inline-block; height: 24px; margin-left: 2px; vertical-align: middle; width: 24px; } .videoAdCountdownContainer{ display: none; opacity: 0; color: #e6e6e6; font-family: arial,sans-serif; font-weight: normal; font-size: 12px; line-height: 21px; padding-right: 0; display: block; vertical-align: middle; -webkit-tap-highlight-color: rgba(0,0,0,0); top: 8px; left: 8px; cursor: pointer; pointer-events: auto; position: absolute; z-index: 1000; } .remainingTime{ display: inline-block; }</style>\n                                        <vli class="videoAdUiSkipWidgetV2">\n                                            <vli class="videoAdUiPreSkipContainer">\n                                                <vli class="videoAdUiPreSkipButton">\n                                                    <vli class="videoAdUiPreSkipText">You can skip this ad in <vli class="skipTime">5</vli></vli>\n                                                </vli>\n                                            </vli>\n                                            <vli class="videoAdUiSkipContainer">\n                                                <button class="videoAdUiSkipButton videoAdUiAction">\n                                                    <vli class="videoAdUiSkipButtonExperimentalText">Skip Ad</vli>\n                                                    <vli class="videoAdUiSkipIcon"></vli>\n                                                </button>\n                                            </vli>\n                                            <vli class="videoAdCountdownContainer">Ad (00:<vli class="remainingTime">15</vli>)</vli>\n                                        </vli>');var r=document.getElementById(o),s=function(){function t(){c.hidden&&c.hidden(v),u.hidden&&u.hidden(v),p.style.cssText="",p.innerHTML="",p.classList.remove("running"),r&&clearInterval(r),d&&clearInterval(d)}var e=p.querySelector(".videoAdUiSkipContainer");e.addEventListener("click",function(){t()});var i=p.querySelector(".videoAdCountdownContainer");i.style.display="block",i.style.opacity="1";var n=15,o=i.querySelector(".remainingTime");o.innerText=n;var r=setInterval(function(){var e;n<=1?(c.complete&&c.complete(),u.complete&&u.complete(),t()):(e=--n<10?"0"+n:n,o.innerText=e)},1e3),s=p.querySelector(".videoAdUiPreSkipContainer");s.style.display="block",s.style.opacity="1";var a=5,l=s.querySelector(".skipTime");l.innerText=a;var d=setInterval(function(){a<=1?(s.style.display="none",s.style.opacity="0",e.style.display="block",e.style.opacity="1"):(a--,l.innerText=a)},1e3)},a={type:"hb_video",divID:f,zoneID:d.zid,bidder:i?i.bidderCode:"",cpm:i?i.cpm:0};if(vlipb.onEvent("bidWon",function e(t){t.adUnitCode===o&&($(a),"dfp"===pe.bannerRequestMode&&(r.style.cssText="width:"+t.width+"px!important;height:"+t.height+"px!important;margin:0 auto!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;"),s(),vlipb.offEvent("bidWon",e,o))},o),pe.adRenderAction.bidWon[o]=function(){$(a)},"dfp"!=pe.bannerRequestMode&&"postbid_dfp"!=pe.bannerRequestMode||(pe.gSlots[o]&&googletag.destroySlots([pe.gSlots[o]]),googletag.cmd.push(function(){var e;i&&"native"===i.mediaType?(a.adType="native",pe.gSlots[o]=googletag.defineSlot(pe.smartBannerDfpID,"fluid",o).addService(googletag.pubads())):(e=JSON.parse(JSON.stringify(m.adunit)),pe.gSlots[o]=googletag.defineSlot(pe.smartBannerDfpID,e.mediaTypes.banner.sizes,o).addService(googletag.pubads())),googletag.pubads().addEventListener("slotRenderEnded",function(e){var t;e.slot.getSlotElementId()===o&&(!0===e.isEmpty?n&&n():!0===e.isBackfill?(P({bidder:"Adx_instream_banner",cpm:0}),s()):(t=!1,0<e.slot.getTargeting("amznbid").length&&-1===e.slot.getTargeting("amznbid").indexOf("0")&&-1===e.slot.getTargeting("amznbid").indexOf("1")&&-1===e.slot.getTargeting("amznbid").indexOf("2")&&(t=!0),-1===e.slot.getTargeting("up_bid").indexOf("true")||t||n&&n()),!e.isEmpty&&e.isBackfill&&null!==e.size&&-1===[0,1].indexOf(e.size[0])&&-1===[0,1].indexOf(e.size[1])&&(r.style.setProperty("width",e.size[0]+"px","important"),r.style.setProperty("height",e.size[1]+"px","important"),r.style.setProperty("position","absolute","important"),r.style.setProperty("top","50%","important"),r.style.setProperty("left","50%","important"),r.style.setProperty("transform","translate(-50%,-50%)","important")))})})),"dfp"==pe.bannerRequestMode&&googletag.cmd.push(function(){"on"===pe.useAmazonUAM&&apstag.setDisplayBids([o]),i&&-1!==pe.noneSafeFrameBidder.indexOf(i.bidderCode)?pe.gSlots[o].setTargeting("vli_sf","0"):pe.gSlots[o].setTargeting("vli_sf","1"),pe.refererDomainID?pe.gSlots[o].setTargeting("vli_ref",pe.refererDomainID+"_"+pe.domainID):pe.gSlots[o].setTargeting("vli_adslot",d.zid),pe.gSlots[o].setTargeting("vli_adtype","display"),pe.gSlots[o].setTargeting("hb_width",m.w),pe.gSlots[o].setTargeting("hb_height",m.h),i&&i.cpm>=g&&I(i,pe.gSlots[o]),i&&i.cpm,googletag.pubads().refresh([pe.gSlots[o]])}),"postbid"==pe.bannerRequestMode||"postbid_dfp"==pe.bannerRequestMode)if(i)switch(r.style.cssText="width:"+(i.width?i.width:m.w)+"px!important;height:"+(i.height?i.height:m.h)+"px!important;margin:0 auto!important;position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;",i.mediaType){case"banner":-1===pe.noneSafeFrameBidder.indexOf(i.bidderCode)&&"on"===pe.safeFrame?(r.innerHTML='<div id="vli_sf_'+o+'"></div>',k("vli_sf_"+o,{width:i.width?i.width:m.w,height:i.height?i.height:m.h},i.ad)):vlipb.renderAd(S(r,o,i.width?i.width:m.w,i.height?i.height:m.h),i.adId);break;case"native":var l={adUnitCode:o,adId:i.adId,pubUrl:window.location.href,width:m.w,height:m.h};C(S(r,o,i.width?i.width:m.w,i.height?i.height:m.h),l)}else"postbid"==pe.bannerRequestMode&&n&&n(),"postbid_dfp"==pe.bannerRequestMode&&googletag.cmd.push(function(){"on"===pe.useAmazonUAM&&apstag.setDisplayBids([o]),pe.refererDomainID?pe.gSlots[o].setTargeting("vli_ref",pe.refererDomainID+"_"+pe.domainID):pe.gSlots[o].setTargeting("vli_adslot",d.zid),pe.gSlots[o].setTargeting("vli_adtype","display"),pe.gSlots[o].setTargeting("vli_sf","1"),googletag.pubads().refresh([pe.gSlots[o]])})}else n&&n()},_=function(){var e,t;"postbid_dfp"===pe.videoRequestMode&&(e={hb_domain:pe.domainName,section:"blog",anotherKey:"anotherValue",vli_adtype:"instream"},pe.refererDomainID?e.vli_ref=pe.refererDomainID+"_"+pe.domainID:e.vli_adslot="instream_"+d.zid,t=vlipb.adServers.dfp.buildVideoUrl({adUnit:d.adunit,params:{description_url:window.location.href,iu:pe.dfpVideoSlotID,cust_params:e,output:"vast"}}),w({vastUrl:t},{error:function(){a(null,i)}})),"postbid"===pe.videoRequestMode&&a(null,i),"dfp"===pe.videoRequestMode&&a(null,i)},i=function(){re(pe.pixelID);var e=[];d.vast&&(e=JSON.parse(JSON.stringify(d.vast)));for(var t=0;t<e.length;t++)e[t].link=ae(e[t].link);o(e)},o=function t(i){var e,n,o={start:function(){},impression:function(){},error:function(){},hidden:function(){},adsVolumeChange:function(){}};0<i.length?(n=i[0],i.splice(0,1),n.link&&n.bidder?(o.start=function(){},o.complete=function(){},o.impression=function(){se(pe.domainName,"OK - "+n.bidder,"ok","ok")},o.error=function(e){se(pe.domainName,"ERROR - "+n.bidder,"er","er"),t(i)},e={vastUrl:n.link,vastXml:null},w(e,o)):t(i)):(p.style.display="none",c.error&&c.error(),u.error&&u.error())},x=function(e){for(var t=0<arguments.length&&void 0!==e?e:[],i=0,n=!1,o=0;o<t.length;o++)if("video"===t[o].mediaType){n=t[o],i=o;break}return{bidSelected:n,indx:i}};return{init:function(){if(pe.instreamSlot&&pe.instreamSlot[l]&&p&&!p.classList.contains("running")){d=JSON.parse(JSON.stringify(pe.instreamSlot[l])),h=d.floorPrice?d.floorPrice:0,g=d.bannerFloorPrice?d.bannerFloorPrice:0;var e=[],t=[],i=d.adunit;if(!i.bids)return c.error&&c.error(),void(u.error&&u.error());p.classList.add("running"),function(){p.insertAdjacentHTML("afterbegin",'<style>.instream_ad_loader{ border-radius: inherit; bottom: 0; left: 0; overflow: hidden; position: absolute; right: 0; top: 0; z-index: 99999; background-color: #060606; } @-webkit-keyframes "av-loading-dash" { 0% { stroke-dasharray: 1, 210; stroke-dashoffset: 0; } 50% { stroke-dasharray: 130, 220; stroke-dashoffset: -50; } 100% { stroke-dasharray: 170, 220; stroke-dashoffset: -210; } } @-moz-keyframes "av-loading-dash" { 0% { stroke-dasharray: 1, 210; stroke-dashoffset: 0; } 50% { stroke-dasharray: 130, 220; stroke-dashoffset: -50; } 100% { stroke-dasharray: 170, 220; stroke-dashoffset: -210; } } @-o-keyframes av-loading-dash { 0% { stroke-dasharray: 1, 210; stroke-dashoffset: 0 } 50% { stroke-dasharray: 130, 220; stroke-dashoffset: -50 } 100% { stroke-dasharray: 170, 220; stroke-dashoffset: -210 } } @keyframes "av-loading-dash" { 0% { stroke-dasharray: 1, 210; stroke-dashoffset: 0; } 50% { stroke-dasharray: 130, 220; stroke-dashoffset: -50; } 100% { stroke-dasharray: 170, 220; stroke-dashoffset: -210; } } @-webkit-keyframes "av-loading-rotate" { 0% { stroke: white; -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { stroke: currentColor; -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-moz-keyframes "av-loading-rotate" { 0% { stroke: white; -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { stroke: currentColor; -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @-o-keyframes av-loading-rotate { 0% { stroke: white; -webkit-transform: rotate(0deg); transform: rotate(0deg) } 100% { stroke: currentColor; -webkit-transform: rotate(360deg); transform: rotate(360deg) } } @keyframes "av-loading-rotate" { 0% { stroke: white; -webkit-transform: rotate(0deg); transform: rotate(0deg); } 100% { stroke: currentColor; -webkit-transform: rotate(360deg); transform: rotate(360deg); } } .instream_ad_loader svg { position: absolute; top: 50%; left: 50%; } .instream_ad_loader svg.circle { fill: transparent; stroke: rgba(255, 255, 255, 0.2); stroke-width: 3; width: 70px; height: 70px; margin-left: -35px; margin-top: -35px; } .instream_ad_loader svg.circle.active { color: #00b3ff; stroke: white; stroke-linecap: round; animation: av-loading-dash 2s ease infinite, av-loading-rotate 2.5s linear infinite; }</style>');var e=document.createElement("div");e.className="instream_ad_loader",e.innerHTML='<svg class="circle" width="70" height="70" version="1.1" xmlns="http://www.w3.org/2000/svg"><circle cx="35" cy="35" r="32"></circle></svg><svg class="circle active" width="70" height="70" version="1.1" xmlns="http://www.w3.org/2000/svg"><circle cx="35" cy="35" r="32"></circle></svg>',p.appendChild(e)}(),i.code=l,i.bids=X(i.bids),i.bids=G(i.bids,h),vlipb.removeAdUnit(l),vlipb.addAdUnits(i),e.push(i.code),0<i.bids.length&&!pe.auctionLogs[l]&&(pe.auctionLogs[l]={bidder:j(i.bids),preAuction:""});var n=E()?window.innerWidth:p.parentNode.clientWidth,o=E()?window.innerHeight:p.parentNode.clientHeight;if(pe.displaySlot&&300<n&&250<o)for(var r in pe.displaySlot)if(300===pe.displaySlot[r].w&&250===pe.displaySlot[r].h){var s,a=(m=JSON.parse(JSON.stringify(pe.displaySlot[r]))).adunit;a.code=l+"_banner_"+Math.floor(1e4*Math.random()+1),a.bids=at("300_250"),a.bids=X(a.bids),a.bids=G(a.bids,g),0<a.bids.length&&!pe.auctionLogs[a.code]&&(pe.auctionLogs[a.code]={bidder:j(a.bids),preAuction:""}),vlipb.addAdUnits(a),e.push(a.code),"on"===pe.useAmazonUAM&&(s={slotID:a.code,sizes:a.mediaTypes.banner.sizes,slotName:"Amazon"},t.push(s));break}K(e,t,b)}}}}function dt(e){var t=e.contentWindow||e.contentDocument;return t.document&&(t=t.document),t}function ct(e){if(!pe.outstreamSlot)return!1;for(var t in pe.outstreamSlot)if(pe.outstreamSlot[t].type===e)return pe.outstreamSlot[t]}function pt(e){var s=function(){var e={limit:null,every:null,unit:null},t={outstreamSlot:null,type:"slider",instantLoad:!0,position:"right",enablePC:!0,enableMobile:!0,scrollPercent:null,volumnControl:!1,displayFrequency:e,language:{hideAds:"Hide Ads"},complete:function(){},error:function(){},hidden:function(){},passbackFunction:null};if(!window[pe.tagName].outStreamConfig)return t;var i=window[pe.tagName].outStreamConfig,n={};for(var o in window[pe.tagName].outStreamConfig.language&&(n=window[pe.tagName].outStreamConfig.language),t)if("language"===o){for(var r in t[o])void 0===n[r]&&(n[r]=t[o][r]);i[o]=n}else void 0===i[o]&&(i[o]=t[o]);return(null!==i.displayFrequency.limit&&(!Number.isInteger(i.displayFrequency.limit)||i.displayFrequency.limit<=0)||null!==i.displayFrequency.every&&(!Number.isInteger(i.displayFrequency.every)||i.displayFrequency.every<=0)||!(null===i.displayFrequency.unit||i.displayFrequency.unit&&-1!==["second","minute","hour","day"].indexOf(i.displayFrequency.unit)))&&(i.displayFrequency=e),i}(),a=null;if(void 0!==e?a=ct("inline"):s.outstreamSlot?pe.outstreamSlot[s.outstreamSlot]&&"slider"===pe.outstreamSlot[s.outstreamSlot].type&&(a=pe.outstreamSlot[s.outstreamSlot]):a=ct("slider"),a&&(!1!==s.enablePC||Z())&&(!1!==s.enableMobile||!Z())){var c=a.floorPrice?a.floorPrice:0,t=JSON.parse(JSON.stringify(a.adunit));if(t.bids){t.bids=X(t.bids),t.bids=G(t.bids,c),t.renderer=t.renderer||{url:"",render:function(){}},vlipb.removeAdUnit(t.code),vlipb.addAdUnits(t);var i,n,l,p=t.code;0<t.bids.length&&!pe.auctionLogs[p]&&(pe.auctionLogs[p]={bidder:j(t.bids),preAuction:""});var d,u=0,h="vi_outstrAd_"+p,o=!1,r=!1,m=a.w+100,g=new vlPlayer({baseDomain:pe.rootDomain}),f=function(){},v=function e(){var t;"number"==typeof s.scrollPercent&&0<=s.scrollPercent&&s.scrollPercent<=100?(t=Math.round(document.body.clientHeight/100*s.scrollPercent),(document.body.scrollTop>t||document.documentElement.scrollTop>t)&&(he=!0,document.body.removeEventListener("click",e),window.removeEventListener("scroll",e),f())):(he=!0,document.body.removeEventListener("click",e),window.removeEventListener("scroll",e),f())},b=function e(){me=!0,document.body.removeEventListener("click",e)};if(O("body",function(){document.body.addEventListener("click",b),document.body.addEventListener("click",v)}),window.addEventListener("scroll",v),"inline"===a.type){var y=document.getElementsByClassName(pe.adClass);if(0<y.length)for(var w=0;w<y.length;w++)if(y[w].getAttribute("data-ad-slot")===e){n=y[w];break}}var _=function(){"slider"===a.type&&(i.classList&&(i.classList.remove("show"),i.classList.add("hide")),"fullscreen"===s.type?(i.style.opacity=0,i.style.visibility="hidden"):(i.style.display="",i.style.WebkitTransform="",i.style.msTransform="",i.style.transform="")),"inline"===a.type&&(i.style.height="0px"),d=null},x=function(){var e;D(),"slider"===a.type&&(i.classList&&(i.classList.add("show"),i.classList.remove("hide")),"fullscreen"===s.type?(i.style.opacity=1,i.style.visibility="visible"):(e="translate("+("right"==s.position?"-":"")+m+"px, 0)",i.style.display="block",i.style.WebkitTransform=e,i.style.msTransform=e,i.style.transform=e)),"inline"===a.type&&(i.style.height=l+"px")},I=function(){!function(){for(var e=document.getElementsByClassName("vlioutstream"),t=0;t<e.length;t++)e[t].id&&e[t].id===p&&e[t].parentNode.removeChild(e[t])}();var e=document.createElement("vli");if(e.id=p,e.className=pe.adClass+" vlioutstream","slider"===a.type&&("fullscreen"===s.type?(e.addEventListener("touchmove",function(e){e.preventDefault()},!1),t=Z()?window.innerWidth<=480?window.innerWidth:480:a.w,l=Z()?parseInt(t/16*9):a.h,e.style.cssText="visibility: hidden; opacity: 0; transition: opacity .25s ease-in-out; -moz-transition: opacity .25s ease-in-out; -webkit-transition: opacity .25s ease-in-out; position: fixed; z-index: 2147483647; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6)!important; -webkit-flex: 1; -ms-flex: 1; flex: 1;",e.innerHTML='<vli style="background:unset!important;display: block; background-color: #111; width: '+t+"px; height: "+l+'px; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);"><vli style="background:unset!important;display:block;" id="'+h+'"></vli></vli>'+k()):(t=a.w,Z()&&(t=window.innerWidth<768?Math.round(window.innerWidth/100*80):Math.round(window.innerWidth/100*50)),l=Z()?Math.round(t/16*9):a.h,Z()&&(m=t+100),e.style.cssText="background:unset!important;position: fixed; z-index: 2147483647;"+s.position+": -"+m+"px; bottom: "+(Z()?"40px":"0px")+";transition: transform 1s;-webkit-transition: transform 1s; -moz-transition: transform 1s;width:"+t+"px;height:"+l+"px;",e.innerHTML='<vli style="background:unset!important;position: relative;display:block;width:100%;height:100%">'+k()+'<vli style="background:unset!important;display:block" id="'+h+'"></vli></vli>'),document.body.appendChild(e)),"inline"===a.type){if(!n)return;var t=n.clientWidth;900<t&&(t=900),t<300&&(t=300),l=parseInt(t/16*9),e.style.cssText="background:unset!important;position:relative; transition: height 0.5s ease-in-out 0s; width: "+t+"px; height: 0px; overflow: hidden; background-color: rgba(0, 0, 0, 0.6); display: block; margin: 0 auto;",e.innerHTML=k()+'<vli style="background:unset!important;display:block" id="'+h+'"></vli>',n.appendChild(e)}pe.VIdebug&&le(p,!0),document.getElementById("vi_outstrClose_"+p).addEventListener("click",function(){d.pause(),o=!0,oe(p),s.hidden&&s.hidden({id:p}),_()}),i=document.getElementById(p)},k=function(){var e='<svg width="512px" height="512px" display="inherit" enable-background="new 0 0 92.132 92.132" style="box-sizing:unset!important;height:100%;width:100%" version="1.1" viewBox="0 0 92.132 92.132" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path class="active-path" d="m2.141 89.13c1.425 1.429 3.299 2.142 5.167 2.142 1.869 0 3.742-0.713 5.167-2.142l33.591-33.592 33.591 33.592c1.426 1.429 3.299 2.142 5.167 2.142 1.867 0 3.74-0.713 5.167-2.142 2.854-2.854 2.854-7.48 0-10.334l-33.593-33.591 31.869-31.869c2.855-2.853 2.855-7.481 0-10.334-2.853-2.855-7.479-2.855-10.334 0l-31.868 31.868-31.867-31.869c-2.854-2.855-7.481-2.855-10.333 0-2.855 2.853-2.855 7.481 0 10.334l31.868 31.869-33.59 33.591c-2.857 2.853-2.857 7.479-2e-3 10.335z" fill="#fff" data-old_color="#ffffff" data-original="#000000"/></svg>';if("slider"===a.type){if("slider"===s.type){if(Z()){var t="-webkit-box-sizing: unset !important; -ms-box-sizing: unset !important; -moz-box-sizing: unset !important; box-sizing: unset !important;position: absolute; z-index: 9999; cursor: pointer;top: -11px;"+("right"===s.position?"left":"right")+": -11px;width:12px;height:12px; background-color: rgba(0, 0, 0, 0.7); box-shadow: rgb(0, 0, 0) 0px 0px 6px 0px; padding: 4px; border-radius: 14px;";return'<vli id="vi_outstrClose_'+p+'" style="'+t+'">'+e+"</vli>"}var i='<vli style="'+("on"==pe.enableIcon?"width: 105px;":"width: 20px;")+" background: unset!important;box-sizing: unset!important;display: block; border-bottom: 20px solid rgba(0, 0, 0, 0.7); border-"+("right"===s.position?"right":"left")+": 10px solid transparent; position: absolute; top: -20px; "+("right"===s.position?"left":"right")+': 0;">';return i+='<vli style="background: unset!important;box-sizing: unset!important;padding: 2px;position:absolute; top: 0; left: 0;">',i+='<vli id="vi_outstrClose_'+p+'" title="'+s.language.hideAds+'" style="background: unset!important;box-sizing: unset!important;cursor:pointer;display: block; float: '+("right"===s.position?"left":"right")+'; width: 10px; height: 10px; margin: 3px;">',i+=e,i+="</vli>","on"==pe.enableIcon&&(i+='<a style="box-sizing: unset!important;display: flex; float: '+("right"===s.position?"left":"right")+"; margin-"+("right"===s.position?"left":"right")+': 5px;" href="//'+pe.brandHomepage+"/?ref="+window.location.hostname+'" target="_blank" rel="nofollow">',i+='<img style="width: 80px!important;" src="//'+pe.brandLogo+'"/>',i+="</a>"),i+="</vli>",i+="</vli>"}if("fullscreen"===s.type)return'<vli id="vi_outstrClose_'+p+'" style="'+(t="-webkit-box-sizing: unset !important; -ms-box-sizing: unset !important; -moz-box-sizing: unset !important; box-sizing: unset !important;position: absolute; z-index: 99999; cursor: pointer; top: 10px; right: 10px; width: 14px; height: 14px;  background-color: rgba(0, 0, 0, 0.5)!important; box-shadow: rgb(0, 0, 0) 0px 0px 6px 0px; padding: 5px; border-radius: 14px;")+'">'+e+"</vli>"}if("inline"===a.type)return'<vli id="vi_outstrClose_'+p+'" style="'+(t="background: unset!important;-webkit-box-sizing: unset !important; -ms-box-sizing: unset !important; -moz-box-sizing: unset !important; box-sizing: unset !important;position:absolute;z-index:9999;cursor:pointer;width:14px;height:14px;top:8px;left:8px;")+'">'+e+"</vli>"},S=!1,C=function e(t,i){var n,o;"slider"!==a.type||he?"inline"!==a.type||r&&he?(I(),n=V(t),o=t.vastUrl?t.vastUrl:null,d=g.play({type:"outstream",vastXML:n,vastUrl:o,divID:h,adHeight:"inline"===a.type?l:null,issetClick:me,volumeControl:!(!Z()&&"inline"!==a.type&&!0!==s.volumnControl),start:function(){ne({divID:p,hidden:function(){d.pause()},watching:function(){d.resume()}}),pe.VIdebug&&(de(p,"adId",p),de(p,"creativeId",t.creativeId)),x()},complete:function(){u=0,s.complete&&s.complete({id:p}),B()},error:function(e){oe(p),z({e:e,b:t.bidderCode,t:"outstream",c:t.creativeId}),i()},impression:function(){$({type:"hb_video",divID:p,zoneID:a.zid,bidder:t.bidderCode,cpm:t.cpm})},hidden:function(){_(),oe(p),s.hidden&&s.hidden({id:p})}})):f=function(){if(r&&he){if(S)return;S=!0,e(t,i)}}:f=function(){S||(S=!0,e(t,i))}},E=function(){I();function o(){"function"==typeof s.passbackFunction&&s.passbackFunction(),s.error&&s.error({id:p})}re(pe.pixelID);var r=[];a.vast&&(r=JSON.parse(JSON.stringify(a.vast)));for(var e=0;e<r.length;e++)r[e].requested=!1,r[e].link=ae(r[e].link);!function e(){if(r.length<=0)return o(),void B();for(var t="",i="",n=0;n<r.length;n++)if(!r[n].requested){r[n].requested=!0,t=r[n].link,i=r[n].bidder;break}if(!t||!i)return o(),void B();d=g.play({type:"outstream",vastXML:null,vastUrl:t,divID:h,adHeight:"inline"===a.type?l:null,issetClick:me,volumeControl:!(!Z()&&"inline"!==a.type&&!0!==s.volumnControl),start:function(){ne({divID:p,hidden:function(){d.pause()},watching:function(){d.resume()}}),x()},complete:function(){u=0,s.complete&&s.complete({id:p}),B()},error:function(){oe(p),se(pe.domainName,"ERROR - "+i,"er","er"),e()},impression:function(){se(pe.domainName,"OK - "+i,"ok","ok")},hidden:function(){_(),oe(p),s.hidden&&s.hidden({id:p})}})}()},A=function e(t,i){if(oe(p),i.length<=1)return _(),void E();!1!==t&&i.splice(t,1);var n=F(i),o=i[n];if(o.cpm<c)return _(),void E();C(o,function(){e(n,i)})},D=function(){var e,t,i,n;null!==s.displayFrequency.limit&&null!==s.displayFrequency.every&&null!==s.displayFrequency.unit&&(e={},(t=R("vi-outstream-frequency"))&&(e=JSON.parse(t)),e[p]?(i=e[p].count,n=e[p].start,T(n)<s.displayFrequency.every?e[p]={count:i+1,start:n}:e[p]={count:1,start:(new Date).getTime()}):e[p]={count:1,start:(new Date).getTime()},M("vi-outstream-frequency",JSON.stringify(e)))},T=function(e){var t=(new Date).getTime(),i=0;return"second"===s.displayFrequency.unit&&(i=Math.round((t-e)/1e3)),"minute"===s.displayFrequency.unit&&(i=Math.round((t-e)/1e3/60)),"hour"===s.displayFrequency.unit&&(i=Math.round((t-e)/1e3/60/60)),"day"===s.displayFrequency.unit&&(i=Math.round((t-e)/1e3/60/60/24)),i},L=function(){!function(){if(null!==s.displayFrequency.limit&&null!==s.displayFrequency.every&&null!==s.displayFrequency.unit){var e=R("vi-outstream-frequency");if(e){var t=JSON.parse(e);if(t[p]){var i=t[p].count,n=t[p].start;if(T(n)<s.displayFrequency.every&&i>=s.displayFrequency.limit)return!0}}}return!1}()?1!=o&&20!=u&&(vlipb.requestBids({timeout:pe.prebidTimeout,adUnitCodes:[p],bidsBackHandler:function(){var e,t,i=Y(vlipb.getBidResponsesForAdUnitCode(p),p),n=function(){},o=c;0<i.length?(e=F(i),(t=i[e]).cpm>=c?(n=function(){C(t,function(){A(e,i)})},o=t.cpm):(P({bidder:t.bidderCode+"_Below_Floor_Outstream",cpm:t.cpm}),n=function(){E()})):(P({bidder:"Nobid_Outstream",cpm:"0.00"}),n=function(){E()});var r,s,a,l,d;r=o,s=function(e){e?C(e,function(){A(!1,i)}):n()},l=te(),d=Z()?"mobile":"desktop",-1!==[101,392,400,435,575,788,789,801,845,955,1213,2659,3103,727,1720,1785,1116,3173,3509,589,2321,3401,1523,1801].indexOf(pe.domainID)?((a=new XMLHttpRequest).onreadystatechange=function(){var e,t;4===this.readyState&&(200===this.status&&this.responseText&&(e=JSON.parse(this.responseText)).status?(t={bidderCode:"vlidsp",vastUrl:e.vast,cpm:e.price,creativeId:"dspcreative",auctionId:N()},s(t)):s(!1))},a.timeout=1500,a.ontimeout=function(){s(!1)},a.open("GET","//ms.vliplatform.com/campaign/get?location="+pe.VIGeo+"&device="+d+"&browser="+l+"&price="+r+"&d="+encodeURI(window.location.protocol+"//"+window.location.hostname),!0),a.withCredentials=!0,a.send()):s(!1)}}),u++):B()},B=function(){"function"!=typeof s.passbackFunction&&!1!==s.instantLoad&&setTimeout(function(){var e;pe.isVisible?L():ne({divID:e="outstream_refresh_queue",hidden:function(){},watching:function(){oe(e),L()}})},2e4)};ie(L,1e3),"inline"===a.type&&ee(n,function(){r||(r=!0,he&&f()),setTimeout(function(){d&&d.resume()},200)},function(){r=r&&!1,d&&d.pause()},{threshold:[0]})}}}function ut(e,t,i){var n,o=1<arguments.length&&void 0!==t?t:null,r=2<arguments.length&&void 0!==i?i:{},s=document.getElementsByClassName(pe.adClass);if(0!==s.length){if(!o)for(var a=0;a<s.length;a++)if(s[a].getAttribute("data-ad-slot")===e&&!s[a].classList.contains("running")){o=s[a];break}o&&null!==o.offsetParent&&(n=ge(e,o),new lt(e,n,o,1,r).init())}}void 0===window[ue]&&(window[ue]=(Ie=new q,ke=function(){var t,e;E()||window[pe.tagName].gdprShowConsentTool&&window.navigator.cookieEnabled&&(window.__cmp||(t={maxretries:0,cookiefree:0,savepref:0,lvt:-1,bnc:1,bncd:5,iabid:10,host:pe.staticDomain+"/plugins/cmpv3",host2:pe.staticDomain+"/plugins/cmpv3",cdn:pe.staticDomain+"/plugins/cmpv3/static",cmpname:pe.brandName,intID:pe.domainID,iuid:"",setuniqueid:0,usePubcookie:1,boolNoCMPLogo:"0",disablevendorswopurpose:1,turnoffvendorswopurpose:1,turnonvendorswopurpose:1,disablevendorswopurposec:1,turnoffvendorswopurposec:1,turnonvendorswopurposec:1,regulation:1,strSetFixedLanguage:"EN",boolCustomPurposeDefault:"1",boolCustomVendorsDefault:"1",enableRecallBtn:window[pe.tagName].gdprShowConsentToolButton?"3":"0",welcomeprps:"1",welcomeprpsccpa:"0",islspa:1,ccpavm:1,boolGroupChoices:"1",intVersion:"16",intDesignVersion:"1",verifyage:"0",simplecookie:"0",menu_vendors:"1",menu_privacy:"0",boolShowAllPurposeBtnTop:"1",boolShowAllPurposeBtnBottom:"1",boolShowAllVendorsBtnTop:"1",boolShowAllVendorsBtnBottom:"1",boolHidePurpose1:0,boolHidePurpose2:0,boolHidePurpose3:0,boolHidePurpose4:0,boolHidePurpose5:0,cookielist:"0",intAskAgainForNewVendorsDays:"7",intAskAgainDaysForRejectedUsers:"14",intAskAgainDaysForAcceptedUsers:"365",strLogoUrl:"",policytype:"0",strPolicyURL:"https://"+pe.brandHomepage+"/privacy.html",strPolicyURLlang:"EN",strPolicyURL1:"",strPolicyURLlang1:"",strPolicyURL2:"",strPolicyURLlang2:"",strPolicyURL3:"",strPolicyURLlang3:"",strPolicyURL4:"",strPolicyURLlang4:"",strPolicyURL5:"",strPolicyURLlang5:"",strPolicyURL6:"",strPolicyURLlang6:"",strPolicyURL7:"",strPolicyURLlang7:"",strPolicyURL8:"",strPolicyURLlang8:"",strPolicyURL9:"",strPolicyURLlang9:"",ccpadnslogic:0,ccpadns:"",design_intID:1,design_intPosition:"1",design_boolGrayOutWebsite:"0",design_intGrayOutClickBehavior:"0",design_intCloseClickBehavior:"0",design_toggle:0,design_intScrollBehavior:"0",design_intScrollDepth:"300",design_intNavigateBehavior:"0",design_boolShowCountdown:"0",design_intCountdownTime:"45",design_intCountdownBehavior:"0",design_btns:0,tcfcompliant:1,strCustomCSS:"*.cmplogo {right: 20px; top: 20px;} *.cmpboxhl{font-size:12pt;color:#3B3B3B;padding-bottom:10px;font-weight:bold;} *.cmpboxtxt, td.cmpvendname{font-size:11pt;color:#5F5F5F;}.cmpwelcomeprpstxt, .cmpwelcomeprpstxt A:link, .cmpwelcomeprpsbtn, .cmpwelcomeprpsbtn A:link, .cmpwelcomeprpsbtn span{font-size:11pt;color:#5F5F5F;} *.cmpboxtxt{padding-bottom:20px;}.cmpwelcomeprpstxt, .cmpwelcomeprpstxt A:link, .cmpwelcomeprpsbtn, .cmpwelcomeprpsbtn A:link, .cmpwelcomeprpsbtn span{font-size:11pt;color:#5F5F5F;}.cmpboxwelcomeprps{margin-bottom:20px;} .cmpmorelink, A.cmpmorelink, A.cmpmorelink:link{font-size:9pt;color:#229CCA;} .cmpsavemychoice, .cmpsavemychoice label{font-size:9pt;color:#5F5F5F;}  *.cmpboxbtnyes, A.cmpboxbtnyes, A.cmpboxbtnyes:link{font-size:11pt;color:#FFFFFF;background-color:#229CCA;} *.cmpboxbtnno, A.cmpboxbtnno, A.cmpboxbtnno:link, *.cmpboxbtncustom, A.cmpboxbtncustom, A.cmpboxbtncustom:link{font-size:11pt;color:#FFFFFF;background-color:#229CCA;} .cmpfullscreen *.cmpboxbtnyes, .cmpfullscreen A.cmpboxbtnyes, .cmpfullscreen A.cmpboxbtnyes:link{font-size:11pt;color:#FFFFFF;background-color:#229CCA;} .cmpfullscreen .cmpmorelink, .cmpfullscreen A.cmpmorelink, .cmpfullscreen A.cmpmorelink:link{font-size:9pt;color:#229CCA;} *.cmpboxbtnyes svg{fill:#FFFFFF;width:11pt;height:11pt;}*.cmpboxbtnno svg{fill:#FFFFFF;width:11pt;height:11pt;} *.cmpbox{background-color:#FFFFFF;border-top:solid 12px #229CCA;border-right:solid 0px #FFFFFF;border-bottom:solid 5px #C0C0C0;border-left:solid 0px #FFFFFF;padding-top:40px;padding-right:40px;padding-bottom:40px;padding-left:40px;} *.cmpclose{display:none;}  .cmpfullscreen *.cmpboxhl{font-size:12pt;color:#3B3B3B;font-weight:bold;} .cmpfullscreen *.cmpprpshl{font-size:12pt;color:#3B3B3B;font-weight:bold;} .cmpfullscreen *.cmpboxtxt, .cmpfullscreen, .cmpprpsdescr, td.cmpvendname, .cmpfullscreen A.cmpvendurl, .cmpfullscreen A.cmpvendurl:link{font-size:11pt;color:#5F5F5F;} .cmpfullscreen.cmpbox{background-color:#FFFFFF;} .cmpboxnaviitemactive, TD.cmpallvend, TH.cmpallvend, TD.cmpallprps, TH.cmpallprps{background-color:#FFFDCD;}",strWebsite:pe.domainName,custompurposes:[],cpc:"",usps:"1---"},e=function(){window.gdprAppliesGlobally=!0;var e=document.createElement("link");e.href="https://"+pe.staticDomain+"/plugins/cmpv3/static/delivery/cmp.min.css",e.rel="stylesheet",document.head.appendChild(e),(e=document.createElement("script")).src="https://"+pe.staticDomain+"/plugins/cmpv3/js/cmp_en.js",e.type="text/javascript",e.async=!0,e.onload=function(){!function e(t){"cmpmngr"in window?window.cmpmngr.loadSettings("",{},t):window.setTimeout(function(){e(t)},10)}(t)},document.body?document.body.appendChild(e):document.currentScript?document.currentScript.parentElement.appendChild(e):document.write(e.outerHTML),window.cmp_addFrame=function(e){var t;window.frames[e]||(document.body?((t=document.createElement("iframe")).style.cssText="display:none",t.name=e,document.body.appendChild(t)):window.setTimeout('window.cmp_addFrame("'+e+'")',10))},window.cmp_addFrame("__cmpLocator"),window.cmp_addFrame("__uspapiLocator"),window.cmp_stub=function(){var e=arguments;if(__cmp.a=__cmp.a||[],!e.length)return __cmp.a;"ping"===e[0]?e[2]({gdprAppliesGlobally:gdprAppliesGlobally,cmpLoaded:!1},!0):4==e.length&&!1===e[3]?e[2]({},!1):__cmp.a.push([].slice.apply(e))},window.cmp_msghandler=function(n){var o,r="string"==typeof n.data;try{var t=r?JSON.parse(n.data):n.data}catch(e){t=null}"object"===p()(t)&&null!==t&&"__cmpCall"in t&&(o=t.__cmpCall,window.__cmp(o.command,o.parameter,function(e,t){var i={__cmpReturn:{returnValue:e,success:t,callId:o.callId}};n.source.postMessage(r?JSON.stringify(i):i,"*")})),"object"===p()(t)&&null!==t&&"__uspapiCall"in t&&(o=t.__uspapiCall,window.__uspapi(o.command,o.version,function(e,t){var i={__uspapiReturn:{returnValue:e,success:t,callId:o.callId}};n.source.postMessage(r?JSON.stringify(i):i,"*")}))},"function"==typeof __cmp||"object"===("undefined"==typeof __cmp?"undefined":p()(__cmp))||"undefined"!=typeof __cmp&&null===__cmp||(window.__cmp=window.cmp_stub,__cmp.msgHandler=window.cmp_msghandler,window.addEventListener?window.addEventListener("message",window.cmp_msghandler,!1):window.attachEvent("onmessage",window.cmp_msghandler)),"function"==typeof __uspapi||"object"===("undefined"==typeof __uspapi?"undefined":p()(__uspapi))||"undefined"!=typeof __uspapi&&null===__uspapi||(window.__uspapi=window.cmp_stub,__uspapi.msgHandler=window.cmp_msghandler,window.addEventListener?window.addEventListener("message",window.cmp_msghandler,!1):window.attachEvent("onmessage",window.cmp_msghandler))},pe.VIGeo&&"N/A"!==pe.VIGeo?(-1!==pe.EUCountry.split(" ").indexOf(pe.VIGeo)&&e(),"US"===pe.VIGeo&&-1!==pe.GeoState.indexOf("CA")&&(t.regulation=2,e())):e()))},Se=function(){_(),ot(),it(),"on"===pe.useBidFilter&&Te(),nt("//"+pe.staticDomain+pe.prebidJs,"prebid",Ee,function(){}),"dfp"!==pe.bannerRequestMode&&"postbid_dfp"!==pe.bannerRequestMode||(pe.totalLoad+=1,nt("//www.googletagservices.com/tag/js/gpt.js","googletag",Ee,function(){})),(pe.instreamSlot||pe.outstreamSlot||pe.topArticle)&&(pe.totalLoad+=2,nt("//"+pe.staticDomain+"/plugins/vlPlayer/viPlayer_v33.min.js",!1,Ee,function(){}),nt("//imasdk.googleapis.com/js/sdkloader/ima3.js",!1,function(){Ee(),Ce()},function(){})),"on"!==pe.safeFrame||void 0!==window.$sf&&null!=window.$sf&&null!=window.$sf.host||(pe.totalLoad+=1,nt("//"+pe.staticDomain+"/plugins/safeframe/src/js/sf_host.min.js",!1,Ee,function(){})),"on"===pe.useAmazonUAM&&(pe.totalLoad+=1,nt("//c.amazon-adsystem.com/aax2/apstag.js","apstag",Ee,function(){}))},Ce=function(){window[pe.tagName].imaLanguage&&google.ima.settings.setLocale(window[pe.tagName].imaLanguage)},Ee=function(){pe.inLoading++,pe.inLoading==pe.totalLoad&&Ae()},Ae=function(){je(),Le(),"dfp"!=pe.bannerRequestMode&&"postbid_dfp"!=pe.bannerRequestMode||(googletag.cmd=googletag.cmd||[],googletag.cmd.push(function(){googletag.pubads().disableInitialLoad(),googletag.pubads().addEventListener("slotRenderEnded",function(e){Oe(e)}),googletag.pubads().setTargeting("hb_domain",pe.domainName),googletag.pubads().enableSingleRequest(),googletag.enableServices()})),ze(),Be(),Pe(),Pe("display"),Pe("instream"),pe.bgRefresh&&null!=pe.displaySlot&&""===pe.reloadMode&&setInterval(function(){Re()},pe.bgRefresh),Ie.init(),(new H).init(),pe.outstreamSlot&&!1!==window[pe.tagName].outStreamConfig.instantLoad&&Qe.init(),qe.render_container(),pe.adHesionSlot&&De.init(),Xe(),Ge()},xe=function(e){var t,i,n=e[0],o=Y(vlipb.getBidResponsesForAdUnitCode(n),n),r={divID:n,zoneID:we.zid,cpm:0},s=0<o.length?o[F(o)]:null;pe.adRenderAction.bidWon[n]=function(){s&&$(r)},s&&(r.type="hb",r.cpm=s.cpm,r.bidder=s.bidderCode,s.cpm>=_e&&((t=document.createElement("iframe")).id="ifr_"+n,t.setAttribute("FRAMEBORDER","0"),t.setAttribute("SCROLLING","no"),t.setAttribute("MARGINHEIGHT","0"),t.setAttribute("MARGINWIDTH","0"),t.setAttribute("TOPMARGIN","0"),t.setAttribute("LEFTMARGIN","0"),t.setAttribute("ALLOWTRANSPARENCY","true"),t.setAttribute("sandbox","allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation"),t.width=s.width,t.height=s.height,document.body.appendChild(t),(i=t.contentWindow||t.contentDocument).document&&(i=i.document),vlipb.renderAd(i,s.adId)))},De={init:function(){var e;pe.adHesionSlot&&(we=pe.adHesionSlot,_e=we.floorPrice?we.floorPrice:0,(e=JSON.parse(JSON.stringify(we.adunit))).bids&&(e.bids=X(e.bids),e.bids=G(e.bids,_e),vlipb.addAdUnits(e),0<e.bids.length&&(pe.auctionLogs[e.code]={bidder:j(e.bids),preAuction:""}),K([e.code],[],xe)))}},Te=function(){var e=document.createElement("script"),t=document.createTextNode("window._BidFilter={site_id:1046,pbjsKey:'vlipb',checkAudio:false};");e.appendChild(t),document.head.appendChild(e);var i=document.createElement("script");i.src="//cdn.bidfilter.com/bidfilter.js",document.head.appendChild(i)},Le=function(){"on"===pe.useAmazonUAM&&apstag.init({pubID:"9cf0c4f1-7630-476b-9141-f4472e005192",adServer:"googletag",bidTimeout:pe.prebidTimeout})},Be=function(){var e,t;"on"!==pe.safeFrame||(t=(e=window.$sf)&&e.host&&e.host.Config)&&(t()||new t({renderFile:"//"+pe.staticDomain+"/plugins/safeframe/src/html/r.html",onEndPosRender:function(e){e=e.replace("vli_sf_",""),Ne(e)},positions:{}}))},Ne=function(e,t){var i,n=!(1<arguments.length&&void 0!==t)||t;pe.adRenderAction.bidWon[e]&&(pe.adRenderAction.bidWon[e](),delete pe.adRenderAction.bidWon[e]),!n||(i=document.getElementById(e))&&i.appendChild(et())},ze=function(){var e={buckets:[{precision:2,min:0,max:22.5,increment:.01}]},t={buckets:[{precision:2,min:0,max:.1,increment:.01},{precision:2,min:.1,max:10,increment:.05},{precision:2,min:10,max:15,increment:.25},{precision:2,min:15,max:30,increment:.5},{precision:2,min:30,max:40,increment:1},{precision:2,min:40,max:110,increment:5}]},i={standard:{adserverTargeting:[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(e){return"video"===e.mediaType?110<e.cpm?110:e.pbCg:"banner"===e.mediaType?22.5<e.cpm?22.5:e.pbCg:e.pbDg}},{key:"hb_size",val:function(e){return e.size}},{key:"hb_source",val:function(e){return e.source}},{key:"hb_format",val:function(e){return e.mediaType}},{key:"hb_domain",val:function(){return pe.domainName}}]}};if(pe.bidAdjustment)for(var n in pe.bidAdjustment)pe.bidAdjustment.hasOwnProperty(n)&&(i[n]={bidCpmAdjustment:function(e){return e*pe.bidAdjustment[n]}});vlipb.que.push(function(){vlipb.setConfig({s2sConfig:{accountId:pe.accountId,enabled:!0,bidders:pe.s2sBidders,timeout:pe.prebidTimeout,adapter:"prebidServer",endpoint:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",syncEndpoint:"https://prebid.adnxs.com/pbs/v1/cookie_sync"},rubicon:{singleRequest:!0},cache:{url:"https://pbc.vliplatform.com/cache"},pubcid:{expInterval:525600},userSync:pe.userSyncConfig,mediaTypePriceGranularity:{video:t,banner:e},currency:{adServerCurrency:"USD",granularityMultiplier:1,defaultRates:{RUB:{USD:.01533}}},consentManagement:{gdpr:{cmpApi:"iab",allowAuctionWithoutConsent:!0,timeout:3e3},usp:{cmpApi:"iab",timeout:100}}}),vlipb.setBidderConfig({bidders:["rubicon","pubmatic","sonobi","appnexus","gumgum","oneVideo"],config:{schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"interdogmedia.com",sid:pe.uId.toString(),hp:1}]}}}}),vlipb.setBidderConfig({bidders:["pulsepoint"],config:{schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"h12ukltd.com",sid:pe.uId.toString(),hp:1}]}}}}),vlipb.setBidderConfig({bidders:["valueimpression","quantumdex"],config:{schain:{validation:"strict",config:{ver:"1.0",complete:1,nodes:[{asi:"valueimpression.com",sid:pe.uId.toString(),hp:1}]}}}}),vlipb.bidderSettings=i})},Pe=function(e){var t=null;switch(e){case"display":t=window[pe.tagName].displayInit;break;case"instream":t=window[pe.tagName].videoInit;break;default:t=window[pe.tagName].Init}t.push=function(e){Array.prototype.push.apply(this,arguments),Me(t)},Me(t)},Me=function(e){for(var t=0;t<e.length;t++)e[t]();e.length=0},Re=function(e){vlipb.adUnits.forEach(function(e,t){var i=e.bids,n=[];0<i.length&&i.forEach(function(e,t){n.push(e)}),vlipb.adUnits[t].bids=n});var i=void 0===e?Ye():e;if(i){for(var t=document.getElementsByClassName("vliIcon"),n=0;n<t.length;n++)-1!==i.indexOf(t[n].parentNode.id)&&t[n].style.setProperty("opacity","0","important");i.forEach(function(e){ce(e)});var o=[];vlipb.adUnits.forEach(function(e){var t;e.mediaTypes.banner&&-1!==i.indexOf(e.code)&&"on"===pe.useAmazonUAM&&(t={slotID:e.code,sizes:e.mediaTypes.banner.sizes,slotName:"Amazon"},o.push(t))}),"off"===pe.dfpRefresh&&(pe.bannerRequestMode="postbid"),K(i,o,Ue)}},Oe=function(e){var t,i,n,o=e.slot.getSlotElementId(),r=Ye();r&&-1!==r.indexOf(o)&&(t=document.getElementById(o),pe.adRenderAction.pb[o]&&(!(i=!1)===e.isEmpty?i="passback":(t.setAttribute("isset-ad","1"),t.setAttribute("content-type","ad"),!0===e.isBackfill?i="hb":(n=!1,0<e.slot.getTargeting("amznbid").length&&-1===e.slot.getTargeting("amznbid").indexOf("0")&&-1===e.slot.getTargeting("amznbid").indexOf("1")&&-1===e.slot.getTargeting("amznbid").indexOf("2")&&(n=!0),-1===e.slot.getTargeting("up_bid").indexOf("true")||n||(t.setAttribute("isset-ad",""),t.setAttribute("content-type",""),i="passback"))),pe.adRenderAction.pb[o](i),delete pe.adRenderAction.pb[o]),t&&!e.isEmpty&&e.isBackfill&&null!==e.size&&-1===[0,1].indexOf(e.size[0])&&-1===[0,1].indexOf(e.size[1])&&(Z()?e.slot.getSizes()[0].l===e.size[0]&&t.style.setProperty("margin","0 auto","important"):t.style.setProperty("margin","0 auto"),t.style.setProperty("width",e.size[0]+"px","important"),t.style.setProperty("height",e.size[1]+"px","important"),t.style.setProperty("position","relative","important"),t.appendChild(et())))},fe=[],ve=null,be=[],ye=function(){var i=[],e=[],t=[];fe=fe.filter(function(e,t){return fe.indexOf(e)===t});for(var n=0;n<fe.length;n++){var o,r=fe[n];pe.displaySlot[r]&&((o=function(e){var t=document.getElementsByClassName(pe.adClass);if(0==t.length)return null;for(var i=0;i<t.length;i++)if(t[i].getAttribute("data-ad-slot")==e)return t[i].dataset.id?null:t[i]}(r))&&t.push({slot:r,element:o}))}for(var s=0;s<t.length;s++){var a=t[s],l=pe.displaySlot[a.slot],d=a.slot,c=[l.w,l.h],p=a.element;p.dataset.id=d,p.innerHTML='<div id="'+d+'" data-ad-slot="'+a.slot+'"></div>',p.style.cssText="display:block!important;position:relative!important;margin:0 auto!important;z-index:0!important;",pe.VIdebug&&le(d);var u,h=JSON.parse(JSON.stringify(l.adunit));h.code=d,h.bids=X(at(c.join("_"))),h.bids=G(h.bids,l.floorPrice),vlipb.addAdUnits(h),0<h.bids.length&&(pe.auctionLogs[d]={bidder:j(h.bids),preAuction:""}),null!==p.offsetParent&&(i.push(d),"on"===pe.useAmazonUAM&&(u={slotID:d,sizes:h.mediaTypes.banner.sizes,slotName:"Amazon"},e.push(u)))}0!==i.length&&(vlipb.onEvent("bidWon",function(e){var t;-1!==i.indexOf(e.adUnitCode)&&(Ne(e.adUnitCode),"dfp"!==pe.bannerRequestMode||(t=document.getElementById(e.adUnitCode))&&(t.style.cssText="width:"+e.width+"px!important;height:"+e.height+"px!important;margin:0 auto!important;position:relative!important;"),D("banner",e))}),K(i,e,Ue))},Fe={init:function(e){pe.displaySlot&&-1===be.indexOf(e)&&(fe.push(e),be.push(e),null!==ve&&clearTimeout(ve),ve=setTimeout(function(){ye(fe),fe=[],ve=null},5))}},Ve=function(e,t,i){if(pe.displaySlot&&pe.displaySlot[e]){var s=pe.displaySlot[e];if((!t||t.length<=0)&&(t=document.getElementsByClassName(pe.adClass)),0!=t.length){for(var n=[],o=0,r=0;r<t.length;r++)t[r].getAttribute("data-ad-slot")==e&&(o++,"true"!==t[r].getAttribute("data-top-articles")&&"true"!==t[r].getAttribute("data-video-discovery")&&(t[r].dataset.id||n.push(t[r])));if(1===o){var a=!1;if(s.geo_target?"-"===s.geo_target.charAt(0)?-1===s.geo_target.indexOf(pe.VIGeo)&&(a=!0):-1!==s.geo_target.indexOf(pe.VIGeo)&&(a=!0):a=!0,a){setTimeout(function(){for(var e=document.getElementsByClassName("coolBy"),t=0;t<e.length;t++)e[t].style.opacity=1},1e3);var l='<div class="coolBy" style="margin-bottom: 15px;"></div>';if("top-articles"===s.display_type){var d=!1;pe.topArticle&&(d=!0);var c=null;for(var p in pe.topArticle){c=JSON.parse(JSON.stringify(pe.topArticle[p]));break}return c.zid=s.zid,pe.topArticle[e]=c,(v=document.createElement("div")).style.cssText="width: "+s.w+"px!important;height: "+s.h+"px!important;margin:0 auto!important;",v.innerHTML='<div class="adsbyvli" data-ad-slot="'+e+'" data-top-articles="true"></div>',n[0].parentNode.insertBefore(v,n[0].nextSibling),n[0].remove(),window[pe.tagName].topArticlesConfig.noFixed=!0,void(new rt).init(e)}if("video-discovery"===s.display_type){var u=null;if(pe.instreamSlot)for(var h in pe.instreamSlot)if("inbanner"===pe.instreamSlot[h].type){u=pe.instreamSlot[h];break}if(u)return pe.instreamSlot[e]=JSON.parse(JSON.stringify(u)),pe.instreamSlot[e].zid=s.zid,(v=document.createElement("div")).style.cssText="width: "+s.w+"px!important;height: "+s.h+"px!important;margin:0 auto!important;",v.innerHTML='<div class="adsbyvli" data-ad-slot="'+e+'" data-video-discovery="true"></div>',n[0].parentNode.insertBefore(v,n[0].nextSibling),n[0].remove(),window[pe.tagName].videoDiscoverConfig.noFixedVideo=!0,void(new He).init(e,!0)}if("banner_banner"===s.display_type){var m=!1;for(var p in pe.displaySlot)if(300===pe.displaySlot[p].w&&250===pe.displaySlot[p].h){pe.displaySlot[e]=JSON.parse(JSON.stringify(pe.displaySlot[p])),pe.displaySlot[e].zid=s.zid,m=!0;break}if(m)return(v=document.createElement("div")).innerHTML='<div class="adsbyvli" data-ad-slot="'.concat(e,'"></div>').concat(l,'<div class="adsbyvli" data-ad-slot="').concat(e,'"></div>'),n[0].parentNode.insertBefore(v,n[0].nextSibling),n[0].remove(),void Ve(e,null,!0)}if("banner_top-articles"===s.display_type||"top-articles_banner"===s.display_type){var g=null,d=!1;for(var p in pe.displaySlot)if(300===pe.displaySlot[p].w&&250===pe.displaySlot[p].h){g=pe.displaySlot[p];break}if(pe.topArticle&&(d=!0),g&&d){pe.displaySlot[e]=JSON.parse(JSON.stringify(g)),pe.displaySlot[e].zid=s.zid;c=null;for(var p in pe.topArticle){c=JSON.parse(JSON.stringify(pe.topArticle[p]));break}c.zid=s.zid,pe.topArticle[e]=c,(v=document.createElement("div")).style.cssText="width: "+s.w+"px!important;margin:0 auto!important;";var f='<div class="adsbyvli" data-ad-slot="'.concat(e,'"></div>').concat(l,'<div class="adsbyvli" data-ad-slot="').concat(e,'" data-top-articles="true"></div>');return"top-articles_banner"===s.display_type&&(f='<div class="adsbyvli" data-ad-slot="'.concat(e,'" data-top-articles="true"></div>').concat(l,'<div class="adsbyvli" data-ad-slot="').concat(e,'"></div>')),v.innerHTML=f,n[0].parentNode.insertBefore(v,n[0].nextSibling),n[0].remove(),Ve(e),window[pe.tagName].topArticlesConfig.noFixed=!0,void(new rt).init(e)}}if("banner_video-discovery"===s.display_type||"video-discovery_banner"===s.display_type){var v,g=null,u=null;for(var p in pe.displaySlot)if(300===pe.displaySlot[p].w&&250===pe.displaySlot[p].h){g=pe.displaySlot[p];break}if(pe.instreamSlot)for(var h in pe.instreamSlot)if("inbanner"===pe.instreamSlot[h].type){u=pe.instreamSlot[h];break}if(g&&u){pe.displaySlot[e]=JSON.parse(JSON.stringify(g)),pe.displaySlot[e].zid=s.zid,pe.instreamSlot[e]=JSON.parse(JSON.stringify(u)),pe.instreamSlot[e].zid=s.zid,(v=document.createElement("div")).style.cssText="width: "+s.w+"px!important;margin:0 auto!important;";f='<div class="adsbyvli" data-ad-slot="'.concat(e,'"></div>').concat(l,'<div class="adsbyvli" data-ad-slot="').concat(e,'" data-video-discovery="true"></div>');return"video-discovery_banner"===s.display_type&&(f='<div class="adsbyvli" data-ad-slot="'.concat(e,'" data-video-discovery="true"></div>').concat(l,'<div class="adsbyvli" data-ad-slot="').concat(e,'"></div>')),v.innerHTML=f,n[0].parentNode.insertBefore(v,n[0].nextSibling),n[0].remove(),Ve(e),window[pe.tagName].videoDiscoverConfig.noFixedVideo=!0,void(new He).init(e,!0)}}}}if("return_passback"!==s.display_type){for(var b=[],y=[],r=0;r<n.length;r++){var w=e+"_"+A(),_=[s.w,s.h],x=n[r];x.dataset.id=w,x.innerHTML='<div id="'+w+'" data-ad-slot="'+e+'"></div>',x.style.cssText="display:block!important;position:relative!important;margin:0 auto!important;z-index:0!important;",pe.VIdebug&&le(w);var I,k=JSON.parse(JSON.stringify(pe.displaySlot[e].adunit));if(k.code=w,k.bids=X(at(_.join("_"))),k.bids=G(k.bids,pe.displaySlot[e].floorPrice),vlipb.addAdUnits(k),0<k.bids.length&&(pe.auctionLogs[w]={bidder:j(k.bids),preAuction:""}),null!==x.offsetParent&&(b.push(w),"on"===pe.useAmazonUAM&&(I={slotID:w,sizes:k.mediaTypes.banner.sizes,slotName:"Amazon"},y.push(I))),"lazy_load"===pe.adloadType&&!0!==i)break;if("v2"===pe.jsVersion)break}0!==b.length&&(vlipb.onEvent("bidWon",function(e){var t;-1!==b.indexOf(e.adUnitCode)&&(Ne(e.adUnitCode),"dfp"!==pe.bannerRequestMode||(t=document.getElementById(e.adUnitCode))&&(t.style.cssText="width:"+e.width+"px!important;height:"+e.height+"px!important;margin:0 auto!important;position:relative!important;"),D("banner",e))}),K(b,y,Ue))}else n.forEach(function(e){var t="return_passback_"+A(),a=document.createElement("div");a.style.cssText="width: "+s.w+"px!important;margin:0 auto!important;",a.id=t,e.parentNode.insertBefore(a,e.nextSibling),e.remove();var i="passback";"iframe"!==pe.pbRender&&(i="pbk");var n,o,r="//"+pe.passbackDomain+"/"+i+"/?t="+pe.passBackUpdateTime+"&d="+pe.domainID+"&z="+s.zid+"&divID="+t+"&w="+s.w+"&h="+s.h+"&c=1";"iframe"===pe.pbRender?((n=S(a,t,s.w,s.h)).open(),n.write('<script type="text/javascript" src="'+r+'"><\/script>'),n.close()):((o=document.createElement("script")).src=r,o.onload=function(){setTimeout(function(){var e=a.getElementsByTagName("script");if(0<e.length){for(var t=[],i=0,n=0,o=function(){i===n&&t.forEach(function(e){Function(e)()})},r=0;r<e.length;r++)e[r].src?i++:t.push(e[r].innerText);for(var s,r=0;r<e.length;r++){e[r].src&&((s=document.createElement("script")).src=e[r].src,s.onload=function(){n++,o()},document.getElementsByTagName("head")[0].appendChild(s))}i||o()}},100)},a.appendChild(o))})}}},Ue=function(e){var d,c;"signal"===pe.reloadMode&&(d=function(t){pe.viewabilityCheck[t.target.id].setInterval=setInterval(function(){var e;"active"===pe.userState&&(pe.viewabilityCheck[t.target.id].viewableTime++,e=t.target.offsetParent.getAttribute("signalreload"),pe.bgRefresh&&pe.viewabilityCheck[t.target.id].viewableTime>=pe.bgRefresh/1e3&&"off"!==e&&(pe.viewabilityCheck[t.target.id].viewableTime=0,Re([t.target.id])))},1e3)},c=function(e){clearInterval(pe.viewabilityCheck[e.target.id].setInterval)}),e.forEach(function(n){pe.VIdebug&&de(n,"adId",n);var o=document.getElementById(n);if(o){"signal"===pe.reloadMode&&void 0===pe.viewabilityCheck[n]&&(pe.viewabilityCheck[n]={},pe.viewabilityCheck[n].viewableTime=0,pe.viewabilityCheck[n].setInterval=null,ee(o,d,c,{threshold:[51]}));var t=pe.displaySlot[o.getAttribute("data-ad-slot")],e=t.floorPrice?t.floorPrice:0,i=!1,r=Y(vlipb.getBidResponsesForAdUnitCode(n),n),s={divID:n,zoneID:t.zid,cpm:0},a=0<r.length?r[F(r)]:null;if(a&&(s.type="hb",s.cpm=a.cpm,s.bidder=a.bidderCode,"native"===a.mediaType&&(s.adType="native")),"dfp"!=pe.bannerRequestMode&&"postbid_dfp"!=pe.bannerRequestMode||(pe.gSlots[n]&&googletag.destroySlots([pe.gSlots[n]]),googletag.cmd.push(function(){var e;a&&"native"===a.mediaType?pe.gSlots[n]=googletag.defineSlot(Je(n),"fluid",n).addService(googletag.pubads()):(e=JSON.parse(JSON.stringify(t.adunit)),pe.gSlots[n]=googletag.defineSlot(Je(n),e.mediaTypes.banner.sizes,n).addService(googletag.pubads()))})),"dfp"==pe.bannerRequestMode&&googletag.cmd.push(function(){vlipb.que.push(function(){"on"===pe.useAmazonUAM&&apstag.setDisplayBids([n]),pe.gSlots[n]&&(pe.gSlots[n].setTargeting("hb_width",t.w),pe.gSlots[n].setTargeting("hb_height",t.h),a&&-1!==pe.noneSafeFrameBidder.indexOf(a.bidderCode)?pe.gSlots[n].setTargeting("vli_sf","0"):pe.gSlots[n].setTargeting("vli_sf","1"),pe.refererDomainID?pe.gSlots[n].setTargeting("vli_ref",pe.refererDomainID+"_"+pe.domainID):pe.gSlots[n].setTargeting("vli_adslot",t.zid),pe.gSlots[n].setTargeting("vli_adtype","display")),pe.disableDefaultDfpFloorPrice.indexOf(pe.domainID)?a&&I(a,pe.gSlots[n]):(a&&a.cpm>=pe.dfpFloorPrice&&I(a,pe.gSlots[n]),(!a||a.cpm<pe.dfpFloorPrice)&&(s.cpm=pe.dfpFloorPrice)),googletag.pubads().refresh([pe.gSlots[n]])})}),pe.adRenderAction.bidWon[n]=function(){a&&($(s),pe.VIdebug&&"dfp"===pe.bannerRequestMode&&de(n,"creativeId",a.creativeId))},"postbid"==pe.bannerRequestMode||"postbid_dfp"==pe.bannerRequestMode)if(a)if(a.cpm>=e){switch(o.setAttribute("isset-ad","1"),o.setAttribute("content-type","ad"),o.style.cssText="width:"+(a.width?a.width:t.w)+"px!important;height:"+(a.height?a.height:t.h)+"px!important;margin:0 auto!important;position:relative!important;",a.mediaType){case"banner":-1===pe.noneSafeFrameBidder.indexOf(a.bidderCode)&&"on"===pe.safeFrame?(o.innerHTML='<div id="vli_sf_'+n+'"></div>',k("vli_sf_"+n,{width:a.width?a.width:t.w,height:a.height?a.height:t.h},a.ad)):vlipb.renderAd($e(o,n),a.adId);break;case"native":var l={adUnitCode:n,adId:a.adId,pubUrl:window.location.href,width:t.w,height:t.h};C($e(o,n),l)}pe.VIdebug&&de(n,"creativeId",a.creativeId)}else i=!0;else i=!0;1==i&&(s.type="passback","postbid"==pe.bannerRequestMode&&Ke(n,s),"postbid_dfp"==pe.bannerRequestMode&&googletag.cmd.push(function(){vlipb.que.push(function(){"on"===pe.useAmazonUAM&&apstag.setDisplayBids([n]),pe.refererDomainID?pe.gSlots[n].setTargeting("vli_ref",pe.refererDomainID+"_"+pe.domainID):pe.gSlots[n].setTargeting("vli_adslot",t.zid),pe.gSlots[n].setTargeting("vli_adtype","display"),pe.gSlots[n].setTargeting("vli_sf","1"),pe.disableDefaultDfpFloorPrice.indexOf(pe.domainID)&&(s.cpm=pe.dfpFloorPrice),googletag.pubads().refresh([pe.gSlots[n]])})})),("dfp"==pe.bannerRequestMode||"postbid_dfp"==pe.bannerRequestMode&&1==i)&&(pe.adRenderAction.pb[n]=function(e){if(e&&("hb"==(s.type=e)&&(s.bidder="ignore",$(s),pe.VIdebug&&de(n,"creativeId","unknown from Adx")),"passback"===e))if(o.getAttribute("isset-ad")){var t=o.getElementsByTagName("div");if(t)for(var i=0;i<t.length;i++)t[i].id&&-1!==t[i].id.indexOf("google_ads_iframe")&&t[i].parentNode.removeChild(t[i])}else Ke(n,s)})}})},qe={init:ut,render_container:function(){var e=document.createElement("style");e.innerText=".vi-instream--container{position: relative;display: inline-block;}",e.innerText+=".vi-instream--play-handler{cursor:pointer;z-index:9997;position: absolute;background-color: rgba(0, 0, 0, 0.3); top: 0;left: 0; width: 100%;height: 100%;}",e.innerText+=".vi-instream--play-button{width: 100px; height: 100px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); fill:#282828;}",e.innerText+=".vi-instream--play-button g{fill: #fff;}",document.head.appendChild(e);for(var t=document.getElementsByClassName("vi-instream--container"),i=0;i<t.length;i++){var n=t[i].getAttribute("data-ad-slot");n&&t[i].insertAdjacentHTML("afterbegin",'<div class="vi-instream--play-handler" data-ad-slot="'+n+'"><svg class="vi-instream--play-button" enable-background="new 0 0 58 58" version="1.1" viewBox="0 0 58 58" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><circle class="active-path" cx="29" cy="29" r="29" data-old_color="#EBBA16" data-original="#EBBA16"/><g><polygon class="" points="44 29 22 44 22 29.273 22 14" data-old_color="#FFFFFF" data-original="#FFFFFF"/><path class="" d="M22,45c-0.16,0-0.321-0.038-0.467-0.116C21.205,44.711,21,44.371,21,44V14   c0-0.371,0.205-0.711,0.533-0.884c0.328-0.174,0.724-0.15,1.031,0.058l22,15C44.836,28.36,45,28.669,45,29s-0.164,0.64-0.437,0.826   l-22,15C22.394,44.941,22.197,45,22,45z M23,15.893v26.215L42.225,29L23,15.893z" data-old_color="#FFFFFF" data-original="#FFFFFF"/></g></svg></div><div class="'+pe.adClass+'" data-ad-slot="'+n+'"></div>')}for(var o=document.getElementsByClassName("vi-instream--play-handler"),i=0;i<o.length;i++)o[i].addEventListener("click",function(){var e=this.getAttribute("data-ad-slot");ut(e),this.style.display="none"})}},He=function(){function h(e){var t=e<=200?2:e<=300?3:e<=400?3:e<=600?4:5,i=parseInt(e/t)-4;return{viContentHeight:parseInt(9*i/16),itemPerPage:t}}function m(t){var i=null;return x.forEach(function(e){e.id===t&&(i=e)}),i}function g(e){var t,i,n=y.getElementsByClassName("vi__featured")[0];return"vi__slider"===A&&("next"===e?null!==n.parentNode.nextSibling&&(i=n.parentNode.nextSibling.getElementsByClassName("vi__post")[0]):null!==n.parentNode.previousSibling&&(i=n.parentNode.previousSibling.getElementsByClassName("vi__post")[0])),n.classList.remove("vi__featured"),i||(t=y.getElementsByClassName("vi__flx")[0].getElementsByClassName("vi__post"),i="next"===e?t[0]:t[t.length-1]),i.classList.add("vi__featured"),i}function u(){900<(I=O.parentNode.offsetWidth)&&(I=900),I<300&&(I=300),T=_.floorPrice?_.floorPrice:0,S=I/16*9,C=h(I).viContentHeight,!0===b.hidePlaylist&&(C=0);var e="margin:0 auto!important;width:"+I+"px!important;max-width:"+I+"px!important;position:relative!important;";(k=S+C+7)&&(e+="height:"+k+"px!important;"),b.hideStaticVideo?e+="max-height:0px!important;overflow:hidden!important;":e+="max-height:"+k+"px!important;",O.style.cssText=e,E=h(I).itemPerPage,A="vi__slider",v=document.getElementById(f);var t=function(){if(!x)return"";var n=!0===b.random?Math.floor(Math.random()*x.length):0,e=x[n],o='<div class="vi__post {0}" data-id="{1}">';o+='<a href="javascript:void(0);">',o+='<div class="vi__thumbctn">',o+='<div class="vi__thumb" style="background-image:url(\'{3}\')"></div>',o+="</div>",o+='<div class="vi__mask">',o+='<svg enable-background="new 0 0 60 60" version="1.1" viewBox="0 0 60 60" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><path class="active-path" d="M45.563,29.174l-22-15c-0.307-0.208-0.703-0.231-1.031-0.058C22.205,14.289,22,14.629,22,15v30   c0,0.371,0.205,0.711,0.533,0.884C22.679,45.962,22.84,46,23,46c0.197,0,0.394-0.059,0.563-0.174l22-15   C45.836,30.64,46,30.331,46,30S45.836,29.36,45.563,29.174z M24,43.107V16.893L43.225,30L24,43.107z" data-old_color="#000000" data-original="#000000"/><path class="active-path" d="M30,0C13.458,0,0,13.458,0,30s13.458,30,30,30s30-13.458,30-30S46.542,0,30,0z M30,58C14.561,58,2,45.439,2,30   S14.561,2,30,2s28,12.561,28,28S45.439,58,30,58z" data-old_color="#000000" data-original="#000000"/></g></svg>',o+="</div>",o+='<div class="vi__title"><span>{2}</span></div>',o+="</a>",o+="</div>";var r=[];r.push(String.vliformat(o,"vi__featured",e.id,e.title,e.thumb.startsWith("http")?e.thumb:"//assets."+pe.rootDomain+e.thumb)),x.forEach(function(e,t){var i;t!==n&&(i=String.vliformat(o,"",e.id,e.title,e.thumb.startsWith("http")?e.thumb:"//assets."+pe.rootDomain+e.thumb),r.push(i))});var t="";!0===b.hidePlaylist&&(t+=".vi__slider #vi__content{display: none;}.player-fullscreen .vi__slider #vi__content{display: block;}"),t+=".vi__slider #vi__top{position: relative;}.vi__slider #vi__content{width: calc(100% + 2px);height:"+C+"px;position:relative; padding-top: 7px;}.vi__slider .vi__flx{height:100%;}.vi__slider .vi__post{margin-right: 7px;height:100%;}.vi__slider .vi__post a{position: relative;display:block;}.vi__slider .vi__thumbctn{height:100%;}.vi__slider .vi__title{position: absolute; top: 1px; left: 3px; width: calc(100% - 6px); text-align: center; display: none;} .vi__slider #vi__content .vi__flx:hover .vi__title{display:block;}.vi__slider #vi__content .vi__flx:hover .vi__mask{background-color: rgba(0, 0, 0, 0.4); -webkit-transition: background-color .6s linear; -ms-transition: background-color .6s linear; transition: background-color .6s linear;}.vi__slider .vi__title span{color: #fff; display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%;}.vi__slider .vi__featured .vi__title span{display:none;}.vi__slider .vi__mask{width: 100%; height: 100%; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background:none;}.vi__slider .vi__mask:hover>svg{display:block}.vi__slider .vi__featured .vi__mask>svg{display: none;}.vi__slider .vi__featured .vi__mask{background-color: rgba(0, 0, 0, 0.4);}.vi__slider .vi__mask>svg{display: none;width: 30px; height: 30px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -28%);}.vi__slider .vi__featured a:after{content: '"+b.language.nowPlaying+"'; position: absolute; white-space: pre-wrap; color: #ffffff; text-transform: uppercase; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; font-size: 12px;}.vi__slider .siema_prev, .vi__slider .siema_next{width:10px;height:16px;top:50%;position:absolute;transform:translateY(-50%);cursor:pointer;padding:5px;}.vi__slider .siema_prev:hover, .vi__slider .siema_next:hover{background: rgba(0, 0, 0, 0.5);}.vi__slider .siema_prev{left:7px;}.vi__slider .siema_next{right:10px;}",t+=".player-fixed #vi__content{display:none;}",t+="#vi__disable_fixed{display:none;width: 105px; border-bottom: 20px solid rgba(0, 0, 0, 0.7); border-right: 10px solid transparent; position: relative;}#vi__disable_fixed>div{position:absolute;top:0;left:0;height:16px;padding: 2px;}#vi__disable_fixed_icon{padding: 3px;display: block; float: left;cursor: pointer;}",t+="* { margin: 0; padding: 0; font-family: Source Sans Pro, sans-serif } #vi__wrapper img { width: 100%; height: auto } #vi__adcontainer { width: 100%; height: "+S+"px; position: relative; overflow: hidden } #vi__adplayer { width: 100%; height: 100%; position: relative } .vi__thumb { width: 100%; height: 100%; background-position: center; background-size: cover; background-repeat: no-repeat; position: relative }",t+="#vi__toggle_fullscreen{display:none; flex-direction: row-reverse;}#vi__toggle_fullscreen_btn{width: 105px; border-bottom: 20px solid rgba(0, 0, 0, 0.7); border-left: 10px solid transparent; position: relative;}#vi__toggle_fullscreen_btn div{position:absolute;top:0;left:0;height:16px;display: flex; padding: 2px;}#vi__toggle_fullscreen_icon{cursor:pointer;}",!0===b.showCloseVideoDiscoverButton&&(t+="#vi__hide_videodiscover{z-index:99999999;position:absolute;left:10px;top:10px;width:16px;height:16px;cursor:pointer;border: 1px solid rgba(255, 255, 255, 0.6);background-color: #ccc;}#vi__hide_videodiscover:after,#vi__hide_videodiscover:before{position: absolute; right: 7px; content: ' '; height: 16px; width: 2px; background-color: #fff;}#vi__hide_videodiscover:before{-webkit-transform:rotate(45deg);transform:rotate(45deg);}#vi__hide_videodiscover:after{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);}");var i='<div class="siema_prev" onclick="_siema.prev('+E+');"><svg version="1.1" viewBox="0 0 9 16" xmlns="http://www.w3.org/2000/svg"> <g fill="none" fill-rule="evenodd"> <g transform="translate(-571 -831)" fill="#fff"> <g transform="translate(560 334)"> <g transform="translate(-347 -131)"> <g transform="translate(294 582)"> <g transform="translate(64 45)"> <path d="m0.44295 10.062c-0.28533-0.284-0.44295-0.659-0.44295-1.061 0-0.401 0.15763-0.778 0.44295-1.06l6.8329-6.648c0.39507-0.39 1.0336-0.39 1.4286 0 0.39407 0.391 0.39407 1.024 0 1.414l-6.4767 6.294 6.4767 6.294c0.39407 0.39 0.39407 1.023 0 1.414-0.39507 0.391-1.0336 0.391-1.4286 0l-6.8329-6.647z"/> </g> </g> </g> </g> </g> </g> </svg></div>';i+='<div class="siema_next" onclick="_siema.next('+E+')"><svg version="1.1" viewBox="0 0 10 16" xmlns="http://www.w3.org/2000/svg"> <g fill="none" fill-rule="evenodd"> <g transform="translate(-1335 -830)" fill="#fff"> <g transform="translate(560 334)"> <g transform="translate(-347 -131)"> <g transform="translate(294 582)"> <g transform="translate(64 45)"> <path transform="translate(769 8.0009) scale(-1 1) translate(-769 -8.0009)" d="m764.5 8.0005c0-0.401 0.15763-0.778 0.44295-1.06l6.8329-6.648c0.39507-0.39 1.0336-0.39 1.4286 0 0.39407 0.391 0.39407 1.024 0 1.414l-6.4767 6.294 6.4767 6.294c0.39407 0.39 0.39407 1.023 0 1.414-0.39507 0.391-1.0336 0.391-1.4286 0l-6.8329-6.647c-0.28533-0.284-0.44295-0.659-0.44295-1.061z"/> </g> </g> </g> </g> </g> </g> </svg></div>';var s="<style>{0}</style>";!0===b.showCloseVideoDiscoverButton&&(s+='<div id="vi__hide_videodiscover" title="'+b.language.hideVideoDiscovery+'"></div>'),s+='<div id="vi__toggle_fullscreen">',s+='<div id="vi__toggle_fullscreen_btn" '+("off"==pe.enableIcon?'style="width: 20px;"':"")+">",s+="<div>","on"==pe.enableIcon&&(s+='<a href="//'+pe.brandHomepage+"/?ref="+window.location.hostname+'" target="_blank" rel="nofollow"><img style="width: 80px!important;" src="//'+pe.brandLogo+'"/></a>'),s+='<span style="padding:1px;'+("on"==pe.enableIcon?"margin-left:5px;":"")+'"><span id="vi__toggle_fullscreen_icon" title="'+b.language.collapse+'"><svg width="14px" height="14px" enable-background="new 0 0 385.331 385.331" version="1.1" viewBox="0 0 385.33 385.33" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <g fill="#fff"> <path class="active-path" d="m264.94 156.66h108.27c6.833 0 11.934-5.39 11.934-12.211 0-6.833-5.101-11.85-11.934-11.838h-96.242v-96.435c0-6.833-5.197-12.03-12.03-12.03s-12.03 5.197-12.03 12.03v108.27c0 0.036 0.012 0.06 0.012 0.084 0 0.036-0.012 0.06-0.012 0.096-1e-3 6.713 5.316 12.043 12.029 12.031z" data-old_color="#ffffff" data-original="#000000"/> <path class="active-path" d="m120.29 24.247c-6.821 0-11.838 5.113-11.838 11.934v96.242h-96.423c-6.833 0-12.03 5.197-12.03 12.03s5.197 12.03 12.03 12.03h108.27c0.036 0 0.06-0.012 0.084-0.012 0.036 0 0.06 0.012 0.096 0.012 6.713 0 12.03-5.317 12.03-12.03v-108.27c1e-3 -6.821-5.389-11.922-12.222-11.934z" data-old_color="#ffffff" data-original="#000000"/> <path class="active-path" d="m120.39 228.67h-108.27c-6.833 0.012-11.934 5.39-11.934 12.223s5.101 11.85 11.934 11.838h96.242v96.423c0 6.833 5.197 12.03 12.03 12.03s12.03-5.197 12.03-12.03v-108.27c0-0.036-0.012-0.06-0.012-0.084 0-0.036 0.012-0.06 0.012-0.096 1e-3 -6.714-5.317-12.031-12.03-12.031z" data-old_color="#ffffff" data-original="#000000"/> <path class="active-path" d="m373.3 228.67h-108.27c-0.036 0-0.06 0.012-0.084 0.012-0.036 0-0.06-0.012-0.096-0.012-6.713 0-12.03 5.317-12.03 12.03v108.27c0 6.833 5.39 11.922 12.223 11.934 6.821 0.012 11.838-5.101 11.838-11.922v-96.242h96.421c6.833 0 12.03-5.197 12.03-12.03s-5.196-12.031-12.03-12.043z" data-old_color="#ffffff" data-original="#000000"/> </g> </svg></span></span>',s+="</div>",s+="</div>",s+="</div>",s+='<div id="vi__disable_fixed" '+("off"==pe.enableIcon?'style="width: 20px;"':"")+">",s+="<div>",s+='<span id="vi__disable_fixed_icon" title="'+b.language.disableFixedVideo+'">',s+='<span style="display: block; float: left;"><svg width="10px" height="10px" enable-background="new 0 0 612 612" version="1.1" viewBox="0 0 612 612" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <polygon class="active-path" points="612 36.004 576.52 0.603 306 270.61 35.478 0.603 0 36.004 270.52 306.01 0 576 35.478 611.4 306 341.41 576.52 611.4 612 576 341.46 306.01" fill="#fff" data-old_color="#ffffff" data-original="#000000"/> </svg></span>',s+="</span>","on"==pe.enableIcon&&(s+='<a style="display: block; float: left; margin-left: 5px;" href="//'+pe.brandHomepage+"/?ref="+window.location.hostname+'" target="_blank" rel="nofollow"><img style="width: 80px!important;" src="//'+pe.brandLogo+'"/></a>'),s+='<div style="clear: both;"></div>',s+="</div>",s+="</div>",s+='<div id="vi__wrapper" class="'+A+'"><div class="vi__wgcontainer"><div id="vi__top"><div id="vi__adcontainer"> <div id="vi__adplayer"> <iframe id="vi__player" SRC="about:blank" FRAMEBORDER="0" SCROLLING="no" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0" ALLOWTRANSPARENCY="true" style="width:100%;height:100%"> </iframe> </div> <div id="vi__adwrapper"></div> </div></div><div id="vi__content"><div class="vi__flx">{1}</div>'+i+"</div></div></div>";var a='<script>!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Siema",[],t):"object"==typeof exports?exports.Siema=t():e.Siema=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,i){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),l=function(){function e(t){var i=this;if(r(this,e),this.config=e.mergeSettings(t),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something wrong with your selector đŸ˜­");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth+5,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=e.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler"].forEach(function(e){i[e]=i[e].bind(i)}),this.init()}return s(e,[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}},{key:"init",value:function(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}},{key:"buildSliderFrame",value:function(){var e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=e*t+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");var i=document.createDocumentFragment();if(this.config.loop)for(var r=this.innerElements.length-this.perPage;r<this.innerElements.length;r++){var n=this.buildSliderFrameItem(this.innerElements[r].cloneNode(!0));i.appendChild(n)}for(var s=0;s<this.innerElements.length;s++){var l=this.buildSliderFrameItem(this.innerElements[s]);i.appendChild(l)}if(this.config.loop)for(var o=0;o<this.perPage;o++){var a=this.buildSliderFrameItem(this.innerElements[o].cloneNode(!0));i.appendChild(a)}this.sliderFrame.appendChild(i),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(e){var t=document.createElement("div");return t.style.cssFloat=this.config.rtl?"right":"left",t.style.float=this.config.rtl?"right":"left",t.style.width=(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length)+"%",t.appendChild(e),t}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===n(this.config.perPage)){this.perPage=1;for(var e in this.config.perPage)window.innerWidth>=e&&(this.perPage=this.config.perPage[e])}}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();var r=this.currentSlide+this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var r=this.currentSlide-this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,r=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+r+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+r+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,r=e>0&&this.currentSlide-i<0,n=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(r||n)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth+5,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)<Math.abs(this.drag.startX-e.touches[0].pageX)),this.pointerDown&&this.drag.letItGo){e.preventDefault(),this.drag.endX=e.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=t*(this.selectorWidth/this.perPage),r=this.drag.endX-this.drag.startX,n=this.config.rtl?i+r:i-r;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*n+"px, 0, 0)"}}},{key:"mousedownHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)}},{key:"mouseupHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(e){if(e.preventDefault(),this.pointerDown){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=t*(this.selectorWidth/this.perPage),r=this.drag.endX-this.drag.startX,n=this.config.rtl?i+r:i-r;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*n+"px, 0, 0)"}}},{key:"mouseleaveHandler",value:function(e){this.pointerDown&&(this.pointerDown=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(e){this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1}},{key:"remove",value:function(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn\'t exist đŸ˜­");var i=e<this.currentSlide,r=this.currentSlide+this.perPage-1===e;(i||r)&&this.currentSlide--,this.innerElements.splice(e,1),this.buildSliderFrame(),t&&t.call(this)}},{key:"insert",value:function(e,t,i){if(t<0||t>this.innerElements.length+1)throw new Error("Unable to inset it at this index đŸ˜­");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope đŸ˜­");var r=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=r?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var i=document.createDocumentFragment(),r=0;r<this.innerElements.length;r++)i.appendChild(this.innerElements[r]);this.selector.innerHTML="",this.selector.appendChild(i),this.selector.removeAttribute("style")}t&&t.call(this)}}],[{key:"mergeSettings",value:function(e){var t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},i=e;for(var r in i)t[r]=i[r];return t}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}]),e}();t.default=l,e.exports=t.default}])});<\/script>';return s+=a+='<script>var _siema_opts = {selector: ".vi__slider .vi__flx", duration: 200, easing: "ease-out", perPage: '+E+", startIndex: 0, draggable: true, multipleDrag: true, threshold: 20, loop: false, rtl: false, onInit: function(){}, onChange: function(){}, }; var _siema = "+("vi__slider"===A?"new Siema(_siema_opts)":'""')+'; function siema_change_option(opt, value){_siema_opts[opt]=value;}function siema_reinit(){siema_destroy();_siema=new Siema(_siema_opts);}function siema_goto(pos){if(typeof _siema.goTo === "function")_siema.goTo(pos);}function siema_swipe_to_active_slide() { var allPost = document.getElementsByClassName("vi__post"); var index = 0; for (i = 0; i < allPost.length; i++) { if (allPost[i].classList.contains("vi__featured")) { siema_goto(index); } index++; } }function siema_destroy(){if(typeof _siema.destroy === "function"){_siema.destroy(true)}}<\/script>',{html:String.vliformat(s,t,r.join("")),featuredVid:e}}();function r(){L.style.cssText=B+"width: "+I+"px!important;height: "+c+"px!important;",y.body.classList.remove("player-fixed"),y.getElementById("vi__adcontainer").style.height=S+"px",y.getElementById("vi__disable_fixed").style.display="none"}function i(e){a.play({baseDomain:pe.rootDomain,elment:s,videoUrl:e.video_url,title:e.title,link:e.link,poster:e.thumb,volume:P,toggleFullscreen:function(){l()}}),function(e){var t=document.getElementById("ifr_"+f);if(t){var i=t.contentWindow||t.contentDocument,n=0,o=y.getElementsByClassName("vi__post");for(d=0;d<o.length;d++)e===o[d].dataset.id&&i.siema_goto(n),n++}}(e.id)}B="display:block!important;overflow:hidden!important;transform:scale(1)!important;width:"+I+"px!important;z-index: 2147483647!important;height:"+k+"px!important;",O.innerHTML='<iframe id="ifr_'+f+'" SRC="about:blank" FRAMEBORDER="0" SCROLLING="no" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0" ALLOWTRANSPARENCY="true"></iframe>',(L=document.getElementById("ifr_"+f)).style.cssText=B,(y=dt(L)).open(),y.write(t.html),y.close(),pe.VIdebug&&le(f,!0),!0===b.showCloseVideoDiscoverButton&&y.getElementById("vi__hide_videodiscover").addEventListener("click",function(){v.parentNode.removeChild(v),pe.preventRqBid=!0});var n=y.getElementById("vi__player"),s=dt(y.getElementById("vi__player")),a=new We(b),l=function(){var e,t,i,n,o;y.body.classList.contains("player-fullscreen")?(R=!1,document.body.style.overflow="",O.querySelector("#player-fullscreen-overlay").parentNode.removeChild(O.querySelector("#player-fullscreen-overlay")),y.body.classList.remove("player-fullscreen"),L.style.cssText=B,y.getElementById("vi__adcontainer").style.height=t+"px",y.getElementById("vi__content").style.minHeight=C+"px",!(y.getElementById("vi__toggle_fullscreen").style.display="")===b.showCloseVideoDiscoverButton&&(y.getElementById("vi__hide_videodiscover").style.display=""),(o=L.contentWindow||L.contentDocument).siema_change_option("perPage",E),o.siema_reinit(),o.siema_swipe_to_active_slide(),y.getElementsByClassName("siema_prev")[0].setAttribute("onclick","_siema.prev("+E+")"),y.getElementsByClassName("siema_next")[0].setAttribute("onclick","_siema.next("+E+")"),a.onCollapse({elment:s}),observeElementInViewport.isInViewport(v).then(function(e){(e?!0===b.hideStaticVideo?u:p:!0===b.noFixedVideo?p:u)()})):(R=!0,r(),document.body.style.overflow="hidden",y.body.classList.add("player-fullscreen"),O.insertAdjacentHTML("afterbegin",'<div id="player-fullscreen-overlay" style="width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); position: fixed; top: 0; left: 0; z-index: 2147483647;"></div>'),e=window.innerWidth<=900?Math.round(window.innerWidth/100*90):900,t=Math.round(e/16*9),i=h(e).itemPerPage,n=h(e).viContentHeight,L.style.cssText=B+"position:fixed!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;width:"+e+"px!important;height:"+(t+n+26)+"px!important;",y.getElementById("vi__adcontainer").style.height=t+"px",y.getElementById("vi__content").style.minHeight=n+"px",y.getElementById("vi__toggle_fullscreen").style.display="flex",!0===b.showCloseVideoDiscoverButton&&(y.getElementById("vi__hide_videodiscover").style.display="none"),y.getElementById("vi__toggle_fullscreen_icon").addEventListener("click",l,!1),O.querySelector("#player-fullscreen-overlay").addEventListener("click",l,!1),O.querySelector("#player-fullscreen-overlay").addEventListener("touchmove",function(e){e.preventDefault()},!1),o=L.contentWindow||L.contentDocument,y.getElementById("vi__wrapper").classList.add("vi__slider"),y.getElementsByClassName("siema_prev")[0].setAttribute("onclick","_siema.prev("+i+")"),y.getElementsByClassName("siema_next")[0].setAttribute("onclick","_siema.next("+i+")"),o.siema_change_option("perPage",i),o.siema_reinit(),o.siema_swipe_to_active_slide())};w=a.init({baseDomain:pe.rootDomain,playerIframe:s,elment:s.body,videoUrl:t.featuredVid.video_url,title:t.featuredVid.title,link:t.featuredVid.link,poster:t.featuredVid.thumb,volume:P,prev:function(){var e=g("previous"),t=m(e.dataset.id);i(t)},next:function(){var e=g("next"),t=m(e.dataset.id);i(t)},toggleFullscreen:function(){l()}}),ne({divID:"VDContentPlayer",hidden:function(){w&&w.pause()},watching:function(){w&&!F&&M&&H()}});var o=y.getElementsByClassName("vi__post");if(0<o.length)for(var d=0;d<o.length;d++)o[d].addEventListener("click",function(){if(!this.classList.contains("vi__featured")){var e=y.getElementsByClassName("vi__featured");for(d=0;d<e.length;d++)e[d].classList.remove("vi__featured");var t=m(this.dataset.id);this.classList.add("vi__featured"),i(t)}});a.onEvent("ended",function(){var e=g("next"),t=m(e.dataset.id);i(t)}),a.onEvent("volumeChange",function(e){P=e}),ie(function(){var e;_.adunit&&(D=y.getElementById("vi__adwrapper"),(e=_.adunit).bids&&(e.code=f,e.bids=X(e.bids),e.bids=G(e.bids,T),vlipb.removeAdUnit(e.code),vlipb.addAdUnits(e),0<e.bids.length&&(pe.auctionLogs[f]={bidder:j(e.bids),preAuction:""}),D.classList.add("running"),K([f],[],U,"videodiscover"),V++))},200),"function"!=typeof window.IntersectionObserver&&(N=!0,n=L),ee(n,function(){M=!0,setTimeout(function(){q()},200),H()},function(){M=!1,F&&F.pause(),N&&!z?H():w.pause(!1)});var c=L.offsetHeight;v.style.height=c+"px";var p=function(){R||(w&&w.playerIsFixed(!1),r(),F&&F.resize(I,S,"NORMAL"),!0===b.showCloseVideoDiscoverButton&&(y.getElementById("vi__hide_videodiscover").style.display=""))},u=function(){var e,t,i;R||(Z()&&!b.fixedOnMobile&&(pe.preventRqBid=!0),y.body.classList.contains("player-fixed-disabled")||Z()&&!b.fixedOnMobile||(w&&w.playerIsFixed(!0),e=Z()?Math.round(window.innerWidth/100*80):410,t=Z()?Math.round(e/16*9):231,i=B+"position:fixed!important;width:"+e+"px!important;height:"+(t+20)+"px!important;","top right"===b.fixedPosition?i+="top:0!important;right:0!important":"bottom right"===b.fixedPosition?i+="bottom:0!important;right:0!important":"top left"===b.fixedPosition?i+="top:0!important;left:0!important":"bottom left"===b.fixedPosition?i+="bottom:0!important;left:0!important":i+="bottom:0!important;right:0!important",L.style.cssText=i,y.getElementById("vi__adcontainer").style.height=t+"px",!0===b.showCloseVideoDiscoverButton&&(y.getElementById("vi__hide_videodiscover").style.display="none"),y.body.classList.add("player-fixed"),y.getElementById("vi__disable_fixed").style.display="block",F&&F.resize(410,231,"NORMAL"),F&&N&&q(),y.getElementById("vi__disable_fixed_icon").addEventListener("click",function(){b.hideStaticVideo&&(pe.preventRqBid=!0),y.body.classList.add("player-fixed-disabled"),r(),F&&F.pause(),w&&w.pause(!1),z=!0})))};!0===b.noFixedVideo?p():b.hideStaticVideo?u():ee(v,p,u,{threshold:[0]}),W()}function c(){function p(){!_.vid.contents||_.vid.contents.length<0||(x=_.vid.contents,u())}var e;_.feed_url?((e=new XMLHttpRequest).onreadystatechange=function(){4===this.readyState&&(200===this.status&&this.responseXML?function(e){x=[];var t=e.getElementsByTagName("item");if(t.length<=0)p();else{for(var i,n,o,r,s,a,l,d,c=0;c<t.length;c++){t[c].getElementsByTagName("title")[0]&&t[c].getElementsByTagName("thumb")[0]&&t[c].getElementsByTagName("link")[0]&&t[c].getElementsByTagName("video_url")[0]&&(i=t[c].getElementsByTagName("title")[0].childNodes[0].nodeValue,n=t[c].getElementsByTagName("thumb")[0].childNodes[0].nodeValue,o=t[c].getElementsByTagName("link")[0].childNodes[0].nodeValue,r=t[c].getElementsByTagName("video_url")[0].childNodes[0].nodeValue,d=void 0,!1!==(s=!(!(d=r.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/))||11!==d[7].length)&&d[7])?r="/vid/?id="+s+"&t=y":(l=void 0,!1!==(s=!(!(l=r.match(/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/(?:[^\/]*)\/videos\/|album\/(?:\d+)\/video\/|video\/|)(\d+)(?:[a-zA-Z0-9_\-]+)?/i))||!l[1])&&l[1])&&(r="/vid/?id="+s+"&t=v")),a={id:String(c+1),title:i,thumb:n,link:o,video_url:{mp4:r}},x.push(a))}(x.length<=0?p:u)()}}(this.responseXML):p())},e.open("GET","//media."+pe.rootDomain+_.feed_url,!0),e.timeout=2e3,e.ontimeout=function(){p()},e.send()):-1!==JSON.stringify(_.vid.contents).indexOf(".m3u8")?nt("//"+pe.staticDomain+"/plugins/hls.js/hls.min.js",!1,function(){p()},function(){p()}):p()}var f,v,b,y,w,_,x,I,k,S,C,E,A,D,T,L=null,B="",N=!1,z=!1,P=0,M=!1,R=!1,O=null,F=null,V=0,n="dfp"===pe.videoRequestMode||"postbid_dfp"===pe.videoRequestMode?pe.reBidDiscoveryTypeDfp:pe.reBidDiscoveryTypePostbid,t=document.hasFocus(),U=function(e){var t,i,n,o,r=Y(vlipb.getBidResponsesForAdUnitCode(e[0]),e[0]),s=(s=J(r)).filter(function(e){return!("video"===e.mediaType&&e.cpm<T)||(vlipb.markWinningBidAsUsed({adId:e.adId}),!1)});"dfp"===pe.videoRequestMode?(t=null,0<s.length&&(t=s[0],s.splice(0,1)),i="",t&&(i=Q({type:"hb_video",divID:f,zoneID:_.zid,bidder:t.bidderCode,cpm:t.cpm})),n={hb_domain:pe.domainName,section:"blog",anotherKey:"anotherValue",vli_adtype:"discovery",impression_url:pe.statsDomain,token:i},pe.refererDomainID?n.vli_ref=pe.refererDomainID+"_"+pe.domainID:n.vli_adslot="videodiscovery_"+_.zid,o=vlipb.adServers.dfp.buildVideoUrl({adUnit:_.adunit,params:{description_url:window.location.href,iu:pe.dfpVideoSlotID,cust_params:n,output:"vast"}}),t&&vlipb.markWinningBidAsUsed({adId:t.adId}),d({vastUrl:o,vastXml:null},{start:function(){pe.VIdebug&&(ce(f),de(f,"adId",f),de(f,"creativeId",t?t.creativeId:"unknown from Adx"))},error:function(){a(s)}})):a(s)},a=function t(e){var i,n,o,r=0<arguments.length&&void 0!==e?e:[],s={start:function(){},impression:function(){},error:function(){},hidden:function(){},adsVolumeChange:function(){}};0<r.length?(o=r[0],vlipb.markWinningBidAsUsed({adId:o.adId}),r.splice(0,1),i=o.vastUrl||null,n=o.vastXml||null,s.start=function(){pe.VIdebug&&(ce(f),de(f,"adId",f),de(f,"creativeId",o.creativeId))},s.error=function(e){t(r)},s.impression=function(){$({type:"hb_video",divID:f,zoneID:_.zid,bidder:o.bidderCode,cpm:o.cpm})},d({vastUrl:i,vastXml:n},s)):l()},l=function(){var e,t;"postbid_dfp"===pe.videoRequestMode&&(e={hb_domain:pe.domainName,section:"blog",anotherKey:"anotherValue",vli_adtype:"discovery"},pe.refererDomainID?e.vli_ref=pe.refererDomainID+"_"+pe.domainID:e.vli_adslot="videodiscovery_"+_.zid,t=vlipb.adServers.dfp.buildVideoUrl({adUnit:_.adunit,params:{description_url:window.location.href,iu:pe.dfpVideoSlotID,cust_params:e,output:"vast"}}),d({vastUrl:t},{start:function(){pe.VIdebug&&(ce(f),de(f,"adId",f),de(f,"creativeId","unknown from Adx"))},error:function(){i()}})),"dfp"!==pe.videoRequestMode&&"postbid"!==pe.videoRequestMode||i()},i=function(){re(pe.pixelID);var e=[];_.vast&&(e=JSON.parse(JSON.stringify(_.vast)));for(var t=0;t<e.length;t++)e[t].link=ae(e[t].link);o(e)},o=function t(i){var e,n,o={start:function(){},impression:function(){},error:function(){},hidden:function(){},adsVolumeChange:function(){}};0<i.length?(n=i[0],i.splice(0,1),n.link&&n.bidder?(o.start=function(){},o.complete=function(){},o.impression=function(){se(pe.domainName,"OK - "+n.bidder,"ok","ok")},o.error=function(e){se(pe.domainName,"ERROR - "+n.bidder,"er","er"),t(i)},o.hidden=function(){},o.adsVolumeChange=function(e){},e={vastUrl:n.link,vastXml:null},d(e,o)):t(i)):(D.style.cssText="",D.innerHTML="",D.classList.remove("running"),oe(f),r(5),H())},r=function(e){F=null,10<=V||setTimeout(function(){var e;pe.isVisible?(D.classList.add("running"),K([f],[],U,"videodiscover"),V++):ne({divID:e="video_discovery_refresh_queue",hidden:function(){},watching:function(){oe(e),D.classList.add("running"),K([f],[],U,"videodiscover"),V++}})},1e3*e)},d=function(e,t){oe(f);var i=new vlPlayer({baseDomain:pe.rootDomain,brandLogo:pe.brandLogo});F=i.play({type:"instreamBanner",vastUrl:e.vastUrl?e.vastUrl:null,vastXML:e.vastXML?e.vastXML:null,adElement:D,volume:P,volumeControl:!0,start:function(){w.adStart();var e=y.getElementById("vi__player");"msie"===te()&&(e=document.getElementById("ifr_"+f)),!0===b.alwayDisplayAd||"right"===b.alwayDisplayAd?ee(v,s,p,{threshold:[0]}):observeElementInViewport.isInViewport(e,{threshold:[100]}).then(function(e){e||"msie"===te()||F.pause()}),t.start&&t.start()},complete:function(){t.complete&&t.complete()},error:function(e){t.error&&t.error(e)},impression:function(){t.impression&&t.impression()},hidden:function(){!0!==b.alwayDisplayAd&&"right"!==b.alwayDisplayAd||setTimeout(function(){s()},2e4),D.style.cssText="",D.innerHTML="",D.classList.remove("running"),oe(f),r(n),H(),t.hidden&&t.hidden()},adsVolumeChange:function(e){pe.adsVolume=e,P=e,pe.changeAdsVolume=!0,t.adsVolumeChange&&t.adsVolumeChange(e)}}),ne({divID:f,hidden:function(){F&&F.pause()},watching:function(){F&&M&&q()}})},s=function(){var e;R||(F&&F.resize(I,S,"NORMAL"),e=Z()?Math.round(window.innerWidth/100*80):410,L.style.setProperty("transition","all 0.15s ease 0s"),L.style.setProperty("left","-"+e+"px","important"),setTimeout(function(){L.style.cssText=B+"width: "+I+"px!important;height: "+O.clientHeight+"px!important;",y.body.classList.remove("player-fixed"),y.getElementById("vi__adcontainer").style.height=S+"px",y.getElementById("vi__disable_fixed").style.display="none"},150))},p=function(){if(F){if(R)return;if(Z()&&!b.fixedOnMobile&&(pe.preventRqBid=!0),y.body.classList.contains("player-fixed-disabled")||Z()&&!b.fixedOnMobile)return;w&&w.playerIsFixed(!0);var e="right"===b.alwayDisplayAd?"right":"left",t=Z()?Math.round(window.innerWidth/100*80):410,i=Z()?Math.round(t/16*9):231,n=B+"position:fixed!important;width:"+t+"px!important;height:"+(i+20)+"px!important;";n+="bottom:0!important;"+e+":-"+t+"px!important",L.style.cssText=n,setTimeout(function(){L.style.setProperty("transition","all 0.3s ease 0s"),L.style.setProperty(e,0,"important")},300),y.getElementById("vi__adcontainer").style.height=i+"px",!0===b.showCloseVideoDiscoverButton&&(y.getElementById("vi__hide_videodiscover").style.display="none"),y.body.classList.add("player-fixed"),y.getElementById("vi__disable_fixed").style.display="block",F.resize(410,231,"NORMAL"),y.getElementById("vi__disable_fixed_icon").addEventListener("click",function(){b.hideStaticVideo&&(pe.preventRqBid=!0),y.body.classList.add("player-fixed-disabled"),s(),z=!0})}},q=function(){t&&M&&"active"===pe.userState&&F&&F.resume()},H=function(){t&&M&&"active"===pe.userState&&w&&!F&&w.play()},W=function(){y.getElementById("vi__player").contentDocument.addEventListener("click",function(){t=!0,H(),q(),setTimeout(window.focus,10)}),window.addEventListener("focus",function(e){t=!0,H(),q()}),window.addEventListener("blur",function(e){y.hasFocus()?(t=!0,H(),q(),setTimeout(window.focus,10)):(t=!1,w&&w.pause(),F&&F.pause())})};return{init:function(e,t){if(pe.instreamSlot&&pe.instreamSlot[e]&&pe.instreamSlot[e].vid&&pe.instreamSlot[e].vid.contents){var i=document.getElementsByClassName(pe.adClass);if(0!==i.length){for(var n,o,r=0;r<i.length;r++)if(i[r].dataset.adSlot===e&&!i[r].hasChildNodes()){""===(O=i[r]).id&&(O.id=e);break}if(O){if(b=function(){var e={random:!0,type:null,noFixedVideo:!1,fixedOnMobile:!1,fixedPosition:"bottom right",showCloseVideoDiscoverButton:!1,hideStaticVideo:!1,hidePlaylist:!1,alwayDisplayAd:!0,scrollPercent:null,customLogo:{type:"default",hideOnFullFixed:!0,icon:pe.brandIcon,text:pe.brandName,url:"//"+pe.brandHomepage+"/?ref="+window.location.hostname},language:{play:"Play",pause:"Pause",next:"Next",previous:"Previous",nowPlaying:"Now\\aPlaying",enableVolume:"Enable Volume",disableVolume:"Disable Volume",fullscreen:"Fullscreen",collapse:"Collapse",disableFixedVideo:"Disable Fixed Video",hideVideoDiscovery:"Hide Video Discovery"}};if(!window[pe.tagName].videoDiscoverConfig)return e;var t=window[pe.tagName].videoDiscoverConfig,i={};for(var n in window[pe.tagName].videoDiscoverConfig.language&&(i=window[pe.tagName].videoDiscoverConfig.language),e)if("language"===n){for(var o in e[n])void 0===i[o]&&(i[o]=e[n][o]);t[n]=i}else void 0===t[n]&&(t[n]=e[n]);return!1===t.noFixedVideo&&(t.alwayDisplayAd=!1),t}(),t&&(b.alwayDisplayAd=!1),f=e,"banner"===(_=pe.instreamSlot[e]).display_type){var s=!1;if(_.geo_target?"-"===_.geo_target.charAt(0)?-1===_.geo_target.indexOf(pe.VIGeo)&&(s=!0):-1!==_.geo_target.indexOf(pe.VIGeo)&&(s=!0):s=!0,s){var a=!1;for(var l in pe.displaySlot)if(300===pe.displaySlot[l].w&&250===pe.displaySlot[l].h){pe.displaySlot[e]=JSON.parse(JSON.stringify(pe.displaySlot[l])),pe.displaySlot[e].zid=_.zid,a=pe.displaySlot[e].noPublisherPb=!0;break}if(a){var d=document.createElement("div");return d.innerHTML='<div class="adsbyvli" data-ad-slot="'.concat(e,'"></div>'),O.parentNode.insertBefore(d,O.nextSibling),O.remove(),void Ve(e)}}}!0===b.hideStaticVideo&&!0===b.noFixedVideo||(b.hideStaticVideo&&"number"==typeof b.scrollPercent&&0<=b.scrollPercent&&b.scrollPercent<=100?(n=Math.round(document.body.clientHeight/100*b.scrollPercent),o=!1,document.body.scrollTop>n||document.documentElement.scrollTop>n?(c(),o=!0):window.onscroll=function(){o||(document.body.scrollTop>n||document.documentElement.scrollTop>n)&&(c(),o=!0)}):c())}}}}}},We=function(s){var n,o=["s.vlicdn5.com","s.vlicdn6.com"],f={},v={},a={volumeChange:function(){}},b=!1,y=!1,r='<svg enable-background="new 0 0 232.153 232.153" version="1.1" viewBox="0 0 232.15 232.15" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="m203.79 99.628-154.48-97.334c-4.567-2.719-10.238-2.266-14.521-2.266-17.132 0-17.056 13.227-17.056 16.578v198.94c0 2.833-0.075 16.579 17.056 16.579 4.283 0 9.955 0.451 14.521-2.267l154.48-97.333c12.68-7.545 10.489-16.449 10.489-16.449s2.192-8.904-10.488-16.448z" clip-rule="evenodd" fill="#ddd" fill-rule="evenodd"/></svg>',l='<svg width="18px" height="18px" enable-background="new 0 0 124.625 124.625" version="1.1" viewBox="0 0 124.62 124.62" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <g fill="#ddd"> <path d="m6 92.404h23.1l25.6 19.3c4 3 9.601 0.2 9.601-4.8v-89.2c0-4.9-5.701-7.8-9.601-4.8l-25.6 19.3h-23.1c-3.3 0-6 2.7-6 6v48.301c0 3.199 2.7 5.899 6 5.899z"/> <path d="m122.4 40.604c-2.7-2.7-7.2-2.7-9.9 0l-11.8 11.8-11.8-11.8c-2.7-2.7-7.2-2.7-9.9 0-2.699 2.7-2.699 7.2 0 9.9l11.801 11.8-11.801 11.8c-2.699 2.7-2.699 7.2 0 9.9 1.4 1.399 3.2 2.1 5 2.1 1.801 0 3.6-0.7 5-2.1l11.801-11.801 11.799 11.801c1.4 1.399 3.201 2.1 5 2.1 1.801 0 3.601-0.7 5-2.1 2.701-2.7 2.701-7.2 0-9.9l-12-11.8 11.801-11.8c2.699-2.7 2.699-7.2-1e-3 -9.9z"/></g></svg>',d='<svg width="18px" height="18px" enable-background="new 0 0 115.3 115.3" version="1.1" viewBox="0 0 115.3 115.3" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <g fill="#ddd"> <path d="m47.9 14.306-21.9 16.4h-20c-3.3 0-6 2.7-6 6v41.8c0 3.301 2.7 6 6 6h20l21.9 16.4c4 3 9.6 0.2 9.6-4.8v-77c0-5-5.7-7.8-9.6-4.8z"/> <path d="m77.3 24.106c-2.7-2.7-7.2-2.7-9.899 0-2.7 2.7-2.7 7.2 0 9.9 13 13 13 34.101 0 47.101-2.7 2.7-2.7 7.2 0 9.899 1.399 1.4 3.199 2 4.899 2s3.601-0.699 4.9-2.1c18.6-18.3 18.6-48.3 0.1-66.8z"/> <path d="m85.1 8.406c-2.699 2.7-2.699 7.2 0 9.9 10.5 10.5 16.301 24.4 16.301 39.3s-5.801 28.8-16.301 39.3c-2.699 2.7-2.699 7.2 0 9.9 1.4 1.399 3.2 2.1 4.9 2.1 1.8 0 3.6-0.7 4.9-2 13.1-13.1 20.399-30.6 20.399-49.2s-7.2-36-20.399-49.2c-2.6-2.8-7-2.8-9.8-0.1z"/></g></svg>',i='<svg class="" width="18px" height="18px" enable-background="new 0 0 384.97 384.97" version="1.1" viewBox="0 0 384.97 384.97" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <g fill="#ddd"> <path class="active-path" d="m384.97 12.03c0-6.713-5.317-12.03-12.03-12.03h-108.09c-6.833 0-11.922 5.39-11.934 12.223 0 6.821 5.101 11.838 11.934 11.838h96.062l-0.193 96.519c0 6.833 5.197 12.03 12.03 12.03 6.833-0.012 12.03-5.197 12.03-12.03l0.193-108.37c0-0.036-0.012-0.06-0.012-0.084 1e-3 -0.037 0.013-0.061 0.013-0.097z" data-old_color="#ddd" data-original="#000000"/> <path class="active-path" d="M120.496,0H12.403c-0.036,0-0.06,0.012-0.096,0.012C12.283,0.012,12.247,0,12.223,0C5.51,0,0.192,5.317,0.192,12.03 L0,120.399c0,6.833,5.39,11.934,12.223,11.934c6.821,0,11.838-5.101,11.838-11.934l0.192-96.339h96.242 c6.833,0,12.03-5.197,12.03-12.03C132.514,5.197,127.317,0,120.496,0z" data-old_color="#ddd" data-original="#000000"/> <path class="active-path" d="m120.12 360.91h-96.062v-96.242c0-6.833-5.197-12.03-12.03-12.03s-12.031 5.196-12.031 12.03v108.09c0 0.036 0.012 0.06 0.012 0.084 0 0.036-0.012 0.06-0.012 0.096 0 6.713 5.317 12.03 12.03 12.03h108.09c6.833 0 11.922-5.39 11.934-12.223 1e-3 -6.82-5.1-11.837-11.933-11.837z" data-old_color="#ddd" data-original="#000000"/> <path class="active-path" d="m372.75 252.91c-6.833 0-11.85 5.101-11.838 11.934v96.062h-96.242c-6.833 0-12.03 5.197-12.03 12.03s5.197 12.03 12.03 12.03h108.09c0.036 0 0.06-0.012 0.084-0.012 0.036-0.012 0.06 0.012 0.096 0.012 6.713 0 12.03-5.317 12.03-12.03v-108.09c1e-3 -6.833-5.389-11.934-12.222-11.934z" data-old_color="#ddd" data-original="#000000"/></g></svg>',w=function(e){f.baseDomain=e.baseDomain?e.baseDomain:"",f.playerIframe=e.playerIframe?e.playerIframe:"",f.elment=e.elment?e.elment:"",f.videoUrl=e.videoUrl?e.videoUrl:"",f.poster=e.poster?e.poster:"",f.title=e.title?e.title:"",f.link=e.link?e.link:"#",f.next=e.next?e.next:function(){},f.prev=e.prev?e.prev:function(){},f.volume=e.volume?e.volume:0,f.toggleFullscreen=e.toggleFullscreen?e.toggleFullscreen:function(){}},_=function(e){var t,i;e&&(e.innerHTML="",f.videoUrl.m3u8?(t=u(f.videoUrl.m3u8)?f.videoUrl.m3u8:"//"+o[Math.floor(Math.random()*o.length)]+f.videoUrl.m3u8,Hls.isSupported()?((n=new Hls).loadSource(t),n.attachMedia(e),n.on(Hls.Events.MANIFEST_PARSED,function(){e.play()})):e.canPlayType("application/vnd.apple.mpegurl")&&(e.src=t,e.addEventListener("loadedmetadata",function(){e.play()}))):(n&&n.detachMedia(),f.videoUrl.mp4&&((i=document.createElement("source")).src=u(f.videoUrl.mp4)?f.videoUrl.mp4:"//media."+f.baseDomain+f.videoUrl.mp4,i.type="video/mp4",e.appendChild(i)),f.videoUrl.ogg&&((i=document.createElement("source")).src=u(f.videoUrl.ogg)?f.videoUrl.ogg:"//media."+f.baseDomain+f.videoUrl.ogg,i.type="video/ogg",e.appendChild(i))))},x=function(e,t){e.oncanplay=function(){t.classList.remove("vi__loading")},e.onwaiting=function(){t.classList.add("vi__loading")},e.onended=function(){a.ended()}},I=function(e){e.setAttribute("controls","controls")},k=function(e,t){var i,n;t.classList.contains("is-playing")&&(t.classList.remove("is-playing"),i=e,n=t,Z()?setTimeout(function(){i.paused||n.classList.add("is-playing")},2e3):n.classList.add("is-playing"))},S=function(e,t){e[e.paused?"play":"pause"](),e.paused?t.classList.remove("is-playing"):t.classList.add("is-playing"),y=!!e.paused},C=function(e,t){var i=e.paused?r:'<svg enable-background="new 0 0 232.679 232.679" version="1.1" viewBox="0 0 232.68 232.68" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M80.543,0H35.797c-9.885,0-17.898,8.014-17.898,17.898v196.883 c0,9.885,8.013,17.898,17.898,17.898h44.746c9.885,0,17.898-8.013,17.898-17.898V17.898C98.44,8.014,90.427,0,80.543,0z M196.882,0 h-44.746c-9.886,0-17.899,8.014-17.899,17.898v196.883c0,9.885,8.013,17.898,17.899,17.898h44.746 c9.885,0,17.898-8.013,17.898-17.898V17.898C214.781,8.014,206.767,0,196.882,0z" clip-rule="evenodd" fill="#ddd" fill-rule="evenodd"/></svg>',n=e.paused?s.language.play:s.language.pause;Array.prototype.slice.call(t,0).forEach(function(e){return e.title=n,e.innerHTML=i})},E=function(e,t,i){var n=e.volume,o=d,r=s.language.disableVolume;i?o=0<n?(r=s.language.disableVolume,d):(r=s.language.enableVolume,l):(0<n?(n=0,o=l,r=s.language.enableVolume):(n=1,r=s.language.disableVolume,o=d),pe.changeAdsVolume=!1),1==n&&!0===e.muted&&(e.muted=!1),e.volume=n,t.title=r,t.innerHTML=o,a.volumeChange(n)},A=function(e,t,i,n){var o=e.duration;isNaN(o)&&(o=0);var r=e.currentTime;isNaN(r)&&(r=0);var s=r/o*100;t.style.flexBasis=s+"%";var a=parseInt(r%60),l=parseInt(r/60%60);i.innerHTML=(l<10?"0":"")+l+":"+(a<10?"0":"")+a;var d=parseInt(o%60),c=parseInt(o/60%60);n.innerHTML=(c<10?"0":"")+c+":"+(d<10?"0":"")+d},D=function(e,t,i){var n=e.offsetX/i.offsetWidth*t.duration;t.currentTime=n},T=function(){return f.playerIframe.open(),f.playerIframe.write("<style>"+e()+'</style><div class="vi__player '+(Z()?"":"vi__pc")+' vi__loading"><video preload="auto" autoplay playsinline muted style="background: url('+(f.poster.startsWith("http")?f.poster:"//assets."+f.baseDomain+f.poster)+') 0px 0px / cover no-repeat transparent;"></video></div>'),f.playerIframe.close(),f.playerIframe.body.querySelector(".vi__player")},L=function(e){var t=[];return t.push('<div class="'+e+'__control vi_control_overlay"></div>'),t.push('<div class="'+e+'__control vi__control__top">'),t.push('<div id="vi__video_title"><a href="'+f.link+'" target="_blank" title="'+f.title+'"><span>'+f.title+'</span> <span><svg style="width:14px; height:14px; transform: scaleX(-1);" xmlns="http://www.w3.org/2000/svg" viewBox="-22 0 512 512.00667"><path fill="#fff" d="M422.188 98.813h-44.91a8.986 8.986 0 0 0-8.985 8.984c0 4.957 4.023 8.98 8.984 8.98h44.91c14.856 0 26.95 12.09 26.95 26.95v323.367c0 14.86-12.094 26.949-26.95 26.949H98.82c-14.86 0-26.949-12.09-26.949-26.95V251.517c0-4.957-4.023-8.985-8.98-8.985-4.961 0-8.985 4.028-8.985 8.985v215.578c0 24.765 20.149 44.914 44.914 44.914h323.368c24.765 0 44.914-20.149 44.914-44.914V143.727c0-24.766-20.149-44.914-44.914-44.914zm0 0"></path><path fill="#fff" d="M156.566 250.645a8.971 8.971 0 0 0 5.121-8.114v-53.894h8.985c108.531 0 156.437 53.07 198.539 138.699a8.974 8.974 0 0 0 10.094 4.789 8.98 8.98 0 0 0 6.945-8.75c0-228.938-103.613-260.492-215.578-260.492h-8.984V8.988a8.979 8.979 0 0 0-5.122-8.11 8.939 8.939 0 0 0-9.52 1.142L3.329 118.79c-2.101 1.698-3.324 4.269-3.324 6.972s1.223 5.261 3.324 6.968l143.719 116.774a8.942 8.942 0 0 0 9.52 1.14zm0 0"></path></svg></span></a></div>'),t.push("</div>"),("default"===s.customLogo.type&&"on"==pe.enableIcon||"custom"===s.customLogo.type)&&(t.push('<div class="vi__custom_logo">'),t.push('<a href="'+s.customLogo.url+'" target="_blank">'),t.push('<span class="vi__svg_content">'),t.push('<img src="//'+s.customLogo.icon+'"/>'),t.push("</span>"),t.push('<span class="vi__text_content">'+s.customLogo.text+"</span>"),t.push("</a>"),t.push("</div>")),t.push('<div class="lds-dual-ring"></div>'),t.push('<div class="'+e+'__control vi__control__middle">'),t.push('<div class="vi__middle_button">'),t.push('<button class="vi__button_prev" id="vi__prepost" title="'+s.language.previous+'"><svg enable-background="new 0 0 42 42" version="1.1" viewBox="0 0 42 42" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M35.965,0.114c-0.329-0.171-0.726-0.148-1.033,0.063L7.5,19.095V1c0-0.553-0.448-1-1-1s-1,0.447-1,1v40c0,0.553,0.448,1,1,1 s1-0.447,1-1V22.905l27.432,18.919C35.103,41.94,35.301,42,35.5,42c0.159,0,0.319-0.038,0.465-0.114 C36.294,41.713,36.5,41.372,36.5,41V1C36.5,0.628,36.294,0.287,35.965,0.114z" fill="#ddd"/></svg></button>'),t.push('<button class="vi_button_play_pause toggle big" title="'+s.language.play+'">'+r+"</button>"),t.push('<button class="vi__button_next" id="vi__nextpost" title="'+s.language.next+'"><svg enable-background="new 0 0 42 42" version="1.1" viewBox="0 0 42 42" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"> <path d="M35.5,0c-0.552,0-1,0.447-1,1v18.095L7.068,0.177C6.762-0.034,6.364-0.057,6.035,0.114C5.706,0.287,5.5,0.628,5.5,1v40 c0,0.372,0.206,0.713,0.535,0.886C6.181,41.962,6.341,42,6.5,42c0.199,0,0.397-0.06,0.568-0.177L34.5,22.905V41c0,0.553,0.448,1,1,1 s1-0.447,1-1V1C36.5,0.447,36.052,0,35.5,0z" fill="#ddd"/></svg></button>'),t.push("</div>"),t.push("</div>"),t.push('<div class="'+e+'__control vi__control__bottom">'),t.push('<div class="progress"><div class="progress__filled"></div></div>'),t.push('<div style="float: right;">'),t.push('<button class="'+e+'__button fullscreen" title="'+s.language.fullscreen+'">'+i+"</button>"),t.push('<button class="'+e+'__button volume" title="'+(0===f.volume?s.language.enableVolume:s.language.disableVolume)+'">'+(0===f.volume?l:d)+"</button>"),t.push("</div>"),t.push('<div style="float: left;">'),t.push('<span class="vi__time vi__current_time">00:00</span>'),t.push('<span class="vi__time vi__slash">/</span>'),t.push('<span class="vi__time vi__duration">00:00</span>'),t.push("</div>"),t.push("</div>"),t.join("")},B=function(e){return void 0!==e&&""!=e?e:"default"},N=function(e,t){if(1==t)e.classList.add("vi__overlay");else{if(2!=t)return;e.classList.add("vi__overlay--2")}},z=function(e,t){var i;void 0!==t&&""!=t&&(i=e.querySelectorAll("button"),e.querySelector(".progress__filled").style.background=t,i.forEach(function(e){return e.style.color=t}))},P=function(e,t){e.classList.contains("vi__fullscreen")?(e.classList.remove("vi__fullscreen"),t.innerHTML=i,t.style.display="block"):(e.classList.add("vi__fullscreen"),t.innerHTML='<svg width="18px" height="18px" viewBox="0 0 390 390.78" xmlns="http://www.w3.org/2000/svg"> <path d="m271.77 42.957c-0.074219-2.125-0.99219-4.1328-2.5469-5.5781-1.5586-1.4492-3.6289-2.2148-5.7539-2.1367l-37.574 1.4062c-4.4141 0.16797-7.8555 3.875-7.6953 8.2891l4.2383 116.12c0.15625 4.1875 3.5156 7.5469 7.7031 7.6992l116.11 4.2305h0.30078c4.3008-0.003906 7.8281-3.4023 7.9883-7.6992l1.418-37.57c0.082031-2.1211-0.6875-4.1914-2.1328-5.75-1.4453-1.5547-3.4531-2.4727-5.5781-2.5469l-37.016-1.3164 77.578-77.578c3.125-3.125 3.125-8.1875 0-11.312l-26.867-26.871c-3.125-3.125-8.1914-3.125-11.316 0l-77.57 77.57z" fill="#ddd"/> <path d="m2.7344 361.57 26.871 26.871c3.125 3.125 8.1914 3.125 11.312 0l77.566-77.562 1.2734 36.934c0.074219 2.125 0.99219 4.1367 2.5508 5.582 1.5547 1.4492 3.625 2.2188 5.75 2.1367l37.566-1.4219c4.4102-0.16406 7.8516-3.8711 7.6914-8.2852l-4.2539-116.12c-0.15234-4.1875-3.5117-7.5469-7.6992-7.6992l-116.11-4.2344h-0.30078c-4.3008 0.003906-7.8281 3.4023-7.9883 7.6992l-1.3945 37.59c-0.078125 2.125 0.6875 4.1914 2.1328 5.7461 1.4453 1.5547 3.4492 2.4727 5.5742 2.5469l37.047 1.3281-77.586 77.582c-3.125 3.125-3.125 8.1914 0 11.312z" fill="#ddd"/></svg>',t.style.display="none")},M=function(){navigator.appVersion;var e,t,i,n=navigator.userAgent,o=navigator.appName,r=""+parseFloat(navigator.appVersion),s=parseInt(navigator.appVersion,10);return-1!==navigator.appVersion.indexOf("Windows NT")&&-1!==navigator.appVersion.indexOf("rv:11")?(o="IE",r="11;"):-1!==(t=n.indexOf("MSIE"))?(o="IE",r=n.substring(t+5)):-1!==(t=n.indexOf("Chrome"))?(o="Chrome",r=n.substring(t+7)):-1!==(t=n.indexOf("Safari"))?(o="Safari",r=n.substring(t+7),-1!==(t=n.indexOf("Version"))&&(r=n.substring(t+8))):-1!==(t=n.indexOf("Firefox"))?(o="Firefox",r=n.substring(t+8)):(e=n.lastIndexOf(" ")+1)<(t=n.lastIndexOf("/"))&&(o=n.substring(e,t),r=n.substring(t+1),o.toLowerCase()==o.toUpperCase()&&(o=navigator.appName)),-1!==(i=r.indexOf(";"))&&(r=r.substring(0,i)),-1!==(i=r.indexOf(" "))&&(r=r.substring(0,i)),s=parseInt(""+r,10),isNaN(s)&&(r=""+parseFloat(navigator.appVersion),s=parseInt(navigator.appVersion,10)),[o,s]},R=function(){function t(e){return new RegExp("(^| )"+e+"( |$)")}function e(e,t,i){for(var n=0;n<e.length;n++)t.call(i,e[n])}function i(e){this.element=e}i.prototype={add:function(){e(arguments,function(e){this.contains(e)||(this.element.className+=" "+e)},this)},remove:function(){e(arguments,function(e){this.element.className=this.element.className.replace(t(e),"")},this)},toggle:function(e){return this.contains(e)?(this.remove(e),!1):(this.add(e),!0)},contains:function(e){return t(e).test(this.element.className)},replace:function(e,t){this.remove(e),this.add(t)}},"classList"in Element.prototype||Object.defineProperty(Element.prototype,"classList",{get:function(){return new i(this)}}),window.DOMTokenList&&null==DOMTokenList.prototype.replace&&(DOMTokenList.prototype.replace=i.prototype.replace),"function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)},e=function(){var e='.vi__player{width: 100%; height: 100%; background-color: #eee;}video { width: 100%; height: 100%; } [class*=" vi-"], [class^=vi-] { font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif !important; speak: none; font-style: normal; font-weight: 400; font-variant: normal; text-transform: none; line-height: 1; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale } .default { border: 0 solid rgba(0, 0, 0, .2); box-shadow: 0 0 20px rgba(0, 0, 0, .2); position: relative; overflow: hidden; font-family: "Helvetica Neue", "Calibri Light", Roboto, sans-serif; letter-spacing: .02em } .vi__player.vi__fullscreen { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100%; width: 100%; z-index: 10000000; background: #000; border-radius: 0 !important; display: -ms-flexbox; display: flex } .lds-dual-ring { display: none; width: 40px; height: 40px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .lds-dual-ring:after { content: " "; display: none; width: 25px; height: 25px; margin: 1px; border-radius: 50%; border: 5px solid #fff; border-color: #fff transparent #fff transparent; animation: lds-dual-ring 1.2s linear infinite; -webkit-animation: lds-dual-ring 1.2s linear infinite; -moz-animation: lds-dual-ring 1.2s linear infinite; -o-animation: lds-dual-ring 1.2s linear infinite } .vi__loading .lds-dual-ring, .vi__loading .lds-dual-ring:after { display: inline-block; } @keyframes lds-dual-ring { 0% { transform: rotate(0); -ms-transform: rotate(0) } 100% { transform: rotate(360deg); -ms-transform: rotate(360deg) } } @-webkit-keyframes lds-dual-ring { 0% { transform: rotate(0); -ms-transform: rotate(0) } 100% { transform: rotate(360deg); -ms-transform: rotate(360deg) } } @-moz-keyframes lds-dual-ring { 0% { transform: rotate(0); -ms-transform: rotate(0) } 100% { transform: rotate(360deg); -ms-transform: rotate(360deg) } } @-o-keyframes lds-dual-ring { 0% { transform: rotate(0); -ms-transform: rotate(0) } 100% { transform: rotate(360deg); -ms-transform: rotate(360deg) } } .default__control button { background: no-repeat; border: none; outline: none; padding: 0px; display: inline-block; cursor: pointer; } .default__control.vi_control_overlay { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0, 0, 0, 0.5); } .default__control{ opacity: 0; -webkit-transition: opacity .3s ease-in-out; -moz-transition: opacity .3s ease-in-out; -ms-transition: opacity .3s ease-in-out; -o-transition: opacity .3s ease-in-out; transition: opacity .3s ease-in-out; } .vi__player:hover .default__control { opacity: 1; } .default__control.vi__control__top { position: absolute; top: 0; left: 0; width: 100%; } .vi__control__top #vi__video_title a { color: #fff; text-decoration: none; font-size: 15px; margin: 10px; display: inline-block; white-space: nowrap; overflow: hidden; width: calc(100% - 150px); text-overflow: ellipsis;'+(!0===s.showCloseVideoDiscoverButton?"margin-left: 30px;":"")+" } .default__control.vi__control__middle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } .default__control.vi__control__middle .vi__middle_button { display: -ms-flexbox; display: flex; justify-content: center; -ms-flex-align: center; align-items: center; justify-content: center; align-items: center; position: absolute; top: 50%; left: 50%; -ms-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); } .default__control.vi__control__middle .vi__middle_button button { width: 14px; height: 14px; margin: 0 5px; } .default__control.vi__control__middle .vi__middle_button button.big { width: 26px; height: 26px; } .vi__loading .vi__control__middle .vi__middle_button { display: none; } .default__control.vi__control__bottom { position: absolute; bottom: 0; left: 0; width: 100%; } .vi__control__bottom .progress { margin-bottom: 8px; position: relative; height: 5px; transition: height .3s; background: rgba(0, 0, 0, .5); cursor: pointer; flex: none; -ms-flex: none; display: flex; width: 100%; } .vi__control__bottom .progress .progress__filled { width: 0%; background: #ddd; -ms-flex: 0; flex: 0; -ms-flex-preferred-size: 0; flex-basis: 0%; } .vi__control__bottom button { float: right; margin-bottom: 10px; margin-right: 10px; } .vi__control__bottom .vi__time{color: #ddd; margin-left: 5px; margin-bottom: 10px; font-size: 13px; display: inline-block;}.vi__control__bottom .vi__time.vi__current_time{margin-left: 10px;}";return e+=".vi__custom_logo{position: absolute;top: 10px;right: 10px;height: 20px;max-width: 20px;overflow: hidden;-webkit-transition: max-width 0.5s ease-in-out; transition: max-width 0.5s ease-in-out;display: block;} .vi__custom_logo a{display: -webkit-box;height: 20px;text-decoration: none;color: #fff;} .vi__custom_logo .vi__svg_content{display: block; width: 20px; height: 20px; overflow: hidden;} .vi__custom_logo .vi__text_content{margin-left: 5px;font-size: 13px;white-space: nowrap;}.vi__player:hover .vi__custom_logo {max-width: 150px;}",!0===s.customLogo.hideOnFullFixed&&(e+=".vi__player_fixed .vi__custom_logo, .vi__fullscreen .vi__custom_logo{display: none;}"),e};return{init:function(e){R(),w(e),v.browserInfo=M(),v.browserName=v.browserInfo[0],v.browserVersion=v.browserInfo[1];var t=T(),i=t.querySelector("video");_(i);var n=B();t.classList.add(n);var o=i.dataset.overlay;N(t,o);var r=L(n);t.insertAdjacentHTML("beforeend",r);var s=i.dataset.color;z(t,s);var a=t.querySelector("."+n+"__controls"),l=t.querySelector(".progress"),d=t.querySelector(".progress__filled"),c=t.querySelector(".vi__time.vi__current_time"),p=t.querySelector(".vi__time.vi__duration"),u=t.querySelectorAll(".toggle"),h=(t.querySelectorAll("[data-skip]"),t.querySelectorAll("."+n+"__slider"),t.querySelector(".volume")),m=t.querySelector(".fullscreen");"IE"!==v.browserName||8!==v.browserVersion&&9!==v.browserVersion||(I(i),a.style.display="none"),t.querySelector("#vi__prepost").addEventListener("click",f.prev),t.querySelector("#vi__nextpost").addEventListener("click",f.next),Z()&&i.addEventListener("click",function(){k(i,t)}),i.addEventListener("play",function(){C(this,u)}),i.addEventListener("pause",function(){C(this,u)}),i.addEventListener("timeupdate",function(){A(this,d,c,p)}),Array.prototype.slice.call(u,0).forEach(function(e){return e.addEventListener("click",function(){S(i,t)})}),h.addEventListener("click",function(){E(i,h)});var g=!1;return l.addEventListener("click",function(e){D(e,i,l)}),l.addEventListener("mousemove",function(e){return g&&D(e,i,l)}),l.addEventListener("mousedown",function(){return g=!0}),l.addEventListener("mouseup",function(){return g=!1}),m.addEventListener("click",function(e){f.toggleFullscreen(),P(t,m)}),i.volume=f.volume,x(i,t),{play:function(e){!1===e&&1==b||(b=!1,1!=y&&(pe.changeAdsVolume&&(i.volume=pe.adsVolume,E(i,h,!0)),i.play(),t.classList.add("is-playing")))},pause:function(){i.pause(),t.classList.remove("is-playing")},adStart:function(){b=!0,i.pause(),t.classList.remove("is-playing")},playerIsFixed:function(e){e?t.classList.add("vi__player_fixed"):t.classList.remove("vi__player_fixed")}}},play:function(e){!function(e){w(e);var t=f.elment.querySelector(".vi__player"),i=f.elment.querySelector("video");i.style.background='url("'+(f.poster.startsWith("http")?f.poster:"//assets."+f.baseDomain+f.poster)+'") 0px 0px / cover no-repeat transparent',_(i),f.elment.querySelector("#vi__video_title").querySelector("a").title=f.title,f.elment.querySelector("#vi__video_title").querySelector("a").href=f.link,f.elment.querySelector("#vi__video_title").querySelector("span").innerHTML=f.title,t.classList.add("vi__loading"),i.volume=f.volume,i.load(),b||i.play(),b&&i.pause(),x(i,t)}(e)},onCollapse:function(e){var t,i,n;i=(t=e).elment.querySelector(".vi__player"),n=t.elment.querySelector(".fullscreen"),P(i,n)},onEvent:function(e,t){a[e]=t}}},je=function e(){var t;document.body?((t=document.createElement("div")).id=pe.pixelID,t.style.cssText="width:0; height:0; display:none",document.body.appendChild(t)):setTimeout(function(){e()},100)},Xe=function(){var e=new Date,t=e.getHours(),i=e.getMinutes();if(!(9!=t&&0!=i||21!=t&&0!=i)){for(var n={},o=document.getElementsByClassName(pe.adClass),r=0;r<o.length;r++){var s=o[r].getAttribute("data-ad-slot"),a=pe.displaySlot&&pe.displaySlot[s];a&&(n[a.w+"_"+a.h]=n[a.w+"_"+a.h]?n[a.w+"_"+a.h]+1:1);var l=pe.instreamSlot&&pe.instreamSlot[s];l&&("inbanner"===l.type&&(n.video_discovery=n.video_discovery?n.video_discovery+1:1),"normal"===l.type&&(n.instream=n.instream?n.instream+1:1)),pe.topArticle&&pe.topArticle[s]&&(n.top_articles=n.top_articles?n.top_articles+1:1),pe.outstreamSlot&&pe.outstreamSlot[s]&&(n.outstream_inline=n.outstream_inline?n.outstream_inline+1:1)}var d,c,p="?d="+pe.domainID;p+="&url="+encodeURIComponent(window.location.href),(p+="&slots="+encodeURIComponent(JSON.stringify(n)))&&(d=document.getElementById(pe.pixelID),(c=document.createElement("img")).width=0,c.height=0,c.style.cssText="display:none",c.src="//logs."+pe.rootDomain+"/slots/"+p,d.appendChild(c))}},Ge=function(){var e=document.getElementById(pe.pixelID),t=document.createElement("img");t.width=0,t.height=0,t.style.cssText="display:none",t.src="//logs."+pe.rootDomain+"/sub/?d="+pe.domainName+"&h="+window.location.hostname,e.appendChild(t)},Je=function(e){if(!pe.displaySlot)return"";var t=document.getElementsByClassName(pe.adClass);if(0!=t.length){for(var i=0,n=0;n<t.length;n++)if(pe.displaySlot[t[n].getAttribute("data-ad-slot")]){if(t[n].getAttribute("data-id")==e)break;i++}try{return pe.googleDfpAdunitCode[i]?pe.googleDfpAdunitCode[i]:pe.googleDfpAdunitCode[pe.googleDfpAdunitCode.length-1]}catch(e){return""}}},Ye=function(e){var t=document.getElementsByClassName(pe.adClass);if(0==t.length)return null;for(var i=[],n=0;n<t.length;n++){var o=t[n].getAttribute("data-ad-slot");if((void 0===e||o==e)&&(pe.displaySlot[o]&&t[n].dataset.id)){if(null===t[n].offsetParent)continue;i.push(t[n].dataset.id)}}return 0==i.length?null:i},Ke=function(e,t){var a=document.getElementById(e);if(a)if(a.getAttribute("isset-ad"))"on"==pe.enableIcon&&a.querySelector("vli").style.setProperty("opacity","1","important");else if("passback"!==a.getAttribute("content-type")||"off"!==pe.dfpRefresh)if(a.setAttribute("content-type","passback"),!0!==window[pe.tagName].displayConfig.hideOnPassback){pe.VIdebug&&de(e,"passback","true");var i=Ze(a.getAttribute("data-ad-slot"),"display"),n="passback";"iframe"!==pe.pbRender&&(n="pbk");var o,r,s=Z()?"mobile":"pc",l="//"+pe.passbackDomain+"/"+n+"/?t="+pe.passBackUpdateTime+"&d="+pe.domainID+"&z="+i.zid+"&divID="+e+"&w="+i.w+"&h="+i.h;if(!0===i.noPublisherPb)for(var d=0;d<pe.passbackTargeted.length;d++){var c=pe.passbackTargeted[d];if((c.size.length<=0||0<c.size.length&&-1!=c.size.indexOf(i.w+"_"+i.h))&&(c.device.length<=0||0<c.device.length&&-1!=c.device.indexOf(s))&&(c.country.length<=0||0<c.country.length&&-1!=c.country.indexOf(pe.VIGeo))){l="//"+pe.passbackDomain+"/passbacktarget/"+c.time+"/?t="+pe.pbRender+"&pbID="+c.id+"&d="+pe.domainID+"&z="+i.zid+"&divID="+e+"&w="+i.w+"&h="+i.h;break}}"iframe"===pe.pbRender?(a.style.cssText="width:"+i.w+"px!important;height:"+i.h+"px!important;margin:0 auto!important;position:relative!important;",(o=$e(a,e)).open(),o.write('<script type="text/javascript" src="'+l+'"><\/script>'),o.close()):(a.style.cssText="width:unset!important;height:unset!important;margin:0 auto!important;position:relative!important;",(r=document.createElement("script")).src=l,r.onload=function(){setTimeout(function(){var e=a.getElementsByTagName("script");if(0<e.length){for(var t=[],i=0,n=0,o=function(){i===n&&t.forEach(function(e){Function(e)()})},r=0;r<e.length;r++)e[r].src?i++:t.push(e[r].innerText);for(var s,r=0;r<e.length;r++){e[r].src&&((s=document.createElement("script")).src=e[r].src,s.onload=function(){n++,o()},document.getElementsByTagName("head")[0].appendChild(s))}i||o()}},100)},a.appendChild(r)),$(t)}else a.style.display="none"},$e=function(e,t){e.innerHTML='<iframe class="vliIgnore" id="ifr_'+t+'" SRC="about:blank" FRAMEBORDER="0" SCROLLING="no" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0" ALLOWTRANSPARENCY="true" width="0" height="0" sandbox="allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation"> </iframe>';var i=document.getElementById("ifr_"+t),n=Ze(e.getAttribute("data-ad-slot"),"display");i.width=n.w,i.height=n.h;var o=i.contentWindow||i.contentDocument;return o.document&&(o=o.document),o},Ze=function(e,t){return"display"==t?pe.displaySlot[e]:"video"==t?pe.instreamSlot[e]:void 0},me=he=!(ge=function(e,t){var i={responsiveMode:!1,width:640,height:480,loadingText:"Loading advertisement..",complete:function(){},error:function(){},hidden:function(){}};if(!window[pe.tagName].videoConfig)return i;var n={};for(var o in i)void 0===window[pe.tagName].videoConfig[o]?n[o]=i[o]:n[o]=window[pe.tagName].videoConfig[o];if(window[pe.tagName].videoConfig[e])for(var o in n)void 0!==window[pe.tagName].videoConfig[e][o]&&(n[o]=window[pe.tagName].videoConfig[e][o]);return!0===n.responsiveMode&&(n.width=t.parentNode.offsetWidth,n.height=t.parentNode.offsetHeight),n}),Qe={init:function(e){pt(e)}},et=function(){var e=window.location.hostname,t=document.createElement("vli");return t.className="vliIcon",t.style.cssText="cursor:pointer;opacity:0!important;padding:0!important;margin:0!important;border-top-right-radius:5px!important;background-color:rgba(255, 255, 255, 0.9) !important;overflow:hidden!important;position:absolute!important;left:0px!important;bottom:0px!important;z-index:9999!important;transition:width 0.3s ease 0s,opacity 0.3s ease-in-out!important;height:16px!important;width:16px!important;",t.addEventListener("mouseover",function(){t.style.setProperty("width","132px","important")}),t.addEventListener("mouseout",function(){t.style.setProperty("width","16px","important")}),"on"==pe.enableIcon&&setTimeout(function(){t.style.setProperty("opacity","1","important")},100),t.innerHTML=tt(),t.setAttribute("title","Visit "+pe.brandHomepage),t.addEventListener("click",function(){window.open("//"+pe.brandHomepage+"/?ref="+e,"_blank")}),t},tt=function(){return'\n                <vli style="display:block;width:132px;">\n                    <vli style="float:left;display:inline-block;height:14px;width:14px;padding:1px;">\n                        <vli style="display:block;width:14px;height:14px;">\n                            <vli style="display:inherit!important;margin-top:0.5px!important;width:14px!important;height:13px!important;background-image:url(\'//'.concat(pe.brandIcon,'\')!important;background-size:cover!important;"></vli>\n                        </vli>\n                    </vli>\n                    <vli style="float:left;display:block;white-space:nowrap;height:12px;padding:2px;">\n                        <vli target="_blank" style="display:block;text-decoration:none;color:#333;font-family:Arial;line-height:8px;font-weight:400;" class="notranslate">\n                            <vli style="font-size:10px!important;font-family:inherit!important;">Ad by</vli> <vli style="font-size:11px!important;font-family:inherit!important;">').concat(pe.brandName,'</vli>\n                        </vli>\n                    </vli>\n                    <vli style="clear:both;"></vli>\n                </vli>\n                ')},it=function(){var t,e;void 0!==document.hidden?(t="hidden",e="visibilitychange"):void 0!==document.msHidden?(t="msHidden",e="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",e="webkitvisibilitychange"),document[t]?pe.isVisible=!1:pe.isVisible=!0,void 0!==document.addEventListener&&void 0!==t&&document.addEventListener(e,function(){if(document[t]){for(var e in pe.visibilChangAction.hidden)pe.visibilChangAction.hidden[e]();pe.isVisible=!1}else{for(var e in pe.visibilChangAction.watching)pe.visibilChangAction.watching[e]();pe.isVisible=!0}},!1)},nt=function(e,t,i,n){var o=document.createElement("script");o.src=e;var r=document.getElementsByTagName("head")[0],s=!1;o.onload=o.onreadystatechange=function(){s||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(s=!0,i(),o.onload=o.onreadystatechange=null)},o.onerror=function(){n()},r.appendChild(o)},ot=function(){var r,s,a;Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},Array.prototype.indexOf||(Array.prototype.indexOf=(r=Object,s=Math.max,a=Math.min,function(e,t){if(null==this)throw TypeError("Array.prototype.indexOf called on null or undefined");var i=r(this),n=i.length>>>0,o=a(0|t,n);if(o<0)o=s(0,n+o);else if(n<=o)return-1;if(void 0===e){for(;o!==n;++o)if(void 0===i[o]&&o in i)return o}else if(e!=e){for(;o!==n;++o)if(i[o]!=i[o])return o}else for(;o!==n;++o)if(i[o]===e)return o;return-1})),String.vliformat||(String.vliformat=function(e){var i=Array.prototype.slice.call(arguments,1);return e.replace(/{(\d+)}/g,function(e,t){return void 0!==i[t]?i[t]:e})})},rt=function(){function d(t){var i,e,n;_="playing",setTimeout(function(){p.getElementById("button-left").setAttribute("disabled",""),p.getElementById("button-right").setAttribute("disabled","")},500);for(var o=p.getElementsByClassName("slider-item"),r=0;r<o.length;r++)o[r].getAttribute("data-item-index")===t.toString()&&(i=o[r],o[r].querySelector(".item-image").style.transition="transform 0s ease 0s",o[r].querySelector(".item-image").style.transform="scale(1)"),o[r].classList.contains("show")?e=o[r]:(o[r].querySelector(".item-image").style.transition="transform 0s ease 0s",o[r].querySelector(".item-image").style.transform="scale(1)");for(var s=p.getElementsByClassName("progress-item"),r=0;r<s.length;r++){s[r].querySelector(".progress-loader").style.transition="none 0s ease 0s";var a=parseInt(s[r].getAttribute("data-item-index"));a<t&&(s[r].querySelector(".progress-loader").style.transform="scale(1, 1)"),a===t&&(s[r].querySelector(".progress-loader").style.transform="scale(0, 1)",n=s[r]),t<a&&(s[r].querySelector(".progress-loader").style.transform="scale(0, 1)")}e!==i&&(e.style.opacity="0",e.classList.remove("show")),p.querySelector(".top-article .ta-slide div").innerHTML=parseInt(i.getAttribute("data-item-index"))+1+"/"+o.length,p.body.classList.remove("pause"),p.body.classList.add("playing"),k("play"),i.style.opacity="1",i.classList.add("show"),setTimeout(function(){i.querySelector(".item-image").style.transition="transform 5000ms linear 0s",i.querySelector(".item-image").style.transform="scale(1.15)",n.querySelector(".progress-loader").style.transition="transform 5000ms linear 0s",n.querySelector(".progress-loader").style.transform="scale(1, 1)"},100);for(var l=p.getElementsByClassName("readmore-link"),r=0;r<l.length;r++)l[r].setAttribute("href",f[t].link);p.getElementById("article-title").innerHTML=f[t].title,p.getElementById("vertical-line").style.opacity="0",p.getElementById("vertical-line").style.height="1px",p.getElementById("vertical-line").style.transition="none 0s ease",p.getElementById("article-title").style.opacity="0",p.getElementById("article-title").style.transition="none 0s ease-out",p.getElementById("headline-placeholder").style.transform="translateX(-100%)",p.getElementById("headline-placeholder").style.transition="none 0s ease",setTimeout(function(){setTimeout(function(){p.getElementById("vertical-line").style.opacity="1",p.getElementById("vertical-line").style.height=p.getElementById("article-title").clientHeight+10+"px",p.getElementById("vertical-line").style.transition="height 500ms ease",p.getElementById("article-title").style.opacity="1",p.getElementById("article-title").style.transition="opacity 300ms ease-out"},500),p.getElementById("headline-placeholder").style.transform="translateX(0%)",p.getElementById("headline-placeholder").style.transition="transform 500ms ease-out"},100),v=setTimeout(function(){var e=parseInt(i.getAttribute("data-item-index"))<o.length-1?t+1:0;d(e)},5e3)}function t(e){if(pe.topArticle&&pe.topArticle[e]){var t=document.getElementsByClassName(pe.adClass);if(0!==t.length){for(var o,i,n=0;n<t.length;n++)if(t[n].dataset.adSlot===e&&!t[n].hasChildNodes()){""===(c=t[n]).id&&(c.id=e);break}c&&(a=e,o=function(){!pe.topArticle[e].contents||pe.topArticle[e].contents.length<0||(f=pe.topArticle[a].contents,r())},pe.topArticle[e].feed_url?((i=new XMLHttpRequest).onreadystatechange=function(){4===this.readyState&&(200===this.status&&this.responseXML?function(e){f=[];var t=e.getElementsByTagName("item");if(t.length<=0)o();else{for(var i,n=0;n<t.length;n++){t[n].getElementsByTagName("title")[0]&&t[n].getElementsByTagName("image")[0]&&t[n].getElementsByTagName("link")[0]&&(i={title:t[n].getElementsByTagName("title")[0].childNodes[0].nodeValue,thumb:t[n].getElementsByTagName("image")[0].childNodes[0].nodeValue,link:t[n].getElementsByTagName("link")[0].childNodes[0].nodeValue},f.push(i))}(f.length<=0?o:r)()}}(this.responseXML):o())},i.open("GET","//media."+pe.rootDomain+pe.topArticle[e].feed_url,!0),i.timeout=2e3,i.ontimeout=function(){o()},i.send()):o())}}}var a,l,c,p,u,h,m,g,f,v,b,y,w,_="pause",x=null,n=0,I=!1,i=0,o="dfp"===pe.videoRequestMode||"postbid_dfp"===pe.videoRequestMode?60:15,r=function(){x=pe.topArticle[a],w=x.floorPrice?x.floorPrice:0,!0===(l=function(){var e={random:!0,type:null,noFixed:!1,hideStatic:!1,fixedOnMobile:!1};if(!window[pe.tagName].topArticlesConfig)return e;var t=window[pe.tagName].topArticlesConfig;for(var i in e)void 0===t[i]&&(t[i]=e[i]);return t}()).random&&D(f),900<(u=c.parentNode.offsetWidth)&&(u=900),u<300&&(u=300),m=parseInt(9*u/16),g=L(u),h=m+g,c.style.height=h+"px",c.style.width=u+"px",c.style.margin="0 auto",c.style.overflow="hidden",ne({divID:"TAContentPlayer",hidden:function(){C()},watching:function(){b||S()}}),function(e){var t=T(),i="//"+pe.brandHomepage+"/?ref="+window.location.hostname,n="",o="";f.forEach(function(e,t){n+='<div class="slider-item '+(0===t?"show":"")+'" style="opacity: '+(0===t?"1":"0")+';" data-item-index="'+t+'">',n+='<div class="item">',n+='<div class="item-image" style="animation-duration: 6s; transition: none 0s ease 0s; transform: scale(1);">',n+='<img style="height:100%; width:100%" src="'+e.thumb+'">',n+="</div>",n+="</div>",n+="</div>",o+='<div class="progress-item" data-item-index="'+t+'"><div class="progress-loader" style="transition: none 0s ease 0s; transform: scale(0, 1);"></div></div>'});var r=".playWrapper{height: "+m+"px;}.infoWrapper{height:"+g+"px;}",s="<style>"+(r+='body{font-family:"Helvetica Neue","Calibri Light",Roboto,sans-serif}.playWrapper{position:relative}.infoWrapper{position:relative;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-bottom:1px solid #d8d8d8}.readmore-link{text-decoration:none;position:relative;display:block;cursor:default;width:100%;height:100%;background-color: #fff;}.player{position:relative;width:100%;height:100%}.slider{width:100%;height:100%;position:absolute;z-index:1;overflow:hidden}.slider-item{position:absolute;overflow:hidden;height:100%;width:100%;transition:opacity .5s ease-in-out}.slider-item .item{position:absolute;width:100%;height:100%}.progress{width:100%;position:absolute;z-index:4;display:inline-flex;bottom:48px}.progress-item{width:100%;background-color:#fff;height:4px;margin:10px 8px 10px 0;cursor:pointer}.progress-item:first-of-type{margin-left:8px}.progress-loader{height:100%;background-color:#e02832;width:100%;transform-origin:0 0;animation-duration:6s;transition:none 0s ease 0s;transform:scale(0,1)}.control{display:flex;justify-content:space-between;position:absolute;float:right;bottom:8px;right:8px;width:128px;height:40px;z-index:4}.control-button{display:block;cursor:pointer;height:24px;width:24px;padding:8px;font-size:0}.control-button .left{margin-left:0}.control-button .right{margin-right:0}.control-button svg{width:24px;height:24px;transition:fill .2s ease-out;fill:#fff}.control-button:hover svg{fill:#e02832}.control-button.right svg{-moz-transform:scaleX(-1);-o-transform:scaleX(-1);-webkit-transform:scaleX(-1);transform:scaleX(-1)}.top-article{position:absolute;width:136px;height:29px;font-size:12px;left:16px;top:16px;font-family:inherit;z-index:3}.top-article>div{float:left;height:100%;display:flex;align-items:center;justify-content:center}.top-article .ta-text{color:#0d192d;background-color:#fff;text-transform:uppercase;width:96px}.top-article .ta-slide{color:#fff;background-color:#000;width:40px}.top-article>div>div{white-space:nowrap}.big-play-button{z-index:5;position:absolute;width:80px;height:80px;left:50%;top:50%;transform:translate(-50%,-50%);fill:#e02832;opacity:.8;cursor:pointer}.gradient-container{position:absolute;bottom:0;height:70px;width:100%;background:linear-gradient(to bottom,rgba(255,0,0,0),rgba(13,25,45,.4));z-index:2;pointer-events:none}.gradient-container.top{bottom:auto;top:0;background:linear-gradient(to top,rgba(255,0,0,0),rgba(13,25,45,.4))}.headline-container{height:auto;width:100%;position:absolute;left:10px;z-index:3;top:50%;transform:translateY(-50%);max-width:75%}.headline-container .headline{width:100%;overflow:hidden;font-family:inherit;color:#0d192d;position:relative;font-size:20px;line-height:initial}.headline-container .headline:hover{color:#e02832}.headline-container .headline .vertical-line{background-color:#e02832;width:8px;height:0;float:left;transition:height .5s ease}.headline-container .headline .headline-placeholder{float:left;color:inherit;cursor:pointer;max-width:calc(100% - 8px);min-height:28px;background-color:#f1f1f1;border-top-right-radius:5px;border-bottom-right-radius:5px}.headline-container .headline .headline-placeholder .text{color:inherit;font-family:inherit;height:100%;display:inline-block;margin:5px 10px;max-width:100%;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;display:-webkit-box}.readmore{position:absolute;top:50%;transform:translateY(-50%);right:0;font-size:14px;text-transform:uppercase;color:#0d192d;display:inline-flex;font-family:inherit;cursor:pointer;border-radius:2px}.readmore-text{width:93px;height:40px;display:flex;line-height:40px;align-items:center;justify-content:flex-end;text-align:right;font-weight:500}.readmore-icon{width:24px;height:24px;padding:8px 8px 8px 0;display:block;font-size:0;margin-left:2px}.readmore-icon svg{fill:#e02832;width:24px;height:24px;display:block}.size-sm .readmore-text,.size-xs .readmore-text{display:none}.size-sm .progress,.size-xs .progress{bottom:18px}.size-sm .control,.size-xs .control{bottom:50%;right:50%;transform:translate(50%,50%);opacity:0;visibility:hidden;transition:all .4s ease-in-out;transition-property:opacity,visibility}.size-sm .playWrapper:hover .control,.size-xs .playWrapper:hover .control{opacity:1;visibility:visible;transition:all .4s ease-in-out;transition-property:opacity,visibility}.pause .size-sm .playWrapper:hover .control,.pause .size-xs .playWrapper:hover .control{display:none}.size-sm .big-play-button,.size-xs .big-play-button{width:56px;height:56px}.size-sm .headline-container .headline .headline-placeholder .text,.size-xs .headline-container .headline .headline-placeholder .text{font-size:16px}.size-xs .progress{display:none}.size-sm .top-article{width:115px;height:24px;font-size:11px;top:8px;left:8px}.size-sm .top-article .ta-text{width:85px}.size-sm .top-article .ta-slide{width:30px}.size-xs .top-article{width:97px;height:20px;font-size:10px;top:5px;left:5px}.size-xs .top-article .ta-text{width:75px}.size-xs .top-article .ta-slide{width:22px}.vi__custom_logo{position:absolute;top:10px;right:10px;height:20px;max-width:20px;overflow:hidden;-webkit-transition:max-width .5s ease-in-out;transition:max-width .5s ease-in-out;z-index:3;display:-webkit-box;cursor:pointer}.vi__custom_logo .vi__svg_content{display:block;width:20px;height:20px;overflow:hidden}.vi__custom_logo .vi__text_content{height:20px;margin-left:5px;font-size:13px;color:#fff;white-space: nowrap;}.playWrapper:hover .vi__custom_logo{max-width:150px}.adDisplayWrapper{display:none}')+"</style>";s+='<div id="widgetWrapper" class="'+t+'">',s+='<div class="playWrapper">',s+='<a href="'+i+'" target="_blank">',s+='<div class="vi__custom_logo noclick" id="vi__custom_logo">',s+='<span class="vi__svg_content">',s+='<img src="//'+pe.brandIcon+'"/>',s+="</span>",s+='<span class="vi__text_content">'+pe.brandName+"</span>",s+="</div>",s+="</a>",s+='<a class="readmore-link" href="'+i+'" target="_blank">',s+='<div class="player">',s+='<div class="slider">',s+=n,s+="</div>",s+='<div class="progress noclick">',s+=o,s+="</div>",s+='<div class="control noclick">',s+='<div class="control-button left" id="button-left">',s+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs></defs><g transform="translate(-104 -176)"><g transform="translate(124.753 197.331) rotate(180)"><rect style="fill: none;" width="24" height="24" transform="translate(20.753 21.331) rotate(180)"></rect><g><g><rect width="5" height="18" transform="translate(13.753 0.331)"></rect><path d="M8,5V24l15-9.5Z" transform="translate(-9.068 -5.101)"></path></g></g></g></g></svg>',s+="</div>",s+='<div class="control-button center" id="button-center">',s+='<svg style="display: none;" id="button-pause" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs></defs><g id="ic-pause-large-dark" transform="translate(-96 -232)"><g transform="translate(-128 -292)"><rect width="4.958" height="17.85" transform="translate(234.208 544.85) rotate(180)"></rect><rect width="4.958" height="17.85" transform="translate(243.133 544.85) rotate(180)"></rect><rect style="fill:none" width="24" height="24" transform="translate(224 524)"></rect></g></g></svg>',s+='<svg style="display: block;" id="button-play" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs></defs><g transform="translate(-53 -232)"><g transform="translate(-176 -296)"><rect style="fill: none;" width="24" height="24" transform="translate(229 528)"></rect><path d="M8,5V25L28,15Z" transform="translate(224 525)"></path></g></g></svg>',s+="</div>",s+='<div class="control-button right" id="button-right">',s+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs></defs><g transform="translate(-104 -176)"><g transform="translate(124.753 197.331) rotate(180)"><rect style="fill: none;" width="24" height="24" transform="translate(20.753 21.331) rotate(180)"></rect><g><g><rect width="5" height="18" transform="translate(13.753 0.331)"></rect><path d="M8,5V24l15-9.5Z" transform="translate(-9.068 -5.101)"></path></g></g></g></g></svg>',s+="</div>",s+="</div>",s+='<div class="top-article">',s+='<div class="ta-text">',s+="<div>Top articles</div>",s+="</div>",s+='<div class="ta-slide">',s+="<div>1/5</div>",s+="</div>",s+="</div>",s+='<div class="big-play-button noclick" id="big-play-button">',s+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 80"><defs></defs><g transform="translate(-1328 -1352)"><circle cx="40" cy="40" r="40" transform="translate(1328 1352)"></circle><g transform="translate(1370.753 1402.899) rotate(180)"><g transform="translate(3.608 3)"><path style="fill: #fff;" d="M0,0V32L28.355,16Z" transform="translate(11.499 23.899) rotate(180)"></path></g></g></g></svg>',s+="</div>",s+='<div class="gradient-container"></div>',s+='<div class="gradient-container top"></div>',s+="</div>",s+="</a>",s+='<div class="adDisplayWrapper" id="adDisplayWrapper"></div>',s+="</div>",s+='<div class="infoWrapper">',s+='<a class="readmore-link" href="'+i+'" target="_blank">',s+='<div class="headline-container">',s+='<div class="headline">',s+='<div class="vertical-line" id="vertical-line"></div>',s+='<div class="headline-placeholder" id="headline-placeholder">',s+='<span class="text" id="article-title">Valueimpression - Bring the real value for each impression</span>',s+="</div>",s+="</div>",s+="</div>",s+='<div class="readmore">',s+='<div class="readmore-text">',s+="<div>READ MORE</div>",s+="</div>",s+='<div class="readmore-icon">',s+='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><defs></defs><g transform="translate(-56 -152)"><g><path d="M0,9.118,4.213,4.972.058.882.954,0,6,4.963l-.007.007L6,4.978.9,10Z" transform="translate(68 159)"></path><path d="M0,9.118,4.213,4.972.058.882.954,0,6,4.963l-.007.007L6,4.978.9,10Z" transform="translate(63 159)"></path><rect style="fill: none;" width="24" height="24" transform="translate(56 152)"></rect></g></g></svg>',s+="</div>",s+="</div>",s+="</a>",s+="</div>",s+="</div>",e.open(),e.write(s),e.close()}(p=function(e,t){var i="<style>#disableFixedTopArticles{display: none;width: 10px; height: 10px; background-color: rgba(0, 0, 0, 0.65); border-radius: 50%; padding: 5px; cursor: pointer}</style>";i+='<div id="disableFixedTopArticles" style="display: none;"><svg display="inherit" enable-background="new 0 0 92.132 92.132" style="box-sizing:unset!important;height:100%;width:100%" version="1.1" viewBox="0 0 92.132 92.132" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path class="active-path" d="m2.141 89.13c1.425 1.429 3.299 2.142 5.167 2.142 1.869 0 3.742-0.713 5.167-2.142l33.591-33.592 33.591 33.592c1.426 1.429 3.299 2.142 5.167 2.142 1.867 0 3.74-0.713 5.167-2.142 2.854-2.854 2.854-7.48 0-10.334l-33.593-33.591 31.869-31.869c2.855-2.853 2.855-7.481 0-10.334-2.853-2.855-7.479-2.855-10.334 0l-31.868 31.868-31.867-31.869c-2.854-2.855-7.481-2.855-10.333 0-2.855 2.853-2.855 7.481 0 10.334l31.868 31.869-33.59 33.591c-2.857 2.853-2.857 7.479-2e-3 10.335z" fill="#fff" data-old_color="#ffffff" data-original="#000000"/></svg></div>',i+='<iframe class="viTopArticles" id="ifr_'+t+'" SRC="about:blank" FRAMEBORDER="0" SCROLLING="no" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" LEFTMARGIN="0" ALLOWTRANSPARENCY="true" style="width:'+u+"px; height: "+h+'px;"></iframe>',e.innerHTML=i;var n=document.getElementById("ifr_"+t);return dt(n)}(c,a)),y=p.getElementById("adDisplayWrapper"),d(0),p.getElementById("button-center").addEventListener("click",function(){"playing"===_?C():"pause"===_&&S()}),p.getElementById("big-play-button").addEventListener("click",function(){S()}),p.getElementById("button-right").addEventListener("click",function(){var e,t,i;"true"!==this.getAttribute("disabled")&&(this.setAttribute("disabled","true"),clearTimeout(v),e=A(),t=parseInt(e.getAttribute("data-item-index")),i=parseInt(e.getAttribute("data-item-index"))<f.length-1?t+1:0,d(i))}),p.getElementById("button-left").addEventListener("click",function(){var e,t,i;"true"!==this.getAttribute("disabled")&&(this.setAttribute("disabled","true"),clearTimeout(v),e=A(),t=parseInt(e.getAttribute("data-item-index")),i=0===parseInt(e.getAttribute("data-item-index"))?f.length-1:t-1,d(i))});for(var e=p.getElementsByClassName("progress-item"),t=0;t<e.length;t++)e[t].addEventListener("click",function(){clearTimeout(v);var e=parseInt(this.getAttribute("data-item-index"));d(e)});for(var i=p.getElementsByClassName("readmore-link"),t=0;t<i.length;t++)i[t].addEventListener("click",function(e){E(e.target)&&e.preventDefault()});document.getElementById("disableFixedTopArticles").addEventListener("click",function(){s(),n.classList.add("disabled-fixed")});var n=document.getElementById("ifr_"+a),o=document.getElementById(a);ee(y,function(){setTimeout(function(){b&&(b.resume(),C())},200),I=!0},function(){b&&b.pause(),I=!1});function r(){n.classList.contains("disabled-fixed")||Z()&&!l.fixedOnMobile||(b&&b.resize(410,231,"NORMAL"),n.style.position="fixed",n.style.bottom="0",n.style.right="0",n.style.zIndex="2147483647",n.style.width="410px",n.style.height="290px",p.querySelector(".playWrapper").style.height="231px",p.querySelector(".infoWrapper").style.height="60px",p.getElementById("widgetWrapper").className="size-sm",p.getElementById("vertical-line").style.height=p.getElementById("article-title").clientHeight+10+"px",document.getElementById("disableFixedTopArticles").style.cssText="display: block; position: fixed; bottom: 287px; right: 407px; z-index: 2147483647;")}var s=function(){b&&b.resize(u,m,"NORMAL"),n.style.position="",n.style.bottom="",n.style.right="",n.style.zIndex="",n.style.width=u+"px",n.style.height=h+"px",p.querySelector(".playWrapper").style.height="",p.querySelector(".infoWrapper").style.height="",p.getElementById("widgetWrapper").className=T(),p.getElementById("vertical-line").style.height=p.getElementById("article-title").clientHeight+10+"px",document.getElementById("disableFixedTopArticles").style.cssText=""};!0===l.noFixed?s():!0===l.hideStatic?(o.style.maxHeight="0",r()):ee(o,s,r,{threshold:[0]}),ie(function(){B()},1e3)},k=function(e){"play"===e&&(p.getElementById("button-pause").style.display="block",p.getElementById("button-play").style.display="none",p.getElementById("big-play-button").style.display="none"),"pause"===e&&(p.getElementById("button-pause").style.display="none",p.getElementById("button-play").style.display="block",p.getElementById("big-play-button").style.display="block")},S=function(){var e,t;"pause"===_&&(e=A(),t=parseInt(e.getAttribute("data-item-index")),d(t))},C=function(){if("playing"===_){var e,t=A(),i=parseInt(t.getAttribute("data-item-index"));_="pause",clearTimeout(v),p.body.classList.add("pause"),p.body.classList.remove("playing"),k("pause");for(var n=p.getElementsByClassName("progress-item"),o=0;o<n.length;o++){parseInt(n[o].getAttribute("data-item-index"))===i&&(e=n[o])}setTimeout(function(){t.querySelector(".item-image").style.transition="transform 0s ease 0s",t.querySelector(".item-image").style.transform="scale(1)",e.querySelector(".progress-loader").style.transition="none 0s ease 0s",e.querySelector(".progress-loader").style.transform="scale(0, 1)"},100)}},E=function e(t){if(t.classList&&t.classList.contains("noclick"))return!0;var i=t.parentNode;return!!i&&e(i)},A=function(){for(var e=null,t=p.getElementsByClassName("slider-item"),i=0;i<t.length;i++)t[i].classList.contains("show")&&(e=t[i]);return e},D=function(e){for(var t,i,n=e.length;0<n;)i=Math.floor(Math.random()*n),t=e[--n],e[n]=e[i],e[i]=t;return e},T=function(){return u<360?"size-xs":u<480?"size-sm":"size-md"},L=function(e){return e<=200?45:e<=300?60:e<=400?60:e<=600?80:100},B=function(){var e;x&&x.adunit&&((e=x.adunit).code=a,e.bids=X(e.bids),e.bids=G(e.bids,w),vlipb.removeAdUnit(e.code),vlipb.addAdUnits(e),0<e.bids.length&&(pe.auctionLogs[a]={bidder:j(e.bids),preAuction:""}),y.classList.add("running"),K([a],[],s,"toparticles"),i++)},s=function(e){var t,i,n,o,r=Y(vlipb.getBidResponsesForAdUnitCode(e[0]),e[0]),s=(s=J(r)).filter(function(e){return!("video"===e.mediaType&&e.cpm<w)||(vlipb.markWinningBidAsUsed({adId:e.adId}),!1)});"dfp"===pe.videoRequestMode?(t=null,0<s.length&&(t=s[0],s.splice(0,1)),i="",t&&(i=Q({type:"hb_video",divID:a,zoneID:x.zid,bidder:t.bidderCode,cpm:t.cpm})),n={hb_domain:pe.domainName,section:"blog",anotherKey:"anotherValue",vli_adtype:"toparticles",impression_url:pe.statsDomain,token:i},pe.refererDomainID?n.vli_ref=pe.refererDomainID+"_"+pe.domainID:n.vli_adslot="toparticles_"+x.zid,o=vlipb.adServers.dfp.buildVideoUrl({adUnit:x.adunit,params:{description_url:window.location.href,iu:pe.dfpVideoSlotID,cust_params:n,output:"vast"}}),t&&vlipb.markWinningBidAsUsed({adId:t.adId}),O({vastUrl:o,vastXml:null},{error:function(){N(s)}})):N(s)},N=function t(e){var i,n,o,r=0<arguments.length&&void 0!==e?e:[],s={start:function(){},impression:function(){},error:function(){},hidden:function(){},adsVolumeChange:function(){}};0<r.length?(o=r[0],vlipb.markWinningBidAsUsed({adId:o.adId}),r.splice(0,1),i=o.vastUrl||null,n=o.vastXml||null,s.start=function(){pe.VIdebug&&(ce(a),de(a,"adId",a),de(a,"creativeId",o.creativeId))},s.error=function(e){t(r)},s.impression=function(){$({type:"hb_video",divID:a,zoneID:x.zid,bidder:o.bidderCode,cpm:o.cpm})},O({vastUrl:i,vastXml:n},s)):z()},z=function(){var e,t;"postbid_dfp"===pe.videoRequestMode&&(e={hb_domain:pe.domainName,section:"blog",anotherKey:"anotherValue",vli_adtype:"toparticles"},pe.refererDomainID?e.vli_ref=pe.refererDomainID+"_"+pe.domainID:e.vli_adslot="toparticles_"+x.zid,t=vlipb.adServers.dfp.buildVideoUrl({adUnit:x.adunit,params:{description_url:window.location.href,iu:pe.dfpVideoSlotID,cust_params:e,output:"vast"}}),O({vastUrl:t},{error:function(){P()}})),"dfp"!==pe.videoRequestMode&&"postbid"!==pe.videoRequestMode||P()},P=function(){re(pe.pixelID);var e=[];x.vast&&(e=JSON.parse(JSON.stringify(x.vast)));for(var t=0;t<e.length;t++)e[t].link=ae(e[t].link);M(e)},M=function t(i){var e,n,o={start:function(){},impression:function(){},error:function(){},hidden:function(){},adsVolumeChange:function(){}};0<i.length?(n=i[0],i.splice(0,1),n.link&&n.bidder?(o.start=function(){},o.complete=function(){},o.impression=function(){se(pe.domainName,"OK - "+n.bidder,"ok","ok")},o.error=function(e){se(pe.domainName,"ERROR - "+n.bidder,"er","er"),t(i)},o.hidden=function(){},o.adsVolumeChange=function(e){},e={vastUrl:n.link,vastXml:null},O(e,o)):t(i)):(y.style.cssText="",y.innerHTML="",y.classList.remove("running"),oe(a),R(5),S())},R=function(e){b=null,void 0!==e&&(10<=i||setTimeout(function(){var e;pe.isVisible?(y.classList.add("running"),K([a],[],s,"toparticles"),i++):ne({divID:e="top_articles_refresh_queue",hidden:function(){},watching:function(){oe(e),y.classList.add("running"),K([a],[],s,"toparticles"),i++}})},1e3*e))},O=function(e,t){oe(a);var i=new vlPlayer({baseDomain:pe.rootDomain,brandLogo:pe.brandLogo});b=i.play({type:"instreamBanner",vastUrl:e.vastUrl?e.vastUrl:null,vastXML:e.vastXML?e.vastXML:null,adElement:y,volume:n,volumeControl:!0,start:function(){C(),observeElementInViewport.isInViewport(y).then(function(e){e||b.pause()}),t.start&&t.start()},complete:function(){t.complete&&t.complete()},error:function(e){t.error&&t.error(e)},impression:function(){t.impression&&t.impression()},hidden:function(){y.style.cssText="",y.innerHTML="",y.classList.remove("running"),oe(a),R(o),S(),t.hidden&&t.hidden()},adsVolumeChange:function(e){n=e,t.adsVolumeChange&&t.adsVolumeChange(e)}}),ne({divID:a,hidden:function(){b&&b.pause()},watching:function(){b&&I&&b.resume()}})};return{init:function(e){t(e)}}},{getConst:function(e){console.log(pe[e])},init:function(){st()},display:function(e){"v1"===pe.jsVersion&&("lazy_load"===pe.adloadType?function(i){if(pe.displaySlot&&pe.displaySlot[i]){var e=[],t=document.getElementsByClassName(pe.adClass);if(0!=t.length){for(var n=0;n<t.length;n++){var o=t[n];o.dataset.adSlot==i&&(o.dataset.observe||(o.dataset.observe=!0,e.push(o)))}e.forEach(function(e){var t;"off"===e.getAttribute("lazyload")?Ve(i,[e]):(t=e.dataset.adSlot,ee(e,function(){e.innerHTML||Ve(t,[e])},function(){},{threshold:[0]}))})}}}:Ve)(e)},nativeAd:function(e){!function(e){if(e&&"object"===p()(e)&&!(!1 in e)&&pe.nativeSlot&&pe.nativeSlot[e.adSlot]){var t=pe.nativeSlot[e.adSlot],i=document.getElementsByClassName(pe.adClass);if(0!=i.length){for(var n,o,r=null,s=0,a=0;a<i.length;a++){var l=i[a];if(l.dataset.adSlot==e.adSlot){if(!l.id){r=l;break}s++}}r&&(s++,o=(n=JSON.parse(JSON.stringify(e))).adSlot+"_"+s,r.id=o,n.zID=t.zid,n.dID=pe.domainID,n.staticDomain=pe.staticDomain,n.element_id=o,nt("//"+pe.staticDomain+"/plugins/nativeAd/nativeAd.js",!1,function(){NativeAd(n)},function(){}))}}}(e)},ShowBanner:function(e){"v2"===pe.jsVersion&&Fe.init(e)},refresh:function(e){var t,i;t=e,!pe.displaySlot||(i=Ye(t))&&Re(i)},startPreRoll:function(e,t,i){var n=1<arguments.length&&void 0!==t?t:null,o=2<arguments.length&&void 0!==i?i:{};qe.init(e,n,o)},initInstreamBanner:function(e){(new He).init(e)},VideoDiscovery:function(e){(new He).init(e)},OutstreamInline:function(e){new W(e).init()},OutstreamSlider:function(){Qe.init()},TopArticles:function(e){(new rt).init(e)},enableBidTest:function(){"undefined"!=typeof Storage&&(sessionStorage.setItem("bidtest","true"),window.location.reload())},showConsentTool:function(){window.__cmp("showScreen",null,null)},showConsentToolButton:function(){window[pe.tagName].gdprShowConsentToolButton&&(document.getElementById("cmpboxrecall").style.display="block")},hideConsentToolButton:function(){document.getElementById("cmpboxrecall").style.display="none"},VideoPlayer:function(){return{loadAds:function(t){var e=t.config.adSlot,i=t.player.muted?0:t.player.volume,n={responsiveMode:!1,width:640,height:480,loadingText:"Loading advertisement..",complete:function(){},error:function(){t.callback&&t.callback()},hidden:function(){t.callback&&t.callback()},adsVolumeChange:function(e){t.player.volume=e}},o=t.elements.container;new lt(e,n,o,i,{}).init()}}},SmartBanner:{pause:Ie.pause,continue:Ie.continue}}),window[ue].init())}]);