0% found this document useful (0 votes)
71 views5 pages

F

This document contains code for handling JavaScript errors and logging them. It defines functions for starting and ending timing measurements, constructing error log objects, and sending the error logs to a server for reporting. Key classes include gb for handling timing measurements, lb for processing and logging errors, and Za for constructing log payload objects. The code appears to be for inclusion in websites to monitor frontend JavaScript errors and performance.

Uploaded by

Carolina Almeida
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
71 views5 pages

F

This document contains code for handling JavaScript errors and logging them. It defines functions for starting and ending timing measurements, constructing error log objects, and sending the error logs to a server for reporting. Key classes include gb for handling timing measurements, lb for processing and logging errors, and Za for constructing log payload objects. The code appears to be for inclusion in websites to monitor frontend JavaScript errors and performance.

Uploaded by

Carolina Almeida
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

(function(){/*

Copyright The Closure Library Authors.


SPDX-License-Identifier: Apache-2.0
*/
'use strict';var m=this||self;function ba(a,b,c){return
a.call.apply(a.bind,arguments)}function ca(a,b,c){if(!a)throw
Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return
function(){var
e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return
a.apply(b,e)}}return function(){return a.apply(b,arguments)}}
function n(a,b,c){n=Function.prototype.bind&&-1!
=Function.prototype.bind.toString().indexOf("native code")?ba:ca;return
n.apply(null,arguments)};var da,p;a:{for(var
ea=["CLOSURE_FLAGS"],q=m,fa=0;fa<ea.length;fa++)if(q=q[ea[fa]],null==q)
{p=null;break a}p=q}var ha=p&&p[610401301];da=null!=ha?ha:!1;var r;const
ia=m.navigator;r=ia?ia.userAgentData||null:null;function ja(a){return da?r?
r.brands.some(({brand:b})=>b&&-1!=b.indexOf(a)):!1:!1}function t(a){var b;a:
{if(b=m.navigator)if(b=b.userAgent)break a;b=""}return-1!=b.indexOf(a)};function
u(){return da?!!r&&0<r.brands.length:!1}function ka(){return u()?ja("Chromium"):
(t("Chrome")||t("CriOS"))&&!(u()?0:t("Edge"))||t("Silk")};function la(a){la[" "]
(a);return a}la[" "]=function(){};!t("Android")||ka();ka();t("Safari")&&(ka()||
(u()?0:t("Coast"))||(u()?0:t("Opera"))||(u()?0:t("Edge"))||(u()?ja("Microsoft
Edge"):t("Edg/"))||u()&&ja("Opera"));const v=Symbol();function ma(a,b){if(v)return
a[v]|=b;if(void 0!==a.g)return a.g|=b;Object.defineProperties(a,{g:
{value:b,configurable:!0,writable:!0,enumerable:!1}});return b}function na(a){let
b;v?b=a[v]:b=a.g;return null==b?0:b}function oa(a,b){v?a[v]=b:void 0!==a.g?
a.g=b:Object.defineProperties(a,{g:{value:b,configurable:!0,writable:!
0,enumerable:!1}});return a};var pa={};function ua(a){return null!
==a&&"object"===typeof a&&!
Array.isArray(a)&&a.constructor===Object}Object.freeze(oa([],23));function B(a,b)
{return-1===b?null:b>=a.l?a.i?a.i[b]:void 0:a.g[b+a.j]}function va(a){var
b=B(a,13);var c=null==b?b:"number"===typeof b||"NaN"===b||"Infinity"===b||"-
Infinity"===b?Number(b):void 0;null!=c&&c!==b&&(a.m&&(a.m=void 0),13>=a.l?
(b=a.l+a.j,(a.i||(a.i=a.g[b]={}))[13]=c):(a.g[13+a.j]=c,(a=a.i)&&13 in a&&delete
a[13]));return c}function C(a){return D(B(a,12),0)}function E(a,b){a=B(a,b);return
D(null==a?a:!!a,!1)}function D(a,b){return null==a?b:a}function I(a,b){return
D(B(a,b),"")};let J;function wa(a){switch(typeof a){case "number":return
isFinite(a)?a:String(a);case "boolean":return a?1:0;case "object":if(a&&!
Array.isArray(a)&&null!=a&&a instanceof Uint8Array){let b="",c=0;const d=a.length-
10240;for(;c<d;)b+=String.fromCharCode.apply(null,a.subarray(c,c+=10240));b+=String
.fromCharCode.apply(null,c?a.subarray(c):a);return btoa(b)}}return a};function
xa(a,b,c,d,e,f){if(null!=a){if(Array.isArray(a))a=e&&0==a.length&&na(a)&1?void
0:f&&na(a)&2?a:ya(a,b,c,void 0!==d,e,f);else if(ua(a)){const g={};for(let k in
a)g[k]=xa(a[k],b,c,d,e,f);a=g}else a=b(a,d);return a}}function ya(a,b,c,d,e,f)
{const g=na(a);d=d?!!(g&16):void 0;a=Array.prototype.slice.call(a);for(let
k=0;k<a.length;k++)a[k]=xa(a[k],b,c,d,e,f);c&&c(g,a);return a}function za(a){return
a.Y===pa?a.toJSON():wa(a)};var Aa=class{constructor(a){null==a&&(a=J);J=void 0;var
b=this.constructor.messageId;if(null==a)a=b?[b]:[],oa(a,48);else{if(!
Array.isArray(a))throw Error();if(b&&b!==a[0])throw Error();let c=ma(a,0)|
32;oa(a,c)}this.j=b?0:-1;this.g=a;a:{b=this.g.length;a=b-
1;if(b&&(b=this.g[a],ua(b))){this.i=b;this.l=a-this.j;break
a}this.l=Number.MAX_VALUE}}toJSON(){return ya(this.g,za,void 0,void 0,!1,!
1)}};Aa.prototype.Y=pa;Aa.prototype.toString=function(){return
this.g.toString()};var Ba=function(a){return b=>{if(null==b||""==b)b=new
a;else{b=JSON.parse(b);if(!Array.isArray(b))throw Error(void 0);ma(b,16);J=b;b=new
a(b);J=void 0}return b}}(class extends Aa{});function Ca(a=window){return a};var
K=window;function L(a,b,c){a.addEventListener&&a.addEventListener(b,c,!1)}function
M(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)};var Da=RegExp("^(?:
([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?
([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Ea(a,b){if(a)for(const c in
a)Object.prototype.hasOwnProperty.call(a,c)&&b(a[c],c,a)}let N=[];const
Fa=()=>{const a=N;N=[];for(const b of a)try{b()}catch{}};var
Ga=(a,b)=>{"complete"===a.readyState||"interactive"===a.readyState?
(N.push(b),1==N.length&&(window.Promise?
Promise.resolve().then(Fa):window.setImmediate?
setImmediate(Fa):setTimeout(Fa,0))):a.addEventListener("DOMContentLoaded",b)};funct
ion Ha(a=document){return a.createElement("img")};function Ia(a,b,c=null,d=!1)
{Ja(a,b,c,d)}function Ja(a,b,c,d){a.google_image_requests||
(a.google_image_requests=[]);const e=Ha(a.document);if(c||d){const
f=g=>{c&&c(g);if(d){g=a.google_image_requests;const
k=Array.prototype.indexOf.call(g,e,void
0);0<=k&&Array.prototype.splice.call(g,k,1)}M(e,"load",f);M(e,"error",f)};L(e,"load
",f);L(e,"error",f)}e.src=b;a.google_image_requests.push(e)};let Ka=0;function
La(a){return(a=Ma(a,document.currentScript))&&a.getAttribute("data-jc-
version")||"unknown"}function Ma(a,b=null){return b&&b.getAttribute("data-
jc")===String(a)?b:document.querySelector(`[${"data-jc"}="${a}"]`)};class
Na{constructor(a,b)
{this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror"
;this.meta={}}};const Sa=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)
(\\?|/|$)");var Ta=class{constructor(a,b)
{this.g=a;this.i=b}},Ua=class{constructor(a,b){this.url=a;this.W=!!
b;this.depth=null}};function O(a,b){const c={};c[a]=b;return[c]}function
Va(a,b,c,d,e){const f=[];Ea(a,function(g,k)
{(g=Wa(g,b,c,d,e))&&f.push(k+"="+g)});return f.join(b)}
function Wa(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof
c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){const f=[];for(let
g=0;g<a.length;g++)f.push(Wa(a[g],b,c,d+1,e));return f.join(c[d])}}else
if("object"==typeof a)return e=e||0,2>e?
encodeURIComponent(Va(a,b,c,d,e+1)):"...";return
encodeURIComponent(String(a))}function Xa(a){let b=1;for(const c in
a.i)b=c.length>b?c.length:b;return 3997-b-a.j.length-1}
function Ya(a,b){let c="https://pagead2.googlesyndication.com"+b,d=Xa(a)-
b.length;if(0>d)return"";a.g.sort(function(f,g){return f-g});b=null;let
e="";for(let f=0;f<a.g.length;f++){const g=a.g[f],k=a.i[g];for(let
l=0;l<k.length;l++){if(!d){b=null==b?g:b;break}let h=Va(k[l],a.j,",$");if(h)
{h=e+h;if(d>=h.length){d-=h.length;c+=h;e=a.j;break}b=null==b?g:b}}}a="";null!
=b&&(a=e+"trn="+b);return c+a}class Za{constructor()
{this.j="&";this.i={};this.l=0;this.g=[]}};function $a(){var
a=P,b=window.google_srt;0<=b&&1>=b&&(a.g=b)}function ab(a,b,c,d=!1,e){if((d?
a.g:Math.random())<(e||.01))try{let f;c instanceof Za?f=c:(f=new Za,Ea(c,
(k,l)=>{var h=f;const w=h.l++;k=O(l,k);h.g.push(w);h.i[w]=k}));const
g=Ya(f,"/pagead/gen_204?id="+b+"&");g&&Ia(m,g)}catch(f){}}class bb{constructor()
{this.g=Math.random()}};let R=null;function S(){const a=m.performance;return
a&&a.now&&a.timing?Math.floor(a.now()+a.timing.navigationStart):Date.now()}function
cb(){const a=m.performance;return a&&a.now?a.now():null};class db{constructor(a,b)
{var c=cb()||
S();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.random
();this.taskId=this.slotId=void 0}};const T=m.performance,eb=!!
(T&&T.mark&&T.measure&&T.clearMarks),U=function(a){let b=!1,c;return function(){b||
(c=a(),b=!0);return c}}(()=>{var a;if(a=eb){var b;if(null===R)
{R="";try{a="";try{a=m.top.location.hash}catch(c)
{a=m.location.hash}a&&(R=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c)
{}}b=R;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});function fb(a)
{a&&T&&U()&&(T.clearMarks(`goog_${a.label}_$
{a.uniqueId}_start`),T.clearMarks(`goog_${a.label}_${a.uniqueId}_end`))}
class gb{constructor(){var a=window;this.i=[];this.j=a||m;let
b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||
[],this.i=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.g=U()||
(null!=b?b:1>Math.random())}start(a,b){if(!this.g)return null;a=new
db(a,b);b=`goog_${a.label}_${a.uniqueId}_start`;T&&U()&&T.mark(b);return a}end(a)
{if(this.g&&"number"===typeof a.value){a.duration=(cb()||S())-a.value;var b=`goog_$
{a.label}_${a.uniqueId}_end`;T&&U()&&T.mark(b);!this.g||2048<
this.i.length||this.i.push(a)}}};function hb(a){let b=a.toString();a.name&&-
1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=":
"+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);let
d;for(;a!=d;)d=a,a=a.replace(RegExp("((https?:/..*/)[^/:]*:\\d+(?:.|\n)*)\\
2"),"$1");b=a.replace(RegExp("\n *","g"),"\n")}catch(d){b=c}}return b}
function ib(a,b,c){let d,e;try{a.i&&a.i.g?
(e=a.i.start(b.toString(),3),d=c(),a.i.end(e)):d=c()}catch(f){c=!
0;try{fb(e),c=a.m(b,new Na(f,{message:hb(f)}),void 0,void 0)}catch(g)
{a.C(217,g)}if(c)window.console?.error?.(f);else throw f;}return d}function jb(a,b)
{var c=V;return(...d)=>ib(c,a,()=>b.apply(void 0,d))}function kb(a){var
b=V;a.catch(c=>{c=c?c:"unknown rejection";b.C(967,c instanceof Error?
c:Error(c),void 0,b.g||void 0)})}
class lb{constructor(a=null){this.j=P;this.g=null;this.m=this.C;this.i=a;this.l=!
1}pinger(){return this.j}C(a,b,c,d,e){e=e||"jserror";let f;try{const x=new Za;var
g=x;g.g.push(1);g.i[1]=O("context",a);b.error&&b.meta&&b.id||(b=new Na(b,
{message:hb(b)}));if(b.msg){g=x;var
k=b.msg.substring(0,512);g.g.push(2);g.i[2]=O("msg",k)}var l=b.meta||
{};b=l;if(this.g)try{this.g(b)}catch(y){}if(d)try{d(b)}catch(y)
{}d=x;l=[l];d.g.push(3);d.i[3]=l;d=m;l=[];let aa;b=null;do{var h=d;try{var
w;if(w=!!h&&null!=h.location.href)b:{try{la(h.foo);
w=!0;break b}catch(y){}w=!1}var F=w}catch{F=!1}F?
(aa=h.location.href,b=h.document&&h.document.referrer||null):
(aa=b,b=null);l.push(new Ua(aa||""));try{d=h.parent}catch(y){d=null}}while(d&&h!
=d);for(let y=0,Oa=l.length-1;y<=Oa;++y)l[y].depth=Oa-
y;h=m;if(h.location&&h.location.ancestorOrigins&&h.location.ancestorOrigins.length=
=l.length-1)for(F=1;F<l.length;++F){var G=l[F];G.url||
(G.url=h.location.ancestorOrigins[F-1]||"",G.W=!0)}var z=l;let qa=new
Ua(m.location.href,!1);h=null;const ra=z.length-1;
for(G=ra;0<=G;--G){var A=z[G];!h&&Sa.test(A.url)&&(h=A);if(A.url&&!A.W)
{qa=A;break}}A=null;const Cb=z.length&&z[ra].url;0!=qa.depth&&Cb&&(A=z[ra]);f=new
Ta(qa,A);if(f.i){z=x;var H=f.i.url||"";z.g.push(4);z.i[4]=O("top",H)}var
sa={url:f.g.url||""};if(f.g.url){var
ta=f.g.url.match(Da),Q=ta[1],Pa=ta[3],Qa=ta[4];H="";Q&&(H+=Q+":");Pa&&(H+="//",H+=P
a,Qa&&(H+=":"+Qa));var Ra=H}else Ra="";Q=x;sa=[sa,
{url:Ra}];Q.g.push(5);Q.i[5]=sa;ab(this.j,e,x,this.l,c)}catch(x){try{ab(this.j,e,
{context:"ecmserr",rctx:a,
msg:hb(x),url:f&&f.g.url},this.l,c)}catch(aa){}}return!0}};class mb{};let P,V;const
W=new gb;var nb=()=>{window.google_measure_js_timing||(W.g=!1,W.i!
=W.j.google_js_reporting_queue&&(U()&&Array.prototype.forEach.call(W.i,fb,void
0),W.i.length=0))};(a=>{P=a??new bb;"number"!==typeof
window.google_srt&&(window.google_srt=Math.random());$a();V=new lb(W);V.g=b=>{const
c=Ka;0!==c&&(b.jc=String(c),b.shv=La(c))};V.l=!
0;"complete"==window.document.readyState?nb():W.g&&L(window,"load",()=>{nb()})})();
var X=(a,b)=>jb(a,b),ob=(a,b,c)=>{var d=mb;var e="V";d.V&&d.hasOwnProperty(e)||
(e=new d,d.V=e);d=[];!b.eid&&d.length&&(b.eid=d.toString());ab(P,a,b,!0,c)};class
pb{constructor(){this.promise=new Promise(a=>{this.resolve=a})}};function qb(a,b)
{b.google_llp||(b.google_llp={});b=b.google_llp;let c=b[a];if(c)return c;const
{promise:d,resolve:e}=new pb;c={promise:d,resolve:e};return b[a]=c};async function
rb(){return qb(10,m).promise};function Y(a,b,c={})
{c.msg_type=b;c.googMsgType="sth";b=JSON.stringify(c);a.parent.postMessage(b,"*")}f
unction sb(a){if(a.G||E(a.i,2))return!0;let b=!0;const
c=tb(a);c&&(b=36E5<=c);if(b)try{a.g.localStorage.removeItem("LAST_INTERSTITIAL_TIME
")}catch(d){}return b}function Z(a,b,c)
{I(a.i,3)&&(b.qid=I(a.i,3));I(a.i,10)&&(b.eid=I(a.i,10));b.rtype=C(a.i);b.req=K.loc
ation.href;ob(a.O(),b,c)}
function tb(a){try{const
b=+a.g.localStorage.getItem("LAST_INTERSTITIAL_TIME"),c=Date.now();if(b&&b<c)return
c-b}catch(b){}return null}function ub(a){if(!E(a.i,27)){var
b=D(B(a.i,26),0),c=()=>{for(const d of
a.o.document.getElementsByClassName("GoogleActiveViewElement"))d.removeAttribute("d
ata-google-av-dm")};0<b?setTimeout(()=>c(),b):c();Z(a,{isfsapi:!!a.j,avp:S()-
a.X},.01)}}
var vb=class{constructor(a,b,c){this.g=K;this.o=a;this.u=!
1;this.A=null;this.m=0;this.i=b;this.X=S();this.G=E(this.i,11)||10===C(this.i)||
11===C(this.i);this.j=c;c?.enableCustomCloseButton()}O(){}D(){(this.u=sb(this))?
(this.J(),I(this.i,1)&&this.g.parent.postMessage(I(this.i,1),"*")):this.j?.notifyEr
ror("freq_cap")}v(){if(!this.m)
{this.A&&M(this.g,"storage",this.A);this.m=Date.now();if(!E(this.i,2)&&!
this.G)try{this.g.localStorage.setItem("LAST_INTERSTITIAL_TIME",""+this.m)}catch(b)
{}this.U();if(this.o){var a=
this.g.document.createEvent("Event");a.initEvent("i-creative-view",!0,!
1);this.o.dispatchEvent(a);a=this.g.document.createEvent("Event");a.initEvent("onsh
ow",!0,!1);this.g.dispatchEvent(a)}}}H(){}J(){let a=!1;if(this.j){const
b=this.j.waitForOnShow().then(()=>{this.v();ub(this)});kb(b);this.j.listenToBackBut
ton(()=>{this.H()})}else this.g.IntersectionObserver&&.01<D(va(this.i),0)&&(a=!0,
(new this.g.IntersectionObserver((b,c)=>{b.forEach(d=>{0>=d.intersectionRatio||
(this.v(),ub(this),c.disconnect())})},
{threshold:D(va(this.i),0)})).observe(this.g.document.documentElement));L(this.g,"m
essage",X(262,b=>{a:{var c=a;if(b&&(this.g.parent==b.source||
this.g.parent.parent==b.source)){var d={};try{d=this.g.JSON.parse(b.data)}catch(e)
{b=void 0;break a}switch(d?.msg_type){case "i-view":this.u&&!c&&this.v();Z(this,
{type:"viewmsg",has_iobs:!!this.g.IntersectionObserver});break;case "r-back-
button":null==this.j&&this.H()}}b=void 0}return b}));this.G||(this.A=X(263,
()=>{this.u=sb(this);if(!this.u){var b={i_tslv:tb(this)};
Y(this.g,"i-no",b)}}),L(this.g,"storage",this.A));this.j||Y(this.g,"i-adframe-
load")}U(a){let b;try{const c=Ca(this.o);c.vv?c.vv():b=!0}catch(c){V.C(533,c,void
0,void 0);return}a=a||1;b?(Z(this,{vf:a}),3<=a||
this.g.setTimeout(n(vb.prototype.U,this,a+1),3E3)):1<a&&Z(this,{vs:a})}};function
wb(a)
{window.parent.postMessage(JSON.stringify({type:"rewarded",message:a}),"*")};var
xb=a=>{a=a.document;let b={};a&&(b="CSS1Compat"==a.compatMode?
a.documentElement:a.body);return b||{}};function yb(a,b,c){ob("jserror",
{context:"iaf::itf",req:K.location.href,db:a?1:0,ls:b?
1:0,eid:I(c,10),qid:I(c,3),rtype:C(c)},.5)}function zb(a,b)
{Ab(a,b)&&(a.l.style.background="rgba(192,192,192, .3)",m.setTimeout(()=>{a.l.style
.background="transparent";a.dismiss(2)},750))}function Bb(a,b)
{b.some(c=>"intervention"===c.type&&"HeavyAdIntervention"===c.body?.id)&&(Z(a,
{hai:"1"},1),a.m?a.dismiss(8):a.j?a.j.notifyError("heavy_ads"):Y(a.g,"i_iif"))}
function Db(a){const b=X(259,n(function(){Y(this.g,"i-
blur");M(this.g,"blur",b)},a));L(a.g,"blur",b)}function Eb(a){a.s||0===a.m||
(a.l.setAttribute("aria-
label",I(a.i,7)),a.l.setAttribute("role","button"),a.l.setAttribute("tabindex","0")
,a.l.focus())}function Fb(a,b){E(a.i,15)?(wb("canceled"),wb("closed")):a.j?
a.j.closeAd():Y(a.g,b)}
function Gb(a,b){const
c=a.g.document.getElementById("creative");a.g.goog_vignette_survey&&(a.g.goog_vigne
tte_survey.display(c,()=>{a.dismiss(3)},()=>{},1),b&&b.stopPropagation())}function
Hb(a){!
1===a.s&&a.enableDismissListeners();a.T&&L(a.T,"click",X(261,c=>Gb(a,c)));const
b=a.g.document.getElementById("card");b&&b.addEventListener("click",X(909,c=>{c?.st
opPropagation()}))}
function Ib(a){L(a.g,"resize",()=>{var b=a.g;b=b.innerHeight>=b.innerWidth?1:2;a.I?
(a.I=!1,a.L=2===b):(a.L?1===b:2===b)&&a.dismiss(4)})}function Jb(a)
{a.g.addEventListener("message",b=>{if(b.source===a.o)try{const
c=JSON.parse(b.data);"rewarded"===c.type&&"closed"===c.message&&a.dismiss(11===C(a.
i)?6:1)}catch(c){}})}
function Ab(a,b){if(!b)return!0;if((b.preventDefault?b.defaultPrevented:!
1===b.returnValue)||b.target&&b.target.ownerDocument==a.o.document)return!
1;for(a=b.target;a;){if("creative"==a.id)return!1;a=a.parentElement}return!0}
var Kb=class extends vb{constructor(a,b,c,d,e)
{super(a,d,e);this.l=b;this.T=c;this.M=0;this.R=X(260,f=>{this.dismiss(1);f&&f.stop
Propagation()});this.P=f=>zb(this,f);this.K=[];this.F=[];this.s=!
1;this.N=()=>{};this.I=this.L=!1;this.B=null}D(){super.D();
(this.B=this.g.ReportingObserver?new
this.g.ReportingObserver((a,b)=>{Bb(this,a)&&b.disconnect()},{buffered:!
0}):null)&&L(this.g,"pagehide",
()=>{Bb(this,this.B.takeRecords());this.B.disconnect()})}O(){return"ia_evt"}H()
{this.s?this.N():this.dismiss(9)}addViewListener(a){a=
jb(483,a);this.m?a():this.K.push(a)}addDismissListener(a)
{this.F.push(jb(484,a))}disableDismissListeners(a){this.s=!
0;this.N=a;M(this.l,"click",this.R);M(this.g.document,"click",this.P)}enableDismiss
Listeners(){this.s=!
1;L(this.l,"click",this.R);L(this.g.document,"click",this.P);Eb(this)}dismiss(a)
{document.body.setAttribute("aria-hidden","true");Z(this,{ttd:Date.now()-
this.m,req:K.location.href,pda:this.M,ds:a,idrw:E(this.i,15)?1:0});this.M++||
Db(this);let b=0;for(let d=0;d<this.F.length;d++)b=Math.max(b,
this.F[d]());b=Math.min(b,1E3);let c="i-dismiss";6===a?c="r-dismiss-before-
reward":7===a&&(c="r-dismiss-after-reward");0===b?
Fb(this,c):m.setTimeout(()=>Fb(this,c),b)}J(){super.J();Hb(this)}v(){super.v();var
a=this.g;this.L=2===(a.innerHeight>=a.innerWidth?
1:2);this.I=0===this.g.innerWidth&&0===this.g.innerHeight;Ib(this);Eb(this);var
b=this.l.getBoundingClientRect(),c=b.bottom,d=b.right;a=xb(this.g).clientHeight;var
e=xb(this.g).clientWidth,f=Math.floor(c-a);const g=Math.floor(d-e);if(0<=f||5<g)c-=
b.top,d-=b.left,b=this.g,Z(this,{dhb:f>=c?1:0,dhr:g>=d?
1:0,h:a,w:e,bh:c,bw:d,opb:f,opr:g,pt:b.innerHeight>=b.innerWidth?
1:0,req:this.g.location.href});document.getElementById("ad_iframe").contentWindow.p
ostMessage(JSON.stringify({type:"rewarded",message:"visible"}),"*");for(a=0;a<this.
K.length;a++)this.K[a]();Jb(this);if(!(.01<Math.random()))
{a=Ma(24,document.currentScript);a=`https://${a&&"true"===a.getAttribute("data-jc-
rcd")?"pagead2.googlesyndication-cn.com":"pagead2.googlesyndication.com"}/pagead/
gen_204?id=jca&jc=${24}&version=${La(24)}&sample=${.01}`;
e=window;if(f=e.navigator)f=e.navigator.userAgent,f=/Chrome/.test(f)&&!/
Edge/.test(f)?!0:!1;f&&e.navigator.sendBeacon?e.navigator.sendBeacon(a):Ia(e,a,void
0,!1)}a=this.g.navigator?!0===this.g.navigator.standalone:!
1;e=window.matchMedia("(display-mode: standalone)").matches;Z(this,{wapp:a||
e})}};Ka=24;const Lb=Ma(24,document.currentScript);if(null==Lb)throw Error("JSC not
found 24");const Mb={},Nb=Lb.attributes;for(let a=Nb.length-1;0<=a;a--){const
b=Nb[a].name;0===b.indexOf("data-jcp-")&&(Mb[b.substring(9)]=Nb[a].value)}
(async function(a){const b=Ba(a.config),c=X(258,async()=>{var
d=null;E(b,25)&&(d=await rb());{var
e=document.getElementById("ad_iframe").contentWindow;var f=K.document;const
g=e.document,k=D(B(b,5),0),l=0===k||2===k?
g.getElementById(I(b,6)):f.getElementById(I(b,6));f=0===k?
g.getElementById(I(b,8)):f.getElementById(I(b,8));let h;try{h=!!
K.localStorage}catch(w){}l?(h||yb(l,h,b),e=new Kb(e,l,f,b,d),e.D()):(yb(l,h,b),d?
d.notifyError("no_dismiss_button"):Y(K,"i_iif"),e=null)}window.interstitialAdFrame=
e;qb(9,window).resolve(e)});0===D(B(b,5),0)||2===D(B(b,5),0)||E(b,16)?
(a=document.getElementById("ad_iframe"),null!=a.contentDocument?
Ga(a.contentDocument,()=>void
c()):document.getElementById("ad_iframe").addEventListener("load",c)):c()})
(Mb);}).call(this);

You might also like