(function(){var k,l=this,n=function(a){return void 0!==a},q=function(a){return"string"==typeof a},aa=function(a){return"number"==typeof a},r=function(a,b){a=a.split(".");b=b||l;for(var c=0;c<a.length;c++)if(b=b[a[c]],null==b)return null;return b},t=function(){},ba=function(a){a.Ma=void 0;a.getInstance=function(){return a.Ma?a.Ma:a.Ma=new a}},ca=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==
c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},u=function(a){return"array"==ca(a)},da=function(a){var b=ca(a);return"array"==
b||"object"==b&&"number"==typeof a.length},ea=function(a){return"function"==ca(a)},fa=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},ha="closure_uid_"+(1E9*Math.random()>>>0),ia=0,ja=function(a,b,c){return a.call.apply(a.bind,arguments)},ka=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,
arguments)}},w=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w=ja:w=ka;return w.apply(null,arguments)},la=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},x=function(){return+new Date},y=function(a,b){a=a.split(".");var c=l;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&n(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?
c=c[d]:c=c[d]={}},z=function(a,b){function c(){}c.prototype=b.prototype;a.G=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Gc=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};var ma=document;var A=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,A);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};z(A,Error);A.prototype.name="CustomError";var na;var oa=function(a,b){if(q(a))return q(b)&&1==b.length?a.indexOf(b,0):-1;for(var c=0;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},B=function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},pa=function(a,b){for(var c=a.length,d=[],e=0,f=q(a)?a.split(""):a,g=0;g<c;g++)if(g in f){var h=f[g];b.call(void 0,h,g,a)&&(d[e++]=h)}return d},qa=function(a,b){for(var c=a.length,d=Array(c),e=q(a)?a.split(""):a,f=0;f<c;f++)f in e&&(d[f]=b.call(void 0,e[f],f,a));return d},
ra=function(a,b){for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a))return!0;return!1},sa=function(a,b,c){for(var d=a.length,e=q(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0},ta=function(a,b){a:{for(var c=a.length,d=q(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:q(a)?a.charAt(b):a[b]},C=function(a,b){b=oa(a,b);var c;(c=0<=b)&&Array.prototype.splice.call(a,b,1);return c},ua=function(a){return Array.prototype.concat.apply([],
arguments)},va=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]},wa=function(a,b){var c={};B(a,function(d,e){c[b.call(void 0,d,e,a)]=d});return c};var xa=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},ya=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},za=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1},Aa=function(a){var b={},c;for(c in a)b[c]=a[c];return b},Ba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ca=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Ba.length;f++)c=Ba[f],Object.prototype.hasOwnProperty.call(d,
c)&&(a[c]=d[c])}};var Da={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};var Fa=function(){this.a="";this.c=Ea};Fa.prototype.ha=!0;Fa.prototype.ba=function(){return this.a};Fa.prototype.toString=function(){return"Const{"+this.a+"}"};var Ga=function(a){return a instanceof Fa&&a.constructor===Fa&&a.c===Ea?a.a:"type_error:Const"},Ea={},Ha=function(a){var b=new Fa;b.a=a;return b};Ha("");var Ja=function(){this.a="";this.c=Ia};Ja.prototype.ha=!0;Ja.prototype.ba=function(){return this.a};Ja.prototype.La=!0;Ja.prototype.wa=function(){return 1};var Ka=function(a){if(a instanceof Ja&&a.constructor===Ja&&a.c===Ia)return a.a;ca(a);return"type_error:TrustedResourceUrl"},Ia={},La=function(a){var b=new Ja;b.a=a;return b};var E=function(a){return/^[\s\xa0]*$/.test(a)},Ma=function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]},Ua=function(a){if(!Na.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Oa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Pa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Qa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ra,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Sa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ta,"&#0;"));return a},Oa=/&/g,Pa=/</g,Qa=/>/g,Ra=/"/g,Sa=/'/g,Ta=/\x00/g,Na=/[\x00&<>"']/,
F=function(a){return null==a?"":String(a)},Wa=function(a,b){var c=0;a=Ma(String(a)).split(".");b=Ma(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;0==c&&e<d;e++){var f=a[e]||"",g=b[e]||"";do{f=/(\d*)(\D*)(.*)/.exec(f)||["","","",""];g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];if(0==f[0].length&&0==g[0].length)break;c=Va(0==f[1].length?0:parseInt(f[1],10),0==g[1].length?0:parseInt(g[1],10))||Va(0==f[2].length,0==g[2].length)||Va(f[2],g[2]);f=f[3];g=g[3]}while(0==c)}return c},Va=function(a,
b){return a<b?-1:a>b?1:0},Xa=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})},Ya=function(a){var b=q(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};var G=function(){this.a="";this.c=Za};G.prototype.ha=!0;G.prototype.ba=function(){return this.a};G.prototype.La=!0;G.prototype.wa=function(){return 1};var $a=function(a){if(a instanceof G&&a.constructor===G&&a.c===Za)return a.a;ca(a);return"type_error:SafeUrl"},ab=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,cb=function(a){if(a instanceof G)return a;a=a.ha?a.ba():String(a);ab.test(a)||(a="about:invalid#zClosurez");return bb(a)},Za={},bb=function(a){var b=new G;b.a=a;return b};bb("about:blank");var eb=function(){this.a="";this.c=db};eb.prototype.ha=!0;var db={};eb.prototype.ba=function(){return this.a};
var fb=function(a){var b=new eb;b.a=a;return b},gb=fb(""),lb=function(a){if(a instanceof G)a='url("'+$a(a).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';else if(a instanceof Fa)a=Ga(a);else{a=String(a);var b=a.replace(hb,"$1").replace(ib,"url");if(b=jb.test(b)){for(var c=b=!0,d=0;d<a.length;d++){var e=a.charAt(d);"'"==e&&c?b=!b:'"'==e&&b&&(c=!c)}b=b&&c}a=b?kb(a):"zClosurez"}return a},jb=/^[-,."'%_!# a-zA-Z0-9]+$/,ib=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,
hb=/\b(hsl|hsla|rgb|rgba|(rotate|scale|translate)(X|Y|Z|3d)?)\([-0-9a-z.%, ]+\)/g,kb=function(a){return a.replace(ib,function(a,c,d,e){var b="";d=d.replace(/^(['"])(.*)\1$/,function(a,c,d){b=c;return d});a=cb(d).ba();return c+b+a+b+e})};var mb;a:{var nb=l.navigator;if(nb){var ob=nb.userAgent;if(ob){mb=ob;break a}}mb=""}var H=function(a){return-1!=mb.indexOf(a)};var pb=function(){return(H("Chrome")||H("CriOS"))&&!H("Edge")};var rb=function(){this.a="";this.f=qb;this.c=null};rb.prototype.La=!0;rb.prototype.wa=function(){return this.c};rb.prototype.ha=!0;rb.prototype.ba=function(){return this.a};
var sb=function(a){if(a instanceof rb&&a.constructor===rb&&a.f===qb)return a.a;ca(a);return"type_error:SafeHtml"},tb=/^[a-zA-Z0-9-]+$/,ub={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},vb={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},xb=function(a){var b=0,c="",d=function(a){if(u(a))B(a,d);else{if(a instanceof rb)var e=a;else e=null,a.La&&(e=a.wa()),a=Ua(a.ha?a.ba():String(a)),e=wb(a,e);c+=sb(e);e=e.wa();
0==b?b=e:0!=e&&b!=e&&(b=null)}};B(arguments,d);return wb(c,b)},qb={},wb=function(a,b){var c=new rb;c.a=a;c.c=b;return c};wb("<!DOCTYPE html>",0);wb("",0);wb("<br>",0);var yb=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};var Ab=function(a){zb();return La(a)},zb=t;var Bb=function(a){Bb[" "](a);return a};Bb[" "]=t;var Cb=function(a,b){try{return Bb(a[b]),!0}catch(c){}return!1},Eb=function(a,b){var c=Db;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var Fb=function(){return H("iPhone")&&!H("iPod")&&!H("iPad")};var Gb=H("Opera"),I=H("Trident")||H("MSIE"),Hb=H("Edge"),Ib=Hb||I,Jb=H("Gecko")&&!(-1!=mb.toLowerCase().indexOf("webkit")&&!H("Edge"))&&!(H("Trident")||H("MSIE"))&&!H("Edge"),Kb=-1!=mb.toLowerCase().indexOf("webkit")&&!H("Edge"),Lb=Kb&&H("Mobile"),Mb=H("Android"),Nb=function(){var a=l.document;return a?a.documentMode:void 0},Ob;
a:{var Pb="",Qb=function(){var a=mb;if(Jb)return/rv:([^\);]+)(\)|;)/.exec(a);if(Hb)return/Edge\/([\d\.]+)/.exec(a);if(I)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Kb)return/WebKit\/(\S+)/.exec(a);if(Gb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();Qb&&(Pb=Qb?Qb[1]:"");if(I){var Rb=Nb();if(null!=Rb&&Rb>parseFloat(Pb)){Ob=String(Rb);break a}}Ob=Pb}var Sb=Ob,Db={},Tb=function(a){return Eb(a,function(){return 0<=Wa(Sb,a)})},Ub;var Vb=l.document;
Ub=Vb&&I?Nb()||("CSS1Compat"==Vb.compatMode?parseInt(Sb,10):5):void 0;var Xb=function(){var a=Wb;try{return!!a&&null!=a.location.href&&Cb(a,"foo")}catch(b){return!1}};var Yb=function(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0};Yb.prototype.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};Yb.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};Yb.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};var J=function(a,b){this.width=a;this.height=b},Zb=function(a){return new J(a.width,a.height)};J.prototype.aspectRatio=function(){return this.width/this.height};J.prototype.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};J.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};J.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var bc=function(a){return a?new $b(ac(a)):na||(na=new $b)},cc=function(a,b){return q(b)?a.getElementById(b):b},ec=function(a,b){xa(b,function(b,d){b&&b.ha&&(b=b.ba());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:dc.hasOwnProperty(d)?a.setAttribute(dc[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})},dc={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"},fc=function(a){return a.scrollingElement?a.scrollingElement:Kb||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement},gc=function(a){return a.parentWindow||a.defaultView},hc=function(a,b){return a.createElement(String(b))},ic=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},ac=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document},$b=function(a){this.a=a||l.document||
document};$b.prototype.T=function(){return cc(this.a,void 0)};var jc=function(){return Kb?"Webkit":Jb?"Moz":I?"ms":Gb?"O":null},kc=function(){return Kb?"-webkit":Jb?"-moz":I?"-ms":Gb?"-o":null};var lc=function(a,b){this.top=a;this.left=b};lc.prototype.ceil=function(){this.top=Math.ceil(this.top);this.left=Math.ceil(this.left);return this};lc.prototype.floor=function(){this.top=Math.floor(this.top);this.left=Math.floor(this.left);return this};lc.prototype.round=function(){this.top=Math.round(this.top);this.left=Math.round(this.left);return this};var mc=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};mc.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};mc.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
mc.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var oc=function(a,b,c){if(q(b))(b=nc(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=nc(c,d);f&&(c.style[f]=e)}},pc={},nc=function(a,b){var c=pc[b];if(!c){var d=Xa(b);c=d;void 0===a.style[d]&&(d=jc()+Ya(d),void 0!==a.style[d]&&(c=d));pc[b]=c}return c},qc=function(a,b){var c=a.style[Xa(b)];return"undefined"!==typeof c?c:a.style[nc(a,b)]||""},rc=function(a){a:{var b=ac(a);if(b.defaultView&&b.defaultView.getComputedStyle&&(b=b.defaultView.getComputedStyle(a,null))){b=b.position||b.getPropertyValue("position")||
"";break a}b=""}b||(b=a.currentStyle?a.currentStyle.position:null);return b||a.style&&a.style.position},tc=function(a,b,c){if(b instanceof J)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");a.style.width=sc(b,!0);a.style.height=sc(c,!0)},sc=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};var uc=function(a,b,c){a.addEventListener?a.addEventListener(b,c,void 0):a.attachEvent&&a.attachEvent("on"+b,c)};var vc=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");c&&(d.referrerPolicy="no-referrer");d.src=b;a.google_image_requests.push(d)},wc=yb(function(){return"referrerPolicy"in l.document.createElement("img")});var xc=!!window.google_async_iframe_id,Wb=xc&&window.parent||window;var yc=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,zc=function(a,b){if(b+=""){var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);a=[a.substr(0,d),e,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;b=a[0]+(a[1]?"?"+a[1]:"")+a[2]}else b=a;return b},Ac=/#|$/;var Bc=null;var Cc=function(a,b,c){this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=this.label+"_"+this.type+"_"+Math.random();this.slotId=void 0};var Dc=l.performance,Ec=!!(Dc&&Dc.mark&&Dc.measure&&Dc.clearMarks),Fc=yb(function(){var a;if(a=Ec){var b;if(null===Bc){Bc="";try{a="";try{a=l.top.location.hash}catch(c){a=l.location.hash}a&&(Bc=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c){}}b=Bc;a=!!b.indexOf&&0<=b.indexOf("1337")}return a}),Hc=function(){var a=Gc;this.a=[];this.f=a||l;var b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||[],this.a=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.c=Fc()||(null!=
b?b:1>Math.random())},Ic=function(a){a&&Dc&&Fc()&&(Dc.clearMarks("goog_"+a.uniqueId+"_start"),Dc.clearMarks("goog_"+a.uniqueId+"_end"))};Hc.prototype.start=function(a,b){if(!this.c)return null;var c=void 0===c?l:c;c=c.performance;(c=c&&c.now?c.now():null)||(c=(c=l.performance)&&c.now&&c.timing?Math.floor(c.now()+c.timing.navigationStart):x());a=new Cc(a,b,c);b="goog_"+a.uniqueId+"_start";Dc&&Fc()&&Dc.mark(b);return a};if(xc&&!Xb()){var Jc="."+ma.domain;try{for(;2<Jc.split(".").length&&!Xb();)ma.domain=Jc=Jc.substr(Jc.indexOf(".")+1),Wb=window.parent}catch(a){}Xb()||(Wb=window)}var Gc=Wb,Kc=new Hc,Lc=function(){Gc.google_measure_js_timing||(Kc.c=!1,Kc.a!=Kc.f.google_js_reporting_queue&&(Fc()&&B(Kc.a,Ic),Kc.a.length=0))};"complete"==Gc.document.readyState?Lc():Kc.c&&uc(Gc,"load",function(){Lc()});if(ma&&ma.URL){var Mc=ma.URL;if(Mc&&Mc){var Nc=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{Nc.exec(decodeURIComponent(Mc))}catch(a){}}};var Oc=function(a,b){this.g=Math.random()<a;this.B=b;this.f=null;this.i=""};Oc.prototype.c=function(){return this.g&&null!==this.f?(this.B+"//pagead2.googlesyndication.com/pagead/gen_204/?id="+this.f+this.i).substring(0,2E3):""};var Pc=function(){};y("studio.common.Environment",Pc);Pc.Type={LIVE:1,LOCAL:2,BROWSER:4,IN_APP:8,LAYOUTS_PREVIEW:16,CREATIVE_TOOLSET:32,RENDERING_STUDIO:64,RENDERING_TEST:128,PREVIEW:256};var Qc=6,Sc=function(a){Qc|=a;Rc(a)};Pc.addType=Sc;Pc.setType=function(a){Qc=a|6;Rc(Qc)};var Tc=function(a){return(Qc&a)==a};Pc.hasType=Tc;Pc.getValue=function(){return Qc};var Rc=function(a){Uc(a,2,1);Uc(a,1,2);Uc(a,4,8);Uc(a,8,4);Uc(a,128,64);Uc(a,64,128);Uc(a,256,2)},Uc=function(a,b,c){(a&b)==b&&(Qc|=b,Qc&=~c)};var Vc=function(a,b){this.c={};this.a=[];this.f=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a)if(a instanceof Vc)for(c=a.Ca(),d=0;d<c.length;d++)this.set(c[d],a.get(c[d]));else for(d in a)this.set(d,a[d])};Vc.prototype.ka=function(){Wc(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.c[this.a[b]]);return a};Vc.prototype.Ca=function(){Wc(this);return this.a.concat()};
var Wc=function(a){if(a.f!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Object.prototype.hasOwnProperty.call(a.c,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.f!=a.a.length){var e={};for(c=b=0;b<a.a.length;)d=a.a[b],Object.prototype.hasOwnProperty.call(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}};Vc.prototype.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.c,a)?this.c[a]:b};
Vc.prototype.set=function(a,b){Object.prototype.hasOwnProperty.call(this.c,a)||(this.f++,this.a.push(a));this.c[a]=b};var Xc=function(a){if(a.ka&&"function"==typeof a.ka)return a.ka();if(q(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return ya(a)},Zc=function(a){var b=Yc.a,c=Yc;if("function"==typeof a.every)return a.every(b,c);if(da(a)||q(a))return sa(a,b,c);if(a.Ca&&"function"==typeof a.Ca)var d=a.Ca();else if(a.ka&&"function"==typeof a.ka)d=void 0;else if(da(a)||q(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else for(f in d=[],e=0,a)d[e++]=f;e=Xc(a);f=e.length;
for(var g=0;g<f;g++)if(!b.call(c,e[g],d&&d[g],a))return!1;return!0};var $c=function(){this.c=new Vc},ad=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+(a[ha]||(a[ha]=++ia)):b.substr(0,1)+a};$c.prototype.add=function(a){this.c.set(ad(a),a)};$c.prototype.a=function(a){a=ad(a);return Object.prototype.hasOwnProperty.call(this.c.c,a)};$c.prototype.ka=function(){return this.c.ka()};y("studio.common.Feature.Type",{xc:1,SDK_EVENT_FORWARDER:2,RL_EVENT_FORWARDER:3});var Yc=new $c;y("studio.common.Feature.hasFeature",function(a){return Yc.a(a)});y("studio.common.Feature.hasFeatures",function(a){return Zc(a)});var bd=function(a,b){this.a=a;this.c=null!=b?b:0};y("studio.common.Orientation",bd);bd.Mode={PORTRAIT:"portrait",LANDSCAPE:"landscape"};bd.prototype.lb=function(){return this.a};bd.prototype.getMode=bd.prototype.lb;bd.prototype.kb=function(){return this.c};bd.prototype.getDegrees=bd.prototype.kb;bd.prototype.toString=function(){return this.a};var cd=function(a,b,c,d,e){if(!E(F(a))&&-1<a.indexOf("?")){e=aa(e)?e:1;for(var f=0;f<e;f++)b=encodeURIComponent(b)}c&&(a=c?a.replace("[rm_exit_id]",c):a,b=d?encodeURIComponent(d+b):b);return a+b};y("studio.common.Visibility.VISIBILITY_PARAMS_KEY","visibilityParams");y("studio.common.Visibility.VISIBILITY_FRACTION_KEY","visibilityFraction");y("studio.common.Visibility.VISIBLE_BOX_KEY","visibleBox");y("studio.common.Visibility.createVisibilityParams",function(a,b){return{visibilityFraction:a,visibleBox:b}});y("studio.common.WhitelistedExternalObject",{CREATIVETOOLSET_CONFIG:"creativeToolsetConfig",CREATIVETOOLSET_INTERNALS:"creativeToolsetInternals",CREATIVETOOLSET_INTERNALS_GEN204:"creativeToolsetInternalsGen204",CREATIVE_REPORTER:"creativeReporter",CREATIVE_INNOVATION:"gcreativeinnovation",GOOGLE_AFMA_SUPPORT:"googleAfmaSupport"});y("studio.common.gdn.Environment.EngagementPhase",{INVITATION:0,ENGAGED:1,INVITATION_LARGE_CANVAS:2});var dd=function(a){this.a=a};y("studio.common.mde.Direction",dd);dd.Corner={yc:0,Ac:1,Hb:2,Jb:3};dd.prototype.toString=function(){return(this.a&2?"b":"t")+(this.a&1?"r":"l")};var ed=function(a,b,c,d,e){this.name=a;this.c=b;this.type=c;this.g=d;this.s=e;this.chargeable=!1},fd=function(a){switch(a){case "Exit":return"Exit";case "Count":return"Counter";case "Start":case "Stop":return"Timer";default:throw"Unsupported event action";}};var gd={DISPLAY_TIMER:{id:null,type:"Timer",L:!0,M:!0},INTERACTION_TIMER:{id:null,type:"Timer",L:!0,M:!0},INTERACTIVE_IMPRESSION:{id:null,type:"Counter",L:!0,M:!1},MANUAL_CLOSE:{id:null,type:"Counter",L:!0,M:!0},EXPAND_TIMER:{id:null,type:"Timer",L:!0,M:!1},FULL_SCREEN:{id:null,type:"Counter",L:!0,M:!0},SCROLL:{id:null,type:"Counter",L:!0,M:!0},LARGE_SCROLL:{id:null,type:"Counter",L:!0,M:!0},SMALL_SCROLL:{id:null,type:"Counter",L:!0,M:!0},ENGAGEMENT:{id:null,type:"Counter",L:!0,M:!0},VIDEO_PLAY:{id:null,
type:"Counter",L:!0,M:!1},VIDEO_VIEW_TIMER:{id:null,type:"Timer",L:!0,M:!0},VIDEO_COMPLETE:{id:null,type:"Counter",L:!0,M:!1},VIDEO_INTERACTION:{id:null,type:"Counter",L:!0,M:!0},VIDEO_PAUSE:{id:null,type:"Counter",L:!0,M:!0},VIDEO_MUTE:{id:null,type:"Counter",L:!0,M:!0},VIDEO_REPLAY:{id:null,type:"Counter",L:!0,M:!0},VIDEO_FIRST_QUARTILE:{id:null,type:"Counter",L:!0,M:!0},VIDEO_MIDPOINT:{id:null,type:"Counter",L:!0,M:!0},VIDEO_THIRD_QUARTILE:{id:null,type:"Counter",L:!0,M:!0},VIDEO_STOP:{id:null,
type:"Counter",L:!0,M:!0},VIDEO_UNMUTE:{id:null,type:"Counter",L:!0,M:!0},BACKUP_IMAGE_IMPRESSION:{id:null,type:"Counter",L:!0,M:!0},HTML5_CREATIVE_IMPRESSION:{id:null,type:"Counter",L:!0,M:!0}},hd=function(a){var b=gd[a];return b?new ed(a,b.id,b.type,b.L,b.M):null};var id={3:"INTERACTION_TIMER",EVENT_USER_INTERACTION:"INTERACTIVE_IMPRESSION",EVENT_MANUAL_CLOSE:"MANUAL_CLOSE",EVENT_VIDEO_PLAY:"VIDEO_PLAY",EVENT_VIDEO_VIEW_TIMER:"VIDEO_VIEW_TIMER",EVENT_VIDEO_COMPLETE:"VIDEO_COMPLETE",EVENT_VIDEO_INTERACTION:"VIDEO_INTERACTION",EVENT_VIDEO_PAUSE:"VIDEO_PAUSE",EVENT_VIDEO_MUTE:"VIDEO_MUTE",EVENT_VIDEO_REPLAY:"VIDEO_REPLAY",EVENT_VIDEO_FIRSTQUARTILE:"VIDEO_FIRST_QUARTILE",EVENT_VIDEO_MIDPOINT:"VIDEO_MIDPOINT",EVENT_VIDEO_THIRDQUARTILE:"VIDEO_THIRD_QUARTILE",EVENT_VIDEO_STOP:"VIDEO_STOP",
EVENT_VIDEO_UNMUTE:"VIDEO_UNMUTE",EVENT_FULLSCREEN:"FULL_SCREEN",DISPLAY_TIMER:"DISPLAY_TIMER",INTERACTION_TIMER:"INTERACTION_TIMER",INTERACTIVE_IMPRESSION:"INTERACTIVE_IMPRESSION",MANUAL_CLOSE:"MANUAL_CLOSE",EXPAND_TIMER:"EXPAND_TIMER",FULL_SCREEN:"FULL_SCREEN",SCROLL:"SCROLL",LARGE_SCROLL:"LARGE_SCROLL",SMALL_SCROLL:"SMALL_SCROLL",ENGAGEMENT:"ENGAGEMENT",VIDEO_PLAY:"VIDEO_PLAY",VIDEO_VIEW_TIMER:"VIDEO_VIEW_TIMER",VIDEO_COMPLETE:"VIDEO_COMPLETE",VIDEO_INTERACTION:"VIDEO_INTERACTION",VIDEO_PAUSE:"VIDEO_PAUSE",
VIDEO_MUTE:"VIDEO_MUTE",VIDEO_REPLAY:"VIDEO_REPLAY",VIDEO_FIRST_QUARTILE:"VIDEO_FIRST_QUARTILE",VIDEO_MIDPOINT:"VIDEO_MIDPOINT",VIDEO_THIRD_QUARTILE:"VIDEO_THIRD_QUARTILE",VIDEO_STOP:"VIDEO_STOP",VIDEO_UNMUTE:"VIDEO_UNMUTE",BACKUP_IMAGE_IMPRESSION:"BACKUP_IMAGE_IMPRESSION",HTML5_CREATIVE_IMPRESSION:"HTML5_CREATIVE_IMPRESSION"};var jd=function(a,b){this.f=a;this.g=b;this.c=0;this.a=null};jd.prototype.get=function(){if(0<this.c){this.c--;var a=this.a;this.a=a.next;a.next=null}else a=this.f();return a};var kd=function(a,b){a.g(b);100>a.c&&(a.c++,b.next=a.a,a.a=b)};var ld=function(a){l.setTimeout(function(){throw a;},0)},md,nd=function(){var a=l.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!H("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow;a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host;
a=w(function(a){if(("*"==d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!H("Trident")&&!H("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.Sa;c.Sa=null;a()}};return function(a){d.next={Sa:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?
function(a){var b=document.createElement("SCRIPT");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){l.setTimeout(a,0)}};var od=function(){this.c=this.a=null},qd=new jd(function(){return new pd},function(a){a.reset()});od.prototype.add=function(a,b){var c=qd.get();c.set(a,b);this.c?this.c.next=c:this.a=c;this.c=c};var sd=function(){var a=rd,b=null;a.a&&(b=a.a,a.a=a.a.next,a.a||(a.c=null),b.next=null);return b},pd=function(){this.next=this.c=this.a=null};pd.prototype.set=function(a,b){this.a=a;this.c=b;this.next=null};pd.prototype.reset=function(){this.next=this.c=this.a=null};var wd=function(a,b){td||ud();vd||(td(),vd=!0);rd.add(a,b)},td,ud=function(){if(-1!=String(l.Promise).indexOf("[native code]")){var a=l.Promise.resolve(void 0);td=function(){a.then(xd)}}else td=function(){var a=xd;!ea(l.setImmediate)||l.Window&&l.Window.prototype&&!H("Edge")&&l.Window.prototype.setImmediate==l.setImmediate?(md||(md=nd()),md(a)):l.setImmediate(a)}},vd=!1,rd=new od,xd=function(){for(var a;a=sd();){try{a.a.call(a.c)}catch(b){ld(b)}kd(qd,a)}vd=!1};var yd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},zd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var K=function(a,b){this.a=0;this.B=void 0;this.g=this.c=this.f=null;this.i=this.s=!1;if(a!=t)try{var c=this;a.call(b,function(a){Ad(c,2,a)},function(a){Ad(c,3,a)})}catch(d){Ad(this,3,d)}},Bd=function(){this.next=this.g=this.c=this.i=this.a=null;this.f=!1};Bd.prototype.reset=function(){this.g=this.c=this.i=this.a=null;this.f=!1};
var Cd=new jd(function(){return new Bd},function(a){a.reset()}),Dd=function(a,b,c){var d=Cd.get();d.i=a;d.c=b;d.g=c;return d},Fd=function(a,b,c){Ed(a,b,c,null)||wd(la(b,a))},Gd=function(a){return new K(function(b,c){var d=a.length,e=[];if(d)for(var f=function(a,c){d--;e[a]=c;0==d&&b(e)},g=function(a){c(a)},h=0,m;h<a.length;h++)m=a[h],Fd(m,la(f,h),g);else b(e)})},Id=function(){var a,b=new K(function(b){a=b});return new Hd(b,a)};
K.prototype.then=function(a,b,c){return Jd(this,ea(a)?a:null,ea(b)?b:null,c)};yd(K);var Ld=function(a,b,c){b=Dd(b,b,c);b.f=!0;Kd(a,b)};K.prototype.cancel=function(a){0==this.a&&wd(function(){var b=new Md(a);Nd(this,b)},this)};
var Nd=function(a,b){if(0==a.a)if(a.f){var c=a.f;if(c.c){for(var d=0,e=null,f=null,g=c.c;g&&(g.f||(d++,g.a==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.a&&1==d?Nd(c,b):(f?(d=f,d.next==c.g&&(c.g=d),d.next=d.next.next):Od(c),Pd(c,e,3,b)))}a.f=null}else Ad(a,3,b)},Kd=function(a,b){a.c||2!=a.a&&3!=a.a||Qd(a);a.g?a.g.next=b:a.c=b;a.g=b},Jd=function(a,b,c,d){var e=Dd(null,null,null);e.a=new K(function(a,g){e.i=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){g(p)}}:a;e.c=c?function(b){try{var e=c.call(d,
b);!n(e)&&b instanceof Md?g(b):a(e)}catch(p){g(p)}}:g});e.a.f=a;Kd(a,e);return e.a};K.prototype.m=function(a){this.a=0;Ad(this,2,a)};K.prototype.o=function(a){this.a=0;Ad(this,3,a)};
var Ad=function(a,b,c){0==a.a&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.a=1,Ed(c,a.m,a.o,a)||(a.B=c,a.a=b,a.f=null,Qd(a),3!=b||c instanceof Md||Rd(a,c)))},Ed=function(a,b,c,d){if(a instanceof K)return Kd(a,Dd(b||t,c||null,d)),!0;if(zd(a))return a.then(b,c,d),!0;if(fa(a))try{var e=a.then;if(ea(e))return Sd(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},Sd=function(a,b,c,d,e){var f=!1,g=function(a){f||(f=!0,c.call(e,a))},h=function(a){f||(f=!0,d.call(e,a))};try{b.call(a,
g,h)}catch(m){h(m)}},Qd=function(a){a.s||(a.s=!0,wd(a.j,a))},Od=function(a){var b=null;a.c&&(b=a.c,a.c=b.next,b.next=null);a.c||(a.g=null);return b};K.prototype.j=function(){for(var a;a=Od(this);)Pd(this,a,this.a,this.B);this.s=!1};
var Pd=function(a,b,c,d){if(3==c&&b.c&&!b.f)for(;a&&a.i;a=a.f)a.i=!1;if(b.a)b.a.f=null,Td(b,c,d);else try{b.f?b.i.call(b.g):Td(b,c,d)}catch(e){Ud.call(null,e)}kd(Cd,b)},Td=function(a,b,c){2==b?a.i.call(a.g,c):a.c&&a.c.call(a.g,c)},Rd=function(a,b){a.i=!0;wd(function(){a.i&&Ud.call(null,b)})},Ud=ld,Md=function(a){A.call(this,a)};z(Md,A);Md.prototype.name="cancel";var Hd=function(a,b){this.c=a;this.a=b};var L=function(){this.s=this.s;this.B=this.B};L.prototype.s=!1;L.prototype.dispose=function(){this.s||(this.s=!0,this.F())};L.prototype.F=function(){if(this.B)for(;this.B.length;)this.B.shift()()};var Vd=function(a){a&&"function"==typeof a.dispose&&a.dispose()},Wd=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];da(d)?Wd.apply(null,d):Vd(d)}};var Xd=!I||9<=Number(Ub),Yd=I&&!Tb("9"),Zd=function(){if(!l.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});l.addEventListener("test",t,b);l.removeEventListener("test",t,b);return a}();var M=function(a,b){this.type=a;this.a=this.target=b;this.fb=!0};M.prototype.g=function(){this.fb=!1};var ae=function(a,b){M.call(this,a?a.type:"");this.relatedTarget=this.a=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.c=null;if(a){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.a=b;(b=a.relatedTarget)?Jb&&(Cb(b,"nodeName")||(b=null)):"mouseover"==c?b=a.fromElement:"mouseout"==c&&
(b=a.toElement);this.relatedTarget=b;null===d?(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=
a.pointerId||0;this.pointerType=q(a.pointerType)?a.pointerType:$d[a.pointerType]||"";this.state=a.state;this.c=a;a.defaultPrevented&&this.g()}};z(ae,M);var $d={2:"touch",3:"pen",4:"mouse"};ae.prototype.g=function(){ae.G.g.call(this);var a=this.c;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Yd)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var be="closure_listenable_"+(1E6*Math.random()|0),ce=function(a){return!(!a||!a[be])},de=0;var ee=function(a,b,c,d,e){this.listener=a;this.a=null;this.src=b;this.type=c;this.capture=!!d;this.Ea=e;this.key=++de;this.na=this.Ba=!1},fe=function(a){a.na=!0;a.listener=null;a.a=null;a.src=null;a.Ea=null};var ge=function(a){this.src=a;this.a={};this.c=0};ge.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.a[f];a||(a=this.a[f]=[],this.c++);var g=he(a,b,d,e);-1<g?(b=a[g],c||(b.Ba=!1)):(b=new ee(b,this.src,f,!!d,e),b.Ba=c,a.push(b));return b};
var ie=function(a,b){var c=b.type;c in a.a&&C(a.a[c],b)&&(fe(b),0==a.a[c].length&&(delete a.a[c],a.c--))},je=function(a,b,c,d,e){a=a.a[b.toString()];b=-1;a&&(b=he(a,c,d,e));return-1<b?a[b]:null},he=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.na&&f.listener==b&&f.capture==!!c&&f.Ea==d)return e}return-1};var ke="closure_lm_"+(1E6*Math.random()|0),le={},me=0,oe=function(a,b,c,d,e){if(d&&d.once)return ne(a,b,c,d,e);if(u(b)){for(var f=0;f<b.length;f++)oe(a,b[f],c,d,e);return null}c=pe(c);return ce(a)?a.i.add(String(b),c,!1,fa(d)?!!d.capture:!!d,e):qe(a,b,c,!1,d,e)},qe=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=fa(e)?!!e.capture:!!e,h=re(a);h||(a[ke]=h=new ge(a));c=h.add(b,c,d,g,f);if(c.a)return c;d=se();c.a=d;d.src=a;d.listener=c;if(a.addEventListener)Zd||(e=g),void 0===e&&(e=
!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(te(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("addEventListener and attachEvent are unavailable.");me++;return c},se=function(){var a=ue,b=Xd?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},ne=function(a,b,c,d,e){if(u(b)){for(var f=0;f<b.length;f++)ne(a,b[f],c,d,e);return null}c=pe(c);return ce(a)?a.i.add(String(b),
c,!0,fa(d)?!!d.capture:!!d,e):qe(a,b,c,!0,d,e)},ve=function(a,b,c,d,e){if(u(b))for(var f=0;f<b.length;f++)ve(a,b[f],c,d,e);else d=fa(d)?!!d.capture:!!d,c=pe(c),ce(a)?(a=a.i,b=String(b).toString(),b in a.a&&(f=a.a[b],c=he(f,c,d,e),-1<c&&(fe(f[c]),Array.prototype.splice.call(f,c,1),0==f.length&&(delete a.a[b],a.c--)))):a&&(a=re(a))&&(c=je(a,b,c,d,e))&&we(c)},we=function(a){if(!aa(a)&&a&&!a.na){var b=a.src;if(ce(b))ie(b.i,a);else{var c=a.type,d=a.a;b.removeEventListener?b.removeEventListener(c,d,a.capture):
b.detachEvent?b.detachEvent(te(c),d):b.addListener&&b.removeListener&&b.removeListener(d);me--;(c=re(b))?(ie(c,a),0==c.c&&(c.src=null,b[ke]=null)):fe(a)}}},te=function(a){return a in le?le[a]:le[a]="on"+a},ye=function(a,b,c,d){var e=!0;if(a=re(a))if(b=a.a[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.na&&(f=xe(f,d),e=e&&!1!==f)}return e},xe=function(a,b){var c=a.listener,d=a.Ea||a.src;a.Ba&&we(a);return c.call(d,b)},ue=function(a,b){if(a.na)return!0;if(!Xd){var c=
b||r("window.event");b=new ae(c,this);var d=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var e=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(g){e=!0}if(e||void 0==c.returnValue)c.returnValue=!0}c=[];for(e=b.a;e;e=e.parentNode)c.push(e);a=a.type;for(e=c.length-1;0<=e;e--){b.a=c[e];var f=ye(c[e],a,!0,b);d=d&&f}for(e=0;e<c.length;e++)b.a=c[e],f=ye(c[e],a,!1,b),d=d&&f}return d}return xe(a,new ae(b,this))},re=function(a){a=a[ke];return a instanceof ge?a:null},ze="__closure_events_fn_"+(1E9*Math.random()>>>
0),pe=function(a){if(ea(a))return a;a[ze]||(a[ze]=function(b){return a.handleEvent(b)});return a[ze]};var N=function(){L.call(this);this.i=new ge(this);this.ga=this;this.R=null};z(N,L);N.prototype[be]=!0;N.prototype.U=function(a){this.R=a};N.prototype.removeEventListener=function(a,b,c,d){ve(this,a,b,c,d)};
var O=function(a,b){var c=a.R;if(c){var d=[];for(var e=1;c;c=c.R)d.push(c),++e}a=a.ga;c=b.type||b;q(b)?b=new M(b,a):b instanceof M?b.target=b.target||a:(e=b,b=new M(c,a),Ca(b,e));e=!0;if(d)for(var f=d.length-1;0<=f;f--){var g=b.a=d[f];e=Ae(g,c,!0,b)&&e}g=b.a=a;e=Ae(g,c,!0,b)&&e;e=Ae(g,c,!1,b)&&e;if(d)for(f=0;f<d.length;f++)g=b.a=d[f],e=Ae(g,c,!1,b)&&e};
N.prototype.F=function(){N.G.F.call(this);if(this.i){var a=this.i,b=0,c;for(c in a.a){for(var d=a.a[c],e=0;e<d.length;e++)++b,fe(d[e]);delete a.a[c];a.c--}}this.R=null};var Ae=function(a,b,c,d){b=a.i.a[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.na&&g.capture==c){var h=g.listener,m=g.Ea||g.src;g.Ba&&ie(a.i,g);e=!1!==h.call(m,d)&&e}}return e&&0!=d.fb};var P=function(a,b){N.call(this);this.g=a||1;this.c=b||l;this.j=w(this.o,this);this.m=x()};z(P,N);P.prototype.f=!1;P.prototype.a=null;P.prototype.o=function(){if(this.f){var a=x()-this.m;0<a&&a<.8*this.g?this.a=this.c.setTimeout(this.j,this.g-a):(this.a&&(this.c.clearTimeout(this.a),this.a=null),O(this,"tick"),this.f&&(this.a=this.c.setTimeout(this.j,this.g),this.m=x()))}};P.prototype.start=function(){this.f=!0;this.a||(this.a=this.c.setTimeout(this.j,this.g),this.m=x())};
var Be=function(a){a.f=!1;a.a&&(a.c.clearTimeout(a.a),a.a=null)};P.prototype.F=function(){P.G.F.call(this);Be(this);delete this.c};var Ce=function(a,b,c){if(ea(a))c&&(a=w(a,c));else if(a&&"function"==typeof a.handleEvent)a=w(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:l.setTimeout(a,b||0)};/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
var De=function(a,b){this.i=[];this.v=a;this.u=b||null;this.g=this.a=!1;this.f=void 0;this.m=this.A=this.B=!1;this.s=0;this.c=null;this.j=0};De.prototype.cancel=function(a){if(this.a)this.f instanceof De&&this.f.cancel();else{if(this.c){var b=this.c;delete this.c;a?b.cancel(a):(b.j--,0>=b.j&&b.cancel())}this.v?this.v.call(this.u,this):this.m=!0;this.a||(a=new Ee(this),Fe(this),Ge(this,!1,a))}};De.prototype.o=function(a,b){this.B=!1;Ge(this,a,b)};
var Ge=function(a,b,c){a.a=!0;a.f=c;a.g=!b;He(a)},Fe=function(a){if(a.a){if(!a.m)throw new Ie(a);a.m=!1}},Je=function(a,b,c,d){a.i.push([b,c,d]);a.a&&He(a)};De.prototype.then=function(a,b,c){var d,e,f=new K(function(a,b){d=a;e=b});Je(this,d,function(a){a instanceof Ee?f.cancel():e(a)});return f.then(a,b,c)};yd(De);
var Ke=function(a){return ra(a.i,function(a){return ea(a[1])})},He=function(a){if(a.s&&a.a&&Ke(a)){var b=a.s,c=Le[b];c&&(l.clearTimeout(c.a),delete Le[b]);a.s=0}a.c&&(a.c.j--,delete a.c);b=a.f;for(var d=c=!1;a.i.length&&!a.B;){var e=a.i.shift(),f=e[0],g=e[1];e=e[2];if(f=a.g?g:f)try{var h=f.call(e||a.u,b);n(h)&&(a.g=a.g&&(h==b||h instanceof Error),a.f=b=h);if(zd(b)||"function"===typeof l.Promise&&b instanceof l.Promise)d=!0,a.B=!0}catch(m){b=m,a.g=!0,Ke(a)||(c=!0)}}a.f=b;d&&(h=w(a.o,a,!0),d=w(a.o,
a,!1),b instanceof De?(Je(b,h,d),b.A=!0):b.then(h,d));c&&(b=new Me(b),Le[b.a]=b,a.s=b.a)},Ie=function(){A.call(this)};z(Ie,A);Ie.prototype.message="Deferred has already fired";Ie.prototype.name="AlreadyCalledError";var Ee=function(){A.call(this)};z(Ee,A);Ee.prototype.message="Deferred was canceled";Ee.prototype.name="CanceledError";var Me=function(a){this.a=l.setTimeout(w(this.f,this),0);this.c=a};Me.prototype.f=function(){delete Le[this.a];throw this.c;};var Le={};var Re=function(a){var b={},c=b.document||document,d=Ka(a),e=hc(document,"SCRIPT"),f={gb:e,ib:void 0},g=new De(Ne,f),h=null,m=null!=b.timeout?b.timeout:5E3;0<m&&(h=window.setTimeout(function(){Oe(e,!0);var a=new Pe(1,"Timeout reached for loading script "+d);Fe(g);Ge(g,!1,a)},m),f.ib=h);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Oe(e,b.Hc||!1,h),Fe(g),Ge(g,!0,null))};e.onerror=function(){Oe(e,!0,h);var a=new Pe(0,"Error while loading script "+
d);Fe(g);Ge(g,!1,a)};f=b.attributes||{};Ca(f,{type:"text/javascript",charset:"UTF-8"});ec(e,f);e.src=Ka(a);Qe(c).appendChild(e);return g},Qe=function(a){var b=(a||document).getElementsByTagName("HEAD");return b&&0!=b.length?b[0]:a.documentElement},Ne=function(){if(this&&this.gb){var a=this.gb;a&&"SCRIPT"==a.tagName&&Oe(a,!0,this.ib)}},Oe=function(a,b,c){null!=c&&l.clearTimeout(c);a.onload=t;a.onerror=t;a.onreadystatechange=t;b&&window.setTimeout(function(){ic(a)},0)},Pe=function(a,b){var c="Jsloader error (code #"+
a+")";b&&(c+=": "+b);A.call(this,c);this.code=a};z(Pe,A);var Se=function(a,b,c){this.g=a;this.a="";b&&(this.a=/^(http[s]?:)?\/\//.test(b)?b:"//pagead2.googlesyndication.com/activeview?avi="+b);this.f=c||"";this.c=!1},Te=function(a,b){b.setAttribute("id","DfaVisibilityIdentifier_"+x());b.className="GoogleActiveViewClass";b._avicxn_=a.a;b._avm_=a.f;a.c||(Re(Ab("//pagead2.googlesyndication.com/pagead/js/lidar.js")),a.c=!0)},Ve=function(a){a.a&&Ue(a.g,a.a+"&id=lidar2&r=w&rs=5r")};var Q=function(a,b,c){M.call(this,a);this.c=b||void 0;this.data=c};z(Q,M);var We=function(a,b,c,d){M.call(this,a);this.c=b;this.s=c;this.o=!!d};z(We,M);var Xe=function(a,b,c,d){"Count"==b&&(d=!0);We.call(this,a,b,!0,d);this.f=c};z(Xe,We);var Ye=function(a,b,c,d){Xe.call(this,a,b,c);this.videoName=d};z(Ye,Xe);var Ze=function(a,b,c,d,e){We.call(this,a,b,!1,e);this.i=c;this.m=d};z(Ze,We);var $e=function(a,b){M.call(this,"reportCustomVariable");this.c=a;this.f=b};z($e,M);
var af=function(a,b,c,d,e,f){Ze.call(this,a,"Exit",b,!0);this.B="null"!=c?c:null;this.f="null"!=d?d:null;this.j=e;this.log=f};z(af,Ze);var bf=function(a){M.call(this,"invokeExternalJSFunction");this.c=a};z(bf,M);var cf=function(a){M.call(this,"setThrottlingWindow");this.c=a};z(cf,M);var df=function(a,b,c){M.call(this,"setTimerAdjustment");this.i=a;this.c=b;this.f=c};z(df,M);var ef=function(a){M.call(this,"registerChargeableEventName");this.c=a};z(ef,M);var ff=function(){M.call(this,"updateVideoProgress")};
z(ff,M);var jf=function(a,b){switch(a){case "logEvent":return gf(b);case "logVideoEvent":return new Ye("logVideoEvent",b[0],id[b[2]],b[1]);case "updateVideoProgress":return new ff(b[1],b[2]);case "logEventFlushCounters":return b[0]="Exit",gf(b,!0);case "logExitFlushEventsOpenPopup":return hf(b,!0);case "launchExit":return hf(b,!1);case "reportCustomVariable":return new $e(b[0],b[1]);case "flushCounters":return new M("flushCounters");case "conduitInitialized":return a=b[1]&&u(b[1])&&0!=b[1].length?b[1]:null,
new Q("conduitInitialized",null,{features:a});case "expandAsset":return new Q("expandAsset",null,1<b.length?b[1]:null);case "expandRequested":return new Q("expandRequested",null,1<b.length?b[1]:null);case "expandFinished":case "collapseAsset":case "collapseRequested":case "collapseFinished":case "tellAssetHide":return new Q(a);case "tellCompanionAssetHide":return new Q("tellCompanionAssetHide",b[0]);case "tellCompanionAssetShow":return new Q("tellCompanionAssetShow",b[0]);case "invokeExternalJSFunction":return new bf(b[0]);
case "setThrottlingWindow":return new cf(parseFloat(b[0]));case "setTimerAdjustment":return new df(id[b[0]],parseFloat(b[1]),parseFloat(b[2]));case "registerChargeableEventName":return new ef(b[0]);case "fullscreenExpandRequested":return new Q(a,null,b);case "setResponsiveBehavior":return new Q(a,null,{behavior:b[0],state:b[1]});case "responsiveResize":return new Q(a,null,{width:b[0],height:b[1]});case "isFullscreenSupported":case "queryFullscreenDimensions":case "fullscreenExpandFinished":case "fullscreenCollapseRequested":case "fullscreenCollapseFinished":return new Q(a);
case "AD_CLICKED":return new M("AD_CLICKED");case "registerEventTypeListenerForType":return new Q(a,null,{type:b[0],Lc:b[1]})}return null},gf=function(a,b){var c=a[0],d=a[1],e=kf(a[3]);return kf(a[4])?new Ze("logEvent",c,d,e,b):new Xe("logEvent",c,id[d],b)},hf=function(a,b){return new af("logExitFlushEventsOpenPopup",a[1],a[4],a[5]||null,a[6],b)},kf=function(a){return null!=a?"true"==a.toString().toLowerCase():!1};var lf={zc:"top",wc:"right",Ib:"bottom",ac:"left"},mf=function(a){if(!a)return null;a=a.toLowerCase();0==a.lastIndexOf("alignment_",0)&&(a=a.substr(10));return za(lf,a)?a:null};var nf=function(a){a=a?a.toLowerCase():"";switch(a){case "normal":return"normal";case "lightbox":return"lightbox";case "push_down":return"push_down"}return null};var of=function(a){this.a=a},pf={Bc:"transparent",rc:"opaque",Cc:"window"},qf=function(a){return a&&za(pf,a.toLowerCase())?a.toLowerCase():null};var sf=function(a){this.u=a.eventReportingUrl||"";this.P=a.clickUrl||"";this.o=a.clickUrlTimesToEscape||"1";this.a=a.clickEventTagUrl||"";this.g=a.impressionUrl||"";this.C=a.geoData||"";this.K=a.siteName||"";this.J=a.siteId||"";this.B=a.adId||"";this.m=a.buyId||"";this.creativeId=a.creativeId||"";this.H=a.placementId||"";this.j=a.advertiserId||"";this.D=a.keyValueOrdinal||"";this.R=a.renderingVersion||"";this.I=a.renderingId||"";this.randomNumber=a.randomNumber||"";this.N=a.stringReportingUrl||"";
this.f=a.bookingTimeMetaData||{};this.i=new rf(a.tag||{});this.v=a.exitSuffix||"";this.S=a.dynamicData||"";this.A=a.exitUrlPatternMacroValues;this.c=a.placementDimensions||{w:"0",h:"0"};this.U=a.swiffyRuntimeUrl||"";this.s=a.activeViewClkStr||"";this.O=a.activeViewUrlPrefix||""},rf=function(a){this.f=a.adContainerElementId;this.s=a.hideObjects;this.g=a.preferFlash;this.c=a.runtimeMetaData||{};this.expansionMode=nf(a.expansionMode);this.i=!!a.renderFloatInplace;this.a={};this.a.top=new tf(r("multiFloat.top.position",
a)?r("multiFloat.top.position",a).split(","):[]);this.a.right=new tf(r("multiFloat.right.position",a)?r("multiFloat.right.position",a).split(","):[]);this.a.bottom=new tf(r("multiFloat.bottom.position",a)?r("multiFloat.bottom.position",a).split(","):[]);this.a.left=new tf(r("multiFloat.left.position",a)?r("multiFloat.left.position",a).split(","):[])},tf=function(a){this.top=1<a.length?a[0]:"";this.left=1<a.length?a[1]:""};var uf=function(a,b){this.a=a;this.expansionMode=b;this.c="push_down"==b};var vf=function(a,b,c,d){this.a=a;this.s=b;this.g=-1<b;this.c=c;this.f=-1<c;this.i=d};var wf=function(a){this.a=a};var xf=function(){};var zf=function(a,b){this.top=parseInt(a,10);this.c=yf(a);this.left=parseInt(b,10);this.a=yf(b)},yf=function(a){return ta(Af,function(b){var c=String(b).toLowerCase();b=String(a.substr(a.length-b.length,b.length)).toLowerCase();return 0==(c<b?-1:c==b?0:1)})||"px"},Af=["px","%","pxc"];var Bf=function(){this.c=this.a=!1};var Cf={Mb:"ad_container_id",Vb:"hideObjects",tc:"mtfTop",sc:"mtfLeft",Fc:"zindex",Ob:"mtfDuration",Dc:"wmode",uc:"preferFlash",Sb:"as_kw",Tb:"as_lat",Ub:"as_lng",Wb:"mtfIFPath",Rb:"expansionMode",pc:"top_container",oc:"mtfTopFloat",nc:"mtfTopDuration",qc:"mtfTopWmode",lc:"right_container",kc:"mtfRightFloat",jc:"mtfRightDuration",mc:"mtfRightWmode",dc:"bottom_container",cc:"mtfBottomFloat",bc:"mtfBottomDuration",ec:"mtfBottomWmode",hc:"left_container",gc:"mtfLeftFloat",fc:"mtfLeftDuration",ic:"mtfLeftWmode",
vc:"mtfRenderFloatInplace",Ec:"tryToWriteHtmlInline",Nb:"debugjs",Zb:"dcapp",Kb:"breakoutiframe",$b:"inMobileAdSdk"},Df=["mtfTop","mtfLeft","wmode","mtfDuration"],Ef=function(a){return"The parameter: "+a+" does not have a multi-floating analog. Please use one of the valid parameters: "+Df.join(", ")+"."},Ff=function(a,b){switch(a){case "left":switch(b){case "mtfDuration":return"mtfLeftDuration";case "wmode":return"mtfLeftWmode";case "mtfTop":case "mtfLeft":return"mtfLeftFloat";case "ad_container_id":return"left_container";
default:throw Error(Ef(b));}case "right":switch(b){case "mtfDuration":return"mtfRightDuration";case "wmode":return"mtfRightWmode";case "mtfTop":case "mtfLeft":return"mtfRightFloat";case "ad_container_id":return"right_container";default:throw Error(Ef(b));}case "bottom":switch(b){case "mtfDuration":return"mtfBottomDuration";case "wmode":return"mtfBottomWmode";case "mtfTop":case "mtfLeft":return"mtfBottomFloat";case "ad_container_id":return"bottom_container";default:throw Error(Ef(b));}case "top":switch(b){case "mtfDuration":return"mtfTopDuration";
case "wmode":return"mtfTopWmode";case "mtfTop":case "mtfLeft":return"mtfTopFloat";case "ad_container_id":return"top_container";default:throw Error(Ef(b));}default:return b}};(function(){var a={};xa(Cf,function(b){a[b.toLowerCase()]=b});return a})();var Gf=function(a,b,c,d,e){this.id=a;this.i=b;this.f=c;this.C="BANNER"==c||"EXPANDABLE"==c||"FLIPBOOK"==c||"VPAID_LINEAR"==c||"VPAID_NON_LINEAR"==c;this.width=d.width;this.height=d.height;this.u=this.m=null;this.A=e;this.D=0;this.H=this.layoutsConfig=this.o=this.g=this.v=this.a=this.c=this.j=this.B=this.s=null},Hf={adContainerElementId:"ad_container_id",zIndex:"zindex",expansionMode:"expansionMode",hideObjects:"hideObjects",duration:"mtfDuration",wmode:"wmode",top:"mtfTop",left:"mtfLeft",renderFloatInplace:"mtfRenderFloatInplace",
"multiFloat.top.renderingSlotId":"top_container","multiFloat.top.duration":"mtfTopDuration","multiFloat.top.wmode":"mtfTopWmode","multiFloat.top.position":"mtfTopFloat","multiFloat.right.renderingSlotId":"right_container","multiFloat.right.duration":"mtfRightDuration","multiFloat.right.wmode":"mtfRightWmode","multiFloat.right.position":"mtfRightFloat","multiFloat.bottom.renderingSlotId":"bottom_container","multiFloat.bottom.duration":"mtfBottomDuration","multiFloat.bottom.wmode":"mtfBottomWmode",
"multiFloat.bottom.position":"mtfBottomFloat","multiFloat.left.renderingSlotId":"left_container","multiFloat.left.duration":"mtfLeftDuration","multiFloat.left.wmode":"mtfLeftWmode","multiFloat.left.position":"mtfLeftFloat"},If=function(a){var b=a.a&&a.a.a;if(b){var c=b.left,d=b.top;3>=Math.abs(c)&&(b.left=0);3>=Math.abs(d)&&(b.top=0);3>=Math.abs(c+b.width-a.width)&&(0==b.left?b.width=a.width:b.left=a.width-b.width);3>=Math.abs(d+b.height-a.height)&&(0==b.top?b.height=a.height:b.top=a.height-b.height)}};
Gf.prototype.toString=function(){return"[PrimaryFile "+this.id+"]"};
var Jf=function(a){return"BACKUP_IMAGE"!=a.f&&"PRE_LOADER"!=a.f},Kf=function(a,b){var c=b.zindex;null!=c&&(c=parseInt(c,10),isNaN(c)||(a.D=c));c=b.expansionMode;null==c||E(F(c))||null===a.a||(c=nf(c),null!==c&&(a.a.expansionMode=c));c=b.hideObjects;null==c||E(F(c))||null===a.g||(a.g.a="true"==c);c=null;if(null!==a.c){c=a.c.i||null;var d=Ff(c,"mtfDuration");d=parseInt(b[d],10);isNaN(d)||(a.c.c=d,a.c.f=!0);d=[];if(null===c){var e=b.mtfLeft;d[0]=b.mtfTop;d[1]=e}else e=Ff(c,"mtfTop"),null!=b[e]&&(d=b[e].split(","));
2<=d.length&&(e=parseInt(d[0],10),isNaN(e)||(a.c.a.top=e,a.c.a.c=yf(d[0])),e=parseInt(d[1],10),isNaN(e)||(a.c.a.left=e,a.c.a.a=yf(d[1])))}d=b.mtfRenderFloatInplace;if(a.C||"true"==d)d=Ff(c,"ad_container_id"),d=b[d],E(F(d))||(a.u=d);a.B&&(c=Ff(c,"wmode"),b=qf(b[c]),null!==b&&(a.B.a=b))},Lf=function(a){return aa(a)&&!isNaN(a)};var Mf=function(a,b,c){this.a=a;this.c=b;this.f=!!c};Mf.prototype.ping=function(){if(this.f){var a=this.a;if(!this.c.a&&!E(F(a))&&null!==a)if(wc())vc(window,a,!0);else{var b=l.document;if(b.body){var c=b.getElementById("goog-srcless-iframe");c||(c=hc((new $b(b)).a,"IFRAME"),c.style.display="none",c.id="goog-srcless-iframe",b.body.appendChild(c));b=c}else b=null;b&&b.contentWindow&&vc(b.contentWindow,a,!1)}}else Ue(this.c,this.a)};var Nf={Lb:"CLICK",Yb:"IMPRESSION_JS",Xb:"IMPRESSION_IMG",Gb:"ARTWORK_IMPRESSION",Pb:"ENGAGEMENT_IMG",Qb:"EXPANSION"},Of=function(a){return za(Nf,a)?a:null};var Pf=function(a){this.a=!!a};Pf.prototype.a=!1;var Ue=function(a,b){a.a||E(F(b))||(window.studioV2_image_requests||(window.studioV2_image_requests=[]),a=hc(document,"img"),a.src=b,window.studioV2_image_requests.push(a))};var Qf=function(){this.c=this.f=this.s=this.height=this.width=this.a=this.target=this.g="";this.i=[]},Rf=function(a){var b=ta(a.primaryFiles,function(a){return"BACKUP_IMAGE"==a.renderAs});if(null===b)return null;var c=new Qf;c.a=b.url||c.a;c.width=b.width||c.width;c.height=b.height||c.height;c.s=a.impressionUrl;b=ta(a.exitEvents,function(a){return!!a.backUpExit});null!==b&&(b.destinationUrl&&(c.g=a.clickUrl?cd(a.clickUrl,b.destinationUrl,b.reportingId):b.destinationUrl),c.target=b.targetWindow||c.target);
b=ta(a.thirdPartyUrls,function(a){return"IMPRESSION_IMG"==a.type});null!==b&&(c.c=b.url||c.c);if(null!=a.thirdPartyUrls){b=a.thirdPartyUrls;for(var d=new Pf(a.previewMode||!1),e=0;e<b.length;e++)"CLICK"==Of(b[e].type)&&c.i.push(new Mf(b[e].url,d,"true"==b[e].scrub))}a=a.eventTrackingBaseUrl;null!=a&&(";"!=a.charAt(a.length-1)&&(a+=";"),c.f=a+"met=1;&timestamp="+ +new Date+";eid1=9;ecn1=1;etm1=0;");return c},Sf=function(a){var b=[];b=b.concat(['<a target="',a.target,'" href="',a.g,'">']);b=b.concat(['<img src="',
a.a,'" ']);b=b.concat(['width="',a.width,'" height="',a.height,'" ']);b.push('border="0"></a>');return b.join("")};var Tf=function(a,b,c,d){this.name=a;this.url=b;null!=d&&(this.url=0!=this.url.indexOf("/")?d+"/"+this.url:d+this.url);c&&(this.url=this.url.replace(/^http:\/\//,"https://"));this.c=!1;this.a=null},Vf=function(a,b){b=new Tf(a.name,a.url,b);a.isVideo&&Uf(b,a.streamingUrl);return b},Uf=function(a,b){a.c=!0;a.a=b||null};var Wf=function(a){var b=a.toLowerCase();a=[];var c=0;/^https?:\/\//.test(b)?(a[0]=0,c="s"==b.charAt(4)?8:7):a[0]=-1;a[1]=c;b=[b.indexOf(":",c),b.indexOf("/",c),b.indexOf("?",c),b.indexOf("#",c)];for(c=0;c<b.length;++c)if(-1==b[c])a[c+2]=-1;else{for(var d=!0,e=c+1;e<b.length;++e)-1<b[e]&&b[c]>b[e]&&(d=!1);a[c+2]=d?b[c]:-1}this.a=a};var Xf=function(a){return(a=a.match(/([^:]+):([^:]*):([^:]*):(.+)/))&&5==a.length?{type:a[1],name:unescape(a[2]),videoName:unescape(a[3]),trigger:a[4]}:null};var Yf=function(a,b){if("boolean"==typeof a)return a;if(q(a)){if("true"===a)return!0;if("false"===a)return!1}return b?b:!1};var Zf=function(){this.ma=!1;this.j=this.g=this.bb="";this.B=new J(0,0);this.i="";this.da=!1;this.m=new J(0,0);this.c=!1;this.I=this.P=this.va="";this.W=[];this.ta=this.S=!1;this.fa=null;this.a={};this.A="";this.J=this.ua=this.R=!1;this.aa=null;this.v="";this.K={Fa:"",Ga:""};this.s={};this.o=this.ga=this.U="";this.D=1;this.V=this.Z=this.X="";this.ea=null;this.za=!1;this.f=[];this.$a=[];this.cb=[];this.qa={};this.xa={};this.H={};this.ya={};this.ra={};this.u={};this.O=!1;this.$={};this.ia=this.N=this.C=
null;this.$.Exit=this.H;this.$.Timer=this.ya;this.$.Counter=this.ra};Zf.prototype.ab=!1;
var bg=function(a,b){if(!a.ma){a.ma=!0;a.bb=b.renderingLibraryData.version;var c=b.creativeParameters;a.g=c.cid||a.g;a.j=c.creative_unique_id||a.j;a.B=new J(parseInt(b.width,10)||a.B.width,parseInt(b.height,10)||a.B.height);a.m=new J(parseInt(b.slotWidth,10)||a.m.width,parseInt(b.slotHeight,10)||a.m.height);a.c=Yf(b.previewMode,a.c);a.va=a.c?b.previewEventsUrl:"";a.P=c.rv||a.P;a.I=b.flashVersion||a.I;u(b.html5Features)&&(a.S=0<=oa(b.html5Features,"Modernizr.cssanimations"),a.W=b.html5Features);a.za=
b.translated_layout;a.a=c;a.A=c.ad_container_id||a.A;a.R=Yf(c.mtfRenderFloatInplace,a.R);a.ua=Yf(c.generate_ad_slot,a.ua);a.V=c.exit_suffix||a.V;a.Z=c.swiffy_url||a.Z;a.da=!!c.swiffy_url;a:{var d=b.primaryFiles;if(null!=d)for(var e=0;e<d.length;++e)if("PRE_LOADER"==d[e].renderAs){d=d[e].url;break a}d=""}a.v=d||a.v;a.J="https"==((b.renderingLibraryData.renderingLibrary||"").match(yc)[1]||null);d=(d=b.renderingLibraryData.renderingLibrary.match(yc)[3]||null)?decodeURI(d):d;a.K={Fa:"http://"+d,Ga:"https://"+
d};E(F(b.dynamicData))||(a.i=b.dynamicData.replace(/\\"/g,'"'),a.i=a.i.replace(/\\\\/g,"\\"),a.i=a.i.replace(/\\'/g,"'"),a.i=a.i.replace(/:\/\/s(0|1)\.2mdn\.net/g,"://"+d));d=new Pf(a.c);if(null!=b.thirdPartyUrls){e=b.thirdPartyUrls;for(var f=0;f<e.length;++f){var g=Of(e[f].type);null!=g&&(g in a.s||(a.s[g]=[]),a.s[g].push(new Mf(e[f].url,d,"true"==e[f].scrub)))}}a.U=$f(b.eventTrackingBaseUrl,"met")||a.U;a.ga=$f(b.customEventTrackingBaseUrl,"stragg")||a.ga;a.o=b.clickUrl||a.o;c=parseInt(c.clickN,
10);a.D=isNaN(c)?a.D:c;a.X=b.impressionUrl||a.X;a.C=Rf(b)||a.C;a.za||(a.N=new Se(d,b.activeViewUrlPrefix||b.clickString,b.activeViewMetadata));a.ia=ag(a)}},ag=function(a){if(!a.i)return null;try{var b=JSON.parse(a.i);var c=null!=b?b.layout:null;var d=null!=c&&q(c)?c:null;if(null!=d&&"Custom"!=d)if(a.a.INTEGRATION_TEST)var e=d;else b="://tpc.googlesyndication.com/pagead/gadgets/dynamic_in_page_V1/"+d+".html",e=a.J?"https"+b:"http"+b;else e=null;return e}catch(f){}return null},$f=function(a,b){if(E(F(a)))return"";
var c=new Wf(a);var d=c.a[3];if(-1==d)return a;a:{for(var e=4;e<c.a.length;++e)if(-1!=c.a[e]){c=c.a[e];break a}c=-1}e=-1==c?a.substring(d):a.substring(d,c);if(-1==e.toLowerCase().indexOf(";"+b.toLowerCase()+"="))e+=(";"==e.charAt(e.length-1)?"":";")+b+"=1;";else{var f=e.toLowerCase().indexOf(";"+b.toLowerCase()+"="),g=e.indexOf("=",f),h=e.indexOf(";",f+1);e=e.replace(e.substring(f,g+1)+(-1==h?e.substring(g+1):e.substring(g+1,h)),";"+b+"=1")}return a.substring(0,d)+e+(-1==c?"":a.substring(c))};
Zf.prototype.toString=function(){return"Creative_"+this.j};
var cg=function(a){return a.J?a.K.Ga:a.K.Fa},dg=function(a,b){if(n(b))return b in a.s?va(a.s[b]):[];b=[];for(var c in a.s)b=ua(b,a.s[c]);return b},eg=function(a,b){"HTML5"==b.i&&(a.ab=!0);var c=b.c?b.c.i:null;c&&(a.qa[c]=b);a.f.push(b)},fg=function(a,b){var c=[];B(a.f,function(a){a.i==b&&c.push(a)});return c},ig=function(a,b,c){var d=gg(a,b);d&&(d.c=c,a.xa[b]=d,hg(a,d))},kg=function(a,b){var c=a.O;jg(a,"EXPAND_TIMER",b);a.O=c},jg=function(a,b,c){return(b=a.u[lg(b,"Counter")||""]||a.u[lg(b,"Timer")||
""]||gg(a,b))?(b.chargeable=c,a.O=!0):!1},hg=function(a,b){if(b){var c;(c=b.g?mg(a,b.name):b.a?ng(a,b.a.Aa,b.a.Ra):lg(b.name,b.type))&&(a.u[c]=b)}},og=function(a,b){var c=b.url;c=c.replace(/%eaid!/g,a.a.aid||"").replace(/%ebuy!/g,a.a.buy||"").replace(/%epid!/g,a.a.pid||"").replace(/%esid!/g,a.a.sid||"").replace(/%erid!/g,a.a.rid||"").replace(/%ecid!/g,a.a.cid||"").replace(/%ekid!/g,a.a.kid||"").replace(/%eadv!/g,a.a.adv||"").replace(/%erv!/g,a.P).replace(/%s/g,a.a.sn||"").replace(/%g/g,a.a.geo||"").replace(/%n/g,
a.a.randomNumber||"");for(var d in a.ea){var e=a.ea[d],f="(%pKEY=!;|%%PATTERN:KEY%%)".replace(/KEY/g,d);c=c.replace(new RegExp(f,"g"),e)}b.url=c;if(!a.c){c=a.V;d=F(c);if(e=!E(d)){e=b.url;a:{f=e.search(Ac);for(var g=0,h=d.length;0<=(g=e.indexOf(d,g))&&g<f;){var m=e.charCodeAt(g-1);if(38==m||63==m)if(m=e.charCodeAt(g+h),!m||61==m||38==m||35==m){d=g;break a}g+=h+1}d=-1}e=!(0<=d)}e&&(b.url=zc(b.url,c))}a.H[b.name]=b;hg(a,b)},pg=function(a,b){a.ra[b.name]=b;hg(a,b)},qg=function(a,b){a.ya[b.name]=b;hg(a,
b)},mg=function(a,b){return(a=gg(a,b))?[b,escape(""),escape(""),a.type].join(":"):null},lg=function(a,b){return["CUSTOM_EVENT",escape(a),escape(""),b].join(":")},ng=function(a,b,c){return(a=gg(a,b))&&[b,escape(""),escape(c),a.type].join(":")},sg=function(a,b){if(!b)return null;if("CUSTOM_EVENT"==b.type||b.videoName){if("CUSTOM_EVENT"==b.type&&!b.videoName){var c=b.trigger;a.$[c]?(a=a.$[c],b=b.name,a=a[b]&&a[b].c||null):a=null;return a}if("CUSTOM_EVENT"!=b.type&&b.videoName){a:switch(c=b.videoName,
b=gg(a,b.type),b.type){case "Timer":a=rg(a.ya,b,c);a=null!=a?a.c:null;break a;case "Counter":a=rg(a.ra,b,c);a=null!=a?a.c:null;break a;default:a=null}return a}}else return(a=gg(a,b.type))?a.c:null;return null},gg=function(a,b){return a.xa[b]||(a.xa[b]=hd(b))},rg=function(a,b,c){for(var d in a){var e=a[d];if(e.a&&e.a.Ra==c&&e.a.Aa==b.name)return e}return null},tg=function(a,b){a.$a.push(b)};var ug=function(a){this.id=a.id;this.D=a.uniqueId;this.a=new sf(a.adServerData||{});this.i=a.isPreviewEnvironment;this.c=a.thirdPartyImpressionUrls||[];this.s=a.thirdPartyArtworkImpressionUrl;this.j=a.hasFlashAsset;this.m=a.hasHtmlAsset;this.Ha=a.requiresCss3Animations;this.flashVersion=a.flashVersion;this.A=a.renderingLibrary||"";this.o=a.httpMediaServer||"";this.u=a.httpsMediaServer||"";this.f=a.dimensions;this.v=a.preloaderUrl;this.g=a.html5FeatureChecks;var b;if(b=a.backupImage){b=a.backupImage;
var c=this.i,d=this.a.a,e=this.a.g;if(null!=b){var f=new Qf;f.g=b.exitUrl||f.g;f.target=b.target||f.target;f.a=b.imageUrl||f.a;f.width=b.width||f.width;f.height=b.height||f.height;f.f=b.backupDisplayActivityUrl||f.f;f.c=b.thirdPartyBackupImpressionUrl||f.c;f.s=e;E(F(d))||(f.i=[new Mf(d,new Pf(c))]);b=f}else b=null}this.B=b||null;this.C=a.hasSwiffyHtmlAsset};var vg=function(a,b,c){ed.call(this,a,b,"Exit",!1,!0);this.url=c;this.i="_blank";this.f=null};z(vg,ed);var wg=function(a){L.call(this);this.c=a;this.a={}};z(wg,L);
var xg=[],R=function(a,b,c,d){u(c)||(c&&(xg[0]=c.toString()),c=xg);for(var e=0;e<c.length;e++){var f=oe(b,c[e],d||a.handleEvent,!1,a.c||a);if(!f)break;a.a[f.key]=f}},yg=function(a,b,c,d,e,f){if(u(c))for(var g=0;g<c.length;g++)yg(a,b,c[g],d,e,f);else(b=ne(b,c,d||a.handleEvent,e,f||a.c||a))&&(a.a[b.key]=b)},zg=function(a,b,c,d,e,f){if(u(c))for(var g=0;g<c.length;g++)zg(a,b,c[g],d,e,f);else d=d||a.handleEvent,e=fa(e)?!!e.capture:!!e,f=f||a.c||a,d=pe(d),e=!!e,c=ce(b)?je(b.i,String(c),d,e,f):b?(b=re(b))?
je(b,c,d,e,f):null:null,c&&(we(c),delete a.a[c.key])},Ag=function(a){xa(a.a,function(a,c){this.a.hasOwnProperty(c)&&we(a)},a);a.a={}};wg.prototype.F=function(){wg.G.F.call(this);Ag(this)};wg.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var Bg=function(){N.call(this);this.f=new wg(this);var a=la(Vd,this.f);this.s?n(void 0)?a.call(void 0):a():(this.B||(this.B=[]),this.B.push(n(void 0)?w(a,void 0):a))};z(Bg,N);var Cg=function(){Bg.call(this);this.a=window.mraid||null;this.c=!1};z(Cg,Bg);ba(Cg);var Dg=/doubleclick.net\/(pf)?ad/;k=Cg.prototype;k.getCurrentPosition=function(){return this.a.getCurrentPosition()};k.close=function(){return this.a.close()};
k.Ka=function(){try{this.a.removeEventListener("ready",w(this.Ka,this))}catch(a){this.a.removeEventListener("ready")}this.a.addEventListener("viewableChange",w(this.Ya,this));this.a.addEventListener("stateChange",w(this.rb,this));O(this,"ready");this.a.isViewable()&&this.Ya()};k.rb=function(){O(this,"state_change")};k.Ya=function(){this.a.isViewable()?O(this,"show"):O(this,"hide");this.c||null==this.a||null==this.a.AFMA_LIDAR||(this.a.addEventListener(this.a.AFMA_LIDAR,w(this.sb,this)),this.c=!0)};
k.sb=function(a){var b=this.a.getCurrentPosition();b=a.width*a.height/(b.width*b.height);var c=new M("viewable_change");c.visibleBox=new lc(a.y,a.x);c.visibilityFraction=b;O(this,c)};k.F=function(){this.a=null;Cg.G.F.call(this)};var Eg=yb(function(){if(I)return Tb("10.0");var a=hc(document,"DIV"),b=kc(),c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!tb.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in vb)throw Error("Tag name <div> is not allowed for SafeHtml.");c=null;var d="";if(b)for(p in b){if(!tb.test(p))throw Error('Invalid attribute name "'+p+'".');var e=b[p];if(null!=e){var f=p;var g=e;if(g instanceof Fa)g=Ga(g);else if("style"==f.toLowerCase()){e=void 0;
if(!fa(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof eb)){var h="";for(e in g){if(!/^[-_a-zA-Z0-9]+$/.test(e))throw Error("Name allows only [-_a-zA-Z0-9], got: "+e);var m=g[e];null!=m&&(m=u(m)?qa(m,lb).join(" "):lb(m),h+=e+":"+m+";")}g=h?fb(h):gb}g instanceof eb&&g.constructor===eb&&g.c===db?e=g.a:(ca(g),e="type_error:SafeStyle");g=e}else{if(/^on/i.test(f))throw Error('Attribute "'+f+'" requires goog.string.Const value, "'+
g+'" given.');if(f.toLowerCase()in ub)if(g instanceof Ja)g=Ka(g);else if(g instanceof G)g=$a(g);else if(q(g))g=cb(g).ba();else throw Error('Attribute "'+f+'" on tag "div" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+g+'" given.');}g.ha&&(g=g.ba());f=f+'="'+Ua(String(g))+'"';d+=" "+f}}var p="<div"+d;d=void 0;null!=d?u(d)||(d=[d]):d=[];!0===Da.div?p+=">":(c=xb(d),p+=">"+sb(c)+"</div>",c=c.wa());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=wb(p,c);a.innerHTML=sb(b);
return""!=qc(a.firstChild,"transition")});var Fg=!1,Gg="",Hg=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
(function(){if(navigator.plugins&&navigator.plugins.length){var a=navigator.plugins["Shockwave Flash"];if(a&&(Fg=!0,a.description)){Gg=Hg(a.description);return}if(navigator.plugins["Shockwave Flash 2.0"]){Fg=!0;Gg="2.0.0.11";return}}if(navigator.mimeTypes&&navigator.mimeTypes.length&&(a=navigator.mimeTypes["application/x-shockwave-flash"],Fg=!(!a||!a.enabledPlugin))){Gg=Hg(a.enabledPlugin.description);return}try{var b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");Fg=!0;Gg=Hg(b.GetVariable("$version"));
return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");Fg=!0;Gg="6.0.21";return}catch(c){}try{b=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),Fg=!0,Gg=Hg(b.GetVariable("$version"))}catch(c){}})();var Ig=Gg;var Jg=H("Firefox"),Kg=Fb()||H("iPod"),Lg=H("iPad"),Mg=H("Android")&&!(pb()||H("Firefox")||H("Opera")||H("Silk")),Ng=pb(),Og=H("Safari")&&!(pb()||H("Coast")||H("Opera")||H("Edge")||H("Silk")||H("Android"))&&!(Fb()||H("iPad")||H("iPod"));var Pg=function(a){return(a=a.exec(mb))?a[1]:""},Qg=function(){if(Jg)return Pg(/Firefox\/([0-9.]+)/);if(I||Hb||Gb)return Sb;if(Ng)return Fb()||H("iPad")||H("iPod")?Pg(/CriOS\/([0-9.]+)/):Pg(/Chrome\/([0-9.]+)/);if(Og&&!(Fb()||H("iPad")||H("iPod")))return Pg(/Version\/([0-9.]+)/);if(Kg||Lg){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(mb);if(a)return a[1]+"."+a[2]}else if(Mg)return(a=Pg(/Android\s+([0-9.]+)/))?a:Pg(/Version\/([0-9.]+)/);return""}();var Rg=document.createElement("VIDEO");Rg&&Rg.canPlayType&&Rg.canPlayType("video/mp4").replace(/no/,"");var Sg=document.createElement("VIDEO");Sg&&Sg.canPlayType&&Sg.canPlayType("video/webm").replace(/no/,"");
var Tg=function(a){return(Ib||Jb||Kb||Gb||!1)&&!Lb&&0<=Wa(Ig,a)},Ug=function(a,b){if(!l.postMessage)return!1;a=u(a)?va(a):[];ta(a,function(a){return"Modernizr.canvas"==a})||a.push("Modernizr.canvas");b&&!ta(a,function(a){return"Modernizr.cssanimations"==a})&&a.push("Modernizr.cssanimations");return sa(a,function(a){if("svgFilters"==a){if(!(I&&Tb("10")&&10<=Number(Ub)||Ng&&0<=Wa(Qg,"18")||Jg&&0<=Wa(Qg,"11")))return!1}else if("svgFeImage"==a){if(!(I&&Tb("10")&&10<=Number(Ub)||Ng&&0<=Wa(Qg,"29")))return!1}else if(/Modernizr.canvas/.test(a)){if(!(document.createElement("canvas").getContext||
I&&0<=Wa(Qg,"9")))return!1}else if(/Modernizr.cssanimations/.test(a)){if(a=fc(document).style,!n(a.animationName)&&!n(a[jc()+"AnimationName"]))return!1}else if(/Modernizr.cssgradients/.test(a)){a="";for(var b,c=["",kc()+"-"],f=0;f<c.length;f++)b=0===f?"to ":"",a+="background-image:"+c[f]+"linear-gradient("+b+"left top, #9f9, white);";b=hc(document,"A");b.style.cssText=a+"background-image:-webkit-gradient(linear,left top,right bottom,from(#9f9),to(white));";if(!(-1<qc(b,"backgroundImage").indexOf("gradient")))return!1}else if(/Modernizr.csstransitions/.test(a)&&
!Eg())return!1;return!0})};var Xg=function(a,b,c,d,e,f,g,h){if(b){var m=cc(document,c);m.innerHTML=Sf(b);d=new Pf(d);var p=F(b.s);E(p)||Ue(d,p);Ue(d,b.f);Ue(d,b.c);for(p=0;p<e.length;p++)Ue(d,e[p]);Vg(a);null!=h&&0<h.length&&Wg(h,c);a=new Se(d,f,g);a.a&&(a.a?Te(a,m):a.c||Ve(a));oe(m,"click",function(){for(var a=0;a<b.i.length;a++)b.i[a].ping()})}},Wg=function(a,b){var c=cc(document,b);if(null!=c)B(a,function(a){c.parentNode.insertBefore(Yg(a),c.nextSibling)});else{var d;(b=document.getElementsByTagName("HEAD"))&&0<b.length?
d=b[0]:d=document.documentElement;B(a,function(a){d.appendChild(Yg(a))})}},Yg=function(a){var b=hc(document,"SCRIPT");b.src=a;b.type="text/javascript";b.async=!1;return b},Vg=function(a){var b=window.DARTDebugEventHandler;if(b){b=new b;try{b.handleEventActivity("BACKUP_IMAGE_IMPRESSION","Counter",1,0,!1,a)}catch(c){}}};var Zg=function(a,b){M.call(this,a);this.c=b};z(Zg,M);var $g="EXPAND EXPAND_REQUEST EXPAND_FINISH COLLAPSE COLLAPSE_REQUEST COLLAPSE_FINISH EXPAND_FULL_SCREEN COLLAPSE_FULL_SCREEN SHOW HIDE".split(" ");var S=function(a,b){this.c=b;this.A=new wg(this);R(this.A,this.c,$g,this.W);this.a=a;this.v=[];this.u=[];this.j=[];this.f=[];this.o=[];this.m=[];this.i=[];this.g=[]};z(S,L);S.prototype.F=function(){this.A.dispose();this.g=this.i=this.f=this.m=this.o=this.j=this.u=this.v=null;S.G.F.call(this)};
S.prototype.W=function(a){if(a.c==this.a){var b=null;switch(a.type){case "SHOW":b=this.v;break;case "HIDE":b=this.u;break;case "COLLAPSE_REQUEST":b=this.i;break;case "COLLAPSE_FINISH":b=this.g;break;case "COLLAPSE":b=this.f;break;case "EXPAND":b=this.j;break;case "EXPAND_REQUEST":b=this.o;break;case "EXPAND_FINISH":b=this.m}b&&ah(this,b)}};var ah=function(a,b){B(b,function(a){a(this)},a)},bh=function(a){return a.c.c[a.a]||null};S.prototype.ta=function(){return this.a.f};S.prototype.getType=S.prototype.ta;
S.prototype.ra=function(){return this.a.id};S.prototype.getId=S.prototype.ra;S.prototype.V=function(){var a=bh(this);return a&&(a=a.T())?(a=new Yb(a.offsetLeft,a.offsetTop),{x:a.x,y:a.y}):null};S.prototype.getPosition=S.prototype.V;S.prototype.xa=function(a,b){var c=bh(this);if(c){c=c.T();if(a instanceof Yb){var d=a.x;a=a.y}else d=a,a=b;c.style.left=sc(d,!1);c.style.top=sc(a,!1)}};S.prototype.setPosition=S.prototype.xa;S.prototype.ya=function(a){var b=bh(this);b&&oc(b.T(),a)};
S.prototype.setStyle=S.prototype.ya;
S.prototype.U=function(){var a=bh(this);if(a){var b=a.T();if(b){var c=ac(b);a=new Yb(0,0);var d=c?ac(c):document;d=!I||9<=Number(Ub)||"CSS1Compat"==bc(d).a.compatMode?d.documentElement:d.body;if(b!=d){b:{try{var e=b.getBoundingClientRect()}catch(f){e={left:0,top:0,right:0,bottom:0};break b}I&&b.ownerDocument.body&&(b=b.ownerDocument,e.left-=b.documentElement.clientLeft+b.body.clientLeft,e.top-=b.documentElement.clientTop+b.body.clientTop)}b=bc(c).a;c=fc(b);b=gc(b);c=I&&Tb("10")&&b.pageYOffset!=c.scrollTop?
new Yb(c.scrollLeft,c.scrollTop):new Yb(b.pageXOffset||c.scrollLeft,b.pageYOffset||c.scrollTop);a.x=e.left+c.x;a.y=e.top+c.y}return{x:a.x,y:a.y}}}return null};S.prototype.getPagePosition=S.prototype.U;S.prototype.C=function(){return{width:this.a.width,height:this.a.height}};S.prototype.getDimension=S.prototype.C;S.prototype.oa=function(a,b){var c=bh(this);c&&c.oa(a,b)};S.prototype.setDimension=S.prototype.oa;
S.prototype.P=function(){var a=this.a.a&&this.a.a.a;return a?{width:a.width,height:a.height}:this.C()};S.prototype.getCollapsedDimension=S.prototype.P;S.prototype.va=function(a,b,c,d){var e=bh(this);e&&(e.T().style.clip=["rect(",a,"px ",b,"px ",c,"px ",d,"px)"].join(""),e.T().style.position="absolute")};S.prototype.setClip=S.prototype.va;S.prototype.S=function(){var a=bh(this);return a?a.T():null};S.prototype.getContainerElement=S.prototype.S;
S.prototype.qa=function(){var a=bh(this);return a?a.f:null};S.prototype.getAssetElement=S.prototype.qa;S.prototype.O=function(a){this.v.push(a)};S.prototype.addShowCallback=S.prototype.O;S.prototype.da=function(a){C(this.v,a)};S.prototype.removeShowCallback=S.prototype.da;S.prototype.N=function(a){this.u.push(a)};S.prototype.addHideCallback=S.prototype.N;S.prototype.fa=function(a){C(this.u,a)};S.prototype.removeHideCallback=S.prototype.fa;S.prototype.R=function(a){this.j.push(a)};
S.prototype.addExpandCallback=S.prototype.R;S.prototype.$=function(a){C(this.j,a)};S.prototype.removeExpandCallback=S.prototype.$;S.prototype.K=function(a){this.o.push(a)};S.prototype.addExpandRequestCallback=S.prototype.K;S.prototype.ea=function(a){C(this.o,a)};S.prototype.removeExpandRequestCallback=S.prototype.ea;S.prototype.J=function(a){this.m.push(a)};S.prototype.addExpandFinishCallback=S.prototype.J;S.prototype.aa=function(a){C(this.m,a)};S.prototype.removeExpandFinishCallback=S.prototype.aa;
S.prototype.D=function(a){this.f.push(a)};S.prototype.addCollapseCallback=S.prototype.D;S.prototype.X=function(a){C(this.f,a)};S.prototype.removeCollapseCallback=S.prototype.X;S.prototype.I=function(a){this.i.push(a)};S.prototype.addCollapseRequestCallback=S.prototype.I;S.prototype.Z=function(a){C(this.i,a)};S.prototype.removeCollapseRequestCallback=S.prototype.Z;S.prototype.H=function(a){this.g.push(a)};S.prototype.addCollapseFinishCallback=S.prototype.H;S.prototype.ga=function(a){C(this.g,a)};
S.prototype.removeCollapseFinishCallback=S.prototype.ga;S.prototype.za=function(){ch(this.c,this.a)};S.prototype.show=S.prototype.za;S.prototype.ua=function(){this.c.u(this.a)};S.prototype.hide=S.prototype.ua;S.prototype.ma=function(){dh(this.c,this.a)};S.prototype.expand=S.prototype.ma;S.prototype.ia=function(){eh(this.c,this.a)};S.prototype.collapse=S.prototype.ia;var T=function(a,b){this.a=a;this.c=b};z(T,L);T.prototype.g=function(){return this.a.name};T.prototype.getName=T.prototype.g;T.prototype.i=function(){var a=this.a.url;return(/^https?/.test(a)?"":this.c)+a};T.prototype.getUrl=T.prototype.i;T.prototype.j=function(){return this.a.c};T.prototype.isVideo=T.prototype.j;T.prototype.f=function(){return this.a.a};T.prototype.getStreamingUrl=T.prototype.f;var fh=function(a,b){this.a=a;this.f=b};fh.prototype.g=function(){return this.a.name};fh.prototype.getName=fh.prototype.g;fh.prototype.i=function(){return this.a.url};fh.prototype.getUrl=fh.prototype.i;fh.prototype.c=function(a,b){this.f.Oa(new af("logExitFlushEventsOpenPopup",this.a.name,a||null,b||null,null,!0))};fh.prototype.fireExit=fh.prototype.c;var U=function(a,b){L.call(this);this.a=a;this.R=b;this.c=gh(a.f,b);this.i=wa(this.c,function(a){return a.a.id});this.f=hh(a.$a,cg(a)||"");this.g=ih(a.H,b);this.AssetTypes=jh;kh(this)};z(U,L);var gh=function(a,b){return qa(a,function(a){return new S(a,b)})},hh=function(a,b){return qa(a,function(a){return new T(a,b)})},ih=function(a,b){return qa(ya(a),function(a){return new fh(a,b)})},kh=function(a){var b=r("studioV2.api.creatives")||[];y("studioV2.api.creatives",b);b.push(a)};
U.prototype.F=function(){var a=r("studioV2.api.creatives");a&&u(a)&&C(a,this);Wd(this.c,this.f,this.g);U.G.F.call(this)};U.prototype.m=function(){return"1.0"};U.prototype.getApiVersion=U.prototype.m;U.prototype.D=function(){return this.a.j};U.prototype.getCreativeId=U.prototype.D;U.prototype.P=function(){return this.a.a.sid||""};U.prototype.getSiteId=U.prototype.P;U.prototype.S=function(){return this.a.a.sn||""};U.prototype.getSiteName=U.prototype.S;U.prototype.J=function(){return this.a.a.aid||""};
U.prototype.getAdId=U.prototype.J;U.prototype.N=function(){return this.a.a.buy||""};U.prototype.getBuyId=U.prototype.N;U.prototype.j=function(){return this.a.a.cid||""};U.prototype.getAdserverCreativeId=U.prototype.j;U.prototype.O=function(){return this.a.a.pid||""};U.prototype.getPlacementId=U.prototype.O;U.prototype.K=function(){return this.a.a.adv||""};U.prototype.getAdvertiserId=U.prototype.K;U.prototype.v=function(){return this.c};U.prototype.getAssets=U.prototype.v;U.prototype.C=function(){return this.f};
U.prototype.getChildAssets=U.prototype.C;U.prototype.o=function(a){return this.c[a]||null};U.prototype.getAssetAt=U.prototype.o;U.prototype.u=function(a){return this.i[a]||null};U.prototype.getAssetById=U.prototype.u;U.prototype.I=function(a){return ta(this.c,function(b){return b.a.f==a})};U.prototype.getFirstAssetByType=U.prototype.I;U.prototype.A=function(a){return pa(this.c,function(b){return b.a.f==a})};U.prototype.getAssetsByType=U.prototype.A;U.prototype.H=function(){return this.g};
U.prototype.getExits=U.prototype.H;U.prototype.U=function(){this.R.dispose()};U.prototype.unload=U.prototype.U;var jh={INPAGE:"BANNER",EXPANDING:"EXPANDABLE",FLOAT:"FLOATING",OVERLAY:"OVERLAY"};var lh=function(a){M.call(this,a)};z(lh,M);y("studio.sdk.logger",null);var mh=function(){};ba(mh);mh.prototype.a=0;var V=function(){N.call(this);this.f=null;this.g={};this.a={};this.a.companions="";this.a.desiredBitrate=256;this.a.duration=15;this.a.remainingTime=15;this.a.expanded=!1;this.a.height=0;this.a.icons="";this.a.linear=!1;this.a.skippableState=!1;this.a.viewMode="normal";this.a.width=0;this.a.volume=1;this.c=null};z(V,N);V.prototype.j=function(){this.a.expanded=!1};V.prototype.collapseAd=V.prototype.j;V.prototype.D=function(){return this.a.linear};V.prototype.getAdLinear=V.prototype.D;
V.prototype.K=function(){return this.a.width};V.prototype.getAdWidth=V.prototype.K;V.prototype.A=function(){return this.a.height};V.prototype.getAdHeight=V.prototype.A;V.prototype.v=function(){return this.a.expanded};V.prototype.getAdExpanded=V.prototype.v;V.prototype.I=function(){return this.a.skippableState};V.prototype.getAdSkippableState=V.prototype.I;V.prototype.H=function(){return this.a.remainingTime};V.prototype.getAdRemainingTime=V.prototype.H;
V.prototype.Z=function(a){this.a.remainingTime=a};V.prototype.setAdRemainingTime=V.prototype.Z;V.prototype.u=function(){return this.a.duration};V.prototype.getAdDuration=V.prototype.u;V.prototype.X=function(a){this.a.duration=a};V.prototype.setAdDuration=V.prototype.X;V.prototype.J=function(){return this.a.volume};V.prototype.getAdVolume=V.prototype.J;V.prototype.$=function(a){this.a.volume=a;O(this,new lh("ChangeVolumeVpaidAd"))};V.prototype.setAdVolume=V.prototype.$;V.prototype.o=function(){return this.a.companions};
V.prototype.getAdCompanions=V.prototype.o;V.prototype.C=function(){return this.a.icons};V.prototype.getAdIcons=V.prototype.C;V.prototype.N=function(){return"2.0"};V.prototype.handshakeVersion=V.prototype.N;
V.prototype.O=function(a,b,c,d,e,f){this.a.width=a;this.a.height=b;this.a.viewMode=c;this.a.desiredBitrate=d;null!=f&&(this.f=f.slot);try{if(this.c=JSON.parse(nh(e.AdParameters)),null!=this.c){this.c.width=a+"";this.c.slotWidth=a+"";this.c.height=b+"";this.c.slotHeight=b+"";E(F(this.f.id))&&(this.f.id="dclk_video_ad_:"+(mh.getInstance().a++).toString(36));this.c.creativeParameters.ad_container_id=this.f.id;if(null!=this.c.primaryFiles)for(c=0;c<this.c.primaryFiles.length;c++)this.c.primaryFiles[c].height=
b+"",this.c.primaryFiles[c].width=a+"";if(null!=this.c.ad_creative_def_urls){var g=this.c.ad_creative_def_urls[this.c.creativeParameters.adId];if(g){g=g.replace("http:","");var h=Re(Ab(g)),m=w(this.P,this);Je(h,m,null,void 0)}else oh(this)}else oh(this)}}catch(p){}};V.prototype.initAd=V.prototype.O;var nh=function(a){null!=a&&(a=a.replace(/\\'/g,"'"));return a};
V.prototype.P=function(){var a=window.creativeExitOverrides;if(null!=a&&null!=this.c.exitEvents)for(var b=0;b<this.c.exitEvents.length;b++)if(null!=a.exitEvents)for(b=0;b<a.exitEvents.length;b++)this.c.exitEvents[b].name==a.exitEvents[b].name&&(this.c.exitEvents[b].destinationUrl=a.exitEvents[b].url);oh(this)};var oh=function(a){O(a,ph);qh(a,"AdLoaded")};V.prototype.V=function(a,b,c){this.a.width=a;this.a.height=b;this.a.viewMode=c;O(this,new lh("ResizeVpaidAd"));qh(this,"AdSizeChange")};
V.prototype.resizeAd=V.prototype.V;V.prototype.ea=function(){qh(this,"AdStarted")};V.prototype.startAd=V.prototype.ea;V.prototype.fa=function(){qh(this,"AdStopped")};V.prototype.stopAd=V.prototype.fa;V.prototype.S=function(){O(this,new lh("PauseVpaidAd"));qh(this,"AdPaused")};V.prototype.pauseAd=V.prototype.S;V.prototype.W=function(){O(this,new lh("ResumeVpaidAd"));qh(this,"AdPlaying")};V.prototype.resumeAd=V.prototype.W;V.prototype.m=function(){this.a.expanded=!0;qh(this,"AdExpandedChange")};
V.prototype.expandAd=V.prototype.m;V.prototype.aa=function(){this.a.skippableState&&qh(this,"AdSkipped")};V.prototype.skipAd=V.prototype.aa;V.prototype.da=function(a,b,c){a=w(a,c);this.g[b]=a};V.prototype.subscribe=V.prototype.da;V.prototype.ia=function(){};V.prototype.unsubscribe=V.prototype.ia;var qh=function(a,b){if(b in a.g)a.g[b](void 0)},ph=new M("InitVpaidAd");var rh=function(){Bg.call(this);this.a=new V};z(rh,Bg);ba(rh);y("window.getVPAIDAd",function(){return rh.getInstance().a});var sh="undefined_type",th=0,uh=null;var vh=void 0,wh=function(a){switch(a){case "gdn":return!(!l.IN_ADSENSE_IFRAME||!l.CreativeToolset);case "yahoo":return window.Y&&window.Y.SandBox&&window.Y.SandBox.vendor;case "msn":a:{try{var b=window.$WLXRmAd||window.parent&&window.parent.$WLXRmAd;break a}catch(c){}b=void 0}return!!b;case "safe":return!!r("$sf.ext");case "mraid":return window.mraid;default:return!1}},xh="gdn mraid safe yahoo msn none".split(" ");var zh=function(a){N.call(this);this.a=this.g=null;this.c=new wg(this);this.m=!1;yh||(this.a=new P(100),R(this.c,this.a,"tick",this.f),this.a.start(),R(this.c,document,"DOMContentLoaded",this.f),R(this.c,document,"readystatechange",this.f),R(this.c,window,"load",this.j),this.f(),null!=a&&aa(a)&&Ce(this.j,a,this))};z(zh,N);var yh=!1;
zh.prototype.f=function(){var a;if(a=I){a=!1;try{a=null==window.frameElement}catch(c){}}if(a&&document.documentElement.doScroll)if(document.documentElement.doScroll)try{document.documentElement.doScroll("left");var b=!0}catch(c){b=!1}else b=!1;else"undefined"===document.readyState?document.getElementsByTagName?(b=document.getElementsByTagName("*"),b=0<b.length?b[b.length-1]:null,this.g&&b&&this.g==b?b=!0:(this.g=b,b=!1)):b=!1:b="complete"===document.readyState;b&&this.j()};
zh.prototype.F=function(){Ah(this);zh.G.F.call(this)};var Ah=function(a){a.c.dispose();a.a&&(a.a.dispose(),a.a=null)};zh.prototype.j=function(){this.m||(yh=this.m=!0,Ah(this),O(this,new M("ready")))};var W=function(a){N.call(this);this.N=a||bc();this.C=null;this.la=!1;this.a=null;this.g=void 0;this.v=this.A=this.m=null};z(W,N);W.prototype.Z=mh.getInstance();W.prototype.D=function(){return this.C||(this.C=":"+(this.Z.a++).toString(36))};W.prototype.T=function(){return this.a};var Bh=function(a){a.g||(a.g=new wg(a));return a.g};W.prototype.U=function(a){if(this.m&&this.m!=a)throw Error("Method not supported");W.G.U.call(this,a)};W.prototype.O=function(){this.a=hc(this.N.a,"DIV")};
var Ch=function(a,b,c){if(a.la)throw Error("Component already rendered");a.a||a.O();b?b.insertBefore(a.a,c||null):a.N.a.body.appendChild(a.a);a.m&&!a.m.la||a.ja()};W.prototype.sa=function(a){this.a=a};W.prototype.ja=function(){this.la=!0;Dh(this,function(a){!a.la&&a.T()&&a.ja()})};var Eh=function(a){Dh(a,function(a){a.la&&Eh(a)});a.g&&Ag(a.g);a.la=!1};
W.prototype.F=function(){this.la&&Eh(this);this.g&&(this.g.dispose(),delete this.g);Dh(this,function(a){a.dispose()});this.a&&ic(this.a);this.m=this.a=this.v=this.A=null;W.G.F.call(this)};var Dh=function(a,b){a.A&&B(a.A,b,void 0)};
W.prototype.removeChild=function(a,b){if(a){var c=q(a)?a:a.D();this.v&&c?(a=this.v,a=(null!==a&&c in a?a[c]:void 0)||null):a=null;if(c&&a){var d=this.v;c in d&&delete d[c];C(this.A,a);b&&(Eh(a),a.a&&ic(a.a));b=a;if(null==b)throw Error("Unable to set parent component");b.m=null;W.G.U.call(b,null)}}if(!a)throw Error("Child is not in parent component");return a};var Fh=function(a){var b;a.visibilityState?b="visibilitychange":a.mozVisibilityState?b="mozvisibilitychange":a.webkitVisibilityState&&(b="webkitvisibilitychange");return b},Gh=function(a,b){if(3==({visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[b.visibilityState||b.webkitVisibilityState||b.mozVisibilityState||""]||0))return!1;a();return!0},Hh=function(a){var b=document;if(!Gh(a,b)){var c=!1,d=Fh(b),e=function(){if(!c&&Gh(a,b)){c=!0;var f=e;b.removeEventListener?b.removeEventListener(d,f,void 0):
b.detachEvent&&b.detachEvent("on"+d,f)}};d&&uc(b,d,e)}};var Ih=function(a){W.call(this,a);this.V=null};z(Ih,W);Ih.prototype.D=function(){return this.C||(this.C=(uh||(uh="200_231_"+sh))+"_"+(th++).toString(36))};Ih.prototype.toString=function(){return this.D()};var Jh=function(a){Dh(a,function(a){Jh(a)})},Kh=function(a){Dh(a,function(a){Kh(a)})},Lh=function(a){Dh(a,function(a){Lh(a)})},Mh=function(a){Dh(a,function(a){Mh(a)})};Ih.prototype.oa=function(a,b){tc(this.T(),a,b);Dh(this,function(a){a.oa("100%","100%")})};
var Nh=function(a){if(null!==a.V)return a.V;var b=Id();a.Pa(b);return a.V=b.c};Ih.prototype.Pa=function(a){Hh(a.a)};var Oh=function(a,b,c){Ih.call(this,c);this.K=a;this.j=b;if(b=a.a&&a.a.a)b=a.a.a,b=new J(b.width,b.height);this.fa=b||new J(a.width,a.height);this.P=!1;this.S=[];this.W=null};z(Oh,Ih);k=Oh.prototype;k.Bb=function(){for(this.P=!0;0<this.S.length;)this.S.shift()};k.Cb=function(){this.P=!1};
k.sa=function(a){Oh.G.sa.call(this,a);a.style.position="relative";var b=this.fa;if(b instanceof J){var c=b.height;b=b.width}else throw Error("missing height argument");b=0<parseInt(b,10)?b:"100%";c=0<parseInt(c,10)?c:"100%";tc(a,b,c);"boxSizing"in a.style&&(a.style.boxSizing="content-box");b=this.j.N;(null==b?0:b.a&&1==this.j.f.length)?Te(b,a):null!=b&&b.a&&!b.c&&Ve(b)};
k.ja=function(){var a=Bh(this);R(a,this,"conduitInitialized",this.Bb);R(a,this,"RESET",this.Cb);Oh.G.ja.call(this);var b=Bh(this);this.W=new zh(5E3);yh?this.Ua():R(b,this.W,"ready",this.Ua);if(b=this.T())R(a,b,"mouseover",this.qb),R(a,b,"mouseout",this.Wa);R(a,this,"logEvent",this.Va);R(a,this,"logExitFlushEventsOpenPopup",this.Va)};k.qb=function(){Ph(this,"1")};k.Wa=function(){Ph(this,"0")};k.Va=function(a){"Exit"==fd(a.c)&&this.Wa()};
var Ph=function(a,b){a.P||a.S.push({name:"isMouseOver",value:b})},Qh=function(a,b,c){(b=jf(b,c))&&O(a,b)};var X=function(a){M.call(this,a)};z(X,M);y("studio.events.StudioEvent",X);X.INIT="init";X.VISIBLE="visible";X.HIDDEN="hidden";X.VISIBILITY_CHANGE="visibilityChange";X.VISIBILITY_CHANGE_WITH_INFO="visibilityChangeWithInfo";X.EXIT="exit";X.INTERACTION="interaction";X.PAGE_LOADED="pageLoaded";X.ORIENTATION="orientation";X.ABOUT_TO_EXPAND="aboutToExpand";X.EXPAND_START="expandStart";X.EXPAND_FINISH="expandFinish";X.COLLAPSE_START="collapseStart";X.COLLAPSE_FINISH="collapseFinish";X.COLLAPSE="collapse";
X.FULLSCREEN_SUPPORT="fullscreenSupport";X.FULLSCREEN_DIMENSIONS="fullscreenDimensions";X.FULLSCREEN_EXPAND_START="fullscreenExpandStart";X.FULLSCREEN_EXPAND_FINISH="fullscreenExpandFinish";X.FULLSCREEN_COLLAPSE_START="fullscreenCollapseStart";X.FULLSCREEN_COLLAPSE_FINISH="fullscreenCollapseFinish";X.HOSTPAGE_SCROLL="hostpageScroll";X.ENTER_VIEWPORT="enterViewport";X.EXIT_VIEWPORT="exitViewport";X.prototype.jb=function(a,b){this[a]=b;return this};X.prototype.addProperty=X.prototype.jb;var Rh=I?La(Ga(Ha('javascript:""'))):La(Ga(Ha("about:blank")));Ka(Rh);var Sh=I?La(Ga(Ha('javascript:""'))):La(Ga(Ha("javascript:undefined")));Ka(Sh);var Th=function(a){L.call(this);this.f=a||bc()};z(Th,L);var Uh=function(a,b){Th.call(this,b);this.a=a;this.A=this.a.f().ppu;this.O=this.a.f().lpu;this.m=[]},Vh,Wh;z(Uh,Th);k=Uh.prototype;k.Ab=5;k.Ja=0;k.pa=!1;k.Da=!1;k.eb=null;var Xh=function(a){return"googlexpc_"+a.a.name+"_msg"},Yh=function(a){return"googlexpc_"+a.a.name+"_ack"},Zh=function(a){try{if(!a.s&&a.a.g())return a.a.j().frames||{}}catch(b){}return{}},$h=function(a,b){return Zh(a)[b]};
Uh.prototype.connect=function(){if(!this.s&&this.a.g()){if(!this.Da){var a=Xh(this);this.g=ai(this,a);this.u=gc(this.f.a).frames[a];a=Yh(this);this.c=ai(this,a);this.o=gc(this.f.a).frames[a];this.Da=!0}if(bi(this,Xh(this))&&bi(this,Yh(this)))this.I=new ci(this,$h(this,Xh(this)),w(this.N,this)),this.C=new ci(this,$h(this,Yh(this)),w(this.K,this)),this.H();else{if(1==this.a.c()){if(!(this.eb||0<this.Ab--)){var b=10;for(a="";0<b--;)a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Math.floor(62*
Math.random()));this.a.u(a);di(this);this.Da=!1;this.eb=ai(this,"googlexpc_reconnect_"+this.a.name)}}else if(0==this.a.c()){a=Zh(this);for(var c=a.length,d=0;d<c;d++){try{a[d]&&a[d].name&&(b=a[d].name)}catch(f){}if(b){var e=b.split("_");if(3==e.length&&"googlexpc"==e[0]&&"reconnect"==e[1]){this.a.name=e[2];di(this);this.Da=!1;break}}}}gc(this.f.a).setTimeout(w(this.connect,this),100)}}};
var ai=function(a,b){var c=hc(document,"IFRAME"),d=c.style;d.position="absolute";d.top="-10px";d.left="10px";d.width="1px";d.height="1px";c.id=c.name=b;c.src=a.A+"#INITIAL";gc(a.f.a).document.body.appendChild(c);return c},di=function(a){a.g&&(a.g.parentNode.removeChild(a.g),a.g=null,a.u=null);a.c&&(a.c.parentNode.removeChild(a.c),a.c=null,a.o=null)},bi=function(a,b){try{var c=$h(a,b);if(!c||0!=c.location.href.indexOf(a.O))return!1}catch(d){return!1}return!0};
Uh.prototype.H=function(){var a=Zh(this);a[Yh(this)]&&a[Xh(this)]?(this.R=new ei(this.A,this.u),this.j=new ei(this.A,this.o),gc(this.f.a).setTimeout(w(function(){this.R.send("SETUP");this.pa=!0},this),100)):(this.D||(this.D=w(this.H,this)),gc(this.f.a).setTimeout(this.D,100))};var fi=function(a){if(a.J&&a.P&&(a.a.m(),a.i)){for(var b=0,c;b<a.i.length;b++)c=a.i[b],a.a.i(c.Eb,c.zb);delete a.i}};
Uh.prototype.N=function(a){if("SETUP"==a)this.j&&(this.j.send("SETUP_ACK"),this.J=!0,fi(this));else if(this.a.a()||this.J){var b=a.indexOf("|"),c=a.substring(0,b);a=a.substring(b+1);b=c.indexOf(",");if(-1==b)this.j.send("ACK:"+c),gi(this,a);else{var d=c.substring(0,b);this.j.send("ACK:"+d);c=c.substring(b+1).split("/");b=parseInt(c[0],10);c=parseInt(c[1],10);1==b&&(this.v=[]);this.v.push(a);b==c&&(gi(this,this.v.join("")),delete this.v)}}};
Uh.prototype.K=function(a){"SETUP_ACK"==a?(this.pa=!1,this.P=!0,fi(this)):this.a.a()&&this.pa&&parseInt(a.split(":")[1],10)==this.Ja&&(this.pa=!1,hi(this))};var hi=function(a){if(!a.pa&&a.m.length){var b=a.m.shift();++a.Ja;a.R.send(a.Ja+b);a.pa=!0}},gi=function(a,b){var c=b.indexOf(":"),d=b.substr(0,c);b=b.substring(c+1);a.a.a()?a.a.i(d,b):(a.i||(a.i=[])).push({Eb:d,zb:b})};
Uh.prototype.send=function(a,b){a=a+":"+b;if(!I||3800>=b.length)this.m.push("|"+a);else{b=b.length;for(var c=Math.ceil(b/3800),d=0,e=1;d<b;)this.m.push(","+e+"/"+c+"|"+a.substr(d,3800)),e++,d+=3800}hi(this)};Uh.prototype.F=function(){Uh.G.F.call(this);var a=ii;C(a,this.I);C(a,this.C);this.I=this.C=null;ic(this.g);ic(this.c);this.u=this.o=this.g=this.c=null};
var ii=[],ji=w(function(){var a=ii,b,c=!1;try{for(var d=0;b=a[d];d++){var e;if(!(e=c)){var f=b,g=f.c.location.href;if(g!=f.a){f.a=g;var h=g.split("#")[1];h&&(h=h.substr(1),f.f(decodeURIComponent(h)));e=!0}else e=!1}c=e}}catch(m){if(b.g.a.o(),!a.length)return}a=x();c&&(Vh=a);Wh=window.setTimeout(ji,1E3>a-Vh?10:100)},Uh),ki=function(){Vh=x();Wh&&window.clearTimeout(Wh);Wh=window.setTimeout(ji,10)},ei=function(a,b){if(!/^https?:\/\//.test(a))throw Error("URL "+a+" is invalid");this.f=a;this.c=b;this.a=
0};ei.prototype.send=function(a){this.a=++this.a%2;a=this.f+"#"+this.a+encodeURIComponent(a);try{if(Kb){var b=this.c.location;if(a instanceof G)var c=a;else a instanceof G?c=a:(a=a.ha?a.ba():String(a),ab.test(a)||(a="about:invalid#zClosurez"),c=bb(a));b.href=$a(c)}else this.c.location.replace(a)}catch(d){}ki()};var ci=function(a,b,c){this.g=a;this.c=b;this.f=c;this.a=this.c.location.href.split("#")[0]+"#INITIAL";ii.push(this);ki()};var li=function(){this.a=[];this.c=[]};k=li.prototype;k.addReporter=function(a){B(this.a,function(b){b.newReporterCallback(a);a.newReporterCallback(b)});B(this.c,function(b){a.registerChargeableEventName(b)});this.a.push(a)};k.reportEvents=function(a){B(this.a,function(b){b.reportEvents(a)})};k.registerChargeableEventName=function(a){B(this.a,function(b){b.registerChargeableEventName(a)});this.c.push(a)};k.logCustomVariable=function(a,b){B(this.a,function(c){c.logCustomVariable(a,b)})};
k.getType=function(){return"UNIFIED_DISPATCHER"};k.getConfig=function(){return{reportingApiVersion:2}};k.newReporterCallback=t;k.supportsChargeableEvents=function(){var a=!1;B(this.a,function(b){b.supportsChargeableEvents()&&(a=!0)});return a};var mi=function(a){this.f=a.U;this.c=a.ga;this.a=a;this.g=new Pf};k=mi.prototype;k.reportEvents=function(a){for(var b=[],c=0;c<a.length;c++){var d=a[c],e=sg(this.a,d.unifiedReportingEvent);if(e){var f=b;d=["eid",c+1,"=",e,";ecn",c+1,"=",d.count,";etm",c+1,"=",d.time,";"].join("");0==f.length&&f.push("");e=f.pop();950<e.length+d.length&&(f.push(e),e="");f.push(e+d)}}if(b.length)for(a=x(),c=0;c<b.length;c++)document.createElement("img").src=this.f+"&timestamp="+a+";"+b[c]};
k.registerChargeableEventName=function(a){var b=this.a.O;jg(this.a,a,!0)&&!b&&kg(this.a,!1)};k.logCustomVariable=function(a,b){this.c&&0<this.c.length&&(a=[this.c,"&timestamp=",x(),";str=",a,";strtype=",b].join(""),Ue(this.g,a))};k.getType=function(){return"STUDIO"};k.getConfig=function(){return{reportingApiVersion:2}};k.newReporterCallback=function(a){a.supportsChargeableEvents()&&!this.a.O&&kg(this.a,!0)};k.supportsChargeableEvents=function(){return!1};var ni=function(a){this.f={};this.a={};this.c={};this.o={};this.g=this.u(a);this.v=a;this.j={};this.m={};this.i={}};z(ni,L);
var pi=function(a,b,c,d){if(c||!a.o[b])a.o[b]||(a.f[b]=0,a.o[b]=!0),a.f[b]++,d&&oi(a,d)},oi=function(a,b){B(b,function(a){B(dg(this.v,a),function(a){a.ping()},this)},a)},qi=function(a,b,c,d){if(!(b in a.c)){for(var e=x(),f=a.j[b];f&&0<f.length;)e+=f.pop();a.c[b]=e;c&&(a.i[c]=a.i[c]||[],a.i[c].push(b));pi(a,b,!1,d)}},ri=function(a,b,c){if(b in a.c){for(var d=a.c[b],e=x(),f=a.m[b];f&&0<f.length;)e+=f.pop();d=e-d;0>d&&(d=0);a.a[b]=a.a[b]||0;a.a[b]+=d;delete a.c[b];c&&a.i[c]&&C(a.i[c],b)}},si=function(a){for(var b in a.c)ri(a,
b)},ti=function(a){for(var b in a.c)ri(a,b),qi(a,b);var c=[];for(b in a.f){var d=0,e=a.f[b];a.a[b]&&(d=Math.floor(a.a[b]/1E3),a.a[b]-=1E3*d);a.f[b]=0;(0<e||0<d)&&c.push({unifiedReportingEvent:Xf(b),count:e,time:d})}a.g.reportEvents(c)};ni.prototype.F=function(){si(this);ni.G.F.call(this)};var ui=function(a){this.f=a;this.c=!1;this.a=new $c};k=ui.prototype;k.reportEvents=function(a){this.c||B(a,function(a){this.a.a(a.unifiedReportingEvent.name)&&(this.c=!0,B(dg(this.f,"ENGAGEMENT_IMG"),function(a){a.ping()}))},this)};k.registerChargeableEventName=function(a){this.a.add(a)};k.logCustomVariable=function(){};k.getType=function(){return"THIRD_PARTY"};k.getConfig=function(){return{reportingApiVersion:2}};k.newReporterCallback=function(){};k.supportsChargeableEvents=function(){return!1};var vi=function(a){ni.call(this,a)};z(vi,ni);vi.prototype.u=function(a){void 0===vh&&(vh=ta(xh,wh)||"none");if("gdn"==vh){var b=r("googlecreative.reporting.sharedReporter");b||(b=new li,y("googlecreative.reporting.sharedReporter",b));a.za||b.addReporter(new mi(a));0<dg(a,"ENGAGEMENT_IMG").length&&b.addReporter(new ui(a))}else b=new mi(a);return b};vi.prototype.D=t;vi.prototype.C=t;vi.prototype.A=function(a,b){this.g.logCustomVariable(a,b)};var wi=function(a){this.i=a;this.g=null;this.j=!1;this.f=null;this.m=5E3;this.c=[]};z(wi,L);k=wi.prototype;k.Qa=t;k.Xa=t;k.ca=function(){var a;if(a=this.Na()){a:{a=this.i;for(c in a.f){var b=a.v.u[c];if(b&&b.s){var c=!0;break a}}c=!1}a=c||!this.Ia()}a&&(ti(this.i),this.f=x())};k.Ia=function(){return null!=this.f&&x()-this.f<=this.m};k.Na=function(){return null!=this.g&&12E5>=x()-this.g};k.F=function(){for(this.ca();0<this.c.length;){var a=this.c.pop();aa(a)?l.clearTimeout(a):a.dispose()}wi.G.F.call(this)};var xi=function(a,b,c){wi.call(this,a);this.o=b;this.u=c;this.a=new P(1E3*this.o);oe(this.a,"tick",w(this.ca,this))};z(xi,wi);k=xi.prototype;k.Xa=function(){this.a.f||this.a.start()};k.ca=function(){Be(this.a);xi.G.ca.call(this)};k.Na=function(){return null!=this.g&&this.u||xi.G.Na.call(this)};k.Ia=function(){return!1};k.F=function(){Be(this.a);this.a.dispose();xi.G.F.call(this)};var yi=function(a,b,c){wi.call(this,a);this.a=b;this.o=c&&0<this.a.length?this.a.pop():null};z(yi,wi);var zi=[10,20,50,120];yi.prototype.Qa=function(){for(var a=0;a<this.a.length;a++)this.c.push(Ce(w(this.ca,this),1E3*this.a[a]));null!=this.o&&(a=new P(1E3*this.o),oe(a,"tick",w(this.ca,this)),a.start(),this.c.push(a))};var Ai=function(a){this.a=a;this.c="undefined"!=typeof DARTDebugEventHandler&&DARTDebugEventHandler?new DARTDebugEventHandler:null;E(F(this.a.va))||DARTDebugEventHandler.initPreviewSession(this.a.va)};k=Ai.prototype;k.reportEvents=function(a){if(this.c)for(var b=0;b<a.length;++b){var c=a[b],d=c.unifiedReportingEvent;d=this.a.u[[d.type,escape(d.name),escape(d.videoName),d.trigger].join(":")];try{this.c.handleEventActivity(d.name,d.type,c.count,c.time,!d.g,this.a.g)}catch(e){}}};
k.registerChargeableEventName=t;k.logCustomVariable=function(a,b){try{this.c.handleCustomVariable(unescape(a),b,this.a.g)}catch(c){}};k.getType=function(){return"OUTPUT_CONSOLE"};k.getConfig=function(){return{reportingApiVersion:2}};k.newReporterCallback=t;k.supportsChargeableEvents=function(){return!1};var Bi=function(a){ni.call(this,a)};z(Bi,ni);Bi.prototype.u=function(a){return new Ai(a)};Bi.prototype.D=function(a,b,c){var d=this.g;a=d.a.u[a];if(d.c)try{d.c.handleEventAction(b,a.name,c,a.type,!a.g,d.a.g)}catch(e){}};Bi.prototype.C=function(a){var b=this.g;try{b.c.handleCustomJSExecution(a,b.a.g)}catch(c){}};Bi.prototype.A=function(a,b){this.g.logCustomVariable(a,b)};var Ci=function(a,b,c){wi.call(this,a);this.o=b;this.a=c};z(Ci,wi);Ci.prototype.Ia=function(){return this.a&&Ci.G.Ia.call(this)};Ci.prototype.Qa=function(){var a=new P(1E3*this.o);oe(a,"tick",w(this.ca,this));a.start();this.c.push(a)};var Y=function(a,b,c){N.call(this);this.a=a;this.$=b;this.f=a.c?new Bi(a):new vi(a);this.g=Di(a,this.f);this.C=c;this.c={};this.j={};this.A=new wg(this);this.H=this.I=!1;this.m=this.N=0;this.o=[];this.v={};this.O=new U(this.a,this);this.K=new Pf(this.a.c);this.D={};I&&R(this.A,self,"unload",this.dispose);R(this.A,l,"pagehide",w(this.g.ca,this.g));null!=this.C.a&&(Sc(8),a=this.C,"loading"==a.a.getState()?a.a.addEventListener("ready",w(a.Ka,a)):a.Ka())};z(Y,N);
var Ei={},Di=function(a,b){var c=!1;B(a.f,function(a){null!=a.a&&"lightbox"==a.a.expansionMode&&(c=!0)});return a.c?new Ci(b,2,!1):c?new xi(b,2,!0):new yi(b,zi,!0)};Y.prototype.W=function(){this.m++;Fi(this)};Y.prototype.S=function(){Gi(this,new Xe("logEvent","Count","FULL_SCREEN"))};Y.prototype.X=function(a){"boolean"==typeof a.s&&a.s?Gi(this,a):Hi(this,a);a.o&&this.g.ca()};Y.prototype.P=function(){this.g.ca()};
var Hi=function(a,b){var c=fd(b.c);c=lg(b.i,c);null!=c&&Ii(a,c,b.c,b.m,b.a)},Ii=function(a,b,c,d,e,f){if(null!==b)switch(a.f.D(b,c,d),c){case "Exit":f||(f=[]),f.push("CLICK");case "Count":pi(a.f,b,d,f);b=a.a.u[b];c=!1;b&&b.chargeable&&(b=a.g,b.j?c=!1:(ti(b.i),b.f=x(),c=b.j=!0));c||a.g.Xa();break;case "Start":qi(a.f,b,e,f);break;case "Stop":ri(a.f,b,e)}},Gi=function(a,b){if("DISPLAY_TIMER"==b.f)"Start"==b.c&&(a.I||(Ji(a).then(a.aa,void 0,a),a.I=!0),0==a.N++&&(b=mg(a.a,"DISPLAY_TIMER"))&&Ii(a,b,"Start",
!1),a.m--);else{var c=mg(a.a,b.f);if(c){var d=[];("FULL_SCREEN"==b.f||"EXPAND_TIMER"==b.f&&"Start"==b.c)&&d.push("EXPANSION");Ii(a,c,b.c,!1,b.a,d)}}};k=Y.prototype;k.wb=function(a){Gi(this,a);var b=ng(this.a,a.f,a.videoName);null!=b&&Ii(this,b,a.c,!1,a.a)};k.hb=function(){var a=mg(this.a,"DISPLAY_TIMER");a&&Ii(this,a,"Stop",!1)};
k.Oa=function(a){var b=this.a.H[a.i]||{},c=null!=a.B?a.B:b.url;null!=a.f&&!E(F(a.f))&&(c=zc(c,a.f));var d=this.a.D,e=dg(this.a,"CLICK"),f=1==e.length?e[0].a:"",g=c;e=null!=a.j?a.j:this.a.o;"market"==(c.match(yc)[1]||null)&&Mb?(c=cd(this.a.o,"http://ad.doubleclick.net/viewad/817-grey.gif",b.c||null,f,d),Ue(this.K,c)):g=cd(e,c,b.c||null,f,d);c=g;d=b.i;b=null!=b.f?b.f:void 0;null!=this.C.a?(b=this.C,Dg.test(c)?b.a.expand(c):b.a.open(c)):window.open(c,d||"_blank",b||"");a.log&&-1==e.indexOf("[rm_exit_id]")&&
Hi(this,a);this.g.ca()};k.tb=function(a){var b=this.j[a.a];switch(a.type){case "expandAsset":dh(this,b);break;case "expandRequested":dh(this,b);break;case "expandFinished":if(a=this.c[b])Kh(a),O(this,new Zg("EXPAND_FINISH",b));break;case "collapseAsset":eh(this,b);break;case "collapseRequested":eh(this,b);break;case "collapseFinished":if(a=this.c[b])Mh(a),O(this,new Zg("COLLAPSE_FINISH",b));break;case "tellAssetHide":this.u(b)}};
k.ob=function(a){a:{var b=this.a;var c=a.c;if(c&&(c=mf(c))&&b.qa[c]){b=b.qa[c];break a}for(c=0;c<b.f.length;c++){var d=b.f[c];if(this.j[a.a]!=d&&Jf(d)){b=d;break a}}b=null}if(b)switch(a.type){case "tellCompanionAssetShow":ch(this,b);break;case "tellCompanionAssetHide":this.u(b)}};k.nb=function(a){a=unescape(a.c);this.a.c&&this.f.C(a);try{eval(a)}catch(b){}};k.ub=function(a){a=parseInt(a.c,10);!isNaN(a)&&0<a&&(this.g.m=a)};
k.mb=function(a){var b=mg(this.a,a.i);if(b){var c=this.f,d=a.c;a=a.f;var e=c.j[b]||(c.j[b]=[]);b=c.m[b]||(c.m[b]=[]);0!=d&&e.push(d);0!=a&&b.push(a)}};k.pb=function(a){this.f.A(a.c,a.f)};k.Fb=function(){this.a.aa&&Re(Ab(this.a.aa));var a=dg(this.a,"IMPRESSION_JS");0<a.length&&(a=qa(a,function(a){return a.a}),Wg(a,this.a.A));Ki(this)};
var Ki=function(a){for(var b=a.a.f,c=0;c<b.length;c++){var d=b[c],e=d.c;ch(a,d,e&&!e.g?-1:1E3*(e&&e.g&&0<e.s&&e.s||0))}},ch=function(a,b,c){c?0<c&&(a.m++,a.o.push(Ce(w(a.J,a,b),c))):(a.m++,a.J(b))};
Y.prototype.J=function(a){if(!(a in this.c)){var b=this.a;if(b=this.$.c(a)?new Z(a,b):null){this.c[a]=b;this.j[b]=a;b=this.c[a];var c=this.A;R(c,b,"logEvent",this.X);R(c,b,"logVideoEvent",this.wb);R(c,b,"logExitFlushEventsOpenPopup",this.Oa);R(c,b,"launchExit",this.Oa);R(c,b,"expandAsset expandRequested expandFinished collapseAsset collapseRequested collapseFinished tellAssetHide".split(" "),this.tb);R(c,b,["tellCompanionAssetShow","tellCompanionAssetHide"],this.ob);R(c,b,"invokeExternalJSFunction",
this.nb);R(c,b,"setThrottlingWindow",this.ub);R(c,b,"reportCustomVariable",this.pb);R(c,b,"setTimerAdjustment",this.mb);R(c,b,"flushCounters",this.P);R(c,b,"RESET",this.W);R(c,b,"registerChargeableEventName",this.V);R(c,b,"fullscreenExpandFinished",this.S);if(a.C||this.a.R){if(b=a.u,c=cc(document,b)){var d;if(d=this.a.R)d=!(!E(F(rc(c)))&&"static"!=rc(c));d&&(c.style.position="relative");this.a.ua&&(c.style.display="inline-block");a.a&&a.a.c&&(this.D[b]=c.style.height,c.style.height="auto");Ch(this.c[a],
c);if(a.o)for(b=this.c[a],c=a.o.split(";"),d=0;d<c.length;d++){var e=c[d].split(":");2<=e.length&&oc(b.T(),e[0],e[1])}}}else document.body&&document.body.firstChild?(b=document.body.firstChild,Ch(this.c[a],b.parentNode,b)):document.body?Ch(this.c[a],document.body):document.documentElement&&Ch(this.c[a],document.documentElement);O(this,new Zg("SHOW",a))}}a.c&&(b=a.c,b=1E3*(b&&b.f&&0<b.c&&b.c||-1),0<b&&(b=Ce(w(this.u,this,a),b),this.o.push(b),this.v[a]=b));this.H||(Ji(this).then(this.Z,void 0,this),
this.H=!0)};var Ji=function(a){var b=[];xa(a.c,function(a,d){b.push(Nh(this.c[d]))},a);return Gd(b)};Y.prototype.u=function(a){var b=this.c[a];if(b){for(var c=this.f,d=c.i[b]||[];0<d.length;)ri(c,d.pop(),b);delete this.j[b];b.dispose();delete this.c[a];this.v[a]&&(l.clearTimeout(this.v[a]),delete this.v[a]);O(this,new Zg("HIDE",a));Fi(this)}};
var dh=function(a,b){var c=a.c[b];c&&(Jh(c),O(a,new Zg("EXPAND",b)),O(a,new Zg("EXPAND_REQUEST",b)))},eh=function(a,b){var c=a.c[b];c&&(Lh(c),O(a,new Zg("COLLAPSE",b)),O(a,new Zg("COLLAPSE_REQUEST",b)))};Y.prototype.Z=function(){Li(this)};var Li=function(a){a.g.g=x();a.a.ab&&Gi(a,new Xe("logEvent","Count","HTML5_CREATIVE_IMPRESSION"));a.a.ta&&Ue(a.K,a.a.X);B(["IMPRESSION_IMG","ARTWORK_IMPRESSION"],function(a){B(dg(this.a,a),function(a){a.ping()},this)},a)};
Y.prototype.aa=function(){this.g.Qa();this.o.push(Ce(w(this.hb,this),24E4))};var Fi=function(a){0==--a.N&&(a.hb(),si(a.f),0==a.m&&a.dispose())};Y.prototype.V=function(a){this.f.g.registerChargeableEventName(a.c)};
Y.prototype.F=function(){for(var a in this.D)cc(document,a).style.height=this.D[a];this.A.dispose();for(this.O.dispose();0<this.o.length;)l.clearTimeout(this.o.pop());a=this.a.f;for(var b=0;b<a.length;b++){var c=a[b];c in this.c&&(this.c[c].dispose(),delete this.c[c])}this.j=null;this.f.dispose();this.f=null;a=this.a.j;n(Ei[a])&&delete Ei[a];Y.G.F.call(this)};var Mi=function(a,b){Oc.call(this,a,"");this.s=b;this.f="studio-rl-error";this.a=null};z(Mi,Oc);
Mi.prototype.c=function(){if(null===this.a)return"";var a="&rl="+this.s+"&err=",b=encodeURIComponent;if(q(this.a))var c=this.a;else if(this.a instanceof Error){var d=this.a;c=d.toString();d.name&&-1==c.indexOf(d.name)&&(c+=": "+d.name);d.message&&-1==c.indexOf(d.message)&&(c+=": "+d.message);if(d.stack){d=d.stack;var e=c;try{-1==d.indexOf(e)&&(d=e+"\n"+d);for(var f;d!=f;)f=d,d=d.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");c=d.replace(/\n */g,"\n")}catch(g){c=e}}}else c="Failed to capture error message from: "+
this.a.toString();this.i=a+b(c);return Mi.G.c.call(this)};var Ni=function(a){L.call(this);this.i=a+".js";this.c=new Mi(.001,a);this.a=this.f=null};z(Ni,L);Ni.prototype.g=function(a){var b;if(b=a instanceof ErrorEvent){b=a.filename;var c=this.i,d=b.length-c.length;b=0<=d&&b.indexOf(c,d)==d}b&&(this.c.a=a.error instanceof Error?a.error:a.message,a=this.c.c(),vc(l,a,!1))};Ni.prototype.F=function(){this.a&&this.f.removeEventListener("error",this.a,!1);Ni.G.F.call(this)};var Oi=function(a){this.a=a};var Pi=function(){this.m={};this.c=this.a=null;this.f=[];this.g=!0};z(Pi,L);var Qi=function(a,b,c){a.g=!1;if(null===a.a){var d=ea(l.MutationObserver||l.WebKitMutationObserver)?a.j:a.i;a.a=new K(d,a)}Ld(a.a.then(b,t,c),function(){null===this.c||this.c.disconnect();this.g=!0},a)};
Pi.prototype.j=function(a){Ri(this)?a():(this.c=new l.MutationObserver(w(function(b,c){var d=!1;B(b,function(a){"childList"==a.type&&0!=a.addedNodes.length&&(d=!0)});d&&Ri(this)&&(c.disconnect(),a())},this)),this.c.observe(l.document.documentElement,{childList:!0,subtree:!0}))};Pi.prototype.i=function(a){var b=new zh(1500);yh?Ri(this)&&a():oe(b,"ready",function(){Ri(this)?a():Ce(function(){Ri(this)&&a()},0,this)},!1,this)};
var Ri=function(a){for(var b=a.f.length-1;0<=b;--b){var c=a.f[b];if(null===cc(document,c)){b:{var d=window;try{var e=d.parent.document;break b}catch(f){}e=void 0}c=e?null!==e.getElementById(c):!1}else c=!0;if(!c)return a.f.length=b+1,!1}a.f=[];return!0};Pi.prototype.F=function(){null===this.a||this.a.cancel();this.a=null;null===this.c||this.c.disconnect();this.c=null};var Si=function(){};var Ti=function(a,b,c,d){this.a=d;d=!1;this.a&&this.a.Aa&&(d=hd(this.a.Aa).s);ed.call(this,a,b,c,!1,d)};z(Ti,ed);var Ui=function(a,b){this.Ra=a;this.Aa=b},Wi=function(a){var b=a.split(":");if(2==b.length&&(a=b[0],b=Vi[b[1]]))return new Ui(a,b)},Vi={Complete:"VIDEO_COMPLETE",Interaction:"VIDEO_INTERACTION",MidPoint:"VIDEO_MIDPOINT",Mute:"VIDEO_MUTE",Pause:"VIDEO_PAUSE",Play:"VIDEO_PLAY",Replay:"VIDEO_REPLAY",Stop:"VIDEO_STOP",Unmute:"VIDEO_UNMUTE",ViewTime:"VIDEO_VIEW_TIMER"};var Xi=function(){};
Xi.prototype.a=function(a,b,c){var d=null;"CREATIVE_PARAMETER_LAYOUT_CONFIG"in a&&(d=a.CREATIVE_PARAMETER_LAYOUT_CONFIG);for(var e=[],f=a.cid||"",g=0;g<c.length;g++){var h=c[g];var m=a,p=d,v=new Gf(f+"_"+g,h.type,h.renderAs,new J(parseInt(h.width,10)||0,parseInt(h.height,10)||0),h.url);v.D=parseInt(h.zIndex,10);v.o=h.customCss;v.m=h.location||v.m;v.layoutsConfig=p||v.layoutsConfig;if(p=h.flashProperties)v.B=new of(qf(p.wmode)||"transparent");if(p=h.htmlProperties)v.j=new wf(p.transparent);if(p=h.floatingDisplayProperties){var D=
new zf(p.top,p.left);v.s=mf(p.label);v.c=new vf(D,parseInt(p.startTime,10),parseInt(p.duration,10),v.s)}if(D=h.expandingDisplayProperties)p=new mc(parseInt(D.collapsedRectLeft,10),parseInt(D.collapsedRectTop,10),parseInt(D.collapsedRectWidth,10),parseInt(D.collapsedRectHeight,10)),D=nf(D.expansionMode)||"normal",Lf(p.left)&&Lf(p.top)&&Lf(p.width)&&Lf(p.height)&&(v.a=new uf(p,D));h.imageGalleryProperties&&(v.v=new xf);v.g=new Bf;v.g.a=h.hideFlashObjects;v.g.c=!0;null!=m&&Kf(v,m);If(v);h=v;null!=b&&
!E(F(b))&&Jf(h)&&(h.A=b);e.push(h)}return e};
var $i=function(a,b){var c=new Zf;bg(c,b);c.ta=!E(F(b.impressionUrl));c.aa=b.creativeParameters.CREATIVE_PARAMETER_CUSTOM_SCRIPT_URL;if(b.creativeParameters.CREATIVE_PARAMETER_EXPERIMENTS){var d=Yi(b.creativeParameters.CREATIVE_PARAMETER_EXPERIMENTS);c.fa=d}for(d=0;d<b.standardEvents.length;d++){var e=b.standardEvents[d];ig(c,e.name,e.reportingId)}for(d=0;d<b.exitEvents.length;d++)if(e=b.exitEvents[d],!e.backUpExit){var f=new vg(e.name,e.reportingId,e.destinationUrl);f.i=e.targetWindow;f.f=e.windowProperties;
og(c,f)}/dfa7banner/.test(b.renderingLibraryData.renderingLibrary)&&!E(b.clickUrl)&&xa(c.H,function(a){a.url=cd(b.clickUrl,a.url,null)});for(d=0;d<b.timerEvents.length;d++)e=b.timerEvents[d],f=Wi(e.name),e=new Ti(e.name,e.reportingId,"Timer",f),qg(c,e);for(d=0;d<b.counterEvents.length;d++)e=b.counterEvents[d],f=Wi(e.name),e=new Ti(e.name,e.reportingId,"Counter",f),pg(c,e);e=b.primaryFiles;f={};for(d=0;d<e.length;d++)f[e[d].type]=!0;f=Zi({Za:!!f.FLASH,flashVersion:c.I,vb:!!f.HTML5,html5Features:c.W,
Ha:c.S},"true"==b.creativeParameters.preferFlash);e=!1;a=a.a(b.creativeParameters,c.ia,b.primaryFiles);for(d=0;d<a.length;d++){var g=a[d];f==g.i&&eg(c,g);null!=g.v&&(e=!0)}a=c.J;d=e?cg(c):null;e=(e=b.creativeParameters.CREATIVE_PARAMETER_ASSETS_DATA)?Yi(e):{};for(var h in e)tg(c,new Tf(h,e[h],a,d));h=(d=b.creativeParameters.CREATIVE_PARAMETER_VIDEO_ASSETS_DATA)?Yi(d):[];for(d=0;d<h.length;++d)e=h[d],f=new Tf(e.name,e.progressiveUrl,a),Uf(f,e.streamingUrl),tg(c,f);h=(d=b.creativeParameters.CREATIVE_PARAMETER_VIDEO_DATA)?
Yi(d):[];for(d=0;d<h.length;++d)c.cb.push(new Si);return c},Yi=function(a){return JSON.parse(a.replace(/\\"/g,'"'))},Zi=function(a,b){var c=Tg(a.flashVersion),d=Ug(a.html5Features,a.Ha);return!a.vb||!d||b&&a.Za&&c?a.Za&&c?"FLASH":null:"HTML5"};var aj=function(){return H("iPad")||H("Android")&&!H("Mobile")||H("Silk")};var bj=function(){};z(bj,Xi);var cj=function(a){return a?"mobile"==a?"mobile":"desktop":!aj()&&(H("iPod")||H("iPhone")||H("Android")||H("IEMobile"))||aj()?"mobile":"desktop"};bj.prototype.a=function(a,b,c){var d=cj((r("cpsConfig",l)||a).device_override),e="desktop"==d?["background","top"]:["top","background"],f=[];B(c,function(a){"BACKDROP"!=a.renderAs?f.push(a):B(e,function(b){var c=Aa(a),e={};e.Ic=d;e.Kc=b;c.Jc=e;f.push(c)})});return bj.G.a.call(this,a,b,f)};var dj=null,ej=function(a){var b=dj;var c=a.j;Ei[c]||(Ei[c]=new Y(a,b,Cg.getInstance()));b=Ei[c];c=new Pi;a=a.f;for(var d=0;d<a.length;++d){var e=a[d],f=e.u;if(null!=f){var g=c;e=e.s;g.g&&(f=new Oi(f),g.a=null,g.m[null!=e?e:"."]=f,g.f.push(f.a))}}Qi(c,b.Fb,b)},hj=function(){fj().then(gj)},ij=function(a){var b=0<fg(a,"FLASH").length,c=a.I,d=0<fg(a,"HTML5").length,e=a.W,f=a.S;b&&Tg(c)||d&&Ug(e,f)?ej(a):a.C&&(b=qa(dg(a,"IMPRESSION_IMG"),function(a){return a.a}),c=dg(a,"IMPRESSION_JS"),c=qa(c,function(a){return a.a}),
Xg(a.g,a.C,a.A,a.c,b,a.N.a,a.N.f,c))},gj=function(a){for(var b=0;b<a.length;b++)ij(a[b])},jj=function(a){Ei[a]&&Ei[a].dispose()};var lj=function(a,b){var c=new Zf,d=new ug(a.creativeDto);if(!c.ma){c.ma=!0;var e=d.a,f=e.i;c.g=d.id||c.g;c.j=d.D||c.g||c.j;c.B=d.f?new J(parseInt(d.f.width,10)||c.B.width,parseInt(d.f.height,10)||c.B.height):c.B;c.i=e.S||c.i;c.da=d.C||c.da;c.m=e.c?new J(parseInt(e.c.w,10)||c.m.width,parseInt(e.c.h,10)||c.m.height):c.m;c.c=d.i||c.c;c.P=e.R||c.P;c.I=d.flashVersion||c.I;c.W=d.g||c.W;c.S=d.Ha||c.S;for(var g in e.f)c.a[g]=e.f[g];c.a.sn=e.K;c.a.sid=e.J;c.a.aid=e.B;c.a.cid=e.creativeId;c.a.buy=e.m;c.a.pid=
e.H;c.a.adv=e.j;c.a.kid=e.D;c.a.rid=e.I;c.a.geo=e.C;c.a.randomNumber=e.randomNumber;for(var h in f.c)c.a[h]=f.c[h];c.A=f.f||c.A;c.R=f.i||c.R;c.v=d.v||c.v;c.J="https"==(d.A.match(yc)[1]||null);c.K={Fa:d.o||c.K.Fa,Ga:d.u||c.K.Ga};f=new Pf(c.c);E(F(e.a))||(c.s.CLICK=[new Mf(e.a,f)]);if(u(d.c)&&0<d.c.length)for(c.s.IMPRESSION_IMG=[],g=0;g<d.c.length;++g)c.s.IMPRESSION_IMG.push(new Mf(d.c[g],f));E(F(d.s))||(c.s.ARTWORK_IMPRESSION=[new Mf(d.s,f)]);c.U=e.u||c.U;c.ga=e.N||c.ga;c.o=e.P||c.o;g=parseInt(e.o,
10);c.D=isNaN(g)?c.D:g;c.X=e.g||c.X;c.Z=e.U||c.Z;c.V=e.v||c.V;c.ea=e.A||c.ea;c.C=d.B||c.C;c.N=new Se(f,e.O||e.s);c.ia=ag(c)}c.aa=b.customScriptUrl;c.ta=b.delayedImpression;e=b.standardEventIds;for(var m in e)ig(c,m,e[m]);e=b.exitEvents;for(m=0;m<e.length;m++)f=e[m],g=new vg(f.name,f.reportingId,f.url),g.i=f.targetWindow,g.f=f.windowProperties,og(c,g);f=b.timerEvents;for(m=0;m<f.length;m++)e=f[m],qg(c,kj(e,"Timer"));f=b.counterEvents;for(m=0;m<f.length;m++)e=f[m],pg(c,kj(e,"Counter"));e=c.J;f=b.childFiles;
for(m=0;m<f.length;m++)tg(c,Vf(f[m],e));f=b.videoFiles;for(m=0;m<f.length;m++)tg(c,Vf(f[m],e));e=b.videoEntries;for(m=0;m<e.length;m++)c.cb.push(new Si);m=d.j;e=d.m;f=d.a.i.g;g=Tg(d.flashVersion);d=Ug(d.g,d.Ha);d=!e||!d||f&&m&&g?m&&g?"FLASH":null:"HTML5";b=b.primaryAssets;m=0;e=c.ia;for(f=0;f<b.length;++f){b[f].floatingDisplayTypeData&&!E(F(b[f].floatingDisplayTypeData.alignment))&&m++;var p=b[f];h=a.creativeDto.adServerData.tag;g=new Gf(p.id,p.artworkType,p.displayType,new J(parseInt(p.width,10)||
0,parseInt(p.height,10)||0),(cg(c)||"")+p.servingPath);g.D=p.zIndex;g.o=p.customCss;g.m=p.location||g.m;g.layoutsConfig=p.layoutsConfig;g.H=p.layoutsApi;var v=p.flashArtworkTypeData;v&&(g.B=new of(v.wmode));if(v=p.htmlArtworkTypeData)g.j=new wf(v.isTransparent);if(v=p.floatingDisplayTypeData){var D=v.position;D=new zf(D.top+D.topUnit,D.left+D.leftUnit);g.s=mf(v.alignment);g.c=new vf(D,v.startTime,v.endTime,g.s)}if(v=p.expandingDisplayTypeData)D=v.collapsedRect,g.a=new uf(new mc(D.left,D.top,D.width,
D.height),v.isPushdown?"push_down":nf(v.expansionMode)||"normal");p.imageGalleryTypeData&&(g.v=new xf);p=p.pageSettings;v=new Bf;p&&(v.a=p.hideObjects||!1,v.c=p.updateZIndex||!1);g.g=v;p=void 0;if(null==h)h={};else{v={};for(p in Hf)D=r(p,h),null===D||(v[Hf[p]]=D+"");h=v}Kf(g,h);If(g);null!=e&&!E(F(e))&&Jf(g)&&(g.A=e);g.i==d&&eg(c,g)}return c},kj=function(a,b){if(a.videoData){var c=a.videoData;c=new Ui(c.associatedVideoEntryReportingIdentifier,c.associatedStandardVideoEvent)}return new Ti(a.name,a.reportingId,
b,c)};var mj=function(){},fj=function(){var a=nj();return new K(function(a){var b=[],d=r("studioV2.creatives")||{};for(m in d){var e=d[m],f=e.creativeDefinition;if(f)for(e=e.adResponses;0<e.length;){var g=e.shift(),h=g.creativeDto;if(h.rendererName==sh&&"200_231"==h.templateVersion)b.push(lj(g,f));else{e.unshift(g);break}}}d=[];var m=r("window.dclkStudioV3.creatives")||[];for(f=m.length-1;0<=f;--f){e=m[f];e.previewMode&&(g=e,h=r("window.dclkStudioV3.creativeParametersOverrides"),g&&h&&(h.CREATIVE_PARAMETER_LAYOUT_CONFIG&&
(g.creativeParameters.CREATIVE_PARAMETER_LAYOUT_CONFIG=h.CREATIVE_PARAMETER_LAYOUT_CONFIG),h.PREVIEW_FRAME_NAME&&(g.creativeParameters.PREVIEW_FRAME_NAME=h.PREVIEW_FRAME_NAME)));a:{if(e&&"true"!==e.creativeParameters.bow_bd_data)for(g=0;g<e.primaryFiles.length;++g)if("BACKDROP"==e.primaryFiles[g].renderAs){g=new bj;break a}g=new Xi}e=$i(g,e);a:{g=e;h=g.f;for(var p=0;p<h.length;p++){var v=h[p];if(Jf(v)&&!dj.c(v)){g=!1;break a}}g="200_231"==g.bb}g&&(Array.prototype.splice.call(m,f,1),d.push(e))}a(b.concat(d))},
a)};var oj=function(){this.a=null},pj=function(a,b){return u(a)?0<=oa(a,b):a==b};oj.prototype.c=function(){return!1};var nj=function(){var a=dj;a.a||(a.a=new mj);return a.a};var qj=function(a,b,c){Oh.call(this,a,b,c);this.c=b;this.J=this.f=null;this.X=this.H=!1;this.I=-1;this.o=null;this.u=Cg.getInstance()};z(qj,Oh);k=qj.prototype;k.ja=function(){if(!E(F(this.c.v))){var a=this.T(),b=new Image;b.width=Zb(this.c.B).width;b.height=Zb(this.c.B).height;b.src=this.c.v;a.appendChild(b);this.J=b}qj.G.ja.call(this)};
k.Ua=function(){null!=this.J&&(this.T().removeChild(this.J),this.J=null);null!=this.f||rj(this);Qh(this,"logEvent",["Start","DISPLAY_TIMER",null,"false","false"]);R(Bh(this),this.f,"mouseover",this.yb);R(Bh(this),this.f,"mouseout",this.xb);var a=Bh(this);this.o&&(zg(a,this.o,"tick",this.Ta),this.o.dispose());this.o=new P(80);R(a,this.o,"tick",this.Ta);this.o.start()};k.oa=function(a,b){qj.G.oa.call(this,a,b);tc(this.f,"100%","100%")};
k.Ta=function(){0<this.I&&!this.H&&1E3<x()-this.I&&(this.H=!0,Qh(this,"setTimerAdjustment",["INTERACTION_TIMER",-1E3,0]),Qh(this,"logEvent",["Start","INTERACTION_TIMER",null,"false","false"]),this.X||(Qh(this,"logEvent",["Count","EVENT_USER_INTERACTION",null,"false","false"]),Qh(this,"flushCounters",[]),this.X=!0))};k.yb=function(){this.I=x()};k.xb=function(){this.H&&(Qh(this,"logEvent",["Stop","INTERACTION_TIMER",null,"false","false"]),this.H=!1);this.I=-1};
k.Pa=function(a){if(null!=this.u.a){var b=this.j;if(b=b.fa&&void 0!==b.fa.disable_h5_mraid_imp_ping?b.fa.disable_h5_mraid_imp_ping:!0)a:{b=this.j;for(var c=0;c<b.f.length;c++)if(!b.f[c].C){b=!1;break a}b=!0}b?a.a():this.u.a.isViewable()?a.a():(b=Bh(this),yg(b,this.u,"show",a.a,void 0))}else qj.G.Pa.call(this,a)};var Z=function(a,b,c){qj.call(this,a,b,c);this.$=this.D()+".if"};z(Z,qj);Z.prototype.ja=function(){Z.G.ja.call(this);R(Bh(this),window,["resize","orientationchange"],this.da);null!=this.u.a&&R(Bh(this),window,"message",this.ea)};Z.prototype.O=function(){Z.G.O.call(this);E(F(this.c.v))&&rj(this)};var rj=function(a){var b=a.T(),c=hc(a.N.a,"iframe");b.appendChild(c);a.sa(b);R(Bh(a),c,"load",a.aa)};
Z.prototype.sa=function(a){Z.G.sa.call(this,a);this.a=a;var b=Zb(this.c.m),c=this.K.width||b.width;b=this.K.height||b.height;tc(a,c,b);a.style.position="relative";this.f=a=a.firstChild;var d=this.$,e=this.K;tc(a,c,b);c={id:d,src:e.A,width:c,height:b,frameborder:"0",scrolling:"no"};e.j&&e.j.a&&(c.allowtransparency="true");ec(a,c);a.setAttribute("allowfullscreen","true")};
Z.prototype.da=function(){var a=this.K,b=this.f,c=this.T();Tc(8)&&(a=new J(window.innerWidth||a.width,window.innerHeight||a.height),b.width=a.width.toString(),b.height=a.height.toString(),tc(b,a),tc(c,a))};Z.prototype.aa=function(){this.f.contentWindow.postMessage(sj(this),"*")};
var sj=function(a){var b=Aa(a.c.H);for(p in b){var c=b[p],d=b[p],e=void 0,f=a,g=c.name,h=c.c,m=c=c.url;f.c.c?window.DARTDebugEventHandler&&(h=window.DARTDebugEventHandler,e=h.initPreviewSession(window.location.href),f=h.generateEventData("handleEventActivity",{eventName:g,eventType:"exit",counterValue:1,durationValue:0,isCustomEvent:!0,creativeId:f.c.g},!0,Math.floor(1E7*Math.random())),m=e+"&eventData="+encodeURIComponent(f)+"&_dc_redir="+encodeURIComponent(c)):(g=dg(f.j,"CLICK"),0<g.length&&(e=
g[0].a),m=cd(f.j.o,m,h,e,f.j.D));d.url=m}var p=a.c;f=null!=a.u.a;a={};d=[];a.clickTags=[];for(var v in b)g=b[v],c=g.url,a.clickTags.push({name:g.name,url:c}),d.push(encodeURIComponent(g.name)+"="+encodeURIComponent(c));a.isInitClickTag=!0;f&&(a.relegateNavigation="parent");p.da&&(a.hasInitSwiffyData=!0,b={},b.runtimeUrl=p.Z,b.flashVars=d.join("&"),a.swiffyInfo=b);return JSON.stringify(a)};
Z.prototype.ea=function(a){var b=this.u;try{var c=JSON.parse(a.c.data);c.isPostClickTag&&c.clickTag&&b.a.open.apply(b.a,[c.clickTag])}catch(d){}};var tj=function(){this.a=null};z(tj,oj);tj.prototype.c=function(a){var b=pj("BANNER",a.f);a=n("HTML5")?pj("HTML5",a.i):!0;return b&&a};dj=new tj;for(var uj=document.getElementsByTagName("noscript"),vj=0;vj<uj.length;vj++)uj[vj].style.display="none";var wj=r("studioV2.loadedLibraries.200_231.express_html_inpage");
if(!wj||!wj.bootstrap){y("studioV2.loadedLibraries.200_231.express_html_inpage.bootstrap",hj);y("studioV2.loadedLibraries.200_231.express_html_inpage.unload",jj);var xj;a:{var yj=r("dclkStudioV3.renderingLibraries");if(yj)for(var zj=0;zj<yj.length;++zj){var Aj=yj[zj];if("200_231"==Aj.version||-1!=Aj.url.indexOf("/express_html_inpage")){xj=Aj;break a}}xj=null}null!==xj&&(xj.bootstrapFunction=hj,xj.unload=jj);sh="express_html_inpage";var Bj="undefined_type"===sh?null:sh+"_rendering_lib_200_231";if(null!=
Bj&&!r("dclkStudioV3.rlErrorSampled")&&!r("studioV2.rlErrorSampled")){var Cj=new Ni(Bj);if(Cj.c.g){Cj.a=w(Cj.g,Cj);Cj.f=l;l.addEventListener("error",Cj.a);var Dj=r("dclkStudioV3");Dj?Dj.Db=Cj:r("studioV2").Db=Cj}}var Ej=r("studioV2.defer");Ej&&ea(Ej)?Ej(hj):hj()};}).call(this);
