0% found this document useful (0 votes)
24 views3 pages

F

The document defines functions and variables for handling errors and logging events in JavaScript. It establishes an error logging object and methods for collecting context about where errors occurred and sending log data to the server. On error events, it will execute callbacks to process error details and log them.
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)
24 views3 pages

F

The document defines functions and variables for handling errors and logging events in JavaScript. It establishes an error logging object and methods for collecting context about where errors occurred and sending log data to the server. On error events, it will execute callbacks to process error details and log them.
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/ 3

(function(){/*

Copyright The Closure Library Authors.


SPDX-License-Identifier: Apache-2.0
*/
var n=this||self;var aa=Array.prototype.forEach?function(a,b)
{Array.prototype.forEach.call(a,b,void 0)}:function(a,b){for(var
c=a.length,d="string"===typeof a?a.split(""):a,e=0;e<c;e++)e in d&&b.call(void
0,d[e],e,a)};function p(a){p[" "](a);return a}p[" "]=function(){};var
q="function"===typeof Symbol&&"symbol"===typeof Symbol()?Symbol(void 0):void 0;var
t=Object,ba=t.freeze;var v=[];Array.isArray(v)&&!Object.isFrozen(v)&&(q?v[q]|
=1:void 0!==v.g?v.g|=1:Object.defineProperties(v,{g:{value:1,configurable:!
0,writable:!0,enumerable:!1}}));ba.call(t,v);var w="constructor hasOwnProperty
isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split("
");function ca(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in
d)a[c]=d[c];for(var g=0;g<w.length;g+
+)c=w[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};/*

SPDX-License-Identifier: Apache-2.0
*/
function da(a){var b=y;b.addEventListener&&b.addEventListener("load",a,!1)};var
ea=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?
=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function z(a){try{var
b;if(b=!!a&&null!=a.location.href)a:{try{p(a.foo);b=!0;break a}catch(c){}b=!
1}return b}catch(c){return!1}}function A(a,b){if(a)for(var c in
a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};function
B(a,b){a.google_image_requests||(a.google_image_requests=[]);var
c=a.document;c=void 0===c?document:c;var d="IMG";var
e;"application/xhtml+xml"===(null==(e=c)?void
0:e.contentType)&&(d=d.toLowerCase());c=c.createElement(d);c.src=b;a.google_image_r
equests.push(c)}function ka(){var
a="https://pagead2.googlesyndication.com/pagead/gen_204?
id=badpubwin";A({stack:Error().stack},function(b,c)
{b&&(a+="&"+c+"="+encodeURIComponent(b))});la(a)}
function la(a){var b=window;b.fetch?b.fetch(a,{keepalive:!
0,credentials:"include",redirect:"follow",method:"get",mode:"no-cors"}):B(b,a)};var
C=0;function D(a){var b=document.currentScript;return(b=void 0===b?
null:b)&&b.getAttribute("data-jc")===String(a)?b:document.querySelector('[data-
jc="'+a+'"]')};var F=document,ma=window;var G=!!
window.google_async_iframe_id,H=G&&window.parent||window;function I(a,b){var c=void
0===c?
{}:c;this.error=a;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jser
ror";this.meta=c};var na=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)
(\\?|/|$)");function oa(a,b){this.g=a;this.h=b}function J(a,b){this.url=a;this.j=!!
b;this.depth=null};function K(){this.i="&";this.h={};this.l=0;this.g=[]}function
L(a,b){var c={};c[a]=b;return[c]}function M(a,b,c,d,e){var g=[];A(a,function(f,h)
{(f=pa(f,b,c,d,e))&&g.push(h+"="+f)});return g.join(b)}
function pa(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){for(var
g=[],f=0;f<a.length;f++)g.push(pa(a[f],b,c,d+1,e));return g.join(c[d])}}else
if("object"==typeof a)return e=e||0,2>e?
encodeURIComponent(M(a,b,c,d,e+1)):"...";return encodeURIComponent(String(a))}
function qa(a,b){b+="//pagead2.googlesyndication.com/pagead/gen_204?
id=jserror&";var c=ra(a)-27;if(0>c)return"";a.g.sort(function(m,x){return m-
x});for(var d=null,e="",g=0;g<a.g.length;g++)for(var
f=a.g[g],h=a.h[f],k=0;k<h.length;k++){if(!c){d=null==d?f:d;break}var
l=M(h[k],a.i,",$");if(l){l=e+l;if(c>=l.length){c-
=l.length;b+=l;e=a.i;break}d=null==d?f:d}}a="";null!=d&&(a=e+"trn="+d);return
b+a}function ra(a){var b=1,c;for(c in a.h)b=c.length>b?c.length:b;return 3997-b-
a.i.length-1};function sa(){var a=void 0===a?
ma:a;this.h="http:"===a.location.protocol?"http:":"https:";this.g=Math.random()}fun
ction ta(){var a=P,b=y.google_srt;0<=b&&1>=b&&(a.g=b)}function ua(a,b,c){if(1>(c?
a.g:Math.random()))try{if(b instanceof K)var d=b;else d=new K,A(b,function(g,f){var
h=d,k=h.l++;g=L(f,g);h.g.push(k);h.h[k]=g});var e=qa(d,a.h);e&&B(n,e)}catch(g)
{}};var Q=null;function va(){var a=n.performance;return a&&a.now&&a.timing?
Math.floor(a.now()+a.timing.navigationStart):Date.now()}function wa(){var a=void
0===a?n:a;return(a=a.performance)&&a.now?a.now():null};function xa(a,b){var
c=wa()||
va();this.label=a;this.type=b;this.value=c;this.duration=0;this.uniqueId=Math.rando
m();this.slotId=void 0};var R=n.performance,ya=!!
(R&&R.mark&&R.measure&&R.clearMarks),S=function(a){var b=!1,c;return function(){b||
(c=a(),b=!0);return c}}(function(){var a;if(a=ya){var b;if(null===Q)
{Q="";try{a="";try{a=n.top.location.hash}catch(c)
{a=n.location.hash}a&&(Q=(b=a.match(/\bdeid=([\d,]+)/))?b[1]:"")}catch(c)
{}}b=Q;a=!!b.indexOf&&0<=b.indexOf("1337")}return a});
function T(){var a=y;this.g=[];this.i=a||n;var
b=null;a&&(a.google_js_reporting_queue=a.google_js_reporting_queue||
[],this.g=a.google_js_reporting_queue,b=a.google_measure_js_timing);this.h=S()||
(null!=b?b:1>Math.random())}function za(a)
{a&&R&&S()&&(R.clearMarks("goog_"+a.label+"_"+a.uniqueId+"_start"),R.clearMarks("go
og_"+a.label+"_"+a.uniqueId+"_end"))}T.prototype.start=function(a,b){if(!
this.h)return null;a=new
xa(a,b);b="goog_"+a.label+"_"+a.uniqueId+"_start";R&&S()&&R.mark(b);return a};
T.prototype.end=function(a){if(this.h&&"number"===typeof a.value)
{a.duration=(wa()||va())-a.value;var
b="goog_"+a.label+"_"+a.uniqueId+"_end";R&&S()&&R.mark(b);!this.h||
2048<this.g.length||this.g.push(a)}};function Aa(){this.i=P;this.g=null;this.h=!
1}function U(a){var 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;try{-1==a.indexOf(b)&&(a=b+"\n"+a);for(var
c;a!=c;)c=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+
(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(d){}}return b};var P,V;if(G&&!
z(H)){.01>Math.random()&&ka();var W="."+F.domain;try{for(;2<W.split(".").length&&!
z(H);)F.domain=W=W.substr(W.indexOf(".")+1),H=window.parent}catch(a){}z(H)||
(H=window)}var y=H,X=new T;function Ba(){y.google_measure_js_timing||(X.h=!1,X.g!
=X.i.google_js_reporting_queue&&(S()&&aa(X.g,za),X.g.length=0))}
(function(a){P=null!=a?a:new sa;"number"!==typeof
y.google_srt&&(y.google_srt=Math.random());ta();V=new Aa;V.g=function(b){var c=C;0!
==c&&(b.jc=String(c),c=(c=D(c))&&c.getAttribute("data-jc-
version")||"unknown",b.shv=c)};V.h=!0;"complete"==y.document.readyState?
Ba():X.h&&da(function(){Ba()})})();
function Ca(a,b){var c=a;a=V;try{var d=new
K;d.g.push(1);d.h[1]=L("context",535);c.error&&c.meta&&c.id||(c=new I(c,
{message:U(c)}));if(c.msg){var
e=c.msg.substring(0,512);d.g.push(2);d.h[2]=L("msg",e)}var g=c.meta||
{};if(a.g)try{a.g(g)}catch(E){}if(b)try{b(g)}catch(E)
{}b=[g];d.g.push(3);d.h[3]=b;e=n;b=[];g=null;do{var f=e;if(z(f)){var
h=f.location.href;g=f.document&&f.document.referrer||null}else
h=g,g=null;b.push(new J(h||""));try{e=f.parent}catch(E){e=null}}while(e&&f!
=e);h=0;for(var k=b.length-
1;h<=k;++h)b[h].depth=k-
h;f=n;if(f.location&&f.location.ancestorOrigins&&f.location.ancestorOrigins.length=
=b.length-1)for(k=1;k<b.length;++k){var l=b[k];l.url||
(l.url=f.location.ancestorOrigins[k-1]||"",l.j=!0)}var m=new J(n.location.href,!
1);f=null;var x=b.length-1;for(l=x;0<=l;--l){var r=b[l];!
f&&na.test(r.url)&&(f=r);if(r.url&&!r.j){m=r;break}}r=null;var
Ga=b.length&&b[x].url;0!=m.depth&&Ga&&(r=b[x]);var u=new oa(m,r);if(u.h){var
Ha=u.h.url||"";d.g.push(4);d.h[4]=L("top",Ha)}var N={url:u.g.url||
""};if(u.g.url){var
O=u.g.url.match(ea),fa=O[1],ha=O[3],ia=O[4];m="";fa&&(m+=fa+":");ha&&(m+="//",m+=ha
,ia&&(m+=":"+ia));var ja=m}else ja="";N=[N,
{url:ja}];d.g.push(5);d.h[5]=N;ua(a.i,d,a.h)}catch(E){try{ua(a.i,
{context:"ecmserr",rctx:535,msg:U(E),url:u&&u.g.url},a.h)}catch(Ja){}}};function
Da(a,b){var c="";b=b||{};b.error?c=U(b.error):c=b.message||"";Ca(new I(Error(c),
{message:c}),function(d){ca(d,a)})};C=29;var Ea=D(29);if(null==Ea)throw Error("JSC
not found 29");for(var Fa={},Y=Ea.attributes,Z=Y.length-1;0<=Z;Z--){var
Ia=Y[Z].name;0===Ia.indexOf("data-jcp-")&&(Fa[Ia.substring(9)]=Y[Z].value)}
(function(a){window.addEventListener("error",function(b){Da(a,b)})})
(Fa);}).call(this);

You might also like