var __IntegralASDiagnosticCall = function(){};
try {
var __IntegralASConfig = {
jsDoSplit : "false",
cocaPuffsPath : "",
debug : "false",
killPhrases : "",
jsDiag:'false',
version:'0',
mtCell: 10,
mtSample: 5,
trackMouse : "true",
exchList:{'e1':'nqzryq','e2':'tbbtyrnqf.t.qbhoyrpyvpx','e3':'ehovpbacebwrpg','e4':'chozngvp','e5':'bcrak','e6':'nqoevgr.pbz','e7':'tynz.pbz','e8':'lvryqznantre.pbz','e9':'yvwvg','e10':'nqakf','p11':'ghea.pbz','p12':'zngugnt','p13':'vaivgrzrqvn','p14':'qngnkh','n15':'zrqvn6qrterrf','n16':'dhnagfreir','n17':'esvuho.arg','a18':'napubeserr','a19':'eff2frnepu','a20':'mgfgngvp.pbz','n21':'ovq.npr.nqiregvfvat','e22':'wnfba','v23':'fcbgkpqa','v24':'ogeyy','v25':'yvirenvy','v26':'nqncgi','v27':'nqnc.gi','n29':'qbzqrk.pbz','n30':'ernyih.arg','d31':'cvengronl','d32':'cebklonl','d33':'onlcebkl','d34':'cvengrcebkl','d35':'cebklcvengr','d36':'onlcvengr','n37':'tjnyyrg','p39':'j55p.arg','p40':'c0l.pa','p41':'vcvalbh.pbz','p42':'c0lwferaqre'},
killFlash: 'true',
sp_cdnDomain:'cdn.adsafeprotected.com',
sp_cdnScripts:{sca: "cdn.adsafeprotected.com/sca.17.2.10.js"},
protocol:'http',
jsref : "http:\/\/www.itworld.com\/article\/3173790\/security\/stop-using-sha1-it-s-now-completely-unsafe.html?google_editors_picks=true",
asid : "91dfe6b4-3d2a-11e7-ada3-00259086bbca",
allowViewability : "true",
jsFeatures : "cocoapuffs,viewabilityready,consecutive,cachebust:0,forcecocoa:0,rattie,exch,recordalternate:0,usedtdomain,nextcocoa:100,bapiDiag,cookie,postDts:0,videotwoseconds,getPl,decodePl,resolution,usetpl,tpiLookupURL,hundredpct,jloadDiag:0,blur:0,sendclogs,zeroPing,idMap,offscreen,everySecond:1,sdkdetection,moreAdTalkCalls,slid,fm2:1,largeAd,nextcocoaie:100,usevh,fxdet,mmsb:0,bigmon:0,chromeNativeIO:100,oddet:100,ios:0,ancestor:100,avmm:100,avgrn:100,useScreenLocationInfoAdaptor:100,swapids:100,pIntervals:10,firewall_cdn_domain,forceid:0,usesca:10,bustediframe:100,impFailSafe:100,yieldmo:100,displayCustomView:0,sfdetect,pmdetect:100,novidnodeerr:5,diagnosticCM:0,viewabilityOptimization:100,usehaps:100,useAvidGeometricMeasurement:100,customMetric:100,sizmek,celtra",
adsafeDomain : "adsafeprotected.com:80",
minimizeCalls : "false",
adWidth : "",
adHeight : "",
forceAppend : "true",
sp_imp_maxLength: 6000,
sp_imp_jsInfo_minLength: 200,
_onInViewMRC15 : __IntegralASConfig && __IntegralASConfig.onInViewMRC15,
_onAPIResult : __IntegralASConfig && __IntegralASConfig.onAPIResult,
_onMeasurable : __IntegralASConfig && __IntegralASConfig.onMeasurable,
_onSuspicious : __IntegralASConfig && __IntegralASConfig.onSuspicious,
_onInViewMRC : __IntegralASConfig && __IntegralASConfig.onInViewMRC,
_onInViewFull : __IntegralASConfig && __IntegralASConfig.onInViewFull,
_onInViewMRC5 : __IntegralASConfig && __IntegralASConfig.onInViewMRC5,
reqquery : "anId=8879&campId=1x1&pubId=25398656&chanId=22304456&placementId=160905656",
mode : "jload",
requrl : "http:\/\/pixel.adsafeprotected.com\/mon",
dtBaseURL: "http:\/\/dt.adsafeprotected.com\/dt?anId=8879",
adsafeSrc : "",
tpiLookupURL:"",
getTpl: "false",
use100v: true,
useBapiCallback: "",
useViewabilityNotification: "",
scriptUrl : "http:\/\/pixel.adsafeprotected.com\/jload?anId=8879&campId=1x1&pubId=25398656&chanId=22304456&placementId=160905656",
accountForSadImps:'',
sendCookie:'false',
cookieBaseURL:'sc.iasds01.com\/dtc?anId=8879&pubId=25398656',
fwMonitoring:'',
doNothing: false,
mn: "app06ami",
mobOrTab: false,
mobFwUrl : "http://mobile.adsafeprotected.com/external/monitoring/app/initial/8879/",
anId : '8879',
advEntityId : '',
pubEntityId : '',
videoId : '',
videoChannel : '',
customViewability: [{ "id":"publ1", "tiv": 1, "minunit":1, "thresholds": [{"piv":100, "ub":242499}, {"piv":30, "lb":242500}], "mediaTypes":["display"], "distributionChannels":["web","app"] }, { "id":"publ2", "tiv": 2, "minunit":2, "thresholds": [{"piv":100, "ub": 242499}, {"piv":50, "lb": 242500}], "mediaTypes":["video"], "distributionChannels":["web","app"] }]
};
if (__IntegralASConfig.jsFeatures.indexOf('asidJsDiagnostic') !== -1) {
var fakeErr = { message: __IntegralASConfig.asid };
__IntegralASDiagnosticCall('asid', fakeErr);
}
__IntegralASConfig.birthdate = new Date().getTime();
__IntegralASConfig.useFIF = (!!window.__IntegralASUseFIF) && __IntegralASConfig.mode === 'jload';
__IntegralASConfig.contextNode = (function() {
if (__IntegralASConfig.useFIF) {
return window.frameElement; // Early exit if using FIF
}
var tempScript,
embedded = window != top,
scripts = document.getElementsByTagName('script'),
result = scripts[scripts.length - 1],
scriptIndex = scripts.length,
useDocWrite = 'jss,jsi,jspix'.indexOf(__IntegralASConfig.mode) !== -1,
scriptUrl = __IntegralASConfig.scriptUrl;
try {
while (--scriptIndex >= 0) {
tempScript = scripts[scriptIndex];
if (tempScript.src && tempScript.src.indexOf(scriptUrl) === 0 && tempScript.getAttribute('data-ias-script-tag') === null) {
result = tempScript;
tempScript.setAttribute('data-ias-script-tag', 'found');
break;
}
}
if (scriptIndex === 0 && useDocWrite && !embedded) {
document.write('');
result = document.getElementById('s' + __IntegralASConfig.asid).parentNode;
}
} catch(e) { }
return result;
}());
} catch(err) {
__IntegralASConfig = {};
__IntegralASDiagnosticCall('bootstrapper', err);
}
__IntegralASConfig.initialize=function(r,w,z){var l,Ob=function(){H.startSystem();l=H.getAggregator();var k;l.provide("mobileApp",function(){return k=k||new qa(a)});l.provide("context",s);var a=l.provide("features",ra()),b=sa(),c=l.provide("ids",ta()),d=new ua(l),f=Y(),h=va(b,f),f=function(){var b=l.request("mobileApp"),d=l.request("context"),f=b.isSafeToInjectMraid(),h=new wa(p.getWindow(),new D),f=new xa(p.getWindow(),f,b.isMobileAppEnvironment()),q=new Z(h,new D),n=new ya(p.getWindow(),new D),
m=new za(p.getWindow(),c),u=new Aa(p.getWindow(),m,r.mode),k=new Z(n,new D),e=new Ba(p.getWindow(),new D),t=new Ca(p.getWindow(),m,r.mode),n=new $(n,e,new D),g=new Da(p.getWindow(),new D),d=new Ea(p.getWindow(),d),h=new $(h,g,new D),g=new Fa(p.getWindow(),new D),y=new Ga,C=new Ha,F=new Ia(new aa,p.getWindow(),new D),I=new Ja(p.getWindow(),new D),C=(y=(new ba([{environment:y,measurementStrategy:I},{environment:C,measurementStrategy:F}])).resolve())?y.measurementStrategy:{},F=new Ka(new La),y=new Ma(g,
C,new D,F),e=new Na(g,C,e,new D,F),m=m.accepts()&&m.supportsAdContainerGeometry(),m=a.on("useAvidGeometricMeasurement")&&m,f=(new ba(m?[{environment:u,measurementStrategy:y},{environment:t,measurementStrategy:e},{environment:d,measurementStrategy:h},{environment:f,measurementStrategy:q}]:[{environment:u,measurementStrategy:k},{environment:t,measurementStrategy:n},{environment:d,measurementStrategy:h},{environment:f,measurementStrategy:q}])).resolve(),q=new Oa(f,m);return new Pa(f,q,b.isMobileAppEnvironment())}();
a.on("swapids")&&(r.oid=r.asid,r.asid=c.unq);var q,m,n=Qa(),u=Ra(),t=Sa(a),y=Ta(),F=Ua(l),C=l.provide("mPage",Va()),I=Wa(),W=Xa(I,p),E=Ya(),B=l.provide("browser",Za()),v=l.provide("intersectionWatcher",$a(p.getDoc().body));l.provide("ieXDomainViewability",ab(B));l.provide("iframe",bb(B));var R=cb(B),w=l.provide("video",!s.isVideo()||s.isAvid()||s.isInMobiMraidVideo()?{}:db(r.videoId,a,E));eb(fb.build());var x=gb(b,R,a),K=hb(x,b,C),N=ib(F),z=jb(x,b,a,c,d,B,E,y),y=kb(),A=lb(b,a,l,F),x=mb(h,z,b,c,d),
h=nb(h,z),A=ob(A,a,f.isImmediate()),T=l.provide("viewability",pb(new D,f,B,z,b,a,R,l,c,d,N,C,K,E,w)),ub=function(){var b=new qb(a,s),c=new rb(a,s),d=(new sb(r,s,a)).resolve(),f=[b],h=[];c.applies()&&f.push(c);e(d).each(function(a,b){f.push(new tb(b,s));h.push(b.id)});0k,d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),f=[];k=c?-k:k;do b=k%a,f.push(d[b]),k=(k-b)/a;while(0=g.MRC_LARGE_AD_SIZE;d()});l.on("impressionsent",function(){a=!0;d()});c.onHiddenChange(d)},Ta=function(){var k=[],a={},b={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h"};l.on("newScreenEvent",function(c){c=e(c).selectProperties(e(b).keys());c=e(c).asStrings();
var d=e(c).compareTo(a);d&&(d.t=s.getTagTime(),k.push(d));e(a).mixin(c)});return{toString:function(){return e(k).toION(b)}}},Pb=function(k,a,b,c,d,f,h){var q;(function(){var f=b.getRounded(),n=f.width-5,e=f.height-5,t=0.5*f.width+1,f=0.5*f.height+1;q=[new k(a,n,e,d,h,c),new k(a,n,5,d,h,c),new k(a,5,e,d,h,c),new k(a,5,5,d,h,c),new k(a,t,f,d,h,c)]})();return{getNumInView:function(){var a=[],b=0;e(q).each(function(b,c){var d=c.isInView()?1:0;a.push(d)});f.addItem({output:a.join(".")},"pvs");e(a).each(function(a,
c){b+=c});return b},getPctInView:function(a){return 5===a?100:3<=a?51:0},isReady:function(){var a=!0;e(q).each(function(b,c){c.isNotReadyToReport()&&(a=!1)});return a},remove:function(){e(q).each(function(a,b){try{b.remove()}catch(c){}})}}},Qb=function(k,a,b,c,d,f,h,q){var m=new k(ga,z.body,a,c,d,h,q),n,u,t=0;b=b||e.noop;n=setInterval(function(){m.isReady()&&!u?(u=!0,b(),clearInterval(n)):(5===++t||u)&&clearInterval(n)},50);return{checkViewable:function(){var a=m.isReady(),c=m.getNumInView(),c=m.getPctInView(c),
d=f.calcInitialViewState(c,!0);a&&!u&&(u=!0,b());return{str:a?d:g.NA,pct:a?c:-1}},removePixels:function(){m.remove()}}},Tb=function(k,a,b,c,d,f){var h,q,m=a.getRounded(),n=[],u=!1,t=0,y=c.on("largeAd")&&a.isMrcLarge()&&!s.isVideo()?Rb(m):Sb(m),l=function(){var a;if(!u)for(u=!0,a=0;a=f?g.IN_VIEW:g.OUT_OF_VIEW);d&&!q&&(q=!0,b());return{str:d?f:g.NA,pct:d?C():-1}},removePixels:function(){e(n).each(function(a,b){try{b.remove()}catch(c){}})}}},X=function(){var k=new Ub,a=new D;return e(k).mixin(a)},D=function(){var k={},a=function(a,
c,d){k[a]=k[a]||new P;k[a].push(c,d)};return{on:function(b,c){c?a(b,c):e(b).each(a)},once:function(b,c){a(b,c,1)},trigger:function(a){var c,d=e(arguments).toArray();if(c=k[a])d.shift(),c.run.apply({},d)}}},Kb=function(){var k={},a={ox:0},b=p.getWindow(),c=e.isDef(b.JSON)&&e.isDef(b.postMessage),d=function(b){var c=b.uniqueId;b=a[b.vendorKey];var d=!1;e.isDef(b)&&1>b&&c&&!k[c]&&(d=!0);return d},f=function(a,b){if(b)return b.type="receipt",b},h=function(b,c,d){a[c.vendorKey]++;d();k[c.uniqueId]=!0;
q(c)&&(d="false"===c.isSampling,b=["ext",c.vendorKey,c.dataKey].join("_"),d={encode:!0,minDt:d,type:d?g.DT_CODES.EXTERNAL:g.DT_CODES.UNLOAD},l.trigger("addOutputItem",{output:c.dataValue},b,d),l.trigger("addOutputItem",{output:c.vendorKey},"ext_vendor",d),"false"===c.isSampling&&l.trigger("sendMinDt",g.DT_CODES.EXTERNAL))},q=function(a){var b=function(a){return e.isStr(a)&&100>a.length};return b(a.vendorKey)&&b(a.dataKey)&&b(a.dataValue)};return{isApplicable:function(){return c},start:function(){(new ha).listen(d,
h,f)}}},U=function(k,a,b,c){var d=l.request("browser");if(l.request("features").bootstrapOn("killFlash"))return{style:{},isPlaceholder:!0};var f=function(a,b){return''};return function(){var h,q,m,n=r.dtBaseURL,e=r.cocaPuffsPath,n=new J(n);n.sub(a||"static");n.master(n.master().split(":")[0]);n.path("");e&&(n.master(e),n.sub(""));n+=k;e=f("allowscriptaccess","always");h=f("movie",n)+f("play","true")+f("loop","true");m=d.browserIs(g.BROWSERS.IE)||d.browserIs(g.BROWSERS.MSEDGE);
q=d.browserIs(g.BROWSERS.IE);m&&(m=c?"window":"transparent",h+=f("wmode",m));b&&(e+=f("FlashVars",b));q?(q=z.createElement("div"),m="blag"+r.birthdate+p.random(),q.innerHTML="",h=q.firstChild):(h=z.createElement("object"),h.data=n,h.type=g.FLASH_MIME,h.innerHTML=e);n=h;n.style.position="absolute";n.style.width="1px";n.style.opacity="0";n.style.height="0px";
return h}()},ga=function(k,a,b,c,d,f,h,q){var m=f.browserIs(g.BROWSERS.IE)||f.browserIs(g.BROWSERS.MSEDGE),n="_IASflashPixelCallback"+(r.birthdate+""+p.round(1E6*p.random())),u=!1,t=!1,y,F,C,I,W=function(){if(y&&e.isFunction(y.jsHandshake)&&!u){y.style.height="1px"===y.style.height?"2px":"1px";try{y.confirmResize()}catch(a){u=!0,l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}}},E=function(){if(u)return!1;var a,b;try{(a=I||y&&e.isFunction(y.jsHandshake))&&!t&&(I=!0,w[n]=B,b=y.jsHandshake(n),t=!0,
B(b))}catch(c){a=!1,u=!0,l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}return a},B=function(a){try{if(e.isUndef(a.isInView))throw"corrupted Flash pixel message received";C=1===+a.isInView}catch(b){l.trigger("error",g.ERROR_CODES.FLASH_API_ACCESS)}},s=function(a,b,c){var d=new U(m?"/detector_4_5_IE.pix":"/detector_4_5.pix"),f=d.style;d[g.IAS_DETECTOR]="true";f.left=b+"px";f.top=c+"px";d.isPlaceholder||a.appendChild(d);f.height="1px";y=d;m&&!d.isPlaceholder&&setInterval(W,100);return d}(k,a,b);
return{isInView:function(){var a;if(E()){try{a=C}catch(b){I=!1,l.trigger("error",g.ERROR_CODES.COCOA_GONE)}f.browserIs("w")&&void 0!==a&&(y.style.height=F?"1px":"2px",F=!F)}return E()&&a},isNotReadyToReport:function(){return!E()},createdFlash:y,remove:function(){s.parentNode&&s.parentNode.removeChild(s)}}},M=function(){var k=function(a,c,d){var f=c.length,h=v.isWindow(a)?a.frames:v.getChildWindowsOf(a);d&&d(a,c);if(h.length){for(a=0;a=c&&(b.task(),k.shift())},getNextJob:function(){return k[0]}}},ha=function(){var k,
a=function(a,c,d,f){var h,q=e.noop,m,n;if(JSON&&JSON.parse)try{h=JSON.parse(a.data),m=a.source,c(h)&&(f&&(n=f(m,h))&&(q=function(){(new ia(m)).send(function(){return n})}),d(a,h,q))}catch(k){h&&l.trigger("error",g.ERROR_CODES.MESSAGE_LISTENER)}};return{listen:function(b,c,d){k=function(f){a(f,b,c,d)};x.addEvent(w,"message",k)},stop:function(){k&&x.removeEvent(w,"message",k);k=null}}},ia=function(k){var a=function(a){return e(a).mapToObj(function(a,b){var f;e.isFunction(b)||(f={},f[a]=b);return f})};
return{send:function(b){if(JSON&&JSON.stringify){var c=e(k).isObj()?[k]:(new M).getFrames(k);e(c).each(function(c,f){var h;h=e.resolve(b,f)||{};h.sentTime=p.now();h=a(h);f.postMessage(e(h).JSONStringify(),"*")})}}}},Vb=function(k,a){return{onAll:function(b){var c={};e(a).each(function(d,f){k.on(f,function(){c[f]=1;e(c).keys().length===a.length&&(c={},b())})})}}},ua=function(k){var a=0,b={},c=function(b,c,d){if(e.isUndef(b.output))throw Error("item with id "+c+' must have "output" method');this.item=
b;this.id=c||++a;this.props=d||{};this.output=function(){var a=e.resolve(b.output);this.props.asION&&(a=e(a).toION());return a}},d=function(a){var c,d,f=[];for(c in b)b.hasOwnProperty(c)&&(d=a(c,b[c]))&&f.push(d);return f},f=function(a,d,f){f=f||d;f="string"!==typeof f?f:{};var n=function(a,d,f){a=new c(a,d,f);b[a.id]=a};e(a.output).isObj()&&!f.asION?e(a.output).each(function(a,b){n({output:b},a,f)}):n(a,d,f)};k.on("addOutputItem",function(a,b,c){f(a,b,c)});return{addItem:f,filterOutput:function(a,
b){return d(function(c,d){var f=d.props,k;a(f)&&(k=d.output(),f.encode&&(c=encodeURIComponent(c),k=encodeURIComponent(k)),e.isFunction(b)?b(c,k):b[c]=k)})},iterate:d,cleanup:function(){d(function(a,c){c.props.flagForRemoval&&delete b[a]})},getItem:function(a){return b[a]}}},Rb=function(k){var a=k.width-5,b=k.height-5,c=0.5*k.width+1,d=0.5*k.height+1,f=0.3*k.width+1,h=0.7*k.width+1,q=0.3*k.height+1,m=0.7*k.height+2,n,e=function(a,b){1>a&&(a=1);1>b&&(b=1);a>k.width&&(a=0!==k.width?k.width:1);b>k.height&&
(b=0!==k.height?k.height:1);return{x:p.floor(a),y:p.floor(b)}};n=[e(a,b),e(a,5),e(5,b),e(5,5),e(c,d),e(f,q),e(h,q),e(f,m),e(h,m)];return{get:function(){return n},getPctInView:function(a){var b;0===a?b=0:1===a?b=10:2===a?b=20:5>a?b=30:7>a?b=50:9>a?b=70:9===a&&(b=100);return b}}},Sb=function(e,a){var b=0.5*e.width+1,c;c=[{y:p.floor(0.5*e.height+1),x:p.floor(b)}];return{get:function(){return c},getPctInView:function(a){return 1===a?50:0}}},Ub=function(){var k={},a=function(a,c){k[a]=c};return{request:function(a){var c,
d=k[a],f=e(arguments).toArray();f.shift();e.isUndef(d)||(c=e.isFunction(d)?d.apply({},f):d);return c},provide:function(b,c){c?k[b]=c:e(b).each(a);return c}}},hb=function(k,a,b){return{collect:function(){var a=k.find(),d=a.getOutOfViewReasons(),f=b.isHidden(),h=A(v.calcWinDims()),q=a.getDims();if(!a.hasAd()||!h.hasValidDims()||!q.hasValidDims())return{viewState:g.NA,posViewState:g.NA,embedded:s.embedded,winDimensions:h,adDimensions:q};!0===f&&d.push(g.OUT_OF_VIEW_REASONS.FOCUS);return{winDimensions:h,
adDimensions:q,containerDimensions:a.getContainerDims(),method:a.getDetectionMethod(),viewState:d.length?g.OUT_OF_VIEW:a.getViewState(),percentInView:a.getPercentInView(),reason:d.join("."),obstructed:e.stringifyTriState(a.isObstructed()),isHidden:e.stringifyTriState(a.isHidden()),tabHidden:e.stringifyTriState(f),posViewState:a.getViewState(),adCompCount:a.getComponentCount()}}}},Wb=function(k){k=k||e.identity;var a=[],b=p.now(),c=function(){var c=p.now();a.length&&(a[a.length-1].duration+=c-b,b=
c)};return{clear:function(){c();a=[]},fastForward:c,get:function(){return a},hasAlwaysBeen:function(b){return 1===a.length&&a[0].state===b},addState:function(b){var f=a[a.length-1];b=k(b);c();0!==a.length&&b===f.state||a.push({state:b,duration:0})}}},ja=function(e,a){var b=e||1,c=0,d=0,f,h=0;return{start:function(){0===c%b&&(f=p.now())},stop:function(){var q=f||a;0===c%b&&(h+=p.now()-q,d++);c++},getTime:function(){return h},getCount:function(){return d}}},ka=function(){var k,a=0,b=0,c=new D(!0),d=
function(){k&&(a++,c.trigger(a),b>a?p.execAtEndOfThread(d):f())},f=function(){k=!1;a=0};return{onTick:function(a,d){var f=e.collapseArgsIntoHash(a,d);e(f).each(function(a,c){a=parseInt(a);b=a>b?a:b});c.on(f)},start:function(){k||(k=!0,p.execAtEndOfThread(d))},kill:f,isActive:function(){return k}}},Xb=function(e,a){var b,c=a,d=p.getWindow(),f=function(a){b||(a&&e(),b=d.setInterval(e,c))},h=function(){d.clearInterval(b);b=null};return{start:f,stop:h,updateFrequency:function(a,b){c=a;h();f(b)}}},zb=
function(e){var a,b,c=0,d=s.getTagTime(),f=0,h=!1;return{getTotalTime:function(){return f},stop:function(){c=0;d=s.getTagTime();h=!1},mark:function(){a=h?s.getTagTime()-d:0;c+=a;c>=e&&(b=c-a\x3c/script>'],
iframe:[''],img:['']}[a];d=c[0]+b+c[1];"true"===r.forceAppend?"script"!==a?(c=z.createElement("DIV"),c.innerHTML=d,f.appendChild(c.childNodes[0])):(c=z.createElement("SCRIPT"),c.src=b,f.appendChild(c)):z.write(d)},c=function(a,b,c){var d=!c&&x.getXHR2();d?(d.open("POST",a),d.onreadystatechange=function(){4===d.readyState&&200===d.status&&b&&b()},
d.send()):(c=v.createImage(),b&&(c.onload=b),c.src=a)},d=function(a,b,c,d){var f=z.createElement("script");c=c||r.contextNode.parentNode;f.type="text/javascript";f.src=a;b&&(f.onload=b);d&&(f.setAttribute("defer",""),f.setAttribute("async",""));e.isDef(c)&&c.appendChild(f)},f=function(a){e.isFunction(a)?a({iasImpId:r.asid}):a&&"string"===typeof a&&c(a,void 0,!0)},h=function(b,c,f,h){d(a.wrap(b,c,f,h))};l.on({addNode:b,send:c,exec:d,notify:f,jsonp:h});return{addNode:b,send:c,exec:d,notify:f,jsonp:h}},
s=function(){var k=w!=top,a=function(){var a;try{a=!!top.document}catch(b){a=!1}return a}(),b=function(){return e.isDef(p.getWindow().mraid)},c=function(){var a=p.getWindow().inmobi,c=a&&a.IASDocumentVideoBuffer,a=a&&c&&e.isFunction(c.addVideoEventListener);return b()&&!!a},d=function(){return e.isDef(p.getWindow().avid)};return{embedded:k,friendly:a,isFriendlyToParent:function(a){var b;try{b=a.frameElement}catch(c){b=!1}return b},friendlyIframe:k&&a,xDomainIframe:k&&!a,getTagTime:function(){return p.now()-
r.birthdate},getPageTime:function(){return e.isDef(w.chrome)&&e.isDef(w.chrome.csi)&&e.isFunction(w.chrome.csi)?p.round(chrome.csi().pageT):g.NA},isVideo:function(){var a;if(!(a=-1!==r.mode.indexOf("jsvid"))){var b;a=!1;if(d())try{b=p.getWindow().avid.getAvidAdSessionContext(),a=b.mediaType===g.MEDIA_TYPE.VIDEO}catch(q){}a=a||c()}return a},isMobileApp:function(){return e.isDef(w.mraid)},isSpecifiedAd:function(){var a=r._cl_adpath;return a&&e.isStr(a)},isAvid:d,isAvidNative:function(){var a;return d()?
(a=p.getWindow().avid.getAvidAdSessionContext().avidAdSessionType,a===g.AVID.AD_SESSION_TYPE.MANAGED_DISPLAY||a===g.AVID.AD_SESSION_TYPE.MANAGED_VIDEO):!1},isBustedIframe:function(){return void 0!==V()},isMraid:b,isSafeFrame:function(){return e(p.getWindow().$sf).isObj(!1)&&e(p.getWindow().$sf.ext).isObj(!1)},isInMobiMraidVideo:c,isDeviceTypeGroupMobile:function(){return r.mobOrTab}}}(),x={addEvent:function(k,a,b,c){e.isDef(k.addEventListener)?"mouseenter"===a?k.addEventListener("mouseover",x.mouseEnter(b),
c):"mouseleave"===a?k.addEventListener("mouseout",x.mouseEnter(b),c):k.addEventListener(a,b,c):e.isDef(k.attachEvent)&&("DOMContentLoaded"===a&&(a="load"),k.attachEvent("on"+a,b))},removeEvent:function(k,a,b){e.isDef(k.removeEventListener)?("mouseenter"===a?(a="mouseover",b=x.mouseEnter):"mouseleave"===a&&(a="mouseout",b=x.mouseEnter),k.removeEventListener(a,b)):e.isDef(k.detachEvent)&&k.detachEvent("on"+a,b)},mouseEnter:function(e){var a=this;return function(b){var c=b.relatedTarget;this===c||a.isAChildOf(this,
c)||e.call(this,b)}},isAChildOf:function(e,a){if(e===a)return!1;for(;a&&a!==e;)a=a.parentNode;return a===e},getStyle:function(e,a,b){var c="",d=z.defaultView&&z.defaultView.getComputedStyle;b=b||"";d?c=(e=z.defaultView.getComputedStyle(e,b))?e.getPropertyValue(a):c:e.currentStyle&&(a=a.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()}),c=e.currentStyle[a]);return c},getXHR2:function(k,a){var b,c;e.isDef(w.XMLHttpRequest)?(c=new XMLHttpRequest,"withCredentials"in c&&(b=c)):e.isDef(XDomainRequest)&&
(b=new XDomainRequest);return b},whenReady:function(k,a){var b=a||(s.xDomainIframe?z:p.getTop().document),c=function(a){var c=setInterval(function(){b.body&&(clearInterval(c),a())},50)},d=this;(function(a){var h=function(){a(!0)};e.isFunction(z.addEventListener)?"complete"==b.readyState||"loaded"==b.readyState||"interactive"==b.readyState?p.execAtEndOfThread(h):d.addEvent(b,"DOMContentLoaded",h,!1):c(a)})(k)},isSandboxed:function(e){var a,b=p.getWindow(),c=!1;if("sandbox"in p.getDoc().createElement("iframe")){try{a=
b.frameElement}catch(d){}if(a)e=a.hasAttribute("sandbox");else{a=!1;b=p.getDoc();if(e.browserIs(g.BROWSERS.CHROME))try{b.domain="hol@#3+~"}catch(f){/Assignment is forbidden for sandboxed iframes/.test(f.message)&&(a=!0)}e=a}c=e}return c},styleElement:function(k,a){if(k&&e(k.style).isObj()&&e(a).isObj()){var b="";e(a).each(function(a,d){b+=a+": "+d+" !important;"});k.style.cssText=b}},nodeIsAbsolutelyPositioned:function(e){return"absolute"===x.getStyle(e,"position")||e.style&&"absolute"===e.style.position}},
Q=function(k){var a,b=Q.callTypeCounter,c=[g.DT_CODES.ADTALK],d={UNLOAD:-1,ADTALK:-2,VIEWABILITY_READY:-3,VIDEO_EVENTS:-4,DIAGNOSTIC:-5,THIRD_PARTY:-6,QUARTILE_FULLY_INVIEW:-7,LARGE_BILLABLE:-8,AVIREEN:-9,SCA:-10},f=function(){var a={},b=g.DT_CODES;e("UNLOAD ADTALK VIEWABILITY_READY VIDEO_EVENTS DIAGNOSTIC THIRD_PARTY QUARTILE_FULLY_INVIEW LARGE_BILLABLE AVIREEN SCA".split(" ")).each(function(c,f){a[b[f]]=d[f]});return a};a=function(){var a=f()[k],d=b&&b[k];e.isDef(d)&&-1!==c.indexOf(k)&&0!==d&&(a=
a+"."+d);d=b[k];b[k]=e.isDef(d)?d+1:1;return a}();return{callType:k,enumerator:a}};Q.callTypeCounter={};var jb=function(k,a,b,c,d,f,h,q){var m=0,n=0,u=!1,t,y=function(a,f,q,k,t,y){q=q||!b.on("postDts");var F=a===g.DT_CODES.VH||a===g.DT_CODES.DIAGNOSTIC||a===g.DT_CODES.ADTALK||a===g.DT_CODES.SCA||a===g.DT_CODES.EXTERNAL;if(c.impressionIsIdentifiable()&&(F||"n"!==h.getCurrentLoc()))try{var s=r.dtBaseURL,v=new J(s,!0),w=p.now();l.trigger("preSendDt",a);s||(v.path("dt"),b.on("usedtdomain")&&v.sub("dt"));
C(v,a,f);t&&t.field&&v.setParam(t.field,t.value);k||I(v,a);l.trigger("send",v,function(){n+=1;m=p.now()-w;e.isFunction(y)&&y()},q);a===g.DT_CODES.UNLOAD&&(u=!0);d.cleanup()}catch(x){__IntegralASDiagnosticCall("dt-"+a,x),l.trigger("error",g.ERROR_CODES.PHONE_HOME)}};k=function(){u||y(g.DT_CODES.UNLOAD,-1,!0)};var F=function(a,c){var d={bapi:"a",bapiClient:"b",jload:"c",jss:"d",jsi:"e"},f=r.mode,d=d[a]||d[f];b.on(c||f+"Diag")&&d&&y(g.DT_CODES.DIAGNOSTIC,-5,!0,!0,{field:"bkp",value:d})},C=function(a,
b,f){var h=new Q(b);f=e.isDef(f)?f:h.enumerator;a.setParam("asId",r.asid);f={c:c.getCacheBustId(),pingTime:f,time:s.getTagTime(),type:b};d.filterOutput(function(a){var c=a.minDt&&(!a.type||a.type===b);c&&a.oneTime&&(a.flagForRemoval=!0);return c},f);a.setParam("tv",f)},I=function(c,e){var k,u={};d.filterOutput(function(a){return a.standalone&&!a.minDt&&a.type===e},function(a,b){c.setParam(a,b.replace("%3A",":"))});h.fastForward();if(e===g.DT_CODES.VIDEO_EVENTS||s.isVideo()&&e===g.DT_CODES.CUSTOM)if(k=
l.request("videoEventsString"))u.ve=k;if(e===g.DT_CODES.CUSTOM||e===g.DT_CODES.UNLOAD||e===g.DT_CODES.VIDEO_EVENTS)u.clog=q;e===g.DT_CODES.UNLOAD&&(u.ndt=n);-1!==r.mode.indexOf("jsvid")&&(u.vv=l.request("videoVersion"));u.NULL1=b.output();u.NULL2=h.stringify(10);u.em=s.embedded;u.fr=s.friendly;u.uf=t.useFlash()?1:0;u.e=a.toString();u.tt=r.mode;u.dtt=m;d.filterOutput(function(a){var b=!a.standalone&&!a.minDt&&(!a.type||a.type===e);b&&a.oneTime&&(a.flagForRemoval=!0);return b},u);c.setParam("tv",u);
c.setParam("br",f.getBrowserType())};l.on({sendDt:function(a,b,c){y(a,e.resolve(b),void 0,void 0,void 0,c)},sendMinDt:function(a,b){y(a,b,void 0,!0)},sendDiag:F,updateDtCount:function(){n++},unload:k});return{send:y,unload:k,diagnostic:F,setViewabilityMod:function(a){t=a}}},A=function(k){var a={},b=!1,c=function(){var a=1===k.nodeType?v.nodeIsHidden(k):0===k.width||0===k.height;return b?!1:a},d=function(){var b={};e(a).each(function(a,c){b[a]=p.round(c)});return b},f=function(){return p.round(a.width)*
p.round(a.height)};(function(){var b;k!==w.parent&&(1!==k.nodeType?a=k:e.isDef(k.getBoundingClientRect)&&(b=v.getRect(k),e(a).mixin({x:e.useIfDef(b.x)||b.scrX,y:e.useIfDef(b.y)||b.scrY,scrX:b.scrX,scrY:b.scrY,width:b.width,height:b.height})))})();return{hasValidDims:function(){var b,c=e(a).find(function(a,c){b=!0;return isNaN(c)});return e.isDef(b)&&e.isUndef(c)},toString:function(){var a=d();return[a.scrX,a.scrY,a.width,a.height].join(".")},getRounded:d,set:function(b,c){a[b]=c},isHidden:c,treatAsPlaceholder:function(){b=
!0},area:f,isMrcLarge:function(){return f()>=g.MRC_LARGE_AD_SIZE},isOneByOne:function(){return c()&&1>=f()}}},v={nodeIsHidden:function(e){var a=this.getRect(e),b=0!==parseInt(x.getStyle(e,"width"))&&0===a.width,a=0===a.width||0===a.height;e="hidden"===x.getStyle(e,"visibility");return b||a||e},calcWinDims:function(){var e,a,b;try{a=v.windowPosition(),b=v.windowSize(),e={scrX:p.round(a.scrX),scrY:p.round(a.scrY),width:p.round(b.width),height:p.round(b.height)}}catch(c){l.trigger("error",g.ERROR_CODES.GET_WIN_DIMENSIONS),
e={}}return e},windowSize:function(){var k={},a,b;if(s.friendly)if(a=top.document,b=a.documentElement,a=a.getElementsByTagName("body")[0],e.isDef(top.innerWidth))k.width=top.innerWidth,k.height=top.innerHeight;else if(e.isDef(b.clientWidth))k.width=b.clientWidth,k.height=b.clientHeight;else if(e.isDef(a.clientWidth))k.width=a.clientWidth,k.height=a.clientHeight;else throw k.width=k.height=0,"";else e.isDef(w.outerWidth)&&(k.width=w.outerWidth,k.height=w.outerHeight);return k},windowPosition:function(){var k=
0,a=0;e.isDef(w.screenX)?(k=w.screenX,a=w.screenY):e.isDef(w.screenLeft)&&(k=w.screenLeft,a=w.screenTop);return{scrX:k,scrY:a}},getNodeArea:function(e){var a=-1;e&&(e=v.getRect(e),a=e.width*e.height);return a},getRect:function(k){var a={},b=v.windowPosition();k=k.getBoundingClientRect();e.isUndef(k.x)&&(a.x=k.left,a.y=k.top);e.isUndef(k.width)&&(a.width=k.right-k.left,a.height=k.bottom-k.top);e(a).mixin(k,!0);a.scrX=b.scrX+a.x;a.scrY=b.scrY+a.y;return a},getIeDimObj:function(){return z.documentElement&&
e.isDef(z.documentElement.clientWidth)&&z.documentElement||z.body},getPlaceholderSpan:function(){var k=z.createElement("span");e(k.style).mixin({width:"0px",height:"0px",display:"block",overflow:"hidden",visibiility:"hidden"});k.innerHTML=".";return k},createImage:function(){var k=s.friendly&&p.getTop().Image;return e.isFunction(k)?new k:new Image},createHiddenIframe:function(e){var a=p.getDoc().createElement("iframe"),b={width:"0px",height:"0px",border:"0",position:"absolute",top:"-10000px",left:"-10000px"};
x.styleElement(a,e?{display:"none"}:b);return a},tagNameIs:function(e,a){return e.tagName.toUpperCase()===a.toUpperCase()},getClippedDimensions:function(e,a){var b,c,d,f=1E4,h=1E4;b=x.nodeIsAbsolutelyPositioned(e);d=!v.tagNameIs(e,"OBJECT");if(null!==e.parentNode&&!b&&d&&!v.tagNameIs(a,"BODY")){d=e;do d=d.parentNode,b=!v.tagNameIs(d,"OBJECT"),c="inline"!==x.getStyle(d,"display"),b&&c&&(b=v.getRect(d),f=b.widthm){g=void 0;if(g=n.parentNode===e)if(g=void 0,g="DIV"===n.nodeName)if(g=void 0,g=""===n.style.backgroundImage){var l=g=void 0,p=n.childNodes;for(g=0;ga.width&&c>a.height;return b*c>a.width*a.height&&d},getTagName:function(e){return e.tagName.toLowerCase()},getAttribute:function(e,a){return e.getAttribute(a)},
attributeMatches:function(e,a,b){e=e&&v.getAttribute(e,a);return b.test(e)},isImageTag:function(e){return e&&e.src&&v.tagNameIs(e,"img")},getDimensionFromStyle:function(k){var a,b=x.getStyle(k,"width");k=x.getStyle(k,"height");b&&k&&(a={width:e.getNum(b),height:e.getNum(k)});return a},getDimensionFromAttributes:function(k){var a,b=v.getAttribute(k,"width");k=v.getAttribute(k,"height");b&&k&&(a={width:e.getNum(b),height:e.getNum(k)});return a},traverseAndFindFirstMatchingNode:function a(b,c){var d,
f,e;if(c(b))f=b;else if(e=b.children)for(d=0;d100*p.random());return a[b]},c={rt:"rattie",cb:"cachebust",th:"tabHiddenDtCall",es:"everySecond",sa:"swapids",sc:"usesca",ha:"usehaps"},d={gm:"use100v",fif:"useFIF"},f=function(){var b,f;b=e(c).mapToObj(function(b,c){var d={};d[b]=a[c]?1:0;return d});f=e(d).mapToObj(function(a,b){var c={};c[a]=h(b)?1:0;return c});return e(b).mixin(f)},h=function(a){a=r[a];return!0===a||"true"===
a||e.isFunction(a)};e(c).each(function(a,c){b(c)});return{on:b,bootstrapOn:h,bootstrapperHas:function(a){a=e.isStr(a)?[a]:a;return e(a).map(function(a,b){if(e.isDef(r[b]))return 1}).length===a.length},getEnabledScriptUrl:function(a){var c=b("use"+a);a=r.sp_cdnScripts&&r.sp_cdnScripts[a];return c&&a},output:function(){return e(f()).toParams()}}},cb=function(a){var b=g.BROWSERS,c=l.request("intersectionWatcher");return{calcInitialViewState:function(d,f,e){var q={IN_VIEW:65,OUT_OF_VIEW:25,PARTIAL_VIEW:30},
m={IN_VIEW:75,OUT_OF_VIEW:25,PARTIAL_VIEW:50},n=g.NA,u=!s.xDomainIframe||c.isStarted()||a.browserIs(b.GECKO)||a.browserIs(b.IE);e=e?q:m;if(u||f)n=d===g.PIV_NA?g.NA:d>=e.IN_VIEW?g.IN_VIEW:d<=e.OUT_OF_VIEW?g.OUT_OF_VIEW:d>=e.PARTIAL_VIEW?g.PARTIAL_VIEW_PLUS:g.PARTIAL_VIEW_MINUS;return n},calcPercentInView:function(a,b,h,q){var m=0,n=a;c.isStarted()?m=c.getPiv():a.hasValidDims()&&!a.isHidden()&&(e([b,h,q]).each(function(a,b){if(b.hasValidDims()){var c=n.getRounded(),d=b.getRounded(),f=Math.max(c.scrX,
d.scrX),e=Math.max(c.scrY,d.scrY),h=Math.min(c.scrX+c.width,d.scrX+d.width),c=Math.min(c.scrY+c.height,d.scrY+d.height),h=h-f,c=c-e;n=A({scrX:f,scrY:e,width:0a.length;)c?
(b=new Uint32Array(1),w.crypto.getRandomValues(b),a+=b[0].toString(16)):a+=(16*p.random()|0).toString(16);a=a.slice(0,32)}catch(e){l.trigger("error",g.ERROR_CODES.UID_GENERATION)}return a}());var c=function(){return r.anId};return{getAsid:function(){return r.asid},getAnId:c,getCacheBustId:function(){var a=new Date,b=Date.parse("Jan 1 "+a.getFullYear()),a=a.getTime()-b;return e.toBase(a,62)},getFwId:function(){return c()||r.advEntityId+"-"+r.pubEntityId},impressionIsIdentifiable:function(a){a&&(b=
!0);return b},unq:a}},bb=function(a){var b,c,d=l.request("features"),f=function(){var f,h,m,y,r=p.getMaxNumber();f=p.getMaxNumber();h=p.getWindow();p.getDoc();s.friendly?(f=q(),m=f.left,y=f.top,r=f.width,f=f.height,h=v.windowPosition(),m=h.scrX+m,y=h.scrY+y):d.on("rattie")&&a.browserIs(g.BROWSERS.IE)?(c=c||l.request("ieXDomainViewability"),b=c.determineFramePosition(),m=b.scrX,y=b.scrY):e.isDef(h.mozInnerScreenX)&&(m=p.round(h.mozInnerScreenX),y=p.round(h.mozInnerScreenY));return{scrX:m,scrY:y,iFrameClippingWidth:r,
iFrameClippingHeight:f}},h=function(){var a,b,c=v.getIeDimObj(),d=p.getWindow();e.isDef(d.innerWidth)?(a=d.innerWidth,b=d.innerHeight):c&&e.isDef(c.clientWidth)?(a=c.clientWidth,b=c.clientHeight,0===a&&0")),f;if(f=e.isDef(d)){var h=b.getWindow();f=!1;e.isDef(h.navigator)&&e.isDef(h.navigator.userAgent)&&(h=h.navigator.userAgent.match(/Firefox\/([\.0-9]+)/),null!==h&&2==h.length&&(h=h[1].split("."),3==parseInt(h[0],10)&&6>=parseInt(h[1],10)&&(3==h.length?13>=parseInt(h[2],10)&&(f=!0):f=!0)))}f&&(a.g=d)}return a},q={};try{q.a=
encodeURIComponent(top.location.href)}catch(m){}try{q.b=encodeURIComponent(parent.location.href)}catch(g){}if(s.embedded){try{q.c=encodeURIComponent(parent.document.referrer)}catch(u){}try{q.e=encodeURIComponent(w.document.referrer)}catch(t){}}try{"jsi"!==r.mode&&(q.d=encodeURIComponent(w.location.href))}catch(l){}try{q.f=encodeURIComponent(r.jsref)}catch(p){}try{f=h(),q.g=encodeURIComponent(f.g||""),q.q=encodeURIComponent(f.q||""),a.isStarted()&&!f.g&&1b.val.length?1:a.val.length=a?90:122)>=(a=a.charCodeAt(0)+13)?a:a-26)})},stringToFn:function(a){var b,c=w,d=a.split(".");for(a=0;ab&&c("ha1",a);b++};(function(){var b,e;s.embedded&&p.execAtEndOfThread(function(){try{e=r.contextNode.parentNode;var q=b=Zb().getDFPValue(e),m={};m.df=q.type;q.size&&(m.sz=q.size.width+"."+q.size.height);q.tag&&(m.dom=q.tag);c("dfp",m);b.size&&a&&(a.events.on("newState",d),a.start())}catch(n){l.trigger("error",g.ERROR_CODES.HIDDEN)}})})()},{tier:g.TIERS.PRE_IMPRESSION_FRAUD,applies:function(a,b,c){return a.on("usehaps")}});var Sa=function(a){var b,c,d,f=new X,h=new M,
q=new ac(f),m=new bc,g=new cc,u=new dc(f,a),t=function(){e.isUndef(d)&&(d=new ec(f));return d},p=function(){f.provide({frameCollection:function(){return q},adProxy:function(){return g},adTalkMessage:function(a){return new fc(a,f)},adTalkMessageCollection:function(){return m},idMapModule:t,interFrameQuerySelector:function(a){return new gc(a)}})};return{isApplicable:function(a){return e.isDef(w.JSON)&&e.isDef(w.postMessage)&&!a.isAvid()},start:function(){p();h.traverse(q.addFrame);u.startListening();
u.sendToKnownFrames();l.once("stopAdTalk",function(){u.stopListening()})},sendAdTalkCall:u.sendAdTalkCall,getFrameMap:function(){e.isUndef(b)&&(b=new la(f));return b},getFrameMapIncludingPeerCase:function(){e.isUndef(c)&&(c=new la(f,!0));return c},getIdMap:t}},fc=function(a,b){var c,d=b.request("adProxy").myIdCard,f=b.request("frameCollection").getMe().getStringifiedPosition();c=l.request("features").on("swapids")?r.oid:r.asid;var e=a||{},q=r.asid,d=d.tagId,m=s.embedded,n=s.friendly,u=r.birthdate;
c=c.split("-")[2];var t;s.friendly?t="["+g.AD_IDENTIFIER+"-"+r.asid+"]":(t=p.getWindow(),t=t.location&&t.location.href,t='iframe[src*="'+(t&&t.replace(/^https?\:\/\//i,""))+'"]');return{messageContent:e,srcAsid:q,srcTagId:d,srcIsEmbedded:m,srcIsFriendly:n,srcBirthdate:u,iasCommonId:c,nodeSelector:t,positionStr:f,version:"0.1"}},bc=function(){var a={};return{add:function(b,c){var d=b&&b.srcAsid;d&&!a[d]&&(a[d]=b,d!==r.asid&&e.isFunction(c)&&c(b))},map:function(b){return e(a).map(b)},has:function(b){return a[b]}}},
hc=function(a,b,c,d){var f,h=a==w;f={position:b.slice(0),id:b.join("-"),isMe:h,isLeaf:!a.frames.length,adProxies:h?c:[],selfDescription:void 0,unifiedId:r.birthdate,srcIsEmbedded:d?d.srcIsEmbedded:void 0,inbox:d?[d]:[],getDomObj:function(){return a},getStringifiedPosition:function(){return e(f.position).map(function(a,b){return e.toBase(Number(b)+1,36)}).join("")},isValidForMapping:function(){return f.isLeaf||f.isMe||e.isDef(f.selfDescription)}};var q=function(a){var b=f.adProxies;a=a.adProxies;var c=
[];b.length&&a.length?e(a).each(function(a,d){m(b,d)&&c.push(d)}):c=a;f.adProxies=b.concat(c)},m=function(a,b){return!e(a).find(function(a,c){return c.adSafeId&&c.adSafeId===b.adSafeId})},g=function(a){e(f.inbox).find(function(b,c){return c.srcAsid&&c.srcAsid===a.srcAsid})||f.inbox.push(a)};f.addInformationFromSrc=function(a,b){q(b);g(a);f.srcIsEmbedded=a.srcIsEmbedded;f.selfDescription=b};return f},ac=function(a){var b=[],c={},d={noMe:!0};return{addFrame:function(f,e,q){var m=a.request("adProxy").getAll();
f=new hc(f,e,m,q);b.push(f);c[f.id]=f;f.isMe&&(d=f);return f},getFrame:function(a){return c[a]},list:b,dictionary:c,getMe:function(){return d}}},la=function(a,b){var c=function(a,c){var e=c.adProxies,m="";if(c.isValidForMapping()){if(b)m+=d(e,c.getStringifiedPosition());else{var g;g=""+c.getStringifiedPosition();g+=c.isMe?"*":"";g+=e.length?"."+e[0].tagId:"";m+=g}return m}},d=function(a,b){var c="";return c=a.length?c+e(a).stringify(function(a,c){return b+(r.asid===c.adSafeId?"*":"")+"."+c.tagId},
"|"):c+b};return{output:function(){var b=a.request("frameCollection"),d=e(b.list).stringify(c,"|");return e.toBase(b.getMe().unifiedId,62)+"+"+d}}},ec=function(a){var b=a.request("frameCollection").getMe().getStringifiedPosition(),c=r.contextNode.parentNode,d=a.request("interFrameQuerySelector",c),f=function(a){var b=a.length;return 120b.unifiedId&&(a.unifiedId=b.unifiedId)},m=function(a){return p.now()-a.sentTime},n=function(){var c=g.DT_CODES.ADTALK;a.request("frameCollection");b||(b=!0);l.trigger("sendDt",c)},u=function(a){return e.isUndef(a)||e.isUndef(a.selfDescription)},t=function(c,d,f){var e=!1,h,
t,p,r;try{h=a.request("frameCollection"),t=d.messageContent.self,q(h.getMe(),t),d.transferDuration=m(d),p=h.getFrame(t.id),a.request("adTalkMessageCollection").add(d,function(){e=!0}),u(p)||e?(p=p||h.addFrame(c.source,t.id.split("-"),d),p.addInformationFromSrc(d,t),f()):p.addInformationFromSrc(d,t),(r=b&&e&&a.request("idMapModule").isCandidateForMyIdMap(d))&&n()}catch(s){l.trigger("error",g.ERROR_CODES.ADTALK_DUBIOUS)}};return{sendAdTalkCall:n,sendToKnownFrames:function(){(new ia).send(h)},startListening:function(){c=
new ha;c.listen(f,t,h)},stopListening:function(){c&&c.stop()},validateMessage:f,processMessage:t,createMessage:h}},ic=function(){var a=l.request("ids"),b=a.getAsid();return{tagId:a.getFwId(),adSafeId:b}},cc=function(){var a,b=[],c=function(a){a=new ic(a);b.push(a);return a};a=c();return{createNew:c,getAll:function(){return b},myIdCard:a}},ab=function(a){var b,c,d=!1,f=p.getDoc().documentElement,e=function(a){var f=!0;d&&(d=!1,a.stopPropagation(),a.preventDefault(),b=a.screenX-a.clientX,c=a.screenY-
a.clientY,f=!1);return f};a.browserIs(g.BROWSERS.IE)&&x.addEvent(f,"click",e,!0);return{determineFramePosition:function(){a.browserIs(g.BROWSERS.IE)&&(d=!0,f.click());return{scrX:b,scrY:c}}}},$a=function(a){var b=g.NA,c=!1,d=function(a){if(!e.isUndef(a)){var b=p.getDoc().createElement("div");e(b.style).mixin({position:"absolute",width:"100%",opacity:"0",height:"100%",zIndex:-999,top:"0px",left:"0px"});b[g.IAS_DETECTOR]=!0;a.appendChild(b);return b}};return{getPiv:function(){return b},isApplicable:function(a,
b,c){return a.browserIs(g.BROWSERS.CHROME)&&a.hasIntersectionObserver()&&c.xDomainIframe&&b.on("chromeNativeIO")},start:function(){var f=p.getIntersectionObserver(function(a){a=a.pop();b=a.intersectionRect.width*a.intersectionRect.height/(a.boundingClientRect.width*a.boundingClientRect.height)*100},{threshold:[0,0.01,0.25,0.3,0.5,0.75,0.99,1]});p.execAtEndOfThread(function(){b=0});f.observe(d(a));p.execAtEndOfThread(function(){l.trigger("delayedViewabilityReady")});c=!0},isStarted:function(){return c}}},
ea=function(){var a=!1;(function(){x.whenReady(function(){l.trigger("startViewabilityLoop");a=!0})})();return{loopStarted:function(){return a}}};H("loopDelay",[],ea,{applies:function(a,b,c){return a.bootstrapOn("allowViewability")},tier:g.TIERS.VIEWABILITY});var jc=function(){return{start:function(a){l.on("measurable",function(){a()})},isApplicable:function(a,b){return!b.browserIs(g.BROWSERS.WEBKIT)}}},kc=function(){return{start:function(a){a()},isApplicable:function(a){return a.isImmediatelyMeasurable()}}},
Bb=function(a,b,c){var d=!1,f=function(){b.impressionIsIdentifiable()&&!d&&(d=!0,l.trigger("notify",r._onMeasurable))};return{start:function(){var b;b=[lc(),mc(),kc(),jc()];(b=e(b).findFirst(function(b,d){return d.isApplicable(c,a)}))&&b.start(f)},isApplicable:function(a){return a.bootstrapOn("useViewabilityNotification")&&e.isDef(r._onMeasurable)}}},mc=function(){return{start:function(a){Vb(l,["adImpression","measurable"]).onAll(function(){a()})},isApplicable:function(a,b){return!b.browserIs(g.BROWSERS.WEBKIT)&&
s.isVideo()}}},lc=function(){return{start:function(a){l.on("adImpression",function(){a()})},isApplicable:function(a){return a.isImmediatelyMeasurable()&&s.isVideo()}}},Aa=function(a,b,c){var d=["rjss","jss","jload"],f=function(){var a=!1,c=b.getAvidContext();e.isDef(c)&&(a=c.isDeferred);return!a};return{accepts:function(){var a=e.isDef(e(d).find(function(a,b){return b===c}));return b.accepts()&&b.isMediaType(g.MEDIA_TYPE.DISPLAY)&&a},isImmediate:f,isMediaType:b.isMediaType,start:function(){try{var b=
a.avid;f()||b.addEventListener("ready",function(){l.trigger("adImpression")})}catch(c){}}}},za=function(a){var b=function(){var b;try{b=a.avid.getAvidAdSessionContext()}catch(d){}return b};return{accepts:function(){var b=e.isDef(a.avid),d=b;b&&(b=a.avid.getAvidAdSessionContext().partner,(b=e.isDef(b)&&"mopub"===b.toLowerCase())||(b=a.avid.getAvidAdSessionContext(),b=!e.isDef(b.partner)));b&&(d="jload"===r.mode)&&(d=(d=l.request("ids").getAnId())&&"8260"===d);return d},isMediaType:function(a){var d,
f=b();e.isDef(f)&&(d=f.mediaType||g.MEDIA_TYPE.DISPLAY);return a===d},getAvidContext:b,supportsAdContainerGeometry:function(){var a=!1,d=b();e.isDef(d)&&(a=d.avidJsVersion,(d=e.isUndef(a))||(d=e.getNum(a.split(".")[0]),a=e.getNum(a.split(".")[1]),d=2===d?7<=a:3<=d),a=d);return a}}},ya=function(a,b){var c,d=function(a){var d,e,g;try{d=a.eventData.percentageInView,e=c&&75<=d,g={windowDimensions:{x:0,y:0,width:0,height:0},adDimensions:{x:0,y:0,width:0,height:0},containerDimensions:{x:0,y:0,width:0,height:0},
shouldDelegateToDomBasedViewability:e,isMeasurable:0===d||75<=d,isObstructed:!1,isHidden:!1,numberOfAdverts:1,percentageInView:d,detectionMethod:"av"},b.trigger("screenLocationChanged",g)}catch(n){}};return{start:function(){try{var b=a.avid,e=b.getAvidAdSessionContext().avidAdSessionType;c="display"===e||"video"===e;b.addEventListener("viewability",d)}catch(g){}},addScreenLocationChangedListener:function(a){b.on("screenLocationChanged",a)}}},Ca=function(a,b,c){var d=["rjss","jss","jload"];return{accepts:function(){var a=
e.isDef(e(d).find(function(a,b){return b===c}));return b.accepts()&&b.isMediaType(g.MEDIA_TYPE.VIDEO)&&a},isImmediate:function(){return!1},isMediaType:b.isMediaType,start:function(){try{a.avid.addEventListener("video",function(a){"AdImpression"===a.eventSubType&&l.trigger("adImpression")})}catch(b){}}}},Ba=function(a,b){var c=function(a){try{b.trigger("videoPlaybackEvent",{eventType:a.eventSubType,eventData:a.eventData})}catch(c){}};return{start:function(){try{a.avid.addEventListener("video",c)}catch(b){}},
addVideoPlaybackEventListener:function(a){b.on("videoPlaybackEvent",a)}}},Z=function(a,b){var c=!1,d=function(a){var d=a.percentageInView;c=!0;a.viewState=50<=d?g.IN_VIEW:g.OUT_OF_VIEW;a.outOfViewReason=50<=d?"":g.OUT_OF_VIEW_REASONS.GEOM;b.trigger("measurementChanged",a)};return{start:function(){l.trigger("addOutputItem",{output:g.MEDIA_TYPE.DISPLAY_CODE},g.MEDIA_TYPE_CODE,{type:g.IMPRESSION_EVENT});a.addScreenLocationChangedListener(d);a.start()},getStrategyName:function(){return g.MEASUREMENT_STRATEGY.DISPLAY},
addMeasurementChangedListener:function(a){b.on("measurementChanged",a)},isMeasurable:function(){return c}}},Pa=function(a,b,c){var d=e.isDef(a)?a.environment:void 0,f=e.isDef(a)?a.measurementStrategy:void 0,h=function(){return e.isDef(f)};e.isDef(b)&&b.start();return{hasMeasurementStrategy:h,getScreenLocationInfo:function(a){return b.create(a)},isImmediate:function(){return h()?d.isImmediate():!0},isMeasurable:function(){return h()?f.isMeasurable():!1},isMediaType:function(a){return h()?d.isMediaType(a):
!1},start:function(){h()&&d.start()},requiresDelayedViewabilityEvent:function(){h()&&b.requiresDelayedViewabilityEvent()}}},ba=function(a){return{resolve:function(){var b=e(a).findFirst(function(a,b){return b.environment.accepts()});if(e.isDef(b))return b}}},Oa=function(a,b){var c=!1,d,f={winDimensions:A({scrX:0,scrY:0,width:0,height:0}),adDimensions:A({scrX:0,scrY:0,width:0,height:0}),containerDimensions:A({scrX:0,scrY:0,width:0,height:0}),method:g.NA,viewState:g.NA,percentInView:g.NA,reason:"",
obstructed:g.NA,isHidden:g.NA,tabHidden:g.NA,posViewState:g.NA,adCompCount:1},h=function(a){return a?new A({scrX:a.x,scrY:a.y,width:a.width,height:a.height}):A({scrX:0,scrY:0,width:0,height:0})},q=function(a){d={winDimensions:h(a.windowDimensions),adDimensions:h(a.adDimensions),containerDimensions:h(a.containerDimensions),method:a.detectionMethod||g.NA,viewState:a.viewState||g.NA,percentInView:e.isDef(a.percentageInView)?a.percentageInView:g.NA,reason:a.outOfViewReason||"",obstructed:e.stringifyTriState(a.isObstructed),
isHidden:g.NA,tabHidden:g.NA,posViewState:a.viewState||g.NA,adCompCount:1,shouldDelegateToDomBasedViewability:a.shouldDelegateToDomBasedViewability};a.isMeasurable&&c&&(c=!1,l.trigger("delayedViewabilityReady"))};return{create:function(a){var c=f;if(e.isDef(d))if(b)c=d;else if(d.shouldDelegateToDomBasedViewability)c=a,c.method=d.method;else if(0===d.percentInView||75<=d.percentInView)c=d;return c},start:function(){var b;e.isDef(a)&&e.isDef(a.measurementStrategy)&&(b=a.measurementStrategy,b.addMeasurementChangedListener(q),
b.start())},requiresDelayedViewabilityEvent:function(){c=!0}}},$=function(a,b,c){var d=!1,f=!1,h=!1,q,m,n,u,t=function(){if(!e.isUndef(m)){var a=[],b,l;d?(f?(l=!1,b=100):(l=u,b=n),50>b&&a.push(g.OUT_OF_VIEW_REASONS.GEOM)):(l=!1,b=0,a.push(g.OUT_OF_VIEW_REASONS.VIDEO));h=!0;m.shouldDelegateToDomBasedViewability=l;m.percentageInView=b;m.viewState=50>b?g.OUT_OF_VIEW:g.IN_VIEW;m.outOfViewReason=a.join(".");q=m;c.trigger("measurementChanged",q)}},p=function(a){m=a;n=a.percentageInView;u=a.shouldDelegateToDomBasedViewability;
t()},r=function(a){a=a.eventType;"AdEnteredFullscreen"===a?f=!0:"AdExitedFullscreen"===a?f=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(a)?d=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped".indexOf(a)&&(d=!1);t()};return{start:function(){l.trigger("addOutputItem",{output:g.MEDIA_TYPE.VIDEO_CODE},g.MEDIA_TYPE_CODE,{type:g.IMPRESSION_EVENT});a.addScreenLocationChangedListener(p);a.start();b.addVideoPlaybackEventListener(r);b.start()},getStrategyName:function(){return g.MEASUREMENT_STRATEGY.VIDEO},
addMeasurementChangedListener:function(a){c.on("measurementChanged",a)},isMeasurable:function(){return h}}},Ea=function(a,b){return{accepts:function(){return b.isInMobiMraidVideo()},isImmediate:function(){return!1},start:function(){try{var b;a.inmobi.IASDocumentVideoBuffer.addVideoEventListener(function(a){"AdVideoStart"!==a.type||b||(b=!0,l.trigger("adImpression"))})}catch(d){}}}},Da=function(a,b){var c=function(a){try{b.trigger("inMobiMraidVideoPlaybackEvent",{eventType:a.type})}catch(c){}};return{start:function(){try{a.inmobi.IASDocumentVideoBuffer.addVideoEventListener(c)}catch(b){}},
addVideoPlaybackEventListener:function(a){b.on("inMobiMraidVideoPlaybackEvent",a)}}},Fa=function(a,b){var c=function(a){a={viewport:a.eventData.viewport||{width:0,height:0},originalAdContainer:a.eventData.originalAdContainer||{x:0,y:0,width:0,height:0},computedAdContainer:a.eventData.computedAdContainer||{x:0,y:0,width:0,height:0},percentageInView:a.eventData.percentageInView,detectionMethod:g.DETECTION_METHODS.AVID,outOfViewReason:d(a.eventData.reasons)};b.trigger("containerGeometryMeasurementChanged",
a)},d=function(a){var b={inactive:g.OUT_OF_VIEW_REASONS.FOCUS,viewport:g.OUT_OF_VIEW_REASONS.GEOM,clipped:g.OUT_OF_VIEW_REASONS.GEOM,obstructed:g.OUT_OF_VIEW_REASONS.OBSTRUCTION,backgrounded:g.OUT_OF_VIEW_REASONS.FOCUS,notFound:g.OUT_OF_VIEW_REASONS.HIDDEN},c=[];if(!a)return"";e(a).each(function(a,d){var e=b[d];e&&0>c.indexOf(c)&&c.push(e)});return c.join(".")};return{start:function(){try{a.avid.addEventListener("viewability",c)}catch(b){}},addAdContainerGeometryMeasurementChangedListener:function(a){b.on("containerGeometryMeasurementChanged",
a)},translateAvidOutOfViewReasons:d}},Ka=function(a){var b=function(a,b){var c=Math.max(a.x,b.x),d=Math.max(a.y,b.y),e=Math.min(a.x+a.width,b.x+b.width),f=Math.min(a.y+a.height,b.y+b.height),e=e-c,f=f-d;return{x:c,y:d,width:0=d&&l<=g)return!0});c=!r&&s>=c.piv;h&&(c=c&&b.isVideoPlaying);return c},metricId:a.id,minUnit:a.minunit?1E3*a.minunit:1E3}},sb=function(a,b,c){var d=b.isVideo()?"video":"display",f=b.isMobileApp()?"app":"web",h=b.isDeviceTypeGroupMobile()?"mobile":"desktop",q=e(a.customViewability).isArray()&&0a.percentInView;!d&&e?(h.updateFrequency(1E3),d=!0):d&&!e&&(h.updateFrequency(c.isVideo()?200:100),d=!1)},m=function(){var a=
new Q(g.DT_CODES.VIDEO_EVENTS);l.trigger("sendDt",a.callType,a.enumerator,function(){var a={id:r.videoId,msg:"unloadComplete",messageType:"misc"};p.getWindow().postMessage(JSON.stringify(a),"*")})};l.once("startViewabilityLoop",function(){if(l.request("ids").impressionIsIdentifiable()){h=Xb(a.checkScreenLoc,c.isVideo()?200:100);h.start(!0);if(b.on("viewabilityOptimization"))l.on("newScreenEvent",q);x.addEvent(w,"beforeunload",function(){l.trigger("adSessionComplete")},!1)}});l.once("adSessionComplete",
function(){c.isVideo()&&!c.isAvid()&&m();l.trigger("unload");h&&h.stop();a.cleanupPixelGrids();l.trigger("stopAdTalk")})},{tier:g.TIERS.VIEWABILITY});var oc=function(a,b,c,d,f){var h,q,m,n=p.getWindow(),u=p.getDoc(),t=g.AD_IDENTIFIER+"-"+r.asid,y;d=d||b.parentNode||b.parent;var F=function(){if(!h)if(m=m||nc(d,f),h=m.calcDims(b,d),c===g.DETECTION_METHODS.VIDEO&&s.embedded){var a=h,e=(new A(b)).getRounded();try{a.set("width",e.width),a.set("height",e.height)}catch(q){l.trigger("error",g.ERROR_CODES.VIDEO_IN_IFRAME_DIMS_CALC)}}else c===
g.DETECTION_METHODS.AD_PLACEHOLDER&&h.treatAsPlaceholder();return h},C=function(){var b,d,h,m;d=r.mobOrTab;e.isUndef(q)&&(b=!d&&(s.friendly||e.isDef(w.mozInnerScreenX))&&f.on("offscreen"),h=F(),d=new A(v.calcWinDims()),b=new A(b?v.calcMonDims():{}),m=c===g.DETECTION_METHODS.VIDEO&&s.embedded?l.request("iframe").getClippedDims():new A({}),q=a.calcPercentInView(h,d,b,m));return q},I=function(){return a.calcInitialViewState(C())},D=function(){return b===w?!1:F().isHidden()};(function(){var a=b===n?u.body:
b;y=s.friendlyIframe?n.frameElement:a;x.addEvent(a,"click",function(){l.trigger("adComponentClicked")});x.addEvent(a,"mouseover",function(){l.trigger("adComponentMousedOver")})})();return{mark:function(){v.setAttributeOf(y,t,"")},cleanup:function(){v.removeAttributeOf(y,t)},isNode:function(a){return b===a},isHidden:D,isObstructed:function(){return!1},getDims:F,getPercentInView:C,getLocationState:I,getOnPageViewability:function(){return D()?g.OUT_OF_VIEW:I()},getDetectionMethod:function(){return c},
getContainerDims:function(){return A(d)},refresh:function(){q=h=void 0;var a,c=b.parentNode;if(c){for(;b!==w&&c&&c!==z&&!a;)a=c===d,c=c.parentNode;a||(d=b.parentNode)}}}},pc=function(a,b){var c=[],d=function(){return c[0]&&c[0].getDetectionMethod()===g.DETECTION_METHODS.AD_PLACEHOLDER},f=function(e,f,h){var m=d()||0===c.length;e=oc(a,e,f,h,b);d()&&(h=c.shift(),h.cleanup());c.push(e);m&&e.mark();m&&f!==g.DETECTION_METHODS.AD_PLACEHOLDER&&l.trigger("primaryadfound",e)},h=function(){var a,b=!1,d=0,f=
0;e(c).each(function(c,e){var h;h=e.getDims();h.hasValidDims()&&(a=e.getPercentInView(),b=a!==g.NA,h=h.area(),d+=h,f+=a/100*h)});return{totalArea:d,totalInView:f,hasMeasurement:b}},q=function(){var a=h();return a.hasMeasurement?p.round(a.totalInView/a.totalArea*100):g.PIV_NA},m=function(){var c=h().totalArea>=g.MRC_LARGE_AD_SIZE&&b.on("largeAd")&&!s.isVideo();return a.calcInitialViewState(q(),!1,c)},n=function(a){var b=-1;e(c).each(function(c,d){d.isNode(a)&&(b=c)});return b},u=function(a){return function(){return c[0]&&
c[0][a]()}};l.on("adComponentAdded",function(a){e(a).each(function(a,b){-1===n(b)&&f(b,g.DETECTION_METHODS.MUTATION)})});l.on("adComponentRemoved",function(a){e(a).each(function(a,b){var d=n(b);-1a||""===a?b:a};return{send:function(n){try{var p,t=d.baseUrl;p=h.browserIs(g.BROWSERS.IE)?2E3:m(r.sp_imp_maxLength,2E3);var s=t,v=t.length,w,x,z=m(r.sp_imp_jsInfo_minLength,0),A="";try{w=
p-v-z,0=e&&d++;a=b;c++},100,f),q=
e.debounce(function(){v.contains(f.document,v.getOurNodeInTop())||x.removeEvent(f.document,"mousemove",m)},1E3,f),m=function(){b++;h();q()},n=function(){l.trigger("addOutputItem",{output:{tmm:function(){return b},tma:function(){return c},sma:function(){return d}}},{type:g.DT_CODES.UNLOAD})};return{start:function(){n();x.addEvent(f.document,"mousemove",m)},isApplicable:function(a){return a.on("mmsb")&&!a.bootstrapOn("mobOrTab")&&!s.xDomainIframe}}},Eb=function(){var a={},b=function(b,e){var g;b[e]=
function(b,d,e){e&&(a[e]={x:b,y:d},a.ul&&a.lsr&&(g=pa().getOffDesktopResult(a.ul,a.lsr),c(g)))}},c=function(a){try{l.trigger("addOutputItem",{output:a},"od")}catch(b){l.trigger("error",g.ERROR_CODES.OFF_DESKTOP)}};return{isApplicable:function(a,b){var c=a.on("oddet"),e=b.hasFlashEnabled(),l=b.getBrowserType()===g.BROWSERS.IE,n=b.isOnWin7(),p=b.isIEVersion(8);return!a.bootstrapOn("killFlash")&&c&&e&&l&&n&&!p&&!x.isSandboxed(b)},start:function(){try{Zc().setupPixels(b),setTimeout(function(){a.ul&&a.lsr||
c(pa().getOffDesktopResult())},1E4)}catch(d){l.trigger("error",g.ERROR_CODES.OFF_DESKTOP)}}}},pa=function(){var a=function(a){var c=g.NA;return a?{x:a.x-250,y:a.y-188}:{x:c,y:c}};return{getOffDesktopResult:function(b,c){b=a(b);c=a(c);return e({mc:[b.x,b.y,c.x,c.y].join("|")}).toION()}}},Zc=function(){var a="_postPosition_"+r.asid.replace(/-/g,""),b=function(b){var d=U("/PixelB.swf","cdn","name="+b+"&jsPostFn="+a,!0);b=$c[b];d.style.width=b.WIDTH+"px";d.style.height=b.HEIGHT+"px";d.style.position=
"fixed";d.style.top=b.TOP+"px";d.style.left=b.LEFT+"px";return d};return{setupPixels:function(c){var d=p.getDoc(),d=d.body||d.contentElement,e;e=p.getDoc().createElement("div");e.innerHTML='';e=e.firstChild;d.appendChild(e);d=e.contentWindow;d.document.open().close();e=d.document.body;var g=b("ul"),l=b("lsr");e.appendChild(g);e.appendChild(l);c(d,a)}}},Vc=function(a){return{hash:function(){for(var b=
0,c=a.length,d=[],f;b