var __IntegralASDiagnosticCall = (function() { try { var alreadySent = {}; return function(code, err, config) { try { var gen = function(code, err, config) { var url = '//diag.adsafeprotected.com/js?'; try { var errMsg = err && err.message ? encodeURIComponent(err.message.replace(/ /g, '-')).substring(0, 200) : ''; url += 'code:fwjs-diag-' + code; url += '&err:' + errMsg; url += '&codeanderr:' + code + '_' + errMsg; if (config) { url += '&version:' + config.version || ''; url += '&server:' + config.mn || ''; url += '®ion:' + config.region || ''; url += '&mode:' + config.mode || ''; url += '&forceAppend:' + config.forceAppend || ''; url += '&asid:' + config.asid || ''; url += '&anId:' + config.anId || ''; url += '&advEntityId:' + config.advEntityId || ''; url += '&pubEntityId:' + config.pubEntityId || ''; url += '&mobOrTab:' + config.mobOrTab || ''; url += '&app:' + config.app || ''; url += '&mobAppWebview:' + config.mobAppWebview || ''; } url += '&domless:' + __IASScope.isDomless; } catch (e) { url += '&diagx:' + (e && e.message ? e.message.toString().replace(/ /g, '-') : ''); } return url; }; var send = function(url) { if (__IASScope.isDomless && __IASOmidVerificationClient && __IASOmidVerificationClient.sendUrl) { __IASOmidVerificationClient.sendUrl(url); } else { var img = new Image(); img.src = url; } }; if (!alreadySent[code] && Math.random() < 0.01) { alreadySent[code] = true; send(gen(code, err, config)); } } catch (e) {} }; } catch (e) { return function() {}; } })(); try { var __IntegralASConfig = { jsDoSplit: false, debug: "false", jsDiag: 'true', version: '19.8.397', 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'}, sp_cdnDomain: 'cdn.adsafeprotected.com', sp_cdnScripts: {xsca: "static.adsafeprotected.com/xsca.17.4.85.js", sca: "static.adsafeprotected.com/sca.17.6.2.js", main: "static.adsafeprotected.com/main.19.8.397.js"}, protocol: 'https', jsref: "https:\/\/b0b4f74cf45a0f9fbd8dbc22b03caf5a.safeframe.googlesyndication.com\/", asid: "e96b6fd1-bf4e-11ed-9117-0aa7fc2590ec", allowViewability: "true", jsFeatures: "viewabilityready,rattie,exch,usedtdomain,resolution,usetpl,idMap,offscreen,everySecond:1,slid,fm2:1,largeAd,chromeNativeIO,ios,ancestor,avmm,avgrn,swapids,pIntervals:10,usesca,bustediframe,impFailSafe,yieldmo,sfdetect,pmdetect,novidnodeerr:5,viewabilityOptimization,usehaps,customMetric,sizmek,celtra,groupmCM,avidPropertiesInImpression,abcAudit,mrcAudit:1,bbs,bas,spg,exitOASRSEarly:1,encodeInvalidUrlChars,recoverOmidLostTime,forceKeepGoogleAdNode", minimizeCalls: "false", adWidth: "970", adHeight: "250", forceAppend: "true", sp_imp_maxLength: 10000, 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=1340169", adsafeSrc: "https:\/\/fw.adsafeprotected.com\/rfw\/st\/1340169\/69441110\/skeleton.js?bundleId=${BUNDLE_ID}&bidurl=https:\/\/www.ilmessaggero.it\/schede\/tumori_migliori_ospedali_quali_sono_mappa_e_classifica-7251166.html", tpiLookupURL: "", getTpl: "false", use100v: false, useBapiCallback: "", useViewabilityNotification: "", scriptUrl: "https:\/\/fw.adsafeprotected.com\/rjss\/st\/1340169\/69441110\/skeleton.js?bundleId=${BUNDLE_ID}&bidurl=https:\/\/www.ilmessaggero.it\/schede\/tumori_migliori_os", accountForSadImps: '', fwMonitoring: 'false', mn: "jsserver-primary-65fb65bbbb-jk29b", mobOrTab: false, app: false, mobAppWebview: false, mobFwUrl: "https:\/\/mobile.adsafeprotected.com\/internal\/monitoring\/app\/initial\/1340169\/69441110\/", anId: '', advEntityId: '1340169', pubEntityId: '69441110', videoId: '', rts: {}, customViewability: [], serverSideAppDetection: [], groupm_native_publisher: false, integration: 4, staticServer: '\/\/static.adsafeprotected.com\/', passback: 'https:\/\/static.adsafeprotected.com\/passback_970x250.js', iasProxyPartnerDomain: '', region: 'ie' }; try { __IASScope = typeof window !== "undefined" ? window : this; __IntegralASConfig.isResolved = !!__IntegralASConfig.jsFeatures; __IntegralASConfig.staticMode = !__IntegralASConfig.isResolved; __IntegralASConfig.birthdate = new Date().getTime(); __IntegralASConfig.perfBirth = (typeof __IASScope.performance !== "undefined" && typeof __IASScope.performance.now === 'function') ? __IASScope.performance.now() : null; ;(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 = {}; var versions = ['1.3.25-iab3167']; var additionalVersionString = ''; if (!!additionalVersionString) { versions.push(additionalVersionString); } 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) == null) { // Define the top level property in the global scope Object.defineProperty(omidGlobal, key, { // value: {}, Removed trailing comma for build value: {} }); } versions.forEach(function(version) { if (Object.getOwnPropertyDescriptor(omidGlobal[key], version) == null) { var frozenObject = deepFreeze(exports[key]); // Define the object exports keyed-off versions Object.defineProperty(omidGlobal[key], version, { get: function () { return frozenObject; }, // enumerable: true, Removed trailing comma for build enumerable: true }); } }); } } } }(typeof global === 'undefined' ? this : global, function(omidGlobal, omidExports) { 'use strict'; var $jscomp = $jscomp || {}; $jscomp.scope = {}; $jscomp.arrayIteratorImpl = function(a) { var b = 0; return function() { return b < a.length ? {done:!1, value:a[b++]} : {done:!0}; }; }; $jscomp.arrayIterator = function(a) { return {next:$jscomp.arrayIteratorImpl(a)}; }; $jscomp.makeIterator = function(a) { var b = "undefined" != typeof Symbol && Symbol.iterator && 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)); }; $jscomp.ASSUME_ES5 = !1; $jscomp.ASSUME_NO_NATIVE_MAP = !1; $jscomp.ASSUME_NO_NATIVE_SET = !1; $jscomp.SIMPLE_FROUND_POLYFILL = !1; $jscomp.objectCreate = $jscomp.ASSUME_ES5 || "function" == typeof Object.create ? Object.create : function(a) { var b = function() { }; b.prototype = a; return new b; }; $jscomp.underscoreProtoCanBeSet = function() { var a = {a:!0}, b = {}; try { return b.__proto__ = a, b.a; } catch (c) { } return !1; }; $jscomp.setPrototypeOf = "function" == typeof Object.setPrototypeOf ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(a, b) { a.__proto__ = b; if (a.__proto__ !== b) { throw new TypeError(a + " is not extensible"); } return a; } : null; $jscomp.inherits = function(a, b) { a.prototype = $jscomp.objectCreate(b.prototype); a.prototype.constructor = a; if ($jscomp.setPrototypeOf) { var c = $jscomp.setPrototypeOf; c(a, b); } else { for (c in b) { if ("prototype" != c) { if (Object.defineProperties) { var d = Object.getOwnPropertyDescriptor(b, c); d && Object.defineProperty(a, c, d); } else { a[c] = b[c]; } } } } a.superClass_ = b.prototype; }; var module$exports$omid$common$constants = {AdEventType:{IMPRESSION:"impression", LOADED:"loaded", GEOMETRY_CHANGE:"geometryChange", SESSION_START:"sessionStart", SESSION_ERROR:"sessionError", SESSION_FINISH:"sessionFinish", MEDIA:"media", VIDEO:"video", 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", STATE_CHANGE:"stateChange"}, MediaEventType:{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"}, ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript", UNSPECIFIED:"unspecified", LOADED:"loaded", BEGIN_TO_RENDER:"beginToRender", ONE_PIXEL:"onePixel", VIEWABLE:"viewable", AUDIBLE:"audible", OTHER:"other"}, ErrorType:{GENERIC:"generic", VIDEO:"video", MEDIA:"media"}, AdSessionType:{NATIVE:"native", HTML:"html", JAVASCRIPT:"javascript"}, EventOwner:{NATIVE:"native", JAVASCRIPT:"javascript", NONE:"none"}, AccessMode:{FULL:"full", DOMAIN:"domain", LIMITED:"limited"}, AppState:{BACKGROUNDED:"backgrounded", FOREGROUNDED:"foregrounded"}, Environment:{APP:"app", WEB:"web"}, InteractionType:{CLICK:"click", INVITATION_ACCEPT:"invitationAccept"}, CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript", HTML_DISPLAY:"htmlDisplay", NATIVE_DISPLAY:"nativeDisplay", VIDEO:"video", AUDIO:"audio"}, MediaType:{DISPLAY:"display", VIDEO:"video"}, Reason:{NOT_FOUND:"notFound", HIDDEN:"hidden", BACKGROUNDED:"backgrounded", VIEWPORT:"viewport", OBSTRUCTED:"obstructed", CLIPPED:"clipped", UNMEASURABLE:"unmeasurable", NO_WINDOW_FOCUS:"noWindowFocus"}, 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", LEFT:"left", Y:"y", TOP:"top", 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", OBSTRUCTION_CLASS:"obstructionClass", OBSTRUCTION_PURPOSE:"obstructionPurpose", OBSTRUCTION_REASON:"obstructionReason", PIXELS:"pixels", HAS_WINDOW_FOCUS:"hasWindowFocus"}, MeasurementStateChangeSource:{CONTAINER:"container", CREATIVE:"creative"}, ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"}, CommunicationType:{NONE:"NONE", DIRECT:"DIRECT", POST_MESSAGE:"POST_MESSAGE"}, OmidImplementer:{OMSDK:"omsdk"}}; 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] || void 0 !== 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; this.communicationType_ = module$exports$omid$common$constants.CommunicationType.NONE; }; 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.serialize = function(a) { return JSON.stringify(a); }; module$exports$omid$common$Communication.prototype.deserialize = function(a) { return JSON.parse(a); }; module$exports$omid$common$Communication.prototype.isDirectCommunication = function() { return this.communicationType_ === module$exports$omid$common$constants.CommunicationType.DIRECT; }; module$exports$omid$common$Communication.prototype.isCrossOrigin = function() { }; 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, "Could not complete the test successfully - "].concat($jscomp.arrayFromIterable(b)))); }, function() { return console.error.apply(console, $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, $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$eventTypedefs = {}; var module$exports$omid$common$version = {ApiVersion:"1.0", Version:"1.3.25-iab3167"}; 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$exports$omid$common$VersionUtils = {}, module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER = 3; module$exports$omid$common$VersionUtils.isValidVersion = function(a) { return /\d+\.\d+\.\d+(-.*)?/.test(a); }; module$exports$omid$common$VersionUtils.versionGreaterOrEqual = function(a, b) { a = a.split("-")[0].split("."); b = b.split("-")[0].split("."); for (var c = 0; c < module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER; c++) { var d = parseInt(a[c], 10), e = parseInt(b[c], 10); if (d > e) { break; } else { if (d < e) { return !1; } } } return !0; }; var module$exports$omid$common$ArgsSerDe = {}, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION = "1.0.3"; module$exports$omid$common$ArgsSerDe.serializeMessageArgs = function(a, b) { return (0,module$exports$omid$common$VersionUtils.isValidVersion)(a) && (0,module$exports$omid$common$VersionUtils.versionGreaterOrEqual)(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b : JSON.stringify(b); }; module$exports$omid$common$ArgsSerDe.deserializeMessageArgs = function(a, b) { return (0,module$exports$omid$common$VersionUtils.isValidVersion)(a) && (0,module$exports$omid$common$VersionUtils.versionGreaterOrEqual)(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b ? b : [] : b && "string" === typeof b ? JSON.parse(b) : []; }; var module$exports$omid$common$guid = {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; }); }}; var module$exports$omid$common$OmidGlobalProvider = {}; 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 globalThis && globalThis) { return globalThis; } var a = Function("return this")(); if (a) { return a; } 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$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$windowUtils = {}; function module$contents$omid$common$windowUtils_isValidWindow(a) { return null != a && "undefined" !== typeof a.top && null != a.top; } module$exports$omid$common$windowUtils.isCrossOrigin = function(a) { if (a === module$exports$omid$common$OmidGlobalProvider.omidGlobal) { return !1; } try { if ("undefined" === typeof a.location.hostname) { return !0; } module$contents$omid$common$windowUtils_isSameOriginForIE(a); } catch (b) { return !0; } return !1; }; function module$contents$omid$common$windowUtils_isSameOriginForIE(a) { return "" === a.x || "" !== a.x; } module$exports$omid$common$windowUtils.resolveGlobalContext = function(a) { "undefined" === typeof a && "undefined" !== typeof window && window && (a = window); return module$contents$omid$common$windowUtils_isValidWindow(a) ? a : module$exports$omid$common$OmidGlobalProvider.omidGlobal; }; module$exports$omid$common$windowUtils.resolveTopWindowContext = function(a) { return module$contents$omid$common$windowUtils_isValidWindow(a) ? a.top : module$exports$omid$common$OmidGlobalProvider.omidGlobal; }; module$exports$omid$common$windowUtils.isTopWindowAccessible = function(a) { try { return a.top.location.href ? !0 : !1; } catch (b) { return !1; } }; module$exports$omid$common$windowUtils.evaluatePageUrl = function(a) { if (!module$contents$omid$common$windowUtils_isValidWindow(a)) { return null; } try { var b = a.top; return (0,module$exports$omid$common$windowUtils.isCrossOrigin)(b) ? null : b.location.href; } catch (c) { return null; } }; var module$exports$omid$common$DirectCommunication = function(a) { module$exports$omid$common$Communication.call(this, a); this.communicationType_ = module$exports$omid$common$constants.CommunicationType.DIRECT; 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); }; module$exports$omid$common$DirectCommunication.prototype.isCrossOrigin = function() { return !1; }; 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; this.communicationType_ = module$exports$omid$common$constants.CommunicationType.POST_MESSAGE; 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(), "*"); }; module$exports$omid$common$PostMessageCommunication.prototype.isCrossOrigin = function() { return this.to ? (0,module$exports$omid$common$windowUtils.isCrossOrigin)(this.to) : !0; }; 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$serviceCommunication = {}, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME = ["omid", "v1_SessionServiceCommunication"], module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME = ["omid", "v1_VerificationServiceCommunication"], module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME = ["omidVerificationProperties", "serviceWindow"]; function module$contents$omid$common$serviceCommunication_getValueForKeypath(a, b) { return b.reduce(function(a, b) { return a && a[b]; }, a); } function module$contents$omid$common$serviceCommunication_startServiceCommunication(a, b, c, d) { if (!(0,module$exports$omid$common$windowUtils.isCrossOrigin)(b)) { try { var e = module$contents$omid$common$serviceCommunication_getValueForKeypath(b, c); if (e) { return new module$exports$omid$common$DirectCommunication(e); } } catch (f) { } } return d(b) ? new module$exports$omid$common$PostMessageCommunication(a, b) : null; } function module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, b, c, d) { b = $jscomp.makeIterator(b); for (var e = b.next(); !e.done; e = b.next()) { if (e = module$contents$omid$common$serviceCommunication_startServiceCommunication(a, e.value, c, d)) { return e; } } return null; } module$exports$omid$common$serviceCommunication.startSessionServiceCommunication = function(a, b, c) { c = void 0 === c ? module$exports$omid$common$DetectOmid.isOmidPresent : c; var d = [a, (0,module$exports$omid$common$windowUtils.resolveTopWindowContext)(a)]; b && d.unshift(b); return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, d, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME, c); }; module$exports$omid$common$serviceCommunication.startVerificationServiceCommunication = function(a, b) { b = void 0 === b ? module$exports$omid$common$DetectOmid.isOmidPresent : b; var c = [], d = module$contents$omid$common$serviceCommunication_getValueForKeypath(a, module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME); d && c.push(d); c.push((0,module$exports$omid$common$windowUtils.resolveTopWindowContext)(a)); return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, c, module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME, b); }; var module$contents$omid$verificationClient$VerificationClient_VERIFICATION_CLIENT_VERSION = module$exports$omid$common$version.Version, module$contents$omid$verificationClient$VerificationClient_EventCallback; function module$contents$omid$verificationClient$VerificationClient_getThirdPartyOmid() { var a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omid3p; return a && "function" === typeof a.registerSessionObserver && "function" === typeof a.addEventListener ? a : null; } var module$exports$omid$verificationClient$VerificationClient = function(a) { if (this.communication = a || (0,module$exports$omid$common$serviceCommunication.startVerificationServiceCommunication)((0,module$exports$omid$common$windowUtils.resolveGlobalContext)())) { this.communication.onMessage = this.handleMessage_.bind(this); } else { if (a = module$contents$omid$verificationClient$VerificationClient_getThirdPartyOmid()) { this.omid3p = a; } } //----------this.remoteIntervals_ = this.remoteTimeouts_ = 0; this.callbackMap_ = {}; this.imgCache_ = []; this.injectionId_ = (a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omidVerificationProperties) ? a.injectionId : void 0; }; module$exports$omid$verificationClient$VerificationClient.prototype.isSupported = function() { return !(!this.communication && !this.omid3p); }; module$exports$omid$verificationClient$VerificationClient.prototype.injectionSource = function() { var a = module$exports$omid$common$OmidGlobalProvider.omidGlobal.omidVerificationProperties; if (a && a.injectionSource) { return a.injectionSource; } }; module$exports$omid$verificationClient$VerificationClient.prototype.registerSessionObserver = function(a, b) { (0,module$exports$omid$common$argsChecker.assertFunction)("functionToExecute", a); this.omid3p ? this.omid3p.registerSessionObserver(a, b, this.injectionId_) : this.sendMessage_("addSessionListener", a, b, this.injectionId_); }; 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.omid3p ? this.omid3p.addEventListener(a, 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); module$exports$omid$common$OmidGlobalProvider.omidGlobal.document && module$exports$omid$common$OmidGlobalProvider.omidGlobal.document.createElement ? this.sendUrlWithImg_(a, b, c) : this.sendMessage_("sendUrl", function(a) { a && b ? b() : !a && c && c(); }, a); }; module$exports$omid$verificationClient$VerificationClient.prototype.sendUrlWithImg_ = function(a, b, c) { var d = this, e = module$exports$omid$common$OmidGlobalProvider.omidGlobal.document.createElement("img"); this.imgCache_.push(e); var f = function(a) { var b = d.imgCache_.indexOf(e); 0 <= b && d.imgCache_.splice(b, 1); a && a(); }; e.addEventListener("load", f.bind(this, b)); e.addEventListener("error", f.bind(this, c)); e.src = 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_++; var c = ((new Date()).getTime() * 1000000) + (Math.floor(Math.random() * 1000000)); 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_++; var c = ((new Date()).getTime() * 1000000) + (Math.floor(Math.random() * 1000000)); 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 = (0,module$exports$omid$common$ArgsSerDe.deserializeMessageArgs)(module$contents$omid$verificationClient$VerificationClient_VERIFICATION_CLIENT_VERSION, 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, [a, null].concat($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.communication && (e = (0,module$exports$omid$common$guid.generateGuid)(), b && (this.callbackMap_[e] = b), d = new module$exports$omid$common$InternalMessage(e, "VerificationService." + a, module$contents$omid$verificationClient$VerificationClient_VERIFICATION_CLIENT_VERSION, (0,module$exports$omid$common$ArgsSerDe.serializeMessageArgs)(module$contents$omid$verificationClient$VerificationClient_VERIFICATION_CLIENT_VERSION, 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.isDomless = typeof window === "undefined"; __IASOmidVerificationClient = { isSupported: function () { return false; } }; if (typeof __IASScope.OmidVerificationClient !== 'undefined') { try { __IASOmidVerificationClient = new __IASScope.OmidVerificationClient['1.3.25-iab3167'](); //try standard in-browser instantiation } catch(e) { try { __IASOmidVerificationClient = new __IASScope.OmidVerificationClient(); //try domless version which has no version } catch(e) { } } } __IntegralASConfig.useFIF = (__IASScope && !!__IASScope.__IntegralASUseFIF) && __IntegralASConfig.mode === 'jload'; __IntegralASConfig.adRefreshThreshold = __IASScope && __IASScope.__IntegralASAdRefreshThreshold; __IntegralASConfig.getContextNode = function(win, topWin) { 'use strict'; if (__IASScope.isDomless) { return; } if (__IntegralASConfig.useFIF) { return __IASScope.frameElement; // Early exit if using FIF } if (document.currentScript) { return document.currentScript; } var tempScript, scripts = document.getElementsByTagName('script'), result = scripts[scripts.length - 1], scriptIndex = scripts.length, 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; } } } catch (e) {} // TODO: maybe a jsDiagnostic? return result; }; __IntegralASConfig.contextNode = __IASScope.isDomless ? undefined : __IntegralASConfig.getContextNode(window, top); __IntegralASConfig.perfFactory = function() { 'use strict'; var _marks = {}; var START_CODE = 'A'; var END_CODE = 'Z'; function _addMark(codeName, time) { _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)); _addMark(baseName + END_CODE, Math.round(entry.responseEnd)); } } } function getData() { return _marks; } function getStart(baseName) { return _marks[baseName + START_CODE]; } function getEnd(baseName) { return _marks[baseName + END_CODE]; } 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; // initialized to null or a time in jsAddOns1-birthdate.js 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, getStart: getStart, getEnd: getEnd }; }; __IntegralASConfig.perf = __IntegralASConfig.perfFactory(); } catch(err) { __IntegralASConfig = {}; __IntegralASDiagnosticCall('bootstrapper', err); } __IntegralASConfig.initialize=function(e,t,n){var r={};if(Object.assign)e=Object.assign({},e);else{for(var i in e)r[i]=e[i];e=r}function o(){"use strict";var t,n;e.executedContinueMain||(e.executedContinueMain=!0,e.perf.markStart(m),R(e).verifyContextNode(),t=function(t,n,r,i,o,a,u,c,d,g,f){var E,I;e.perf.markStart(T),e[P.B11]="1"===e[P.AD_HEIGHT]&&"1"===e.adWidth?"true":"false",e[P.CNOD]=e[P.CONTEXT_NODE]?"true":"false",l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:e.mainBirthdate},P.MAIN_FUNCTION_STARTED_NOW,{type:p.IMPRESSION_EVENT});var m=e.hasOwnProperty("origMobOrTab")?e.origMobOrTab:e.mobOrTab;l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:m?"1":"0"},P.BOOTSTRAPPER_MOB_OR_TAB,{type:p.IMPRESSION_EVENT}),l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:e.app?"1":"0"},P.BOOTSTRAPPER_APP,{type:p.IMPRESSION_EVENT}),l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:e.mobAppWebview?"1":"0"},P.BOOTSTRAPPER_MOB_APP_WEBVIEW,{type:p.IMPRESSION_EVENT});var A="undefined"!=typeof navigator?navigator.userAgent:"",h=l.getAggregator().request(b.MOBILE_APP);!(h&&h.isMobileAppEnvironment&&h.isMobileAppEnvironment())&&A.indexOf("IMDb-flg")>-1&&(l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:"1"},P.MOBILE_APP_ENVIRONMENT,{type:p.IMPRESSION_EVENT}),l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:"a_imdb"},P.MATCHED_MOBILE_APP_DETECTION_RULE,{type:p.IMPRESSION_EVENT}));s(r,i,d,o);try{a.isApplicable(u,d,g)&&a.start(),I=c.detectTopURL(),d.on("exch")&&(new _e).createInstance(o,i).parse(I),(E=Lr()).isApplicable(d)&&E.start(d),g.usesGroupMCustomMetric()&&U(),f.start()}catch(e){o.add(p.ERROR_CODES.IMPRESSION_LEADUP)}return e.perf.markEnd(T),I}((n=function(){var t,n,r,i,o,a,s,u,c,d,g,E={};e.perf.markStart(A);var I=l.getAggregator();(function(){var t,n,r;r=l.getAggregator().request(b.OMID_AD_SESSION_CONTEXT),t=r.app&&r.isDisplay&&!r.isWeb,(n=e.mobFwUrl&&e.mobFwUrl.indexOf("/blocking/")>-1)&&r.isLimitedSandbox&&"1"===e.adWidth&&"1"===e[P.AD_HEIGHT]&&(r.isLimitedSandbox=!1);t&&n&&(r.delayingViewabilityEvents=!0);"app"!==r.environment&&!0!==e.mobAppWebview||(e.origMobOrTab=e[P.MOB_OR_TAB],e[P.MOB_OR_TAB]=!0)})(),E.mFeatures=I.request(b.FEATURES),E.mFeatures||(E.mFeatures=I.provide(b.FEATURES,Se()));e.integration&&E.mFeatures.setReportedBootstrapFeatures("intblk","integration");e.autotagSizeSet&&E.mFeatures.setReportedBootstrapFeatures("ats","autotagSizeSet");e.encodeInvalidUrlChars=!le.isDomless()&&E.mFeatures.on("encodeInvalidUrlChars"),I.provide(b.MOBILE_APP,(function(){return t=t||new qn(E.mFeatures)})),I.provide(b.CONTEXT,le),E.mBrowser=I.provide(b.BROWSER,(new se).createInstance()),E.mErrors=I.request(b.ERRORS),E.mIds=I.provide(b.IDS,Re()),E.iOutput=q(I),I.request(b.JSONP),E.mComm=I.request(b.COMMUNICATION),E.viewabilityMeasurement=new Vt(Lt(E.mIds),E.mFeatures,E.mBrowser).create(),function(e,t){if(e&&e.queuedOutputItems)for(var n=0;n0&&(l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:u.join(".")},P.METRIC_ID_EVENT_CALL,{type:p.IMPRESSION_EVENT}),l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:u},P.METRIC_ID_LIST,{type:p.DT_CODES.UNLOAD,asION:!0}));return s}(t);l.getAggregator().provide(b.VIEWABILITY_DEFINITIONS,o),f(o).map(function(e,t,n,r){return function(i,o){var a,s,u,c=En(o,t),d=$t(n,e,o.rts).getCallbacks(),g=Y(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId));return o.sendOtherwiseInViewSignal&&(u=En(o,t,o.sendOtherwiseInViewSignal),s=Y(r.createPingJobs(o.type,o.timeInViewThresholds,d,o.metricId,o.sendOtherwiseInViewSignal))),o.rtsCallbacks=d,o.thresholdType===p.GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE?a=fn(c,o,g,le.isVideo()):(a=gn(c,ee(o.minUnit),g),o.sendOtherwiseInViewSignal&&gn(u,ee(o.minUnit),s,o.sendOtherwiseInViewSignal).start()),a.start(),a}}(t,n,r,i))}(E.mFeatures,E.mViewability,r,c),E.loopDelay=It(),E.renderDetector=w(),E.mDataTransfer.setViewabilityMod(E.mViewability),e.perf.markEnd(A),E}()).mDataTransfer,n.mViewability,n.mAdTalk,n.iOutput,n.mErrors,n.mAncestorOrigins,n.mBrowser,n.mPageUrls,n.mFeatures,le,n.renderDetector),function(t,n,r,i,o,a,s,u,c){try{wr(t,n,r,i,o,a,s).send(u),f.isFunction(c.triggerInitializationEvents)&&c.triggerInitializationEvents()}catch(t){__IntegralASDiagnosticCall("impsend",t,e)}}(n.mErrors,n.mFeatures,n.mIds,n.mMode,n.iOutput,n.mBrowser,n.mViewability,t,n.mVideo),function(t,n,r,i,o,s,u,c,d,g,f,E,I){try{e.perf.markStart(h),(m=pr()).start(),m.addFieldTypes([p.DT_SLOT.IM,p.DT_SLOT.FF,p.DT_SLOT.ENVIRONMENT,p.DT_SLOT.FF_EXP]),function(e,t,n,r){var i=ht(e,t,n);i.isApplicable(r)&&i.start()}(t,n,r,i),function(e,t,n,r,i,o){e.bootstrapOn("getTpl")&&e.on("usetpl")&&oe(t,n,r,i,o).init()}(i,o,s,u,n,c),function(t,n,r,i,o,s,u,c,d){var g;"true"!==e.minimizeCalls&&(g=(new Date).getTime(),Pe.execAtEndOfThread((function(){a(t,n,r,i,g,o,s,u,c,d)})))}(c,d,g,u,i,o,s,n,E),function(e){e&&e.start&&e.start()}(f),function(e,t){if(!e.isDomless()){xr().start(["sca","xsca","rsrch"],t)}}(I,i),ne(),l.runTier(p.TIERS.VIEWABILITY),function(t){var n=Ir();n.isApplicable(t)&&(n.start(),Dr.recordBlockingTime(),e.perf.mark(_),Dr.setupOnLoadTracking(),Dr.setupBrowserDelayTracking())}(i),e.perf.markEnd(h)}catch(e){u.add(p.ERROR_CODES.POST_IMPRESSION)}var m}(n.mBrowser,n.mIds,n.mViewability,n.mFeatures,n.mComm,n.mDataTransfer,n.mErrors,n.iOutput,n.loopDelay,n.mAdTalk,n.viewabilityMeasurement,n.mAncestorOrigins,le),e.perf.markEnd(m))}function a(t,n,r,i,o,a,s,u,c,d){try{if(e.perf.markStart(D),e.tpiLookupURL)Ne(s,u).init(e.tpiLookupURL);le.isDomless()||d.isStarted()&&d.sendOriginList(),l.runAll(),Pe.execAtEndOfThread((function(){!function(t,n,r,i,o,a){var s;try{e.perf.markStart(O),s={output:(new Date).getTime()-o},t.addItem(s,"sinceFw",{type:p.DT_CODES.ADTALK}),f.isDef(n.loopStarted())&&t.addItem({output:n.loopStarted()},"readyFired",{type:p.DT_CODES.ADTALK}),e.perf.markEnd(O),e.isSplitMode&&(c=e.protocol+"://"+e.sp_cdnScripts.main,e.perf.markResource(S,c)),e.impUrl&&e.perf.markResource(v,e.impUrl),u=e.perf.getData(),l.getAggregator().trigger(C.ADD_THROTTLED_PROP,p.DT_SLOT.IM,P.PERFORMANCE,f(u).toION()),r.isApplicable(le)&&r.sendAdTalkCall()}catch(e){i.add(p.ERROR_CODES.ADTALK_DELAY)}var u,c}(t,n,r,i,o)})),e.perf.markEnd(D)}catch(e){i.add(p.ERROR_CODES.EVENT_LOOP_ONE)}}function s(e,t,n,r){var i;try{e.isApplicable(le)&&(e.start(),t.addItem(e.getFrameMap(),"fm"),n.on("fm2")&&t.addItem(e.getFrameMapIncludingPeerCase(),"fm2"),n.on("idMap")&&(i=e.getIdMap())&&t.addItem(i,"idMap"))}catch(e){r.add(p.ERROR_CODES.ADTALK_GENERAL)}}function u(t){var n=t&&t.sca,r=t&&t.xsca,i=t&&t.w,a=t&&t.h;return function(t){l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:le.getTagTime()},P.STATIC_CONFIG_RESPONSE_TIME,{type:p.IMPRESSION_EVENT});var s="string"==typeof t?JSON.parse(t):t;if(Object.assign)Object.assign(e,s);else for(var u in s)e[u]=s[u];e.isResolved=!0,e.sp_cdnScripts={sca:n,xsca:r},i&&a&&(e.adWidth=i,e.adHeight=a,e.autotagSizeSet=!0),o()}}const c=({url:e})=>{let t;const n=["config","iasConfig"];return e&&e.includes("fw.js")&&(n.forEach((t=>{e&&(e=(({url:e,queryParamName:t})=>{const n=new URL(e).search,r=new URLSearchParams(n);r.delete(t);const i=new URL(e);return i.search=r.toString(),i.toString()})({url:e,queryParamName:t}))})),e.includes("?")&&(t=e.split("?")[1])),t};function d(t){if(!t){var n=e&&e.contextNode&&e.contextNode.dataset;t=n&&n.iasParameters||e.iasParameters}if("string"==typeof t)try{t=JSON.parse(t)}catch(e){}var r=function(t){var n,r,i,o="https://jsconfig.adsafeprotected.com",a={37103:"https://vfw.amazon-adsystem.com/ias/ivt/j"},s=t&&t.config;if(s)r=/iasProxyPartnerId=([\d]+)/g.exec(s);else try{n=e.contextNode.src,r=/iasProxyPartnerId=([\d]+)/g.exec(n)}catch(e){}return i=r&&r[1],e.proxyPartnerId=i,t&&t.host||a[i]||o}(t),i=function(t){var n=t&&t.config;if(!n)try{var r=e.contextNode.src,i=/iasConfig=([^&#]*)/g.exec(r)||/config=([^&#]*)/g.exec(r);(n=i&&i[1])&&(n=decodeURIComponent(n))}catch(e){}return n}(t),o=t&&t.contentType;try{var a=e.contextNode.src,s=c({url:a});s&&(e.staticFwjsMacros=s)}catch(e){}if(i){l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:le.getTagTime()},P.STATIC_CONFIG_REQUEST_TIME,{type:p.IMPRESSION_EVENT});var d=(({host:e,path:t,queryParams:n,adSessionId:r})=>{const i=t.includes("?");let o=`${e}/jsconfig${t}`;return n&&(o+=`${i?"&":"?"}${n}`),r&&(o+=`&adSessionId=${r}`),o})({host:r,path:i,adSessionId:e.adSessionId,queryParams:e.staticFwjsMacros});"application/json"===o?l.getAggregator().trigger(C.GET_JSON,d,u(t)):l.getAggregator().trigger(C.JSONP,d,u(t),!1,"cbName")}}function g(t){e.isResolved?o():d(t)}var f=function(e){"use strict";return new E(e)},E=function(e){"use strict";this.iterable=e};E.prototype.isObj=function(e){"use strict";var t="object"==typeof this.iterable,n=null===this.iterable,r=t&&!n,i=!this.isArray()&&r;return e?r:i},E.prototype.isArray=function(){"use strict";return this.iterable instanceof Array},E.prototype.isEmpty=function(e){"use strict";return 0===this.keys(e).length},E.prototype.each=function(e,t){"use strict";var n=this.iterable;if(n.length===+n.length)for(var r=0,i=n.length;r4?"object":!this.isObj(!0)||this.iterable.hasOwnProperty("toString")?""+this.iterable:(this.isArray()?n=this.map((function(n,r){return f(r).toION(e,t)})):(r="{",i="}",n=this.map((function(n,r){var i="string"==typeof n&&-1!==n.indexOf("NULL"),o=f(r).toION(e,t);return i?o:(e[n]||n)+":"+o}))),r+n.join(",")+i)},E.prototype.compareTo=function(e){"use strict";var t=!1;return this.each((function(n,r){e[n]!==r&&(t||(t={}),t[n]=r)})),t},E.prototype.toParams=function(e){"use strict";return this.stringify((function(e,t){return"string"==typeof e&&-1!==e.indexOf("NULL")?t:e+":"+t}),e)},E.prototype._privateMixin=function(e,t,n){"use strict";var r;for(r in t)f.isDef(t[r])&&(n||t.hasOwnProperty(r))&&(e[r]=t[r]);return e},E.prototype.mapToObj=function(e){"use strict";var t={},n=this;return this.each((function(r,i){var o=e(r,i);f(o).isObj()&&n._privateMixin(t,o)})),t},E.prototype.invert=function(){"use strict";return this.mapToObj((function(e,t){var n={};return n[t]=e,n}))},E.prototype.mixin=function(e,t){"use strict";return this._privateMixin(this.iterable,e,t)},E.prototype.find=function(e){"use strict";var t;return this.each((function(n,r){e(n,r)&&(t=r)})),t},E.prototype.findFirst=function(e){"use strict";var t,n;return this.each((function(r,i){!n&&e(r,i)&&(t=i,n=!0)})),t},E.prototype.keys=function(e){"use strict";var t=[];return this.each((function(e){t.push(e)}),e),t},E.prototype.asStrings=function(){"use strict";var e={};return this.each((function(t,n){e[t]=""+n})),e},E.prototype.selectProperties=function(e){"use strict";var t={},n=this;return f(e).each((function(e,r){f.isDef(n.iterable[r])&&(t[r]=n.iterable[r])})),t},E.prototype.filter=function(e,t){"use strict";return this.map((function(t,n){var r;return(f.isUndef(e)||f.resolve(e,t,n))&&(r=n),r}),t)},E.prototype.toArray=function(){"use strict";return this.map((function(e,t){return t}))},E.prototype.JSONStringify=function(){"use strict";var e,n,r=!1;return t.Prototype&&t.Prototype.Version&&-1===t.Prototype.Version.indexOf("1.7")&&(r=!0),r&&(n=Array.prototype.toJSON,delete Array.prototype.toJSON),e=JSON.stringify(this.iterable),r&&(Array.prototype.toJSON=n),e},E.prototype.contains=function(e){"use strict";var t=f(this.iterable).findFirst((function(t,n){return e===n}));return f.isDef(t)},f.toBase=function(e,t){"use strict";var n,r=e<0,i="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),o=[];e=r?-e:e;do{n=e%t,o.push(i[n]),e=(e-n)/t}while(e>0);return o=o.reverse().join(""),r?"-"+o:o},f.isDef=function(e){"use strict";return void 0!==e},f.isUndef=function(e){"use strict";return!f.isDef(e)},f.isBool=function(e){"use strict";return"boolean"==typeof e},f.noop=function(){},f.identity=function(e){"use strict";return e},f.isFunction=function(e){"use strict";return"function"==typeof e},f.isStr=function(e){"use strict";return"string"==typeof e},f.useIfDef=function(e){"use strict";return!!f.isDef(e)&&e},f.stringifyTriState=function(e){"use strict";return!0===e?1:!1===e?0:"na"},f.getNum=function(e){"use strict";var t=parseInt(e);return isFinite(t)||(t=-1),t},f.resolve=function(e,...t){return f.isFunction(e)?e.apply({},t):e},f.flatJSONParse=function(e){"use strict";for(var t,n,r,i=/"(\w+)":(\d+|(?:"([^"]*)"))/g,o={},a=i.exec(e);a;)t=a[1],n=a[3],r=a[2],o[t]=n||+r,a=i.exec(e);return o},f.debounce=function(e,n,r){"use strict";var i,o=r||t;return function(...t){var r=this,a=t;o.clearTimeout(i),i=o.setTimeout((function(){i=null,e.apply(r,a)}),n)}},f.last=function(e){"use strict";return e[e.length-1]},f.collapseArgsIntoHash=function(e,t){"use strict";var n={};return t?n[e]=t:n=e,n},f.fromBoolToNum=function(e){"use strict";return e?1:0},f.isNumeric=function(e){"use strict";return f.isDef(e)&&null!==e&&!isNaN(e)},f.fromNodeListToArray=function(e){"use strict";return Array.prototype.slice.call(e)},f.encodeInvalidUrlChars=function(e,t){"use strict";var n={$:"%24","[":"%5B","]":"%5D","{":"%7B","}":"%7D","|":"%7C"},r=e;return t&&"string"==typeof e&&(r=(r=e.replace(/%(?![0-9A-F][0-9A-F])/gi,"%25")).replace(/\$|\[|\]|\{|\}|\|/gi,(function(e){return n[e]}))),r};var l=function(){"use strict";var e,t={},n=[],r=[],i=function(){var e={},t=f(arguments).toArray();return t.unshift(e),r.push(t),e},o=function(r,i,o,a,s){var u,c,d,g=function(){if(!u){var t=[];u=!0,i=["features","browser","context"],0===n.length&&(n=f(i).map((function(t,n){return e.request(n)}))),s.emits&&(r.events=new B),s.applies&&!s.applies.apply(s,n)||(c=!0,(t=f(o).map((function(t,n){return e.request(n)}),!0)).push(r),f(r).mixin(a.apply({},t)))}var i};return d=(s=s||{}).tier,f.isDef(d)&&(t[d]=t[d]||new H,t[d].push(g)),e.provide(i,(function(){var e;return g(),c&&(e=r),e})),r};return i.runAll=function(){var e=f(t).keys().sort((function(e,t){return e-t}));f(e).each((function(e,t){i.runTier(t)}))},i.runTier=function(e){t[e].run(),delete t[e]},i.startSystem=function(){e=e||new W,f(r).each((function(e,t){o.apply({},t)}))},i.getAggregator=function(){return e},i}();const p={MRC_LARGE_AD_SIZE:242500,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",FF:"sca",FF_EXP:"xsca",ENVIRONMENT:"env"},DETECTION_METHODS:{AD_PLACEHOLDER:"s",AD_HUNT:"a",IFRAME:"i",VIDEO:"v",MRAID:"m",OMID:"o1",MUTATION:"c",SPECIFIED_AD:"sp",SPECIFIED_AD_COMPOUND:"spc",BUSTED_IFRAME_FLASHTALKING:"bf",BUSTED_IFRAME_YIELDMO:"by",BUSTED_IFRAME_SIZMEK:"bs",VENDOR_CELTRA:"vc"},ENGAGEMENT:{CLICK_TRACK:"clk"},OUT_OF_VIEW_REASONS:{GEOM:"l",OBSTRUCTION:"o",FOCUS:"f",COLLAPSED:"c",HIDDEN:"h",RENDER:"r",VIDEO:"v",WINDOW:"w"},PERF_TIMELINE_TRACKER_CONFIG:{VANS:{TYPE:"vans",COUNT:4},WRAPPERS:{JS:{TYPE:"jswrapper",COUNT:15},AS:{TYPE:"flwrapper",COUNT:9}},RENDER:{TYPE:"render",COUNT:2,CODE:"tdr"}},ERROR_CODES:{GET_AD_DIMENSIONS:"a",AD_SLOT_ID:"A",BAPI_CALLBACK:"b",BROWSER_NOT_HTML5_COMPATIBLE:"B",ADTALK_GENERAL:"c",COCOA_GONE:"C",CLICK_TRACK:"Q",GET_SCREEN_LOC_GET_DIMENSIONS:"d",ADTALK_DUBIOUS:"D",IMPRESSION_PERFORMANCE:"e",POST_IMPRESSION:"E",ADTALK_DELAY:"f",VIDEO_IN_IFRAME_DIMS_CALC:"F",GDPR:"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_REFRESH:"r",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",BUSTED_IFRAME_IN_IO:"y",FLASH_API_ACCESS:"z",XSCA:"Z"},BROWSERS:{WEBKIT:"w",OPERA:"o",GECKO:"g",CHROME:"c",MSEDGE:"e",IE:"i",DOMLESS:"d"},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",DATA_TRANSFER_EVENT:"dt",AD_IDENTIFIER:"data-integralas-id",IAS_DETECTOR:"iasdetector",CONTAINER_GEOMETRY_MEASUREMENT_CHANGED:"containerGeometryMeasurementChanged",OMID_GEOMETRY_MEASUREMENT_CHANGED:"omidGeometryChanged",VIEWABILITY_IN_VIEW_THRESHOLDS_INTERSECTION_OBSERVER:[0,.01,.2,.25,.3,.5,.7,.75,.8,.99,1],VIEWABILITY_IN_VIEW_THRESHOLDS_MOBILE_GRID:[0,.1,.2,.25,.3,.4,.5,.6,.7,.75,.8,.9,1],GROUPM_MOBILE_PASS_THRU_TIME_IN_VIEW_THRESHOLD_TYPE:"grpmMobPassThru",REFERRER_POLICY:"no-referrer-when-downgrade",RENDER:{CREATIVE_NODE_TYPES:["CANVAS","EMBED","IMG","OBJECT","PICTURE","SVG","VIDEO"],CONTAINER_NODE_TYPES:["A","DIV","IFRAME","INS"],WIDTH_THRESHOLD:20,HEIGHT_THRESHOLD:20,STATUS:{OTHER:"0",DETECTED:"1"},DETAILS:{ENVIRONMENT:"env",OTHER:"na"},DIAGNOSTIC:{BROKEN_IMAGE:"bi",UNQUALIFIED_SIZE:"us",QUALIFIED_SIZE:"qs",STYLED_NODE:"sn",TEXT_NODE:"tn",DOCUMENT_READY:"dr",LOAD_FIRED:"lf",CONTENT_STYLED:"cs",MRAID_DEFAULT:"md",MRAID_READY:"mr",MRAID_LOADING:"ml",MRAID_UNKNOWN:"mu",OMID_RENDERED:"or",OMID_UNRENDERED:"ou"}},RTS_KEY_FOR_VQ:"qiv",UNIQUE_ID_TOKEN:"[IAS_ASID]"};var I="mf",m="cm",A="in",T="pr",h="po",_="bl",D="lo",O="lt",S="md",v="id";var R=function(e){"use strict";return{verifyContextNode:function(){!(__IASScope.isDomless||e.contextNode&&null!==e.contextNode.parentNode)&&(e.contextNode=function(){var t,r=n.getElementsByTagName("script"),i=r.length,o=r[i-1],a=e.scriptUrl;try{for(;--i>=0;)if((t=r[i]).src&&0===t.src.indexOf(a)&&null===t.getAttribute("data-ias-script-tag")){o=t,t.setAttribute("data-ias-script-tag","found");break}}catch(e){}return o}())}}},N=function(){"use strict";var t,n=["STYLE","SCRIPT","HEAD","META"],r=p.RENDER.CREATIVE_NODE_TYPES.concat(p.RENDER.CONTAINER_NODE_TYPES),i=0,o=e.useFIF&&le.friendlyIframe||le.isSpecifiedAd(),a=0,s=[],u=function(t){var n,r,o=t,a=t,s=le.friendly?Pe.getTop().document.body:e.contextNode.ownerDocument.body;for(;i<3;){if(s&&o===s){a=o,i=3;break}Te.isWindow(o)&&(r=void 0,r="["+p.AD_IDENTIFIER+"-"+e.asid+"]",n=Te.crossQuerySelector(r),o=f.isDef(n)?n:o),a=o=f.isDef(o)&&o.parentNode||o,i++}return a},c=function(e){var t=function(e){var t,i,o=[],a=e&&e.getElementsByTagName&&e.getElementsByTagName("*"),s=a&&a.length;if(a)for(var u=0;u0&&(ai&&!f(n).contains(e)&&(r=e,i=t)}var o,a,s}e.length&&l.getAggregator().request("useYieldSearch")?function n(){do{o(e[t]),t+=1}while(t%500!=0&&t0&&!o&&(t=!1),"false"===a&&(n.save("cs"),t=!1),o&&!a&&function(e,t){n.save("cs");const r=/url(?:\(['"]?)(.*?)(?:['"]?\))/.exec(t.content),i=r&&r[1],o=Te.createImage(),a=e;o.onload=function(){o.naturalHeight*o.naturalWidth>0&&a.setAttribute&&a.setAttribute(s,!1)},o.src=i,a.setAttribute(s,!0)}(e,i),t},d=function(){i?Pe.clearInterval(i):a=!1};l.getAggregator().on(C.EVALUATE_CREATIVE_FINDER_RESULT,(function(r){let i;Te.isNodeXDomainIframe(r)?(d(),t=function(t){const r={},i="readystatechange",o="load",a=Pe.getDoc(),s="complete"===a.readyState,c=function(s){const d=s&&s.type;(d===i&&"complete"===s.target.readyState||d===o)&&(u(r),n.saveNode(t),"readystatechange"===d?n.save("dr"):"load"===d&&n.save("lf"),e(r),pe.removeEvent(t,o,c),pe.removeEvent(a,i,c))};return s?(u(r),n.saveNode(t),n.save("dr")):(pe.addEvent(t,o,c,void 0),pe.addEvent(a,i,c,void 0)),r}(r)):r?(function(e){let t=!1;const r=Te.getRect(e);return e&&"IMG"===Te.getNodeName(e)&&c(e)&&(t=!0,n.save("bi")),!t&&r.width>=20&&r.height>=20}(r)&&(u(t),d()),n.saveNode(r)):(i=o.getClosestContainerName()||n.getAdNodeName(r)||t.details,n.save(i)),e(t)}));const g=function(){const e=r&&r.getAdNode();try{o.find(e)}catch(e){l.getAggregator().trigger(C.RENDER_DIAG,e)}},E=l.getAggregator().request(b.MOBILE_APP);E&&E.isMobileAppEnvironment&&E.isMobileAppEnvironment()&&le.isMraid()?function(e,n){const r=Pe.getWindow().mraid,i=r&&r.getState&&r.getState(),o="ready",a=t,s=function(){pe.removeEvent(r,o,s),n.save("env"),n.save("mr"),l.getAggregator().trigger("adRendered"),e({status:"1"})};n.save("env"),"default"===i?(l.getAggregator().trigger("adRendered"),n.save("md"),a.status="1"):"loading"===i?(pe.addEvent(r,o,s,void 0),n.save("ml")):(pe.addEvent(r,o,s,void 0),n.save("mu")),e(a)}(e,n):(g(),a&&(i=Pe.setInterval(g,500))),l.getAggregator().trigger(C.ELIGIBLE_RENDER)}))};var C,b,P,V=function(){"use strict";var e=[],t=[],n=function(e){var t;if(Te.isWindow(e))t="WINDOW";else if(Te.isNodeXDomainIframe(e))t="XIFRAME";else try{t=Te.getNodeName(e)}catch(e){r("nen")}return t},r=function(t){e.push(t)};return{build:function(){var n=[];return f(t).each((function(e,t){n.push(t)})),f(e).each((function(e,t){n.push(t)})),t=[],e=[],n.join(".")},getAdNodeName:n,save:r,saveNode:function(e){try{var i=e&&n(e),o=e&&Te.getRect(e),a=e&&Te.hasBackgroundImage(e),s=e&&e.children&&0===e.children.length,u=e&&e.innerText&&e.innerText.length>0,c=s&&u,d=o&&o.width>=p.RENDER.WIDTH_THRESHOLD&&o.height>=p.RENDER.HEIGHT_THRESHOLD?p.RENDER.DIAGNOSTIC.QUALIFIED_SIZE:p.RENDER.DIAGNOSTIC.UNQUALIFIED_SIZE;t.push(i),t.push(d),a&&t.push(p.RENDER.DIAGNOSTIC.STYLED_NODE),c&&t.push(p.RENDER.DIAGNOSTIC.TEXT_NODE)}catch(e){r("sne")}}}},L=function(t){"use strict";var n,r=!1,i=!1,o="1",a="0",s=function(){r=!0,c()},u=function(e){n=e,c()},c=function(){l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:!n&&r?o:a},P.MEASURABLE_FOR_RENDER),n&&n.message&&!i&&(__IntegralASDiagnosticCall("renderloop",n,e),l.getAggregator().trigger(C.ADD_THROTTLED_PROP,p.DT_SLOT.ENVIRONMENT,"rle",1),i=!0)};l.getAggregator().on(C.ELIGIBLE_RENDER,s),l.getAggregator().on(C.RENDER_DIAG,u),c()},F=function(){"use strict";return{applies:function(e,t){var n=l.getAggregator().request(b.MOBILE_APP);return(e.browserIs(p.BROWSERS.CHROME)||e.isAndroidWebViewBrowser()||e.browserIs(p.BROWSERS.WEBKIT)||e.browserIs(p.BROWSERS.MSEDGE))&&!n.isMobileAppEnvironment()&&e.hasIntersectionObserver()}}},U=function(){"use strict";var e,t,n=!1,r=l.getAggregator().request(b.PAGE),i=function(){!n&&t&&e&&!r.isHidden()&&(n=!0,l.getAggregator().trigger(C.SEND_DT,p.DT_CODES.LARGE_BILLABLE))};l.getAggregator().on(C.PRIMARY_AD_FOUND,(function(t){e=t.getDims().area()>=p.MRC_LARGE_AD_SIZE,i()})),l.getAggregator().on(C.IMPRESSION_SENT,(function(){t=!0,i()})),r.onHiddenChange(i)},x=function(){"use strict";var e=[],t={},n={percentInView:"piv",sl:"vs",reason:"r",width:"w",height:"h",omidObstructions:"oobs"},r={omidObstructions:["sl","percentInView","reason"]};l.getAggregator().on(C.NEW_SCREEN_EVENT,(function(r){var o=f(r).selectProperties(f(n).keys()),a=f(o).asStrings(),s=f(a).compareTo(t);(s=i(s))&&JSON.stringify(s)!==JSON.stringify({})&&(s.t=le.getTagTime(),e.push(s)),f(t).mixin(a)}));var i=function(e){return f(r).each((function(t,n){var r=!1;f(n).each((function(t,n){e[n]&&(r=!0)})),!1===r&&delete e[t]})),e};return{toString:function(){return f(e).toION(n)}}},W=function(){"use strict";var e=new K,t=new B;return f(e).mixin(t)};!function(e){e.AD_COMPONENT_ADDED="adComponentAdded",e.AD_COMPONENT_CLICKED="adComponentClicked",e.AD_COMPONENT_MOUSED_OVER="adComponentMousedOver",e.AD_COMPONENT_REMOVED="adComponentRemoved",e.AD_IMPRESSION="adImpression",e.AD_RENDERED="adRendered",e.AD_SESSION_COMPLETE="adSessionComplete",e.AD_VIDEO_COMPLETE="adVideoComplete",e.AD_VIDEO_START="adVideoStart",e.ADD_OUTPUT_ITEM="addOutputItem",e.ADD_THROTTLED_OUTPUT_ITEM="addThrottledOutputItem",e.ADD_THROTTLED_PROP="addThrottledProp",e.CREATIVE_FINDER_BATCH_COMPLETED="creativeFinderBatchCompleted",e.DEFERRED_AD_SESSION_READY="deferredAdSessionReady",e.DELAYED_VIEWABILITY_READY="delayedViewabilityReady",e.DELAYED_VIEWABILITY_READY_CALL_ONLY="delayedViewabilityReadyCallOnly",e.ELIGIBLE_RENDER="eligiblerender",e.END_AD_SESSION="endAdSession",e.ERROR="error",e.EVALUATE_CREATIVE_FINDER_RESULT="evaluateCreativeFinderResult",e.EXEC="exec",e.GET_JSON="getJSON",e.IMPRESSION_SENT="impressionsent",e.INTERNALLY_GENERATED_GEOMETRY_EVENT="internallyGeneratedGeometryEvent",e.IO_PIV_CHANGE="IOPivChange",e.JSONP="jsonp",e.MARK_TIME="markTime",e.MEASURABLE="measurable",e.MEASURE_TIME="measureTime",e.NEW_SCREEN_EVENT="newScreenEvent",e.NEW_STATE="newState",e.NODES_ADDED="nodesAdded",e.NOTIFY="notify",e.OMID_AD_DURATION="omidAdDuration",e.OMID_IMPRESSION_ARRIVED="omidimpressionarrived",e.OMID_LOADED_ARRIVED="omidloadedarrived",e.OMID_REND_GEO_UPDATE="omidrendgeoupdate",e.OMID_REND_VIDEO_START="omidrendvideostart",e.PERF_CHECKPOINT="perfCheckpoint",e.PRIMARY_AD_FOUND="primaryadfound",e.RENDER_DIAG="renderdiag",e.SEND="send",e.SEND_DIAG="sendDiag",e.SEND_DT="sendDt",e.SEND_MIN_DT="sendMinDt",e.START_VIEWABILITY_LOOP="startViewabilityLoop",e.STOP_AD_TALK="stopAdTalk",e.UNLOAD="unload",e.VIDEO_BLOCK_RESULT="videoBlockResult",e.VIDEO_QUARTILE_EVENT="videoQuartileEvent"}(C||(C={})),function(e){e.AD_NODE="adNode",e.AD_PROXY="adProxy",e.AD_RENDER_STATUS="adRenderStatus",e.AD_SLOT_IDS="adSlotIds",e.AD_TALK_EVENT_AGGREGATOR="adTalkEventAggregator",e.AD_TALK_MESSAGE="adTalkMessage",e.AD_TALK_MESSAGE_COLLECTION="adTalkMessageCollection",e.BROWSER="browser",e.COMMUNICATION="mComm",e.CONTEXT="context",e.ERRORS="mErrors",e.FEATURES="features",e.FRAME_COLLECTION="frameCollection",e.ID_MAP_MODULE="idMapModule",e.IDS="ids",e.IFRAME_CALCULATOR_HELPER="iframeCalculatorHelper",e.INTER_FRAME_QUERY_SELECTOR="interFrameQuerySelector",e.JOB_FACTORY="jobFactory",e.JSONP="mJsonp",e.MOBILE_APP="mobileApp",e.OMID_AD_SESSION_CONTEXT="omidAdSessionContext",e.OMID_AS_VERIFICATION_PARAMS="omidAdSessionVerificationParameters",e.OMID_VERIFICATION_CLIENT="omidVerificationClient",e.PAGE="mPage",e.PAGE_URLS="pageUrls",e.SCREEN_EVENTS="mScreenEvents",e.USE_YIELD_SEARCH="useYieldSearch",e.VIDEO="video",e.VIDEO_VERSION="videoVersion",e.VIEWABILITY="viewability",e.VIEWABILITY_DEFINITIONS="viewabilityDefinitions"}(b||(b={})),function(e){e.AD_HEIGHT="adHeight",e.AD_WIDTH="adWidth",e.APP_SDKS_DETECTED="sdk",e.B11="b11",e.BAD_URL_NO_PERIOD="bunp",e.BAPI_CLIENT="bapiClient",e.BOOTSTRAPPER_APP="app",e.BOOTSTRAPPER_MOB_APP_WEBVIEW="maw",e.BOOTSTRAPPER_MOB_OR_TAB="mot",e.BROWSER_IS="browserIs",e.CNOD="cnod",e.CONTEXT_NODE="contextNode",e.CUSTOM_METRIC_IN_VIEW_REASON="cmr",e.GEOMETRY_EVENTS_RECEIVED="og",e.INITIAL="initial",e.LENGTH="length",e.MAIN_FUNCTION_STARTED_NOW="mtim",e.MAPP1_EXCLUSION_LIST_MATCH="xlu",e.MATCHED_MOBILE_APP_DETECTION_RULE="drul",e.MEASURABLE_FOR_RENDER="rmeas",e.METRIC_ID="metricId",e.METRIC_ID_EVENT_CALL="scm",e.METRIC_ID_LIST="metricIdList",e.MISMATCH_OF_INTEGRATED_BLOCKING_TAG_TYPES="smm",e.MOB_APP_WEBVIEW="mobAppWebview",e.MOB_OR_TAB="mobOrTab",e.MOB_APP="app",e.MOBILE_APP_ENVIRONMENT="mapp",e.MOBILE_FW_URL="mobFwUrl",e.MRAID_INJECTION_STATUS="mi",e.OMID_APP_MEASUREMENT="oam",e.OMID_RENDERED_INDICATION="oren",e.OMID_SESSION_ERROR="oser",e.OMID_SESSION_FINISH="osef",e.ORIGINAL_MOB_OR_TAB="origMobOrTab",e.PERFORMANCE="prf",e.PLUGIN_DECODED="pd",e.PLUGIN_LIST="pl",e.SAFEFRAME="sf",e.SAFEFRAME_HOSTURL="sfhu",e.SAFEFRAME_INVALID_HOSTURL="sfiv",e.SLID="slid",e.STATIC_CONFIG_REQUEST_TIME="scq",e.STATIC_CONFIG_RESPONSE_TIME="scs",e.STATIC_IMPRESSION_RFW_CALL_REQUEST_TIME="siq",e.STATIC_IMPRESSION_RFW_CALL_RESPONSE_TIME="sis",e.THIRD_PARTY_DATA_LOOKUP="tpiLookup",e.VIDEO_BREAK_POSITION="vbp",e.VIDEO_CHANNEL="vc",e.VIDEO_PLAYER_STATE="vps"}(P||(P={}));const B=function(){"use strict";const e={},t={},n=function(e,n){t[e]=t[e]||[],t[e].push(n)},r=function(t,n){const r=e[t];r&&r.run.apply({},n)},i=function(e,n,r){let i=t[e];if(i&&0!==i)return r&&(i=i.slice(0,1)),f(i).each((function(e,t){n.apply({},t)})),!0},o=function(t,n,r){e[t]=e[t]||new H,e[t].push(n,r)};return{on:function(e,t){let n={};t?n[e]=t:n=e,f(n).each(o),f(n).each(i)},once:function(e,t){i(e,t,!0)||o(e,t,1)},trigger:function(e){const t=f(arguments).toArray();t.shift(),r(e,t)},persistentTrigger:function(e){const t=f(arguments).toArray();t.shift(),n(e,t),r(e,t)}}};var G=function(){"use strict";var e=function(t,n,r){var i,o,a=n.length,s=Te.isWindow(t)?t.frames:Te.getChildWindowsOf(t);if(r&&r(t,n),s&&s.length){for(i=0;i=i&&!t[i]&&(r.getTask().call(),t[i]=!0)}))}}},k=function(){"use strict";var e,n=new j;return{listen:function(r,i,o){e=function(e){!function(e,t,r,i){var o,a,s,u;if(JSON&&JSON.parse)try{o=JSON.parse(e.data),a=e.source,u=f.noop,t(o)&&(i&&(s=i(a,o))&&(u=function(){n.send((function(){return s}),a)}),r(e,o,u))}catch(e){o&&l.getAggregator().trigger(C.ERROR,p.ERROR_CODES.MESSAGE_LISTENER)}}(e,r,i,o)},pe.addEvent(t,"message",e)},stop:function(){e&&pe.removeEvent(t,"message",e),e=null}}},j=function(){"use strict";return{send:function(e,t){if(JSON&&JSON.stringify){var n=function(e){return f(e).isObj()?[e]:(new G).getFrames(e)}(t);f(n).each((function(t,n){var r,i=f.resolve(e,n)||{};i.sentTime=Pe.now(),r=function(e){return f(e).mapToObj((function(e,t){var n;return f.isFunction(t)||((n={})[e]=t),n}))}(i),n.postMessage(f(r).JSONStringify(),"*")}))}}}},q=function(e){"use strict";var t=0,n={},r=function(e,n,r){if(f.isUndef(e.output))throw new Error("item with id "+n+' must have "output" method');this.item=e,this.id=n||++t,this.props=r||{},this.output=function(){var t=f.resolve(e.output);return this.props.asION&&(t=f(t).toION()),t}},i=function(e){var t,r,i=[];for(t in n)n.hasOwnProperty(t)&&(r=e(t,n[t]))&&i.push(r);return i},o=function(e,t,i){i="string"!=typeof(i=i||t)?i:{};var o=f(e.output).isObj()&&!i.asION,a=function(e,t,i){var o=new r(e,t,i);n[o.id]=o};o?f(e.output).each((function(e,t){a({output:t},e,i)})):a(e,t,i)};return e.on(C.ADD_OUTPUT_ITEM,(function(e,t,n){o(e,t,n)})),{addItem:o,filterOutput:function(e,t){return i((function(n,r){var i,o=r.props;e(o)&&(i=r.output(),o.encode&&(n=encodeURIComponent(n),i=encodeURIComponent(i)),f.isFunction(t)?t(n,i):t[n]=i)}))},iterate:i,cleanup:function(){i((function(e,t){t.props.flagForRemoval&&delete n[e]}))},getItem:function(e){return n[e]}}};const K=function(){"use strict";const e={},t=(t,n)=>{e[t]=n};return{request:function(t){let n;const r=e[t],i=f(arguments).toArray();return i.shift(),f.isUndef(r)||(n=f.isFunction(r)?r.apply({},i):r),n},provide:(e,n)=>(n?t(e,n):f(e).each(t),n)}};var X=function(){"use strict";return{createInstance:function(e,t,n,r){return le.isDomless()?new J:new z(e,t,n,r)}}},z=function(e,t,n,r){"use strict";var i,o=function(e,t){return{viewState:p.NA,posViewState:p.NA,embedded:le.embedded,winDimensions:e,adDimensions:t}};return{collect:function(){var t=e.find(),a=t.getOutOfViewReasons(),s=n.isHidden(),u=r.isDeviceTypeGroupMobile()&&i?i:Ae(Te.calcWinDims()),c=t.getDims();return i=u,t.hasAd()&&u.hasValidDims()&&c.hasValidDims()?(!0===s&&a.push(p.OUT_OF_VIEW_REASONS.FOCUS),{winDimensions:u,adDimensions:c,containerDimensions:t.getContainerDims(),method:t.getDetectionMethod(),viewState:a.length?p.OUT_OF_VIEW:t.getViewState(),viewStateIgnoringRender:t.getViewStateIgnoringRender(),percentInView:t.getPercentInView(),percentInViewIgnoringRender:t.getPercentInViewIgnoringRender(),reason:a.join("."),obstructed:f.stringifyTriState(t.isObstructed()),isHidden:f.stringifyTriState(t.isHidden()),tabHidden:f.stringifyTriState(s),posViewState:t.getViewState(),adCompCount:t.getComponentCount(),sliceStatus:t.getSliceStatus()}):o(u,c)}}},J=function(){"use strict";return{collect:function(){return{}}}},Q=function(e){"use strict";e=e||f.identity;var t=[],n=Pe.now(),r=function(){var e=Pe.now();t.length&&(t[t.length-1].duration+=e-n,n=e)};return{clear:function(){r(),t=[]},fastForward:r,get:function(){return t},hasAlwaysBeen:function(e){return 1===t.length&&t[0].state===e},addState:function(n){var i=t[t.length-1],o=e(n);r(),0!==t.length&&o===i.state||t.push({state:o,duration:0})}}};const Z=function(e,t){"use strict";const n=e||1;let r,i=0,o=0,a=0;return{start:()=>{i%n==0&&(r=Pe.now())},stop:()=>{const e=r||t;i%n==0&&(a+=Pe.now()-e,o++),i++},getTime:()=>a,getCount:()=>o}};var $=function(){"use strict";var e,t=0,n=0,r=new B(!0),i=function(){e&&(t++,r.trigger(t),n>t?Pe.execAtEndOfThread(i):o())},o=function(){e=!1,t=0};return{onTick:function(e,t){var i=f.collapseArgsIntoHash(e,t);f(i).each((function(e,t){e=parseInt(e),n=e>n?e:n})),r.on(i)},start:function(){e||(e=!0,Pe.execAtEndOfThread(i))},kill:o,isActive:function(){return e}}},ee=function(e){"use strict";var t,n=0,r=le.getTagTime(),i=0,o=!1;return{getTotalTime:function(){return i},stop:function(){n=0,r=le.getTagTime(),o=!1},mark:function(){t=o?le.getTagTime()-r:0,(n+=t)>=e&&(i+=n-t1,a&&(i=r[1].split("&")[0],o=[r[0],i].join(e),g=g.replace(o,o+t)))},fullDom:o,hostname:s,sub:l,master:p,setParam:function(e,t){E[e]=E[e]||{},"string"==typeof t||"number"==typeof t?E[e]=t:f(E[e]).mixin(t)},path:function(e){d=e},toString:function(){const e=l()?l()+".":"",t=d?"/"+d:"",n=g||!f(E).isEmpty()?m():"";return a+"://"+e+p()+t+n}}};var ne=function(){"use strict";var e=function(e){var t=[];return f(e).each((function(e,n){t.concat(n).join("").length<=400&&t.push(n)})),t},t=function(e){var t=Te.getAncestorNodes(e);return f(t).map(n)},n=function(e,t){var n;return t&&t.id&&(n=t.id.replace(/[^\w-_.>\/]/g,"")),n};return function(){var n,r;try{return le.friendly&&!le.isMobileApp()&&((n=l.getAggregator().request("adSlotIds"))?r=n:(n=function(){var n,r;return(n=Te.getOurNodeInTop())&&(r=t(n)),r&&e(r)}(),n&&(l.getAggregator().trigger(C.ADD_OUTPUT_ITEM,{output:n},P.SLID,{type:p.DT_CODES.ADTALK,asION:!0}),l.getAggregator().provide("adSlotIds",n),r=n))),r}catch(e){l.getAggregator().trigger(C.ERROR,p.ERROR_CODES.AD_SLOT_ID)}}()},re={name:"AdRefreshDetection",dependencies:[],creator:function(){"use strict";var t=[15,30,45,60,90],n={start:function(){var t=this,n=e.asid,r=this.getChanId(),i=e&&e.contextNode&&e.contextNode.nextSibling&&e.contextNode.nextSibling.id;n&&r&&(this.recordAdSlotImpression(n,r,i,(function(e,n){e?l.getAggregator().trigger(C.ERROR,p.ERROR_CODES.AD_REFRESH):t.sendRefreshSession(n)})),t.registerInternalViewabilityListener(r,i))},adRefreshIntervalIsValid:function(e){return-1!==t.indexOf(e)},getChanId:function(){for(var t,n=e.reqquery.split("&"),r=/(\S+)=(\S+)/g,i=0;i-1?e.OPERA:n.indexOf("firefox")>-1?e.GECKO:n.indexOf("edg")>-1?e.MSEDGE:n.indexOf("chrome")>-1?e.CHROME:n.indexOf("webkit")>-1?e.WEBKIT:n.indexOf("msie")>-1?e.IE:encodeURIComponent(n)||"_"},r=function(){var e=!1,t=Pe.getWindow();return f.isDef(t.navigator)&&f.isDef(t.navigator.userAgent)&&(e=t.navigator.userAgent),e};return{browserIs:function(e){return t()===e},hasIntersectionObserver:function(){return"function"==typeof IntersectionObserver},hasMutationObserver:function(){return"function"==typeof MutationObserver},hasResizeObserver:function(){return"function"==typeof ResizeObserver},hasAncestorOrigins:function(){var e=Pe.getWindow().location;return!(!e||!e.ancestorOrigins)},hasPostMessage:function(){var e=Pe.getWindow();return!(!e||!f.isFunction(e.postMessage))},getBrowserType:t,getBrowserTypeByUA:n,getUserAgent:r,params:function(){return{br:t(),bru:n(),an:(e=p.NA,r=Pe.getWindow(),f.isDef(r.navigator)&&f.isDef(r.navigator.appName)&&(e=r.navigator.appName.toLowerCase()[0]),e)};var e,r},isAndroidWebViewBrowser:function(){var e=r();return He.contains(e,"Android")&&f(["Line","SamsungBrowser","FB_IAB","Silk"]).findFirst((function(t,n){return He.contains(e,n)}))},getIOSVersion:function(){var e,t,n,i=r();return i&&(e=i.match(/OS\s\d+/))&&e.length>0&&(n=(t=e.toString().match(/\d+/))&&t.length>0&&parseInt(t.toString())),n}}},ce=function(){"use strict";var e=function(){return!1};return{getBrowserType:()=>"u",getBrowserTypeByUA:()=>"d",getIOSVersion:()=>{},params:()=>({br:"u",bru:"d",an:p.NA}),browserIs:e,getUserAgent:e,hasPostMessage:e,hasAncestorOrigins:e,hasIntersectionObserver:e,hasMutationObserver:e,isAndroidWebViewBrowser:e}},de=function(){"use strict";return{createInstance:function(e,t){return le.isDomless()?new Ee(t):new fe(e,t)}}},ge=function(){"use strict";var t;return{isApplicable:function(e){var n=!(!(t=l.getAggregator().request("omidAdSessionContext")).app||!t.isDisplay||t.isWeb),r=e&&e.indexOf("/blocking/")>-1&&!le.integratedBlockingApplies(e);return n&&r},deployBlockingScriptIntoIframe:function(n){t=l.getAggregator().request("omidAdSessionContext");var r,i="iasbi"+e.asid,o=function(t,n){var r,i,o,a=e[P.CONTEXT_NODE].parentNode,s="about:blank",u=e.adWidth&&e.adWidth>0?e.adWidth:0,c=e[P.AD_HEIGHT]&&e[P.AD_HEIGHT]>0?e[P.AD_HEIGHT]:0,d=Pe.getDoc().getElementsByTagName("ins"),g=0,f=0;d&&d.length>0&&(o=d[0],g=parseInt(o.style.width),f=parseInt(o.style.height));var E=g||u||window.innerWidth,l=f||c||window.innerHeight;return"complete"===Pe.getDoc().readyState&&(e.forceAppend="true"),"true"===e.forceAppend?((r=Pe.getDoc().createElement("IFRAME")).id=t,r.src=s,a.appendChild(r)):Pe.getDoc().write(''),(i=Pe.getDoc().getElementById(t))&&(i.style.width=E+"px",i.style.height=l+"px",i.scrolling="no",i.frameborder=0,i.style.position="absolute",i.style.padding=i.style.margin=i.style.border="0px"),i}(i);o&&(r=o.contentWindow.document)&&(r.open().write(function(e,t){var n,r="",i="",o=Pe.getDoc().getElementsByTagName("ins");if(o&&o.length>0){n=o[0],r="