(function(){/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ 'use strict';var h=this||self;function l(a){l[" "](a);return a}l[" "]=function(){};function m(a){let b=h,c=0;for(;b&&40>c++;){var e=!1;try{var d;if(d=!!b&&null!=b.location.href)b:{try{l(b.foo);d=!0;break b}catch(f){}d=!1}e=d}catch{e=!1}if(e&&a(b))break;a:{try{const f=b.parent;if(f&&f!=b){b=f;break a}}catch{}b=null}}}function n(a,b){if(a)for(const c in a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}function p(a=document){return a.createElement("img")};function q(){return new r(a=>a(void 0))}function t(a,b){if(!a.h)if(b instanceof r)b.then(c=>{t(a,c)});else{a.h=!0;a.i=b;for(b=0;b{t(this,b)})}then(a){return new r(b=>{u(this,c=>{b(a(c))})})}};var w=a=>{let b="https://pagead2.googlesyndication.com/pagead/gen_204?id=rhmss";n(a,(c,e)=>{if(c||0===c)b+=`&${e}=${encodeURIComponent(""+c)}`});v(b)},v=a=>{var b=window;if(b.fetch)b.fetch(a,{keepalive:!0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"});else{b.google_image_requests||(b.google_image_requests=[]);const c=p(b.document);c.src=a;b.google_image_requests.push(c)}};function x(a){if(!a)throw Error("functionToExecute must not be truthy.");};function y(){return/\d+\.\d+\.\d+(-.*)?/.test("1.4.3-google_20230308")}function z(){const a=["1","4","3"],b=["1","0","3"];for(let c=0;3>c;c++){const e=parseInt(a[c],10),d=parseInt(b[c],10);if(e>d)break;else if(e{let b=16*Math.random()|0;return"y"===a?(b&3|8).toString(16):b.toString(16)})};function H(...a){I(()=>{throw Error("Could not complete the test successfully - ",...a);},()=>console.error(...a))}function I(a,b){"undefined"!==typeof jasmine&&jasmine?a():"undefined"!==typeof console&&console&&console.error&&b()};var J=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;const a=Function("return this")();if(a)return a;throw Error("Could not determine global object context.");}();function K(a){try{return a.frames?!!a.frames.omid_v1_present:!1}catch(b){return!1}};class L extends E{constructor(a){super(a);this.handleExportedMessage=L.prototype.i.bind(this)}sendMessage(a,b=this.h){if(!b)throw Error("Message destination must be defined at construction time or when sending the message.");b.handleExportedMessage(D(a),this)}i(a,b){A(a)&&this.g&&this.g(B(a),b)}};function M(a){return null!=a&&"undefined"!==typeof a.top&&null!=a.top}function N(a){if(a===J)return!1;try{if("undefined"===typeof a.location.hostname)return!0}catch(b){return!0}return!1};class O extends E{constructor(a,b=J){super(b);a.addEventListener("message",c=>{if("object"===typeof c.data){var e=c.data;A(e)&&c.source&&this.g&&this.g(B(e),c.source)}})}sendMessage(a,b=this.h){if(!b)throw Error("Message destination must be defined at construction time or when sending the message.");b.postMessage(D(a),"*")}};const P=["omid","v1_VerificationServiceCommunication"],Q=["omidVerificationProperties","serviceWindow"];function R(a,b){return b.reduce((c,e)=>c&&c[e],a)};function S(a,b,c,...e){if(a.g){var d=G();c&&(a.i[d]=c);b="VerificationService."+b;e=y()&&z()?e:JSON.stringify(e);a.g.sendMessage(new C(d,b,"1.4.3-google_20230308",e))}} class T{constructor(a){if(!a){var b;"undefined"===typeof b&&"undefined"!==typeof window&&window&&(b=window);b=M(b)?b:J;a=[];var c=R(b,Q);c&&a.push(c);a.push(M(b)?b.top:J);a:{for(const f of a){b:{a=b;c=f;var e=K;if(!N(c))try{const g=R(c,P);if(g){var d=new L(g);break b}}catch(g){}d=e(c)?new O(a,c):null}if(a=d)break a}a=null}}if(this.g=a)this.g.g=this.j.bind(this);else if(d=(d=J.omid3p)&&"function"===typeof d.registerSessionObserver&&"function"===typeof d.addEventListener?d:null)this.omid3p=d;this.i= {};this.h=(d=J.omidVerificationProperties)?d.injectionId:void 0}registerSessionObserver(a,b){x(a);this.omid3p?this.omid3p.registerSessionObserver(a,b,this.h):S(this,"addSessionListener",a,b,this.h)}addEventListener(a,b){if(!a)throw Error("Value for eventType is undefined, null or blank.");if("string"!==typeof a&&!(a instanceof String))throw Error("Value for eventType is not a string.");if(""===a.trim())throw Error("Value for eventType is empty string.");x(b);this.omid3p?this.omid3p.addEventListener(a, b,this.h):S(this,"addEventListener",b,a,this.h)}j(a){const b=a.method,c=a.h;a=a.g;if("response"===b&&this.i[c]){var e=y()&&z()?a?a:[]:a&&"string"===typeof a?JSON.parse(a):[];this.i[c].apply(this,e)}"error"===b&&window.console&&H(a)}}(function(a,b,c="undefined"===typeof omidExports?null:omidExports){c&&(a=a.split("."),a.slice(0,a.length-1).reduce(F,c)[a[a.length-1]]=b)})("OmidVerificationClient",T);function U(){let a=null;m(b=>(b=b.mraid)&&b.IS_GMA_SDK?(a=b,!0):!1);return a}function V(){return new r(a=>{h.document.readyState&&"complete"===h.document.readyState?a():h.addEventListener("load",a)})}function W(){return new r(a=>{const b=U();b&&("loading"===b.getState()?b.addEventListener("ready",()=>{a(b)}):a(b))})}function X(a,b=null){b=new aa({timeout:b});b.h||ba(b);b.h.then(a)} function ca(){return new r(a=>{V().then(()=>{W().then(b=>{const c=(e,d)=>{0{const c=new r(d=>{let f=!1,g;const da=(new Date).getTime();a.j.registerSessionObserver(k=>{"sessionStart"===k.type&&(g&&h.clearTimeout(g),f?(f=!1,k=(new Date).getTime()-da,a.m||(a.m=!0,w({te:k,to:a.i}))):(k=k.data,d("app"==k.context.environment),k.context.omidNativeInfo&&(a.g.sdk=k.context.omidNativeInfo.partnerName)))});null!=a.i&&(g=h.setTimeout(()=>{f=!0;d(!1)},a.i))}),e=new r(d=>{a.j.addEventListener("geometryChange",f=>{f=f.data;const g=f.adView.reasons;g&&-1!= g.indexOf("hidden")||(f=f.adView,(f=f.onScreenContainerGeometry||f.onScreenGeometry)&&f.width&&f.height&&d())})});c.then(d=>{d?(e.then(()=>{a.g.src=1;b(a.g)}),ca().then(()=>{a.g.src=2;b(a.g)})):b()})}),a.h.then(()=>{a.l=!1})):a.h=q()}var aa=class{constructor(a={}){var b=this.j=a.client??new T;this.o=!(!b.g&&!b.omid3p);this.h=null;this.l=this.o;this.g={};this.i=a.timeout??null;this.m=!1}};const Y=function(a,b=null){return b&&b.getAttribute("data-jc")===String(a)?b:document.querySelector(`[${"data-jc"}="${a}"]`)}(86,document.currentScript);var Z;if(Y){const a={},b=Y.attributes;for(let c=b.length-1;0<=c;c--){const e=b[c].name;0===e.indexOf("data-jcp-")&&(a[e.substring(9)]=b[c].value)}Z=a}else Z={};window.omrhp=function(a){let b=+a?.owwt;Number.isNaN(b)&&(b=null);return c=>{X(c,b)}}(Z);}).call(this);