updating lib
parent
56251916aa
commit
bc0393e932
|
@ -48,8 +48,8 @@ b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(c in R?R[c]:R[
|
|||
c.keyCode||void 0!=c.returnValue)){t:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;!d.I&&0<=k;k--)d.currentTarget=c[k],e&=Dc(c[k],f,!0,d);for(k=0;!d.I&&k<c.length;k++)d.currentTarget=c[k],e&=Dc(c[k],f,!1,d)}return e}return Cc(a,new mc(b,this))},wc=function(a){a=a[rc];return a instanceof Q?a:null},Ec="__closure_events_fn_"+(1E9*Math.random()>>>0),uc=function(a){y(a,
|
||||
"Listener can not be null.");if("function"==m(a))return a;y(a.handleEvent,"An object listener must have handleEvent method.");return a[Ec]||(a[Ec]=function(b){return a.handleEvent(b)})};var S=function(){this.p=new Q(this);this.vb=this};w(S,fc);S.prototype[cc]=!0;g=S.prototype;g.ya=null;g.addEventListener=function(a,b,c,d){tc(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){Ac(this,a,b,c,d)};
|
||||
g.dispatchEvent=function(a){Fc(this);var b,c=this.ya;if(c){b=[];for(var d=1;c;c=c.ya)b.push(c),y(1E3>++d,"infinite loop")}c=this.vb;d=a.type||a;if(p(a))a=new P(a,c);else if(a instanceof P)a.target=a.target||c;else{var e=a;a=new P(d,c);Ia(a,e)}var e=!0,f;if(b)for(var h=b.length-1;!a.I&&0<=h;h--)f=a.currentTarget=b[h],e=Gc(f,d,!0,a)&&e;a.I||(f=a.currentTarget=c,e=Gc(f,d,!0,a)&&e,a.I||(e=Gc(f,d,!1,a)&&e));if(b)for(h=0;!a.I&&h<b.length;h++)f=a.currentTarget=b[h],e=Gc(f,d,!1,a)&&e;return e};
|
||||
g.j=function(){S.K.j.call(this);this.p&&this.p.removeAll(void 0);this.ya=null};g.listen=function(a,b,c,d){Fc(this);return this.p.add(a,b,!1,c,d)};g.na=function(a,b,c,d){return this.p.add(a,b,!0,c,d)};g.Ba=function(a,b,c,d){return this.p.remove(a,b,c,d)};var Gc=function(a,b,c,d){b=a.p.h[b];if(!b)return!0;b=Aa(b);for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var k=h.H,u=h.ka||h.src;h.ia&&qc(a.p,h);e=!1!==k.call(u,d)&&e}}return e&&!1!=d.La};
|
||||
S.prototype.U=function(a,b,c,d){return this.p.U(a,b,c,d)};var Fc=function(a){y(a.p,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Ic=function(a){return Hc(a||arguments.callee.caller,[])},Hc=function(a,b){var c=[];if(0<=ta(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(Jc(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=Jc(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");
|
||||
g.j=function(){S.K.j.call(this);this.p&&this.p.removeAll(void 0);this.ya=null};g.listen=function(a,b,c,d){Fc(this);return this.p.add(String(a),b,!1,c,d)};g.na=function(a,b,c,d){return this.p.add(String(a),b,!0,c,d)};g.Ba=function(a,b,c,d){return this.p.remove(String(a),b,c,d)};var Gc=function(a,b,c,d){b=a.p.h[String(b)];if(!b)return!0;b=Aa(b);for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.removed&&h.capture==c){var k=h.H,u=h.ka||h.src;h.ia&&qc(a.p,h);e=!1!==k.call(u,d)&&e}}return e&&!1!=d.La};
|
||||
S.prototype.U=function(a,b,c,d){return this.p.U(String(a),b,c,d)};var Fc=function(a){y(a.p,"Event target is not initialized. Did you call the superclass (goog.events.EventTarget) constructor?")};var Ic=function(a){return Hc(a||arguments.callee.caller,[])},Hc=function(a,b){var c=[];if(0<=ta(b,a))c.push("[...circular reference...]");else if(a&&50>b.length){c.push(Jc(a)+"(");for(var d=a.arguments,e=0;e<d.length;e++){0<e&&c.push(", ");var f;f=d[e];switch(typeof f){case "object":f=f?"object":"null";break;case "string":break;case "number":f=String(f);break;case "boolean":f=f?"true":"false";break;case "function":f=(f=Jc(f))?f:"[fn]";break;default:f=typeof f}40<f.length&&(f=f.substr(0,40)+"...");
|
||||
c.push(f)}b.push(a);c.push(")\n");try{c.push(Hc(a.caller,b))}catch(h){c.push("[exception trying to get caller]\n")}}else a?c.push("[...long stack...]"):c.push("[end]");return c.join("")},Jc=function(a){if(Kc[a])return Kc[a];a=String(a);if(!Kc[a]){var b=/function ([^\(]+)/.exec(a);Kc[a]=b?b[1]:"[Anonymous]"}return Kc[a]},Kc={};var T=function(a,b,c,d,e){this.reset(a,b,c,d,e)};T.prototype.Va=null;T.prototype.Ua=null;var Lc=0;T.prototype.reset=function(a,b,c,d,e){"number"==typeof e||Lc++;d||s();this.X=a;this.yb=b;delete this.Va;delete this.Ua};T.prototype.$a=function(a){this.X=a};T.prototype.getMessage=function(){return this.yb};var U=function(a){this.Ab=a};U.prototype.v=null;U.prototype.X=null;U.prototype.Ca=null;U.prototype.bb=null;var Mc=function(a,b){this.name=a;this.value=b};Mc.prototype.toString=function(){return this.name};var Nc=new Mc("SEVERE",1E3),Oc=new Mc("WARNING",900),Pc=new Mc("CONFIG",700),Qc=new Mc("FINE",500);U.prototype.getParent=function(){return this.v};U.prototype.getChildren=function(){this.Ca||(this.Ca={});return this.Ca};U.prototype.$a=function(a){this.X=a};
|
||||
var Rc=function(a){if(a.X)return a.X;if(a.v)return Rc(a.v);sa("Root logger has no level set.");return null};U.prototype.log=function(a,b,c){if(a.value>=Rc(this).value)for(a=this.Db(a,b,c),b="log:"+a.getMessage(),l.console&&(l.console.timeStamp?l.console.timeStamp(b):l.console.markTimeline&&l.console.markTimeline(b)),l.msWriteProfilerMark&&l.msWriteProfilerMark(b),b=this;b;){c=b;var d=a;if(c.bb)for(var e=0,f=void 0;f=c.bb[e];e++)f(d);b=b.getParent()}};
|
||||
U.prototype.Db=function(a,b,c){var d=new T(a,String(b),this.Ab);if(c){d.Va=c;var e;var f=arguments.callee.caller;try{var h;var k=ba("window.location.href");if(p(c))h={message:c,name:"Unknown error",lineNumber:"Not available",fileName:k,stack:"Not available"};else{var u,G,q=!1;try{u=c.lineNumber||c.Pb||"Not available"}catch(v){u="Not available",q=!0}try{G=c.fileName||c.filename||c.sourceURL||l.$googDebugFname||k}catch(Ta){G="Not available",q=!0}h=!q&&c.lineNumber&&c.fileName&&c.stack&&c.message&&c.name?
|
||||
|
@ -68,8 +68,8 @@ var pd=function(a){if(a.t&&"undefined"!=typeof aa)if(a.Z[1]&&4==qd(a)&&2==sd(a))
|
|||
null);fa(a.aa)&&(l.clearTimeout(a.aa),a.aa=null)},qd=function(a){return a.a?a.a.readyState:0},sd=function(a){try{return 2<qd(a)?a.a.status:-1}catch(b){return(a=a.k)&&a.log(Oc,"Can not get status: "+b.message,void 0),-1}},X=function(a,b){return b+" ["+a.Da+" "+a.$+" "+sd(a)+"]"};var td=function(a,b,c){this.o=a||null;this.zb=!!c},Z=function(a){if(!a.c&&(a.c=new F,a.g=0,a.o))for(var b=a.o.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=decodeURIComponent(e.replace(/\+/g," "));e=Y(a,e);a.add(e,f?decodeURIComponent(f.replace(/\+/g," ")):"")}};g=td.prototype;g.c=null;g.g=null;g.add=function(a,b){Z(this);this.o=null;a=Y(this,a);var c=this.c.get(a);c||this.c.set(a,c=[]);c.push(b);this.g++;return this};
|
||||
g.remove=function(a){Z(this);a=Y(this,a);return this.c.T(a)?(this.o=null,this.g-=this.c.get(a).length,this.c.remove(a)):!1};g.T=function(a){Z(this);a=Y(this,a);return this.c.T(a)};g.A=function(){Z(this);for(var a=this.c.r(),b=this.c.A(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};g.r=function(a){Z(this);var b=[];if(p(a))this.T(a)&&(b=za(b,this.c.get(Y(this,a))));else{a=this.c.r();for(var c=0;c<a.length;c++)b=za(b,a[c])}return b};
|
||||
g.set=function(a,b){Z(this);this.o=null;a=Y(this,a);this.T(a)&&(this.g-=this.c.get(a).length);this.c.set(a,[b]);this.g++;return this};g.get=function(a,b){var c=a?this.r(a):[];return 0<c.length?String(c[0]):b};g.toString=function(){if(this.o)return this.o;if(!this.c)return"";for(var a=[],b=this.c.A(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.r(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}return this.o=a.join("&")};
|
||||
g.w=function(){var a=new td;a.o=this.o;this.c&&(a.c=this.c.w(),a.g=this.g);return a};var Y=function(a,b){var c=String(b);a.zb&&(c=c.toLowerCase());return c};var ud=function(a,b){this.ub=a;this.Ra=b};ud.prototype.send=function(a,b){if(jc&&!navigator.onLine)return tb();var c=new I,d=vd(a,b);d.length>this.Ra?c.G({status:"payload-too-big",oa:ub("Encoded hit length == %s, but should be <= %s.",d.length,this.Ra)}):kd(this.ub,function(){c.F(Zb)},d);return c};var vd=function(a,b){var c=new td;c.add(fb.name,a);xb(b,function(a,b){c.add(a.name,b.toString())});return c.toString()};var wd=function(a){this.za=a;this.b={}};w(wd,fc);var xd=[];g=wd.prototype;g.listen=function(a,b,c,d,e){n(b)||(xd[0]=b,b=xd);for(var f=0;f<b.length;f++){var h=tc(a,b[f],c||this,d||!1,e||this.za||this);if(!h)break;this.b[h.key]=h}return this};g.na=function(a,b,c,d,e){if(n(b))for(var f=0;f<b.length;f++)this.na(a,b[f],c,d,e);else{a=zc(a,b,c||this,d,e||this.za||this);if(!a)return this;this.b[a.key]=a}return this};
|
||||
g.Ba=function(a,b,c,d,e){if(n(b))for(var f=0;f<b.length;f++)this.Ba(a,b[f],c,d,e);else e=e||this.za||this,c=uc(c||this),d=!!d,b=dc(a)?a.U(b,c,d,e):a?(a=wc(a))?a.U(b,c,d,e):null:null,b&&(Bc(b),delete this.b[b.key]);return this};g.removeAll=function(){Da(this.b,Bc);this.b={}};g.j=function(){wd.K.j.call(this);this.removeAll()};g.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var $=function(){S.call(this);this.ja=new wd(this);jc&&(kc?this.ja.listen(lc?document.body:window,["online","offline"],this.Oa):(this.Pa=jc?navigator.onLine:!0,this.e=new Vc(250),this.ja.listen(this.e,"tick",this.sb),this.e.start()))};w($,S);$.prototype.sb=function(){var a=jc?navigator.onLine:!0;a!=this.Pa&&(this.Pa=a,this.Oa())};$.prototype.Oa=function(){this.dispatchEvent((jc?navigator.onLine:1)?"online":"offline")};
|
||||
g.w=function(){var a=new td;a.o=this.o;this.c&&(a.c=this.c.w(),a.g=this.g);return a};var Y=function(a,b){var c=String(b);a.zb&&(c=c.toLowerCase());return c};var ud=function(a,b){this.ub=a;this.Ra=b};ud.prototype.send=function(a,b){if(jc&&!navigator.onLine)return tb();var c=new I,d=vd(a,b);d.length>this.Ra?c.G({status:"payload-too-big",oa:ub("Encoded hit length == %s, but should be <= %s.",d.length,this.Ra)}):kd(this.ub,function(){c.F(Zb)},d);return c};var vd=function(a,b){var c=new td;c.add(fb.name,a);xb(b,function(a,b){c.add(a.name,b.toString())});return c.toString()};var wd=function(a){this.za=a;this.b={}};w(wd,fc);var xd=[];g=wd.prototype;g.listen=function(a,b,c,d,e){n(b)||(xd[0]=b,b=xd);for(var f=0;f<b.length;f++){var h=tc(a,b[f],c||this.handleEvent,d||!1,e||this.za||this);if(!h)break;this.b[h.key]=h}return this};g.na=function(a,b,c,d,e){t:{if(n(b))for(var f=0;f<b.length;f++)this.na(a,b[f],c,d,e);else{a=zc(a,b,c||this.handleEvent,d,e||this.za||this);if(!a){a=this;break t}this.b[a.key]=a}a=this}return a};
|
||||
g.Ba=function(a,b,c,d,e){if(n(b))for(var f=0;f<b.length;f++)this.Ba(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.za||this,c=uc(c),d=!!d,b=dc(a)?a.U(b,c,d,e):a?(a=wc(a))?a.U(b,c,d,e):null:null,b&&(Bc(b),delete this.b[b.key]);return this};g.removeAll=function(){Da(this.b,Bc);this.b={}};g.j=function(){wd.K.j.call(this);this.removeAll()};g.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var $=function(){S.call(this);this.ja=new wd(this);jc&&(kc?this.ja.listen(lc?document.body:window,["online","offline"],this.Oa):(this.Pa=jc?navigator.onLine:!0,this.e=new Vc(250),this.ja.listen(this.e,"tick",this.sb),this.e.start()))};w($,S);$.prototype.sb=function(){var a=jc?navigator.onLine:!0;a!=this.Pa&&(this.Pa=a,this.Oa())};$.prototype.Oa=function(){this.dispatchEvent((jc?navigator.onLine:1)?"online":"offline")};
|
||||
$.prototype.j=function(){$.K.j.call(this);this.ja.la();this.ja=null;this.e&&(this.e.la(),this.e=null)};var yd=new F,zd=function(a){if(!eb){new $;var b=new Ub(new ud("https://www.google-analytics.com/collect",8192)),c=new ac;eb=new Sb(a,new bc(a,new $b(c,b)))}return eb};t("goog.async.Deferred",I);t("goog.async.Deferred.prototype.addCallback",I.prototype.Fb);t("analytics.getService",function(a){var b=yd.get(a,null);if(null===b){var b=chrome.runtime.getManifest().version,c;c=new Tb(chrome.storage.local,"google-analytics");y(null!==c);c=new O(c);b=new N("ca1",a,b,c,zd,Ob.Sa());yd.set(a,b)}return b});t("analytics.internal.ServiceChannel",N);t("analytics.internal.ServiceChannel.prototype.getTracker",N.prototype.Hb);
|
||||
t("analytics.internal.ServiceChannel.prototype.getConfig",N.prototype.Gb);t("analytics.internal.ServiceSettings",O);t("analytics.internal.ServiceSettings.prototype.setTrackingPermitted",O.prototype.Nb);t("analytics.internal.ServiceSettings.prototype.isTrackingPermitted",O.prototype.Ta);t("analytics.internal.ServiceSettings.prototype.setSampleRate",O.prototype.Mb);t("analytics.internal.ServiceTracker",M);t("analytics.internal.ServiceTracker.prototype.send",M.prototype.send);
|
||||
t("analytics.internal.ServiceTracker.prototype.sendAppView",M.prototype.Ib);t("analytics.internal.ServiceTracker.prototype.sendEvent",M.prototype.Jb);t("analytics.internal.ServiceTracker.prototype.sendSocial",M.prototype.Lb);t("analytics.internal.ServiceTracker.prototype.sendException",M.prototype.Kb);t("analytics.HitTypes.APPVIEW","appview");t("analytics.HitTypes.EVENT","event");t("analytics.HitTypes.SOCIAL","social");t("analytics.HitTypes.TRANSACTION","transaction");
|
||||
|
|
Loading…
Reference in New Issue