;(function(omidGlobal) {
  'use strict';var n;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];return b?b.call(a):{next:aa(a)}}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}var ba='function'==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ca;
if('function'==typeof Object.setPrototypeOf)ca=Object.setPrototypeOf;else{var da;a:{var ea={S:!0},fa={};try{fa.__proto__=ea;da=fa.S;break a}catch(a){}da=!1}ca=da?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+' is not extensible');return a}:null}var ha=ca;
function r(a,b){a.prototype=ba(b.prototype);a.prototype.constructor=a;if(ha)ha(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]}function ia(a){a=['object'==typeof window&&window,'object'==typeof self&&self,'object'==typeof global&&global,a];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}return globalThis}
var u=ia(this),ja='function'==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function v(a,b){if(b){var c=u;a=a.split('.');for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ja(c,a,{configurable:!0,writable:!0,value:b})}}v('globalThis',function(a){return a||u});function x(a,b){return Object.prototype.hasOwnProperty.call(a,b)}
var 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};v('Object.assign',function(a){return a||ka});function la(){la=function(){};u.Symbol||(u.Symbol=ma)}function na(a,b){this.a=a;ja(this,'description',{configurable:!0,writable:!0,value:b})}na.prototype.toString=function(){return this.a};
var ma=function(){function a(c){if(this instanceof a)throw new TypeError('Symbol is not a constructor');return new na('jscomp_symbol_'+(c||'')+'_'+b++,c)}var b=0;return a}();function oa(){la();var a=u.Symbol.iterator;a||(a=u.Symbol.iterator=u.Symbol('Symbol.iterator'));'function'!=typeof Array.prototype[a]&&ja(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return pa(aa(this))}});oa=function(){}}function pa(a){oa();a={next:a};a[u.Symbol.iterator]=function(){return this};return a}
v('WeakMap',function(a){function b(h){this.a=(g+=Math.random()+1).toString();if(h){h=p(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}function c(){}function d(h){var k=typeof h;return'object'===k&&null!==h||'function'===k}function e(h){if(!x(h,l)){var k=new c;ja(h,l,{value:k})}}function f(h){var k=Object[h];k&&(Object[h]=function(m){if(m instanceof c)return m;e(m);return k(m)})}if(function(){if(!a||!Object.seal)return!1;try{var h=Object.seal({}),k=Object.seal({}),m=new a([[h,2],[k,
3]]);if(2!=m.get(h)||3!=m.get(k))return!1;m.delete(h);m.set(k,4);return!m.has(h)&&4==m.get(k)}catch(t){return!1}}())return a;var l='$jscomp_hidden_'+Math.random();f('freeze');f('preventExtensions');f('seal');var g=0;b.prototype.set=function(h,k){if(!d(h))throw Error('Invalid WeakMap key');e(h);if(!x(h,l))throw Error('WeakMap key fail: '+h);h[l][this.a]=k;return this};b.prototype.get=function(h){return d(h)&&x(h,l)?h[l][this.a]:void 0};b.prototype.has=function(h){return d(h)&&x(h,l)&&x(h[l],this.a)};
b.prototype.delete=function(h){return d(h)&&x(h,l)&&x(h[l],this.a)?delete h[l][this.a]:!1};return b});
v('Map',function(a){function b(){var g={};return g.A=g.next=g.head=g}function c(g,h){var k=g.a;return pa(function(){if(k){for(;k.head!=g.a;)k=k.A;for(;k.next!=k.head;)return k=k.next,{done:!1,value:h(k)};k=null}return{done:!0,value:void 0}})}function d(g,h){var k=h&&typeof h;'object'==k||'function'==k?f.has(h)?k=f.get(h):(k=''+ ++l,f.set(h,k)):k='p_'+h;var m=g.b[k];if(m&&x(g.b,k))for(g=0;g<m.length;g++){var t=m[g];if(h!==h&&t.key!==t.key||h===t.key)return{id:k,list:m,index:g,s:t}}return{id:k,list:m,
index:-1,s:void 0}}function e(g){this.b={};this.a=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 k=h.entries(),m=k.next();if(m.done||m.value[0]!=g||'s'!=m.value[1])return!1;m=k.next();return m.done||4!=m.value[0].x||
't'!=m.value[1]||!k.next().done?!1:!0}catch(t){return!1}}())return a;oa();var f=new WeakMap;e.prototype.set=function(g,h){g=0===g?0:g;var k=d(this,g);k.list||(k.list=this.b[k.id]=[]);k.s?k.s.value=h:(k.s={next:this.a,A:this.a.A,head:this.a,key:g,value:h},k.list.push(k.s),this.a.A.next=k.s,this.a.A=k.s,this.size++);return this};e.prototype.delete=function(g){g=d(this,g);return g.s&&g.list?(g.list.splice(g.index,1),g.list.length||delete this.b[g.id],g.s.A.next=g.s.next,g.s.next.A=g.s.A,g.s.head=null,
this.size--,!0):!1};e.prototype.clear=function(){this.b={};this.a=this.a.A=b();this.size=0};e.prototype.has=function(g){return!!d(this,g).s};e.prototype.get=function(g){return(g=d(this,g).s)&&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 k=this.entries(),m;!(m=k.next()).done;)m=
m.value,g.call(h,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var l=0;return e});v('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}});
v('Set',function(a){function b(c){this.a=new Map;if(c){c=p(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.a.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||
f.value[1]!=f.value[0]?!1:e.next().done}catch(l){return!1}}())return a;oa();b.prototype.add=function(c){c=0===c?0:c;this.a.set(c,c);this.size=this.a.size;return this};b.prototype.delete=function(c){c=this.a.delete(c);this.size=this.a.size;return c};b.prototype.clear=function(){this.a.clear();this.size=0};b.prototype.has=function(c){return this.a.has(c)};b.prototype.entries=function(){return this.a.entries()};b.prototype.values=function(){return this.a.values()};b.prototype.keys=b.prototype.values;
b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.a.forEach(function(f){return c.call(d,f,f,e)})};return b});v('Object.is',function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});v('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}});
v('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}});
var y={sa:'loaded',za:'start',la:'firstQuartile',ua:'midpoint',Aa:'thirdQuartile',ja:'complete',va:'pause',xa:'resume',ia:'bufferStart',ha:'bufferFinish',ya:'skipped',Ca:'volumeChange',wa:'playerStateChange',ea:'adUserInteraction'},qa={oa:'generic',Ba:'video',ta:'media'},ra={R:'native',qa:'html',P:'javascript'},ta={R:'native',P:'javascript',NONE:'none'},ua={na:'full',ka:'domain',ra:'limited'},va={ga:'backgrounded',ma:'foregrounded'},wa={fa:'app',Da:'web'};function z(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.b=a.friendlyObstructionClass||void 0;this.c=a.friendlyObstructionPurpose||void 0;this.f=a.friendlyObstructionReason||void 0;this.clipsToBounds=void 0!==a.clipsToBounds?!0===a.clipsToBounds:!0;this.g=void 0!==a.hasWindowFocus?!0===
a.hasWindowFocus:!0;this.notVisibleReason=a.notVisibleReason||void 0;this.noOutputDevice=a.noOutputDevice||void 0;this.childViews=a.childViews||[];this.isCreative=a.isCreative||!1;this.a=b}function xa(a){var b={};return b.width=a.width,b.height=a.height,b}function A(a){var b={};return Object.assign({},xa(a),(b.x=a.x,b.y=a.y,b))}function ya(a){var b=A(a),c={};return Object.assign({},b,(c.endX=a.endX,c.endY=a.endY,c))}function za(a,b,c){a.x+=b;a.y+=c;a.endX+=b;a.endY+=c}
z.prototype.I=function(a){if(null==a)return!1;a=A(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 Aa(a){return a.width*a.height}function Ba(a){return 0===a.width||0===a.height};function Ca(a,b){var c=0;if(0<b.length){var d=Da(a,b);a=d.ca;d=d.da;for(var e=0;e<a.length-1;e++)for(var f=(a[e]+(a[e]+1))/2,l=a[e+1]-a[e],g=0;g<d.length-1;g++){for(var h=(d[g]+(d[g]+1))/2,k=d[g+1]-d[g],m=!1,t=0;t<b.length;t++){var w=A(b[t]);if(w.x<f&&w.x+w.width>f&&w.y<h&&w.y+w.height>h){m=!0;break}}m&&(c+=Math.round(l)*Math.round(k))}}return c}
function Da(a,b){a=A(a);for(var c=[],d=[],e=0;e<b.length;e++){var f=A(b[e]);f=Ea(a,f);Fa(c,f.x);Fa(c,f.endX);Fa(d,f.y);Fa(d,f.endY)}c=c.sort(function(l,g){return l-g});d=d.sort(function(l,g){return l-g});return{ca:c,da:d}}function Ea(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 Fa(a,b){-1===a.indexOf(b)&&a.push(b)};function Ga(){this.b=this.a=this.v=this.l=this.g=this.j=void 0;this.m=0;this.h=[];this.o=[];this.u=0;this.i=[];this.c=[];this.f=[]}Ga.prototype.I=function(a){return null==a?!1:JSON.stringify(Ha(this))===JSON.stringify(Ha(a))};
function Ha(a){var b=[],c=[],d={viewport:a.j,adView:{percentageInView:a.m,pixelsInView:a.u,reasons:a.f},declaredFriendlyObstructions:a.h.length};if(void 0!==a.a){d.adView.geometry=A(a.a);d.adView.geometry.pixels=Aa(a.a);d.adView.onScreenGeometry=A(a.b);d.adView.onScreenGeometry.pixels=Math.max(0,Aa(a.b)-Ca(a.b,a.c));for(var e=0;e<a.c.length;e++)b.push(A(a.c[e]));for(e=0;e<a.o.length;e++){var f=a.o[e],l=f,g={};l.b&&(g.obstructionClass=l.b);l.c&&(g.obstructionPurpose=l.c);l.f&&(g.obstructionReason=
l.f);f=Ea(a.a,f);c.push(Object.assign({},{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.l&&void 0!==a.v&&(d.adView.containerGeometry=A(a.l),d.adView.onScreenContainerGeometry=A(a.v),d.adView.measuringElement=!0)}return d}function Ia(a,b){b=xa(b);a.j={};a.j.width=b.width;a.j.height=b.height;a.g={};a.g.x=0;a.g.y=0;a.g.width=b.width;a.g.height=b.height;a.g.endX=b.width;a.g.endY=b.height}
function Ja(){return{x:0,y:0,endX:0,endY:0,width:0,height:0}}function Ka(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 La(a,b){return.01<b.width-a.width||.01<b.height-a.height}function Ma(a){if(-1!==a.f.indexOf('backgrounded'))a.m=0,a.u=0;else{var b=Aa(a.a);if(0!==b){var c=Math.max(0,Aa(a.b)-Ca(a.b,a.c));a.m=Math.round(c/b*100);a.u=c}}}
function Na(a,b){if(Ba(b)||!a.b)b=!1;else{var c=ya(a.b),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 B(a,b){for(var c=!1,d=0;d<a.f.length;d++)a.f[d]===b&&(c=!0);c||a.f.push(b)};function Oa(a,b,c,d,e){var f=new Ga;b=new z(b,!1);Ia(f,b);Pa(a,b,f,d);if(!e)return f.f=['unmeasurable'],f.j=void 0,f.m=0,f.c=[],f.a&&(a=f.a,c={},a=new z((c.x=0,c.y=0,c.width=a.width,c.height=a.height,c),a.a),f.a=a),f.b=Ja(),f;b.noOutputDevice&&(B(f,'backgrounded'),B(f,'noOutputDevice'));if('backgrounded'===c)B(f,'backgrounded');else if(void 0!==f.a){for(a=0;a<f.h.length;a++)Na(f,f.h[a])&&f.o.push(f.h[a]);for(a=0;a<f.i.length;a++){if(c=Na(f,f.i[a])){a:{c=f.i[a];for(d=0;d<f.c.length;d++)if(f.c[d].I(c)){c=
!0;break a}c=!1}c=!c}c&&(B(f,'obstructed'),f.c.push(f.i[a]))}Ma(f)}else B(f,'notFound');return f}
function Pa(a,b,c,d){var e=b.isCreative?!0:b.adSessionId===d;if(e){c.a=b;var f=ya(c.a);a=Ka(c.g,f);var l=c.a;'notAttached'===l.notVisibleReason||'noWindowFocus'===l.notVisibleReason||'noAdView'===l.notVisibleReason?(B(c,'notFound'),c.b=new z(Ja(),!1)):(l=c.a,'viewInvisible'===l.notVisibleReason||'viewGone'===l.notVisibleReason||'viewNotVisible'===l.notVisibleReason||'viewAlphaZero'===l.notVisibleReason||'viewHidden'===l.notVisibleReason||void 0!==c.a.notVisibleReason||Ba(c.a)?(B(c,'hidden'),c.b=new z(Ja(),
!1)):(c.a.g||(B(c,'backgrounded'),B(c,'noWindowFocus')),La(a,f)&&B(c,'clipped'),c.b=new z(a,!1)))}else if(f=!0,b.a&&(f=-1!==b.isFriendlyObstructionFor.indexOf(d)?!1:!1===b.clipsToBounds),f){l=b.childViews;for(var g=0;g<l.length;g++)f=void 0!==c.a,Pa(a,new z(l[g],f),c,d)}e||void 0===c.a||(b.a?-1!==b.isFriendlyObstructionFor.indexOf(d)?c.h.push(b):c.i.push(b):(e=ya(b),d=ya(c.b),A(c.b),!Ba(c.b)&&b.clipsToBounds&&(b=Ka(d,e),La(b,d)&&(B(c,'clipped'),c.b=new z(b,!1)))))};function Qa(a,b){this.y=this.x=0;this.width=a;this.height=b};function Ra(){return{apiVersion:'1.0',accessMode:'limited',environment:'app',omidJsInfo:{omidImplementer:'omsdk',serviceVersion:'1.4.1-iab3682'}}}function Sa(){this.adSessionId=null;this.c=Ra();this.v=null;this.u='foregrounded';this.l=this.i='none';this.j=this.g=this.f=this.h=this.a=this.b=this.C=this.D=null;this.B=!0;this.m=new Map;this.o=null}var C;function D(){C||(C=new Sa);return C}
function Ta(){C.adSessionId=null;C.c=Ra();C.v=null;C.G=void 0;C.pa=void 0;C.H=null;C.K=null;C.F=null;C.u='foregrounded';C.i='none';C.l='none';C.D=null;C.C=null;C.b=null;C.a=null;C.h=null;C.f=null;C.g=null;C.j=null;C.B=!0;C.m=new Map;C.o=null};var F=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 Ua(a,b){this.a=a;this.b=b}u.Object.defineProperties(Ua.prototype,{event:{configurable:!0,enumerable:!0,get:function(){return this.a}},origin:{configurable:!0,enumerable:!0,get:function(){return this.b}}});function G(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];Va(function(){throw new (Function.prototype.bind.apply(Error,[null,'Could not complete the test successfully - '].concat(q(b))));},function(){return console.error.apply(console,q(b))})}function Wa(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];Va(function(){},function(){return console.error.apply(console,q(b))})}
function Va(a,b){'undefined'!==typeof jasmine&&jasmine?a():'undefined'!==typeof console&&console&&console.error&&b()};function Xa(){this.f=[];this.b=[];this.c=[];this.g=[];this.h={};this.a=D()}function Ya(a){a.f=[];a.b=[];a.c=[];a.g=[]}function Za(a,b){if(void 0!==a.a&&a.a.adSessionId&&!1!==$a(a,b)){var c=b.event;a.c.filter(function(d){return d.type===c.type}).forEach(function(d){return H(a,d,c)})}}function ab(a,b){a.f.push(b);Za(a,b)}function bb(a,b,c){void 0!==a.a&&a.a.adSessionId&&a.f.filter(function(d){return d.event.type===b&&$a(a,d)}).map(function(d){return d.event}).forEach(function(d){H(a,c,d)})}
function $a(a,b){var c=b.event.type,d=-1!==Object.values(y).indexOf(c)&&'volumeChange'!==c;return'impression'===c||'loaded'===c&&a.a.a?b.origin===D().l:d?b.origin===D().i:!0}function cb(a,b,c,d){'media'===b||'video'===b?db(a,c,d):(c={type:b,J:d,L:c},a.c.push(c),bb(a,b,c))}function db(a,b,c){Object.keys(y).forEach(function(d){d=y[d];var e={type:d,J:c,L:b};a.c.push(e);bb(a,d,e)})}
function eb(a,b,c,d){var e={O:c,J:d,L:b};a.g.push(e);a.b.forEach(function(f){var l=fb(f);'sessionStart'===f.event.type&&gb(a,l,e);H(a,e,l)})}function hb(a,b,c){var d=I(a,'sessionError','native',{errorType:b,message:c});a.b.push(d);a.g.forEach(function(e){H(a,e,d.event)})}
function ib(a,b){a.h=Object.assign(a.h,b);b=a.a.c;if(void 0!==b){b=Object.assign({},jb(a,kb(a,lb(a,{context:b}),!0)),{supportsLoadedEvent:!!a.a.a||'video'==a.a.b});Object.assign(b,{pageUrl:null,contentUrl:a.a.v});var c=I(a,'sessionStart','native',b);a.b.push(c);a.g.forEach(function(d){var e=fb(c);gb(a,e,d);H(a,d,e)},a);mb(a)}}
function gb(a,b,c){c.O&&(b.data.verificationParameters=a.h[c.O]);c.J&&(c=a.a.m.get(c.J))&&(b.data.verificationParameters=c.verificationParameters,b.data.context.accessMode=c.accessMode,'full'===c.accessMode&&(a.a.g&&(b.data.context.videoElement=a.a.g),a.a.f&&(b.data.context.slotElement=a.a.f)))}function nb(a){var b=a.g,c=I(a,'sessionFinish','native');a.b.push(c);var d=a.a.c;(d=!d||'native'!==d.adSessionType)&&Ya(a);b.forEach(function(e){return H(a,e,c.event)});d&&(a.h={},Ta(),Ta())}
function H(a,b,c){var d=b.L;(b=b.J)&&!a.a.m.has(b)?G('Listener/observer not called, probably because it was added after its intended ad session had already finished.'):a.i(d,c)}Xa.prototype.i=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];try{a.apply(null,q(c))}catch(e){Wa(e)}};function ob(a,b){var c=(c=D().F)?Ha(c):void 0;c=kb(a,lb(a,c));ab(a,I(a,'impression',b,c))}function pb(a,b,c){if(a.a.a||'display'!=a.a.b)b=I(a,'loaded',b,kb(a,lb(a,void 0===c?null:c))),ab(a,b)}
function qb(a,b,c,d){'start'!==b&&'volumeChange'!==b||null!=(d&&d.deviceVolume)||(d.deviceVolume=a.a.D);if(d&&('start'===b||'volumeChange'===b)){var e=d.videoPlayerVolume,f=d.mediaPlayerVolume;null!=e?(Object.assign(d,{mediaPlayerVolume:e}),a.a.C=e):null!=f&&(Object.assign(d,{videoPlayerVolume:f}),a.a.C=f)}ab(a,I(a,b,c,d))}
function mb(a){var b=a.f.filter(function(f){return Object.values(y).includes(f.event.type)&&'video'==a.a.b&&f.origin===a.a.i||'loaded'==f.event.type&&'display'==a.a.b&&f.origin===a.a.l?!0:!1}).map(function(f){return f.event}),c=a.a.adSessionId||'',d={};b=p(b);for(var e=b.next();!e.done;d={w:d.w},e=b.next()){d.w=e.value;d.w.adSessionId||(d.w.adSessionId=c);if('loaded'==d.w.type){if(!a.a.a&&'display'==a.a.b)continue;d.w.data=kb(a,lb(a,d.w.data))}a.c.filter(function(f){return function(l){return l.type===
f.w.type}}(d)).forEach(function(f){return function(l){return l.L(f.w)}}(d))}}function rb(a,b,c){a:{c=new Set(c);a=p(a.f.concat(a.b));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?(G('Event owner cannot be registered after its events have already been published.'),!1):!0}function sb(a,b){rb(a,b,Object.values(y))&&K(a,b)&&(a.a.i=b)}function tb(a,b){rb(a,b,['impression'])&&ub(a,b)&&(a.a.l=b)}
function ub(a,b){var c=a.a.l;return'none'!=c&&c!=b?(G('Impression event is owned by '+(a.a.l+', not ')+(b+'.')),!1):!0}function K(a,b){var c=a.a.i;return'none'!=c&&c!=b?(G('Media events are owned by '+(a.a.i+', not '+b+'.')),!1):!0}function kb(a,b,c){c=void 0===c?!1:c;b=Object.assign({},b);a.a.b&&Object.assign(b,{mediaType:a.a.b});a.a.a&&(c||'definedByJavaScript'!==a.a.a)&&Object.assign(b,{creativeType:a.a.a});return b}function jb(a,b){return a.a.o?Object.assign(b,{lastActivity:a.a.o}):b}
function lb(a,b){return a.a.h?Object.assign({},b,{impressionType:a.a.h}):b}function I(a,b,c,d){return new Ua({adSessionId:a.a.adSessionId||'',timestamp:(new Date).getTime(),type:b,data:d},c)}function fb(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 vb(a,b,c){'container'===b&&void 0!==a.a.G&&void 0!==a.a&&null!=a.a.adSessionId&&(a.a.H=Oa(a.c,a.a.G,a.a.u,a.a.adSessionId,!0));b=a.a;var d=b.H,e=b.K;if(d)if(e){b=new Ga;var f=d.j,l=d.a,g=d.b,h=e.a,k=e.b;f&&l&&g&&h&&k&&(Ia(b,f),b.l=new z(l,!1),b.v=new z(g,!1),b.i=Object.assign([],d.i),b.c=Object.assign([],d.c),b.h=Object.assign([],d.h),b.o=Object.assign([],d.o),b.f=Object.assign([],e.f,d.f),d=b.l.x,e=b.l.y,h=new z(h,!1),k=new z(k,!1),za(h,d,e),za(k,d,e),b.a=h,b.b=Ka(k,g),Ma(b))}else b=d;else b=
null;g=a.a.F;if(b&&!b.I(g)||c)g=Ha(b),c&&(g.adView.reasons=g.adView.reasons||[c]),c=a.b,'audio'!=c.a.a&&ab(c,I(c,'geometryChange','native',g)),a.a.F=b};function L(a){return'object'===typeof a}function M(a){return'number'===typeof a&&!isNaN(a)&&0<=a}function N(a){return'string'===typeof a}function O(a,b){return N(a)&&-1!==Object.values(b).indexOf(a)}function wb(a){return!(!a||!a.tagName||'iframe'!==a.tagName.toLowerCase())};function P(a,b,c){this.f=a;this.K=b;this.F=c;this.c=D();this.b=null;this.a=this.g=this.u=void 0;this.H=!0;this.B=void 0;Q(this)}function Q(a){if(!a.b){var b;a:{if((b=a.f.document)&&b.getElementsByClassName&&(b=b.getElementsByClassName('omid-element'))){if(1==b.length){b=b[0];break a}1<b.length&&a.H&&(hb(a.F,'generic',"More than one element with 'omid-element' class name."),a.H=!1)}b=null}if(b&&b.tagName&&'video'===b.tagName.toLowerCase())a.c.g=b;else if(b&&b.tagName)a.c.f=b;else return;xb(a)}}
function xb(a){a.c.g?(a.b=a.c.g,a.i()):a.c.f&&(a.b=a.c.f,wb(a.b)?a.c.j&&a.i():a.i())}function yb(a){a.a&&(wb(a.b)?a.c.j&&(a.C(),zb(a)):(a.C(),zb(a)))}P.prototype.m=function(){this.B&&(this.f.document.removeEventListener('visibilitychange',this.B),this.B=void 0)};P.prototype.i=function(){};function zb(a){a.u&&(a.c.K=a.u,vb(a.K,'creative'))}function Ab(a){if(a.a&&a.c.j){var b=new z(a.c.j,!1);za(b,a.a.x,a.a.y);b.clipsToBounds=!0;return b}};function Bb(a,b,c){return Cb(a,'setInterval')(b,c)}function Db(a,b){Cb(a,'clearInterval')(b)}function Eb(a,b){Cb(a,'clearTimeout')(b)}function Cb(a,b){return a.a&&a.a[b]?a.a[b]:Fb(a,b)}
function Gb(a,b,c,d){if(a.a.document&&a.a.document.body){var e=a.a.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.a.document.body.appendChild(e)}else Fb(a,'sendUrl')(b,c,d)}function Fb(a,b){if(a.a&&a.a.omidNative&&a.a.omidNative[b])return a.a.omidNative[b].bind(a.a.omidNative);throw Error('Native interface method "'+b+'" not found.');};function R(a,b,c,d,e){P.call(this,a,c,e);this.l=b;this.h=void 0;this.j=d}r(R,P);R.prototype.m=function(){void 0!==this.h&&(Db(this.j,this.h),this.h=void 0);P.prototype.m.call(this)};R.prototype.i=function(){var a=this;P.prototype.i.call(this);null==this.b?this.h=void 0:void 0===this.h&&(this.h=Bb(this.j,function(){return Hb(a)},200),Hb(this))};
R.prototype.C=function(){if(this.g){var a=Ab(this);if(a){this.a.isCreative=!1;a.isCreative=!0;for(var b=!1,c=0;c<this.a.childViews.length;c++)if(this.a.childViews[c].isCreative){this.a.childViews[c]=a;b=!0;break}b||this.a.childViews.push(a)}else this.a.isCreative=!0;this.u=Oa(this.l,this.g,this.c.u,this.c.adSessionId,this.D())}};R.prototype.D=function(){return!0};
function Hb(a){if(void 0!==a.h){b:{try{var b=a.f.top;var c=0<=b.innerHeight&&0<=b.innerWidth;break b}catch(d){}c=!1}c?(c=a.f.top,c=new z(new Qa(c.innerWidth,c.innerHeight),!1)):c=new z(new Qa(0,0),!1);b=a.b.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 z(b,!1);c.I(a.g)&&b.I(a.a)||(a.a=b,a.a.clipsToBounds=!0,a.g=c,a.g.childViews.push(a.a),yb(a))}};function S(a,b,c,d){P.call(this,a,c,d);this.o=this.j=this.l=this.h=void 0;this.G=!1;this.v=void 0}r(S,P);S.prototype.m=function(){this.h&&this.h.disconnect();Ib(this);P.prototype.m.call(this)};S.prototype.i=function(){P.prototype.i.call(this);this.b&&(this.h||(this.h=Jb(this)),Kb(this),Lb(this.b)&&Mb(this))};
S.prototype.C=function(){if(this.a&&this.v){var a=Ab(this);if(a){var b=a;var c=this.v;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 z((c.x=d,c.y=e,c.width=Math.abs(f-d),c.height=Math.abs(a-e),c),!1));d||(d=new z({x:0,y:0,width:0,height:0},!1))}else b=this.a,d=this.v;e=new Ga;this.g&&Ia(e,this.g);e.a=b;e.b=d;Ma(e);this.G?Ba(e.a)?B(e,'hidden'):100===e.m||B(e,'clipped'):B(e,'viewport');this.u=e}};S.prototype.D=function(){return!0};
function Ib(a){a.l&&(a.l.disconnect(),a.l=void 0);a.j&&(a.j.disconnect(),a.j=void 0);a.o&&((0,a.f.removeEventListener)('resize',a.o),a.o=void 0)}function Kb(a){a.h&&a.b&&(a.h.unobserve(a.b),a.h.observe(a.b))}function Lb(a){a=a.getBoundingClientRect();return 0==a.width||0==a.height}
function Jb(a){return new a.f.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.g=Nb(c.rootBounds);a.a=Nb(c.boundingClientRect);a.v=Nb(c.intersectionRect);a.G=!!c.isIntersecting;yb(a)}}catch(f){a.m(),hb(a.F,'generic','Problem handling IntersectionObserver callback: '+f.message)}},{root:null,rootMargin:'0px',threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]})}
function Mb(a){a.f.ResizeObserver?a.l||(a.l=Ob(a,function(){return Pb(a)}),a.l.observe(a.b)):(a.o||(a.o=function(){return Pb(a)},(0,a.f.addEventListener)('resize',a.o)),a.j||(a.j=new MutationObserver(function(){return Pb(a)}),a.j.observe(a.b,{childList:!1,attributes:!0,subtree:!1})))}function Pb(a){a.b&&!Lb(a.b)&&(Kb(a),Ib(a))}function Ob(a,b){return new a.f.ResizeObserver(b)}function Nb(a){if(a&&null!==a.x&&null!==a.y&&null!==a.width&&null!==a.height)return new z(a,!1)};function Sb(a){return a&&L(a)?Object.entries(a).reduce(function(b,c){var d=p(c);c=d.next().value;d=d.next().value;return b&&N(c)&&null!=d&&L(d)&&N(d.resourceUrl)},!0):!1};function T(a,b,c,d){this.b=a;this.method=b;this.version=c;this.a=d}function Tb(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 Ub(a){return new T(a.omid_message_guid,a.omid_message_method,a.omid_message_version,a.omid_message_args)}
function Vb(a){var b={};b=(b.omid_message_guid=a.b,b.omid_message_method=a.method,b.omid_message_version=a.version,b);void 0!==a.a&&(b.omid_message_args=a.a);return b};function Wb(a){this.c=a};function U(a){this.c=a;this.handleExportedMessage=U.prototype.f.bind(this)}r(U,Wb);U.prototype.b=function(a,b){b=void 0===b?this.c:b;if(!b)throw Error('Message destination must be defined at construction time or when sending the message.');b.handleExportedMessage(Vb(a),this)};U.prototype.f=function(a,b){Tb(a)&&this.a&&this.a(Ub(a),b)};function Xb(a){return Yb(a,'SessionService.')}function Yb(a,b){return(a=a.match(new RegExp('^'+b+'(.*)')))&&a[1]};function Zb(a,b){this.c=b=void 0===b?F:b;var c=this;a.addEventListener('message',function(d){if('object'===typeof d.data){var e=d.data;Tb(e)&&d.source&&c.a&&c.a(Ub(e),d.source)}})}r(Zb,Wb);Zb.prototype.b=function(a,b){b=void 0===b?this.c:b;if(!b)throw Error('Message destination must be defined at construction time or when sending the message.');b.postMessage(Vb(a),'*')};function $b(){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 ac(a){if(!a.a||!a.a.document)throw Error('OMID Service Script is not running within a window.');var b=a.b;a.b=[];b.forEach(function(c){try{var d=a.c.B?'limited':'full',e=O(c.accessMode,ua)?c.accessMode:null;var f=e?'full'==e&&'limited'==d?d:'domain'==e?'limited':e:d;c.accessMode=f;a:{var l=c.resourceUrl,g=a.a.location.origin;try{var h=new URL(l,g);break a}catch(X){}try{h=new URL(l);break a}catch(X){}h=null}if(d=h){var k=$b(),m=a.a.document,t=m.createElement('iframe');t.id='omid-verification-script-frame-'+
k;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': '"+(k+'\',\n};\x3c/script>\n<script type="text/javascript" src="')+d.href+'">\x3c/script>\n</head><body></body></html>':'domain'==f&&(t.src=bc(a,k,d).href);['domain','limited'].includes(f)&&(t.sandbox='allow-scripts');m.body.appendChild(t);var w=c.vendorKey,J=c.verificationParameters;
w=void 0===w?'':w;J=void 0===J?'':J;w&&'string'===typeof w&&''!==w&&J&&'string'===typeof J&&''!==J&&(a.f.h[w]=J);a.c.m.set(k,c)}}catch(X){Wa('OMID verification script '+c.resourceUrl+' failed to load: '+X)}})}
function bc(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.a.parent.location.origin)}catch(e){throw Error('OMID Service Script cannot access the parent window.');}return b};function cc(){var a=dc,b=ec,c=this;this.c=V;this.b=a;this.a=D();this.g=b;this.f=!1;this.registerSessionObserver(function(d){return fc(c,d)})}n=cc.prototype;n.registerSessionObserver=function(a){eb(this.c,a)};n.setSlotElement=function(a){a&&a.tagName?(this.a.f=a,this.b&&xb(this.b)):G('setSlotElement called with a non-HTMLElement.  It will be ignored.')};n.setElementBounds=function(a){this.a.j=a;this.b&&xb(this.b);this.b&&yb(this.b)};n.error=function(a,b){hb(this.c,a,b)};
n.registerAdEvents=function(){tb(this.c,'javascript')};n.registerMediaEvents=function(){sb(this.c,'javascript')};function W(a,b,c){'impression'==b?ub(a.c,'javascript')&&(ob(a.c,'javascript'),a.b&&Q(a.b)):('loaded'==b?(c=void 0===c?null:c,K(a.c,'javascript')&&pb(a.c,'javascript',c)):K(a.c,'javascript')&&qb(a.c,b,'javascript',c),['loaded','start'].includes(b)&&a.b&&Q(a.b))}n.injectVerificationScriptResources=function(a){var b=this.g;b.b.push.apply(b.b,q(a));if(this.f)try{ac(this.g)}catch(c){G(c.message)}};
n.setCreativeType=function(a,b){b=void 0===b?null:b;if(!this.a.b||this.a.a)this.a.a=a,'video'==a||'audio'==a?this.a.b='video':'htmlDisplay'==a||'nativeDisplay'==a?this.a.b='display':'definedByJavaScript'==a&&b&&(this.a.b='none'==b?'display':'video')};n.setImpressionType=function(a){if(!this.a.b||this.a.a)this.a.h=a};
function fc(a,b){if('sessionStart'===b.type){a.f=!0;try{ac(a.g)}catch(c){G(c.message)}}'sessionFinish'===b.type&&(a.f=!1,(b=D().c)&&'native'==b.adSessionType||a.registerSessionObserver(function(c){return fc(a,c)}))}n.setClientInfo=function(a,b,c){var d=this.a.c||{};d.omidJsInfo=Object.assign({},d.omidJsInfo,{sessionClientVersion:a,partnerName:b,partnerVersion:c});this.a.c=d;return this.a.c.omidJsInfo.serviceVersion};function gc(a){return/\d+\.\d+\.\d+(-.*)?/.test(a)}function hc(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 ic(a,b){return gc(a)&&hc(a)?b?b:[]:b&&'string'===typeof b?JSON.parse(b):[]};var jc=new function(){};function kc(){var a=lc;var b=void 0===b?omidGlobal:b;this.a=a;this.g=b;this.b=new U;this.g.omid=this.g.omid||{};this.g.omid.v1_SessionServiceCommunication=this.b;this.f=b&&b.addEventListener&&b.postMessage?new Zb(b):null;this.c=null;this.b.a=this.h.bind(this);this.f&&(this.f.a=this.i.bind(this))}kc.prototype.h=function(a,b){null!=Xb(a.method)&&mc(this,jc)&&nc(this,a,b,this.b)};kc.prototype.i=function(a,b){null!=Xb(a.method)&&mc(this,b)&&nc(this,a,b,this.f)};
function mc(a,b){a.c||(a.c=b);return a.c!=b?(G('The source of session client messages cannot be changed from the source of the first message.'),!1):!0}
function nc(a,b,c,d){function e(h){for(var k=[],m=0;m<arguments.length;++m)k[m]=arguments[m];k=new T(f,'response',g,gc(g)&&hc(g)?k:JSON.stringify(k));d.b(k,c)}var f=b.b,l=b.method,g=b.version;b=ic(g,b.a);try{oc(a,l,e,b)}catch(h){d.b(new T(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)}}
function oc(a,b,c,d){if(null!=Xb(b))switch(Xb(b)){case 'registerAdEvents':a.a.registerAdEvents();break;case 'registerMediaEvents':a.a.registerMediaEvents();break;case 'registerSessionObserver':a.a.registerSessionObserver(c);break;case 'setSlotElement':c=p(d).next().value;a.a.setSlotElement(c);break;case 'setVideoElement':c=p(d).next().value;a=a.a;c&&c.tagName&&'video'===c.tagName.toLowerCase()?(a.a.g=c,a.b&&xb(a.b)):G('setVideoElement called with a non-HTMLVideoElement. It will be ignored.');break;
case 'setElementBounds':c=p(d).next().value;a.a.setElementBounds(c);break;case 'startSession':G('Session start from JS is not supported in mobile app.');break;case 'finishSession':G('Session finish from JS is not supported in mobile app.');break;case 'impressionOccurred':W(a.a,'impression');break;case 'loaded':(c=p(d).next().value)?(b={skippable:c.isSkippable,autoPlay:c.isAutoPlay,position:c.position},c.isSkippable&&(b.skipOffset=c.skipOffset),W(a.a,'loaded',b)):W(a.a,'loaded');break;case 'start':b=
p(d);c=b.next().value;b=b.next().value;W(a.a,'start',{duration:c,mediaPlayerVolume:b});break;case 'firstQuartile':W(a.a,'firstQuartile');break;case 'midpoint':W(a.a,'midpoint');break;case 'thirdQuartile':W(a.a,'thirdQuartile');break;case 'complete':W(a.a,'complete');break;case 'pause':W(a.a,'pause');break;case 'resume':W(a.a,'resume');break;case 'bufferStart':W(a.a,'bufferStart');break;case 'bufferFinish':W(a.a,'bufferFinish');break;case 'skipped':W(a.a,'skipped');break;case 'volumeChange':c={mediaPlayerVolume:p(d).next().value};
W(a.a,'volumeChange',c);break;case 'playerStateChange':c={state:p(d).next().value};W(a.a,'playerStateChange',c);break;case 'adUserInteraction':c={interactionType:p(d).next().value};W(a.a,'adUserInteraction',c);break;case 'setClientInfo':var e=p(d);b=e.next().value;d=e.next().value;e=e.next().value;a=a.a.setClientInfo(b,d,e);c(a);break;case 'injectVerificationScriptResources':c=p(d).next().value;a.a.injectVerificationScriptResources(c);break;case 'setCreativeType':c=p(d).next().value;a.a.setCreativeType(c);
break;case 'setImpressionType':c=p(d).next().value;a.a.setImpressionType(c);break;case 'setContentUrl':c=p(d).next().value;a.a.a.v=c;break;case 'sessionError':b=p(d),c=b.next().value,b=b.next().value,a.a.error(c,b)}};function Z(){var a=V,b=pc,c=qc,d=dc;this.f=lc;this.b=a;this.c=b;this.h=c;this.g=d;this.a=D()}n=Z.prototype;
n.T=function(a){if(!(!(a&&L(a)&&O(a.impressionOwner,ta))||'videoEventsOwner'in a&&null!=a.videoEventsOwner&&!O(a.videoEventsOwner,ta)||'mediaEventsOwner'in a&&null!=a.mediaEventsOwner&&!O(a.mediaEventsOwner,ta))){if(a.creativeType&&a.impressionType){var b=a.mediaEventsOwner;null==this.a.a&&this.f.setCreativeType(a.creativeType,b);null==this.a.h&&(this.a.h=a.impressionType);sb(this.b,b)}else b=a.videoEventsOwner,this.a.b=null==b||'none'===b?'display':'video',this.a.a=null,this.a.h=null,sb(this.b,b);
tb(this.b,a.impressionOwner);a&&null!=a.isolateVerificationScripts&&'boolean'===typeof a.isolateVerificationScripts&&(this.a.B=a.isolateVerificationScripts)}};
n.W=function(a,b,c,d){var e;if(L(b)){if(e=O(b.environment,wa)&&O(b.adSessionType,ra))e=b.omidNativeInfo,e=L(e)?N(e.partnerName)&&N(e.partnerVersion):!1;e&&(e=b.app,e=L(e)?N(e.libraryVersion)&&N(e.appId):!1)}else e=!1;if(e){if(Sb(d)){e=p(Object.values(d));for(var f=e.next();!f.done;f=e.next())f.value.accessMode='limited';this.a.m=new Map(Object.entries(d))}d=this.f;c=void 0===c?null:c;null==a&&(a=$b());b.canMeasureVisibility=d.b.D();d.a.adSessionId=a;a=d.a;e=b;void 0!==e.contentUrl&&(a.v=e.contentUrl,
e.contentUrl=void 0);e=a.c||{};b.omidJsInfo=Object.assign({},e.omidJsInfo||{},b.omidJsInfo||{});e=b=Object.assign({},e,b);a.B||(null!=a.g?(e.videoElement=a.g,e.accessMode='full'):null!=a.f&&(e.slotElement=a.f,e.accessMode='full'));a.c=b;ib(d.c,c);d.b&&Q(d.b)}};n.U=function(){var a=this.f;nb(a.c);a.b.m()};n.aa=function(a){L(a)&&M(a.x)&&M(a.y)&&M(a.width)&&M(a.height)&&(this.a.G=a,vb(this.c,'container'))};
n.ba=function(a){O(a,va)&&(this.a.u=a,'backgrounded'===a?vb(this.c,'container','backgrounded'):vb(this.c,'container'))};n.X=function(a){'impression'===a&&(this.M(),this.g&&Q(this.g))};n.M=function(){ub(this.b,'native')&&ob(this.b,'native')};n.V=function(a){a=void 0===a?null:a;K(this.b,'native')&&pb(this.b,'native',a)};n.error=function(a,b){O(a,qa)&&hb(this.b,a,b)};n.Y=function(a,b){this.N(a,b)};
n.N=function(a,b){K(this.b,'native')&&O(a,y)&&(void 0===b||L(b))&&('loaded'==a?pb(this.b,'native',b):qb(this.b,a,'native',b))};n.Z=function(a){if('none'!==this.b.a.i&&'number'===typeof a&&!isNaN(a)){this.a.D=a;a=this.h;var b=a.a.C;null!=b&&qb(a.b,'volumeChange','native',{mediaPlayerVolume:b,deviceVolume:a.a.D})}};n.$=function(a){if(a&&L(a)&&M(a.timestamp)){var b=(this.a.o||{}).timestamp;if(!b||b<a.timestamp)this.a.o=a}};Z.prototype.startSession=Z.prototype.W;Z.prototype.error=Z.prototype.error;
Z.prototype.finishSession=Z.prototype.U;Z.prototype.publishAdEvent=Z.prototype.X;Z.prototype.publishImpressionEvent=Z.prototype.M;Z.prototype.publishVideoEvent=Z.prototype.Y;Z.prototype.publishMediaEvent=Z.prototype.N;Z.prototype.publishLoadedEvent=Z.prototype.V;Z.prototype.setNativeViewHierarchy=Z.prototype.aa;Z.prototype.setState=Z.prototype.ba;Z.prototype.setDeviceVolume=Z.prototype.Z;Z.prototype.init=Z.prototype.T;Z.prototype.setLastActivity=Z.prototype.$;function rc(){var a=V,b=sc;var c=void 0===c?F:c;this.g=a;this.a=b;this.h={};this.f={};this.c=new U;c.omid=c.omid||{};c.omid.v1_VerificationServiceCommunication=this.c;this.b=null;c&&c.addEventListener&&c.postMessage&&(this.b=new Zb(c));this.c.a=this.i.bind(this);this.b&&(this.b.a=this.j.bind(this))}function tc(a,b,c,d){Gb(a.a,b,c,d)}function uc(a,b,c,d){Fb(a.a,'downloadJavaScriptResource')(b,c,d)}rc.prototype.j=function(a,b){this.b&&vc(this,a,b,this.b)};rc.prototype.i=function(a,b){vc(this,a,b,this.c)};
function vc(a,b,c,d){function e(E){for(var Y=[],sa=0;sa<arguments.length;++sa)Y[sa]=arguments[sa];Y=new T(f,'response',g,gc(g)&&hc(g)?Y:JSON.stringify(Y));d.b(Y,c)}var f=b.b,l=b.method,g=b.version;b=ic(g,b.a);if(null!=Yb(l,'VerificationService.')){l=Yb(l,'VerificationService.');try{switch(l){case 'addEventListener':var h=p(b),k=h.next().value,m=h.next().value;cb(a.g,k,e,m);break;case 'addSessionListener':var t=p(b),w=t.next().value,J=t.next().value;eb(a.g,e,w,J);break;case 'sendUrl':var X=p(b).next().value;
tc(a,X,function(){return e(!0)},function(){return e(!1)});break;case 'setTimeout':var Qb=p(b),Ac=Qb.next().value,Bc=Qb.next().value;a.h[Ac]=Cb(a.a,'setTimeout')(e,Bc);break;case 'clearTimeout':var Cc=p(b).next().value;Eb(a.a,a.h[Cc]);break;case 'setInterval':var Rb=p(b),Dc=Rb.next().value,Ec=Rb.next().value;a.f[Dc]=Bb(a.a,e,Ec);break;case 'clearInterval':var Fc=p(b).next().value;Db(a.a,a.f[Fc]);break;case 'injectJavaScriptResource':var Gc=p(b).next().value;uc(a,Gc,function(E){return e(!0,E)},function(){return e(!1)});
break;case 'getVersion':p(b).next();var Hc=D().c.omidJsInfo;e(Hc.serviceVersion)}}catch(E){d.b(new T(f,'error',g,'\n              name: '+E.name+'\n              message: '+E.message+'\n              filename: '+E.filename+'\n              lineNumber: '+E.lineNumber+'\n              columnNumber: '+E.columnNumber+'\n              stack: '+E.stack+'\n              toString(): '+E.toString()+'\n          '),c)}}};function wc(){var a=F.document.createElement('iframe');a.id='omid_v1_present';a.name='omid_v1_present';a.style.display='none';F.document.body.appendChild(a)}function xc(){var a=new MutationObserver(function(b){b.forEach(function(c){'BODY'===c.addedNodes[0].nodeName&&(wc(),a.disconnect())})});a.observe(F.document.documentElement,{childList:!0})};var V=new Xa,sc=new function(){var a;this.a=a=void 0===a?omidGlobal:a};new rc;var yc=new function(){},zc=new function(){},pc=new function(){this.b=V;this.c=zc;this.a=D()},Ic;F?Ic=F.IntersectionObserver&&(F.MutationObserver||F.ResizeObserver)?new S(F,yc,pc,V):new R(F,zc,pc,sc,V):Ic=null;var dc=Ic,ec=new function(){var a=V;var b=void 0===b?F:b;this.f=a;this.a=b;this.c=D();this.b=[]},lc=new cc,qc=new function(){var a=V,b=D();this.b=a;this.a=b};F.omidBridge=new Z;new kc;
if(F.frames&&F.document&&!('omid_v1_present'in F.frames)){var Jc;if(Jc=null==F.document.body)Jc='MutationObserver'in F;Jc?xc():F.document.body?wc():F.document.write('<iframe style="display:none" id="omid_v1_present" name="omid_v1_present"></iframe>')};
}).call(this, this);

