var __IntegralASDiagnosticCall = function(){};
try {
var __IntegralASConfig = {
jsDoSplit : false,
cocaPuffsPath : "",
debug : "false",
killPhrases : "",
jsDiag:'false',
version:'17.4.102',
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:{xsca: "static.adsafeprotected.com/xsca.17.4.85.js", sca: "static.adsafeprotected.com/sca.17.4.72.js", main: "static.adsafeprotected.com/main.17.4.102.js"},
protocol:'https',
jsref : "https:\/\/www.techrepublic.com\/article\/openflow-sdn-protocol-flaw-affects-all-versions-could-lead-to-dos-attack\/?ftag=TRE684d531&bhid=22482896750630416374857688634747",
asid : "fcddbd3d-54ee-11e8-8d91-002590882ea0",
allowViewability : "true",
jsFeatures : "cocoapuffs,viewabilityready,consecutive,cachebust:0,forcecocoa:0,rattie,exch,recordalternate:0,usedtdomain,nextcocoa:100,bapiDiag,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:0,mmsb:0,bigmon:0,chromeNativeIO:100,oddet:0,ios:100,ancestor:100,avmm:100,avgrn:100,useScreenLocationInfoAdaptor:100,swapids:100,pIntervals:10,firewall_cdn_domain,forceid:0,usesca:40,usexsca:1,bustediframe:100,impFailSafe:100,yieldmo:100,displayCustomView:0,sfdetect,pmdetect:100,novidnodeerr:5,diagnosticCM:0,viewabilityOptimization:100,usehaps:100,customMetric:100,sizmek,celtra,groupmCM,avidPropertiesInImpression,abcAudit,useMraidGeometricMeasurement,mrcAudit:1",
adsafeDomain : "adsafeprotected.com:80",
minimizeCalls : "false",
adWidth : "300",
adHeight : "250",
forceAppend : "false",
sp_imp_maxLength: 8000,
sp_imp_jsInfo_minLength: 200,
_onInViewMRC15 : __IntegralASConfig && __IntegralASConfig.onInViewMRC15,
_onInViewMRC : __IntegralASConfig && __IntegralASConfig.onInViewMRC,
_onMeasurable : __IntegralASConfig && __IntegralASConfig.onMeasurable,
_onAPIResult : __IntegralASConfig && __IntegralASConfig.onAPIResult,
_onInViewFull : __IntegralASConfig && __IntegralASConfig.onInViewFull,
_onSuspicious : __IntegralASConfig && __IntegralASConfig.onSuspicious,
_onInViewMRC5 : __IntegralASConfig && __IntegralASConfig.onInViewMRC5,
reqquery : "",
mode : "rjss",
requrl : "",
dtBaseURL: "https:\/\/dt.adsafeprotected.com\/dt?advEntityId=156572",
adsafeSrc : "https:\/\/fw.adsafeprotected.com\/rfw\/bgd\/156572\/24527559\/xbbe\/creative\/adj?p=APEucNWrQ2fU5mS278vMoo5bznRtOYtbpE_y_XvfOQ_STkW8mO4a6RE&d=CjkAoCZ_4ImOQjcivan_-oouC7lgRtVekOa4qmyR21B_LlBgfLwbbZ3GF3wu-XfhbgooVeSu4bgkrJoS6QkAoCZ_4OIa2EitH9jAi2UNyyl02SplRCz0DPcUib4V7nMN_zEYj5Ojkq807klkS91deflczxagRADMURPANMcptMH2uOqhKqEA37-pk3zjT7i17stoOa1BPzY8hJiNE4njPxA_R4yaIJ_XccMDnVPeL0lImF2wAScg4TmGW28ydVRNgkZFKnU8UGxpe43r4cAc5OFzr4LwQ3N9ANGJXWiDvPSskdf19Svi0wfq7Dlj5_tiz2phj1jGyIFVaUydeCVhrV-xr8ouIruYr_1J_vRLYqDyiFo79IL2Tam1PVNR8rh9D8oX2csNB0tIsHPV4hvh19zT5LzeDDgMf9Un0e6EZZA5PMpxJhq42gb-oSU9nVGmq1ITOy7Plq04IzY9njyDfFi7g6p1UZV9LBkPi_dl7NzRxm7F0SZuNWOUmeN7zfZq5DfuRkMjZoNMdjTI9TmYqhvGVc8mgKb_XsUK4FXTEIWxYQHkRhVi43o6GhprEHc5QHkcw7P1X4Lh0LIBoarEzkQiaWNJNrj2BGmebRD2IUjf4wU_E-Ulh9P9Gz-kGIY8u1gbXvWt-dsmZsDQ-PC6R5qhj7-3XZHsj9eCqkjuHrDAaGVNsN2kpKl0f-a2i-xpU3NTk4G32cW3q4DHp0WJtH_Id6_u4e7wrlTIrgO_NKFJrZNxFaMqefnkR9dUjaM1uLjubk1ZC-R1LUGZ0DcErn75YdVGm3tOiTjNY3TyBIK9guDozkSHavSSY4DYQ16l-dtoAZoJfUeLCowWEMo635CNNDLwb_ENcuFbxbXXtuxCksyIzZDtNCBfDNVlAl-9NccK49HjdHg4Smi0xI4IbhQ4GKD5PCoYmp3K5GC619opVORYNp8S3-P_HEndgw9FibgKOUipfk3FB5XZRI1f1XvgrREgtWky8Cz2El6KjIJzh6C99uzN_40PKAX_HsnxAB4y8dQYfahE-007AcPBPZr1Kz_Mu7NgT1WiseROqEjb1an4hBzAYdFAnTQrXUPa11042JWkrlYJRfrn_7QDvmc1LJDpzbtfMrpH1wUvk_fYhKsALeR5pRxUoXFKCJrz_hEc53sdg8ZwjoMvD6ZGq-8N3WdXVqAURG3XHo_o8eqfHkm4vdhG8Hr0yR3b6meFZzSh4jt8uUi3jpkBQNI7UtguhUbAo9jKBxSjbSHDiGxKnA6OEhmGoc6HK6St8W8ED4YKeqjntasZm0Cc-GsS_P0F3TyWyknzDN8gVhykR2BIa6RW62QVGlWXb-V1UDkG38Zs9GZLSNrWjpZJR9HrQC-_Ab2maZKCzpvmntWM02p-qoACr54hI4qAbM7gdQWbWr_cOlkTKKmRrslsh0wuft2lOOBtLvy1RdZ5KxFadZO3tTLQ2q86OE9YnDAzZllXqQq64tK_hGh1MF3U7ACBCIMyHGxRG0wpna2p7sG8a0UwtMwIXm56ZZ8e78EmcICmcMx8uV9usX8AzXDeKgDxJDio4sittbxmFjMPHiqGOI3wJJDj-csL2mHSmdsdZlEbFhI_1wnoccHbHqKm-qWmKsivplvzlNM4HifRe3M9wRtCtLaDbyd4wFLzorsiQN_COidk8AGtuJwNNXoufVVwmtn71gyyMSfJMD0pGqAJQu-C0o_UZiga8_cy7ReF5zgumHr8psnkr4jxivLezN1GIE3RTEnfS7saFggAEhLkaGHPS6010eexZUaH0HMTv4ZgAQ",
tpiLookupURL:"",
getTpl: "false",
use100v: false,
useBapiCallback: "",
useViewabilityNotification: "",
scriptUrl : "https:\/\/fw.adsafeprotected.com\/rjss\/bgd\/156572\/24527559\/xbbe\/creative\/adj?p=APEucNWrQ2fU5mS278vMoo5bznRtOYtbpE_y_XvfOQ_STkW8mO4a6RE&d=CjkAoCZ_4ImOQjci",
accountForSadImps:'',
sendCookie:'true',
cookieBaseURL:'sc.iasds01.com\/dtc?advEntityId=156572&pubEnt=24527559',
fwMonitoring:'false',
doNothing: false,
mn: "app19ami",
mobOrTab: false,
mobFwUrl : "https://mobile.adsafeprotected.com/internal/blocking/app/initial/156572/24527559?redirectUrl=https%3A%2F%2Fbid.g.doubleclick.net%2Fxbbe%2Fcreative%2Fadj%3Fp%3DAPEucNWrQ2fU5mS278vMoo5bznRtOYtbpE_y_XvfOQ_STkW8mO4a6RE%26d%3DCjkAoCZ_4ImOQjcivan_-oouC7lgRtVekOa4qmyR21B_LlBgfLwbbZ3GF3wu-XfhbgooVeSu4bgkrJoS6QkAoCZ_4OIa2EitH9jAi2UNyyl02SplRCz0DPcUib4V7nMN_zEYj5Ojkq807klkS91deflczxagRADMURPANMcptMH2uOqhKqEA37-pk3zjT7i17stoOa1BPzY8hJiNE4njPxA_R4yaIJ_XccMDnVPeL0lImF2wAScg4TmGW28ydVRNgkZFKnU8UGxpe43r4cAc5OFzr4LwQ3N9ANGJXWiDvPSskdf19Svi0wfq7Dlj5_tiz2phj1jGyIFVaUydeCVhrV-xr8ouIruYr_1J_vRLYqDyiFo79IL2Tam1PVNR8rh9D8oX2csNB0tIsHPV4hvh19zT5LzeDDgMf9Un0e6EZZA5PMpxJhq42gb-oSU9nVGmq1ITOy7Plq04IzY9njyDfFi7g6p1UZV9LBkPi_dl7NzRxm7F0SZuNWOUmeN7zfZq5DfuRkMjZoNMdjTI9TmYqhvGVc8mgKb_XsUK4FXTEIWxYQHkRhVi43o6GhprEHc5QHkcw7P1X4Lh0LIBoarEzkQiaWNJNrj2BGmebRD2IUjf4wU_E-Ulh9P9Gz-kGIY8u1gbXvWt-dsmZsDQ-PC6R5qhj7-3XZHsj9eCqkjuHrDAaGVNsN2kpKl0f-a2i-xpU3NTk4G32cW3q4DHp0WJtH_Id6_u4e7wrlTIrgO_NKFJrZNxFaMqefnkR9dUjaM1uLjubk1ZC-R1LUGZ0DcErn75YdVGm3tOiTjNY3TyBIK9guDozkSHavSSY4DYQ16l-dtoAZoJfUeLCowWEMo635CNNDLwb_ENcuFbxbXXtuxCksyIzZDtNCBfDNVlAl-9NccK49HjdHg4Smi0xI4IbhQ4GKD5PCoYmp3K5GC619opVORYNp8S3-P_HEndgw9FibgKOUipfk3FB5XZRI1f1XvgrREgtWky8Cz2El6KjIJzh6C99uzN_40PKAX_HsnxAB4y8dQYfahE-007AcPBPZr1Kz_Mu7NgT1WiseROqEjb1an4hBzAYdFAnTQrXUPa11042JWkrlYJRfrn_7QDvmc1LJDpzbtfMrpH1wUvk_fYhKsALeR5pRxUoXFKCJrz_hEc53sdg8ZwjoMvD6ZGq-8N3WdXVqAURG3XHo_o8eqfHkm4vdhG8Hr0yR3b6meFZzSh4jt8uUi3jpkBQNI7UtguhUbAo9jKBxSjbSHDiGxKnA6OEhmGoc6HK6St8W8ED4YKeqjntasZm0Cc-GsS_P0F3TyWyknzDN8gVhykR2BIa6RW62QVGlWXb-V1UDkG38Zs9GZLSNrWjpZJR9HrQC-_Ab2maZKCzpvmntWM02p-qoACr54hI4qAbM7gdQWbWr_cOlkTKKmRrslsh0wuft2lOOBtLvy1RdZ5KxFadZO3tTLQ2q86OE9YnDAzZllXqQq64tK_hGh1MF3U7ACBCIMyHGxRG0wpna2p7sG8a0UwtMwIXm56ZZ8e78EmcICmcMx8uV9usX8AzXDeKgDxJDio4sittbxmFjMPHiqGOI3wJJDj-csL2mHSmdsdZlEbFhI_1wnoccHbHqKm-qWmKsivplvzlNM4HifRe3M9wRtCtLaDbyd4wFLzorsiQN_COidk8AGtuJwNNXoufVVwmtn71gyyMSfJMD0pGqAJQu-C0o_UZiga8_cy7ReF5zgumHr8psnkr4jxivLezN1GIE3RTEnfS7saFggAEhLkaGHPS6010eexZUaH0HMTv4ZgAQ",
anId : '',
advEntityId : '156572',
pubEntityId : '24527559',
videoId : '',
videoChannel : '',
customViewability: [],
serverSideAppDetection: []
};try {
__IntegralASConfig.birthdate = new Date().getTime();
__IntegralASConfig.perfBirth = (performance && typeof performance.now === 'function') ? performance.now() : null;
//copy/pasted the contents of the thirdpart OmidVerificationClient.js file here, remove and replace when a new version is received
;(function(omidGlobal, factory, exports) {
// CommonJS support
if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {
factory(omidGlobal, exports);
// If neither AMD nor CommonJS are used, export to a versioned name in the
// global context.
} else {
var exports = {};
factory(omidGlobal, exports);
function deepFreeze(object) {
for (var key in object) {
if (object.hasOwnProperty(key)) {
object[key] = deepFreeze(object[key]);
}
}
return Object.freeze(object);
}
// Inject and freeze the exported components of omid.
for (var key in exports) {
if (exports.hasOwnProperty(key)) {
if (!Object.getOwnPropertyDescriptor(omidGlobal, key)) {
Object.defineProperty(omidGlobal, key, {
get: function () {
return deepFreeze({'1.0.2-dev': exports[key]});
},
});
}
}
}
}
}(typeof global === 'undefined' ? this : global, function(omidGlobal, omidExports) {
'use strict';var $jscomp = $jscomp || {};
$jscomp.scope = {};
$jscomp.inherits = function(a, b) {
function c() {
}
c.prototype = b.prototype;
a.superClass_ = b.prototype;
a.prototype = new c;
a.prototype.constructor = a;
for (var d in b) {
if ("prototype" != d) {
if (Object.defineProperties) {
var e = Object.getOwnPropertyDescriptor(b, d);
e && Object.defineProperty(a, d, e);
} else {
a[d] = b[d];
}
}
}
};
$jscomp.ASSUME_ES5 = !1;
$jscomp.ASSUME_NO_NATIVE_MAP = !1;
$jscomp.ASSUME_NO_NATIVE_SET = !1;
$jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) {
a != Array.prototype && a != Object.prototype && (a[b] = c.value);
};
$jscomp.getGlobal = function(a) {
return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a;
};
$jscomp.global = $jscomp.getGlobal(this);
$jscomp.SYMBOL_PREFIX = "jscomp_symbol_";
$jscomp.initSymbol = function() {
$jscomp.initSymbol = function() {
};
$jscomp.global.Symbol || ($jscomp.global.Symbol = $jscomp.Symbol);
};
$jscomp.symbolCounter_ = 0;
$jscomp.Symbol = function(a) {
return $jscomp.SYMBOL_PREFIX + (a || "") + $jscomp.symbolCounter_++;
};
$jscomp.initSymbolIterator = function() {
$jscomp.initSymbol();
var a = $jscomp.global.Symbol.iterator;
a || (a = $jscomp.global.Symbol.iterator = $jscomp.global.Symbol("iterator"));
"function" != typeof Array.prototype[a] && $jscomp.defineProperty(Array.prototype, a, {configurable:!0, writable:!0, value:function() {
return $jscomp.arrayIterator(this);
}});
$jscomp.initSymbolIterator = function() {
};
};
$jscomp.arrayIterator = function(a) {
var b = 0;
return $jscomp.iteratorPrototype(function() {
return b < a.length ? {done:!1, value:a[b++]} : {done:!0};
});
};
$jscomp.iteratorPrototype = function(a) {
$jscomp.initSymbolIterator();
a = {next:a};
a[$jscomp.global.Symbol.iterator] = function() {
return this;
};
return a;
};
$jscomp.makeIterator = function(a) {
$jscomp.initSymbolIterator();
var b = a[Symbol.iterator];
return b ? b.call(a) : $jscomp.arrayIterator(a);
};
$jscomp.arrayFromIterator = function(a) {
for (var b, c = []; !(b = a.next()).done;) {
c.push(b.value);
}
return c;
};
$jscomp.arrayFromIterable = function(a) {
return a instanceof Array ? a : $jscomp.arrayFromIterator($jscomp.makeIterator(a));
};
var module$exports$omid$common$argsChecker = {assertTruthyString:function(a, b) {
if (!b) {
throw Error("Value for " + a + " is undefined, null or blank.");
}
if ("string" !== typeof b && !(b instanceof String)) {
throw Error("Value for " + a + " is not a string.");
}
if ("" === b.trim()) {
throw Error("Value for " + a + " is empty string.");
}
}, assertNotNullObject:function(a, b) {
if (null == b) {
throw Error("Value for " + a + " is undefined or null");
}
}, assertNumber:function(a, b) {
if (null == b) {
throw Error(a + " must not be null or undefined.");
}
if ("number" !== typeof b || isNaN(b)) {
throw Error("Value for " + a + " is not a number");
}
}, assertNumberBetween:function(a, b, c, d) {
(0,module$exports$omid$common$argsChecker.assertNumber)(a, b);
if (b < c || b > d) {
throw Error("Value for " + a + " is outside the range [" + c + "," + d + "]");
}
}, assertFunction:function(a, b) {
if (!b) {
throw Error(a + " must not be truthy.");
}
}, assertPositiveNumber:function(a, b) {
(0,module$exports$omid$common$argsChecker.assertNumber)(a, b);
if (0 > b) {
throw Error(a + " must be a positive number.");
}
}};
var module$contents$omid$common$InternalMessage_GUID_KEY = "omid_message_guid", module$contents$omid$common$InternalMessage_METHOD_KEY = "omid_message_method", module$contents$omid$common$InternalMessage_VERSION_KEY = "omid_message_version", module$contents$omid$common$InternalMessage_ARGS_KEY = "omid_message_args", module$exports$omid$common$InternalMessage = function(a, b, c, d) {
this.guid = a;
this.method = b;
this.version = c;
this.args = d;
};
module$exports$omid$common$InternalMessage.isValidSerializedMessage = function(a) {
return !!a && void 0 !== a[module$contents$omid$common$InternalMessage_GUID_KEY] && void 0 !== a[module$contents$omid$common$InternalMessage_METHOD_KEY] && void 0 !== a[module$contents$omid$common$InternalMessage_VERSION_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_GUID_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_METHOD_KEY] && "string" === typeof a[module$contents$omid$common$InternalMessage_VERSION_KEY] && (void 0 === a[module$contents$omid$common$InternalMessage_ARGS_KEY] ||
"string" === typeof a[module$contents$omid$common$InternalMessage_ARGS_KEY]);
};
module$exports$omid$common$InternalMessage.deserialize = function(a) {
return new module$exports$omid$common$InternalMessage(a[module$contents$omid$common$InternalMessage_GUID_KEY], a[module$contents$omid$common$InternalMessage_METHOD_KEY], a[module$contents$omid$common$InternalMessage_VERSION_KEY], a[module$contents$omid$common$InternalMessage_ARGS_KEY]);
};
module$exports$omid$common$InternalMessage.prototype.serialize = function() {
var a = {};
a = (a[module$contents$omid$common$InternalMessage_GUID_KEY] = this.guid, a[module$contents$omid$common$InternalMessage_METHOD_KEY] = this.method, a[module$contents$omid$common$InternalMessage_VERSION_KEY] = this.version, a);
void 0 !== this.args && (a[module$contents$omid$common$InternalMessage_ARGS_KEY] = this.args);
return a;
};
var module$exports$omid$common$Communication = function(a) {
this.to = a;
};
module$exports$omid$common$Communication.prototype.sendMessage = function(a, b) {
};
module$exports$omid$common$Communication.prototype.handleMessage = function(a, b) {
if (this.onMessage) {
this.onMessage(a, b);
}
};
module$exports$omid$common$Communication.prototype.generateGuid = function() {
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(a) {
var b = 16 * Math.random() | 0;
a = "y" === a ? (b & 3 | 8).toString(16) : b.toString(16);
return a;
});
};
module$exports$omid$common$Communication.prototype.serialize = function(a) {
return JSON.stringify(a);
};
module$exports$omid$common$Communication.prototype.deserialize = function(a) {
return JSON.parse(a);
};
var module$exports$omid$common$constants = {AdEventType:{IMPRESSION:"impression", STATE_CHANGE:"stateChange", GEOMETRY_CHANGE:"geometryChange", SESSION_START:"sessionStart", SESSION_ERROR:"sessionError", SESSION_FINISH:"sessionFinish", VIDEO:"video", LOADED:"loaded", START:"start", FIRST_QUARTILE:"firstQuartile", MIDPOINT:"midpoint", THIRD_QUARTILE:"thirdQuartile", COMPLETE:"complete", PAUSE:"pause", RESUME:"resume", BUFFER_START:"bufferStart", BUFFER_FINISH:"bufferFinish", SKIPPED:"skipped", VOLUME_CHANGE:"volumeChange",
PLAYER_STATE_CHANGE:"playerStateChange", AD_USER_INTERACTION:"adUserInteraction"}, VideoEventType:{LOADED:"loaded", START:"start", FIRST_QUARTILE:"firstQuartile", MIDPOINT:"midpoint", THIRD_QUARTILE:"thirdQuartile", COMPLETE:"complete", PAUSE:"pause", RESUME:"resume", BUFFER_START:"bufferStart", BUFFER_FINISH:"bufferFinish", SKIPPED:"skipped", VOLUME_CHANGE:"volumeChange", PLAYER_STATE_CHANGE:"playerStateChange", AD_USER_INTERACTION:"adUserInteraction"}, ErrorType:{GENERIC:"generic", VIDEO:"video"},
AdSessionType:{NATIVE:"native", HTML:"html"}, EventOwner:{NATIVE:"native", JAVASCRIPT:"javascript", NONE:"none"}, AppState:{BACKGROUNDED:"backgrounded", FOREGROUNDED:"foregrounded"}, Environment:{MOBILE:"app"}, InteractionType:{CLICK:"click", INVITATION_ACCEPT:"invitationAccept"}, MediaType:{DISPLAY:"display", VIDEO:"video"}, Reason:{NOT_FOUND:"notFound", HIDDEN:"hidden", BACKGROUNDED:"backgrounded", VIEWPORT:"viewport", OBSTRUCTED:"obstructed", CLIPPED:"clipped"}, SupportedFeatures:{CONTAINER:"clid",
VIDEO:"vlid"}, VideoPosition:{PREROLL:"preroll", MIDROLL:"midroll", POSTROLL:"postroll", STANDALONE:"standalone"}, VideoPlayerState:{MINIMIZED:"minimized", COLLAPSED:"collapsed", NORMAL:"normal", EXPANDED:"expanded", FULLSCREEN:"fullscreen"}, NativeViewKeys:{X:"x", Y:"y", WIDTH:"width", HEIGHT:"height", AD_SESSION_ID:"adSessionId", IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor", CLIPS_TO_BOUNDS:"clipsToBounds", CHILD_VIEWS:"childViews", END_X:"endX", END_Y:"endY", OBSTRUCTIONS:"obstructions"}};
var module$exports$omid$common$DetectOmid = {OMID_PRESENT_FRAME_NAME:"omid_v1_present", isOmidPresent:function(a) {
try {
return a.frames ? !!a.frames[module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME] : !1;
} catch (b) {
return !1;
}
}, declareOmidPresence:function(a) {
a.frames && a.document && (module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME in a.frames || (null == a.document.body && module$exports$omid$common$DetectOmid.isMutationObserverAvailable_(a) ? module$exports$omid$common$DetectOmid.registerMutationObserver_(a) : a.document.body ? module$exports$omid$common$DetectOmid.appendPresenceIframe_(a) : a.document.write('")));
}, appendPresenceIframe_:function(a) {
var b = a.document.createElement("iframe");
b.id = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME;
b.name = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME;
b.style.display = "none";
a.document.body.appendChild(b);
}, isMutationObserverAvailable_:function(a) {
return "MutationObserver" in a;
}, registerMutationObserver_:function(a) {
var b = new MutationObserver(function(c) {
c.forEach(function(c) {
"BODY" === c.addedNodes[0].nodeName && (module$exports$omid$common$DetectOmid.appendPresenceIframe_(a), b.disconnect());
});
});
b.observe(a.document.documentElement, {childList:!0});
}};
var module$exports$omid$common$DirectCommunication = function(a) {
module$exports$omid$common$Communication.call(this, a);
this.handleExportedMessage = module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage.bind(this);
};
$jscomp.inherits(module$exports$omid$common$DirectCommunication, module$exports$omid$common$Communication);
module$exports$omid$common$DirectCommunication.prototype.sendMessage = function(a, b) {
b = void 0 === b ? this.to : b;
if (!b) {
throw Error("Message destination must be defined at construction time or when sending the message.");
}
b.handleExportedMessage(a.serialize(), this);
};
module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage = function(a, b) {
module$exports$omid$common$InternalMessage.isValidSerializedMessage(a) && this.handleMessage(module$exports$omid$common$InternalMessage.deserialize(a), b);
};
var module$exports$omid$common$eventTypedefs = {};
var module$exports$omid$common$exporter = {};
function module$contents$omid$common$exporter_getOmidExports() {
return "undefined" === typeof omidExports ? null : omidExports;
}
function module$contents$omid$common$exporter_getOrCreateName(a, b) {
return a && (a[b] || (a[b] = {}));
}
module$exports$omid$common$exporter.packageExport = function(a, b, c) {
if (c = void 0 === c ? module$contents$omid$common$exporter_getOmidExports() : c) {
a = a.split("."), a.slice(0, a.length - 1).reduce(module$contents$omid$common$exporter_getOrCreateName, c)[a[a.length - 1]] = b;
}
};
var module$exports$omid$common$logger = {error:function(a) {
for (var b = [], c = 0; c < arguments.length; ++c) {
b[c - 0] = arguments[c];
}
module$contents$omid$common$logger_executeLog(function() {
throw new (Function.prototype.bind.apply(Error, [null].concat(["Could not complete the test successfully - "], $jscomp.arrayFromIterable(b))));
}, function() {
return console.error.apply(console, [].concat($jscomp.arrayFromIterable(b)));
});
}, debug:function(a) {
for (var b = [], c = 0; c < arguments.length; ++c) {
b[c - 0] = arguments[c];
}
module$contents$omid$common$logger_executeLog(function() {
}, function() {
return console.error.apply(console, [].concat($jscomp.arrayFromIterable(b)));
});
}};
function module$contents$omid$common$logger_executeLog(a, b) {
"undefined" !== typeof jasmine && jasmine ? a() : "undefined" !== typeof console && console && console.error && b();
}
;var module$exports$omid$common$OmidGlobalProvider = {}, module$contents$omid$common$OmidGlobalProvider_globalThis = eval("this");
function module$contents$omid$common$OmidGlobalProvider_getOmidGlobal() {
if ("undefined" !== typeof omidGlobal && omidGlobal) {
return omidGlobal;
}
if ("undefined" !== typeof global && global) {
return global;
}
if ("undefined" !== typeof window && window) {
return window;
}
if ("undefined" !== typeof module$contents$omid$common$OmidGlobalProvider_globalThis && module$contents$omid$common$OmidGlobalProvider_globalThis) {
return module$contents$omid$common$OmidGlobalProvider_globalThis;
}
throw Error("Could not determine global object context.");
}
module$exports$omid$common$OmidGlobalProvider.omidGlobal = module$contents$omid$common$OmidGlobalProvider_getOmidGlobal();
var module$exports$omid$common$PostMessageCommunication = function(a, b) {
b = void 0 === b ? module$exports$omid$common$OmidGlobalProvider.omidGlobal : b;
module$exports$omid$common$Communication.call(this, b);
var c = this;
a.addEventListener("message", function(a) {
if ("object" === typeof a.data) {
var b = a.data;
module$exports$omid$common$InternalMessage.isValidSerializedMessage(b) && (b = module$exports$omid$common$InternalMessage.deserialize(b), a.source && c.handleMessage(b, a.source));
}
});
};
$jscomp.inherits(module$exports$omid$common$PostMessageCommunication, module$exports$omid$common$Communication);
module$exports$omid$common$PostMessageCommunication.isCompatibleContext = function(a) {
return !!(a && a.addEventListener && a.postMessage);
};
module$exports$omid$common$PostMessageCommunication.prototype.sendMessage = function(a, b) {
b = void 0 === b ? this.to : b;
if (!b) {
throw Error("Message destination must be defined at construction time or when sending the message.");
}
b.postMessage(a.serialize(), "*");
};
var module$exports$omid$common$Rectangle = function(a, b, c, d) {
this.x = a;
this.y = b;
this.width = c;
this.height = d;
};
var module$exports$omid$common$serviceCommunication = {};
function module$contents$omid$common$serviceCommunication_getUnobfuscatedKey(a, b) {
return b.reduce(function(a, b) {
return a && a[b];
}, a);
}
module$exports$omid$common$serviceCommunication.startServiceCommunication = function(a, b, c) {
c = void 0 === c ? module$exports$omid$common$DetectOmid.isOmidPresent : c;
return (b = module$contents$omid$common$serviceCommunication_getUnobfuscatedKey(a, b)) ? new module$exports$omid$common$DirectCommunication(b) : a.top && c(a.top) ? new module$exports$omid$common$PostMessageCommunication(a, a.top) : null;
};
var module$exports$omid$common$VastProperties = function(a, b, c, d) {
this.isSkippable = a;
this.skipOffset = b;
this.isAutoPlay = c;
this.position = d;
};
var module$exports$omid$common$version = {Version:"1.0.1-dev"};
var module$contents$omid$verificationClient$VerificationClient_MESSAGE_VERSION = module$exports$omid$common$version.Version, module$contents$omid$verificationClient$VerificationClient_EventCallback, module$exports$omid$verificationClient$VerificationClient = function(a) {
if (this.communication = a = void 0 === a ? (0,module$exports$omid$common$serviceCommunication.startServiceCommunication)(module$exports$omid$common$OmidGlobalProvider.omidGlobal, ["omid", "v1_VerificationServiceCommunication"]) : a) {
this.communication.onMessage = this.handleMessage_.bind(this);
}
this.remoteIntervals_ = this.remoteTimeouts_ = 0;
this.callbackMap_ = {};
};
module$exports$omid$verificationClient$VerificationClient.prototype.isSupported = function() {
return !!this.communication;
};
module$exports$omid$verificationClient$VerificationClient.prototype.registerSessionObserver = function(a, b) {
(0,module$exports$omid$common$argsChecker.assertFunction)("functionToExecute", a);
this.sendMessage_("addSessionListener", a, b);
};
module$exports$omid$verificationClient$VerificationClient.prototype.addEventListener = function(a, b) {
(0,module$exports$omid$common$argsChecker.assertTruthyString)("eventType", a);
(0,module$exports$omid$common$argsChecker.assertFunction)("functionToExecute", b);
this.sendMessage_("addEventListener", b, a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendUrl = function(a, b, c) {
(0,module$exports$omid$common$argsChecker.assertTruthyString)("url", a);
this.sendMessage_("sendUrl", function(a) {
a && b ? b() : !a && c && c();
}, a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.injectJavaScriptResource = function(a, b, c) {
var d = this;
(0,module$exports$omid$common$argsChecker.assertTruthyString)("url", a);
module$exports$omid$common$OmidGlobalProvider.omidGlobal.document ? this.injectJavascriptResourceUrlInDom_(a, b, c) : this.sendMessage_("injectJavaScriptResource", function(e, f) {
e ? (d.evaluateJavaScript_(f, a), b()) : (module$exports$omid$common$logger.error("Service failed to load JavaScript resource."), c());
}, a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.injectJavascriptResourceUrlInDom_ = function(a, b, c) {
var d = module$exports$omid$common$OmidGlobalProvider.omidGlobal.document, e = d.body;
d = d.createElement("script");
d.onload = b;
d.onerror = c;
d.src = a;
d.type = "application/javascript";
e.appendChild(d);
};
module$exports$omid$verificationClient$VerificationClient.prototype.evaluateJavaScript_ = function(a, b) {
try {
eval(a);
} catch (c) {
module$exports$omid$common$logger.error('Error evaluating the JavaScript resource from "' + b + '".');
}
};
module$exports$omid$verificationClient$VerificationClient.prototype.setTimeout = function(a, b) {
(0,module$exports$omid$common$argsChecker.assertFunction)("functionToExecute", a);
(0,module$exports$omid$common$argsChecker.assertPositiveNumber)("timeInMillis", b);
if (this.hasTimeoutMethods_()) {
return module$exports$omid$common$OmidGlobalProvider.omidGlobal.setTimeout(a, b);
}
var c = this.remoteTimeouts_++;
this.sendMessage_("setTimeout", a, c, b);
return c;
};
module$exports$omid$verificationClient$VerificationClient.prototype.clearTimeout = function(a) {
(0,module$exports$omid$common$argsChecker.assertPositiveNumber)("timeoutId", a);
this.hasTimeoutMethods_() ? module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearTimeout(a) : this.sendOneWayMessage_("clearTimeout", a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.setInterval = function(a, b) {
(0,module$exports$omid$common$argsChecker.assertFunction)("functionToExecute", a);
(0,module$exports$omid$common$argsChecker.assertPositiveNumber)("timeInMillis", b);
if (this.hasIntervalMethods_()) {
return module$exports$omid$common$OmidGlobalProvider.omidGlobal.setInterval(a, b);
}
var c = this.remoteIntervals_++;
this.sendMessage_("setInterval", a, c, b);
return c;
};
module$exports$omid$verificationClient$VerificationClient.prototype.clearInterval = function(a) {
(0,module$exports$omid$common$argsChecker.assertPositiveNumber)("intervalId", a);
this.hasIntervalMethods_() ? module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearInterval(a) : this.sendOneWayMessage_("clearInterval", a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.hasTimeoutMethods_ = function() {
return "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.setTimeout && "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearTimeout;
};
module$exports$omid$verificationClient$VerificationClient.prototype.hasIntervalMethods_ = function() {
return "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.setInterval && "function" === typeof module$exports$omid$common$OmidGlobalProvider.omidGlobal.clearInterval;
};
module$exports$omid$verificationClient$VerificationClient.prototype.handleMessage_ = function(a, b) {
b = a.method;
var c = a.guid;
a = a.args;
if ("response" === b && this.callbackMap_[c]) {
var d = a ? JSON.parse(a) : [];
this.callbackMap_[c].apply(this, d);
}
"error" === b && window.console && module$exports$omid$common$logger.error(a);
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendOneWayMessage_ = function(a, b) {
for (var c = [], d = 1; d < arguments.length; ++d) {
c[d - 1] = arguments[d];
}
this.sendMessage_.apply(this, [].concat([a, null], $jscomp.arrayFromIterable(c)));
};
module$exports$omid$verificationClient$VerificationClient.prototype.sendMessage_ = function(a, b, c) {
for (var d = [], e = 2; e < arguments.length; ++e) {
d[e - 2] = arguments[e];
}
this.isSupported() && (e = this.communication.generateGuid(), b && (this.callbackMap_[e] = b), d = new module$exports$omid$common$InternalMessage(e, "VerificationService." + a, module$contents$omid$verificationClient$VerificationClient_MESSAGE_VERSION, JSON.stringify(d)), this.communication.sendMessage(d));
};
(0,module$exports$omid$common$exporter.packageExport)("OmidVerificationClient", module$exports$omid$verificationClient$VerificationClient);
}, typeof exports === 'undefined' ? undefined : exports));
} catch(e) {
__IntegralASDiagnosticCall('thirdparty', e);
}
__IASScope = typeof window !== "undefined" ? window : this;
__IASScope.isDomless = (typeof window === "undefined" ? true : false);
__IASOmidVerificationClient = { isSupported: function () { return false; } };
if (typeof __IASScope.OmidVerificationClient !== 'undefined') {
try {
__IASOmidVerificationClient = new __IASScope.OmidVerificationClient['1.0.2-dev'](); //try standard in-browser instantiation
}
catch(e) {
try {
__IASOmidVerificationClient = new __IASScope.OmidVerificationClient(); //try domless version which has no version
}
catch(e) {
}
}
}
if (__IntegralASConfig.jsFeatures.indexOf('asidJsDiagnostic') !== -1) {
var fakeErr = { message: __IntegralASConfig.asid };
__IntegralASDiagnosticCall('asid', fakeErr);
}
__IntegralASConfig.useFIF = (__IASScope && !!__IASScope.__IntegralASUseFIF) && __IntegralASConfig.mode === 'jload';
__IntegralASConfig.contextNode = (function() {
if (__IASScope.isDomless) {
return;
}
if (__IntegralASConfig.useFIF) {
return __IASScope.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;
}());
__IntegralASConfig.perf = (function() {
var _marks = {};
var START_CODE = 'A';
var END_CODE = 'Z';
function _addMark(codeName, time) {
// TODO: consider validation that codeName doesn't already exist and throwing in debug mode
// also that the code name is a string of the expected format
// and/or consider consolidating all PERF_MARK_ definitions into a global-to-our-closure constants file
// (except the ones in this file, since _init() wouldn't have access to that scope)
_marks[codeName] = time;
}
function mark(codeName) {
_addMark(codeName, Math.round(__IASScope.performance.now()));
}
function markStart(baseName) {
mark(baseName + START_CODE);
}
function markEnd(baseName) {
mark(baseName + END_CODE);
}
function markResource(baseName, url) {
var entry, entries;
entries = __IASScope.performance.getEntriesByName(url);
if (entries && entries.length) {
entry = entries[entries.length - 1];
if (entry.startTime > 0 && entry.responseEnd > 0) {
_addMark(baseName + START_CODE, Math.round(entry.startTime));
// TODO: if we address the CORS issues in FW, we can gather more details about the download process here
_addMark(baseName + END_CODE, Math.round(entry.responseEnd));
}
}
}
function getData() {
return _marks;
}
function noop() {}
function setNoops() {
_addMark = noop;
mark = noop;
markStart = noop;
markEnd = noop;
markResource = noop;
}
function isFunc(obj) {
return typeof obj === 'function';
}
function _init() {
var canUsePerformanceAPIs = false;
var PERF_MARK_BOOTSTRAPPER_EXECUTION = 'be';
var PERF_MARK_BOOTSTRAPPER_SCRIPT_DOWNLOAD = 'bd';
var PERF_MARK_MAIN_SCRIPT_DOWNLOAD = 'md'; // note: this code is intentionally the same as the one in globalConstants.js
var downloadMark;
try {
canUsePerformanceAPIs = __IASScope.performance &&
isFunc(__IASScope.performance.getEntriesByName) &&
isFunc(__IASScope.performance.now) &&
__IntegralASConfig.perfBirth !== null;
if (canUsePerformanceAPIs) {
downloadMark = __IntegralASConfig.jsDoSplit ? PERF_MARK_BOOTSTRAPPER_SCRIPT_DOWNLOAD : PERF_MARK_MAIN_SCRIPT_DOWNLOAD;
markResource(downloadMark, __IntegralASConfig.scriptUrl); // in split mode, this captures download time for the bootstrapper script, in bundled mode, the bundled/main script
_addMark(PERF_MARK_BOOTSTRAPPER_EXECUTION + START_CODE, Math.round(__IntegralASConfig.perfBirth)); // put the birthdate that we already captured into our list of marks
markEnd(PERF_MARK_BOOTSTRAPPER_EXECUTION); // roughly the end time of execution for the bootstrapper script in split mode, in bundled mode, end of the bootstrapper part of the script and start of the module definition part
} else {
setNoops();
}
} catch (err) {
// TODO: remove if we never get here?
setNoops();
if (isFunc(__IASScope.__IntegralASDiagnosticCall)) {
__IASScope.__IntegralASDiagnosticCall('perf', err, __IntegralASConfig);
}
}
}
_init();
return {
mark: mark,
markStart: markStart,
markEnd: markEnd,
markResource: markResource,
getData: getData
};
}());
} catch(err) {
__IntegralASConfig = {};
__IntegralASDiagnosticCall('bootstrapper', err);
}
__IntegralASConfig.initialize=function(n,C,K){function Ja(){var g;n.perf.markStart(fa);O.startSystem();l=O.getAggregator();l.provide({omidAdSessionContext:{}});g=__IASOmidVerificationClient;l.provide({omidVerificationClient:g});g=[{environment:new ga(g),adSessionReadyStrategy:new Ka(ha,g)},{environment:{accepts:function(){return!0}},adSessionReadyStrategy:{start:function(){ha()}}}];(new La(g)).resolve().adSessionReadyStrategy.start();n.perf.markEnd(fa)}function ha(){var g,a;n.perf.markStart(ia);a=
W.instantiateModules();g=W.preImpression(a.mDataTransfer,a.mViewability,a.mAdTalk,a.iOutput,a.mErrors,a.mAncestorOrigins,a.mBrowser,a.mPageUrls,a.mFeatures,u);W.sendImpression(a.mErrors,a.mFeatures,a.mIds,a.mMode,a.iOutput,a.mBrowser,a.mViewability,g,a.mVideo);W.postImpression(a.mBrowser,a.mIds,a.mViewability,a.mFeatures,a.mComm,a.mDataTransfer,a.mErrors,a.iOutput,a.loopDelay,a.mAdTalk,a.viewabilityMeasurement,a.mAncestorOrigins,u);n.perf.markEnd(ia)}var l,W=function(){function g(a){var b=new Ma(a,
u),c=new Na,r=new Oa(a,u),m=Pa(a,u),t=(new Qa(n,u,a)).resolve(),p=[b],g=[];m.applies()&&p.push(m);r.applies()&&p.push(r);c.applies(a,u)&&p.push(c);f(t).each(function(a,b){p.push(new Ra(b,u));g.push(b.id)});0g,d="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),e=[];g=c?-g:g;do b=g%a,e.push(d[b]),g=(g-b)/a;while(0<
g);e=e.reverse().join("");return c?"-"+e:e};f.isDef=function(g){return"undefined"!==typeof g};f.isUndef=function(g){return!f.isDef(g)};f.isBool=function(g){return"boolean"===typeof g};f.noop=function(){};f.identity=function(g){return g};f.isFunction=function(g){return"function"===typeof g};f.isStr=function(g){return"string"===typeof g};f.useIfDef=function(g){return f.isDef(g)?g:!1};f.stringifyTriState=function(g){return!0===g?1:!1===g?0:"na"};f.getNum=function(g){g=parseInt(g);isFinite(g)||(g=-1);
return g};f.resolve=function(g){var a=f(arguments).toArray();a.shift();return f.isFunction(g)?g.apply({},a):g};f.flatJSONParse=function(g){var a,b,c,d=/"(\w+)":(\d+|(?:"([^"]*)"))/g,e={};for(c=d.exec(g);c;)a=c[1],b=c[3],c=c[2],e[a]=b||+c,c=d.exec(g);return e};f.debounce=function(g,a,b){var c,d=b||C;return function(){var b=this,k=arguments;d.clearTimeout(c);c=d.setTimeout(function(){c=null;g.apply(b,k)},a)}};f.last=function(g){return g[g.length-1]};f.collapseArgsIntoHash=function(g,a){var b={};a?b[g]=
a:b=g;return b};f.fromBoolToNum=function(g){return g?1:0};f.isNumeric=function(g){return f.isDef(g)&&null!==g&&!isNaN(g)};var O=function(){var g,a={},b=[],c=[],d=function(){var a={},b=f(arguments).toArray();b.unshift(a);c.push(b);return a},e=function(c,d,e,t,p){p=p||{};var w,q,h=function(a){0===b.length&&(b=f(a).map(function(a,b){return g.request(b)}))},y=function(){if(!w){var a=[];w=!0;h(["features","browser","context"]);p.emits&&(c.events=new F);if(!p.applies||p.applies.apply(p,b))q=!0,a=f(e).map(function(a,
b){return g.request(b)},!0),a.push(c),f(c).mixin(t.apply({},a))}};(function(){var b=p.tier;f.isDef(b)&&(a[b]=a[b]||new $,a[b].push(y))})();g.provide(d,function(){var a;y();q&&(a=c);return a});return c};d.runAll=function(){var b=f(a).keys().sort(function(a,b){return a-b});f(b).each(function(a,b){d.runTier(b)})};d.runTier=function(b){a[b].run();delete a[b]};d.startSystem=function(){g=g||new qa;f(c).each(function(a,b){e.apply({},b)})};d.getAggregator=function(){return g};return d}(),h={MRC_LARGE_AD_SIZE:242500,
FLASH_MIME:"application/x-shockwave-flash",IN_VIEW:"inView",OUT_OF_VIEW:"outOfView",PARTIAL_VIEW_PLUS:"partialViewPlus",PARTIAL_VIEW_MINUS:"partialViewMinus",NA:"na",PIV_NA:-1,DT_CODES:{ADTALK:"a",DIAGNOSTIC:"b",PERFORMANCE:"e",THIRD_PARTY:"i",LARGE_BILLABLE:"l",VIDEO_EVENTS:"m",PING:"p",FULLY_INVIEW:"pf",QUARTILE_FULLY_INVIEW:"qf",SCA:"s",POS_INVIEW:"t",UNLOAD:"u",VIEWABILITY_READY:"v",EXTERNAL:"x",CUSTOM:"c",XSCA:"xs"},DT_SLOT:{IM:"im",FRAUD:"sca",FRAUDEXP:"xsca",ENVIRONMENT:"env"},DETECTION_METHODS:{AD_PLACEHOLDER:"s",
AD_HUNT:"a",IFRAME:"i",VIDEO:"v",MRAID:"m",AVID:"av",OMID:"o1",MUTATION:"c",SPECIFIED_AD:"sp",SPECIFIED_AD_NATIVO:"spn",BUSTED_IFRAME_FLASHTALKING:"bf",BUSTED_IFRAME_YIELDMO:"by",BUSTED_IFRAME_SIZMEK:"bs",VENDOR_CELTRA:"vc"},OUT_OF_VIEW_REASONS:{GEOM:"l",OBSTRUCTION:"o",FOCUS:"f",COLLAPSED:"c",HIDDEN:"h",VIDEO:"v"},VIDEO_CHANNELS:{VANS:{AS3_ADAPTOR:"av3",JS_ADAPTOR:"jv3"},WRAPPERS:{JS:"jvw"}},PERF_TIMELINE_TRACKER_CONFIG:{VANS:{TYPE:"vans",COUNT:4},WRAPPERS:{JS:{TYPE:"jswrapper",COUNT:15},AS:{TYPE:"flwrapper",
COUNT:9}}},ERROR_CODES:{GET_AD_DIMENSIONS:"a",AD_SLOT_ID:"A",BAPI_CALLBACK:"b",BROWSER_NOT_HTML5_COMPATIBLE:"B",ADTALK_GENERAL:"c",COCOA_GONE:"C",GET_SCREEN_LOC_GET_DIMENSIONS:"d",ADTALK_DUBIOUS:"D",POST_IMPRESSION:"E",ADTALK_DELAY:"f",VIDEO_IN_IFRAME_DIMS_CALC:"F",GREEN:"g",INIT_ADS_MANAGER:"G",PHONE_HOME:"h",FEATURE_SCRIPT:"H",HIDDEN:"H1",HIDDEN2:"H2",UID_GENERATION:"i",IMPRESSION_URLS:"I",NOT_VPAID_EVENT_OBJECT:"j",JSINFO:"J",KILL_IT:"k",NO_RESPONSE_XML:"K",LOCATION_DETAILS:"l",IMPRESSION_LEADUP:"L",
MESSAGE_LISTENER:"m",MOBILE_APP:"M",AT_INIT:"N",AUTOPLAY_DETECTION:"n",ANCESTOR_ORIGINS:"o",EVENT_LOOP_ONE:"O",GET_SCREEN_LOC_PIV_CALC:"p",PLUGIN_PARSING:"P",NO_ORIGINAL_VAST:"q",AD_ERROR:"R",GET_ELEM_STYLE:"s",AT_SEND:"S",ADS_MANAGER_START_AD:"t",NO_COMPANION_AD_XML:"T",NO_VIDEO_AD_INTERFACE:"u",UNRECOGNIZED_EVENT_TYPE:"U",ENVIRONMENT:"v",CHECK_SCREEN_LOC:"V",GET_WIN_DIMENSIONS:"w",AC_WATCHER:"W",EXCHANGE_PARSING:"x",SCA:"X",FLASH_API_ACCESS:"z",XSCA:"Z",BUSTED_IFRAME_IN_IO:"y"},BROWSERS:{WEBKIT:"w",
OPERA:"o",GECKO:"g",CHROME:"c",IE:"i",MSEDGE:"e"},MEDIA_TYPE_CODE:"mtp",MEDIA_TYPE:{DISPLAY:"display",DISPLAY_CODE:"d",VIDEO:"video",VIDEO_CODE:"v"},MEASUREMENT_STRATEGY:{DISPLAY:"display",VIDEO:"video"},TIERS:{PRE_IMPRESSION_FRAUD:4,VIEWABILITY:7,ENVIRONMENT:8},IMPRESSION_EVENT:"impression",AD_IDENTIFIER:"data-integralas-id",IAS_DETECTOR:"iasdetector",AVID:{AD_SESSION_TYPE:{DISPLAY:"display",VIDEO:"video",MANAGED_DISPLAY:"managedDisplay",MANAGED_VIDEO:"managedVideo"}},VIEWABILITY_IN_VIEW_THRESHOLDS_INTERSECTION_OBSERVER:[0,
0.01,0.2,0.25,0.3,0.5,0.7,0.75,0.8,0.99,1],VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID:[0,0.1,0.2,0.25,0.3,0.4,0.5,0.6,0.7,0.75,0.8,0.9,1],GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE:"grpmMobPassThru"},fa="mf",ia="cm",la="in",oa="pr",pa="po",Nb="bl",ja="lo",ka="lt",Ya="md",Za="id",X=function(){return{applies:function(g,a){var b=l.request("mobileApp");return(g.browserIs(h.BROWSERS.CHROME)||g.isAndroidWebViewBrowser()||g.browserIs(h.BROWSERS.MSEDGE))&&!b.isMobileAppEnvironment()&&g.hasIntersectionObserver()&&
a.on("chromeNativeIO")}}},Eb=function(){var g,a,b=!1,c=l.request("mPage"),d=function(){!b&&a&&g&&!c.isHidden()&&(b=!0,l.trigger("sendDt",h.DT_CODES.LARGE_BILLABLE))};l.on("primaryadfound",function(a){g=a.getDims().area()>=h.MRC_LARGE_AD_SIZE;d()});l.on("impressionsent",function(){a=!0;d()});c.onHiddenChange(d)},kb=function(){var g=[],a={},b={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h"};l.on("newScreenEvent",function(c){c=f(c).selectProperties(f(b).keys());c=f(c).asStrings();var d=
f(c).compareTo(a);d&&(d.t=u.getTagTime(),g.push(d));f(a).mixin(c)});return{toString:function(){return f(g).toION(b)}}},qa=function(){var g=new Ob,a=new F;return f(g).mixin(a)},F=function(){var g={},a={},b=function(b,c,k){if((b=a[b])&&0!==b)return k&&(b=b.slice(0,1)),f(b).each(function(a,b){c.apply({},b)}),!0},c=function(a,b,c){g[a]=g[a]||new $;g[a].push(b,c)};return{on:function(a,e){var k={};e?k[a]=e:k=a;f(k).each(c);f(k).each(b)},once:function(a,e){b(a,e,!0)||c(a,e,1)},trigger:function(a){var b=
f(arguments).toArray();b.shift();var c;(c=g[a])&&c.run.apply({},b)},persistentTrigger:function(b){var c=f(arguments).toArray();c.shift();var k=b;a[k]=a[k]||[];a[k].push(c);(k=g[b])&&k.run.apply({},c)}}},aa=function(){var g=function(a,c,d){var e,k=c.length,r=v.isWindow(a)?a.frames:v.getChildWindowsOf(a);d&&d(a,c);if(r&&r.length){for(a=0;a=c&&(b.task(),g.shift())},getNextJob:function(){return g[0]}}},
Pb=function(){var g,a=new ra,b=function(b,d,e,k){var r,m,t,g;if(JSON&&JSON.parse)try{r=JSON.parse(b.data),m=b.source,g=f.noop,d(r)&&(k&&(t=k(m,r))&&(g=function(){a.send(function(){return t},m)}),e(b,r,g))}catch(w){r&&l.trigger("error",h.ERROR_CODES.MESSAGE_LISTENER)}};return{listen:function(a,d,e){g=function(k){b(k,a,d,e)};x.addEvent(C,"message",g)},stop:function(){g&&x.removeEvent(C,"message",g);g=null}}},ra=function(){var g=function(a){return f(a).isObj()?[a]:(new aa).getFrames(a)},a=function(a){return f(a).mapToObj(function(a,
b){var e;f.isFunction(b)||(e={},e[a]=b);return e})};return{send:function(b,c){if(JSON&&JSON.stringify){var d=g(c);f(d).each(function(c,d){var r;r=f.resolve(b,d)||{};r.sentTime=s.now();r=a(r);d.postMessage(f(r).JSONStringify(),"*")})}}}},Qb=function(g,a){return{onAll:function(b){var c={};f(a).each(function(d,e){g.on(e,function(){c[e]=1;f(c).keys().length===a.length&&(c={},b())})})}}},fb=function(g){var a=0,b={},c=function(b,c,d){if(f.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=f.resolve(b.output);this.props.asION&&(a=f(a).toION());return a}},d=function(a){var c,d,e=[];for(c in b)b.hasOwnProperty(c)&&(d=a(c,b[c]))&&e.push(d);return e},e=function(a,d,e){e=e||d;e="string"!==typeof e?e:{};var t=function(a,d,e){a=new c(a,d,e);b[a.id]=a};f(a.output).isObj()&&!e.asION?f(a.output).each(function(a,b){t({output:b},a,e)}):t(a,d,e)};g.on("addOutputItem",function(a,b,c){e(a,b,c)});return{addItem:e,filterOutput:function(a,
b){return d(function(c,d){var e=d.props,g;a(e)&&(g=d.output(),e.encode&&(c=encodeURIComponent(c),g=encodeURIComponent(g)),f.isFunction(b)?b(c,g):b[c]=g)})},iterate:d,cleanup:function(){d(function(a,c){c.props.flagForRemoval&&delete b[a]})},getItem:function(a){return b[a]}}},Ob=function(){var g={},a=function(a,c){g[a]=c};return{request:function(a){var c,d=g[a],e=f(arguments).toArray();e.shift();f.isUndef(d)||(c=f.isFunction(d)?d.apply({},e):d);return c},provide:function(b,c){c?g[b]=c:f(b).each(a);
return c}}},wb=function(){return{createInstance:function(g,a,b,c){return u.isDomless()?new Rb:new Sb(g,a,b,c)}}},Sb=function(g,a,b,c){var d;return{collect:function(){var a=g.find(),k=a.getOutOfViewReasons(),r=b.isHidden(),m=c.isDeviceTypeGroupMobile()&&d?d:I(v.calcWinDims()),t=a.getDims();d=m;if(!a.hasAd()||!m.hasValidDims()||!t.hasValidDims())return{viewState:h.NA,posViewState:h.NA,embedded:u.embedded,winDimensions:m,adDimensions:t};!0===r&&k.push(h.OUT_OF_VIEW_REASONS.FOCUS);return{winDimensions:m,
adDimensions:t,containerDimensions:a.getContainerDims(),method:a.getDetectionMethod(),viewState:k.length?h.OUT_OF_VIEW:a.getViewState(),percentInView:a.getPercentInView(),reason:k.join("."),obstructed:f.stringifyTriState(a.isObstructed()),isHidden:f.stringifyTriState(a.isHidden()),tabHidden:f.stringifyTriState(r),posViewState:a.getViewState(),adCompCount:a.getComponentCount(),sliceStatus:a.getSliceStatus()}}}},Rb=function(){return{collect:function(){return{}}}},Tb=function(g){g=g||f.identity;var a=
[],b=s.now(),c=function(){var c=s.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 e=a[a.length-1];b=g(b);c();0!==a.length&&b===e.state||a.push({state:b,duration:0})}}},sa=function(g,a){var b=g||1,c=0,d=0,e,k=0;return{start:function(){0===c%b&&(e=s.now())},stop:function(){var r=e||a;0===c%b&&(k+=s.now()-r,d++);c++},getTime:function(){return k},
getCount:function(){return d}}},ta=function(){var g,a=0,b=0,c=new F(!0),d=function(){g&&(a++,c.trigger(a),b>a?s.execAtEndOfThread(d):e())},e=function(){g=!1;a=0};return{onTick:function(a,d){var e=f.collapseArgsIntoHash(a,d);f(e).each(function(a,c){a=parseInt(a);b=a>b?a:b});c.on(e)},start:function(){g||(g=!0,s.execAtEndOfThread(d))},kill:e,isActive:function(){return g}}},Ub=function(g,a){var b,c=a,d=function(a){b||(a&&g(),b=s.setInterval(g,c))},e=function(a){a&&g();s.clearInterval(b);b=null};return{start:d,
stop:e,updateFrequency:function(a,b){c=a;e();d(b)}}},Z=function(g){var a,b,c=0,d=u.getTagTime(),e=0,k=!1;return{getTotalTime:function(){return e},stop:function(){c=0;d=u.getTagTime();k=!1},mark:function(){a=k?u.getTagTime()-d:0;c+=a;c>=g&&(b=c-a=c.concat(b).join("").length&&c.push(b)});return c},a=function(a,c){var d;c&&c.id&&(d=c.id.replace(/[^\w-_.>\/]/g,""));return d};(function(){var b;try{if(u.friendly&&!u.isMobileApp()){var c,d;if(c=v.getOurNodeInTop()){var e=v.getAncestorNodes(c);d=f(e).map(a)}(b=d=d&&g(d))&&l.trigger("addOutputItem",
{output:b},"slid",{type:h.DT_CODES.ADTALK,asION:!0})}}catch(k){l.trigger("error",h.ERROR_CODES.AD_SLOT_ID)}})()},nb=function(){var g,a,b=function(a,b){-1!==b.indexOf("https")&&(b+="*");return b.replace(/^https?:\/\//,"")};return{isApplicable:function(a,b,e){return a.hasAncestorOrigins&&a.hasAncestorOrigins()&&b.on("ancestor")&&e.xDomainIframe},isStarted:function(){return!!a},start:function(){try{g=s.getWindow().location.ancestorOrigins,a=!0}catch(b){l.trigger("error",h.ERROR_CODES.ANCESTOR_ORIGINS)}},
getMyFrameDepth:function(){return g&&g.length||0},getTopDomain:function(){return f.last(g)},sendOriginList:function(){var a;a="ao:"+(g?f(g).map(b).reverse():[]).join(",");l.trigger("addOutputItem",{output:a},"tpiLookup",{type:h.DT_CODES.THIRD_PARTY,standalone:!0,encode:!0});l.trigger("sendDt",h.DT_CODES.THIRD_PARTY)}}},Jb=function(g,a,b,c,d){var e=function(a,b,c){d.addItem({output:a+"."+b+"."+c},"ctpl")},k=function(d){try{a.diagnostic("c");var m=d.length,k=0,p=0;e(m,0,0);f(d).each(function(a,b){g.send(b.replace("%%CBS%%",
c.getCacheBustId()),function(){e(m,k,++p)},!0);e(m,++k,p)})}catch(w){b.add(h.ERROR_CODES.AT_SEND)}};return{init:function(){try{var a=(new T).fullDom;"/"!==a.slice(-1)&&(a+="/");a+="tpl?asId="+n.asid;g.jsonp(a,k)}catch(c){b.add(h.ERROR_CODES.AT_INIT)}}}},zb=function(g,a,b,c){return{enabled:"true"===n.useBapiCallback,callback:function(a){b.trigger("sendDiag");try{"true"===n.accountForSadImps&&c.measure(a),n._onAPIResult&&n._onAPIResult(a)}catch(e){g.add(h.ERROR_CODES.BAPI_CALLBACK),b.trigger("sendDiag",
"bapiClient")}}}},cb=function(){return{createInstance:function(g,a,b,c){return u.isDomless()?new Vb:new Wb}}},Wb=function(){var g=h.BROWSERS,a,b=function(){var a="0",b=s.getWindow(),c=function(a){return a.replace(/\D+/g,",").match(/^,?(.+),?$/)[1].split(",").join(".")};try{try{var d=s.getNewActiveXObject("ShockwaveFlash.ShockwaveFlash.6");try{d.AllowScriptAccess="always"}catch(e){a="6"}}catch(r){}a=c(s.getNewActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version"))}catch(k){try{b.navigator.mimeTypes[h.FLASH_MIME].enabledPlugin&&
(a=c((b.navigator.plugins["Shockwave Flash 2.0"]||b.navigator.plugins["Shockwave Flash"]).description))}catch(g){}}return a},c=function(){f.isUndef(a)&&(a=b());return a},d=function(a){return k()===a},e=function(){var a=s.getDoc();return a&&a.documentMode?a.documentMode:h.NA},k=function(){var a="u",b=s.getWindow();try{f.isDef(b.opera)&&f.isDef(b.opera.buildNumber)?a=g.OPERA:f.isDef(b.mozInnerScreenY)?a=g.GECKO:f.isDef(b.chrome)&&f.isDef(b.chrome.csi)?a=g.CHROME:f.isDef(b.msWriteProfilerMark)&&f.isDef(b.crypto)?
a=g.MSEDGE:f.isDef(b.attachEvent)||f.isDef(b.msCrypto)?a=g.IE:f.isDef(b.WebKitPoint)&&(a=g.WEBKIT)}catch(c){}return a},r=function(){var a=!1,b=s.getWindow();f.isDef(b.navigator)&&f.isDef(b.navigator.userAgent)&&(a=b.navigator.userAgent);return a};return{browserIs:d,hasIntersectionObserver:function(){return"function"===typeof IntersectionObserver},hasFlashEnabled:function(){return"0"!==c()},hasAncestorOrigins:function(){var a=s.getWindow().location;return!(!a||!a.ancestorOrigins)},hasPostMessage:function(){var a=
s.getWindow();return!(!a||!f.isFunction(a.postMessage))},getFlashVersion:c,getDocumentMode:e,getBrowserType:k,getUserAgent:r,params:function(){var a=k(),b=c(),r;r=5;var w=s.getWindow(),q=s.getDoc();d(g.IE)?w.msCrypto?r=11:w.atob?r=10:w.addEventListener?r=9:w.JSON&&q.querySelector?r=8:w.XMLHttpRequest?r=7:q.compatMode&&(r=6):r=h.NA;var w=e(),q=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"],l=h.NA,y=s.getDoc(),D=y.createElement("div");
if(d(g.IE))try{if("-ms-ime-align"in y.documentElement.style)l="11";else for(D.style.behavior="url(#default#clientcaps)",y=0;y\x3c/script>'],iframe:[''],img:['']}[a];d=c[0]+b+c[1];"true"===n.forceAppend?"script"!==a?(c=K.createElement("DIV"),c.innerHTML=d,e.appendChild(c.childNodes[0])):(c=K.createElement("SCRIPT"),c.src=b,e.appendChild(c)):K.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 e=K.createElement("script");c=c||n.contextNode.parentNode;
e.type="text/javascript";e.src=a;b&&(e.onload=b);d&&(e.setAttribute("defer",""),e.setAttribute("async",""));f.isDef(c)&&c.appendChild(e)},e=function(a){f.isFunction(a)?a({iasImpId:n.asid}):a&&"string"===typeof a&&c(a,void 0,!0)},k=function(b,c,e,k){d(a.wrap(b,c,e,k))};l.on({addNode:b,send:c,exec:d,notify:e,jsonp:k});return{addNode:b,send:c,exec:d,notify:e,jsonp:k}},Xb=function(g){var a=function(a,b){b=b||a;a=1=h.MRC_LARGE_AD_SIZE},isOneByOne:function(){return c()&&
1>=k()}}},v={findElementsWithSize:function(g){var a=[],b=function(c){1>v.getNodeArea(c)?f(c.children).each(function(a,c){b(c)}):a.push(c)};b(g);return a},nodeIsHidden:function(g){var a=this.getRect(g),b=0!==parseInt(x.getStyle(g,"width"))&&0===a.width,a=0===a.width||0===a.height;g="hidden"===x.getStyle(g,"visibility");return b||a||g},calcWinDims:function(){var g,a,b;try{a=v.browserWindowPosition(),b=v.windowSize(),g={scrX:s.round(a.scrX),scrY:s.round(a.scrY),width:s.round(b.width),height:s.round(b.height)}}catch(c){l.trigger("error",
h.ERROR_CODES.GET_WIN_DIMENSIONS),g={}}return g},windowSize:function(){var g={},a,b;if(u.isDomless())return{width:0,height:0};if(u.friendly)if(a=top.document,b=a.documentElement,a=a.body,f.isDef(top.innerWidth))g.width=top.innerWidth,g.height=top.innerHeight;else if(f.isDef(b.clientWidth))g.width=b.clientWidth,g.height=b.clientHeight;else if(f.isDef(a.clientWidth))g.width=a.clientWidth,g.height=a.clientHeight;else throw g.width=g.height=0,"";else f.isDef(window.outerWidth)&&(g.width=window.outerWidth,
g.height=window.outerHeight);return g},browserWindowPosition:function(){var g=0,a=0;f.isDef(window.screenX)?(g=window.screenX,a=window.screenY):f.isDef(window.screenLeft)&&(g=window.screenLeft,a=window.screenTop);return{scrX:g,scrY:a}},getNodeArea:function(g){var a=-1;g&&(g=v.getRect(g),a=g.width*g.height);return a},getRect:function(g){var a={},b=v.browserWindowPosition();g=g.getBoundingClientRect();f.isUndef(g.x)&&(a.x=g.left,a.y=g.top);f.isUndef(g.width)&&(a.width=g.right-g.left,a.height=g.bottom-
g.top);f(a).mixin(g,!0);a.scrX=b.scrX+a.x;a.scrY=b.scrY+a.y;return a},getIeDimObj:function(g){g=g.document;return g.documentElement&&f.isDef(g.documentElement.clientWidth)&&g.documentElement||g.body},getPlaceholderSpan:function(){var g=K.createElement("span");f(g.style).mixin({width:"0px",height:"0px",display:"block",overflow:"hidden",visibiility:"hidden"});g.innerHTML=".";return g},createImage:function(){var g=u.friendly&&s.getTop().Image;return f.isFunction(g)?new g:new Image},createHiddenIframe:function(g){var a=
s.getDoc().createElement("iframe"),b={width:"0px",height:"0px",border:"0",position:"absolute",top:"-10000px",left:"-10000px"};x.styleElement(a,g?{display:"none"}:b);return a},tagNameIs:function(g,a){return g.tagName.toUpperCase()===a.toUpperCase()},getClippedDimensions:function(g,a){var b,c,d,e=1E4,k=1E4;b=x.nodeIsAbsolutelyPositioned(g);d=!v.tagNameIs(g,"OBJECT");if(null!==g.parentNode&&!b&&d&&!v.tagNameIs(a,"BODY")){d=g;do d=d.parentNode,b=!v.tagNameIs(d,"OBJECT"),c="inline"!==x.getStyle(d,"display"),
b&&c&&(b=v.getRect(d),e=b.widthf){q=void 0;if(q=p.parentNode===g)if(q=void 0,q="DIV"===p.nodeName)if(q=void 0,q=""===p.style.backgroundImage){var h=q=void 0,y=p.childNodes;for(q=0;qa.width&&c>a.height;return b*c>a.width*a.height&&d},getTagName:function(g){return g.tagName.toLowerCase()},getAttribute:function(g,
a){return g.getAttribute(a)},attributeMatches:function(g,a,b){g=g&&v.getAttribute(g,a);return b.test(g)},isImageTag:function(g){return g&&g.src&&v.tagNameIs(g,"img")},getDimensionFromStyle:function(g){var a,b=x.getStyle(g,"width");g=x.getStyle(g,"height");b&&g&&(a={width:f.getNum(b),height:f.getNum(g)});return a},getDimensionFromAttributes:function(g){var a,b=v.getAttribute(g,"width");g=v.getAttribute(g,"height");b&&g&&(a={width:f.getNum(b),height:f.getNum(g)});return a},traverseAndFindFirstMatchingNode:function a(b,
c){var d,e,k;if(c(b))e=b;else if(k=b.children)for(d=0;d100*s.random());return a[b]},c={rt:"rattie",cb:"cachebust",th:"tabHiddenDtCall",es:"everySecond",sa:"swapids",sc:"usesca",ha:"usehaps"},d={fif:"useFIF"},e=function(){var b,e;b=f(c).mapToObj(function(b,c){var d={};d[b]=f.fromBoolToNum(a[c]);return d});e=f(d).mapToObj(function(a,b){var c={};c[a]=f.fromBoolToNum(k(b));return c});e.gm=f.fromBoolToNum(u.usesGroupMCustomMetric());
return f(b).mixin(e)},k=function(a){a=n[a];return!0===a||"true"===a||f.isFunction(a)};f(c).each(function(a,c){b(c)});return{on:b,bootstrapOn:k,bootstrapperHas:function(a){a=f.isStr(a)?[a]:a;return f(a).map(function(a,b){if(f.isDef(n[b]))return 1}).length===a.length},getEnabledScriptUrl:function(a){var c=b("use"+a);a=n.sp_cdnScripts&&n.sp_cdnScripts[a];return c&&a},output:function(){return f(e()).toParams()}}},rb=function(a){return{calcInitialViewState:function(a,c){var d;d={IN_VIEW:65,OUT_OF_VIEW:25,
PARTIAL_VIEW:30};var e={IN_VIEW:75,OUT_OF_VIEW:25,PARTIAL_VIEW:50},k=h.NA;d=c?d:e;f.isDef(a)&&a!==h.NA&&-1=d.IN_VIEW?h.IN_VIEW:a<=d.OUT_OF_VIEW?h.OUT_OF_VIEW:a>=d.PARTIAL_VIEW?h.PARTIAL_VIEW_PLUS:h.PARTIAL_VIEW_MINUS);return k},calcPercentInView:function(a,c,d,e){var k=0,r=a;a.hasValidDims()&&!a.isHidden()&&(f([c,d,e]).each(function(a,b){if(b.hasValidDims()){var c=r.getRounded(),d=b.getRounded(),e=Math.max(c.scrX,d.scrX),k=Math.max(c.scrY,d.scrY),f=Math.min(c.scrX+c.width,d.scrX+d.width),
c=Math.min(c.scrY+c.height,d.scrY+d.height),f=f-e,c=c-k;r=I({scrX:e,scrY:k,width:0a.length;)c?(b=new Uint32Array(1),C.crypto.getRandomValues(b),a+=b[0].toString(16)):
a+=(16*s.random()|0).toString(16);a=a.slice(0,32)}catch(d){l.trigger("error",h.ERROR_CODES.UID_GENERATION)}return a}());var d=function(){return n.anId};return{getAsid:function(){return n.asid},getAnId:d,getCacheBustId:function(){var a=new Date,b=Date.parse("Jan 1 "+a.getFullYear()),a=a.getTime()-b;return f.toBase(a,62)},getFwId:function(){return d()||n.advEntityId+"-"+n.pubEntityId},impressionIsIdentifiable:function(a){a&&(b=!0);return b},unq:a,getAvidIds:function(){return c},setAvidAdSessionContext:function(a){c=
a}}},Xa=function(a,b){return{init:function(c){a.jsonp(c,function(a){b.send(h.DT_CODES.THIRD_PARTY,void 0,!1,!0,{field:"tpiLookup",value:a})},!1,"callback")}}},xb=function(a){var b=function(a,b){return{time:a,task:b}};return{createPingJobs:function(a,d,e,k){return f(d.timeThresholds).map(function(d,m){var t=m/1E3;return new b(m,function(){f.isDef(k)&&l.trigger("addOutputItem",{output:k},"metricId",{type:a});l.trigger("sendDt",a,t);if(e[m])e[m]()})})}}},ma=function(){var a=function(a,b){-1!==a.indexOf(b+
"&")&&(b+="&");return a.replace(b,"")},b=function(a,b,c){var r=a.indexOf("?");b=b+"="+c;if(-1===r)return a+"?"+b;r++;return a.slice(0,r)+b+"&"+a.slice(r)},c=function(){return"__IntegralAS_"+n.asid.replace(/\-/g,"")+"_"+s.round(1E4*Math.random())};return{wrap:function(d,e,k,r){var f=c(),t,p,w;r=r||"ias_callback";d=""+d;RegExp(r).test(d)&&(t=RegExp("("+r+"=)(.[^&]*)").exec(d)[0],p=t.split("=")[1],w=M.stringToFn(p),d=a(d,t));C[f]=function(a){e(a);k&&w&&w(a);C[f]=void 0};return d=b(d,r,f)},wrapToGlobal:function(a){var b=
c();C[b]=function(c){a(c);C[b]=void 0};return b}}},Ab=function(a,b,c){var d=function(a,b){var c=a,d;b&&(d=","+f(b).stringify(function(a,b){return a+":"+b},","),c=T(a,!0),c.appendToParamValue("adsafe_jsinfo",d),c=c.toString());return c},e={jss:{isFW:!0,nodeType:"script"},rjss:{isFW:!0,nodeType:"script"},jsi:{isFW:!0,nodeType:"iframe"},rjsi:{isFW:!0,nodeType:"iframe"},jload:{impressionMethod:function(c){a.enabled?l.trigger("jsonp",c,a.callback,!0):l.trigger("send",c,function(){l.trigger("sendDiag")},
!b.on("postMon"))}},bapi:{impressionMethod:function(b){l.trigger("jsonp",b,a.enabled?a.callback:f.noop,a.enabled?!0:!1)}},jsapi:{isFW:!0,impressionMethod:function(b){l.trigger("jsonp",b,a.enabled?a.callback:f.noop,a.enabled?!0:!1)}},jsvid:{manualDefer:!0,impressionMethod:function(c){l.on("adImpression",function(e,m){var t;try{t=d(c,m),a.enabled?l.trigger("jsonp",t,a.callback,!0):l.trigger("send",t,f.noop,!b.on("postMon"))}catch(p){__IntegralASDiagnosticCall("jsvidimp",p,n)}})}},fwjsvid:{isFW:!0,manualDefer:!0,
impressionMethod:function(a){var b="false"===n.fwMonitoring,c=function(a){a=a.split("/");a[3]="db2";a[4]="video";return a.join("/")};b&&l.trigger("jsonp",c(a),function(a){l.trigger("videoBlockResult",a)});l.on("adImpression",function(c,e){var m;try{var q;if(q=b)q=c&&f.isBool(c.integral_didBlock)&&0<=c.integral_timeToDecision;q&&(a=a.replace(/(adsafe_jsinfo=)([^&]*)/,"$1$2,abc:"+(c.integral_didBlock?1:0)+",abct:"+c.integral_timeToDecision));m=d(a,e);l.trigger("send",m,f.noop,!0)}catch(h){__IntegralASDiagnosticCall("fwjsvidimp",
h,n)}})}},jspix:{nodeType:"img"}};return new function(){var a=function(a){var b=-1===a.indexOf("?")?"?":"&";return a+b},b=e[n.mode],d=!!b.isFW,f=function(a){var b;b=l.request("mobileApp").isMobileAppEnvironment()&&n.mobFwUrl?n.mobFwUrl:a?n.adsafeSrc:n.requrl;a||(b+="?"+n.reqquery);return b}(d),p=f.indexOf("BEGIN__ADSAFE"),h=-1!==p,q=h?f.slice(p):"",a=h?f.slice(0,p):a(f);return{isFW:d,baseUrl:a,macroUrl:q,sendImpression:function(a){var d=function(){b.nodeType?l.trigger("addNode",b.nodeType,a):b.impressionMethod(a)};
if(c||b.manualDefer)d(a);else if(!b.manualDefer)l.on("adImpression",function(){d(a)})}}}},s={execAtEndOfThread:function(a){s.setTimeout(a,0)},now:function(){return(new Date).getTime()},random:function(){return Math.random()},round:function(a){return Math.round(a)},ceil:function(a){return Math.ceil(a)},floor:function(a){return Math.floor(a)},min:function(){return Math.min.apply(null,arguments)},max:function(){return Math.max.apply(null,arguments)},getWindow:function(){return C},getTimeoutScope:function(){return u.isDomless()&&
u.isOmid()?l.request("omidVerificationClient"):C},setInterval:function(a,b){return s.getTimeoutScope().setInterval(a,b)},setTimeout:function(a,b){return s.getTimeoutScope().setTimeout(a,b)},clearInterval:function(a){s.getTimeoutScope().clearInterval(a)},clearTimeout:function(a){s.getTimeoutScope().clearTimeout(a)},getMaxNumber:function(){return Number.MAX_VALUE},getTop:function(){u.isDomless();return top},getNewActiveXObject:function(a){u.isDomless();return new ActiveXObject(a)},getDoc:function(){u.isDomless();
return K},getIntersectionObserver:function(a,b){u.isDomless();return new IntersectionObserver(a,b)},pow:function(a,b){return Math.pow(a,b)}},mb=function(){return{createInstance:function(){return u.isDomless()?new ac:new bc}}},bc=function(){var a,b=!1,c=l.request("features"),d=new $,e=function(){var b;c.on("blur")||c.on("abcAudit")&&923747==n.anId?(b=s.getWindow(),b=u.friendly&&b.top.document&&(f.isFunction(b.top.document.hasFocus)||f(b.top.document.hasFocus).isObj())&&!b.top.document.hasFocus()||
(f.isDef(a.prop)?s.getDoc()[a.prop]:null)):b=f.isDef(a.prop)?s.getDoc()[a.prop]:null;return b},k=function(){var b=s.getWindow(),c=function(){d.run(e())};x.addEvent(b,"focus",c,!0);x.addEvent(b,"blur",c,!0);a.event&&x.addEvent(s.getDoc(),a.event,c,!0)};a=function(){var a,b="hidden",c="visibilitychange",d=s.getDoc();f.isUndef(d.hidden)?f(["moz","ms","webkit"]).each(function(e,k){var h=k+"Hidden";f.isDef(d[h])&&(b=h,c=k+c,a=!0)}):a=!0;return a?{prop:b,event:c}:{}}();return{isHidden:e,onHiddenChange:function(a){d.push(a);
b||(b=!0,k())}}},ac=function(){return{isHidden:function(){return!1},onHiddenChange:function(a){}}},ob=function(){return{createInstance:function(a,b){return u.isDomless()?new cc:new dc(a,b)}}},dc=function(a,b){var c,d=function(a){for(var b in a)if(a.hasOwnProperty(b)){var c=a[b];(""===c||"null"===c||"undefined"===c||null===c||f.isUndef(c))&&delete a[b]}return a},e=function(a){var b={},c,d;for(d in a)a.hasOwnProperty(d)&&(c=a[d],f.isUndef(b[c])?b[c]=d:b[c]+=d);a={};for(d in b)b.hasOwnProperty(d)&&(c=
b[d],a[c]=d);return a},k=function(){var k,m=function(){var a={};try{a.q=b.getWindow().parent.parent.parent.parent.parent.parent.parent.parent.parent.parent.location.href}catch(c){var d=c.message,d=d.substring(d.lastIndexOf("<")+1,d.lastIndexOf(">")),e;if(e=f.isDef(d)){var k=b.getWindow();e=!1;f.isDef(k.navigator)&&f.isDef(k.navigator.userAgent)&&(k=k.navigator.userAgent.match(/Firefox\/([\.0-9]+)/),null!==k&&2==k.length&&(k=k[1].split("."),3==parseInt(k[0],10)&&6>=parseInt(k[1],10)&&(3==k.length?
13>=parseInt(k[2],10)&&(e=!0):e=!0)))}e&&(a.g=d)}return a},t={};try{t.a=encodeURIComponent(top.location.href)}catch(p){}try{t.b=encodeURIComponent(parent.location.href)}catch(h){}if(u.embedded){try{t.c=encodeURIComponent(parent.document.referrer)}catch(q){}try{t.e=encodeURIComponent(window.document.referrer)}catch(l){}}try{"jsi"!==n.mode&&(t.d=encodeURIComponent(window.location.href))}catch(y){}try{t.f=encodeURIComponent(n.jsref)}catch(s){}try{k=m(),t.g=encodeURIComponent(k.g||""),t.q=encodeURIComponent(k.q||
""),a.isStarted()&&!k.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=C,d=a.split(".");for(a=0;ab&&c("ha1",a);b++};(function(){var b,k;if(u.embedded)try{k=n.contextNode.parentNode,
b=fc().getDFPValue(k),k={},k.df=b.type,b.size&&(k.sz=b.size.width+"."+b.size.height),b.tag&&(k.dom=b.tag),c("dfp",k),b.size&&a&&(a.events.on("newState",d),a.start())}catch(f){l.trigger("error",h.ERROR_CODES.HIDDEN)}})()},{tier:h.TIERS.PRE_IMPRESSION_FRAUD,applies:function(a,b,c){return a.on("usehaps")}});var jb=function(){return{createInstance:function(a){return u.isDomless()?new hc:new ic(a)}}},ic=function(a){var b,c,d,e=new qa,k=new aa,r=new jc(e),m=new kc,t=new lc,p=new mc(e,a),h=function(){f.isUndef(d)&&
(d=new nc(e));return d},q=function(){e.provide({frameCollection:function(){return r},adProxy:function(){return t},adTalkMessage:function(a){return new oc(a,e)},adTalkMessageCollection:function(){return m},idMapModule:h,interFrameQuerySelector:function(a){return new pc(a)}})};return{isApplicable:function(a){return f.isDef(window.JSON)&&f.isDef(window.postMessage)&&!a.isAvid()&&!a.isOmid()},start:function(){q();k.traverse(r.addFrame);p.startListening();p.sendToKnownFrames();l.once("stopAdTalk",function(){p.stopListening()})},
sendAdTalkCall:p.sendAdTalkCall,getFrameMap:function(){f.isUndef(b)&&(b=new va(e));return b},getFrameMapIncludingPeerCase:function(){f.isUndef(c)&&(c=new va(e,!0));return c},getIdMap:h}},hc=function(){return{isApplicable:function(){return!1},start:function(){}}},oc=function(a,b){var c,d=b.request("adProxy").myIdCard,e=b.request("frameCollection").getMe().getStringifiedPosition();c=l.request("features").on("swapids")?n.oid:n.asid;var k=a||{},f=n.asid,d=d.tagId,m=u.embedded,t=u.friendly,p=n.birthdate;
c=c.split("-")[2];var w;u.friendly?w="["+h.AD_IDENTIFIER+"-"+n.asid+"]":(w=s.getWindow(),w=w.location&&w.location.href,w='iframe[src*="'+(w&&w.replace(/^https?\:\/\//i,""))+'"]');return{messageContent:k,srcAsid:f,srcTagId:d,srcIsEmbedded:m,srcIsFriendly:t,srcBirthdate:p,iasCommonId:c,nodeSelector:w,positionStr:e,version:"0.1"}},kc=function(){var a={};return{add:function(b){var c=b&&b.srcAsid;c&&(a[c]=b)},map:function(b){return f(a).map(b)},has:function(b){return a[b&&b.srcAsid]}}},qc=function(a,b,
c,d){var e,k=a==C;e={position:b.slice(0),id:b.join("-"),isMe:k,isLeaf:!a.frames.length,adProxies:k?c:[],selfDescription:void 0,unifiedId:n.birthdate,srcIsEmbedded:d?d.srcIsEmbedded:void 0,inbox:d?[d]:[],getDomObj:function(){return a},getStringifiedPosition:function(){return f(e.position).map(function(a,b){return f.toBase(Number(b)+1,36)}).join("")},isValidForMapping:function(){return e.isLeaf||e.isMe||f.isDef(e.selfDescription)}};var r=function(a){var b=e.adProxies;a=a.adProxies;var c=[];b.length&&
a.length?f(a).each(function(a,d){m(b,d)&&c.push(d)}):c=a;e.adProxies=b.concat(c)},m=function(a,b){return!f(a).find(function(a,c){return c.adSafeId&&c.adSafeId===b.adSafeId})},t=function(a){f(e.inbox).find(function(b,c){return c.srcAsid&&c.srcAsid===a.srcAsid})||e.inbox.push(a)};e.addInformationFromSrc=function(a,b){r(b);t(a);e.srcIsEmbedded=a.srcIsEmbedded;e.selfDescription=b};return e},jc=function(a){var b=[],c={},d={noMe:!0};return{addFrame:function(e,k,f){var m=a.request("adProxy").getAll();e=
new qc(e,k,m,f);b.push(e);c[e.id]=e;e.isMe&&(d=e);return e},getFrame:function(a){return c[a]},list:b,dictionary:c,getMe:function(){return d}}},va=function(a,b){var c=function(a,c){var f=c.adProxies,m="";if(c.isValidForMapping()){if(b)m+=d(f,c.getStringifiedPosition());else{var t;t=""+c.getStringifiedPosition();t+=c.isMe?"*":"";t+=f.length?"."+f[0].tagId:"";m+=t}return m}},d=function(a,b){var c="";return c=a.length?c+f(a).stringify(function(a,c){return b+(n.asid===c.adSafeId?"*":"")+"."+c.tagId},"|"):
c+b};return{output:function(){var b=a.request("frameCollection"),d=f(b.list).stringify(c,"|");return f.toBase(b.getMe().unifiedId,62)+"+"+d}}},nc=function(a){var b=a.request("frameCollection").getMe().getStringifiedPosition(),c=n.contextNode.parentNode,d=a.request("interFrameQuerySelector",c),e=function(a){return a&&a.substr(0,120)+".of"+a.length},f=function(a){var e=!1,e=!u.embedded,f="BODY"!==v.getNodeName(c)&&"HEAD"!==v.getNodeName(c),k;if(k=a.srcIsEmbedded){k="0.1"!==a.version;var w=a.nodeSelector&&
-1===a.nodeSelector.indexOf(h.AD_IDENTIFIER);k=!(k?w:!a.srcIsFriendly)}e&&f&&!k?e=!!d.queryFor(a.nodeSelector):(e=a.positionStr,a=a.srcIsEmbedded&&u.embedded,e=0===b.indexOf(e)||0===e.indexOf(b),e=!(!a||!e));return e};return{output:function(){var c,d=b+"*";c=a.request("adTalkMessageCollection").map(function(a,b){var c;a!==n.asid&&f(b)&&(c=b.positionStr+"."+b.srcAsid+"."+b.transferDuration+"_"+b.srcTagId);return c});c.push(d);c=c.join("|");120y.unifiedId&&(u.unifiedId=y.unifiedId);var v;v=s.now()-d.sentTime;d.transferDuration=v;m=n=k.getFrame(y.id);f.isUndef(m)||f.isUndef(m.selfDescription)?(n=n||k.addFrame(c.source,y.id.split("-"),d),n.addInformationFromSrc(d,y),e()):n.addInformationFromSrc(d,y);(B=b&&a.request("idMapModule").isCandidateForMyIdMap(d))&&r()}catch(z){l.trigger("error",h.ERROR_CODES.ADTALK_DUBIOUS)}};return{sendAdTalkCall:r,sendToKnownFrames:function(){(new ra).send(k)},startListening:function(){c=
new Pb;c.listen(e,m,k)},stopListening:function(){c&&c.stop()},validateMessage:e,processMessage:m,createMessage:k}},rc=function(){var a=l.request("ids"),b=a.getAsid();return{tagId:a.getFwId(),adSafeId:b}},lc=function(){var a,b=[],c=function(a){a=new rc(a);b.push(a);return a};a=c();return{createNew:c,getAll:function(){return b},myIdCard:a}},qb=function(a){var b,c,d=!1,e=function(a){var e=!0;d&&(d=!1,a.stopPropagation?(a.stopPropagation(),a.preventDefault()):a.cancelBubble=!0,b=a.screenX-a.clientX,c=
a.screenY-a.clientY,e=!1);return e};a.browserIs(h.BROWSERS.IE)&&x.addEvent(s.getDoc().documentElement,"click",e,!0);return{determineFramePosition:function(){a.browserIs(h.BROWSERS.IE)&&(d=!0,s.getDoc().documentElement.click());return{scrX:b,scrY:c}}}},sc=function(a,b){var c,d=h.NA,e=d,k=!1,r=!1,m=!1,t=!b,p=function(){var b=s.getIntersectionObserver(function(a){a=a.pop();var b=a.intersectionRect.width*a.intersectionRect.height/(a.boundingClientRect.width*a.boundingClientRect.height)*100;isNaN(b)&&
(b=0);d=Math.min(b,100);c=a.boundingClientRect;d!==e&&s.execAtEndOfThread(function(){l.trigger("IOPivChange",d)});e=d},{threshold:h.VIEWABILITY_IN_VIEW_THRESHOLDS_INTERSECTION_OBSERVER});t&&s.execAtEndOfThread(function(){d===h.NA&&(d=0)});b.observe(w(a));t&&s.execAtEndOfThread(function(){u.isBustedIframe()||l.trigger("delayedViewabilityReady")});k=!0},w=function(b){if(!f.isUndef(b)){if(m){b=a.document;var c=b.createElement("div");f(c.style).mixin({position:"absolute",width:"100%",opacity:"0",height:"100%",
zIndex:-999,top:"0px",left:"0px"});c[h.IAS_DETECTOR]=!0;b.body.appendChild(c);b=c}return b}};return{getPiv:function(){return d},start:function(){var b;try{a.document&&(m=!0,b={bodyElement:a.document.body,document:a.document})}catch(c){r=!0}b&&null!==b.bodyElement?p():b&&b.document?x.whenReady(p,b.document):r?l.request("errors").add(h.ERROR_CODES.BUSTED_IFRAME_IN_IO):p()},isStarted:function(){return k},getAdNodeDimensions:function(){var a;c&&(a=I({scrX:void 0,scrY:void 0,width:c.width,height:c.height}));
return a},isReady:function(){return d!==h.NA}}},na=function(){var a=!1;(function(){x.whenReady(function(){l.trigger("startViewabilityLoop");a=!0})})();return{loopStarted:function(){return a}}};O("loopDelay",[],na,{applies:function(a,b,c){return a.bootstrapOn("allowViewability")},tier:h.TIERS.VIEWABILITY});var tc=function(){return{start:function(a){l.on("measurable",function(){a()})},isApplicable:function(a,b){return!b.browserIs(h.BROWSERS.WEBKIT)}}},uc=function(){return{start:function(a){a()},isApplicable:function(a){return a.isImmediatelyMeasurable()}}},
Ib=function(a,b,c){var d=!1,e=function(){b.impressionIsIdentifiable()&&!d&&(d=!0,l.trigger("notify",n._onMeasurable))};return{start:function(){var b;b=[vc(),wc(),uc(),tc()];(b=f(b).findFirst(function(b,d){return d.isApplicable(c,a)}))&&b.start(e)},isApplicable:function(a){return a.bootstrapOn("useViewabilityNotification")&&f.isDef(n._onMeasurable)}}},wc=function(){return{start:function(a){Qb(l,["adImpression","measurable"]).onAll(function(){a()})},isApplicable:function(a,b){var c=9<=b.getIOSVersion();
return(!b.browserIs(h.BROWSERS.WEBKIT)||c)&&u.isVideo()}}},vc=function(){return{start:function(a){l.once("adImpression",function(){a()})},isApplicable:function(a){return a.isImmediatelyMeasurable()&&u.isVideo()}}},xc=function(a,b,c){var d=["rjss","jss","jload"],e=function(){var b=!1,c=a.getAvidAdSessionContext();f.isDef(c)&&(b=c.isDeferred);return!b};return{accepts:function(){var a=f.isDef(f(d).find(function(a,b){return b===c}));return b.accepts()&&b.isMediaType(h.MEDIA_TYPE.DISPLAY)&&a},isImmediate:e,
isMediaType:b.isMediaType,supportsAdContainerGeometry:function(){return b.supportsAdContainerGeometry()},start:function(){e()||a.addEventListener("ready",function(){l.trigger("adImpression")})}}},yc=function(a){return{accepts:function(){return a.isAvidAvailable()},getAvidAdSessionContext:function(){return a.getAvidAdSessionContext()},isMediaType:function(b){var c,d=a.getAvidAdSessionContext();a.isAvidAvailable()&&f.isDef(d)&&(c=d.mediaType||h.MEDIA_TYPE.DISPLAY);return b===c},supportsAdContainerGeometry:function(){var b=
!1,c=a.getAvidAdSessionContext();f.isDef(c)&&(b=c.avidJsVersion,(c=f.isUndef(b))||(c=f.getNum(b.split(".")[0]),b=f.getNum(b.split(".")[1]),c=2===c?7<=b:3<=c),b=c);return b}}},zc=function(a,b,c){var d=["rjss","jss","jload"];return{accepts:function(){var a=f.isDef(f(d).find(function(a,b){return b===c}));return b.accepts()&&b.isMediaType(h.MEDIA_TYPE.VIDEO)&&a},isImmediate:function(){return!1},isMediaType:b.isMediaType,supportsAdContainerGeometry:function(){return b.supportsAdContainerGeometry()},start:function(){try{a.addEventListener("video",
function(a){"AdImpression"===a.eventSubType&&l.trigger("adImpression")})}catch(b){}}}},Ac=function(a,b,c){var d=["rjss","jss","jload"];return{accepts:function(){var a=f.isDef(f(d).find(function(a,b){return b===c}));return b.accepts()&&b.isMediaType(h.MEDIA_TYPE.DISPLAY)&&a},isImmediate:function(){return!0},isMediaType:b.isMediaType,supportsAdContainerGeometry:function(){return b.supportsAdContainerGeometry()},start:function(){}}},ga=function(a){var b=l.request("omidAdSessionContext");return{accepts:function(){return a&&
a.isSupported&&a.isSupported()},isMediaType:function(a){return a===b.mediaType},supportsAdContainerGeometry:function(){return!0}}},Bc=function(a,b,c){var d=["rjss","jss","jload"];return{accepts:function(){var a=f.isDef(f(d).find(function(a,b){return b===c}));return b.accepts()&&b.isMediaType(h.MEDIA_TYPE.VIDEO)&&a},isImmediate:function(){return!0},isMediaType:b.isMediaType,supportsAdContainerGeometry:function(){return b.supportsAdContainerGeometry()},start:function(){}}},La=function(a){return{resolve:function(){return f(a).findFirst(function(a,
c){return c.environment.accepts()})}}},Ka=function(a,b){var c=!1,d=!1,e=l.request("omidAdSessionContext"),f=function(b){"sessionStart"===b.type&&(e.isNative="native"===b.data.context.adSessionType,(c=!0)&&d&&(C.omidSupported=!0,a()))},r=function(b){e.mediaType=b.data.mediaType;b.data.viewport&&b.data.adView&&(e.impressionViewabilityMeasurement={data:{viewport:b.data.viewport,adView:b.data.adView}});e.isNativeVideo=e.isNative&&"video"===b.data.mediaType;d=!0;c&&d&&(C.omidSupported=!0,a())};return{start:function(){b.registerSessionObserver(f,
"IAS");b.addEventListener("impression",r)}}},Cc=function(a,b){var c=function(a){try{b.trigger("videoPlaybackEvent",{eventType:a.eventSubType,eventData:a.eventData})}catch(c){}};return{start:function(){a.addEventListener("video",c)},addVideoPlaybackEventListener:function(a){b.on("videoPlaybackEvent",a)}}},Dc=function(a,b){var c,d=function(a){var d,f,m;try{d=a.eventData.percentageInView,f=c&&75<=d,m={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:f,isMeasurable:0===d||75<=d,isObstructed:!1,isHidden:!1,numberOfAdverts:1,percentageInView:d,detectionMethod:"av"},b.trigger("screenLocationChanged",m)}catch(t){}};return{start:function(){try{var b=a.getAvidAdSessionContext().avidAdSessionType;c="display"===b||"video"===b;a.addEventListener("viewability",d)}catch(f){}},addScreenLocationChangedListener:function(a){b.on("screenLocationChanged",a)}}},Ec=function(a,b){var c=function(a){try{var c;
"playerStateChange"===a.type?c="fullscreen"===a.data.state?"AdEnteredFullscreen":"AdExitedFullscreen":-1!=="start|firstQuartile|midpoint|thirdQuartile|resume|bufferFinish".indexOf(a.type)?c="AdPlaying":-1!=="complete|pause|bufferStart|skipped".indexOf(a.type)&&(c="AdPaused");b.trigger("videoPlaybackEvent",{eventType:c,eventData:null})}catch(f){__IntegralASDiagnosticCall("omidvideo",f,C.bootstrapper)}};return{start:function(){a.addEventListener("video",c)},addVideoPlaybackEventListener:function(a){b.on("videoPlaybackEvent",
a)}}},wa=function(a,b){var c=!1,d=function(a){var d=a.percentageInView;c=!0;a.viewState=50<=d?h.IN_VIEW:h.OUT_OF_VIEW;a.outOfViewReason=50<=d?"":h.OUT_OF_VIEW_REASONS.GEOM;b.trigger("measurementChanged",a)};return{start:function(){l.trigger("addOutputItem",{output:h.MEDIA_TYPE.DISPLAY_CODE},h.MEDIA_TYPE_CODE,{type:h.IMPRESSION_EVENT});a.addScreenLocationChangedListener(d);a.start()},getStrategyName:function(){return h.MEASUREMENT_STRATEGY.DISPLAY},addMeasurementChangedListener:function(a){b.on("measurementChanged",
a)},isMeasurable:function(){return c}}},Fc=function(a,b,c){var d=f.isDef(a)?a.environment:void 0,e=f.isDef(a)?a.measurementStrategy:void 0,k=function(){return f.isDef(e)};f.isDef(b)&&b.start();return{hasMeasurementStrategy:k,getScreenLocationInfo:function(a){return b.create(a)},isImmediate:function(){return k()?d.isImmediate():!0},isMeasurable:function(){return k()?e.isMeasurable():!1},isMediaType:function(a){return k()?d.isMediaType(a):!1},supportsAdContainerGeometry:function(){return a.environment.supportsAdContainerGeometry()},
start:function(){k()&&d.start()},requiresDelayedViewabilityEvent:function(){k()&&b.requiresDelayedViewabilityEvent()}}},hb=function(a,b,c){var d=l.request("mobileApp");return{create:function(){var e=[],e=e.concat(a.getOmidMeasurementStrategies()),e=e.concat(a.getAvidMeasurementStrategies()),e=e.concat(a.getMraidMeasurementStrategies()),e=(new ca(e)).resolve(),f=new Gc(e),r=new xa(b,c,u,d);return!e&&r.accepts()?new Hc(u.isVideo(),new F):new Fc(e,f,d.isMobileAppEnvironment())}}},ib=function(a){var b=
l.request("mobileApp");return{getOmidMeasurementStrategies:function(){var a=l.request("omidVerificationClient"),b=new ga(a),e=[];if(b.accepts()){var f=new Ic,r=new Jc,m=new Kc(a,new F),f=[{environment:f,measurementStrategy:new Lc(a,new F)},{environment:r,measurementStrategy:new ya(new da,s.getWindow(),new F)}],f=(f=(new ca(f)).resolve())?f.measurementStrategy:{},t=new za(new Aa(new U),new U,r.accepts()),r=new Ac(a,b,n.mode),p=new Ba(m,f,new F,t),b=new Bc(a,b,n.mode),a=new Ca(m,f,new Ec(a,new F),new F,
t);e.push({environment:r,measurementStrategy:p});e.push({environment:b,measurementStrategy:a})}return e},getAvidMeasurementStrategies:function(){var b=l.request("avidJsClient"),d=new yc(b),e=[];if(d.accepts()){var f=new xc(b,d,n.mode),r=new zc(b,d,n.mode),m;m=new Cc(b,new F);if(d.supportsAdContainerGeometry()){var t=new Mc,p=new Nc,h=new ya(new da,s.getWindow(),new F),q=new Oc(b,new F),t=(t=(new ca([{environment:t,measurementStrategy:q},{environment:p,measurementStrategy:h}])).resolve())?t.measurementStrategy:
{},p=new za(new Aa(new U),new U,p.accepts()),h=new Pc(b,new F),b=new Ba(h,t,new F,p);m=new Ca(h,t,m,new F,p)}else p=new Dc(b,new F),b=new wa(p,new F),m=new Da(p,m,new F);e.push({environment:f,measurementStrategy:b});e.push({environment:r,measurementStrategy:m});a.setAvidAdSessionContext(d.getAvidAdSessionContext())}return e},getMraidMeasurementStrategies:function(){var a=[],d=b.isSafeToInjectMraid(),d=new Qc(s.getWindow(),d,b.isMobileAppEnvironment());if(d.accepts()){var e=l.request("context"),e=
new Rc(s.getWindow(),e),f=new Sc(s.getWindow(),new F);e.accepts()?(d=new Tc(s.getWindow(),new F),d=new Da(f,d,new F),d={environment:e,measurementStrategy:d}):(e=new wa(f,new F),d={environment:d,measurementStrategy:e});a.push(d)}return a}}},ca=function(a){return{resolve:function(){var b=f(a).findFirst(function(a,b){return b.environment.accepts()});if(f.isDef(b))return b}}},Gc=function(a){var b=!1,c,d={winDimensions:I({scrX:0,scrY:0,width:0,height:0}),adDimensions:I({scrX:0,scrY:0,width:0,height:0}),
containerDimensions:I({scrX:0,scrY:0,width:0,height:0}),method:h.NA,viewState:h.NA,percentInView:h.PIV_NA,reason:"",obstructed:h.NA,isHidden:h.NA,tabHidden:h.NA,posViewState:h.NA,adCompCount:1},e=function(a){return a?new I({scrX:a.x,scrY:a.y,width:a.width,height:a.height}):I({scrX:0,scrY:0,width:0,height:0})},k=function(a){c={winDimensions:e(a.windowDimensions),adDimensions:e(a.adDimensions),containerDimensions:e(a.containerDimensions),method:a.detectionMethod||h.NA,viewState:a.viewState||h.NA,percentInView:f.isDef(a.percentageInView)?
a.percentageInView:h.PIV_NA,reason:a.outOfViewReason||"",obstructed:f.stringifyTriState(a.isObstructed),isHidden:h.NA,tabHidden:h.NA,posViewState:a.viewState||h.NA,adCompCount:1,shouldDelegateToDomBasedViewability:a.shouldDelegateToDomBasedViewability,sliceStatus:a.sliceStatus,isVideoPlaying:a.isVideoPlaying,isVideoPlayingInFullscreen:a.isVideoPlayingInFullscreen,isSoundOn:a.isSoundOn};a.isMeasurable&&b&&(b=!1,l.trigger("delayedViewabilityReady"))};return{create:function(b){var e=d;if(f.isDef(c))if(a.environment.supportsAdContainerGeometry())e=
c;else if(c.shouldDelegateToDomBasedViewability)e=b,e.method=c.method;else if(0===c.percentInView||75<=c.percentInView)e=c;return e},start:function(){var b;f.isDef(a)&&f.isDef(a.measurementStrategy)&&(b=a.measurementStrategy,b.addMeasurementChangedListener(k),b.start())},requiresDelayedViewabilityEvent:function(){b=!0}}},Da=function(a,b,c){var d=!1,e=!1,k=!1,r,m,t,p,w=function(){if(!f.isUndef(m)){var a=[],b,q;d?(e?(q=!1,b=100):(q=p,b=t),50>b&&a.push(h.OUT_OF_VIEW_REASONS.GEOM)):(q=!1,b=0,a.push(h.OUT_OF_VIEW_REASONS.VIDEO));
k=!0;m.shouldDelegateToDomBasedViewability=q;m.percentageInView=b;m.viewState=50>b?h.OUT_OF_VIEW:h.IN_VIEW;m.outOfViewReason=a.join(".");r=m;c.trigger("measurementChanged",r)}},q=function(a){m=a;t=a.percentageInView;p=a.shouldDelegateToDomBasedViewability;w()},s=function(a){a=a.eventType;"AdEnteredFullscreen"===a?e=!0:"AdExitedFullscreen"===a?e=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(a)?d=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped".indexOf(a)&&(d=!1);w()};return{start:function(){l.trigger("addOutputItem",
{output:h.MEDIA_TYPE.VIDEO_CODE},h.MEDIA_TYPE_CODE,{type:h.IMPRESSION_EVENT});a.addScreenLocationChangedListener(q);a.start();b.addVideoPlaybackEventListener(s);b.start()},getStrategyName:function(){return h.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(a){c.on("measurementChanged",a)},isMeasurable:function(){return k}}},Rc=function(a,b){return{accepts:function(){return b.isInMobiMraidVideo()},isImmediate:function(){return!1},supportsAdContainerGeometry: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){}}}},Tc=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)}}},Pc=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:h.DETECTION_METHODS.AVID,outOfViewReason:d(a.eventData.reasons)};b.trigger("containerGeometryMeasurementChanged",a)},d=function(a){var b={inactive:h.OUT_OF_VIEW_REASONS.FOCUS,viewport:h.OUT_OF_VIEW_REASONS.GEOM,clipped:h.OUT_OF_VIEW_REASONS.GEOM,obstructed:h.OUT_OF_VIEW_REASONS.OBSTRUCTION,
backgrounded:h.OUT_OF_VIEW_REASONS.FOCUS,notFound:h.OUT_OF_VIEW_REASONS.HIDDEN},c=[];if(!a)return"";f(a).each(function(a,d){var e=b[d];e&&0>c.indexOf(c)&&c.push(e)});return c.join(".")};return{start:function(){a.addEventListener("viewability",c)},addAdContainerGeometryMeasurementChangedListener:function(a){b.on("containerGeometryMeasurementChanged",a)},translateAvidOutOfViewReasons:d}},za=function(a,b,c){function d(a,b,c){c=m(b,c);a=k(a,b,c);return a.width*a.height}var e=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=B.width*B.height;c&&Q&&(A=!1,J=J||"",A||-1!==J.indexOf(h.OUT_OF_VIEW_REASONS.GEOM)||(J=h.OUT_OF_VIEW_REASONS.GEOM+(""!==J?"."+J:"")));if(A&&0c.indexOf(c)&&c.push(e)});return c.join(".")};return{start:function(){void 0!==
c.impressionViewabilityMeasurement&&d(c.impressionViewabilityMeasurement);a.addEventListener("geometryChange",d)},addAdContainerGeometryMeasurementChangedListener:function(a){b.on("containerGeometryMeasurementChanged",a)},translateOmidOutOfViewReasons:e}},Ic=function(){var a=l.request("omidAdSessionContext");return{accepts:function(){return a&&a.isNative}}},Lc=function(a,b){var c=l.request("omidAdSessionContext"),d=function(a){a=a.data.adView.geometry;var c=!!a;b.trigger("mobileAppGeometryChanged",
{adGeometry:{x:0,y:0,width:c?a.width:0,height:c?a.height:0},adFound:c})};return{start:function(){void 0!==c.impressionViewabilityMeasurement&&d(c.impressionViewabilityMeasurement);a.addEventListener("geometryChange",d)},addAdGeometryMeasurementChangedListener:function(a){b.on("mobileAppGeometryChanged",a)}}},Jc=function(){var a=l.request("omidAdSessionContext");return{accepts:function(){return a&&!a.isNative}}},Ca=function(a,b,c,d,e){var k=!1,r=!1,m,t,p,w,q,n=function(){if(!(f.isUndef(t)||f.isUndef(p)||
f.isUndef(w))){q=!0;var a=e.calculateGeometricMeasurement(t,p),b=k&&r,c=k&&50<=a.percentageInView,l={windowDimensions:a.windowDimensions,containerDimensions:a.containerDimensions,adDimensions:a.adDimensions,percentageInView:a.percentageInView,detectionMethod:a.detectionMethod,isMeasurable:!0,isObstructed:a.isObstructed,sliceStatus:a.sliceStatus,isVideoPlaying:k,isVideoPlayingInFullscreen:b,isSoundOn:!0};b&&(l.percentageInView=100);b||c?l.viewState=h.IN_VIEW:(l.viewState=h.OUT_OF_VIEW,l.outOfViewReason=
a.outOfViewReason||h.OUT_OF_VIEW_REASONS.VIDEO);m=l;d.trigger("videoGeometryMeasurementChanged",m)}},s=function(a){t=a;n()},u=function(a){p=a;n()},B=function(a){w=a;a=a.eventType;"AdEnteredFullscreen"===a?r=!0:"AdExitedFullscreen"===a?r=!1:-1!=="AdStarted|AdVideoStart|AdPlaying".indexOf(a)?k=!0:-1!=="AdSkipped|AdUserClose|AdPaused|AdVideoComplete|AdStopped|AdError".indexOf(a)&&(k=!1);n()};return{start:function(){l.trigger("addOutputItem",{output:h.MEDIA_TYPE.VIDEO_CODE},h.MEDIA_TYPE_CODE,{type:h.IMPRESSION_EVENT});
a.addAdContainerGeometryMeasurementChangedListener(s);a.start();b.addAdGeometryMeasurementChangedListener(u);b.start();c.addVideoPlaybackEventListener(B);c.start()},getStrategyName:function(){return h.MEASUREMENT_STRATEGY.VIDEO},addMeasurementChangedListener:function(a){d.on("videoGeometryMeasurementChanged",a)},isMeasurable:function(){return q}}},ya=function(a,b,c){var d,e=function(){var b=a.find(),e,m=!0;f.isDef(b)?(e=b.getBoundingClientRect(),e={x:e.left,y:e.top,width:e.width,height:e.height},
b.hasOwnProperty("adWasClipped")&&(e.adWasClipped=!0)):m=!1;if(b=m)b=e,b=!f.isDef(d)||!1!==f(b).compareTo(d);b&&(d=e,c.trigger("mobileAppGeometryChanged",{adGeometry:e,adFound:m}))};return{start:function(){e();b.setInterval(e,50)},addAdGeometryMeasurementChangedListener:function(a){c.on("mobileAppGeometryChanged",a)}}},Qc=function(a,b,c){return{accepts:function(){var d=f(a.mraid).isObj();return c&&(d||b)},isImmediate:function(){return!0},supportsAdContainerGeometry:function(){return!1},start:function(){}}},
Sc=function(a,b){var c=!1,d=function(){var c,d,e;try{c=a.mraid.isViewable()?100:0;var f={x:0,y:0,width:0,height:0};e=100===c?[!0]:[!1];d={windowDimensions:f,adDimensions:f,containerDimensions:f,shouldDelegateToDomBasedViewability:!1,isMeasurable:!0,isObstructed:!1,isHidden:!1,percentageInView:c,detectionMethod:h.DETECTION_METHODS.MRAID,sliceStatus:e};b.trigger("mraidScreenLocationChanged",d)}catch(k){}},e=function(){var b=a.mraid;return f(b).isObj()&&f.isFunction(b.isViewable)},k=function(){var b=
a.mraid;d();b.addEventListener("viewableChange",d)},r=function(){var b=a.mraid;e()&&(c=!0,"loading"===b.getState()?b.addEventListener("ready",function(){k()}):k())},m=function(){c||r()};return{start:function(){var b=!0;if(f.isDef(a.mraid)||v.containsScriptTagWithSrc("mraid.js"))b=!1;l.trigger("addOutputItem",{output:f.stringifyTriState(b)},"mi",{type:"impression"});b?l.trigger("exec","mraid.js",m):r()},addScreenLocationChangedListener:function(a){b.on("mraidScreenLocationChanged",a)}}},Ta=function(a,
b,c){var d={},e=function(c){var d=f.noop;b.bootstrapOn("useViewabilityNotification")&&(d=function(){var b=n[c];a.skipAsFraudulent()||l.trigger("notify",b)});return d};(function(){c&&f(c).map(function(a,b){d[a]=e(b)})})();return{getCallbacks:function(){return d}}},Na=function(){var a=new R({tiv:[1E4]}),b=f([h.IN_VIEW,h.PARTIAL_VIEW_PLUS]);return{timeInViewThresholds:a,type:h.DT_CODES.FULLY_INVIEW,rts:{},isInView:function(a){var d=s.max(a.fullPercentInView||0,a.percentInView);return b.contains(a.viewState)&&
100===d},applies:function(a,b){return a.on("abcAudit")&&925955==n.anId&&b.usesIASFullyInViewCustomMetric()},minUnit:1E3}},Ma=function(a,b){var c,d,e;c=a.on("everySecond");var f=b.isVideo();d=[1E3,2E3,3E3,4E3,5E3,6E3,7E3,8E3,9E3,1E4,11E3,12E3,13E3,14E3,15E3];e=[1E3,5E3,15E3];var r=[2E3,5E3,15E3];c?(c=new R({tiv:d}),d=d[0]):f?(c=new R({tiv:r}),d=r[0]):(c=new R({tiv:e}),d=e[0]);e={5E3:"_onInViewMRC5",15E3:"_onInViewMRC15"};e[d]="_onInViewMRC";return{timeInViewThresholds:c,type:h.DT_CODES.PING,rts:e,
isInView:function(a){return-1!==(h.IN_VIEW+"|"+h.PARTIAL_VIEW_PLUS).indexOf(a.viewState)},applies:!0,minUnit:1E3}},Pa=function(a,b){var c;c=a.on("everySecond");var d=b.isVideo(),e=b.usesIASFullyInViewCustomMetric(),f=[1E3,2E3,3E3,4E3,5E3,6E3,7E3,8E3,9E3,1E4,11E3,12E3,13E3,14E3,15E3],r=[1E3,5E3,15E3],m=[2E3,5E3,15E3],t=function(a){var b=s.max(a.fullPercentInView||0,a.percentInView);return-1!==(h.IN_VIEW+"|"+h.PARTIAL_VIEW_PLUS).indexOf(a.viewState)&&100===b};c=c?new R({tiv:f}):d?new R({tiv:m}):new R({tiv:r});
l.provide("isFullyInViewProvider",{isFullyInView:t});return{timeInViewThresholds:c,type:h.DT_CODES.FULLY_INVIEW,isInView:t,applies:function(){return e},minUnit:1E3}},Oa=function(a,b){return{timeInViewThresholds:new R({tiv:[0]}),type:h.DT_CODES.FULLY_INVIEW,rts:{0:"_onInViewFull"},isInView:function(a){var b=s.max(a.fullPercentInView||0,a.percentInView);return-1!==(h.IN_VIEW+"|"+h.PARTIAL_VIEW_PLUS).indexOf(a.viewState)&&100===b},applies:function(){return b.usesGroupMCustomMetric()},minUnit:1E3}},Ra=
function(a,b){var c,d,e=s.getMaxNumber(),k=b.isVideo();c=new R(a);d={};f.isDef(a.rts)&&(d={timThreshold:a.rts});return{timeInViewThresholds:c,type:h.DT_CODES.CUSTOM,rts:d,isInView:function(b){if(!b.adDimensions)return!1;var c,d,p,l=b.adDimensions.area(),q=1===b.tabHidden,n=s.max(b.fullPercentInView||0,b.percentInView);c=f(a.thresholds).findFirst(function(a,b){d=b.lb||0;p=b.ub||e;if(l>=d&&l<=p)return!0});c=!q&&n>=c.piv;b.method==h.DETECTION_METHODS.AD_PLACEHOLDER&&0===a.tiv&&(c=!1);k&&(c=c&&b.isVideoPlaying);
return c},metricId:a.id,minUnit:a.minunit?1E3*a.minunit:1E3,thresholdType:a.thresholdType}},Qa=function(a,b,c){var d=b.isVideo()?"video":"display",e=b.isMobileApp()?"app":"web",k=b.isDeviceTypeGroupMobile()?"mobile":"desktop",h=f(a.customViewability).isArray()&&0=
c});f.isUndef(a)&&c.doEligibleJobs(b)},s=function(a,b){var c={};c[a]=b;l.trigger("addOutputItem",{output:c},{minDt:!1})},u=function(a){!e&&a.sliceStatus&&(e=[],k=[],m=[],t=[],f(a.sliceStatus).each(function(a){e.push(new Z(1));m.push(0);d&&(k.push(new Z(1)),t.push(0))}))},v=function(a){f.isUndef(a.sliceStatus)||(e||u(a),q(a))};return{start:function(){h=d?n:p;a.addMeasurementChangedListener(v)}}},Sa=function(a,b){return{isInView:a.isInView,addMeasurementChangedListener:function(a){b.addMeasurementChangedListener(a)}}},
Bb=function(a,b,c,d,e,f,r,m,t,p){var l=!1,q=u.isVideo(),n=f.request("mobileApp"),y=X().applies(c,e),v=c.browserIs(h.BROWSERS.GECKO)||c.browserIs(h.BROWSERS.IE)&&e.on("rattie")||y,B=u.xDomainIframe&&!v,A=new sa(10),N=function(){e.on("viewabilityready")&&!l&&(d.send(h.DT_CODES.VIEWABILITY_READY),f.trigger("measurable"),l=!0)};f.on("delayedViewabilityReady",function(){z();N()});f.on("delayedViewabilityReadyCallOnly",N);var z=function(c){c=c||!1;try{A.start();var d,e;b.hasMeasurementStrategy()?e=n.isMobileAppEnvironment()&&
b.supportsAdContainerGeometry()?b.getScreenLocationInfo({},c):b.getScreenLocationInfo(m.collect(),c):(e=m.collect(),n.isMobileAppEnvironment()?(e.viewState=h.NA,e.method=h.NA,e.percentInView=h.NA):B&&(e.viewState=h.NA,e.percentInView=h.PIV_NA),q&&!u.isAvid()&&p.setVideoSpecificScreenEventFields(e));d=t.registerLocation(e);c||a.trigger("measurementChanged",e);A.stop();var l=s.round(A.getTime()/A.getCount());r.addItem({output:l},"lt",{type:h.DT_CODES.UNLOAD});return d}catch(w){f.trigger("error",h.ERROR_CODES.CHECK_SCREEN_LOC)}};
return{checkScreenLoc:z,stringifyPingTimes:function(){return e.on("everySecond")?"1-2-3-4-5-6-7-8-9-10-11-12-13-14-15":q?"2-5-15":"1-5-15"},isImmediatelyMeasurable:function(){var a=u.xDomainIframe,d=a&&c.browserIs(h.BROWSERS.WEBKIT),e=a&&c.browserIs(h.BROWSERS.MSEDGE),a=a&&y,d=!d&&!e&&!a;return n.isMobileAppEnvironment()?b.isMeasurable():d},requiresDelayedViewabilityEvent:function(){n.isMobileAppEnvironment()&&b.hasMeasurementStrategy()&&b.requiresDelayedViewabilityEvent()},addMeasurementChangedListener:function(b){a.on("measurementChanged",
b)}}};O("viewabilityLoopLifecycle",["viewability","features","context","browser"],function(a,b,c,d){var e,k=Uc(c),r=[new Vc,new Wc(k)],m=function(){return f(r).findFirst(function(a,e){return e.applies(d,b,c)?e:void 0})},t=function(a){"sessionFinish"===a.type&&l.trigger("adSessionComplete")},p=function(a){x.addEvent(C,a,function(){l.trigger("adSessionComplete")},!1)},w=function(){var a=new Y(h.DT_CODES.VIDEO_EVENTS);l.trigger("sendDt",a.callType,a.enumerator,function(){var a={id:n.videoId,msg:"unloadComplete",
messageType:"misc"};s.getWindow().postMessage(JSON.stringify(a),"*")})};l.once("startViewabilityLoop",function(){var b,c=l.request("mobileApp").isMobileAppEnvironment();l.request("ids").impressionIsIdentifiable()&&(e=Ub(a.checkScreenLoc,k.getPollingFrequency()),(b=m())?b.start(e):e.start(!0),c?u.isOmid()?l.request("omidVerificationClient").registerSessionObserver(t,"IAS"):p("MOBILE_APP_TEST_EVENT_AD_SESSION_COMPLETE"):p("beforeunload"))});l.once("adSessionComplete",function(){!c.isVideo()||c.isAvid()||
c.isOmid()||w();l.trigger("unload");e&&e.stop();l.trigger("endAdSession");l.trigger("stopAdTalk")})},{tier:h.TIERS.VIEWABILITY});var Uc=function(a){return{getPollingFrequency:function(){return a.isVideo()?200:100},getOptimizedPollingFrequency:function(){return 1E3}}},Wc=function(a){var b,c,d,e,f,h=function(m){d&&!f&&1>m?(f=!0,s.setTimeout(function(){h(m)},1E3)):(e=1>m,!c&&e?(c=!0,b.updateFrequency(a.getOptimizedPollingFrequency())):c&&!e&&(c=!1,b.updateFrequency(a.getPollingFrequency(),!0)))},m=function(a){h(a.percentInView)};
return{applies:function(a,b,c){var e=l.request("mobileApp");a=(new xa(b,a,c,e)).accepts();b=b.on("viewabilityOptimization")&&!a;d=c.usesZeroPivCustomMetric();return b},start:function(a){b=a;b.start(!0);l.on("IOPivChange",h);l.on("newScreenEvent",m)}}},Vc=function(){var a,b,c,d=!1,e=function(f){if(c&&!d&&1>f)d=!0,s.setTimeout(function(){e(f)},1E3);else return 1>f?(a||b.stop(!0),a=!0):a&&(a=!1,b.start(!0)),a};return{applies:function(a,b,d){c=d.usesZeroPivCustomMetric();var e=X();return b.on("viewabilityOptimization")&&
e.applies(a,b,d)&&d.isDeviceTypeGroupMobile()},start:function(a){b=a;b.start(!0);l.on("IOPivChange",e)}}},ad=function(a,b,c,d,e,k){var r,m,t,p,w,q,L,y,D,B=v.getElementsWindow(b);v.getElementsDocument(b);l.provide("iframeCalculatorHelper",Xc(B));var A=Yc(b,d),N=h.AD_IDENTIFIER+"-"+n.asid,z=!1,E=I({}),J=u.isDeviceTypeGroupMobile(),Q=u.usesGroupMCustomMetricMobilePassThru(),H,F=function(){if(!r)if(r=A.calcDims(b,d,t),c===h.DETECTION_METHODS.VIDEO&&u.embedded){var a=r,e=(new I(b)).getRounded();try{a.set("width",
e.width),a.set("height",e.height)}catch(f){l.trigger("error",h.ERROR_CODES.VIDEO_IN_IFRAME_DIMS_CALC)}}else c===h.DETECTION_METHODS.AD_PLACEHOLDER&&r.treatAsPlaceholder();return r},P=function(){var b,d=u.xDomainIframe&&z;b=J&&z&&t.isReady();b=d||b;d=A.getClippedDims&&(c===h.DETECTION_METHODS.VIDEO&&u.embedded||u.isCeltra());b?m=t.getPiv():f.isUndef(m)&&(b=!J&&(u.friendly||f.isDef(C.mozInnerScreenX))&&e.on("offscreen"),y=F(),L=new I(v.calcWinDims()),q=new I(b?v.calcMonDims():{}),D=d?A.getClippedDims():
E,m=a.calcPercentInView(y,L,q,D));return m},V=function(){return a.calcInitialViewState(P())},Ea=function(){return b===C?!1:F().isHidden()},G=function(a,b){return u.isVideo()?s.getDoc().body:a.document&&a.document.body?a.document.body:b.contentDocument&&b.contentDocument.body?b.contentDocument.body:b};(function(){var c=s.getWindow(),e=s.getDoc(),f=b===c,k=e.body,h=new X,m=l.request("browser"),r=l.request("features"),q=l.request("context"),n=!u.xDomainIframe,y=G(b,d),e=f&&k?e.body:b;H=u.friendlyIframe?
c.frameElement:e;x.addEvent(e,"click",function(){l.trigger("adComponentClicked")});x.addEvent(e,"mouseover",function(){l.trigger("adComponentMousedOver")});h.applies(m,r,q)?(t=sc(b,n),t.start(),z=!0,Q&&(p=new Fa(Zc,F(),y))):Q&&(w=new $c(a))})();return{mark:function(){v.setAttributeOf(H,N,"")},cleanup:function(){v.removeAttributeOf(H,N)},isNode:function(a){return b===a},isHidden:Ea,isObstructed:function(){return!1},getDims:F,getPercentInView:P,getLocationState:V,getOnPageViewability:function(){return Ea()?
h.OUT_OF_VIEW:V()},getDetectionMethod:function(){return c},getContainerDims:function(){return A.allowsOptimization?r:I(d)},refresh:function(){D=y=L=q=m=r=void 0;if(k){var a,c;if(!u.isDomless()&&(c=b.parentNode)){for(;b!==C&&c&&c!==K&&!a;)a=c===d,c=c.parentNode;a||(d=b.parentNode)}}},getAdNode:function(){return b},getSliceStatus:function(){var a;p&&p.isReadyToMeasure()?a=p.getSliceStatus():u.friendly&&w&&f.isDef(y)&&(a=w.getSliceStatus(y,L,q,D));return a}}},bd=function(a,b){var c=[],d,e=f([]),k=function(){return c[0]&&
c[0].getDetectionMethod()===h.DETECTION_METHODS.AD_PLACEHOLDER},r=function(m,t,p,r){var q=k()||0===c.length;m=ad(a,m,t,p,b,r);k()&&(p=c.shift(),e=f(c),p.cleanup(),d=void 0);c.push(m);e=f(c);q&&m.mark();q&&t!==h.DETECTION_METHODS.AD_PLACEHOLDER&&l.trigger("primaryadfound",m)},m=function(){if(d)return d;var a,b=!1,c=0,f=0;e.each(function(d,e){var k;k=e.getDims();k.hasValidDims()&&(a=e.getPercentInView(),b=a!==h.NA,k=k.area(),c+=k,f+=a/100*k)});return d={totalArea:c,totalInView:f,hasMeasurement:b}},
t=function(){var a;a=m();a=a.hasMeasurement?s.round(a.totalInView/a.totalArea*100):h.PIV_NA;isNaN(a)&&(a=0);return a},p=function(){var c=m().totalArea>=h.MRC_LARGE_AD_SIZE&&b.on("largeAd")&&!u.isVideo();return a.calcInitialViewState(t(),c)},n=function(a){var b=-1;e.each(function(c,d){d.isNode(a)&&(b=c)});return b},q=function(a){return function(){return c[0]&&c[0][a]()}};l.on("adComponentAdded",function(a){f(a).each(function(a,b){-1===n(b)&&r(b,h.DETECTION_METHODS.MUTATION)})});l.on("adComponentRemoved",
function(a){f(a).each(function(a,b){var d=n(b);-1v.getNodeArea(b)&&(a=b,b=v.findElementsWithSize(b)));return b},getAdContainer:function(){return a},allowForAdContainerChange:!0}},id=function(){return{usePlaceholder:!0,detectionMethod:h.DETECTION_METHODS.AD_HUNT,isApplicable:function(){return!0},find:kd,getAdContainer:function(){return n.contextNode.parentNode},allowForAdContainerChange:!0}},ed=function(){return{detectionMethod:h.DETECTION_METHODS.VIDEO,find:l.request("video").findAdNode,isApplicable:u.isVideo,getAdContainer:function(){return n.contextNode.parentNode},
allowForAdContainerChange:!0}},Yc=function(a,b){var c,d;c=[od(),pd(),qd()];d=f(c).findFirst(function(c,d){return d.isApplicable(a,b)});c=rd();c.isApplicable(b)&&(c.setBaseStrategy(d),d=c);return d},qd=function(){return{calcDims:function(a,b){var c,d,e=new I(a);v.isClippable(a,b)&&(c=v.getClippedDimensions(a,b),d=e.getRounded(),e.set("height",c.heightq:!0;w=s.now();0===b.adDimensions.area()&&(p=0);n||(p=0);var C=p;t.push({tm:u.getTagTime(),piv:C});3=x&&b.isVideoPlaying):p=!E&&p>=x;b.viewState=p?h.IN_VIEW:h.OUT_OF_VIEW;b.percentInView=B();z=[];E=f(b.reason);x=h.OUT_OF_VIEW_REASONS;p||z.push(x.GEOM);E.contains(x.HIDDEN)&&z.push(x.HIDDEN);E.contains(x.OBSTRUCTION)&&z.push(x.OBSTRUCTION);b.reason=z;b.sliceStatus=e.getSliceStatus();v||(v=!0,s.execAtEndOfThread(A))}else b.viewState=h.NA,b.percentInView=
-1;return b},start:function(){l.on("endAdSession",z);c&&s.setTimeout(E,2E3)},getStrategyName:function(){return"mobileWebXdomainSafari"},isMeasurable:function(){return y},isImmediate:function(){return!0},hasMeasurementStrategy:function(){return!0}}},xa=function(a,b,c,d){return{accepts:function(){var e=c.xDomainIframe,f=a.bootstrapOn("mobOrTab"),r=a.on("ios"),m=b.browserIs(h.BROWSERS.WEBKIT),l=9<=b.getIOSVersion(),p=d.isMobileAppEnvironment();return e&&f&&r&&m&&l&&!p},isImmediate:function(){return!1},
start:function(){}}},Ad=function(a,b,c,d,e,k){var r,m=n.birthdate+""+s.round(1E6*s.random()),l=101,p,w,q,u=!1,v=function(){return'