j.adlooxtracking.com Open in urlscan Pro
2606:4700:10::6816:4192  Public Scan

URL: https://j.adlooxtracking.com/ads/js/tfav_adl_262.js
Submission: On May 04 via api from LU — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(function(){'use strict';var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return{next:aa(a)};throw Error(String(a)+" is not an iterable or ArrayLike");}function u(a){if(!(a instanceof Array)){a=ba(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}
var ca="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var ea=da(this),fa;
if("function"==typeof Object.setPrototypeOf)fa=Object.setPrototypeOf;else{var ha;a:{var ia={a:!0},ja={};try{ja.__proto__=ia;ha=ja.a;break a}catch(a){}ha=!1}fa=ha?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ka=fa;
function la(a,b){a.prototype=ca(b.prototype);a.prototype.constructor=a;if(ka)ka(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Sb=b.prototype}function pa(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};var qa={Mb:"app",Nb:"web"};function ra(a,b,c,d){this.v=a;this.method=b;this.version=c;this.l=d}function sa(a){return!!a&&void 0!==a.omid_message_guid&&void 0!==a.omid_message_method&&void 0!==a.omid_message_version&&"string"===typeof a.omid_message_guid&&"string"===typeof a.omid_message_method&&"string"===typeof a.omid_message_version&&(void 0===a.omid_message_args||void 0!==a.omid_message_args)}function ta(a){return new ra(a.omid_message_guid,a.omid_message_method,a.omid_message_version,a.omid_message_args)}
function ua(a){var b={};b=(b.omid_message_guid=a.v,b.omid_message_method=a.method,b.omid_message_version=a.version,b);void 0!==a.l&&(b.omid_message_args=a.l);return b};function va(a){this.v=a};function wa(){var a=pa.apply(0,arguments);xa(function(){throw new (Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u(a))));},function(){return console.error.apply(console,u(a))})}function xa(a,b){"undefined"!==typeof jasmine&&jasmine?a():"undefined"!==typeof console&&console&&console.error&&b()};function za(a,b){if(!b)throw Error("Value for "+a+" is undefined, null or blank.");if("string"!==typeof b&&!(b instanceof String))throw Error("Value for "+a+" is not a string.");if(""===b.trim())throw Error("Value for "+a+" is empty string.");}function Aa(a){if(!a)throw Error("functionToExecute must not be truthy.");}
function Ba(a,b){if(null==b)throw Error(a+" must not be null or undefined.");if("number"!==typeof b||isNaN(b))throw Error("Value for "+a+" is not a number");if(0>b)throw Error(a+" must be a positive number.");};function Ca(){return/\d+\.\d+\.\d+(-.*)?/.test("1.4.12-iab4299")}function Da(){for(var a=["1","4","12"],b=["1","0","3"],c=0;3>c;c++){var d=parseInt(a[c],10),e=parseInt(b[c],10);if(d>e)break;else if(d<e)return!1}return!0};function Ea(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return"y"===a?(b&3|8).toString(16):b.toString(16)})};function Fa(a,b){try{return a.frames&&!!a.frames[b]}catch(c){return!1}}function Ga(a){return["omid_v1_present","omid_v1_present_web","omid_v1_present_app"].some(function(b){return Fa(a,b)})}function Ha(a){for(var b=ba(Object.values(qa)),c=b.next();!c.done;c=b.next()){c=c.value;var d={};d=(d.app="omid_v1_present_app",d.web="omid_v1_present_web",d)[c];if(Fa(a,d))return c}return null};var w=function(){if("undefined"!==typeof omidGlobal&&omidGlobal)return omidGlobal;if("undefined"!==typeof global&&global)return global;if("undefined"!==typeof window&&window)return window;if("undefined"!==typeof globalThis&&globalThis)return globalThis;var a=Function("return this")();if(a)return a;throw Error("Could not determine global object context.");}();function Ia(a,b){return a&&(a[b]||(a[b]={}))};function Ja(a){return null!=a&&"undefined"!==typeof a.top&&null!=a.top}function Ka(a){if(a===w)return!1;try{if("undefined"===typeof a.location.hostname)return!0}catch(b){return!0}return!1}function La(){var a;"undefined"===typeof a&&"undefined"!==typeof window&&window&&(a=window);return Ja(a)?a:w};function Ma(a){this.v=a;this.handleExportedMessage=Ma.prototype.Z.bind(this)}la(Ma,va);Ma.prototype.G=function(a){var b=void 0===b?this.v:b;if(!b)throw Error("Message destination must be defined at construction time or when sending the message.");b.handleExportedMessage(ua(a),this)};Ma.prototype.Z=function(a,b){sa(a)&&this.l&&this.l(ta(a),b)};function Oa(a,b){this.v=b=void 0===b?w:b;var c=this;a.addEventListener("message",function(d){if("object"===typeof d.data){var e=d.data;sa(e)&&d.source&&c.l&&c.l(ta(e),d.source)}})}la(Oa,va);Oa.prototype.G=function(a){var b=void 0===b?this.v:b;if(!b)throw Error("Message destination must be defined at construction time or when sending the message.");b.postMessage(ua(a),"*")};var Pa=["omid","v1_VerificationServiceCommunication"],Qa=["omidVerificationProperties","serviceWindow"];function Ra(a,b){return b.reduce(function(c,d){return c&&c[d]},a)};function Sa(a){if(!a){a=La();var b=void 0===b?Ga:b;var c=[],d=Ra(a,Qa);d&&c.push(d);c.push(Ja(a)?a.top:w);a:{c=ba(c);for(var e=c.next();!e.done;e=c.next()){b:{d=a;e=e.value;var f=b;if(!Ka(e))try{var g=Ra(e,Pa);if(g){var k=new Ma(g);break b}}catch(l){}k=f(e)?new Oa(d,e):null}if(d=k){a=d;break a}}a=null}}if(this.l=a)this.l.l=this.Gb.bind(this);else if(b=(b=w.omid3p)&&"function"===typeof b.registerSessionObserver&&"function"===typeof b.addEventListener?b:null)this.G=b;this.pa=this.Ba=0;this.Z={};this.ga=
[];this.v=(b=w.omidVerificationProperties)?b.injectionId:void 0}function Ta(a){var b=D;Aa(a);b.G?b.G.registerSessionObserver(a,"adloox.com-omid",b.v):b.na("addSessionListener",a,"adloox.com-omid",b.v)}n=Sa.prototype;n.addEventListener=function(a,b){za("eventType",a);Aa(b);this.G?this.G.addEventListener(a,b,this.v):this.na("addEventListener",b,a,this.v)};function Ua(a){var b=D;za("url",a);w.document&&w.document.createElement?Va(b,a):b.na("sendUrl",function(){},a)}
function Va(a,b){function c(e){var f=a.ga.indexOf(d);0<=f&&a.ga.splice(f,1);e&&e()}var d=w.document.createElement("img");a.ga.push(d);d.addEventListener("load",c.bind(a,void 0));d.addEventListener("error",c.bind(a,void 0));d.src=b}function Wa(a,b,c){var d=D;za("url",a);w.document?Xa(a,b,c):d.na("injectJavaScriptResource",function(e,f){e?(Ya(f,a),b()):(wa("Service failed to load JavaScript resource."),c())},a)}
function Xa(a,b,c){var d=w.document,e=d.body;d=d.createElement("script");d.onload=b;d.onerror=c;d.src=a;d.type="application/javascript";e.appendChild(d)}function Ya(a,b){try{eval(a)}catch(c){wa('Error evaluating the JavaScript resource from "'+b+'".')}}n.setTimeout=function(a,b){Aa(a);Ba("timeInMillis",b);if(Za())return w.setTimeout(a,b);var c=this.Ba++;this.na("setTimeout",a,c,b);return c};n.clearTimeout=function(a){Ba("timeoutId",a);Za()?w.clearTimeout(a):this.gb("clearTimeout",a)};
n.setInterval=function(a,b){Aa(a);Ba("timeInMillis",b);if($a())return w.setInterval(a,b);var c=this.pa++;this.na("setInterval",a,c,b);return c};n.clearInterval=function(a){Ba("intervalId",a);$a()?w.clearInterval(a):this.gb("clearInterval",a)};function Za(){return"function"===typeof w.setTimeout&&"function"===typeof w.clearTimeout}function $a(){return"function"===typeof w.setInterval&&"function"===typeof w.clearInterval}
n.Gb=function(a){var b=a.method,c=a.v;a=a.l;if("response"===b&&this.Z[c]){var d=Ca()&&Da()?a?a:[]:a&&"string"===typeof a?JSON.parse(a):[];this.Z[c].apply(this,d)}"error"===b&&window.console&&wa(a)};n.gb=function(a){this.na.apply(this,[a,null].concat(u(pa.apply(1,arguments))))};n.na=function(a,b){var c=pa.apply(2,arguments);if(this.l){var d=Ea();b&&(this.Z[d]=b);var e="VerificationService."+a;c=Ca()&&Da()?c:JSON.stringify(c);this.l.G(new ra(d,e,"1.4.12-iab4299",c))}};var ab=void 0;
if(ab=void 0===ab?"undefined"===typeof omidExports?null:omidExports:ab){var bb=["OmidVerificationClient"];bb.slice(0,bb.length-1).reduce(Ia,ab)[bb[bb.length-1]]=Sa};var E=function(){function a(b){return b&&b.Math===Math&&b}return("object"===typeof globalThis?globalThis:null)||a("object"===typeof window&&window)||a("object"===typeof self&&self)||a("object"===typeof global&&global)||function(){return this}()||Function("return this")()}(),H=E==E.self,cb=new Sa,db=La(),eb;var fb=w.omidVerificationProperties;eb=fb&&fb.injectionSource?fb.injectionSource:void 0;var D="web"===(eb||Ha(db)||Ha(Ja(db)?db.top:w))&&!cb.v||!cb.l&&!cb.G?!1:cb;function J(){}
function gb(a,b){a=typeof a;return b?a==b:a}function K(a){return null!==a&&gb(a,"object")}function hb(a){return gb(a,"string")}function L(a){return gb(a,"number")}function M(a){return gb(a,"function")}function N(a){return gb(a,"boolean")}var O=H?function(a){try{return a instanceof a.ownerDocument.defaultView.Element}catch(b){return!1}}:function(){return!1};function P(a){return L(a)?Math.floor(a):parseInt(a,10)}function ib(){return(new Date).getTimezoneOffset()}
var Q=K(E.performance)&&M(E.performance.now)?function(){return P(E.performance.now())}:function(){return(new Date).getTime()+6E4*ib()},jb=Q();function kb(a){return(a||[]).reduce(function(b,c,d){return b+d%2*c},0)}function lb(a){return 1<(a||[]).length&&0==a[0]}function R(a,b){return(D||E).setTimeout(a,b)}function mb(a){(D||E).clearTimeout(a)}function nb(a,b){return(D||E).setInterval(a,b)}
var ob=H?function(a){var b=E.document.createElement("a");b.href=a;return b}:function(a){var b=/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;a=a.match(b)||"about:blank".match(b);a={protocol:a[1]||"",hostname:a[3]||"//",pathname:a[5]||"/",search:a[6]||"",hash:a[8]||""};a.host=a.hostname.replace(/:[0-9]+$/,"");a.port=P(a.hostname.replace(/^.*:([0-9]+)$/,"$1"));if(isNaN(a.port))switch(a.protocol){case "http":a.port=80;break;case "https":a.port=443;break;default:a.port=0}a.href=a.protocol+
"//"+a.hostname+a.path+a.search+a.hash;a.origin=a.protocol+"//"+a.hostname;return a};function pb(a){return encodeURIComponent(a).replace(/[!'()*]/g,function(b){return"%"+b.charCodeAt(0).toString(16)})}function qb(a){var b=[],c;for(c in a)if(a.hasOwnProperty(c)&&void 0!==a[c]){var d=a[c];d instanceof Array||(d=[d]);for(var e=0;e<d.length;e++){var f=M(d[e])?d[e]():d[e];void 0!==f&&b.push(pb(c)+"="+pb(f))}}return b.join("&")}
function rb(a){var b={};if(!a.length)return b;a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].split("=",2);if(d[0].length){var e=decodeURIComponent(d[0]);d=d[1];try{d=decodeURIComponent(d)}catch(f){}d=d||!0;void 0===b[e]?b[e]=[d]:b[e].push(d)}}return b}function sb(a){return K(a)?a[a.length-1]:a}var tb;
if(H){var ub;if(!(ub=E.document.currentScript))a:{for(var vb=RegExp("/tfav_adl_262\\.js(?:[#?]|$)"),wb=E.document.scripts,xb=wb.length;0<xb--;)if(wb[xb]&&wb[xb].src&&wb[xb].src.match(vb)&&!wb[xb].getAttribute("data-adloox-sid")){ub=wb[xb];break a}ub=null}tb=ub}else tb=void 0;var S=tb,yb=S?ob(S.src):void 0;var zb=Array.prototype.findLast?function(a,b){return a.findLast(b)}:function(a,b){return[].concat(u(a)).reverse().find(b)};
function Ab(a){var b=this;this.m=a;a.g.att=function(){var c=b.m.T.Jb,d=Object.keys(c).filter(function(h){return/^ev/.test(h)}).reduce(function(h,p){return h.concat(c[p].data)},[]),e=(d.find(function(h){return"rvr"==h[1]})||[Infinity,"rvr"])[0],f=Bb(c,e),g=[];g.push(0<f.length?f[0][0][1]-f[0][0][0]:0);var k="int skp rr rp pe pl pd pu".split(" ");d=d.filter(function(h){return k.includes(h[1])});var l=(d.find(function(h){return"rr"==h[1]})||[Infinity,"rr"])[0];"sr"in c&&(d=d.concat(c.sr.x.data).concat(c.sr.y.data));
d=d.map(function(h){return h[0]}).filter(function(h){return h>=l});g.push(~~d.some(function(h){return f.some(function(p){return p[0][0]<=h&&h<p[0][1]})}));d=Object.keys(c).filter(function(h){return/^vp/.test(h)}).reduce(function(h,p){var m=zb(c[p].w.data,function(q){return q[0]<=e});m=Math.min(h[0],m&&0<m[1]?m[1]:Infinity);p=zb(c[p].h.data,function(q){return q[0]<=e});p=Math.min(h[1],p&&0<p[1]?p[1]:Infinity);return[m,p]},[Infinity,Infinity]);Infinity==d[0]&&(d[0]="n");Infinity==d[1]&&(d[1]="n");g.push(d.join("~"));
return g.join(".")}}
function Bb(a,b){function c(l,h){return l in a?(l=zb(a[l].data,function(p){return h>=p[0]}))?l[1]:null:null}var d=Object.keys(a).filter(function(l){return/^(vw|pg|fo)/.test(l)});b=Cb(d,a,b);d=[];for(var e=b.length;0<e--;){var f=c("vw",b[e]);null===f&&(f=c("vwo",b[e]));null===f&&(f=c("vwm",b[e]));null===f&&(f=0);f=~~(80<=f);var g=c("pg",b[e]);null===g&&(g=c("pgm",b[e]));null===g&&(g=1);var k=c("fo",b[e]);null===k&&(k=1);d.unshift([b[e],f*g*k])}return d.reduce(function(l,h,p,m){return p==m.length-1||
0==h[1]?l:l.concat([[[h[0],m[p+1][0]],h[1]]])},[]).sort(function(l,h){return h[0][1]-1-h[0][0]-(l[0][1]-1-l[0][0])})}function Cb(a,b,c){a=a.reduce(function(e,f){return e.concat(b[f].data.map(function(g){return g[0]}))},[Q()-jb]);a=[].concat(u(new Set(a))).sort(function(e,f){return e-f});var d=a.lastIndexOf(function(e){return e<=c});-1!=d&&(a.splice(0,d),a[d][0]=Math.max(a[d][0],c));return a};function Db(a){var b=this;this.m=a;this.A=this.s=null;this.l={};this.V=this.aa=this.ia=null;a.subscribe("rollstate.audio.run",function(){b.V=!0});a.subscribe("rollstate.audio.pause",function(){b.V=!1});this.M=this.duration=void 0;this.Fa=this.Ea=null;this.data=this.H.bind(this);a.subscribe("adunit",this.v,this)}Db.prototype.Ma=function(){var a=!1,b;for(b in this.l){var c=this.l[b];a=a||c.U;if(c.muted||c.ratio<this.A.O.volume||c.O||c.state)return!1}return a?!0:void 0};
Db.prototype.Na=function(){if(this.A.I){var a=!1,b;for(b in this.l){var c=this.l[b];a=a||c.U;if(c.muted||c.ratio<(this.A.I.volume||NaN)||c.I||c.state)return!1}return a?!0:void 0}};
Db.prototype.v=function(a,b,c){function d(l){e.s?Eb(e,l):l.j("rollstate.audio.run")}var e=this,f=Number.MIN_VALUE;switch(a.config.creatype){case 6:case 23:this.aa=200;break;default:this.aa=100}this.A={O:{volume:Math.max(f,(a.config.custom1vol||0)/100),time:Math.max(2E3,1E3*(a.config.custom1volsec||0))}};a.fa=Math.min(a.fa,this.A.O.time);a.config.custom2vol&&a.config.custom2volsec&&(this.A.I={volume:a.config.custom2vol/100,time:1E3*a.config.custom2volsec},a.fa=Math.min(a.fa,this.A.I.time));if(O(c.slot)){c.slot.setAttribute("data-adloox-type",
"slot");c.slot.setAttribute("data-adloox-sid",a.P);f=[c.slot].concat(u(c.slot.getElementsByTagName("*")));for(var g=0;g<f.length;g++)if(N(f[g].muted)&&L(f[g].volume)&&M(f[g].addEventListener)){this.s=f[g];break}}O(c.video)&&L(c.video.volume)&&(c.video.setAttribute("data-adloox-type","video"),c.video.setAttribute("data-adloox-sid",a.P),this.s=c.video);Fb(this);c=[];for(var k in this.l)c.push(k);0<c.length&&(a.B.sa=c);a.g.aud=function(){return e.duration};a.g.aud2=function(){return e.M};this.V=!1;a.ua&&
a.config.targetelt.length&&1==(this.s||{}).defaultMuted?a.subscribe("fw",d):d(a,b)};
function Eb(a,b){function c(e){b.audio.data({id:"audio",U:!0,ratio:e.volume,muted:e.muted})}function d(){b.j("rollstate.audio.run")}a.s.addEventListener("playing",d,b.C.u.L?!1:{passive:!0});a.s.addEventListener("pause",function(){b.j("rollstate.audio.pause")},b.C.u.L?!1:{passive:!0});a.s.addEventListener("volumechange",function(e){e=e.target;a.V&&e.muted?b.j("rollstate.audio.pause"):a.V||e.muted||b.j("rollstate.audio.run");c(e)},b.C.u.L?!1:{passive:!0});c(a.s);!a.s.paused&&3<=a.s.readyState&&!a.s.muted&&
d()}
function Fb(a){a.m.subscribe("impression",function(b,c){function d(){d=J;g.Fa=!0;b.j("audible.custom")}function e(){e=J;g.Ea=!0;b.j("audible.iab")}function f(k,l,h){if(!b.ma)return h;h||(h=[0]);h.length%2==~~k&&h.push(0);h[h.length-1]+=l;return h}var g=this;b.subscribe("audio.booted",function(k,l){var h=this;this.Fa=this.Ea=!1;l=Math.max(c,l);var p=nb(function(){var m=Q()-l;l+=m;var q=h.Ma();N(q)&&(h.duration=f(q,m,h.duration),q&&h.duration&&0==h.duration.length%2&&h.duration[h.duration.length-1]>
h.A.O.time&&e());q=h.Na();N(q)&&(h.M=f(q,m,h.M),q&&h.M&&0==h.M.length%2&&h.M[h.M.length-1]>h.A.I.time&&d())},this.aa);k.subscribe("end",function(){(D||E).clearInterval(p)})},this)},a);a.ia=!1;Gb(a)}Db.prototype.H=function(a){this.l[a.id]=a;!1===this.ia&&Gb(this)};function Gb(a){var b=!0,c;for(c in a.l)b=b&&!1!==a.l[c].S;b&&(a.ia=!0,a.m.j("audio.booted"))};function Hb(a,b,c){this.H=[];this.m=b;this.l=c?null:[];this.v=this.G=null}function Ib(a){function b(f,g){return f[0]-g[0]}function c(f,g){return f[1]-g[1]}if(null===a.l||0==a.l.length)return a.H;var d=a.l.slice(),e=[];e.push(d[0]);e.push(d[d.length-1]);50>e[1][0]-e[0][0]?e.shift():(d.sort(c),e.push(d[0]),e.push(d[d.length-1]),e.sort(b));d=a.H.concat(e);for(a=d.length;1<a--;)d[a][1]===d[a-1][1]&&d.splice(a,1);return d}
function T(a,b,c){c=c||Q();c=Math.floor(c);L(b)&&(b=Math.floor(b),b=isFinite(b)?b:"n");0==a.H.length||null===a.l?(a.H.push([c,b]),a.H.sort(function(d,e){var f=ba(d);d=f.next().value;f.next();e=ba(e);f=e.next().value;e.next();return d-f})):c<a.H[a.H.length-1][0]||(a.l.push([c,b]),a.v?clearTimeout(a.v):a.G=c,a.v=R(function(){a.H=Ib(a);a.l=[];a.G=null;a.v=null},Math.min(100,300-(c-a.G))))}Hb.prototype.toString=function(){return this.data.map(function(a){return a.join("~")}).join(".")};
ea.Object.defineProperties(Hb.prototype,{data:{configurable:!0,enumerable:!0,get:function(){return Ib(this).slice()}}});
function Jb(a){var b=this;this.m=a;this.da=a.C.u&&a.C.u.$?E.top:E;this.l={};a.g.ts=function(){var c=Object.keys(b.l).reduce(function(d,e){"data"in b.l[e]?d.push(e+"-"+b.l[e].data.map(function(f){return f.join("~")}).join(".")):Object.keys(b.l[e]).forEach(function(f){d.push(e+f+"-"+b.l[e][f].data.map(function(g){return g.join("~")}).join("."))});return d},[]).join("_").replace(/-_/g,"_").replace(/-$/,"");return 1500<c.length?null:c};a.subscribe("adunit",function(){b.m.F.s&&(b.timeline("vw",b.mb.bind(b)),
b.timeline("sz",b.Ab.bind(b),["w","h","ws","hs"]),b.timeline("au",b.pb.bind(b)))});this.timeline("pg",this.tb.bind(this));this.timeline("fo",this.sb.bind(this));this.timeline("vp",this.Cb.bind(this),["w","h"]);this.timeline("sc",this.vb.bind(this),["w","h","o","a"]);this.timeline("sr",this.wb.bind(this),["x","y"]);this.timeline("ev",this.rb.bind(this),null,!0)}n=Jb.prototype;
n.timeline=function(a,b,c,d){var e=this,f;c?f=c.reduce(function(g,k){g[k]=new Hb(a+k,e.m,d);return g},{}):f=new Hb(a,this.m,d);if(b)try{if(!b(f))return null}catch(g){return null}return this.l[a]=f};n.mb=function(a){if(!O(this.m.F.s))return!1;var b={threshold:[].concat(u(Array(101).keys())).map(function(c){return c/100}),rootMargin:"1px 1px 1px 1px"};(new E.IntersectionObserver(function(c){c=c[0];T(a,100*c.intersectionRatio,c.time)},b)).observe(this.m.F.s);return!0};
n.Ab=function(a){function b(e){var f=c(d.m.F.s);f&&(T(a.ws,f.w,e),T(a.hs,f.Fb,e))}function c(e){function f(l){var h=l.style.backgroundImage.match(/^url\("?([^")]+)"?\)$/);if(!h)return null;var p=new Image;p.width=l.clientWidth;p.height=l.clientHeight;p.src=h[1];return p}var g=[];if("none"!=e.style.display)if(["VIDEO","IMG"].includes(e.tagName))g.push(e);else if(e.style.backgroundImage){var k=f(e);k&&g.push(k)}e.querySelectorAll("video, img").forEach(function(l){"none"!=l.style.display&&g.push(l)});
e.querySelectorAll('[style*="background-image: url("]').forEach(function(l){"none"!=l.style.display&&(l=f(l))&&g.push(l)});g.sort(function(l,h){return("videoWidth"in l?l.videoWidth:l.naturalWidth)*("videoHeight"in l?l.videoHeight:l.naturalHeight)-("videoWidth"in h?h.videoWidth:h.naturalWidth)*("videoHeight"in h?h.videoHeight:h.naturalHeight)});return(e=g.pop())?{w:("videoWidth"in e?e.videoWidth:e.naturalWidth)/e.clientWidth*100,Fb:("videoHeight"in e?e.videoHeight:e.naturalHeight)/e.clientHeight*100}:
null}var d=this;if(!O(this.m.F.s))return!1;this.m.subscribe("impression",function(e,f){return b(f)});(new E.ResizeObserver(function(e){var f=Q();e=e[0];T(a.w,e.contentRect.width,f);T(a.h,e.contentRect.height,f);b(f)})).observe(this.m.F.s);return!0};n.pb=function(a){function b(){T(a,c.volume*~~!c.muted*100,Q())}var c=this.m.F.s;if(!O(c)||!L(c.volume))return!1;c.addEventListener("volumechange",b);b();return!0};
n.tb=function(a){function b(){T(a,~~("hidden"!=E.document.visibilityState))}if(!("document"in E))return!1;E.document.addEventListener("visibilitychange",b);b();return!0};n.sb=function(a){function b(c){T(a,~~c)}if(this.m.C.u&&(!this.m.C.u.$||this.m.C.u.ha))return!1;this.da.addEventListener("focus",b.bind(this,!0));this.da.addEventListener("blur",b.bind(this,!1));b(this.da.document.hasFocus());return!0};
n.Cb=function(a){function b(){var c=Q();T(a.w,this.da.innerWidth,c);T(a.h,this.da.innerHeight,c)}this.da.addEventListener("resize",b.bind(this));b.apply(this);return!0};
n.vb=function(a){function b(){var d=Q();mb(c);var e=-1;switch(E.screen.orientation.type){case "portrait-primary":e=0;break;case "landscape-primary":e=1;break;case "portrait-secondary":e=2;break;case "landscape-secondary":e=3}T(a.w,E.screen.width,d);T(a.h,E.screen.height,d);-1!=e&&T(a.o,e,d);T(a.a,E.screen.orientation.angle,d);c=R(b,1E3)}if(!("screen"in E))return!1;var c=null;E.screen.orientation.onchange=b;b();return!0};
n.wb=function(a){function b(){var c=Q();T(a.x,this.da.scrollX,c);T(a.y,this.da.scrollY,c)}this.da.addEventListener("scroll",b.bind(this));b.apply(this);return!0};
n.rb=function(a){function b(d,e,f){T(a,d,e?f:Q())}var c=this;b("sb",this.m,jb);this.m.subscribe("start",b.bind(this,"ss"));this.m.subscribe("end",b.bind(this,"se"));this.m.subscribe("rollstate.run",b.bind(this,"rr"));this.m.subscribe("rollstate.pause",b.bind(this,"rp"));b(this.m.ma?"rr":"rp");this.m.subscribe("rollstate.visi.run",b.bind(this,"rvr"));this.m.subscribe("rollstate.visi.pause",b.bind(this,"rvp"));b(this.m.F.V?"rvr":"rvp");this.m.subscribe("rollstate.audio.run",b.bind(this,"rar"));this.m.subscribe("rollstate.audio.pause",
b.bind(this,"rap"));b(this.m.audio.V?"rar":"rap");this.m.subscribe("adunit",function(d){if(d=d.F.s)d.addEventListener("pointerenter",b.bind(c,"pe",null)),d.addEventListener("pointerleave",b.bind(c,"pl",null)),b(d.parentNode.querySelector(":hover")==d?"pe":"pl"),d.addEventListener("pointerdown",b.bind(c,"pd",null)),d.addEventListener("pointerup",b.bind(c,"pu",null)),d.addEventListener("pointercancel",b.bind(c,"pu",null)),b(d.parentNode.querySelector(":active")==d?"pd":"pu")});return!0};
ea.Object.defineProperties(Jb.prototype,{Jb:{configurable:!0,enumerable:!0,get:function(){return this.l}}});var Kb;function Lb(a){var b=1==a.m.config.creatype;if(H&&!b&&a.s){b=[a.A.O.ea];a.A.I&&b.push(a.A.I.ea);try{Kb=new IntersectionObserver(function(c){a.H({id:"intersection",U:!0,ratio:c[0].intersectionRatio})},{threshold:b}),a.H({id:"intersection",S:!1}),Kb.observe(a.s),a.m.subscribe("end",Kb.disconnect.bind(Kb))}catch(c){}}};function Mb(a){var b=1==a.m.config.creatype;if(H&&!b&&a.s&&!Kb&&(!a.m.C.u.$||a.m.C.u.ha)&&M(E.requestAnimationFrame)&&!a.m.C.u.L){var c=function(f){c.hidden[f.i]=f.h;f={id:"animation",S:c.hidden.every(function(g){return void 0!==g}),U:!0};f.O=Nb([c.hidden[0],c.hidden[2],c.hidden[1]]);a.A.I&&(f.I=Nb([c.hidden[3],c.hidden[2],c.hidden[4]]));a.H(f)};c.Hb=function(){function f(l){c.hidden[l]=void 0;var h=k.createElement("iframe");h.style.position="absolute";h.style["pointer-events"]="none";h.style["z-index"]=
c.kb+1;h.style["border-style"]="none";h.style["background-color"]="transparent";h.style.width=h.style.height="8px";if(2==l)h.style.top=h.style.left="50%";else{var p=50-P(100*(3<=l?a.A.I:a.A.O).g.x/a.D.width)+"%";l%3?h.style.top=h.style.left=p:h.style.bottom=h.style.right=p}p=k.createElement("html");var m=k.createElement("head"),q=k.createElement("script");q.innerText="var l, w, h = null, f = function(n){ clearTimeout(w); var hh = n ? n - l > "+Math.floor(.9*a.aa)+" : true; if (h != hh) { h = hh; parent.postMessage({ i: "+
l+", h: h }, '*') }; if (n) setTimeout(q, "+a.aa+") }, q = function(){ l = performance.now(); w = setTimeout(f, "+a.aa+"); requestAnimationFrame(f) }; onload = q";m.appendChild(q);p.appendChild(m);h.sandbox="allow-scripts";h.srcdoc=p.outerHTML;h.onload=function(){c.sources[l]=h.contentWindow};k.body.appendChild(h)}c.sources=[];c.hidden=[];var g=c.proxy.contentWindow,k=g.document;g.onmessage=function(l){c.sources.forEach(function(h){h===l.source&&c(l.data)})};for(g=0;g<3+(a.A.I?2:0);g++)f(g);a.m.subscribe("visi.rect",
function(){var l=Pb(U(a.s)),h=c.proxy.style;h.top=P(a.D.top+l.y)+"px";h.left=P(a.D.left+l.x)+"px";h.width=a.D.width+"px";h.height=a.D.height+"px"})};a.H({id:"animation",S:!1});b=U(a.s).document;c.proxy=b.createElement("iframe");c.proxy.setAttribute("data-adloox-type","proxy");c.proxy.setAttribute("data-adloox-sid",a.m.P);var d=function(){R(function(){if(c.proxy){try{c.proxy.parentNode.removeChild(c.proxy)}catch(f){}delete c.proxy}},0)};c.proxy.onload=function(){try{c.proxy.contentWindow.document&&
c.Hb()}catch(f){d(),a.H({id:"animation",S:!0,state:!1})}};var e=U(c.proxy).getComputedStyle(c.proxy);c.kb=P(e.getPropertyValue("z-index")||0)-1E3;e=c.proxy.style;e.position="absolute";e["pointer-events"]="none";e["z-index"]=c.kb;e["border-style"]="none";e["background-color"]="transparent";b.body.appendChild(c.proxy);a.m.subscribe("end",d)}};function Qb(a){function b(){b=function(){var d=NaN;if(a.D){d=a.s;for(var e=a.D,f=e.width,g=e.height;d;){var k=Rb(d);f=Math.max(Math.min(f,f-Math.abs(Math.min(0,e.left))-Math.abs(Math.min(0,k.width-e.right))),0);g=Math.max(Math.min(g,g-Math.abs(Math.min(0,e.top))-Math.abs(Math.min(0,k.height-e.bottom))),0);(d=a.m.C.frameElement(d))&&(e=a.m.C.Aa(d))}d=f*g/(a.D.width*a.D.height)}a.H({id:"classic",U:!0,ratio:d})};b()}var c=1==a.m.config.creatype;H&&!c&&a.s&&!Kb&&(a.H({id:"classic",S:!1}),a.m.subscribe("visi.rect",
function(){b()}))};function Sb(a,b){function c(){var e={id:"element",U:!0},f=a.s.ownerDocument,g=[a.D.left+P(a.D.width/2),a.D.top+P(a.D.height/2)],k=!f.elementFromPoint(g[0],g[1]);e.O=Nb([!f.elementFromPoint(g[0]-a.A.O.g.x,g[1]-a.A.O.g.y),k,!f.elementFromPoint(g[0]+a.A.O.g.x,g[1]+a.A.O.g.y)]);a.A.I&&(e.I=Nb([!f.elementFromPoint(g[0]-a.A.I.g.x,g[1]-a.A.I.g.y),k,!f.elementFromPoint(g[0]+a.A.I.g.x,g[1]+a.A.I.g.y)]));a.H(e)}var d=1==a.m.config.creatype;H&&!d&&a.s&&!Kb&&!a.m.C.u.$&&a.m.C.u.L&&(a.H({id:"element",S:!0}),b.push(c))}
;function Tb(a,b){function c(){var g={id:"elements",U:!0},k=a.s.ownerDocument.elementsFromPoint(a.D.left+a.D.width/2,a.D.top+a.D.height/2);if(null!==k){var l=k.indexOf(a.s),h=a.s.hidden,p=1<k.filter(function(q){return!e.includes(q.tagName)}).length;k=.7<k.slice(0,l).reduce(function(q,r){return Math.min(1,q+d(r))},0);l=.3>d(a.s);g.state=h||l;var m=[];h&&m.push("hidden");p&&m.push("stacked");k&&m.push("_covered");l&&m.push("invisible");0<m.length&&(a.m.g.view=m.join(","))}a.H(g)}function d(g){g=U(g).getComputedStyle(g).getPropertyValue("opacity");
return P(g)||1}var e=["HTML","BODY"],f=1==a.m.config.creatype;H&&!f&&a.s&&!e.includes(a.s.tagName)&&U(a.s)&&M(E.document.elementsFromPoint)&&(a.H({id:"elements",S:!0}),b.push(c))};function Ub(a,b){function c(){a.H({id:"focus",state:a.m.C.va})}H&&"mraid"!=a.m.C.type&&a.m.C.u.$&&!a.m.C.u.ha&&(a.H({id:"focus",S:!0}),b.push(c))};function Vb(a,b){function c(){a.H({id:"page",state:a.m.C.hidden})}H&&-1==["mraid","omid"].indexOf(a.m.C.type)&&(a.H({id:"page",S:!0}),b.push(c))};function Wb(a){function b(){a.H({id:"takeover",U:!0,state:Pb(U(a.s)).y>Rb(a.s).height})}var c=1==a.m.config.creatype;H&&c&&a.s&&(a.m.subscribe("geometry",b),b())};function Nb(a){if(null!==a[0]&&null!==a[1]&&null!==a[2])return a[1]&&(a[0]||a[2])}function Xb(a){var b=this;this.m=a;this.A=this.s=this.D=null;this.l={};this.V=this.aa=this.ia=null;a.subscribe("rollstate.visi.run",function(){b.V=!0});a.subscribe("rollstate.visi.pause",function(){b.V=!1});this.M=this.duration=this.Y=void 0;this.Ca=this.qa=null;this.data=this.H.bind(this);a.subscribe("adunit",this.v,this)}
Xb.prototype.Ma=function(){var a=!1,b;for(b in this.l){var c=this.l[b];a=a||c.U;if(c.ratio<this.A.O.ea||c.O||c.state)return!1}return a?!0:void 0};Xb.prototype.Na=function(){if(this.A.I){var a=!1,b;for(b in this.l){var c=this.l[b];a=a||c.U;if(c.ratio<(this.A.I.ea||NaN)||c.I||c.state)return!1}return a?!0:void 0}};
Xb.prototype.v=function(a,b,c){function d(m){!h&&c.video?Yb(f,m,c):!h&&O(c.slot)?Zb(m,c):m.j("rollstate.visi.run")}function e(m){f.D=m||null;!f.D&&f.s&&f.m.C.Aa&&(f.D=f.m.C.Aa(f.s));f.D&&(f.A.O.g={x:P(f.D.width*Math.sqrt(f.A.O.ea)/2),y:P(f.D.height*Math.sqrt(f.A.O.ea)/2)},f.A.I&&(f.A.I.g={x:P(f.D.width*Math.sqrt(f.A.I.ea)/2),y:P(f.D.height*Math.sqrt(f.A.I.ea)/2)}));a.j("visi.rect",f.D)}var f=this,g=.5,k=1E3;switch(a.config.creatype){case 6:case 23:this.aa=200;k=2E3;break;default:this.aa=100,!this.m.C.u.Ua&&
this.D&&242500<=this.D.width*this.D.height&&(g=.3)}this.A={O:{ea:Math.max(g,(a.config.custom1area||0)/100),time:Math.max(k,1E3*(a.config.custom1sec||0))}};a.fa=Math.min(a.fa,this.A.O.time);a.config.custom2area&&a.config.custom2sec&&(this.A.I={ea:a.config.custom2area/100,time:1E3*a.config.custom2sec},a.fa=Math.min(a.fa,this.A.I.time));O(c.slot)&&(c.slot.setAttribute("data-adloox-type","slot"),c.slot.setAttribute("data-adloox-sid",a.P),this.s=c.slot);O(c.video)&&(c.video.setAttribute("data-adloox-type",
"video"),c.video.setAttribute("data-adloox-sid",a.P),this.s=c.video);a.subscribe("geometry",function(m,q,r){e(r)});e(c.rect);$b(this);g=[];for(var l in this.l)g.push(l);0<g.length&&(a.B.sv=g);var h=1==this.m.config.creatype,p=null;this.m.subscribe("impression",function(){R(function(){return p=f.D},0)});a.g.size=function(){var m=p||f.D;return null===m?void 0:m.width+"x"+m.height};a.g.pdv=function(){return f.Y};a.g.ad=function(){return f.duration};a.g.ad2=function(){return f.M};a.g.p_d_v=function(){return kb(f.Y)/
1E3};a.g.a_d=function(){return kb(f.duration)/1E3};a.g.wasatf=function(){return 2*~~lb(f.duration)};a.g.visible=function(){return 2*~~f.qa};h?(a.g.wasatf=2,a.g.a_d2=function(){return kb(f.Y)/1E3},a.g.wasatf2=2,a.g.visible2=function(){return 2*~~(2E3<=kb(f.Y))}):this.A.I&&(a.g.a_d2=function(){return kb(f.M)/1E3},a.g.wasatf2=function(){return 2*~~lb(f.M)},a.g.visible2=function(){return 2*~~f.Ca});this.V=!1;a.ua&&a.config.targetelt.length&&"hidden"==this.s.style.visibility?a.subscribe("fw",d):d(a,b)};
function Yb(a,b,c){function d(){b.j("rollstate.visi.run")}c.video.addEventListener("playing",d,b.C.u.L?!1:{passive:!0});c.video.addEventListener("pause",function(){b.j("rollstate.visi.pause")},b.C.u.L?!1:{passive:!0});if(c.video.paused||3>(c.video.readyState||0))var e=nb(function(){a.V?(D||E).clearInterval(e):0<c.video.currentTime&&d()},200);else d()}
function Zb(a,b){var c=0,d=[].concat(u(b.slot.getElementsByTagName("*")));d.push(b.slot);var e=[];d.forEach(function(f){var g="";switch(f.tagName){case "IMG":f.src&&(g=f.src);break;default:var k=K(f.style)&&f.style["background-image"];k&&(k=k.match(/^url\("?([^")]+)"?\)$/))&&(g=k[1])}if(/^https?:/.test(g)&&"none"!=f.style.display&&"none"!=f.style.visibility){var l=function(){l=J;--c||a.j("rollstate.visi.run")};k=function(p,m){l(p,m)};var h="IMG"==f.tagName?f:new Image;h.onload=h.onerror=k;"IMG"!=
f.tagName&&(h.src=g);h.complete||4===h.readyState||0<h.naturalWidth?l=J:(c++,e.push(k))}});c?R(function(){e.forEach(function(f){return f(null,!0)})},2E3):a.j("rollstate.visi.run")}
function $b(a){var b=[];a.m.subscribe("impression",function(c){function d(){d=J;g.Ca=!0;c.j("viewable.custom")}function e(){e=J;g.qa=!0;c.j("viewable.iab")}function f(h,p,m){if(!c.ma)return m;m||(m=[0]);m.length%2==~~h&&m.push(0);m[m.length-1]+=p;return m}var g=this,k=Q(),l=nb(function(){var h=Q()-k;k+=h;b.forEach(function(m){return m()});var p=g.m.C.va||g.m.C.hidden;!g.Y&&p&&(g.Y=[0,1]);g.Y=f(!p,h,g.Y);g.ia&&(p=g.Ma(),N(p)&&(g.duration=f(p,h,g.duration),p&&g.duration&&0==g.duration.length%2&&g.duration[g.duration.length-
1]>g.A.O.time&&e()),p=g.Na(),N(p)&&(g.M=f(p,h,g.M),p&&g.M&&0==g.M.length%2&&g.M[g.M.length-1]>g.A.I.time&&d()))},this.aa);c.subscribe("end",function(){(D||E).clearInterval(l)})},a);Lb(a);Mb(a);Qb(a);Sb(a,b);Tb(a,b);Ub(a,b);Vb(a,b);Wb(a);a.ia=!1;ac(a)}Xb.prototype.H=function(a){this.l[a.id]=a;!1===this.ia&&ac(this)};function ac(a){var b=!0,c;for(c in a.l)b=b&&!1!==a.l[c].S;b&&(a.ia=!0,a.qa=!1,a.Ca=!1,a.m.j("visi.booted"))};function bc(a,b){var c=this;this.C=a;this.P=Math.floor(1E11*Math.random()+1).toString();this.config={};this.v=[];this.data=null;this.g={};this.fa=Infinity;a=hb(b)?[b]:[];yb&&(yb.hash&&a.push(yb.hash.slice(1)),yb.search&&a.push(yb.search.slice(1)));L(E.adloox_pc_viewed)&&a.push("custom2area="+E.adloox_pc_viewed);L(E.adloox_time_viewed)&&a.push("custom2sec="+E.adloox_time_viewed);hb(E.adloox_target)&&a.push("targetelt="+E.adloox_target);cc(this,rb(a.join("&")));this.subscribe=V.bind(this,this);this.unsubscribe=
dc.bind(this,this);this.j=ec.bind(this,this);this.start=this.Bb.bind(this);this.end=this.Va.bind(this);this.Ga=this.qb.bind(this);this.ma=null;this.subscribe("rollstate.run",function(){c.ma=!0});this.subscribe("rollstate.pause",function(){c.ma=!1});this.ended=this.Sa=!1;this.B={sm:this.C.type};this.l=this.ua=null;this.F=new Xb(this);this.audio=new Db(this);this.T=new Jb(this);new Ab(this);this.G=null;this.g.visite_id=this.P;this.g.seq=function(){var k=0;return function(){return k++}}();this.g.test=
function(){return c.config.test};this.g.timezone=ib;this.g.js="tfav_adl_262.js";this.g.date_regen="d6e7f84";this.g.type_crea=function(k){return k.creatype}.bind(this,this.config);this.g.sl=function(){var k=[],l;for(l in c.B){var h=void 0;try{h=JSON.stringify(c.B[l])}catch(p){h="null"}k.push(['"'+l+'"',h].join(":"))}return k.length?k:void 0};for(a=1;21>a;a++)void 0!==this.v[a]&&(this.g["id"+a]=this.v[a]);this.g.p_d=function(){return(Q()-jb)/1E3};this.j("init");var d={px_imp:"impression",px_view:"viewable.iab",
px_viewc:"viewable.custom"};for(e in d)this.subscribe(d[e],function(k){for(var l=(this.config[k]||[]).length;0<l--;)this.j("send",this.config[k][l])}.bind(this,e));var e={4:["VPAID.AdVideoFirstQuartile","OMID.firstQuartile"],5:["VPAID.AdVideoMidpoint","OMID.midpoint"],6:["VPAID.AdVideoThirdQuartile","OMID.thirdQuartile"],7:["VPAID.AdVideoComplete","OMID.complete"]};for(var f in e)for(var g in e[f])this.subscribe(e[f][g],function(k,l){k={visite_id:this.P,id_visiteur:this.P,client:this.g.client,plat:this.g.plat,
tagid:this.g.tagid,tm:(new Date).toISOString(),type_crea:l.creatype,event:k};for(l=1;21>l;l++)void 0!==this.v[l]&&(k["id"+l]=this.v[l]);this.j("send",this.config.urlv,k)}.bind(this,f,this.config));this.subscribe("send.visi",this.Oa,this);this.subscribe("start",function(){c.config.ping&&c.subscribe("impression",c.ub,c);c.j("send.tracked",c.config.urlt0,c.g)});this.subscribe("config",function(k,l,h){l=h.keywords||[];delete h.keywords;if(0<Object.keys(h).length){var p=["tagid","ping","vast","vast_skiptracking"].concat(u(Object.keys(d)),
["px_viewn","px_viewu","js_imp"]);k.config=p.reduce(function(m,q){q in k.config&&(m[q]=k.config[q]);return m},{})}cc(k,rb(qb(h)));k.config.fwtype=1==k.config.creatype?2:k.config.fwtype||1;k.ua=!(2==k.config.fwtype||4==k.config.fwtype);switch(k.config.fwtype){case 2:h="log";break;case 3:h="wl";break;default:h=k.config.fwtype}k.g.fw=h;k.C.eb(k,l)});this.subscribe("end",function(k,l){c.Oa(k,l,!0);for(k=(c.config.bridge||[]).length;0<k--;)c.j("send",c.config.bridge[k]);if(N(c.ma)){var h;null===c.F.qa?
h="px_viewu":!1===c.F.qa&&(h="px_viewn");for(k=(c.config[h]||[]).length;0<k--;)c.j("send",c.config[h][k])}});this.subscribe("adunit",function(k,l,h){if(O(h.slot)){l=function(v){if(1==v.ownerDocument.querySelectorAll(v.nodeName.toLowerCase()).length)return"";if(v.id)return"#"+p(v.id);if(v.name)return"[name='"+p(v.name)+"']";if(v.className){var x=[],C=[];v.classList.forEach(function(y){y="."+p(y);x.push(y);try{1==v.ownerDocument.querySelectorAll(y).length&&C.push(y)}catch(A){}});C.sort(function(y,A){return y.length-
A.length});return C[0]||x.join("")}return""};var p=function(v){try{return CSS.escape(v)}catch(x){}return v},m=[],q=h.slot;for(h=q.ownerDocument.defaultView;q.nodeType===Node.ELEMENT_NODE;){var r=q.nodeName.toLowerCase(),z=l(q);if(!z){for(var I=q,t=1;I=I.previousElementSibling;)I.nodeName.toLowerCase()==r&&t++;1!=t&&(z=":nth-of-type("+t+")")}m.unshift(""+r+z);if("#"==z.substr(0,1))break;q=q.parentNode}for(;h!=h.parent;){q="";r=null;try{r=h.frameElement}catch(v){}r&&(q=l(r));if(!q)for(r=h.parent.frames.length;0<
r--;)if(h.parent.frames[r]==h){0<r&&(q=":nth-of-type("+(r+1)+")");break}m.unshift("iframe"+q);h=h.parent}k.g.d2=m.join(">")}R(function(){function v(){v=J;k.j("rollstate.run");k.j("impression")}var x=null;k.F.s?x="visi":k.audio.s&&(x="audio");x?k.subscribe("rollstate."+x+".run",function(){v()}):v()},0)})}
function cc(a,b){for(var c in b)if(a.config[c]=b[c].filter(function(f){return!!f.length}),a.config[c].length){var d=sb(a.config[c]);if(c.match(/^id[0-9]+$/)){var e=P(c.substr(2));0<e&&(a.config[c]=a.v[e]=d)}else switch(c){case "fwtype":d=P(d);a.config[c]=1<=d&&4>=d?d:1;break;case "creatype":case "tagid":case "custom1area":case "custom2area":case "custom1vol":case "custom2vol":a.config[c]=P(d);0<a.config[c]||delete a.config[c];break;case "custom1sec":case "custom2sec":case "custom1volsec":case "custom2volsec":a.config[c]=
parseFloat(d);0<a.config[c]||delete a.config[c];break;case "ping":a.config[c]=P(d);isNaN(a.config[c])&&delete a.config[c];break;case "id":case "vast":case "url":case "urlt":case "urlt0":case "urle":case "urlv":a.config[c]=d;break;case "client":delete a.config[c];break;case "vast_skiptracking":a.config[c]=!0}}else delete a.config[c];a.config.creatype||(a.config.creatype=2);a.config.targetelt||(a.config.targetelt=[]);for(b=a.config.targetelt.length;0<b--;)a.config.targetelt[b].length||a.config.targetelt.splice(b,
1);"russia"==a.v[12]&&(a.config.fwtype=2);a.g.tagid=a.config.tagid;a.g.client=a.config.client||"wikio";if(a.config.url||a.config.urlt||a.config.urlt0)a.config.fwtype=4;a.config.url||(a.config.url="https://data00.adlooxtracking.com/ads");a.config.urlt||(a.config.urlt=a.config.url+"/ic5.php");a.config.urlt0||(a.config.urlt0=a.config.urlt);a.config.urle||(a.config.urle=a.config.url+"/err.php");a.config.urlv||(a.config.urlv="https://pixel.adlooxtracking.com/ads/vast/vast_tracker.php");b=E.tab_adloox_transaction_id_wikio instanceof
Array?E.tab_adloox_transaction_id_wikio[0]:a.config.transaction_id;void 0!==b&&(a.config.transaction_id=b);a.P=a.config.id||a.P}n=bc.prototype;n.Bb=function(){function a(){b.Sa=!0;b.j("start")}var b=this,c=R(function(){this.Va()}.bind(this),117E4);this.subscribe("end",function(){mb(c)});this.C.Pa?V(null,"manager.booted",a):a()};n.Va=function(){this.ended||(this.ended=!0,this.j("end"))};n.qb=function(a,b){this.config[a]=(this.config[a]||[]).concat(b)};
n.ub=function(a){function b(){c.ended||(e=R(function(){c.Oa(a,Q(),!1);d=!0;b()},Math.floor(1E3*(d?f+f/4*Math.random():g+.5+2*Math.random()))),f=Math.min(64,2*Math.max(f,1)))}var c=this,d,e,f=1,g=this.fa/1E3;b();this.subscribe("viewable.iab",function(){mb(e);g=-.5;f=0;b()})};n.Oa=function(a,b,c){!this.Sa||this.ended&&!c||this.l||!c&&500>b-this.G||(this.G=b,this.j("send",this.config.urlt,this.g))};var fc=!1,gc={},hc=[],ic=0;function jc(a,b){if(null==b.K||b.K==a.K)try{b.Qa.apply(b.context||null,[a.K,a.Kb].concat(a.ib))}catch(c){a.K.j("error",{err:c.message,"%b":c.stack})}}function kc(){L(fc)&&mb(fc);for(fc=!0;ic<hc.length;ic++)for(var a=hc[ic],b=gc[a.name]||[],c=0;c<b.length;c++)jc(a,b[c]);fc=!1}function ec(a,b){var c=pa.apply(2,arguments);u(c);hc.push({K:a,Kb:Q(),name:b,ib:c});!0!==fc&&(a&&a.ended?kc():!1===fc&&(fc=R(kc,0)))}
function V(a,b,c,d){gc[b]||(gc[b]=[]);a={K:a,Qa:c,context:d};gc[b].push(a);for(c=0;c<ic;c++)d=hc[c],d.name==b&&(J.apply(null,["fire [playback]",d.name].concat(u(d.ib))),jc(d,a))}function dc(a,b,c){for(var d=gc[b]||[],e=d.length;0<e--;){var f=d[e];f.K!=a||f.Qa!=c&&f.Qa.Eb!=c||gc[b].splice(e,1)}};function lc(a,b){this.type=b||"base";this.pa=!1;this.Pa=1;this.W={};this.va=this.hidden=null;this.u={};this.ga=this.nb.bind(this);this.l=this.ob.bind(this);a("session manager",this.type);V(null,"fw",this.xa,this);V(null,"send.tracked",this.zb,this);V(null,"send",this.xb,this);V(null,"error",this.yb,this)}n=lc.prototype;n.nb=function(){this.Pa++};n.ob=function(){--this.Pa||ec(null,"manager.booted")};n.xa=function(a,b,c){a.l=c.state;a.l&&a.end()};n.xb=function(a,b,c,d){this.ra(a,c,d)};
n.ra=function(){throw"__send unsupported";};n.zb=function(a,b,c,d){this.La(a,c,d)};n.La=function(){throw"__send_tracked unsupported";};n.yb=function(a,b,c){this.pa||(this.pa=!0,c.client="wikio"+(a.config.client?":"+a.config.client:""),c.js="tfav_adl_262.js",c.visite_id=a?a.P:0,this.ra(a,a.config.urle,c));this.pa=!1};function U(a){a=a.ownerDocument;return!!a&&(a.defaultView||a.parentWindow)}
n.url=function(a,b,c){var d=1==a.config.creatype;M(b)&&(b=b());if(hb(b)&&b==b.trim())return c=c?qb(c):null,b+=c?(-1==b.indexOf("?")?"?":"&")+c:"",b.split("[ADL_SID]").join(a?a.P:0).split("[ADL_TYPE]").join(a?a.F.s?"vis":a.audio.s?"aud":"???":"").split("[ADL_IMP]").join(~~(a&&N(a.ma))).split("[ADL_VW]").join(a&&N(a.F.qa)?~~a.F.qa:"").split("[ADL_VWC]").join(a?d?~~(2E3<=kb(a.F.Y)):N(a.F.Ca)?~~a.F.Ca:"":"").split("[ADL_ATF]").join(a&&void 0!==a.F.duration?~~lb(a.F.duration):"").split("[ADL_AD]").join(a&&
N(a.audio.Ea)?~~a.audio.Ea:"").split("[ADL_ADC]").join(a&&N(a.audio.Fa)?~~a.audio.Fa:"").split("[ADL_DP]").join(a&&void 0!==a.F.Y?a.F.Y:"").split("[ADL_DV]").join(a&&void 0!==a.F.duration?a.F.duration:"").split("[ADL_DVC]").join(a&&void 0!==a.F.M?a.F.M:"").split("[ADL_DA]").join(a&&void 0!==a.audio.duration?a.audio.duration:"").split("[ADL_DAC]").join(a&&void 0!==a.audio.M?a.audio.M:"").split("[ADL_FW]").join(a&&N(a.l)?~~a.l:"").split("[ERRORCODE]").join(901).split(/(?:\[|$\{|%%)(?:RANDOM|CACHEBUST[A-Z]*)(?:\]|\}|%%)/i).join(Math.floor(99E6*
Math.random()+1E6)).split(/\[TIMESTAMP\]/i).join(pb((new Date).toISOString()))};n.eb=function(a){a.l=!1;a.j("fw",{state:a.l})};function mc(a,b){this.ya="__"+a+"api";this.pa="tcf"==a?2:1;this.v=b;this.l=null;if("function"==typeof E[this.ya])b=E[this.ya];else a:{b=E;do{b=b.parent;var c=void 0;try{c=b.frames[this.ya+"Locator"]}catch(d){}if(c){b=nc(this,c.parent);break a}}while(b!=E.top);b=this.Z}this.l=b;this.G="get"+("tcf"==a?"TC":"USP")+"Data"}function oc(a,b){b=[a.G,a.pa,b];a.v&&b.push([a.v]);a.l.apply(null,b)}mc.prototype.K=function(a){[1650].includes(a.config.tagid)&&(this.l=this.ga)};
mc.prototype.Z=function(a,b,c){c({msg:"CMP not found"},!1)};mc.prototype.ga=function(a,b,c){c({msg:"CMP handled OOB"},!1)};
function nc(a,b){var c={},d={};E.addEventListener("message",function(e){var f=this.ya+"Return",g=e.data[f]&&e.data[f].callId;g in c&&(mb(d[g]),delete d[g],c[g](e.data[f].returnValue,e.data[f].success),delete c[g])},!1);return function(e,f,g,k){var l=Math.random().toString(16).substr(2);c[l]=g;d[l]=R(function(){g({msg:"CMP deadline"});delete c[l];delete d[l]},2E3);var h={};h[this.ya+"Call"]={command:e,parameter:k,version:f,callId:l};b.postMessage(h,"*")}.bind(a)};function pc(a,b){function c(){for(var g in d.W)d.W[g].end()}lc.call(this,a,b);var d=this;this.u=qc(this);"onpagehide"in E?E.addEventListener("pagehide",c,this.u.L?!1:{passive:!0}):(E.addEventListener("beforeunload",c,this.u.L?!1:{passive:!0}),E.addEventListener("unload",c,this.u.L?!1:{passive:!0}));this.hidden="hidden"==E.document.visibilityState;this.Z=!this.hidden;E.document.addEventListener("visibilitychange",function(){a("visibilitychange",E.document.visibilityState);d.hidden="hidden"==E.document.visibilityState;
d.Z=d.Z||!d.hidden;if("unloaded"==E.document.visibilityState)c();else if(d.hidden)for(var g in d.W)d.W[g].Sa&&!d.W[g].ended&&d.W[g].j("send.visi")},this.u.L?!1:{passive:!0});this.u.$&&!this.u.ha&&"mraid"!=b&&(this.va=!E.top.document.hasFocus(),E.top.addEventListener("focus",function(){a("focus",!0);d.va=!1},this.u.L?!1:{passive:!0}),E.top.addEventListener("blur",function(){a("focus",!1);d.va=!0},this.u.L?!1:{passive:!0}));this.lb=(E.document.cookie||"").split(/\s*;\s*/g).reduce(function(g,k){k=k.split("=");
g[decodeURIComponent(k[0])]=decodeURIComponent(k[1]);return g},{});V(null,"adunit",function(g,k,l){function h(){g.ended||h.$a||(h.$a=!0,R(function(){h.$a=!1;g.j("geometry")},200))}if(l.video||l.slot)(l.video||l.slot).addEventListener("mouseenter",h,d.u.L?!1:{passive:!0}),(l.video||l.slot).addEventListener("mouseleave",h,d.u.L?!1:{passive:!0});for(k=l.video&&U(l.video)||l.slot&&U(l.slot)||E;;)try{k.addEventListener("resize",h,d.u.L?!1:{passive:!0});k.addEventListener("scroll",h,d.u.L?!1:{passive:!0});
if(k==E.top)break;k=k.parent}catch(p){break}});V(null,"init",function(g){rc(g.config.url);for(var k=(g.config.bridge||[]).length;0<k--;)rc(g.config.bridge[k]);"ping"in g.config||!(d.hidden||d.u.Ua||d.u.ha)||"vpaid"==b||(g.config.ping=1);g.config.test=d.lb.adloox_test;"cookieDeprecationLabel"in E.navigator?(g.g.d3="_pending",E.navigator.cookieDeprecationLabel.getValue().then(function(l){g.g.d3=l})):g.g.d3="_na";sc(g)});V(null,"impression",function(g){(g.config.js_imp||[]).forEach(function(k){var l=
E.document.createElement("iframe");l.style.display="none";l.src="javascript:false";l.onload=function(){var h=l.contentWindow.document.createElement("script");h.src=d.url(g,k);l.contentWindow.document.head.appendChild(h)};tc(l,S);g.subscribe("end",function(){l.parentNode.removeChild(l)})});(g.config.html_imp||[]).forEach(function(k){var l=E.document.createElement("iframe");l.style.display="none";l.src=k;tc(l,S);g.subscribe("end",function(){l.parentNode.removeChild(l)})})});M(E.navigator.getUserAgent)&&
(this.ga(),E.navigator.getUserAgent().then(function(g){a("CH-UA",g);V(null,"init",function(k){for(var l in g)hb(g[l])&&g[l].length&&(k.g["ch_ua_"+l]=g[l])});d.l()}));var e=new mc("tcf",93);this.ga();var f=new mc("usp");this.ga();V(null,"init",function(g){e.K(g);oc(e,function(k,l){a("IAB Privacy TCF",k,l);V(null,"init",function(h){h.g.tc=N(l)&&K(k)?k.tcString:""});d.l()});f.K(g);oc(f,function(k,l){a("IAB Privacy CCPA",k,l);V(null,"init",function(h){h.g.usp=N(l)&&K(k)?k.uspString:""});d.l()})})}
la(pc,lc);function Pb(a){var b=a.document;b=b.documentElement||b.body.parentNode||b.body;var c=void 0!==a.pageXOffset;return{x:P(c?a.pageXOffset:b.scrollLeft),y:P(c?a.pageYOffset:b.scrollTop)}}function Rb(a){var b=U(a);a=a.ownerDocument.documentElement;return{width:Math.max(a.clientWidth,b.innerWidth||0),height:Math.max(a.clientHeight,b.innerHeight||0)}}n=pc.prototype;n.frameElement=function(a){a.ownerDocument&&(a=U(a));try{return a.frameElement}catch(b){return null}};
n.Aa=function(a){var b=null;try{b=a.getBoundingClientRect(),b={left:P(b.left),right:P(b.right),top:P(b.top),bottom:P(b.bottom)},b.width=b.right-b.left,b.height=b.bottom-b.top}catch(c){}return b};
function qc(a){var b={};b.Qb=!!E.InstallTrigger;b.Rb=/Apple/.test(E.navigator.vendor)&&!/CriOS|FxiOS/.test(E.navigator.userAgent);b.Ib=!!E.opera;b.Ob=!b.Ib&&!!E.chrome;b.L="documentMode"in E.document;b.Pb=!b.L&&/Edge?\/[1-9]/.test(E.navigator.userAgent);b.Ua=/Android|webOS|iP(?:hone|od|ad)|BlackBerry|mobi|Opera Mini/i.test(E.navigator.userAgent);b.ha=/Version\/[0-9.]+ Chrome\/[0-9.]+ Mobile|iP(?:hone|od|ad).*AppleWebKit(?!.*Version\/[0-9.]+)|; wv/.test(E.navigator.userAgent);b.Ka=E!=E.top;try{b.$=
!!E.top.document}catch(d){b.$=!1}b.Za=(E.location.ancestorOrigins||[])[0];b.title=E.document.title||"";b.ka=function(){function d(e,f,g){g?(e=(e+"").slice(g).lastIndexOf(f),-1!=e&&(e+=g)):e=(e+"").lastIndexOf(f);return 0<=e?e:!1}try{return E.parent.parent.location.href}catch(e){try{return E.parent.location.href}catch(f){return d(f.message,"<",0)?f.message.substring(d(f.message,"<",0)+1,d(f.message,">",0)):E.location.href}}}()||"";var c=b.ka;if(b.Ka){b.ka=E.document.referrer;b.$&&(b.ka=E.location.href);
"about:blank"==b.ka&&(b.ka=E.location.href);try{b.title=a.frameElement(E).id+"@"+location.href}catch(d){b.title="frame without title"}}""==b.ka&&(b.ka=c);return b}
function sc(a){var b=[];("callPhantom"in E||"_phantom"in E||"phantom"in E)&&b.push("phantom");("callSelenium"in E||"_selenium"in E)&&b.push("selenium");"__nightmare"in E&&b.push("nightmare");E.navigator.webdriver&&b.push("webdriver");E.document.documentElement.getAttribute("selenium")&&b.push("docselenium");Object.keys(E).some(function(c){return/^\$cdc_/.test(c)})&&b.push("cdc");Object.keys(E).some(function(c){return/^\$wdc_/.test(c)})&&b.push("wdc");E.document.documentElement.getAttribute("webdriver")&&
b.push("docwebdriver");E.document.documentElement.getAttribute("driver")&&b.push("docdriver");/Chrome/.test(E.navigator.userAgent)&&"Google Inc"==E.navigator.vendor&&!E.navigator.plugins.length&&b.push("plugins");""===E.navigator.languages&&b.push("languages");(function(c){return!(!c.getContext||c.getContext("webgl"))})(E.document.createElement("canvas"))&&b.push("webgl");0<b.length&&(a.g.headless=b.join(","));b=[];Object.getOwnPropertyDescriptor(E.navigator,"userAgent")&&b.push("ua");(function(c,
d){return c[d]instanceof Function&&!!c[d].toString().match("^function "+d+"\\(\\) \\{\\s+\\[native code\\]\\s+\\}$")})(E,"IntersectionObserver")||b.push("io");Object.getOwnPropertyDescriptor(E.document,"hidden")&&b.push("hidden");0<b.length&&(a.g.falsify=b.join(","))}function rc(a){a=ob(a);a=a.protocol+"//"+a.host;var b=E.document.createElement("link");b.rel="preconnect";b.href=a;E.document.head.appendChild(b)}
function tc(a,b){b?b.parentNode.insertBefore(a,b.nextSibling):(E.document.body||E.document.head).appendChild(a)}function Y(a){return K(a)?(a.textContent||a.innerText||"").trim():null}
n.ra=function(a,b,c){var d=c&&c["%b"]||null;if(d){var e="text/plain";c["%t"]&&(e=c["%t"],delete c["%t"]);d=new Blob([d],{type:e});delete c["%b"]}var f=this.url(a,b,c);if(f){b=function(){if(!a||a.ended||d){try{var k=new XMLHttpRequest;k.open(d?"POST":"GET",f,a?!a.ended:!0);k.send(d)}catch(l){return}return!0}};if(c=!(M(E.fetch)?function(){var k=new Request(f,{mode:"no-cors",cache:"no-cache",keepalive:!0,method:d?"POST":"GET",body:d});if("keepalive"in k)return E.fetch(k),!0}:J)()){a:{if(M(E.navigator.sendBeacon))try{var g=
E.navigator.sendBeacon(f,d);break a}catch(k){}g=void 0}c=!g}c&&!b()&&((new Image).src=f);a.ended&&"undefined"!=typeof console&&console.debug("")}};
n.La=function(a,b){var c=this;a.g.fai=this.u.title;a.g.iframe=this.u.Ka?this.u.$?3:1:0;a.g.resolution=E.screen.width+"x"+E.screen.height;a.g.nav_lang=E.navigator.language;a.g.url_referrer=this.u.ka.substr(0,500);a.g.ao=this.u.Za;a.g.activetab=function(){return~~c.Z};var d=this.url(a,b,a.g)+"&cf=1";if(d){var e=function(){function g(p){k||a.j("config",p);k=!0}var k=!1,l=String.fromCharCode(97+26*Math.random())+Math.random().toString(16).substr(2);Object.defineProperty(E,l,{value:g.bind(c)});var h=E.document.createElement("script");
h.src=d+"&jsonp="+l;h.setAttribute("data-adloox-sid",a.P);h.onerror=function(){a.j("send",b,a.g);g({})};tc(h,S||E.document.head)};try{var f=new XMLHttpRequest;f.open("GET",d);f.timeout=5E3;f.ontimeout=f.onerror=e;f.onload=function(){if(400<=f.status)return e();var g=f.responseText.trim();try{g=JSON.parse(g)}catch(k){}a.j("config",g)};f.send(null)}catch(g){e()}}};n.url=function(a,b,c){if(b=lc.prototype.url.call(this,a,b,c))return b.split("[ADL_DOM]").join(ob(this.u.Za||E.origin).hostname||"")};
n.eb=function(a,b){var c=this;if(!N(a.l)){var d=function(){c.ra(a,a.config.urlt,a.g);a.j("fw",{state:a.l})};a.l=!1;if(4==a.config.fwtype)d();else if("%%BLOCK%%"==b)a.ua&&(a.l=!0),d();else{var e={},f=Infinity,g=b.map(function(m){return m.split("+").map(function(q){return q.trim().toLowerCase()})}).filter(function(m){return m.every(function(q){return 0<q.length?(f=Math.min(f,q.length),!0):!1})}).filter(function(m){m=m.sort().join("+");if(m in e)return!1;e[m]=1;return!0});if(g.length){var k=function r(q){if(q){for(var z=
[q],I=K(q.frames)?q.frames.length:0;0<I--;)z.push.apply(z,u(r(q.frames[I])));return z}}(E.top).reduce(function(q,r){try{q.push.apply(q,u(r.document.querySelectorAll("title,p")))}catch(z){}return q},[]).filter(function(q){return!q.closest("a")}).map(function(q){q=q.cloneNode(!0);q.querySelectorAll("a").forEach(function(r){return r.remove()});return Y(q).toLowerCase()}).filter(function(q){return 0<q.length});var l=k.reduce(function(q,r){return r.split(/[^\p{L}]/u).reduce(function(z,I){I.length>=f&&
(z[I]=1);return z},q)},{})}var h=g.length,p=function(){for(;0<h--;){if(g[h].every(function(m){return-1!=m.indexOf(" ")?k.some(function(q){return-1!=q.indexOf(m)}):m in l})){a.ua&&(a.l=!0);a.g.ads_forceblock=1;a.g.alerte_desc="keyword content:"+g[h].join("+");c.ra(a,a.config.urlt,a.g);break}if(0==h%100&&0<=h)return R(p,0)}a.j("fw",{state:a.l})};p()}}};function uc(a){function b(){b=J;c.start()}pc.call(this,a,"browser");var c=new bc(this);this.W[c.P]=c;S&&S.setAttribute("data-adloox-sid",c.P);this.v=10;c.subscribe("config",this.G,this);"prerender"==E.document.visibilityState?E.document.addEventListener("visibilitychange",b,this.u.L?!1:{passive:!0,once:!0}):b();this.l()}la(uc,pc);
uc.prototype.xa=function(a,b,c){a.ua&&a.subscribe("impression",function(d){var e=d.F.s||E.document.body;"BODY"!=e.tagName||d.C.u.Ka||d.C.u.ha||(e=null);e&&(c.state?e.style.visibility="hidden":"hidden"==e.style.visibility&&d.config.targetelt.length&&(e.style.visibility="visible"));(d=d.audio.s)&&c.state&&(d.muted=!0)});pc.prototype.xa.call(this,a,b,c)};
uc.prototype.G=function(a){function b(){var l=d?c.u.$?E.top.document.documentElement:void 0:vc(c,a);l?(a.B.hunt=g,a.j("adunit","VIDEO"==l.tagName?{video:l}:{slot:l})):null===l?(k++,R(b,Math.min(5E3,k*k*200))):(a.B.hunt="died",a.end())}var c=this,d=1==a.config.creatype,e=S?S.parentNode:null;if(!d&&!a.config.targetelt.length&&e){var f=/ celtra-ad-v[34] /.test(" "+e.className+" ")?e:e.querySelector(".celtra-ad-v3,.celtra-ad-v4");if(f){a.B.hunt="celtra0";e=function(){var l=f.celtra.viewabilityObservee;
a.B.hunt="celtra";a.j("adunit","VIDEO"==l.tagName?{video:l}:{slot:l})};(f.celtra||{}).loaded?e():f.addEventListener("celtraLoaded",e,this.u.L?!1:{passive:!0});return}}var g=d?"takeover":a.config.targetelt.length?"targetelt":"wabbit";a.B.hunt=g+"0";var k=0;b()};
function vc(a,b){function c(t){for(var v=[E],x=0;x<v.length;x++){var C,y=v[x];if(y){for(C=K(y.frames)?y.frames.length:0;0<C--;)-1==v.indexOf(y.frames[C])&&v.push(y.frames[C]);if(K(y.parent)&&y!=y.parent)for(-1==v.indexOf(y.parent)&&v.push(y.parent),C=K(y.parent.frames)?y.parent.frames.length:0;0<C--;)-1==v.indexOf(y.parent.frames[C])&&v.push(y.parent.frames[C])}}for(x=0;x<t.length;x++)for(C=0;C<v.length;C++){y=void 0;try{y=v[C].document}catch(B){}if(y&&y.body){var A=void 0;try{A=y.getElementById(t[x])}catch(B){A=
null}if(A)return A;try{A=y.body.getElementsByClassName(t[x])}catch(B){A=[]}if(A.length)return A[0];try{A=y.body.querySelector(t[x])}catch(B){A=null}if(A)return A}}return null}function d(t){function v(Na){var ma=Math.log(a.v-A+2);ma*=ma;if(!x)return ma;var Ob=g(C);Na=g(Na);!Ob&&Na?ma*=.2:Ob&&!Na&&(ma*=5);return ma}var x=null,C=null,y=null,A=a.v,B=t;if(B.ownerDocument.head.contains(B)){B=B.ownerDocument.body.lastChild;if(!B)return null;do B=B.previousSibling;while(B&&1!=B.nodeType)}var G=null,F=null,
W=null,X=null,na=0,oa=0;do{if(!G&&!F&&B&&"BODY"!=B.tagName){G=F=W=X=B;(B=B.parentNode)&&"BODY"==B.tagName&&(B=null);do F=F.nextSibling;while(F&&1!=F.nodeType)}if(G&&na>=oa){var ya=(W=k(G))&&v(W);!W||x&&W.width*W.height/ya<C.width*C.height/y||!e(G,W)||(x=G,y=ya,C=W);W=G;do G=G.previousSibling;while(G&&1!=G.nodeType);for(;G&&G.children&&G.children.length;)G=G.children[G.children.length-1],na++}if(F&&oa>=na){ya=(X=k(F))&&v(X);!X||x&&X.width*X.height/ya<C.width*C.height/y||!e(F,X)||(x=F,y=ya,C=X);X=F;
do F=F.nextSibling;while(F&&1!=F.nodeType);for(;F&&F.children&&F.children.length;)F=F.children[0],oa++}!G&&W&&na>=oa&&((G=W.parentNode)&&"BODY"==G.tagName&&(W=G=null),na--);!F&&X&&oa>=na&&((F=X.parentNode)&&"BODY"==F.tagName&&(X=F=null),oa--)}while((G||F||B)&&0<A--);x||250!=a.v||"complete"!==t.ownerDocument.readyState||(x=void 0);a.v=Math.min(250,2*a.v);return x}function e(t,v){if(!O(t))return!1;switch(t.tagName){case "DIV":var x=t.style["background-image"];if(x&&!/^url\("?([^")]+)"?\)$/.test(x))break;
case "SPAN":if(t.innerText&&t.innerText.trim())break;case "ARTICLE":case "VIDEO":case "IMG":case "CANVAS":case "OBJECT":case "EMBED":case "SVG":case "IFRAME":case "INS":return"proxy"!=t.getAttribute("data-adloox-type")&&f(t,v)}return!1}function f(t,v){if(t.clientWidth+5<t.scrollWidth)return!1;v=v||a.Aa(t);if(20>v.width||20>v.height)return!1;t=Pb(U(t));return 0<=v.top+t.y+5&&0<=v.left+t.x+5}function g(t){return!!{"390x220":1,"320x240":1,"320x250":1,"320x300":1,"600x400":1,"330x280":1,"320x100":1,"970x250":1,
"320x50":1,"120x20":1,"160x20":1,"210x30":1,"300x600":1,"300x1050":1,"970x90":1,"300x250":1,"180x150":1,"160x600":1,"720x90":1,"970x60":1,"120x60":1,"80x30":1,"600x250":1,"600x150":1,"600x600":1,"720x310":1,"550x480":1}[t.width+"x"+t.height]}function k(t){if(t=a.Aa(t))t.width=10*(t.width/10|0),t.height=10*(t.height/10|0);return t}var l=S||E.document.body;try{if(b.config.targetelt.length)return c(b.config.targetelt);var h=l;try{for(;!f(h)&&U(h)!=E.top;){h=a.frameElement(h);if(!h)break;l=h}}catch(t){}h=
null;h=d(l);var p=a.frameElement(l);!h&&p&&(h=d(p));if(!h&&(U(l)!=E.top||b.C.u.ha)){var m=l.ownerDocument.body;m&&f(m)&&(h=m)}if(!h&&p&&(U(p)!=E.top||b.C.u.ha)){var q=p.ownerDocument.body;q&&f(q)&&(h=q)}if(h)for(var r=k(h);;){var z=h.parentNode;if(!z||!e(z))break;var I=k(z);if(!I||r.width!=I.width||r.height!=I.height)break;h=z}return h}catch(t){b.j("error",{err:t.message,"%b":t.stack})}};function wc(a){function b(){K(E.mraid)&&M(E.mraid.getState)?"loading"==E.mraid.getState()?E.mraid.addEventListener("ready",c):c():b.t=R(b,200)}function c(){d.j("MRAID.ready");d.B.mraid={version:E.mraid.getVersion(),env:E.MRAID_ENV};1<d.B.mraid.version&&(d.B.mraid.type=E.mraid.getPlacementType());d.F.data({id:"mraid",S:!1});R(d.start,0)}pc.call(this,a,"mraid");this.v=this.G=null;var d=new bc(this);this.W[d.P]=d;d.config.creatype=2;S&&S.setAttribute("data-adloox-sid",d.P);d.subscribe("start",this.Ba,
this);b();this.l()}la(wc,pc);wc.prototype.xa=function(a,b,c){if(c.state)try{E.mraid.close(),E.mraid.close(),E.mraid.unload()}catch(d){}pc.prototype.xa.call(this,a,b,c)};
wc.prototype.Ba=function(a){var b=this,c=a.T.timeline("vwm"),d=a.T.timeline("szm",null,["w","h"]),e=a.T.timeline("scm",null,["w","h","o"]),f=a.T.timeline("pgm"),g=Q();this.G="hidden"==E.mraid.getState();T(f,~~!this.G,g);E.mraid.addEventListener("stateChange",function(m){a.j("MRAID.stateChange",m);b.G="hidden"==m;T(f,~~!b.G);b.G&&a.j("send.visi");xc(b,a)});if(3<=a.B.mraid.version){E.mraid.addEventListener("exposureChange",function(m){a.j("MRAID.exposureChange",m);b.v=m/100;T(c,m);xc(b,a)});var k=a.T.timeline("aum");
E.mraid.addEventListener("audioVolumeChange",function(m){T(k,m)})}else this.v=~~E.mraid.isViewable(),T(c,100*this.v,g),E.mraid.addEventListener("viewableChange",function(m){a.j("MRAID.viewableChange",m);b.v=~~m;T(c,100*b.v);xc(b,a)});if(1<a.B.mraid.version){var l=function(){var m=Q(),q=E.mraid.getScreenSize();T(e.w,q.width,m);T(e.h,q.height,m);R(l,1E3)},h=E.mraid.getScreenSize();a.g.resolution=h.width+"x"+h.height;l()}if(2<=a.B.mraid.version){h=function(m,q,r){r=r||Q();T(d.w,m,r);T(d.h,q,r);if(3<=
a.B.mraid.version){m=-1;switch(E.mraid.getCurrentAppOrientation().orientation){case "portrait":m=0;break;case "landscape":m=1}-1!=m&&T(e.o,m,r)}};E.mraid.addEventListener("sizeChange",h);var p=E.mraid.getCurrentPosition();h(p.width,p.height,g)}xc(this,a);a.j("adunit",{slot:E.document.documentElement})};function xc(a,b){b.F.data({id:"mraid",state:a.G,ratio:a.v})};function yc(a){pc.call(this,a,"vpaid");var b=this;this.K=null;this.hb=[];this.v=this.ab=this.za=this.Ha=this.Ta=this.height=this.width=this.N=this.slot=this.J=null;this.Ja=2;this.oa=Infinity;this.ta=this.Ya=this.ja=null;this.Ra=this.wa=!1;this.volume=null;this.G=0;this.R=function(e){(b.J==b.X?b.K.j:J).apply(null,[e].concat(u(pa.apply(1,arguments))))};this.Ia=[[.01,function(){return b.R("VPAID.AdVideoStart")}],[.25,function(){return b.R("VPAID.AdVideoFirstQuartile")}],[.5,function(){return b.R("VPAID.AdVideoMidpoint")}],
[.75,function(){return b.R("VPAID.AdVideoThirdQuartile")}],[.99,function(){return b.R("VPAID.AdVideoComplete")}]];this.Ra=!1;this.X={resizeAd:function(e,f,g){this.width=e;this.height=f;this.Ta=g;this.K.j("geometry")},startAd:function(){this.X.startAd=J;this.N.play()},stopAd:function(){this.X.stopAd=J;this.K.end()},pauseAd:function(){this.N.pause()},resumeAd:function(){this.N.play()},expandAd:J,collapseAd:J,skipAd:function(){this.wa&&(this.X.skipAd=J,this.Ra=!0,this.J.stopAd.call(this.J))},getAdLinear:function(){return!0},
getAdWidth:function(){return this.width},getAdHeight:function(){return this.height},getAdExpanded:function(){return!1},getAdSkippableState:function(){return this.wa},getAdRemainingTime:function(){return isFinite(this.N.duration)?this.N.duration-this.N.currentTime:-2},getAdDuration:function(){return isFinite(this.N.duration)?this.N.duration:-2},getAdVolume:function(){return isFinite(this.N.volume)?this.N.volume:1},setAdVolume:function(e){L(e)&&0<=e&&1>=e&&(this.N.volume=e)},getAdCompanions:function(){return this.Ya},
getAdIcons:function(){return!1}};for(var c in this.X)this.X[c]=this.X[c].bind(this);this.la={handshakeVersion:function(e){e=P(e);1<=e&&2>=e&&(this.Ja=e);return this.Ja+".0"},initAd:function(e,f,g,k,l,h){function p(){m.ta&&m.R("VPAID.AdClickThru",Y(m.ta),m.ta.id,!0)}var m=this,q=(((l||{}).AdParameters||"").match(/(?:^|.*&)vpaid=adloox(?:$|&.*)/)||[""])[0],r=new bc(this,q);r.config.creatype=23;this.K=this.W[r.P]=r;S&&S.setAttribute("data-adloox-sid",r.P);q&&("adparameters"in r.config?l.AdParameters=
r.config.adparameters:delete l.AdParameters);this.width=e;this.height=f;this.Ta=g;this.Ha=k;this.za=l;this.ab=h;this.slot=h.slot;this.N=h.videoSlot;r.B.vpaid={videoSlotCanAutoPlay:h.videoSlotCanAutoPlay,videoSlotIsAProxy:!O(this.N)};r.audio.data({id:"vpaid",S:!1});r.subscribe("VPAID.AdStarted",function(){m.volume=zc(m)});this.hb.forEach(function(z){return m.la.subscribe.apply(m.la,u(z))});r.start();r.subscribe("fw",function(z,I,t){t.state&&m.ba("adloox.com brand safety")});r.subscribe("adunit",function(z,
I,t){function v(){y||(y=!0,m.R("VPAID.AdStarted"),m.J==m.X&&isFinite(m.oa)&&(m.ja=U(m.slot).document.createElement("div"),m.ja.innerText="Skip ad",m.ja.onclick=function(A){m.wa&&z.j("VPAID.AdSkipped");A.stopPropagation()},m.ja.style="display: block; position: absolute; bottom: 2em; right: 0; background-color: #000; color: white; font-size: 1em; font-weight: bold; width: auto; padding: 8px; z-index: 1000; border: 1px solid white; border-right: none; cursor: pointer; user-select: none;opacity: 0.3;",
z.subscribe("VPAID.AdSkippableStateChange",function(){m.ja.style="display: block; position: absolute; bottom: 2em; right: 0; background-color: #000; color: white; font-size: 1em; font-weight: bold; width: auto; padding: 8px; z-index: 1000; border: 1px solid white; border-right: none; cursor: pointer; user-select: none;opacity: 0.6;"}),m.slot.appendChild(m.ja)))}function x(A,B){t.video.addEventListener(A,B,m.u.L?!1:{passive:!0});C.push([A,B])}var C=[];z.subscribe("end",function(){C.forEach(function(A){t.video.removeEventListener(A[0],
A[1])})});x("loadedmetadata",function(){m.R("VPAID.AdLoaded");m.R("VPAID.AdDurationChange");x("durationchange",function(){m.R("VPAID.AdDurationChange")})});var y=!1;x("play",v);x("timeupdate",function(){2>m.Ja&&m.R("VPAID.AdRemainingTimeChange");isFinite(m.oa)&&!m.wa&&t.video.currentTime>=m.oa&&(m.wa=!0,m.R("VPAID.AdSkippableStateChange"));m.ja&&isFinite(m.oa)&&(m.ja.innerText=m.wa?"Skip ad":Math.max(0,Math.ceil(m.oa-t.video.currentTime)));var A=isFinite(t.video.duration)&&0<t.video.duration&&t.video.currentTime/
t.video.duration;m.Ia=m.Ia.filter(function(B){var G=L(B[0])?B[0]:Date.parse("1970-01-01 "+B[0]+"Z")/1E3/t.video.duration;if(A<G)return!0;B[1]();return!1})});x("playing",function(){var A=y;y||v();A&&z.j("rollstate.run");m.R("VPAID.AdPlaying")});x("pause",function(){t.video.ended||(z.j("rollstate.pause"),m.R("VPAID.AdPaused"))});x("volumechange",function(){zc(m)});m.J==m.X&&x("ended",function(){m.J.stopAd.call(m.J)});x("error",function(){m.ba(t.video.error?t.video.error.message:"unable to load video")})});
this.slot.addEventListener("click",p,this.u.L?!1:{passive:!0});r.subscribe("end",function(){m.slot.removeEventListener("click",p);m.J==m.X&&(delete m.N.src,delete m.N.preload,m.R(m.Ra&&2<=m.Ja?"VPAID.AdSkipped":"VPAID.AdStopped"))});e=r.config.vast;"::"==e.substr(0,2)?(r.config.vast_clickthru&&(this.ta=document.createElement("p"),this.ta.textContent=r.config.vast_clickthru),r=Ac(this,r,e.substr(2))):r=":"==e.substr(0,1)?Bc(this,r,e.substr(1)):Cc(this,r,e);if(!r)return this.ba("unsuitable vast parameter")},
startAd:function(){var e=this;2!=this.K.config.fwtype&&4!=this.K.config.fwtype?this.K.subscribe("fw",function(f,g,k){k.state||e.J.startAd.call(e.J)}):this.J.startAd.call(this.J)},subscribe:function(e,f,g){if(this.K){var k=function(l,h){e.apply(g||E,pa.apply(2,arguments))};k.Eb=e;this.K.subscribe("VPAID."+f,k)}else this.hb.push([e,f,g])},unsubscribe:function(e,f){this.K.unsubscribe("VPAID."+f,e)}};"resizeAd stopAd pauseAd resumeAd expandAd collapseAd skipAd getAdLinear getAdWidth getAdHeight getAdExpanded getAdSkippableState getAdRemainingTime getAdDuration getAdVolume setAdVolume getAdCompanions getAdIcons".split(" ").forEach(function(e){b.la[e]=
function(){return this.J[e].apply(this.J,pa.apply(0,arguments))}});for(var d in this.la)this.la[d]=function(e,f){var g=pa.apply(2,arguments);try{var k=f.apply(this,g);J.apply(null,["VPAID",e].concat(u(g),["=>",k]));return k}catch(l){}}.bind(this,d,this.la[d]);this.Ba=function(){return this.la}.bind(this);this.l()}la(yc,pc);
function Ac(a,b,c){b.j("adunit",{slot:a.slot,video:a.N});a.J=a.X;Dc(b,a.J);zc(a);b.subscribe("impression",function(d){d.j("VPAID.AdImpression")});a.N.preload="metadata";a.N.src=a.url(b,hb(c)?c:Y(c));a.N.load();return!0}function zc(a){var b=a.J.getAdVolume.call(a.J);0<a.volume&&0==b?a.R("VPAID.AdVolumeChange.mute"):0==a.volume&&0<b&&a.R("VPAID.AdVolumeChange.unmute");a.volume=b;a.R("VPAID.AdVolumeChange");a.K.audio.data({id:"vpaid",ratio:a.volume,muted:0==a.volume});return b}
function Ec(a,b,c,d,e,f){for(var g=E.navigator.connection?1E3*E.navigator.connection.downlink:5E4,k=[],l=0;l<c.length;l++){var h=c[l];if(!h.getAttribute("apiFramework")){var p=h.getAttribute("type");if(p){var m=h.getAttribute("codec");m&&(p+=';codecs="'+m+'"');if(a.N.canPlayType(p)){var q=h.getAttribute("width"),r=h.getAttribute("height");q&&r&&(p="true"==(h.getAttribute("scalable")||"false").toLowerCase(),m="true"==(h.getAttribute("maintainAspectRatio")||"true").toLowerCase(),(d||p||q==a.width&&
r==a.height)&&!(!e&&p&&1<q*r/(a.width*a.height))&&(q=a.width/q/(a.height/r),e||!p||!m||.95<=q&&1.05>=q))&&(p=Math.max(h.getAttribute("bitrate"),h.getAttribute("maxBitrate")),g<p||!f&&0<a.Ha&&p>a.Ha||k.push(h))}}}}k=k.sort(function(z,I){z=Math.max(z.getAttribute("bitrate"),z.getAttribute("maxBitrate"));I=Math.max(I.getAttribute("bitrate"),I.getAttribute("maxBitrate"));return f?z-I:I-z});g=k[0];for(l=1;l<k.length;l++)h=g.getAttribute("width"),p=g.getAttribute("height"),m=k[l].getAttribute("width"),
q=k[l].getAttribute("height"),1-Math.abs(m*q/(a.width*a.height))<1-Math.abs(h*p/(a.width*a.height))&&(g=k[l]);return g?Ac(a,b,g):d&&e&&f?!1:Ec(a,b,c,!0,!!d,!!e)}
function Bc(a,b,c,d){d&&(a.za=d.querySelector("AdParameters"),a.za={AdParameters:Y(a.za)||void 0});var e=document.createElement("iframe");e.src="javascript:false";e.style.display="none";e.onload=function(){var f=document.createElement("script");f.src=a.url(b,c);f.onload=function(){var g=e.contentWindow.getVPAIDAd;if(!M(g))return a.ba("VPAID unit has no getVPAIDAd");a.J=g();Dc(b,a.J);a.J.handshakeVersion.call(a.J,"2.0");b.subscribe("VPAID.AdSkipped",b.end);b.subscribe("VPAID.AdStopped",b.end);b.subscribe("VPAID.AdVideoFirstQuartile",
function(){b.j("send.visi")});b.subscribe("VPAID.AdVideoMidpoint",function(){b.j("send.visi")});b.subscribe("VPAID.AdVideoThirdQuartile",function(){b.j("send.visi")});b.subscribe("VPAID.AdVideoComplete",function(){b.j("send.visi")});b.subscribe("VPAID.AdLoaded",function(k){var l=a.N;try{if(!l.src){var h=a.slot.querySelector("iframe"),p=(h?h.contentWindow:E).document.querySelector('video:not([src=""])');p&&(l=p,k.B.vpaid.videoSlotQuirk=!0)}}catch(m){}k.j("adunit",{slot:a.slot,video:l})});"Loaded Started Stopped Skipped SkippableStateChange SizeChange LinearChange DurationChange ExpandedChange RemainingTimeChange VolumeChange Impression VideoStart VideoFirstQuartile VideoMidpoint VideoThirdQuartile VideoComplete ClickThru Interaction UserAcceptInvitation UserMinimize UserClose Paused Playing Log Error".split(" ").forEach(function(k){a.J.subscribe.call(a.J,
function(){b.j("VPAID.Ad"+k,pa.apply(0,arguments))},"Ad"+k,a)});a.J.initAd.call(a.J,a.width,a.height,a.Ta,a.Ha,a.za,a.ab)};e.contentWindow.document.head.appendChild(f)};tc(e,S);return!0}function Fc(a,b,c,d){(d=d&&d.getAttribute("skipoffset"))&&3<=a.v&&(a.oa=Date.parse("1970-01-01 "+d+"Z")/1E3,b.B.vpaid.skipoffset=a.oa);(b=c.querySelector("ClickThrough"))&&/^https?:/.test(Y(b))&&(a.ta=b)}
function Gc(a,b,c,d){var e={skip:"AdSkipped",creativeView:"AdStarted",start:"AdVideoStart",firstQuartile:"AdVideoFirstQuartile",midpoint:"AdVideoMidpoint",thirdQuartile:"AdVideoThirdQuartile",complete:"AdVideoComplete",pause:"AdPaused",resume:"AdPlaying",Impression:"AdImpression",ClickTracking:"AdClickThru",Error:"AdError",mute:"AdVolumeChange.mute",unmute:"AdVolumeChange.unmute"};[].concat(u(c.querySelectorAll("Tracking,Impression,ClickTracking,Error,Viewable,NotViewable,ViewUndetermined"))).forEach(function(k){var l=
Y(k);if(/^https?:/.test(l)){var h=function(){b.j("send",a.url(b,l))},p=k.getAttribute("event")||k.tagName;switch(p){case "progress":d&&(k=(k.getAttribute("offset")||"").trim(),"%"==k.substr(-1)?a.Ia.push([P(k.substr(0,k.length-1))/100,h]):/^[0-9:]+$/.test(k)&&a.Ia.push([k,h]));break;case "Viewable":b.Ga("px_view",Y(k));break;case "NotViewable":b.Ga("px_viewn",Y(k));break;case "ViewUndetermined":b.Ga("px_viewu",Y(k));break;default:(k=e[p])&&b.subscribe("VPAID."+k,h)}}});c=c.querySelectorAll("Survey");
for(var f=0;f<c.length;f++){var g=Y(c[f]);/^https?:/.test(g)&&b.Ga("js_imp",g)}}
function Cc(a,b,c,d){var e=new XMLHttpRequest;e.open("GET",a.url(b,c));e.withCredentials=!d;e.onload=function(){if(4==e.readyState){if(400<=e.status)return a.ba.call(a,"failed to fetch VAST");a:{var f=e.responseXML;if("VAST"!=f.documentElement.tagName)var g=a.ba("not a VAST tag");else{a.v=parseFloat(f.documentElement.getAttribute("version"));g=!a.G&&b.config.vast_skiptracking;var k=[],l=[];f=f.querySelectorAll("Ad");for(var h=0;h<f.length;h++){var p=f[h],m=p.getAttribute("sequence");m?(m=P(m),0<m&&
(k[m]=p)):l.push(p)}k=k.concat(l);for(l=0;l<k.length;l++)if(f=k[l]){if(h=f.querySelector("VASTAdTagURI")){Fc(a,b,f);g||Gc(a,b,f);g=5>a.G++?Cc(a,b,Y(h)):a.ba("too many wrappers");break a}a.Ya=(f.querySelector("CompanionAds")||{}).outerHTML;h=f.querySelector("Creatives").querySelectorAll("Creative");for(p=0;p<h.length;p++)if(m=f.querySelector("Linear")){Fc(a,b,f,m);g||Gc(a,b,f,m);var q=m.querySelectorAll("MediaFiles > MediaFile"),r=m.querySelector("MediaFiles > MediaFile[apiFramework='VPAID'][type='application/javascript']");
if(r&&Bc(a,b,Y(r),m)||Ec(a,b,q)){g=!0;break a}}}g=!1}}if(!g)return a.ba.call(a,"VAST returned nothing usable")}};e.onerror=function(){if(d)return a.ba.call(a,"unable to download VAST");Cc(a,b,c,!0)};e.ontimeout=a.ba.bind(a,"timeout downloading VAST");e.timeout=5E3;e.send(null);return!0}
function Dc(a,b){var c=Q();a.T.timeline("szv",function(d){function e(f,g){T(d.w,b.getAdWidth(),g);T(d.h,b.getAdHeight(),g)}a.subscribe("VPAID.AdSizeChange",e);e(a,c);return!0},["w","h"]);a.T.timeline("auv",function(d){function e(f,g){f=b.getAdVolume();0<=f&&T(d,100*f,g)}a.subscribe("VPAID.AdVolumeChange",e);e(a,c);return!0});a.T.timeline("evv",function(d){function e(g,k,l){T(d,g,l)}var f=this;"Interaction UserMinimize UserClose UserAcceptInvitation UserClose UserAcceptInvitation ClickThru".split(" ").forEach(function(g){return a.subscribe("VPAID.Ad"+
g,e.bind(f,"int"))});a.subscribe("VPAID.AdSkipped",e.bind(this,"skp"));return!0},null,!0)}yc.prototype.ba=function(a){this.K.j("VPAID.AdError",a);this.K.end()};function Hc(a){lc.call(this,a,"omid");var b=this;Ta(function(c){switch(c.type){case "sessionStart":var d=new bc(b,c.data.verificationParameters);d.config.creatype=0;b.W[c.adSessionId]=d;var e={bb:null,Lb:d.T.timeline("vwo"),Db:d.T.timeline("auo"),fb:d.T.timeline("sco",null,["w","h"]),jb:d.T.timeline("vpo",null,["w","h"]),cb:d.T.timeline("evo")};d.data={context:c.data.context,ca:e};S&&S.setAttribute("data-adloox-sid",d.P);b.Xa(c);default:try{b.Wa(c)}catch(f){b.W[c.adSessionId].j("error",{err:"omid: "+
f.message,"%b":f.stack})}}});this.l()}la(Hc,lc);n=Hc.prototype;
n.Wa=function(a){var b=this.W[a.adSessionId],c=a.data,d=b.data.context;b.j("OMID."+a.type,a);Ic(b,a);switch(a.type){case "sessionStart":var e=function(g){return hb(g)&&!g.length?void 0:g};b.B.omid={};["impressionType","creativeType","mediaType","pageUrl","contentUrl"].forEach(function(g){return b.B.omid[g]=e(c[g])});"apiVersion environment accessMode adSessionType omidNativeInfo omidJSInfo app deviceInfo".split(" ").forEach(function(g){return b.B.omid[g]=e(d[g])});["pageUrl","contentUrl"].forEach(function(g){hb(b.B.omid[g])&&
(b.B.omid[g]=b.B.omid[g].substr(0,500))});b.B.omid.contentUrl==b.B.omid.pageUrl&&delete b.B.omid.contentUrl;b.F.data({id:"omid",S:!1});b.audio.data({id:"omid",S:!1});switch(c.creativeType){case "audio":case "video":b.config.creatype=6;break;default:b.config.creatype=2}break;case "sessionError":b.j("error",{err:"omid","%b":c.message});break;case "sessionFinish":b.end();break;case "loaded":switch(c.creativeType){case "audio":case "video":b.config.creatype=6;break;default:b.config.creatype=2}b.B.omid.autoPlay=
c.autoPlay;b.B.omid.skipOffset=c.skipOffset;b.B.omid.position=c.position;b.B.omid.duration=c.duration;break;case "impression":if(!b.config.creatype)switch(c.mediaType){case "video":b.config.creatype=6;break;default:b.config.creatype=2}6!=b.config.creatype||b.data.audio||b.audio.data({id:"omid",U:!0,ratio:1});case "geometryChange":this.Da(b,a);a=c.adView;if(K(a)){var f=a.geometry||{};b.j("geometry",{width:f.width||0,height:f.height||0,top:f.y||0,left:f.x||0});this.hidden=a.reasons.some(function(g){return["notFound",
"hidden","noOutputDevice"].includes(g)});this.va=a.reasons.some(function(g){return["noWindowFocus","backgrounded"].includes(g)});b.F.data({id:"omid",U:!0,ratio:(a.percentageInView||0)/100})}break;case "start":this.Da(b,a);case "volumeChange":a=function(g){g=Math.max(0,Math.min(1,L(g)?g:void 0));return isNaN(g)?1:g};b.audio.data({id:"omid",U:!0,ratio:a(c.mediaPlayerVolume)*a(c.videoPlayerVolume)*a(c.deviceVolume)});b.data.audio=!0;break;case "resume":b.j("rollstate.run");b.j("send.visi");break;case "pause":b.j("rollstate.pause");
b.j("send.visi");break;case "firstQuartile":case "midpoint":case "thirdQuartile":case "complete":b.j("send.visi")}};
function Ic(a,b){var c=b.timestamp-a.data.ca.bb;switch(b.type){case "sessionStart":a.data.ca.bb=b.timestamp-(Q()-jb);break;case "impression":case "geometryChange":if(!K(b.data.adView))break;T(a.data.ca.Lb,b.data.adView.percentageInView,c);T(a.data.ca.fb.w,b.data.adView.geometry.width,c);T(a.data.ca.fb.h,b.data.adView.geometry.height,c);T(a.data.ca.jb.w,b.data.viewport.width,c);T(a.data.ca.jb.h,b.data.viewport.height,c);break;case "start":case "volumeChange":var d=function(g){g=Math.max(0,Math.min(1,
L(g)?g:void 0));return isNaN(g)?1:g},e=d(b.data.deviceVolume),f=d(b.data.mediaPlayerVolume);b=d(b.data.videoPlayerVolume);T(a.data.ca.Db,e*f*b*100,c);break;case "skipped":T(a.data.ca.cb,"skp",c);break;case "adUserInteraction":T(a.data.ca.cb,"int",c)}}
n.Da=function(a,b){if(!a.data.Da){b=b.data;var c=a.data.context,d={};switch(b.creativeType){case "audio":break;default:if(!K(b.adView)||-1!=b.adView.reasons.indexOf("notFound"))return;d.slot=c.slotElement;d.video=c.videoElement;b.adView&&(d.rect=b.adView.geometry);var e=b.viewport;K(e)&&0<e.width*e.height&&(a.B.omid.viewport=b.viewport,"limited"==c.accessMode&&(a.g.resolution=b.viewport.width+"x"+b.viewport.height));"screen"in E&&(a.g.resolution=E.screen.width+"x"+E.screen.height);if(!("resolution"in
a.g))return}a.start();a.j("adunit",d);a.data.Da=!0}};
n.Xa=function(a){function b(g){return c(g)}function c(g){for(var k=e.length;0<k--;){var l=e[k][0].timestamp;if(l==g.timestamp){e[k].unshift(g);return}if(l>g.timestamp)break}e.splice(k+1,0,[g])}var d=this;this.Xa=J;V(null,"impression",function(g){(g.config.js_imp||[]).forEach(function(k){Wa(this.url(g,k))})});var e=[],f=a.data.context;-1!=f.supports.indexOf("vlid")&&D.addEventListener(a.data.creativeType?"media":"video",b);"limited"!=f.accessMode&&-1==f.supports.indexOf("clid")||D.addEventListener("geometryChange",
b);D.addEventListener("impression",b);R(function(){c=d.Wa.bind(d);e=e.reduce(function(k,l){return k.concat(l)},[]);for(var g=e.length;0<g--;)c(e[g])},0)};n.ra=function(a,b,c){c&&c["%b"]&&(c.body=c["%b"],delete c["%b"]);(a=this.url(a,b,c))&&Ua(a)};
n.La=function(a,b,c){function d(g){e||a.j("config",g);e=!0}var e=!1,f=String.fromCharCode(97+26*Math.random())+Math.random().toString(16).substr(2);Object.defineProperty(E,f,{value:d.bind(this)});(f=this.url(a,b,c)+("&cf=1&jsonp="+f))&&Wa(f,function(){},function(){a.j("send",b,c);d({})})};n.url=function(a,b,c){if(b=lc.prototype.url.call(this,a,b,c))return b.split("[ADL_DOM]").join(ob(a.B.omid.pageUrl||a.B.omid.contentUrl||"").hostname||"")};var Z=null;function Jc(){delete E.getVPAIDAd;Z=J;Z=new yc(J);return Z.Ba()}function Kc(){E.getVPAIDAd==Jc&&delete E.getVPAIDAd;Z||(K(E.MRAID_ENV)||K(E.mraid)?(Z=J,Z=new wc(J)):(Z=J,Z=new uc(J)))}function Lc(){R(function(){R(Kc,0)},0)}if(D)try{Z=new Hc(J)}catch(a){}Z||(H?(M(E.getVPAIDAd)||(E.getVPAIDAd=Jc),"loading"===E.document.readyState?E.document.addEventListener("DOMContentLoaded",Lc,!1):Lc()):Z=new lc(J));}).call(this);