Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 d.java 源代码,内容仅作参考
package ug;
public final class d {
public static final d INSTANCE = new d();
private static final String OM_JS = ";(function(omidGlobal) {\n var m;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function p(a){var b='undefined'!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if('number'==typeof a.length)return{next:aa(a)};throw Error(String(a)+' is not an iterable or ArrayLike');}function q(a){if(!(a instanceof Array)){a=p(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}\nvar ba='function'==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},r='function'==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};\nfunction ca(a){a=['object'==typeof globalThis&&globalThis,a,'object'==typeof window&&window,'object'==typeof self&&self,'object'==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error('Cannot find global object');}var da=ca(this);function u(a,b){if(b)a:{var c=da;a=a.split('.');for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&r(c,a,{configurable:!0,writable:!0,value:b})}}var ea;\nif('function'==typeof Object.setPrototypeOf)ea=Object.setPrototypeOf;else{var fa;a:{var ha={a:!0},ia={};try{ia.__proto__=ha;fa=ia.a;break a}catch(a){}fa=!1}ea=fa?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+' is not extensible');return a}:null}var ja=ea;\nfunction v(a,b){a.prototype=ba(b.prototype);a.prototype.constructor=a;if(ja)ja(a,b);else for(var c in b)if('prototype'!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Ia=b.prototype}function w(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b}function x(a,b){return Object.prototype.hasOwnProperty.call(a,b)}\nvar ka='function'==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)x(d,e)&&(a[e]=d[e])}return a};u('Object.assign',function(a){return a||ka});\nu('Symbol',function(a){function b(f){if(this instanceof b)throw new TypeError('Symbol is not a constructor');return new c(d+(f||'')+'_'+e++,f)}function c(f,k){this.g=f;r(this,'description',{configurable:!0,writable:!0,value:k})}if(a)return a;c.prototype.toString=function(){return this.g};var d='jscomp_symbol_'+(1E9*Math.random()>>>0)+'_',e=0;return b});\nu('Symbol.iterator',function(a){if(a)return a;a=Symbol('Symbol.iterator');for(var b='Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array'.split(' '),c=0;c<b.length;c++){var d=da[b[c]];'function'===typeof d&&'function'!=typeof d.prototype[a]&&r(d.prototype,a,{configurable:!0,writable:!0,value:function(){return la(aa(this))}})}return a});function la(a){a={next:a};a[Symbol.iterator]=function(){return this};return a}\nu('WeakMap',function(a){function b(h){this.g=(g+=Math.random()+1).toString();if(h){h=p(h);for(var l;!(l=h.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(h){var l=typeof h;return'object'===l&&null!==h||'function'===l}function e(h){if(!x(h,k)){var l=new c;r(h,k,{value:l})}}function f(h){var l=Object[h];l&&(Object[h]=function(n){if(n instanceof c)return n;Object.isExtensible(n)&&e(n);return l(n)})}if(function(){if(!a||!Object.seal)return!1;try{var h=Object.seal({}),l=Object.seal({}),\nn=new a([[h,2],[l,3]]);if(2!=n.get(h)||3!=n.get(l))return!1;n.delete(h);n.set(l,4);return!n.has(h)&&4==n.get(l)}catch(t){return!1}}())return a;var k='$jscomp_hidden_'+Math.random();f('freeze');f('preventExtensions');f('seal');var g=0;b.prototype.set=function(h,l){if(!d(h))throw Error('Invalid WeakMap key');e(h);if(!x(h,k))throw Error('WeakMap key fail: '+h);h[k][this.g]=l;return this};b.prototype.get=function(h){return d(h)&&x(h,k)?h[k][this.g]:void 0};b.prototype.has=function(h){return d(h)&&x(h,\nk)&&x(h[k],this.g)};b.prototype.delete=function(h){return d(h)&&x(h,k)&&x(h[k],this.g)?delete h[k][this.g]:!1};return b});\nu('Map',function(a){function b(){var g={};return g.H=g.next=g.head=g}function c(g,h){var l=g.g;return la(function(){if(l){for(;l.head!=g.g;)l=l.H;for(;l.next!=l.head;)return l=l.next,{done:!1,value:h(l)};l=null}return{done:!0,value:void 0}})}function d(g,h){var l=h&&typeof h;'object'==l||'function'==l?f.has(h)?l=f.get(h):(l=''+ ++k,f.set(h,l)):l='p_'+h;var n=g.h[l];if(n&&x(g.h,l))for(g=0;g<n.length;g++){var t=n[g];if(h!==h&&t.key!==t.key||h===t.key)return{id:l,list:n,index:g,B:t}}return{id:l,list:n,\nindex:-1,B:void 0}}function e(g){this.h={};this.g=b();this.size=0;if(g){g=p(g);for(var h;!(h=g.next()).done;)h=h.value,this.set(h[0],h[1])}}if(function(){if(!a||'function'!=typeof a||!a.prototype.entries||'function'!=typeof Object.seal)return!1;try{var g=Object.seal({x:4}),h=new a(p([[g,'s']]));if('s'!=h.get(g)||1!=h.size||h.get({x:4})||h.set({x:4},'t')!=h||2!=h.size)return!1;var l=h.entries(),n=l.next();if(n.done||n.value[0]!=g||'s'!=n.value[1])return!1;n=l.next();return n.done||4!=n.value[0].x||\n't'!=n.value[1]||!l.next().done?!1:!0}catch(t){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(g,h){g=0===g?0:g;var l=d(this,g);l.list||(l.list=this.h[l.id]=[]);l.B?l.B.value=h:(l.B={next:this.g,H:this.g.H,head:this.g,key:g,value:h},l.list.push(l.B),this.g.H.next=l.B,this.g.H=l.B,this.size++);return this};e.prototype.delete=function(g){g=d(this,g);return g.B&&g.list?(g.list.splice(g.index,1),g.list.length||delete this.h[g.id],g.B.H.next=g.B.next,g.B.next.H=g.B.H,g.B.head=null,this.size--,\n!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.H=b();this.size=0};e.prototype.has=function(g){return!!d(this,g).B};e.prototype.get=function(g){return(g=d(this,g).B)&&g.value};e.prototype.entries=function(){return c(this,function(g){return[g.key,g.value]})};e.prototype.keys=function(){return c(this,function(g){return g.key})};e.prototype.values=function(){return c(this,function(g){return g.value})};e.prototype.forEach=function(g,h){for(var l=this.entries(),n;!(n=l.next()).done;)n=n.value,\ng.call(h,n[1],n[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var k=0;return e});u('Object.values',function(a){return a?a:function(b){var c=[],d;for(d in b)x(b,d)&&c.push(b[d]);return c}});function ma(a,b){a instanceof String&&(a+='');var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}u('Array.prototype.keys',function(a){return a?a:function(){return ma(this,function(b){return b})}});\nu('Set',function(a){function b(c){this.g=new Map;if(c){c=p(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||'function'!=typeof a||!a.prototype.entries||'function'!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(p([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x||\nf.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=\nb.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});u('Object.is',function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});u('Array.prototype.includes',function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});\nu('String.prototype.includes',function(a){return a?a:function(b,c){if(null==this)throw new TypeError(\"The 'this' value for String.prototype.includes must not be null or undefined\");if(b instanceof RegExp)throw new TypeError('First argument to String.prototype.includes must not be a regular expression');return-1!==this.indexOf(b,c||0)}});u('Object.entries',function(a){return a?a:function(b){var c=[],d;for(d in b)x(b,d)&&c.push([d,b[d]]);return c}});\nu('Array.prototype.values',function(a){return a?a:function(){return ma(this,function(b,c){return c})}});\nvar z={wa:'loaded',Da:'start',qa:'firstQuartile',ya:'midpoint',Ea:'thirdQuartile',oa:'complete',za:'pause',Ba:'resume',na:'bufferStart',ma:'bufferFinish',Ca:'skipped',Ga:'volumeChange',Aa:'playerStateChange',ja:'adUserInteraction'},na={ta:'generic',Fa:'video',xa:'media'},oa={ba:'native',ua:'html',V:'javascript'},pa={ba:'native',V:'javascript',NONE:'none'},qa={sa:'full',pa:'domain',va:'limited'},ra={la:'backgrounded',ra:'foregrounded'},sa={ka:'app',Ha:'web'};function A(a,b){this.x=null!=a.x?a.x:a.left;this.y=null!=a.y?a.y:a.top;this.width=a.width;this.height=a.height;this.endX=this.x+this.width;this.endY=this.y+this.height;this.adSessionId=a.adSessionId||void 0;this.isFriendlyObstructionFor=a.isFriendlyObstructionFor||[];this.h=a.friendlyObstructionClass||void 0;this.i=a.friendlyObstructionPurpose||void 0;this.j=a.friendlyObstructionReason||void 0;this.clipsToBounds=void 0!==a.clipsToBounds?!0===a.clipsToBounds:!0;this.m=void 0!==a.hasWindowFocus?!0===\na.hasWindowFocus:!0;this.notVisibleReason=a.notVisibleReason||void 0;this.noOutputDevice=a.noOutputDevice||void 0;this.childViews=a.childViews||[];this.isCreative=a.isCreative||!1;this.g=b}function ta(a){var b={};return b.width=a.width,b.height=a.height,b}function C(a){var b={};return Object.assign({},ta(a),(b.x=a.x,b.y=a.y,b))}function E(a){var b=C(a),c={};return Object.assign({},b,(c.endX=a.endX,c.endY=a.endY,c))}function ua(a,b,c){a.x+=b;a.y+=c;a.endX+=b;a.endY+=c}\nA.prototype.M=function(a){if(null==a)return!1;a=C(a);var b=a.y,c=a.width,d=a.height;return this.x===a.x&&this.y===b&&this.width===c&&this.height===d};function va(a){return a.width*a.height}function H(a){return 0===a.width||0===a.height};function wa(a,b){a=C(a);for(var c=[],d=[],e=0;e<b.length;e++){var f=C(b[e]);f=xa(a,f);I(c,f.x);I(c,f.endX);I(d,f.y);I(d,f.endY)}c=c.sort(function(k,g){return k-g});d=d.sort(function(k,g){return k-g});return{ha:c,ia:d}}function xa(a,b){return{x:Math.max(a.x,b.x),y:Math.max(a.y,b.y),endX:Math.min(a.x+a.width,b.x+b.width),endY:Math.min(a.y+a.height,b.y+b.height)}}function I(a,b){-1===a.indexOf(b)&&a.push(b)};function J(){this.h=this.g=this.D=this.u=this.m=this.s=void 0;this.A=0;this.l=[];this.v=[];this.C=0;this.o=[];this.j=[];this.i=[]}J.prototype.M=function(a){return null==a?!1:JSON.stringify(ya(this))===JSON.stringify(ya(a))};\nfunction ya(a){var b=[],c=[],d={viewport:a.s,adView:{percentageInView:a.A,pixelsInView:a.C,reasons:a.i},declaredFriendlyObstructions:a.l.length};if(void 0!==a.g){d.adView.geometry=C(a.g);d.adView.geometry.pixels=va(a.g);d.adView.onScreenGeometry=C(a.h);d.adView.onScreenGeometry.pixels=za(a);for(var e=0;e<a.j.length;e++)b.push(C(a.j[e]));for(e=0;e<a.v.length;e++){var f=a.v[e],k=f,g={};k.h&&(g.obstructionClass=k.h);k.i&&(g.obstructionPurpose=k.i);k.j&&(g.obstructionReason=k.j);f=xa(a.g,f);c.push(Object.assign({},\n{x:f.x,y:f.y,width:f.endX-f.x,height:f.endY-f.y},g))}d.adView.onScreenGeometry.obstructions=b;d.adView.onScreenGeometry.friendlyObstructions=c;void 0!==a.u&&void 0!==a.D&&(d.adView.containerGeometry=C(a.u),d.adView.onScreenContainerGeometry=C(a.D),d.adView.measuringElement=!0)}return d}function Aa(a,b){b=ta(b);a.s={};a.s.width=b.width;a.s.height=b.height;a.m={};a.m.x=0;a.m.y=0;a.m.width=b.width;a.m.height=b.height;a.m.endX=b.width;a.m.endY=b.height}\nfunction Ba(){return{x:0,y:0,endX:0,endY:0,width:0,height:0}}function Ca(a,b){var c={};c.x=Math.max(a.x,b.x);c.y=Math.max(a.y,b.y);c.endX=Math.min(a.endX,b.endX);c.endY=Math.min(a.endY,b.endY);c.width=Math.max(0,c.endX-c.x);c.height=Math.max(0,c.endY-c.y);return c}function Da(a,b){return.01<b.width-a.width||.01<b.height-a.height}function Ea(a){if(-1!==a.i.indexOf('backgrounded'))a.A=0,a.C=0;else{var b=va(a.g);if(0!==b){var c=za(a);a.A=Math.round(c/b*100);a.C=c}}}\nfunction Fa(a,b){if(H(b)||!a.h)b=!1;else{var c=E(a.h),d=c.y,e=c.endX;a=c.endY;var f=b.endX;c=c.x;(f=f<c||.01>Math.abs(f-c))||(f=b.x,f=f>e||.01>Math.abs(f-e));(e=f)||(e=b.endY,e=e<d||.01>Math.abs(e-d));(d=e)||(b=b.y,d=b>a||.01>Math.abs(b-a));b=!d}return b}function K(a,b){for(var c=!1,d=0;d<a.i.length;d++)a.i[d]===b&&(c=!0);c||a.i.push(b)}\nfunction za(a){var b=Math,c=b.max,d=va(a.h),e=a.j,f=0;if(0<e.length){var k=wa(a.h,e);a=k.ha;k=k.ia;for(var g=0;g<a.length-1;g++)for(var h=(a[g]+(a[g]+1))/2,l=a[g+1]-a[g],n=0;n<k.length-1;n++){for(var t=(k[n]+(k[n]+1))/2,B=k[n+1]-k[n],y=!1,F=0;F<e.length;F++){var G=C(e[F]);if(G.x<h&&G.x+G.width>h&&G.y<t&&G.y+G.height>t){y=!0;break}}y&&(f+=Math.round(l)*Math.round(B))}}return c.call(b,0,d-f)};function Ga(){};function Ha(){}\nfunction Ia(a,b,c,d,e){var f=new J;b=new A(b,!1);Aa(f,b);Ja(a,b,f,d);if(!e)return f.i=['unmeasurable'],f.s=void 0,f.A=0,f.j=[],f.g&&(a=f.g,c={},a=new A((c.x=0,c.y=0,c.width=a.width,c.height=a.height,c),a.g),f.g=a),f.h=Ba(),f;b.noOutputDevice&&(K(f,'backgrounded'),K(f,'noOutputDevice'));if('backgrounded'===c)K(f,'backgrounded');else if(void 0!==f.g){for(a=0;a<f.l.length;a++)Fa(f,f.l[a])&&f.v.push(f.l[a]);for(a=0;a<f.o.length;a++){if(c=Fa(f,f.o[a])){a:{c=f.o[a];for(d=0;d<f.j.length;d++)if(f.j[d].M(c)){c=!0;\nbreak a}c=!1}c=!c}c&&(K(f,'obstructed'),f.j.push(f.o[a]))}Ea(f)}else K(f,'notFound');return f}\nfunction Ja(a,b,c,d){var e=b.isCreative?!0:b.adSessionId===d;if(e){c.g=b;var f=E(c.g);a=Ca(c.m,f);var k=c.g;'notAttached'===k.notVisibleReason||'noWindowFocus'===k.notVisibleReason||'noAdView'===k.notVisibleReason?(K(c,'notFound'),c.h=new A(Ba(),!1)):(k=c.g,'viewInvisible'===k.notVisibleReason||'viewGone'===k.notVisibleReason||'viewNotVisible'===k.notVisibleReason||'viewAlphaZero'===k.notVisibleReason||'viewHidden'===k.notVisibleReason||void 0!==c.g.notVisibleReason||H(c.g)?(K(c,'hidden'),c.h=new A(Ba(),\n!1)):(c.g.m||(K(c,'backgrounded'),K(c,'noWindowFocus')),Da(a,f)&&K(c,'clipped'),c.h=new A(a,!1)))}else if(f=!0,b.g&&(f=-1!==b.isFriendlyObstructionFor.indexOf(d)?!1:!1===b.clipsToBounds),f){k=b.childViews;for(var g=0;g<k.length;g++)f=void 0!==c.g,Ja(a,new A(k[g],f),c,d)}e||void 0===c.g||(b.g?-1!==b.isFriendlyObstructionFor.indexOf(d)?c.l.push(b):c.o.push(b):(e=E(b),d=E(c.h),C(c.h),!H(c.h)&&b.clipsToBounds&&(b=Ca(d,e),Da(b,d)&&(K(c,'clipped'),c.h=new A(b,!1)))))};function Ka(){this.h=new Map;this.g=null}function La(){Ma||(Ma=new Ka);return Ma}var Ma=null;function Na(a,b){this.y=this.x=0;this.width=a;this.height=b};function Oa(){this.adSessionId=null;this.o={apiVersion:'1.0',accessMode:'limited',environment:'app',omidJsInfo:{omidImplementer:'omsdk',serviceVersion:'1.4.8-iab4174'}};this.C=null;this.A='foregrounded';this.u=this.l='none';this.s=this.j=this.i=this.m=this.h=this.g=this.J=this.D=null;this.I=!0;this.v=new Map};var L=function(){if('undefined'!==typeof omidGlobal&&omidGlobal)return omidGlobal;if('undefined'!==typeof global&&global)return global;if('undefined'!==typeof window&&window)return window;if('undefined'!==typeof globalThis&&globalThis)return globalThis;var a=Function('return this')();if(a)return a;throw Error('Could not determine global object context.');}();function Pa(a,b){this.g=a;this.h=b}da.Object.defineProperties(Pa.prototype,{event:{configurable:!0,enumerable:!0,get:function(){return this.g}},origin:{configurable:!0,enumerable:!0,get:function(){return this.h}}});function M(){var a=w.apply(0,arguments);Qa(function(){throw new (Function.prototype.bind.apply(Error,[null,'Could not complete the test successfully - '].concat(q(a))));},function(){return console.error.apply(console,q(a))})}function Ra(){var a=w.apply(0,arguments);Qa(function(){},function(){return console.error.apply(console,q(a))})}function Qa(a,b){'undefined'!==typeof jasmine&&jasmine?a():'undefined'!==typeof console&&console&&console.error&&b()};function Sa(a){this.g=a;this.m=[];this.i=[];this.j=[];this.l=[];this.o={}}function Ta(a,b){if(void 0!==a.g&&a.g.adSessionId&&!1!==Ua(a,b)){var c=b.event;a.j.filter(function(d){return d.type===c.type}).forEach(function(d){a.h(d.G,c)})}}function Va(a,b){a.m.push(b);Ta(a,b)}function Wa(a,b,c){void 0!==a.g&&a.g.adSessionId&&a.m.filter(function(d){return d.event.type===b&&Ua(a,d)}).map(function(d){return d.event}).forEach(function(d){a.h(c.G,d)})}\nfunction Ua(a,b){var c=b.event.type,d=-1!==Object.values(z).indexOf(c)&&'volumeChange'!==c;return'impression'===c||'loaded'===c&&a.g.h?b.origin===a.g.u:d?b.origin===a.g.l:!0}function Xa(a,b,c){Object.keys(z).forEach(function(d){d=z[d];var e={type:d,P:c,G:b};a.j.push(e);Wa(a,d,e)})}function Ya(a,b,c,d){var e={U:c,P:d,G:b};a.l.push(e);a.i.forEach(function(f){var k=Za(f);'sessionStart'===f.event.type&&$a(a,k,e);a.h(e.G,k)})}\nfunction ab(a,b,c){var d=N(a,'sessionError','native',{errorType:b,message:c});a.i.push(d);a.l.forEach(function(e){a.h(e.G,d.event)})}function bb(a,b){a.o=Object.assign(a.o,b);b=a.g.o;if(void 0!==b){b=Object.assign({},cb(db(a,eb(a,{context:b}),!0)),{supportsLoadedEvent:!!a.g.h||'video'==a.g.g});Object.assign(b,{pageUrl:null,contentUrl:a.g.C});var c=N(a,'sessionStart','native',b);a.i.push(c);a.l.forEach(function(d){var e=Za(c);$a(a,e,d);a.h(d.G,e)},a);fb(a)}}\nfunction $a(a,b,c){c.U&&(b.data.verificationParameters=a.o[c.U]);c.P&&(c=a.g.v.get(c.P))&&(b.data.verificationParameters=c.verificationParameters,b.data.context.accessMode=c.accessMode,'full'===c.accessMode&&(a.g.j&&(b.data.context.videoElement=a.g.j),a.g.i&&(b.data.context.slotElement=a.g.i)))}function gb(a){var b=N(a,'sessionFinish','native');a.i.push(b);a.l.forEach(function(c){a.h(c.G,b.event)})}Sa.prototype.h=function(a){var b=w.apply(1,arguments);try{a.apply(null,q(b))}catch(c){Ra(c)}};\nfunction hb(a,b){var c=(c=a.g.K)?ya(c):null;c=db(a,eb(a,c));Va(a,N(a,'impression',b,c))}function ib(a,b,c){if(a.g.h||'display'!=a.g.g)b=N(a,'loaded',b,db(a,eb(a,void 0===c?null:c))),Va(a,b)}\nfunction jb(a,b,c,d){'start'!==b&&'volumeChange'!==b||null!=(d&&d.deviceVolume)||(d.deviceVolume=a.g.D);if(d&&('start'===b||'volumeChange'===b)){var e=d.videoPlayerVolume,f=d.mediaPlayerVolume;null!=e?(Object.assign(d,{mediaPlayerVolume:e}),a.g.J=e):null!=f&&(Object.assign(d,{videoPlayerVolume:f}),a.g.J=f)}Va(a,N(a,b,c,d))}\nfunction fb(a){var b=a.m.filter(function(f){return Object.values(z).includes(f.event.type)&&'video'==a.g.g&&f.origin===a.g.l||'loaded'==f.event.type&&'display'==a.g.g&&f.origin===a.g.u?!0:!1}).map(function(f){return f.event}),c=a.g.adSessionId||'',d={};b=p(b);for(var e=b.next();!e.done;d={F:d.F},e=b.next()){d.F=e.value;d.F.adSessionId||(d.F.adSessionId=c);if('loaded'==d.F.type){if(!a.g.h&&'display'==a.g.g)continue;d.F.data=db(a,eb(a,d.F.data))}a.j.filter(function(f){return function(k){return k.type===\nf.F.type}}(d)).forEach(function(f){return function(k){return k.G(f.F)}}(d))}}function kb(a,b,c){a:{c=new Set(c);a=p(a.m.concat(a.i));for(var d=a.next();!d.done;d=a.next())if(d=d.value,c.has(d.event.type)&&d.origin!=b){b=!0;break a}b=!1}return b?(M('Event owner cannot be registered after its events have already been published.'),!1):!0}function lb(a,b){kb(a,b,Object.values(z))&&mb(a,b)&&(a.g.l=b)}function nb(a,b){kb(a,b,['impression'])&&ob(a,b)&&(a.g.u=b)}\nfunction ob(a,b){var c=a.g.u;return'none'!=c&&c!=b?(M('Impression event is owned by '+(a.g.u+', not ')+(b+'.')),!1):!0}function mb(a,b){var c=a.g.l;return'none'!=c&&c!=b?(M('Media events are owned by '+(a.g.l+', not '+b+'.')),!1):!0}function db(a,b,c){c=void 0===c?!1:c;b=Object.assign({},b);a.g.g&&Object.assign(b,{mediaType:a.g.g});a.g.h&&(c||'definedByJavaScript'!==a.g.h)&&Object.assign(b,{creativeType:a.g.h});return b}function cb(a){var b=La().g;return b?Object.assign({},a,{lastActivity:b}):a}\nfunction eb(a,b){return a.g.m?Object.assign({},b,{impressionType:a.g.m}):b}function N(a,b,c,d){return new Pa({adSessionId:a.g.adSessionId||'',timestamp:(new Date).getTime(),type:b,data:d},c)}function Za(a){a=a.event;var b=a.data?Object.assign({},a.data):void 0;'sessionStart'===a.type&&(b.context=Object.assign({},b.context));return{adSessionId:a.adSessionId,timestamp:a.timestamp,type:a.type,data:b}};function pb(a,b,c){this.h=a;this.i=b;this.g=c}\nfunction qb(a,b,c){'container'===b&&void 0!==a.g.L&&void 0!==a.g&&null!=a.g.adSessionId&&(a.g.N=Ia(a.i,a.g.L,a.g.A,a.g.adSessionId,!0));b=a.g;var d=b.N,e=b.O;if(d)if(e){b=new J;var f=d.s,k=d.g,g=d.h,h=e.g,l=e.h;f&&k&&g&&h&&l&&(Aa(b,f),b.u=new A(k,!1),b.D=new A(g,!1),b.o=Object.assign([],d.o),b.j=Object.assign([],d.j),b.l=Object.assign([],d.l),b.v=Object.assign([],d.v),b.i=Object.assign([],e.i,d.i),d=b.u.x,e=b.u.y,h=new A(h,!1),l=new A(l,!1),ua(h,d,e),ua(l,d,e),b.g=h,b.h=Ca(l,g),Ea(b))}else b=d;else b=\nnull;g=a.g.K;if(b&&!b.M(g)||c)g=ya(b),c&&(g.adView.reasons=g.adView.reasons||[c]),c=a.h,'audio'!=c.g.h&&Va(c,N(c,'geometryChange','native',g)),a.g.K=b};function rb(a,b,c){return sb(a,'setInterval')(b,c)}function tb(a,b){sb(a,'clearInterval')(b)}function ub(a,b){sb(a,'clearTimeout')(b)}function sb(a,b){return a.g&&a.g[b]?a.g[b]:vb(a,b)}\nfunction wb(a,b,c,d){if(a.g.document&&a.g.document.body){var e=a.g.document.createElement('img');e.width=1;e.height=1;e.style.display='none';e.src=b;c&&e.addEventListener('load',function(){return c()});d&&e.addEventListener('error',function(){return d()});a.g.document.body.appendChild(e)}else vb(a,'sendUrl')(b,c,d)}function vb(a,b){if(a.g&&a.g.omidNative&&a.g.omidNative[b])return a.g.omidNative[b].bind(a.g.omidNative);throw Error('Native interface method \"'+b+'\" not found.');};function O(a){return'object'===typeof a}function P(a){return'number'===typeof a&&!isNaN(a)&&0<=a}function Q(a){return'string'===typeof a}function R(a,b){return Q(a)&&-1!==Object.values(b).indexOf(a)}function xb(a){return!(!a||!a.tagName||'iframe'!==a.tagName.toLowerCase())};function S(a,b,c,d,e){this.m=a;this.aa=b;this.L=c;this.i=d;this.T=e;this.h=null;this.g=this.j=this.D=void 0;this.O=!0;this.J=void 0;yb(this)}\nfunction yb(a){if(!a.h){var b;a:{if((b=a.m.document)&&b.getElementsByClassName&&(b=b.getElementsByClassName('omid-element'))){if(1==b.length){b=b[0];break a}1<b.length&&a.O&&(ab(a.L,'generic',\"More than one element with 'omid-element' class name.\"),a.O=!1)}b=null}if(b&&b.tagName&&'video'===b.tagName.toLowerCase())a.i.j=b;else if(b&&b.tagName)a.i.i=b;else return;zb(a)}}function zb(a){a.i.j?(a.h=a.i.j,a.o()):a.i.i&&(a.h=a.i.i,xb(a.h)?a.i.s&&a.o():a.o())}\nfunction Ab(a){a.g&&(xb(a.h)?a.i.s&&(a.K(),Bb(a)):(a.K(),Bb(a)))}S.prototype.A=function(){this.J&&(this.m.document.removeEventListener('visibilitychange',this.J),this.J=void 0)};S.prototype.o=function(){};function Bb(a){a.D&&(a.i.O=a.D,qb(a.aa,'creative'))}function Cb(a){if(a.g&&a.i.s){var b=new A(a.i.s,!1);ua(b,a.g.x,a.g.y);b.clipsToBounds=!0;return b}};function T(a,b,c,d,e,f){S.call(this,a,c,d,e,f);this.s=b;this.l=void 0}v(T,S);T.prototype.A=function(){void 0!==this.l&&(tb(this.T,this.l),this.l=void 0);S.prototype.A.call(this)};T.prototype.o=function(){var a=this;S.prototype.o.call(this);null==this.h?this.l=void 0:void 0===this.l&&(this.l=rb(this.T,function(){return Db(a)},200),Db(this))};\nT.prototype.K=function(){if(this.j){var a=Cb(this);if(a){this.g.isCreative=!1;a.isCreative=!0;for(var b=!1,c=0;c<this.g.childViews.length;c++)if(this.g.childViews[c].isCreative){this.g.childViews[c]=a;b=!0;break}b||this.g.childViews.push(a)}else this.g.isCreative=!0;this.D=Ia(this.s,this.j,this.i.A,this.i.adSessionId,this.I())}};T.prototype.I=function(){return!0};\nfunction Db(a){if(void 0!==a.l){b:{try{var b=a.m.top;var c=0<=b.innerHeight&&0<=b.innerWidth;break b}catch(d){}c=!1}c?(c=a.m.top,c=new A(new Na(c.innerWidth,c.innerHeight),!1)):c=new A(new Na(0,0),!1);b=a.h.getBoundingClientRect();if(null==b.x||isNaN(b.x))b.x=b.left;if(null==b.y||isNaN(b.y))b.y=b.top;b=new A(b,!1);c.M(a.j)&&b.M(a.g)||(a.g=b,a.g.clipsToBounds=!0,a.j=c,a.j.childViews.push(a.g),Ab(a))}};function U(a,b,c,d,e,f){S.call(this,a,c,d,e,f);this.v=this.s=this.u=this.l=void 0;this.N=!1;this.C=void 0}v(U,S);U.prototype.A=function(){this.l&&this.l.disconnect();Eb(this);S.prototype.A.call(this)};U.prototype.o=function(){S.prototype.o.call(this);if(this.h&&(this.l||(this.l=Fb(this)),Gb(this),Hb(this.h)&&Ib(this),'backgrounded'===this.i.A)){var a=Jb(new Na(0,0));this.C=this.g=this.j=a;Ab(this)}};\nU.prototype.K=function(){if(this.g&&this.C){var a=Cb(this);if(a){var b=a;var c=this.C;var d=Math.max(a.x,c.x);var e=Math.max(a.y,c.y),f=Math.min(a.endX,c.endX);a=Math.min(a.endY,c.endY);f<=d||a<=e?d=null:(c={},d=new A((c.x=d,c.y=e,c.width=Math.abs(f-d),c.height=Math.abs(a-e),c),!1));d||(d=new A({x:0,y:0,width:0,height:0},!1))}else b=this.g,d=this.C;e=new J;this.j&&Aa(e,this.j);e.g=b;e.h=d;Ea(e);this.N?H(e.g)?K(e,'hidden'):100===e.A||K(e,'clipped'):K(e,'viewport');this.D=e}};U.prototype.I=function(){return!0};\nfunction Eb(a){a.u&&(a.u.disconnect(),a.u=void 0);a.s&&(a.s.disconnect(),a.s=void 0);a.v&&((0,a.m.removeEventListener)('resize',a.v),a.v=void 0)}function Gb(a){a.l&&a.h&&(a.l.unobserve(a.h),a.l.observe(a.h))}function Hb(a){a=a.getBoundingClientRect();return 0==a.width||0==a.height}\nfunction Fb(a){return new a.m.IntersectionObserver(function(b){try{if(b.length){for(var c,d=b[0],e=1;e<b.length;e++)b[e].time>d.time&&(d=b[e]);c=d;a.j=Jb(c.rootBounds);a.g=Jb(c.boundingClientRect);a.C=Jb(c.intersectionRect);a.N=!!c.isIntersecting;Ab(a)}}catch(f){a.A(),ab(a.L,'generic','Problem handling IntersectionObserver callback: '+f.message)}},{root:null,rootMargin:'0px',threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]})}\nfunction Ib(a){a.m.ResizeObserver?a.u||(a.u=Lb(a,function(){return Mb(a)}),a.u.observe(a.h)):(a.v||(a.v=function(){return Mb(a)},(0,a.m.addEventListener)('resize',a.v)),a.s||(a.s=new MutationObserver(function(){return Mb(a)}),a.s.observe(a.h,{childList:!1,attributes:!0,subtree:!1})))}function Mb(a){a.h&&!Hb(a.h)&&(Gb(a),Eb(a))}function Lb(a,b){return new a.m.ResizeObserver(b)}function Jb(a){if(a&&null!==a.x&&null!==a.y&&null!==a.width&&null!==a.height)return new A(a,!1)};function Nb(a,b){this.h=a;this.g=b};function Ob(){return'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(a){var b=16*Math.random()|0;return'y'===a?(b&3|8).toString(16):b.toString(16)})};function Pb(a,b){var c=void 0===c?L:c;this.j=a;this.g=c;this.i=b;this.h=[]}\nfunction Qb(a){if(!a.g||!a.g.document)throw Error('OMID Service Script is not running within a window.');var b=a.h;a.h=[];b.forEach(function(c){try{var d=a.i.I?'limited':'full',e=R(c.accessMode,qa)?c.accessMode:null;var f=e?'full'==e&&'limited'==d?d:'domain'==e?'limited':e:d;c.accessMode=f;a:{var k=c.resourceUrl,g=a.g.location.origin;try{var h=new URL(k,g);break a}catch(F){}try{h=new URL(k);break a}catch(F){}h=null}if(d=h){var l=Ob(),n=a.g.document,t=n.createElement('iframe');t.id='omid-verification-script-frame-'+\nl;t.style.display='none';['full','limited'].includes(f)?t.srcdoc=\"<html><head>\\n<script type=\\\"text/javascript\\\">window['omidVerificationProperties'] = {\\n'serviceWindow': window.parent,\\n'injectionSource': 'app',\\n'injectionId': '\"+(l+'\\',\\n};\\x3c/script>\\n<script type=\"text/javascript\" src=\"')+d.href+'\">\\x3c/script>\\n</head><body></body></html>':'domain'==f&&(t.src=Rb(a,l,d).href);['domain','limited'].includes(f)&&(t.sandbox='allow-scripts');n.body.appendChild(t);La().h.set(l,t);var B=c.vendorKey,\ny=c.verificationParameters;B=void 0===B?'':B;y=void 0===y?'':y;B&&'string'===typeof B&&''!==B&&y&&'string'===typeof y&&''!==y&&(a.j.o[B]=y);a.i.v.set(l,c)}}catch(F){Ra('OMID verification script '+c.resourceUrl+' failed to load: '+F)}})}\nfunction Rb(a,b,c){var d='/.well-known/omid/omloader-v1.html#';(new Map([['verificationScriptUrl',c.href],['injectionId',b]])).forEach(function(e,f){d+=encodeURIComponent(f)+'='+encodeURIComponent(e)+'&'});b=null;try{b=new URL(d,a.g.parent.location.origin)}catch(e){throw Error('OMID Service Script cannot access the parent window.');}return b};function Sb(a,b,c,d,e,f){var k=this;this.g=a;this.h=b;this.j=c;this.i=d;this.l=e;this.o=f;this.m=!1;Tb(this,function(g){if('sessionStart'===g.type){k.m=!0;try{Qb(k.l)}catch(h){M(h.message)}}'sessionFinish'===g.type&&(k.m=!1)})}function Tb(a,b,c,d){Ya(a.h,b,c,d)}m=Sb.prototype;m.setSlotElement=function(a){a&&a.tagName?(this.g.i=a,this.i&&zb(this.i)):M('setSlotElement called with a non-HTMLElement. It will be ignored.')};m.setElementBounds=function(a){this.g.s=a;this.i&&zb(this.i);this.i&&Ab(this.i)};\nm.error=function(a,b){ab(this.h,a,b)};m.injectVerificationScriptResources=function(a){var b=this.l;b.h.push.apply(b.h,q(a));if(this.m)try{Qb(this.l)}catch(c){M(c.message)}};m.setCreativeType=function(a,b){b=void 0===b?null:b;if(!this.g.g||this.g.h)this.g.h=a,'video'==a||'audio'==a?this.g.g='video':'htmlDisplay'==a||'nativeDisplay'==a?this.g.g='display':'definedByJavaScript'==a&&b&&(this.g.g='none'==b?'display':'video')};m.setImpressionType=function(a){if(!this.g.g||this.g.h)this.g.m=a};\nm.setClientInfo=function(a,b,c){var d=this.g.o||{};d.omidJsInfo=Object.assign({},d.omidJsInfo,{sessionClientVersion:a,partnerName:b,partnerVersion:c});this.g.o=d;return this.g.o.omidJsInfo.serviceVersion};function Ub(a,b){if(!b)return a.g;for(var c=p(a.h.values()),d=c.next();!d.done;d=c.next())if(d=d.value,d.g.v.has(b))return d;return a.g}function V(a,b){return null==b?a.g:a.h.get(b)||a.g}function Vb(a){var b=new Oa,c=new Sa(b),d=new Ga,e=new Ha,f=new pb(c,e,b);a=a.i;var k=omidGlobal;d=k?k.IntersectionObserver&&(k.MutationObserver||k.ResizeObserver)?new U(k,d,f,c,b,a):new T(k,e,f,c,b,a):null;return new Sb(b,c,f,d,new Pb(c,b),new Nb(c,b))};function Wb(a){return a&&O(a)?Object.entries(a).reduce(function(b,c){var d=p(c);c=d.next().value;d=d.next().value;return b&&Q(c)&&null!=d&&O(d)&&Q(d.resourceUrl)},!0):!1};function W(a,b,c,d){this.h=a;this.method=b;this.version=c;this.g=d}function Xb(a){return!!a&&void 0!==a.omid_message_guid&&void 0!==a.omid_message_method&&void 0!==a.omid_message_version&&'string'===typeof a.omid_message_guid&&'string'===typeof a.omid_message_method&&'string'===typeof a.omid_message_version&&(void 0===a.omid_message_args||void 0!==a.omid_message_args)}function Yb(a){return new W(a.omid_message_guid,a.omid_message_method,a.omid_message_version,a.omid_message_args)}\nfunction Zb(a){var b={};b=(b.omid_message_guid=a.h,b.omid_message_method=a.method,b.omid_message_version=a.version,b);void 0!==a.g&&(b.omid_message_args=a.g);return b};function $b(a){this.i=a};function X(a){this.i=a;this.handleExportedMessage=X.prototype.j.bind(this)}v(X,$b);X.prototype.h=function(a,b){b=void 0===b?this.i:b;if(!b)throw Error('Message destination must be defined at construction time or when sending the message.');b.handleExportedMessage(Zb(a),this)};X.prototype.j=function(a,b){Xb(a)&&this.g&&this.g(Yb(a),b)};function ac(a){return bc(a,'SessionService.')}function bc(a,b){return(a=a.match(new RegExp('^'+b+'(.*)')))&&a[1]};function cc(a,b){this.i=b=void 0===b?L:b;var c=this;a.addEventListener('message',function(d){if('object'===typeof d.data){var e=d.data;Xb(e)&&d.source&&c.g&&c.g(Yb(e),d.source)}})}v(cc,$b);cc.prototype.h=function(a,b){b=void 0===b?this.i:b;if(!b)throw Error('Message destination must be defined at construction time or when sending the message.');b.postMessage(Zb(a),'*')};function dc(){this.g=ec}m=dc.prototype;m.registerSessionObserver=function(a,b){Tb(V(this.g,a),b)};m.setSlotElement=function(a,b){V(this.g,a).setSlotElement(b)};m.setElementBounds=function(a,b){V(this.g,a).setElementBounds(b)};m.error=function(a,b,c){V(this.g,a).error(b,c)};\nfunction Y(a,b,c,d){a=V(a.g,b);'impression'==c?ob(a.h,'javascript')&&(hb(a.h,'javascript'),a.i&&yb(a.i)):('loaded'==c?(d=void 0===d?null:d,mb(a.h,'javascript')&&ib(a.h,'javascript',d)):mb(a.h,'javascript')&&jb(a.h,c,'javascript',d),['loaded','start'].includes(c)&&a.i&&yb(a.i))}m.injectVerificationScriptResources=function(a,b){V(this.g,a).injectVerificationScriptResources(b)};m.setCreativeType=function(a,b,c){c=void 0===c?null:c;V(this.g,a).setCreativeType(b,c)};\nm.setImpressionType=function(a,b){V(this.g,a).setImpressionType(b)};m.setClientInfo=function(a,b,c,d){var e=this.g;if(null==a)a=e.g;else{var f=[].concat(q(e.h.values())).includes(e.g)?Vb(e):e.g;e.h.set(a,f);a=f}return a.setClientInfo(b,c,d)};function fc(a){a=a.split('-')[0].split('.');for(var b=['1','0','3'],c=0;3>c;c++){var d=parseInt(a[c],10),e=parseInt(b[c],10);if(d>e)break;else if(d<e)return!1}return!0};function gc(a,b){return/\\d+\\.\\d+\\.\\d+(-.*)?/.test(a)&&fc(a)?b:JSON.stringify(b)}function hc(a,b){return/\\d+\\.\\d+\\.\\d+(-.*)?/.test(a)&&fc(a)?b?b:[]:b&&'string'===typeof b?JSON.parse(b):[]};var ic=new function(){};function jc(){var a=kc;var b=void 0===b?omidGlobal:b;this.g=a;this.i=b;this.j=new X;this.i.omid=this.i.omid||{};this.i.omid.v1_SessionServiceCommunication=this.j;this.h=b&&b.addEventListener&&b.postMessage?new cc(b):null;this.m=null;this.j.g=this.l.bind(this);this.h&&(this.h.g=this.o.bind(this))}jc.prototype.l=function(a,b){null!=ac(a.method)&&lc(this,ic)&&mc(this,a,b,this.j)};jc.prototype.o=function(a,b){null!=ac(a.method)&&lc(this,b)&&mc(this,a,b,this.h)};\nfunction lc(a,b){a.m||(a.m=b);return a.m!=b?(M('The source of session client messages cannot be changed from the source of the first message.'),!1):!0}\nfunction mc(a,b,c,d){function e(){var h=new W(f,'response',g,gc(g,w.apply(0,arguments)));d.h(h,c)}var f=b.h,k=b.method,g=b.version;b=hc(g,b.g);try{nc(a,k,e,b)}catch(h){d.h(new W(f,'error',g,'\\n name: '+h.name+'\\n message: '+h.message+'\\n filename: '+h.filename+'\\n lineNumber: '+h.lineNumber+'\\n columnNumber: '+h.columnNumber+'\\n stack: '+h.stack+'\\n toString(): '+h.toString()),c)}}\nfunction nc(a,b,c,d){if(null!=ac(b))switch(ac(b)){case 'registerAdEvents':c=p(d).next().value;nb(V(a.g.g,c).h,'javascript');break;case 'registerMediaEvents':c=p(d).next().value;lb(V(a.g.g,c).h,'javascript');break;case 'registerSessionObserver':b=p(d).next().value;a.g.registerSessionObserver(b,c);break;case 'setSlotElement':b=p(d);c=b.next().value;b=b.next().value;a.g.setSlotElement(b,c);break;case 'setVideoElement':b=p(d);c=b.next().value;b=b.next().value;a=V(a.g.g,b);c&&c.tagName&&'video'===c.tagName.toLowerCase()?\n(a.g.j=c,a.i&&zb(a.i)):M('setVideoElement called with a non-HTMLVideoElement. It will be ignored.');break;case 'setElementBounds':b=p(d);c=b.next().value;b=b.next().value;a.g.setElementBounds(b,c);break;case 'startSession':M('Session start from JS is not supported in mobile app.');break;case 'finishSession':p(d).next();M('Session finish from JS is not supported in mobile app.');break;case 'impressionOccurred':c=p(d).next().value;Y(a.g,c,'impression');break;case 'loaded':b=p(d);c=b.next().value;b=\nb.next().value;c?(d={skippable:c.isSkippable,autoPlay:c.isAutoPlay,position:c.position},c.isSkippable&&(d.skipOffset=c.skipOffset),Y(a.g,b,'loaded',d)):Y(a.g,b,'loaded');break;case 'start':d=p(d);c=d.next().value;b=d.next().value;d=d.next().value;Y(a.g,d,'start',{duration:c,mediaPlayerVolume:b});break;case 'firstQuartile':c=p(d).next().value;Y(a.g,c,'firstQuartile');break;case 'midpoint':c=p(d).next().value;Y(a.g,c,'midpoint');break;case 'thirdQuartile':c=p(d).next().value;Y(a.g,c,'thirdQuartile');\nbreak;case 'complete':c=p(d).next().value;Y(a.g,c,'complete');break;case 'pause':c=p(d).next().value;Y(a.g,c,'pause');break;case 'resume':c=p(d).next().value;Y(a.g,c,'resume');break;case 'bufferStart':c=p(d).next().value;Y(a.g,c,'bufferStart');break;case 'bufferFinish':c=p(d).next().value;Y(a.g,c,'bufferFinish');break;case 'skipped':c=p(d).next().value;Y(a.g,c,'skipped');break;case 'volumeChange':b=p(d);c=b.next().value;b=b.next().value;Y(a.g,b,'volumeChange',{mediaPlayerVolume:c});break;case 'playerStateChange':b=\np(d);c=b.next().value;b=b.next().value;Y(a.g,b,'playerStateChange',{state:c});break;case 'adUserInteraction':b=p(d);c=b.next().value;b=b.next().value;Y(a.g,b,'adUserInteraction',{interactionType:c});break;case 'setClientInfo':var e=p(d);b=e.next().value;d=e.next().value;var f=e.next().value;e=e.next().value;a=a.g.setClientInfo(e,b,d,f);c(a);break;case 'injectVerificationScriptResources':b=p(d);c=b.next().value;b=b.next().value;a.g.injectVerificationScriptResources(b,c);break;case 'setCreativeType':b=\np(d);c=b.next().value;b=b.next().value;a.g.setCreativeType(b,c);break;case 'setImpressionType':b=p(d);c=b.next().value;b=b.next().value;a.g.setImpressionType(b,c);break;case 'setContentUrl':b=p(d);c=b.next().value;b=b.next().value;V(a.g.g,b).g.C=c;break;case 'sessionError':d=p(d),c=d.next().value,b=d.next().value,d=d.next().value,a.g.error(d,c,b)}};function Z(){this.g=kc}m=Z.prototype;\nm.ca=function(a,b){if(!(!(a&&O(a)&&R(a.impressionOwner,pa))||'videoEventsOwner'in a&&null!=a.videoEventsOwner&&!R(a.videoEventsOwner,pa)||'mediaEventsOwner'in a&&null!=a.mediaEventsOwner&&!R(a.mediaEventsOwner,pa))){b=V(this.g.g,b);if(a.creativeType&&a.impressionType){var c=a.mediaEventsOwner;null==b.g.h&&b.setCreativeType(a.creativeType,c);null==b.g.m&&(b.g.m=a.impressionType);lb(b.h,c)}else c=a.videoEventsOwner,b.g.g=null==c||'none'===c?'display':'video',b.g.h=null,b.g.m=null,lb(b.h,c);nb(b.h,a.impressionOwner);\na&&null!=a.isolateVerificationScripts&&'boolean'===typeof a.isolateVerificationScripts&&(b.g.I=a.isolateVerificationScripts)}};\nm.$=function(a,b,c,d){b&&'string'===typeof b.adSessionType&&(b.adSessionType=b.adSessionType.toLowerCase());var e;if(O(b)){if(e=R(b.environment,sa)&&R(b.adSessionType,oa))e=b.omidNativeInfo,e=O(e)?Q(e.partnerName)&&Q(e.partnerVersion):!1;e&&(e=b.app,e=O(e)?Q(e.libraryVersion)&&Q(e.appId):!1)}else e=!1;if(e){if(Wb(d)){e=p(Object.values(d));for(var f=e.next();!f.done;f=e.next())f.value.accessMode='limited';V(this.g.g,a).g.v=new Map(Object.entries(d))}d=this.g;c=void 0===c?null:c;e=a||Ob();a=V(d.g,e);\na.g.adSessionId=e;b.canMeasureVisibility=a.i.I();d=a.g;void 0!==b.contentUrl&&(d.C=b.contentUrl,b.contentUrl=void 0);e=d.o||{};b.omidJsInfo=Object.assign({},e.omidJsInfo||{},b.omidJsInfo||{});b=Object.assign({},e,b);d.I||(null!=d.j?(b.videoElement=d.j,b.accessMode='full'):null!=d.i&&(b.slotElement=d.i,b.accessMode='full'));d.o=b;bb(a.h,c);a.i&&yb(a.i)}else M('Native ad session context invalid; session not started.')};m.W=function(a){var b=this.g;a=V(b.g,a);b=b.g;b.g=Vb(b);gb(a.h);a.i.A()};\nm.Z=function(a,b){O(a)&&P(a.x)&&P(a.y)&&P(a.width)&&P(a.height)&&(b=V(this.g.g,b),b.g.L=a,qb(b.j,'container'))};m.ga=function(a,b){R(a,ra)&&(b=V(this.g.g,b),b.g.A=a,'backgrounded'===a?qb(b.j,'container','backgrounded'):qb(b.j,'container'))};m.da=function(a){'impression'===a&&this.S()};m.S=function(a){a=V(this.g.g,a);ob(a.h,'native')&&hb(a.h,'native')};m.X=function(a,b){this.R('loaded',void 0===a?null:a,b)};m.error=function(a,b,c){R(a,na)&&this.g.error(c,a,b)};m.ea=function(a,b,c){this.R(a,b,c)};\nm.R=function(a,b,c){R(a,z)&&(void 0===b||O(b))&&(c=V(this.g.g,c),mb(c.h,'native')&&('loaded'==a?ib(c.h,'native',b):jb(c.h,a,'native',b)))};m.Y=function(a,b){b=V(this.g.g,b);'none'===b.h.g.l||'number'!==typeof a||isNaN(a)||(b.g.D=a,a=b.o,b=a.g.J,null!=b&&jb(a.h,'volumeChange','native',{mediaPlayerVolume:b,deviceVolume:a.g.D}))};m.fa=function(a){if(a&&O(a)&&P(a.timestamp)){var b=La(),c=(b.g||{}).timestamp;if(!c||c<a.timestamp)b.g=a}};Z.prototype.startSession=Z.prototype.$;Z.prototype.error=Z.prototype.error;\nZ.prototype.finishSession=Z.prototype.W;Z.prototype.publishAdEvent=Z.prototype.da;Z.prototype.publishImpressionEvent=Z.prototype.S;Z.prototype.publishVideoEvent=Z.prototype.ea;Z.prototype.publishMediaEvent=Z.prototype.R;Z.prototype.publishLoadedEvent=Z.prototype.X;Z.prototype.setNativeViewHierarchy=Z.prototype.Z;Z.prototype.setState=Z.prototype.ga;Z.prototype.setDeviceVolume=Z.prototype.Y;Z.prototype.init=Z.prototype.ca;Z.prototype.setLastActivity=Z.prototype.fa;function oc(a,b,c,d){a=Ub(a.j,d).h;'media'===b||'video'===b?Xa(a,c,d):(c={type:b,P:d,G:c},a.j.push(c),Wa(a,b,c))}function pc(a,b,c,d){a=Ub(a.j,d);Tb(a,b,c,d)}function qc(a,b,c,d){wb(a.g,b,c,d)}function rc(a,b,c,d){vb(a.g,'downloadJavaScriptResource')(b,c,d)}\nfunction sc(a,b,c,d){function e(){var D=new W(f,'response',g,gc(g,w.apply(0,arguments)));d.h(D,c)}var f=b.h,k=b.method,g=b.version;b=hc(g,b.g);if(null!=bc(k,'VerificationService.')){k=bc(k,'VerificationService.');try{switch(k){case 'addEventListener':var h=p(b),l=h.next().value,n=h.next().value||tc(c);oc(a,l,e,n);break;case 'addSessionListener':var t=p(b),B=t.next().value,y=t.next().value||tc(c);pc(a,e,B,y);break;case 'sendUrl':var F=p(b).next().value;qc(a,F,function(){return e(!0)},function(){return e(!1)});\nbreak;case 'setTimeout':var G=p(b),yc=G.next().value,zc=G.next().value;a.l[yc]=sb(a.g,'setTimeout')(e,zc);break;case 'clearTimeout':var Ac=p(b).next().value;ub(a.g,a.l[Ac]);break;case 'setInterval':var Kb=p(b),Bc=Kb.next().value,Cc=Kb.next().value;a.m[Bc]=rb(a.g,e,Cc);break;case 'clearInterval':var Dc=p(b).next().value;tb(a.g,a.m[Dc]);break;case 'injectJavaScriptResource':var Ec=p(b).next().value;rc(a,Ec,function(D){return e(!0,D)},function(){return e(!1)});break;case 'getVersion':e('1.4.8-iab4174')}}catch(D){d.h(new W(f,\n'error',g,'\\n name: '+D.name+'\\n message: '+D.message+'\\n filename: '+D.filename+'\\n lineNumber: '+D.lineNumber+'\\n columnNumber: '+D.columnNumber+'\\n stack: '+D.stack+'\\n toString(): '+D.toString()+'\\n '),c)}}}\nfunction tc(a){for(var b=La().h,c=p(b.keys()),d=c.next();!d.done;d=c.next()){d=d.value;var e=b.get(d);if(e){if(e.contentWindow===a)return d;try{if(e.contentWindow.Object.prototype.isPrototypeOf(a))return d}catch(f){}}}};function uc(a){var b={};return(b.app='omid_v1_present_app',b.web='omid_v1_present_web',b)[a]}function vc(a,b){a.document.write('<iframe style=\"display:none\" id=\"'+(b+'\" name=\"'+b+'\" sandbox></iframe>'))}function wc(a,b){var c=a.document.createElement('iframe');c.id=b;c.name=b;c.style.display='none';c.sandbox='';a.document.body.appendChild(c)}\nfunction xc(a,b){var c=new MutationObserver(function(d){d.forEach(function(e){'BODY'===e.addedNodes[0].nodeName&&(e=uc(b),wc(a,'omid_v1_present'),wc(a,e),c.disconnect())})});c.observe(a.document.documentElement,{childList:!0})};var Fc=new function(){var a;this.g=a=void 0===a?omidGlobal:a},ec=new function(){this.i=Fc;this.h=new Map;this.g=Vb(this)},kc=new dc;new function(){var a=ec,b=this;var c=void 0===c?L:c;this.j=a;this.g=Fc;this.l={};this.m={};this.i=new X;c.omid=c.omid||{};c.omid.v1_VerificationServiceCommunication=this.i;this.h=null;c&&c.addEventListener&&c.postMessage&&(this.h=new cc(c));this.i.g=function(d,e){sc(b,d,e,b.i)};this.h&&(this.h.g=function(d,e){b.h&&sc(b,d,e,b.h)})};L.omidBridge=new Z;new jc;\n(function(a,b){a.frames&&a.document&&!['omid_v1_present','omid_v1_present_web','omid_v1_present_app'].some(function(c){return!!a.frames[c]})&&(null==a.document.body&&'MutationObserver'in a?xc(a,b):(b=uc(b),a.document.body?(wc(a,'omid_v1_present'),wc(a,b)):(vc(a,'omid_v1_present'),vc(a,b))))})(L,'app');\n}).call(this, this);\n\n";
private static final String OM_SESSION_JS;
static {
StringBuilder sb2 = new StringBuilder(68050);
sb2.append(";(function(omidGlobal, factory, exports) {\n // CommonJS support\n if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {\n factory(omidGlobal, exports);\n\n // If neither AMD nor CommonJS are used, export to a versioned name in the\n // global context.\n } else {\n var exports = {};\n var versions = ['1.4.8-iab4174'];\n var additionalVersionString = 'default';\n if (!!additionalVersionString) {\n versions.push(additionalVersionString);\n }\n\n factory(omidGlobal, exports);\n\n function deepFreeze(object) {\n for (var key in object) {\n if (object.hasOwnProperty(key)) {\n object[key] = deepFreeze(object[key]);\n }\n }\n return Object.freeze(object);\n }\n\n // Inject and freeze the exported components of omid.\n for (var key in exports) {\n if (exports.hasOwnProperty(key)) {\n if (Object.getOwnPropertyDescriptor(omidGlobal, key) == null) {\n // Define the top level property in the global scope\n Object.defineProperty(omidGlobal, key, {\n value: {},\n });\n }\n versions.forEach(function(version) {\n if (Object.getOwnPropertyDescriptor(omidGlobal[key], version) == null) {\n var frozenObject = deepFreeze(exports[key]);\n // Define the object exports keyed-off versions\n Object.defineProperty(omidGlobal[key], version, {\n get: function () {\n return frozenObject;\n },\n enumerable: true,\n });\n }\n });\n }\n }\n }\n}(typeof global === 'undefined' ? this : global, function(omidGlobal, omidExports) {\n var $jscomp = $jscomp || {};\n$jscomp.scope = {};\n$jscomp.createTemplateTagFirstArg = function(a) {\n return a.raw = a;\n};\n$jscomp.createTemplateTagFirstArgWithRaw = function(a, b) {\n a.raw = b;\n return a;\n};\n$jscomp.arrayIteratorImpl = function(a) {\n var b = 0;\n return function() {\n return b < a.length ? {done:!1, value:a[b++],} : {done:!0};\n };\n};\n$jscomp.arrayIterator = function(a) {\n return {next:$jscomp.arrayIteratorImpl(a)};\n};\n$jscomp.makeIterator = function(a) {\n var b = \"undefined\" != typeof Symbol && Symbol.iterator && a[Symbol.iterator];\n if (b) {\n return b.call(a);\n }\n if (\"number\" == typeof a.length) {\n return $jscomp.arrayIterator(a);\n }\n throw Error(String(a) + \" is not an iterable or ArrayLike\");\n};\n$jscomp.arrayFromIterator = function(a) {\n for (var b, c = []; !(b = a.next()).done;) {\n c.push(b.value);\n }\n return c;\n};\n$jscomp.arrayFromIterable = function(a) {\n return a instanceof Array ? a : $jscomp.arrayFromIterator($jscomp.makeIterator(a));\n};\n$jscomp.ASSUME_ES5 = !1;\n$jscomp.ASSUME_NO_NATIVE_MAP = !1;\n$jscomp.ASSUME_NO_NATIVE_SET = !1;\n$jscomp.SIMPLE_FROUND_POLYFILL = !1;\n$jscomp.ISOLATE_POLYFILLS = !1;\n$jscomp.FORCE_POLYFILL_PROMISE = !1;\n$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION = !1;\n$jscomp.objectCreate = $jscomp.ASSUME_ES5 || \"function\" == typeof Object.create ? Object.create : function(a) {\n var b = function() {\n };\n b.prototype = a;\n return new b();\n};\n$jscomp.defineProperty = $jscomp.ASSUME_ES5 || \"function\" == typeof Object.defineProperties ? Object.defineProperty : function(a, b, c) {\n if (a == Array.prototype || a == Object.prototype) {\n return a;\n }\n a[b] = c.value;\n return a;\n};\n$jscomp.getGlobal = function(a) {\n a = [\"object\" == typeof globalThis && globalThis, a, \"object\" == typeof window && window, \"object\" == typeof self && self, \"object\" == typeof global && global,];\n for (var b = 0; b < a.length; ++b) {\n var c = a[b];\n if (c && c.Math == Math) {\n return c;\n }\n }\n throw Error(\"Cannot find global object\");\n};\n$jscomp.global = $jscomp.getGlobal(this);\n$jscomp.IS_SYMBOL_NATIVE = \"function\" === typeof Symbol && \"symbol\" === typeof Symbol(\"x\");\n$jscomp.TRUST_ES6_POLYFILLS = !$jscomp.ISOLATE_POLYFILLS || $jscomp.IS_SYMBOL_NATIVE;\n$jscomp.polyfills = {};\n$jscomp.propertyToPolyfillSymbol = {};\n$jscomp.POLYFILL_PREFIX = \"$jscp$\";\nvar $jscomp$lookupPolyfilledValue = function(a, b, c) {\n if (!c || null != a) {\n c = $jscomp.propertyToPolyfillSymbol[b];\n if (null == c) {\n return a[b];\n }\n c = a[c];\n return void 0 !== c ? c : a[b];\n }\n};\n$jscomp.polyfill = function(a, b, c, d) {\n b && ($jscomp.ISOLATE_POLYFILLS ? $jscomp.polyfillIsolated(a, b, c, d) : $jscomp.polyfillUnisolated(a, b, c, d));\n};\n$jscomp.polyfillUnisolated = function(a, b, c, d) {\n c = $jscomp.global;\n a = a.split(\".\");\n for (d = 0; d < a.length - 1; d++) {\n var e = a[d];\n if (!(e in c)) {\n return;\n }\n c = c[e];\n }\n a = a[a.length - 1];\n d = c[a];\n b = b(d);\n b != d && null != b && $jscomp.defineProperty(c, a, {configurable:!0, writable:!0, value:b});\n};\n$jscomp.polyfillIsolated = function(a, b, c, d) {\n var e = a.split(\".\");\n a = 1 === e.length;\n d = e[0];\n d = !a && d in $jscomp.polyfills ? $jscomp.polyfills : $jscomp.global;\n for (var l = 0; l < e.length - 1; l++) {\n var m = e[l];\n if (!(m in d)) {\n return;\n }\n d = d[m];\n }\n e = e[e.length - 1];\n c = $jscomp.IS_SYMBOL_NATIVE && \"es6\" === c ? d[e] : null;\n b = b(c);\n null != b && (a ? $jscomp.defineProperty($jscomp.polyfills, e, {configurable:!0, writable:!0, value:b}) : b !== c && (void 0 === $jscomp.propertyToPolyfillSymbol[e] && (c = 1E9 * Math.random() >>> 0, $jscomp.propertyToPolyfillSymbol[e] = $jscomp.IS_SYMBOL_NATIVE ? $jscomp.global.Symbol(e) : $jscomp.POLYFILL_PREFIX + c + \"$\" + e), $jscomp.defineProperty(d, $jscomp.propertyToPolyfillSymbol[e], {configurable:!0, writable:!0, value:b})));\n};\n$jscomp.getConstructImplementation = function() {\n function a() {\n function c() {\n }\n new c();\n Reflect.construct(c, [], function() {\n });\n return new c() instanceof c;\n }\n if ($jscomp.TRUST_ES6_POLYFILLS && \"undefined\" != typeof Reflect && Reflect.construct) {\n if (a()) {\n return Reflect.construct;\n }\n var b = Reflect.construct;\n return function(c, d, e) {\n c = b(c, d);\n e && Reflect.setPrototypeOf(c, e.prototype);\n return c;\n };\n }\n return function(c, d, e) {\n void 0 === e && (e = c);\n e = $jscomp.objectCreate(e.prototype || Object.prototype);\n return Function.prototype.apply.call(c, e, d) || e;\n };\n};\n$jscomp.construct = {valueOf:$jscomp.getConstructImplementation}.valueOf();\n$jscomp.underscoreProtoCanBeSet = function() {\n var a = {a:!0}, b = {};\n try {\n return b.__proto__ = a, b.a;\n } catch (c) {\n }\n return !1;\n};\n$jscomp.setPrototypeOf = $jscomp.TRUST_ES6_POLYFILLS && \"function\" == typeof Object.setPrototypeOf ? Object.setPrototypeOf : $jscomp.underscoreProtoCanBeSet() ? function(a, b) {\n a.__proto__ = b;\n if (a.__proto__ !== b) {\n throw new TypeError(a + \" is not extensible\");\n }\n return a;\n} : null;\n$jscomp.inherits = function(a, b) {\n a.prototype = $jscomp.objectCreate(b.prototype);\n a.prototype.constructor = a;\n if ($jscomp.setPrototypeOf) {\n var c = $jscomp.setPrototypeOf;\n c(a, b);\n } else {\n for (c in b) {\n if (\"prototype\" != c) {\n if (Object.defineProperties) {\n var d = Object.getOwnPropertyDescriptor(b, c);\n d && Object.defineProperty(a, c, d);\n } else {\n a[c] = b[c];\n }\n }\n }\n }\n a.superClass_ = b.prototype;\n};\n$jscomp.getRestArguments = function() {\n for (var a = Number(this), b = [], c = a; c < arguments.length; c++) {\n b[c - a] = arguments[c];\n }\n return b;\n};\n$jscomp.polyfill(\"Reflect\", function(a) {\n return a ? a : {};\n}, \"es6\", \"es3\");\n$jscomp.polyfill(\"Reflect.construct\", function(a) {\n return $jscomp.construct;\n}, \"es6\", \"es3\");\n$jscomp.polyfill(\"Reflect.setPrototypeOf\", function(a) {\n if (a) {\n return a;\n }\n if ($jscomp.setPrototypeOf) {\n var b = $jscomp.setPrototypeOf;\n return function(c, d) {\n try {\n return b(c, d), !0;\n } catch (e) {\n return !1;\n }\n };\n }\n return null;\n}, \"es6\", \"es5\");\n$jscomp.initSymbol = function() {\n};\n$jscomp.polyfill(\"Symbol\", function(a) {\n if (a) {\n return a;\n }\n var b = function(l, m) {\n this.$jscomp$symbol$id_ = l;\n $jscomp.defineProperty(this, \"description\", {configurable:!0, writable:!0, value:m});\n };\n b.prototype.toString = function() {\n return this.$jscomp$symbol$id_;\n };\n var c = \"jscomp_symbol_\" + (1E9 * Math.random() >>> 0) + \"_\", d = 0, e = function(l) {\n if (this instanceof e) {\n throw new TypeError(\"Symbol is not a constructor\");\n }\n return new b(c + (l || \"\") + \"_\" + d++, l);\n };\n return e;\n}, \"es6\", \"es3\");\n$jscomp.polyfill(\"Symbol.iterator\", function(a) {\n if (a) {\n return a;\n }\n a = Symbol(\"Symbol.iterator\");\n for (var b = \"Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array\".split(\" \"), c = 0; c < b.length; c++) {\n var d = $jscomp.global[b[c]];\n \"function\" === typeof d && \"function\" != typeof d.prototype[a] && $jscomp.defineProperty(d.prototype, a, {configurable:!0, writable:!0, value:function() {\n return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this));\n }});\n }\n return a;\n}, \"es6\", \"es3\");\n$jscomp.iteratorPrototype = function(a) {\n a = {next:a};\n a[Symbol.iterator] = function() {\n return this;\n };\n return a;\n};\n$jscomp.iteratorFromArray = function(a, b) {\n a instanceof String && (a += \"\");\n var c = 0, d = !1, e = {next:function() {\n if (!d && c < a.length) {\n var l = c++;\n return {value:b(l, a[l]), done:!1};\n }\n d = !0;\n return {done:!0, value:void 0};\n }};\n e[Symbol.iterator] = function() {\n return e;\n };\n return e;\n};\n$jscomp.polyfill(\"Array.prototype.keys\", function(a) {\n return a ? a : function() {\n return $jscomp.iteratorFromArray(this, function(b) {\n return b;\n });\n };\n}, \"es6\", \"es3\");\n$jscomp.owns = function(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n};\n$jscomp.polyfill(\"Object.values\", function(a) {\n return a ? a : function(b) {\n var c = [], d;\n for (d in b) {\n $jscomp.owns(b, d) && c.push(b[d]);\n }\n return c;\n };\n}, \"es8\", \"es3\");\n$jscomp.checkEs6ConformanceViaProxy = function() {\n try {\n var a = {}, b = Object.create(new $jscomp.global.Proxy(a, {get:function(c, d, e) {\n return c == a && \"q\" == d && e == b;\n }}));\n return !0 === b.q;\n } catch (c) {\n return !1;\n }\n};\n$jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS = !1;\n$jscomp.ES6_CONFORMANCE = $jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS && $jscomp.checkEs6ConformanceViaProxy();\n$jscomp.polyfill(\"WeakMap\", function(a) {\n function b() {\n if (!a || !Object.seal) {\n return !1;\n }\n try {\n var f = Object.seal({}), h = Object.seal({}), k = new a([[f, 2], [h, 3]]);\n if (2 != k.get(f) || 3 != k.get(h)) {\n return !1;\n }\n k.delete(f);\n k.set(h, 4);\n return !k.has(f) && 4 == k.get(h);\n } catch (n) {\n return !1;\n }\n }\n function c() {\n }\n function d(f) {\n var h = typeof f;\n return \"object\" === h && null !== f || \"function\" === h;\n }\n function e(f) {\n if (!$jscomp.owns(f, m)) {\n var h = new c();\n $jscomp.defineProperty(f, m, {value:h});\n }\n }\n function l(f) {\n if (!$jscomp.ISOLATE_POLYFILLS) {\n var h = Object[f];\n h && (Object[f] = function(k) {\n if (k instanceof c) {\n return k;\n }\n Object.isExtensible(k) && e(k);\n return h(k);\n });\n }\n }\n if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) {\n if (a && $jscomp.ES6_CONFORMANCE) {\n return a;\n }\n } else {\n if (b()) {\n return a;\n }\n }\n var m = \"$jscomp_hidden_\" + Math.random();\n l(\"freeze\");\n l(\"preventExtensions\");\n l(\"seal\");\n var p = 0, g = function(f) {\n this.id_ = (p += Math.random() + 1).toString();\n if (f) {\n f = $jscomp.makeIterator(f);\n for (var h; !(h = f.next()).done;) {\n h = h.value, this.set(h[0], h[1]);\n }\n }\n };\n g.prototype.set = function(f, h) {\n if (!d(f)) {\n throw Error(\"Invalid WeakMap key\");\n }\n e(f);\n if (!$jscomp.owns(f, m)) {\n throw Error(\"WeakMap key fail: \" + f);\n }\n f[m][this.id_] = h;\n return this;\n };\n g.prototype.get = function(f) {\n return d(f) && $jscomp.owns(f, m) ? f[m][this.id_] : void 0;\n };\n g.prototype.has = function(f) {\n return d(f) && $jscomp.owns(f, m) && $jscomp.owns(f[m], this.id_);\n };\n g.prototype.delete = function(f) {\n return d(f) && $jscomp.owns(f, m) && $jscomp.owns(f[m], this.id_) ? delete f[m][this.id_] : !1;\n };\n return g;\n}, \"es6\", \"es3\");\n$jscomp.MapEntry = function() {\n};\n$jscomp.polyfill(\"Map\", function(a) {\n function b() {\n if ($jscomp.ASSUME_NO_NATIVE_MAP || !a || \"function\" != typeof a || !a.prototype.entries || \"function\" != typeof Object.seal) {\n return !1;\n }\n try {\n var g = Object.seal({x:4}), f = new a($jscomp.makeIterator([[g, \"s\"]]));\n if (\"s\" != f.get(g) || 1 != f.size || f.get({x:4}) || f.set({x:4}, \"t\") != f || 2 != f.size) {\n return !1;\n }\n var h = f.entries(), k = h.next();\n if (k.done || k.value[0] != g || \"s\" != k.value[1]) {\n return !1;\n }\n k = h.next();\n return k.done || 4 != k.value[0].x || \"t\" != k.value[1] || !h.next().done ? !1 : !0;\n } catch (n) {\n return !1;\n }\n }\n if ($jscomp.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS) {\n if (a && $jscomp.ES6_CONFORMANCE) {\n return a;\n }\n } else {\n if (b()) {\n return a;\n }\n }\n var c = new WeakMap(), d = function(g) {\n this.data_ = {};\n this.head_ = m();\n this.size = 0;\n if (g) {\n g = $jscomp.makeIterator(g);\n for (var f; !(f = g.next()).done;) {\n f = f.value, this.set(f[0], f[1]);\n }\n }\n };\n d.prototype.set = function(g, f) {\n g = 0 === g ? 0 : g;\n var h = e(this, g);\n h.list || (h.list = this.data_[h.id] = []);\n h.entry ? h.entry.value = f : (h.entry = {next:this.head_, previous:this.head_.previous, head:this.head_, key:g, value:f,}, h.list.push(h.entry), this.head_.previous.next = h.entry, this.head_.previous = h.entry, this.size++);\n return this;\n };\n d.prototype.delete = function(g) {\n g = e(this, g);\n return g.entry && g.list ? (g.list.splice(g.index, 1), g.list.length || delete this.data_[g.id], g.entry.previous.next = g.entry.next, g.entry.next.previous = g.entry.previous, g.entry.head = null, this.size--, !0) : !1;\n };\n d.prototype.clear = function() {\n this.data_ = {};\n this.head_ = this.head_.previous = m();\n this.size = 0;\n };\n d.prototype.has = function(g) {\n return !!e(this, g).entry;\n };\n d.prototype.get = function(g) {\n return (g = e(this, g).entry) && g.value;\n };\n d.prototype.entries = function() {\n return l(this, function(g) {\n return [g.key, g.value];\n });\n };\n d.prototype.keys = function() {\n return l(this, function(g) {\n return g.key;\n });\n };\n d.prototype.values = function() {\n return l(this, function(g) {\n return g.value;\n });\n };\n d.prototype.forEach = function(g, f) {\n for (var h = this.entries(), k; !(k = h.next()).done;) {\n k = k.value, g.call(f, k[1], k[0], this);\n }\n };\n d.prototype[Symbol.iterator] = d.prototype.entries;\n var e = function(g, f) {\n var h = f && typeof f;\n \"object\" == h || \"function\" == h ? c.has(f) ? h = c.get(f) : (h = \"\" + ++p, c.set(f, h)) : h = \"p_\" + f;\n var k = g.data_[h];\n if (k && $jscomp.owns(g.data_, h)) {\n for (g = 0; g < k.length; g++) {\n var n = k[g];\n if (f !== f && n.key !== n.key || f === n.key) {\n return {id:h, list:k, index:g, entry:n};\n }\n }\n }\n return {id:h, list:k, index:-1, entry:void 0};\n }, l = function(g, f) {\n var h = g.head_;\n return $jscomp.iteratorPrototype(function() {\n if (h) {\n for (; h.head != g.head_;) {\n h = h.previous;\n }\n for (; h.next != h.head;) {\n return h = h.next, {done:!1, value:f(h)};\n }\n h = null;\n }\n return {done:!0, value:void 0};\n });\n }, m = function() {\n var g = {};\n return g.previous = g.next = g.head = g;\n }, p = 0;\n return d;\n}, \"es6\", \"es3\");\nvar 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\", \nPLAYER_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\", \nUNSPECIFIED:\"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\", \nWEB:\"web\",}, DeviceCategory:{CTV:\"ctv\", DESKTOP:\"desktop\", MOBILE:\"mobile\", OTHER:\"other\",}, 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\", \nUNMEASURABLE:\"unmeasurable\", NO_WINDOW_FOCUS:\"noWindowFocus\", NO_OUTPUT_DEVICE:\"noOutputDevice\",}, 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\", \nCLIPS_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\",}, \nOmidImplementer:{OMSDK:\"omsdk\",}, MessageMethod:{IDENTIFY_SERVICE_WINDOW:\"identifyServiceWindow\",}};\nvar 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) {\n this.guid = a;\n this.method = b;\n this.version = c;\n this.args = d;\n};\nmodule$exports$omid$common$InternalMessage.isValidSerializedMessage = function(a) {\n 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] || \n void 0 !== a[module$contents$omid$common$InternalMessage_ARGS_KEY]);\n};\nmodule$exports$omid$common$InternalMessage.deserialize = function(a) {\n 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]);\n};\nmodule$exports$omid$common$InternalMessage.prototype.serialize = function() {\n var a = {};\n 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);\n void 0 !== this.args && (a[module$contents$omid$common$InternalMessage_ARGS_KEY] = this.args);\n return a;\n};\nvar module$exports$omid$common$Communication = function(a) {\n this.to = a;\n this.communicationType_ = module$exports$omid$common$constants.CommunicationType.NONE;\n};\nmodule$exports$omid$common$Communication.prototype.sendMessage = function(a, b) {\n};\nmodule$exports$omid$common$Communication.prototype.handleMessage = function(a, b) {\n if (this.onMessage) {\n this.onMessage(a, b);\n }\n};\nmodule$exports$omid$common$Communication.prototype.serialize = function(a) {\n return JSON.stringify(a);\n};\nmodule$exports$omid$common$Communication.prototype.deserialize = function(a) {\n return JSON.parse(a);\n};\nmodule$exports$omid$common$Communication.prototype.isDirectCommunication = function() {\n return this.communicationType_ === module$exports$omid$common$constants.CommunicationType.DIRECT;\n};\nmodule$exports$omid$common$Communication.prototype.isCrossOrigin = function() {\n};\nvar module$exports$omid$common$argsChecker = {};\nfunction module$contents$omid$common$argsChecker_assertTruthyString(a, b) {\n if (!b) {\n throw Error(\"Value for \" + a + \" is undefined, null or blank.\");\n }\n if (\"string\" !== typeof b && !(b instanceof String)) {\n throw Error(\"Value for \" + a + \" is not a string.\");\n }\n if (\"\" === b.trim()) {\n throw Error(\"Value for \" + a + \" is empty string.\");\n }\n}\nfunction module$contents$omid$common$argsChecker_assertNotNullObject(a, b) {\n if (null == b) {\n throw Error(\"Value for \" + a + \" is undefined or null\");\n }\n}\nfunction module$contents$omid$common$argsChecker_assertNumber(a, b) {\n if (null == b) {\n throw Error(a + \" must not be null or undefined.\");\n }\n if (\"number\" !== typeof b || isNaN(b)) {\n throw Error(\"Value for \" + a + \" is not a number\");\n }\n}\nfunction module$contents$omid$common$argsChecker_assertNumberBetween(a, b, c, d) {\n module$contents$omid$common$argsChecker_assertNumber(a, b);\n if (b < c || b > d) {\n throw Error(\"Value for \" + a + \" is outside the range [\" + c + \",\" + d + \"]\");\n }\n}\nfunction module$contents$omid$common$argsChecker_assertFunction(a, b) {\n if (!b) {\n throw Error(a + \" must not be truthy.\");\n }\n}\nfunction module$contents$omid$common$argsChecker_assertPositiveNumber(a, b) {\n module$contents$omid$common$argsChecker_assertNumber(a, b);\n if (0 > b) {\n throw Error(a + \" must be a positive number.\");\n }\n}\nmodule$exports$omid$common$argsChecker.assertTruthyString = module$contents$omid$common$argsChecker_assertTruthyString;\nmodule$exports$omid$common$argsChecker.assertNotNullObject = module$contents$omid$common$argsChecker_assertNotNullObject;\nmodule$exports$omid$common$argsChecker.assertNumber = module$contents$omid$common$argsChecker_assertNumber;\nmodule$exports$omid$common$argsChecker.assertNumberBetween = module$contents$omid$common$argsChecker_assertNumberBetween;\nmodule$exports$omid$common$argsChecker.assertFunction = module$contents$omid$common$argsChecker_assertFunction;\nmodule$exports$omid$common$argsChecker.assertPositiveNumber = module$contents$omid$common$argsChecker_assertPositiveNumber;\nvar module$exports$omid$common$exporter = {};\nfunction module$contents$omid$common$exporter_getOmidExports() {\n return \"undefined\" === typeof omidExports ? null : omidExports;\n}\nfunction module$contents$omid$common$exporter_getOrCreateName(a, b) {\n return a && (a[b] || (a[b] = {}));\n}\nfunction module$contents$omid$common$exporter_packageExport(a, b, c) {\n if (c = void 0 === c ? module$contents$omid$common$exporter_getOmidExports() : c) {\n a = a.split(\".\"), a.slice(0, a.length - 1).reduce(module$contents$omid$common$exporter_getOrCreateName, c)[a[a.length - 1]] = b;\n }\n}\nmodule$exports$omid$common$exporter.packageExport = module$contents$omid$common$exporter_packageExport;\nvar module$exports$omid$sessionClient$Partner = function(a, b) {\n module$contents$omid$common$argsChecker_assertTruthyString(\"Partner.name\", a);\n module$contents$omid$common$argsChecker_assertTruthyString(\"Partner.version\", b);\n this.name = a;\n this.version = b;\n};\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.Partner\", module$exports$omid$sessionClient$Partner);\nvar module$exports$omid$sessionClient$VerificationScriptResource = function(a, b, c, d) {\n d = void 0 === d ? module$exports$omid$common$constants.AccessMode.FULL : d;\n module$contents$omid$common$argsChecker_assertTruthyString(\"VerificationScriptResource.resourceUrl\", a);\n this.resourceUrl = a;\n this.vendorKey = b;\n this.verificationParameters = c;\n this.accessMode = d;\n};\nmodule$exports$omid$sessionClient$VerificationScriptResource.prototype.toJSON = function() {\n return {accessMode:this.accessMode, resourceUrl:this.resourceUrl, vendorKey:this.vendorKey, verificationParameters:this.verificationParameters,};\n};\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.VerificationScriptResource\", module$exports$omid$sessionClient$VerificationScriptResource);\nvar module$exports$omid$sessionClient$Context = function(a, b, c, d) {\n c = void 0 === c ? null : c;\n d = void 0 === d ? null : d;\n module$contents$omid$common$argsChecker_assertNotNullObject(\"Context.partner\", a);\n this.partner = a;\n this.verificationScriptResources = b;\n this.videoElement = this.slotElement = null;\n this.contentUrl = c;\n this.customReferenceData = d;\n this.underEvaluation = !1;\n this.serviceWindow = null;\n};\nmodule$exports$omid$sessionClient$Context.prototype.setVideoElement = function(a) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"Context.videoElement\", a);\n this.videoElement = a;\n};\nmodule$exports$omid$sessionClient$Context.prototype.setSlotElement = function(a) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"Context.slotElement\", a);\n this.slotElement = a;\n};\nmodule$exports$omid$sessionClient$Context.prototype.setServiceWindow = function(a) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"Context.serviceWindow\", a);\n this.serviceWindow = a;\n};\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.Context\", module$exports$omid$sessionClient$Context);\nvar module$exports$omid$common$OmidGlobalProvider = {};\nfunction module$contents$omid$common$OmidGlobalProvider_getOmidGlobal() {\n if (\"undefined\" !== typeof omidGlobal && omidGlobal) {\n return omidGlobal;\n }\n if (\"undefined\" !== typeof global && global) {\n return global;\n }\n if (\"undefined\" !== typeof window && window) {\n return window;\n }\n if (\"undefined\" !== typeof globalThis && globalThis) {\n return globalThis;\n }\n var a = Function(\"return this\")();\n if (a) {\n return a;\n }\n throw Error(\"Could not determine global object context.\");\n}\nmodule$exports$omid$common$OmidGlobalProvider.omidGlobal = module$contents$omid$common$OmidGlobalProvider_getOmidGlobal();\nvar module$contents$omid$sessionClient$OmidJsSessionInterface_ExportedNodeKeys = {ROOT:\"omidSessionInterface\", AD_EVENTS:\"adEvents\", MEDIA_EVENTS:\"mediaEvents\",}, module$contents$omid$sessionClient$OmidJsSessionInterface_MethodNameMap = {sessionError:\"reportError\",}, module$contents$omid$sessionClient$OmidJsSessionInterface_MediaEventMethodNames = Object.keys(module$exports$omid$common$constants.MediaEventType).map(function(a) {\n return module$exports$omid$common$constants.MediaEventType[a];\n}), module$contents$omid$sessionClient$OmidJsSessionInterface_AdEventMethodNames = [\"impressionOccurred\",], module$exports$omid$sessionClient$OmidJsSessionInterface = function(a) {\n a = void 0 === a ? module$exports$omid$common$OmidGlobalProvider.omidGlobal : a;\n this.interfaceRoot_ = a[module$contents$omid$sessionClient$OmidJsSessionInterface_ExportedNodeKeys.ROOT];\n};\nmodule$exports$omid$sessionClient$OmidJsSessionInterface.prototype.isSupported = function() {\n return null != this.interfaceRoot_;\n};\nmodule$exports$omid$sessionClient$OmidJsSessionInterface.prototype.sendMessage = function(a, b, c) {\n \"registerSessionObserver\" == a && (c = [b]);\n module$contents$omid$sessionClient$OmidJsSessionInterface_MethodNameMap[a] && (a = module$contents$omid$sessionClient$OmidJsSessionInterface_MethodNameMap[a]);\n b = this.interfaceRoot_;\n 0 <= module$contents$omid$sessionClient$OmidJsSessionInterface_AdEventMethodNames.indexOf(a) && (b = b[module$contents$omid$sessionClient$OmidJsSessionInterface_ExportedNodeKeys.AD_EVENTS]);\n 0 <= module$contents$omid$sessionClient$OmidJsSessionInterface_MediaEventMethodNames.indexOf(a) && (b = b[module$contents$omid$sessionClient$OmidJsSessionInterface_ExportedNodeKeys.MEDIA_EVENTS]);\n b = b[a];\n if (!b) {\n throw Error(\"Unrecognized method name: \" + a + \".\");\n }\n b.apply(null, $jscomp.arrayFromIterable(c));\n};\nvar module$exports$omid$common$Rectangle = function(a, b, c, d) {\n this.x = a;\n this.y = b;\n this.width = c;\n this.height = d;\n};\nvar module$exports$omid$common$guid = {};\nfunction module$contents$omid$common$guid_generateGuid() {\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, function(a) {\n var b = 16 * Math.random() | 0;\n a = \"y\" === a ? (b & 3 | 8).toString(16) : b.toString(16);\n return a;\n });\n}\nmodule$exports$omid$common$guid.generateGuid = module$contents$omid$common$guid_generateGuid;\nvar module$exports$omid$common$logger = {};\nfunction module$contents$omid$common$logger_error() {\n var a = $jscomp.getRestArguments.apply(0, arguments);\n module$contents$omid$common$logger_executeLog(function() {\n throw new (Function.prototype.bind.apply(Error, [null, \"Could not complete the test successfully - \"].concat($jscomp.arrayFromIterable(a))))();\n }, function() {\n return console.error.apply(console, $jscomp.arrayFromIterable(a));\n });\n}\nfunction module$contents$omid$common$logger_debug() {\n var a = $jscomp.getRestArguments.apply(0, arguments);\n module$contents$omid$common$logger_executeLog(function() {\n }, function() {\n return console.error.apply(console, $jscomp.arrayFromIterable(a));\n });\n}\nfunction module$contents$omid$common$logger_executeLog(a, b) {\n \"undefined\" !== typeof jasmine && jasmine ? a() : \"undefined\" !== typeof console && console && console.error && b();\n}\nmodule$exports$omid$common$logger.error = module$contents$omid$common$logger_error;\nmodule$exports$omid$common$logger.debug = module$contents$omid$common$logger_debug;\nvar module$exports$omid$common$eventTypedefs = {};\nvar module$exports$omid$common$version = {ApiVersion:\"1.0\", Version:\"1.4.8-iab4174\"};\nvar module$exports$omid$common$VersionUtils = {}, module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER = 3;\nfunction module$contents$omid$common$VersionUtils_isValidVersion(a) {\n return /\\d+\\.\\d+\\.\\d+(-.*)?/.test(a);\n}\nfunction module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, b) {\n a = a.split(\"-\")[0].split(\".\");\n b = b.split(\"-\")[0].split(\".\");\n for (var c = 0; c < module$contents$omid$common$VersionUtils_SEMVER_DIGITS_NUMBER; c++) {\n var d = parseInt(a[c], 10), e = parseInt(b[c], 10);\n if (d > e) {\n break;\n } else if (d < e) {\n return !1;\n }\n }\n return !0;\n}\nmodule$exports$omid$common$VersionUtils.isValidVersion = module$contents$omid$common$VersionUtils_isValidVersion;\nmodule$exports$omid$common$VersionUtils.versionGreaterOrEqual = module$contents$omid$common$VersionUtils_versionGreaterOrEqual;\nvar module$exports$omid$common$ArgsSerDe = {}, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION = \"1.0.3\";\nfunction module$contents$omid$common$ArgsSerDe_serializeMessageArgs(a, b) {\n return module$contents$omid$common$VersionUtils_isValidVersion(a) && module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b : JSON.stringify(b);\n}\nfunction module$contents$omid$common$ArgsSerDe_deserializeMessageArgs(a, b) {\n return module$contents$omid$common$VersionUtils_isValidVersion(a) && module$contents$omid$common$VersionUtils_versionGreaterOrEqual(a, module$contents$omid$common$ArgsSerDe_ARGS_NOT_SERIALIZED_VERSION) ? b ? b : [] : b && \"string\" === typeof b ? JSON.parse(b) : [];\n}\nmodule$exports$omid$common$ArgsSerDe.serializeMessageArgs = module$contents$omid$common$ArgsSerDe_serializeMessageArgs;\nmodule$exports$omid$common$ArgsSerDe.deserializeMessageArgs = module$contents$omid$common$ArgsSerDe_deserializeMessageArgs;\nvar module$exports$omid$common$serviceMethodUtils = {}, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix = {SESSION_SERVICE:\"SessionService.\", VERIFICATION_SERVICE:\"VerificationService.\",};\nfunction module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod(a) {\n return module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.SESSION_SERVICE);\n}\nfunction module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod(a) {\n return module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.SESSION_SERVICE);\n}\nfunction module$contents$omid$common$serviceMethodUtils_isPrefixedSessionServiceMethod(a) {\n return null != module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod(a);\n}\nfunction module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod(a) {\n return module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.VERIFICATION_SERVICE);\n}\nfunction module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod(a) {\n return module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, module$contents$omid$common$serviceMethodUtils_ServiceMethodPrefix.VERIFICATION_SERVICE);\n}\nfunction module$contents$omid$common$serviceMethodUtils_isPrefixedVerificationServiceMethod(a) {\n return null != module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod(a);\n}\nfunction module$contents$omid$common$serviceMethodUtils_getPrefixedMethod(a, b) {\n return b + a;\n}\nfunction module$contents$omid$common$serviceMethodUtils_getUnprefixedMethod(a, b) {\n return (a = a.match(new RegExp(\"^\" + b + \"(.*)\"))) && a[1];\n}\nmodule$exports$omid$common$serviceMethodUtils.getPrefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod;\nmodule$exports$omid$common$serviceMethodUtils.getPrefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_getPrefixedVerificationServiceMethod;\nmodule$exports$omid$common$serviceMethodUtils.getUnprefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_getUnprefixedSessionServiceMethod;\nmodule$exports$omid$common$serviceMethodUtils.getUnprefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_getUnprefixedVerificationServiceMethod;\nmodule$exports$omid$common$serviceMethodUtils.isPrefixedSessionServiceMethod = module$contents$omid$common$serviceMethodUtils_isPrefixedSessionServiceMethod;\nmodule$exports$omid$common$serviceMethodUtils.isPrefixedVerificationServiceMethod = module$contents$omid$common$serviceMethodUtils_isPrefixedVerificationServiceMethod;\nvar module$exports$omid$common$windowUtils = {};\nfunction module$contents$omid$common$windowUtils_isValidWindow(a) {\n return null != a && \"undefined\" !== typeof a.top && null != a.top;\n}\nfunction module$contents$omid$common$windowUtils_isCrossOrigin(a) {\n if (a === module$exports$omid$common$OmidGlobalProvider.omidGlobal) {\n return !1;\n }\n try {\n if (\"undefined\" === typeof a.location.hostname) {\n return !0;\n }\n module$contents$omid$common$windowUtils_isSameOriginForIE(a);\n } catch (b) {\n return !0;\n }\n return !1;\n}\nfunction module$contents$omid$common$windowUtils_isSameOriginForIE(a) {\n return \"\" === a.x || \"\" !== a.x;\n}\nfunction module$contents$omid$common$windowUtils_resolveGlobalContext(a) {\n \"undefined\" === typeof a && \"undefined\" !== typeof window && window && (a = window);\n return module$contents$omid$common$windowUtils_isValidWindow(a) ? a : module$exports$omid$common$OmidGlobalProvider.omidGlobal;\n}\nfunction module$contents$omid$common$windowUtils_resolveTopWindowContext(a) {\n return module$contents$omid$common$windowUtils_isValidWindow(a) ? a.top : module$exports$omid$common$OmidGlobalProvider.omidGlobal;\n}\nfunction module$contents$omid$common$windowUtils_isTopWindowAccessible(a) {\n try {\n return a.top.location.href ? !0 : !1;\n } catch (b) {\n return !1;\n }\n}\nfunction module$contents$omid$common$windowUtils_removeDomElements(a) {\n a.type === module$exports$omid$common$constants.AdEventType.SESSION_START && (\"undefined\" !== typeof a.data.context.videoElement && (a.data.context.videoElement = \"DOM Video Element - Present but not parsed to avoid parse error\"), \"undefined\" !== typeof a.data.context.slotElement && (a.data.context.slotElement = \"DOM Slot Element - Present but not parsed to avoid parse error\"));\n return a;\n}\nfunction module$contents$omid$common$windowUtils_evaluatePageUrl(a) {\n if (!module$contents$omid$common$windowUtils_isValidWindow(a)) {\n return null;\n }\n try {\n var b = a.top;\n return module$contents$omid$common$windowUtils_isCrossOrigin(b) ? null : b.location.href;\n } catch (c) {\n return null;\n }\n}\nmodule$exports$omid$common$windowUtils.evaluatePageUrl = module$contents$omid$common$windowUtils_evaluatePageUrl;\nmodule$exports$omid$common$windowUtils.isCrossOrigin = module$contents$omid$common$windowUtils_isCrossOrigin;\nmodule$exports$omid$common$windowUtils.removeDomElements = module$contents$omid$common$windowUtils_removeDomElements;\nmodule$exports$omid$common$windowUtils.resolveGlobalContext = module$contents$omid$common$windowUtils_resolveGlobalContext;\nmodule$exports$omid$common$windowUtils.resolveTopWindowContext = module$contents$omid$common$windowUtils_resolveTopWindowContext;\nmodule$exports$omid$common$windowUtils.isTopWindowAccessible = module$contents$omid$common$windowUtils_isTopWindowAccessible;\nvar module$exports$omid$common$DirectCommunication = function(a) {\n module$exports$omid$common$Communication.call(this, a);\n this.communicationType_ = module$exports$omid$common$constants.CommunicationType.DIRECT;\n this.handleExportedMessage = module$exports$omid$common$DirectCommunication.prototype.handleExportedMessage.bind(this);\n};\n$jscomp.inherits(module$exports$omid$common$DirectCommunication, module$exports$omid$common$Communication);\nmodule$exports$omid$common$DirectCommunication.prototype.sendMessage = function(a, b) {\n b = void 0 === b ? this.to : b;\n if (!b) {\n throw Error(\"Message destination must be defined at construction time or when sending the message.\");\n }\n b.handleExportedMessage(a.serialize(), this);\n};\nmodule$exports$omid$common$DirectCommunication.prototype.handleExportedMessage = function(a, b) {\n module$exports$omid$common$InternalMessage.isValidSerializedMessage(a) && this.handleMessage(module$exports$omid$common$InternalMessage.deserialize(a), b);\n};\nmodule$exports$omid$common$DirectCommunication.prototype.isCrossOrigin = function() {\n return !1;\n};\nvar module$exports$omid$common$PostMessageCommunication = function(a, b) {\n b = void 0 === b ? module$exports$omid$common$OmidGlobalProvider.omidGlobal : b;\n module$exports$omid$common$Communication.call(this, b);\n var c = this;\n this.communicationType_ = module$exports$omid$common$constants.CommunicationType.POST_MESSAGE;\n a.addEventListener(\"message\", function(d) {\n if (\"object\" === typeof d.data) {\n var e = d.data;\n module$exports$omid$common$InternalMessage.isValidSerializedMessage(e) && (e = module$exports$omid$common$InternalMessage.deserialize(e), d.source && c.handleMessage(e, d.source));\n }\n });\n};\n$jscomp.inherits(module$exports$omid$common$PostMessageCommunication, module$exports$omid$common$Communication);\nmodule$exports$omid$common$PostMessageCommunication.isCompatibleContext = function(a) {\n return !!(a && a.addEventListener && a.postMessage);\n};\nmodule$exports$omid$common$PostMessageCommunication.prototype.sendMessage = function(a, b) {\n b = void 0 === b ? this.to : b;\n if (!b) {\n throw Error(\"Message destination must be defined at construction time or when sending the message.\");\n }\n b.postMessage(a.serialize(), \"*\");\n};\nmodule$exports$omid$common$PostMessageCommunication.prototype.isCrossOrigin = function() {\n return this.to ? module$contents$omid$common$windowUtils_isCrossOrigin(this.to) : !0;\n};\nvar module$exports$omid$common$DetectOmid = {OMID_PRESENT_FRAME_NAME:\"omid_v1_present\", OMID_PRESENT_FRAME_NAME_WEB:\"omid_v1_present_web\", OMID_PRESENT_FRAME_NAME_APP:\"omid_v1_present_app\", getEnvironmentIframeName:function(a) {\n var b = {};\n return (b[module$exports$omid$common$constants.Environment.APP] = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP, b[module$exports$omid$common$constants.Environment.WEB] = module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, b)[a];\n}};\nfunction module$contents$omid$common$DetectOmid_isIframePresent(a, b) {\n try {\n return a.frames && !!a.frames[b];\n } catch (c) {\n return !1;\n }\n}\nmodule$exports$omid$common$DetectOmid.isOmidPresent = function(a) {\n return [module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP,].some(function(b) {\n return module$contents$omid$common$DetectOmid_isIframePresent(a, b);\n });\n};\nmodule$exports$omid$common$DetectOmid.getOmidEnvironment = function(a) {\n for (var b = $jscomp.makeIterator(Object.values(module$exports$omid$common$constants.Environment)), c = b.next(); !c.done; c = b.next()) {\n c = c.value;\n var d = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(c);\n if (module$contents$omid$common$DetectOmid_isIframePresent(a, d)) {\n return c;\n }\n }\n return null;\n};\nfunction module$contents$omid$common$DetectOmid_writePresenceIframe_(a, b) {\n a.document.write('<iframe style=\"display:none\" id=\"' + (b + '\" name=\"' + b + '\" sandbox></iframe>'));\n}\nmodule$exports$omid$common$DetectOmid.declareOmidPresence = function(a, b) {\n a.frames && a.document && ![module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_WEB, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME_APP,].some(function(c) {\n return !!a.frames[c];\n }) && (null == a.document.body && module$exports$omid$common$DetectOmid.isMutationObserverAvailable_(a) ? module$exports$omid$common$DetectOmid.registerMutationObserver_(a, b) : (b = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(b), a.document.body ? (module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, b)) : (module$contents$omid$common$DetectOmid_writePresenceIframe_(a, \n module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$contents$omid$common$DetectOmid_writePresenceIframe_(a, b))));\n};\nmodule$exports$omid$common$DetectOmid.appendPresenceIframe_ = function(a, b) {\n var c = a.document.createElement(\"iframe\");\n c.id = b;\n c.name = b;\n c.style.display = \"none\";\n c.sandbox = \"\";\n a.document.body.appendChild(c);\n};\nmodule$exports$omid$common$DetectOmid.isMutationObserverAvailable_ = function(a) {\n return \"MutationObserver\" in a;\n};\nmodule$exports$omid$common$DetectOmid.registerMutationObserver_ = function(a, b) {\n var c = new MutationObserver(function(d) {\n d.forEach(function(e) {\n \"BODY\" === e.addedNodes[0].nodeName && (e = module$exports$omid$common$DetectOmid.getEnvironmentIframeName(b), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME), module$exports$omid$common$DetectOmid.appendPresenceIframe_(a, e), c.disconnect());\n });\n });\n c.observe(a.document.documentElement, {childList:!0});\n};\nvar 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\"];\nfunction module$contents$omid$common$serviceCommunication_getValueForKeypath(a, b) {\n return b.reduce(function(c, d) {\n return c && c[d];\n }, a);\n}\nfunction module$contents$omid$common$serviceCommunication_startServiceCommunication(a, b, c, d) {\n if (!module$contents$omid$common$windowUtils_isCrossOrigin(b)) {\n try {\n var e = module$contents$omid$common$serviceCommunication_getValueForKeypath(b, c);\n if (e) {\n return new module$exports$omid$common$DirectCommunication(e);\n }\n } catch (l) {\n }\n }\n return d(b) ? new module$exports$omid$common$PostMessageCommunication(a, b) : null;\n}\nfunction module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, b, c, d) {\n b = $jscomp.makeIterator(b);\n for (var e = b.next(); !e.done; e = b.next()) {\n if (e = module$contents$omid$common$serviceCommunication_startServiceCommunication(a, e.value, c, d)) {\n return e;\n }\n }\n return null;\n}\nfunction module$contents$omid$common$serviceCommunication_startSessionServiceCommunication(a, b, c) {\n c = void 0 === c ? module$exports$omid$common$DetectOmid.isOmidPresent : c;\n var d = [a, module$contents$omid$common$windowUtils_resolveTopWindowContext(a)];\n b && d.unshift(b);\n return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, d, module$contents$omid$common$serviceCommunication_EXPORTED_SESSION_COMMUNICATION_NAME, c);\n}\nfunction module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication(a, b) {\n b = void 0 === b ? module$exports$omid$common$DetectOmid.isOmidPresent : b;\n var c = [], d = module$contents$omid$common$serviceCommunication_getValueForKeypath(a, module$contents$omid$common$serviceCommunication_EXPORTED_SERVICE_WINDOW_NAME);\n d && c.push(d);\n c.push(module$contents$omid$common$windowUtils_resolveTopWindowContext(a));\n return module$contents$omid$common$serviceCommunication_startServiceCommunicationFromCandidates(a, c, module$contents$omid$common$serviceCommunication_EXPORTED_VERIFICATION_COMMUNICATION_NAME, b);\n}\nmodule$exports$omid$common$serviceCommunication.startSessionServiceCommunication = module$contents$omid$common$serviceCommunication_startSessionServiceCommunication;\nmodule$exports$omid$common$serviceCommunication.startVerificationServiceCommunication = module$contents$omid$common$serviceCommunication_startVerificationServiceCommunication;\nvar module$contents$omid$sessionClient$AdSession_SESSION_CLIENT_VERSION = module$exports$omid$common$version.Version, module$exports$omid$sessionClient$AdSession = function(a, b, c) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"AdSession.context\", a);\n this.adSessionId_ = module$contents$omid$common$guid_generateGuid();\n this.context_ = a;\n this.impressionOccurred_ = !1;\n var d = this.context_.serviceWindow || void 0;\n this.communication_ = b || module$contents$omid$common$serviceCommunication_startSessionServiceCommunication(module$contents$omid$common$windowUtils_resolveGlobalContext(), d);\n this.sessionInterface_ = c || new module$exports$omid$sessionClient$OmidJsSessionInterface();\n this.isSessionRunning_ = this.hasMediaEvents_ = this.hasAdEvents_ = !1;\n this.impressionType_ = this.creativeType_ = null;\n this.creativeLoaded_ = !1;\n this.callbackMap_ = {};\n this.communication_ && (this.communication_.onMessage = this.handleInternalMessage_.bind(this));\n this.setClientInfo_();\n this.injectVerificationScripts_(a.verificationScriptResources);\n this.sendSlotElement_(a.slotElement);\n this.sendVideoElement_(a.videoElement);\n this.sendContentUrl_(a.contentUrl);\n this.watchSessionEvents_();\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.getAdSessionId = function() {\n return this.adSessionId_;\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.setCreativeType = function(a) {\n if (a === module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT) {\n throw Error(\"Creative type cannot be redefined with value \" + module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT);\n }\n if (this.impressionOccurred_) {\n throw Error(\"Impression has already occurred\");\n }\n if (this.creativeLoaded_) {\n throw Error(\"Creative has already loaded\");\n }\n if (this.creativeType_ && this.creativeType_ !== module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT) {\n throw Error(\"Creative type cannot be redefined\");\n }\n if (void 0 === this.creativeType_) {\n throw Error(\"Native integration is using OMID 1.2 or earlier\");\n }\n this.sendOneWayMessage(\"setCreativeType\", a, this.adSessionId_);\n this.creativeType_ = a;\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.setImpressionType = function(a) {\n if (a === module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT) {\n throw Error(\"Impression type cannot be redefined with value \" + module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT);\n }\n if (this.impressionOccurred_) {\n throw Error(\"Impression has already occurred\");\n }\n if (this.creativeLoaded_) {\n throw Error(\"Creative has already loaded\");\n }\n if (this.impressionType_ && this.impressionType_ !== module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT) {\n throw Error(\"Impression type cannot be redefined\");\n }\n if (void 0 === this.impressionType_) {\n throw Error(\"Native integration is using OMID 1.2 or earlier\");\n }\n this.sendOneWayMessage(\"setImpressionType\", a, this.adSessionId_);\n this.impressionType_ = a;\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.isSupported = function() {\n return !!this.communication_ || this.sessionInterface_.isSupported();\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.isSendingElementsSupported_ = function() {\n return this.communication_ ? this.communication_.isDirectCommunication() : this.sessionInterface_.isSupported();\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.registerSessionObserver = function(a) {\n this.sendMessage(\"registerSessionObserver\", a, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.start = function() {\n this.sendOneWayMessage(\"startSession\", {customReferenceData:this.context_.customReferenceData, underEvaluation:this.context_.underEvaluation,}, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.finish = function() {\n this.sendOneWayMessage(\"finishSession\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.error = function(a, b) {\n this.sendOneWayMessage(\"sessionError\", a, b, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.registerAdEvents = function() {\n if (this.hasAdEvents_) {\n throw Error(\"AdEvents already registered.\");\n }\n this.hasAdEvents_ = !0;\n this.sendOneWayMessage(\"registerAdEvents\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.registerMediaEvents = function() {\n if (this.hasMediaEvents_) {\n throw Error(\"MediaEvents already registered.\");\n }\n this.hasMediaEvents_ = !0;\n this.sendOneWayMessage(\"registerMediaEvents\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.sendOneWayMessage = function(a) {\n var b = $jscomp.getRestArguments.apply(1, arguments);\n this.sendMessage.apply(this, [a, null].concat($jscomp.arrayFromIterable(b)));\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.sendMessage = function(a, b) {\n var c = $jscomp.getRestArguments.apply(2, arguments);\n this.communication_ ? this.sendInternalMessage_(a, b, c) : this.sessionInterface_.isSupported() && this.sendInterfaceMessage_(a, b, c);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.sendInternalMessage_ = function(a, b, c) {\n var d = module$contents$omid$common$guid_generateGuid();\n b && (this.callbackMap_[d] = b);\n a = new module$exports$omid$common$InternalMessage(d, module$contents$omid$common$serviceMethodUtils_getPrefixedSessionServiceMethod(a), module$exports$omid$common$version.Version, module$contents$omid$common$ArgsSerDe_serializeMessageArgs(module$exports$omid$common$version.Version, c));\n this.communication_.sendMessage(a);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.handleInternalMessage_ = function(a, b) {\n b = a.method;\n var c = a.guid;\n a = a.args;\n if (\"response\" === b && this.callbackMap_[c]) {\n var d = module$contents$omid$common$ArgsSerDe_deserializeMessageArgs(module$exports$omid$common$version.Version, a);\n this.callbackMap_[c].apply(this, d);\n }\n \"error\" === b && window.console && module$contents$omid$common$logger_error(a);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.sendInterfaceMessage_ = function(a, b, c) {\n try {\n this.sessionInterface_.sendMessage(a, b, c);\n } catch (d) {\n module$contents$omid$common$logger_error(\"Failed to communicate with SessionInterface with error:\"), module$contents$omid$common$logger_error(d);\n }\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.assertSessionRunning = function() {\n if (!this.isSessionRunning_) {\n throw Error(\"Session not started.\");\n }\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.impressionOccurred = function() {\n if (this.creativeType_ === module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT) {\n throw Error(\"Creative type has not been redefined\");\n }\n if (this.impressionType_ === module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT) {\n throw Error(\"Impression type has not been redefined\");\n }\n this.impressionOccurred_ = !0;\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.creativeLoaded = function() {\n if (this.creativeType_ === module$exports$omid$common$constants.CreativeType.DEFINED_BY_JAVASCRIPT) {\n throw Error(\"Creative type has not been redefined\");\n }\n if (this.impressionType_ === module$exports$omid$common$constants.ImpressionType.DEFINED_BY_JAVASCRIPT) {\n throw Error(\"Impression type has not been redefined\");\n }\n this.creativeLoaded_ = !0;\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.setClientInfo_ = function() {\n this.sendOneWayMessage(\"setClientInfo\", module$exports$omid$common$version.Version, this.context_.partner.name, this.context_.partner.version, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.injectVerificationScripts_ = function(a) {\n a && (a = a.map(function(b) {\n return b.toJSON();\n }), this.sendOneWayMessage(\"injectVerificationScriptResources\", a, this.adSessionId_));\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.sendSlotElement_ = function(a) {\n this.sendElement_(a, \"setSlotElement\");\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.sendVideoElement_ = function(a) {\n this.sendElement_(a, \"setVideoElement\");\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.sendElement_ = function(a, b) {\n a && (this.isSendingElementsSupported_() ? this.sendOneWayMessage(b, a, this.adSessionId_) : this.error(module$exports$omid$common$constants.ErrorType.GENERIC, \"Session Client \" + b + \" called when communication is cross-origin\"));\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.sendContentUrl_ = function(a) {\n a && this.sendOneWayMessage(\"setContentUrl\", a, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.setElementBounds = function(a) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"AdSession.elementBounds\", a);\n this.sendOneWayMessage(\"setElementBounds\", a, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdSession.prototype.watchSessionEvents_ = function() {\n var a = this;\n this.registerSessionObserver(function(b) {\n b.type === module$exports$omid$common$constants.AdEventType.SESSION_START && (a.isSessionRunning_ = !0, a.creativeType_ = b.data.creativeType, a.impressionType_ = b.data.impressionType);\n b.type === module$exports$omid$common$constants.AdEventType.SESSION_FINISH && (a.isSessionRunning_ = !1);\n });\n};\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.AdSession\", module$exports$omid$sessionClient$AdSession);\nvar module$exports$omid$common$VastProperties = function(a, b, c, d) {\n this.isSkippable = a;\n this.skipOffset = b;\n this.isAutoPlay = c;\n this.position = d;\n};\nmodule$exports$omid$common$VastProperties.prototype.toJSON = function() {\n return {isSkippable:this.isSkippable, skipOffset:this.skipOffset, isAutoPlay:this.isAutoPlay, position:this.position,};\n};\nvar module$exports$omid$sessionClient$AdEvents = function(a) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"AdEvents.adSession\", a);\n this.adSessionId_ = a.getAdSessionId();\n try {\n a.registerAdEvents(), this.adSession = a;\n } catch (b) {\n throw Error(\"AdSession already has an ad events instance registered\");\n }\n};\nmodule$exports$omid$sessionClient$AdEvents.prototype.impressionOccurred = function() {\n this.adSession.assertSessionRunning();\n this.adSession.impressionOccurred();\n this.adSession.sendOneWayMessage(\"impressionOccurred\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$AdEvents.prototype.loaded = function(a) {\n a = void 0 === a ? null : a;\n this.adSession.creativeLoaded();\n a = a ? a.toJSON() : null;\n this.adSession.sendOneWayMessage(\"loaded\", a, this.adSessionId_);\n};\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.AdEvents\", module$exports$omid$sessionClient$AdEvents);\nvar module$exports$omid$sessionClient$MediaEvents = function(a) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"MediaEvents.adSession\", a);\n this.adSessionId_ = a.getAdSessionId();\n try {\n a.registerMediaEvents(), this.adSession = a;\n } catch (b) {\n throw Error(\"AdSession already has a media events instance registered\");\n }\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.start = function(a, b) {\n module$contents$omid$common$argsChecker_assertNumber(\"MediaEvents.start.duration\", a);\n module$contents$omid$common$argsChecker_assertNumberBetween(\"MediaEvents.start.mediaPlayerVolume\", b, 0, 1);\n this.adSession.sendOneWayMessage(\"start\", a, b, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.firstQuartile = function() {\n this.adSession.sendOneWayMessage(\"firstQuartile\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.midpoint = function() {\n this.adSession.sendOneWayMessage(\"midpoint\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.thirdQuartile = function() {\n this.adSession.sendOneWayMessage(\"thirdQuartile\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.complete = function() {\n this.adSession.sendOneWayMessage(\"complete\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.pause = function() {\n this.adSession.sendOneWayMessage(\"pause\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.resume = function() {\n this.adSession.sendOneWayMessage(\"resume\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.bufferStart = function() {\n this.adSession.sendOneWayMessage(\"bufferStart\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.bufferFinish = function() {\n this.adSession.sendOneWayMessage(\"bufferFinish\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.skipped = function() {\n this.adSession.sendOneWayMessage(\"skipped\", this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.volumeChange = function(a) {\n module$contents$omid$common$argsChecker_assertNumberBetween(\"MediaEvents.volumeChange.mediaPlayerVolume\", a, 0, 1);\n this.adSession.sendOneWayMessage(\"volumeChange\", a, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.playerStateChange = function(a) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"MediaEvents.playerStateChange.playerState\", a);\n this.adSession.sendOneWayMessage(\"playerStateChange\", a, this.adSessionId_);\n};\nmodule$exports$omid$sessionClient$MediaEvents.prototype.adUserInteraction = function(a) {\n module$contents$omid$common$argsChecker_assertNotNullObject(\"MediaEvents.adUserInteraction.interactionType\", a);\n this.adSession.sendOneWayMessage(\"adUserInteraction\", a, this.adSessionId_);\n};\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.MediaEvents\", module$exports$omid$sessionClient$MediaEvents);\nvar module$exports$omid$sessionClient$OmidVersion = function(a, b) {\n module$contents$omid$common$argsChecker_assertTruthyString(\"OmidVersion.semanticVersion\", a);\n module$contents$omid$common$argsChecker_assertTruthyString(\"OmidVersion.apiLevel\", b);\n};\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.OmidVersion\", module$exports$omid$sessionClient$OmidVersion);\nvar module$exports$omid$sessionClient$ServiceCommunication = {};\nfunction module$contents$omid$sessionClient$ServiceCommunication_listenForServiceWindow(a) {\n var b = module$contents$omid$common$windowUtils_resolveGlobalContext();\n (new module$exports$omid$common$PostMessageCommunication(b)).onMessage = function(c, d) {\n c.method === module$exports$omid$common$constants.MessageMethod.IDENTIFY_SERVICE_WINDOW && a(d);\n };\n}\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.listenForServiceWindow\", module$contents$omid$sessionClient$ServiceCommunication_listenForServiceWindow);\nmodule$exports$omid$sessionClient$ServiceCommunication.listenForServiceWindow = module$contents$omid$sessionClient$ServiceCommunication_listenForServiceWindow;\nvar module$exports$omid$sessionClient$VastPropertiesExports = {};\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.VastProperties\", module$exports$omid$common$VastProperties);\nvar module$exports$omid$sessionClient$VerificationVendor = {VerificationVendorId:{OTHER:1, MOAT:2, DOUBLEVERIFY:3, INTEGRAL_AD_SCIENCE:4, PIXELATE:5, NIELSEN:6, COMSCORE:7, MEETRICS:8, GOOGLE:9,}};\nfunction module$contents$omid$sessionClient$VerificationVendor_verificationVendorIdForScriptUrl(a) {\n for (var b = $jscomp.makeIterator(module$contents$omid$sessionClient$VerificationVendor_VERIFICATION_VENDORS.keys()), c = b.next(); !c.done; c = b.next()) {\n c = c.value;\n for (var d = $jscomp.makeIterator(module$contents$omid$sessionClient$VerificationVendor_VERIFICATION_VENDORS.get(c)), e = d.next(); !e.done; e = d.next()) {\n if (e.value.test(a)) {\n return c;\n }\n }\n }\n return module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.OTHER;\n}\nvar module$contents$omid$sessionClient$VerificationVendor_VERIFICATION_VENDORS = new Map([[module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.MOAT, [/^(https?:\\/\\/|\\/\\/)?[-a-zA-Z0-9.]+\\.moatads\\.com\\/.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.DOUBLEVERIFY, [/^(https?:\\/\\/|\\/\\/)?[-a-zA-Z0-9.]+\\.doubleverify\\.com\\/.*$/, /^(https?:\\/\\/|\\/\\/)?c\\.[\\w\\-]+\\.com\\/vfw\\/dv\\/.*$/, /^(https?:\\/\\/|\\/\\/)?(www\\.)?[\\w]+\\.tv\\/r\\/s\\/d\\/.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.INTEGRAL_AD_SCIENCE, \n[/^(https?:\\/\\/|\\/\\/)?[-a-zA-Z0-9.]+\\.adsafeprotected\\.com\\/.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.PIXELATE, [/^https?:\\/\\/(q|cdn)\\.adrta\\.com\\/s\\/.*\\/(aa|aanf)\\.js.*$/, /^https:\\/\\/cdn\\.rta247\\.com\\/s\\/.*\\/(aa|aanf)\\.js.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.NIELSEN, [],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.COMSCORE, [/^(https?:\\/\\/|\\/\\/)?[-a-zA-Z0-9.]+\\.voicefive\\.com\\/.*$/, \n/^(https?:\\/\\/|\\/\\/)?[-a-zA-Z0-9.]+\\.measuread\\.com\\/.*$/, /^(https?:\\/\\/|\\/\\/)?[-a-zA-Z0-9.]+\\.scorecardresearch\\.com\\/.*$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.MEETRICS, [/^(https?:\\/\\/|\\/\\/)?s418\\.mxcdn\\.net\\/bb-serve\\/omid-meetrics.*\\.js$/,],], [module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId.GOOGLE, [/^(https?:\\/\\/|\\/\\/)?pagead2\\.googlesyndication\\.com\\/.*$/, /^(https?:\\/\\/|\\/\\/)?www\\.googletagservices\\.com\\/.*$/,],],]);\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.verificationVendorIdForScriptUrl\", module$contents$omid$sessionClient$VerificationVendor_verificationVendorIdForScriptUrl);\nmodule$contents$omid$common$exporter_packageExport(\"OmidSessionClient.VerificationVendorId\", module$exports$omid$sessionClient$VerificationVendor.VerificationVendorId);\nmodule$exports$omid$sessionClient$VerificationVendor.verificationVendorIdForScriptUrl = module$contents$omid$sessionClient$VerificationVendor_verificationVendorIdForScriptUrl;\nvar module$exports$omid$common$FloatComparer = {}, module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE = 0.01;\nfunction module$contents$omid$common$FloatComparer_roughlyEqual(a, b) {\n return Math.abs(a - b) < module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE;\n}\nfunction module$contents$omid$common$FloatComparer_roughlyLessThan(a, b) {\n return b - a > module$contents$omid$common$FloatComparer_FLOAT_ROUGH_DIFF_TOLERANCE;\n}\nfunction module$contents$omid$common$FloatComparer_lessThanOrRoughlyEqual(a, b) {\n return a < b || module$contents$omid$common$FloatComparer_roughlyEqual(a, b);\n}\nfunction module$contents$omid$common$FloatComparer_greaterThanOrRoughlyEqual(a, b) {\n return a > b || module$contents$omid$common$FloatComparer_roughlyEqual(a, b);\n}\nmodule$exports$omid$common$FloatComparer.roughlyLessThan = module$contents$omid$common$FloatComparer_roughlyLessThan;\nmodule$exports$omid$common$FloatComparer.lessThanOrRoughlyEqual = module$contents$omid$common$FloatComparer_lessThanOrRoughlyEqual;\nmodule$exports$omid$common$FloatComparer.greaterThanOrRoughlyEqual = module$contents$omid$common$FloatComparer_greaterThanOrRoughlyEqual;\n\n}, typeof exports === 'undefined' ? undefined : exports));\n\n");
OM_SESSION_JS = sb2.toString();
}
private d() {
}
public final String getOM_JS$vungle_ads_release() {
return OM_JS;
}
public final String getOM_SESSION_JS$vungle_ads_release() {
return OM_SESSION_JS;
}
}