78 lines
44 KiB
JavaScript
78 lines
44 KiB
JavaScript
(function() { var h,aa=aa||{},k=this,ba=function(){},ca=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&
|
|
!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},m=function(a){return"array"==ca(a)},da=function(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length},n=function(a){return"string"==typeof a},p=function(a){return"function"==ca(a)},ea=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b},fa=function(a,b,c){return a.call.apply(a.bind,arguments)},ga=function(a,b,c){if(!a)throw Error();
|
|
if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}},q=function(a,b,c){q=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?fa:ga;return q.apply(null,arguments)},ha=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);
|
|
return a.apply(this,b)}},r=Date.now||function(){return+new Date},s=function(a,b){var c=a.split("."),d=k;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d=d[e]?d[e]:d[e]={}:d[e]=b},t=function(a,b){function c(){}c.prototype=b.prototype;a.I=b.prototype;a.prototype=new c;a.oc=function(a,c,f){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}};
|
|
Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return q.apply(null,c)}return q(this,a)};var u=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,u);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};t(u,Error);u.prototype.name="CustomError";var ia=function(a,b){return a<b?-1:a>b?1:0};var v=Array.prototype,ja=v.indexOf?function(a,b,c){return v.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(n(a))return n(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},ka=v.forEach?function(a,b,c){v.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},la=v.some?function(a,b,c){return v.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=n(a)?a.split(""):
|
|
a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},na=function(a){var b;t:{b=ma;for(var c=a.length,d=n(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break t}b=-1}return 0>b?null:n(a)?a.charAt(b):a[b]},oa=function(a,b){var c=ja(a,b),d;(d=0<=c)&&v.splice.call(a,c,1);return d},pa=function(a){return v.concat.apply(v,arguments)};var qa="StopIteration"in k?k.StopIteration:Error("StopIteration"),ra=function(){};ra.prototype.next=function(){throw qa;};ra.prototype.$b=function(){return this};var sa=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)},ta=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b},ua=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b},va=function(a,b){var c;t:{for(c in a)if(b.call(void 0,a[c],c,a))break t;c=void 0}return c&&a[c]},wa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),xa=function(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 f=0;f<wa.length;f++)c=
|
|
wa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};var w=function(a,b){this.o={};this.b=[];this.fa=this.g=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.Ba(a)};w.prototype.q=function(){ya(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.o[this.b[b]]);return a};w.prototype.B=function(){ya(this);return this.b.concat()};w.prototype.Q=function(a){return x(this.o,a)};
|
|
w.prototype.remove=function(a){return x(this.o,a)?(delete this.o[a],this.g--,this.fa++,this.b.length>2*this.g&&ya(this),!0):!1};var ya=function(a){if(a.g!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];x(a.o,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.g!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],x(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}};h=w.prototype;h.get=function(a,b){return x(this.o,a)?this.o[a]:b};
|
|
h.set=function(a,b){x(this.o,a)||(this.g++,this.b.push(a),this.fa++);this.o[a]=b};h.Ba=function(a){var b;a instanceof w?(b=a.B(),a=a.q()):(b=ua(a),a=ta(a));for(var c=0;c<b.length;c++)this.set(b[c],a[c])};h.forEach=function(a,b){for(var c=this.B(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};h.clone=function(){return new w(this)};h.mb=function(){ya(this);for(var a={},b=0;b<this.b.length;b++){var c=this.b[b];a[c]=this.o[c]}return a};
|
|
h.$b=function(a){ya(this);var b=0,c=this.b,d=this.o,e=this.fa,f=this,g=new ra;g.next=function(){for(;;){if(e!=f.fa)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw qa;var g=c[b++];return a?g:d[g]}};return g};var x=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var za={id:"hitType",name:"t",valueType:"text",maxLength:void 0,defaultValue:void 0},Aa={id:"sessionControl",name:"sc",valueType:"text",maxLength:void 0,defaultValue:void 0},Ba={id:"description",name:"cd",valueType:"text",maxLength:2048,defaultValue:void 0},Ca={Pc:za,pc:{id:"anonymizeIp",name:"aip",valueType:"boolean",maxLength:void 0,defaultValue:void 0},ad:{id:"queueTime",name:"qt",valueType:"integer",maxLength:void 0,defaultValue:void 0},vc:{id:"cacheBuster",name:"z",valueType:"text",maxLength:void 0,
|
|
defaultValue:void 0},gd:Aa,xd:{id:"userId",name:"uid",valueType:"text",maxLength:void 0,defaultValue:void 0},Yc:{id:"nonInteraction",name:"ni",valueType:"boolean",maxLength:void 0,defaultValue:void 0},Fc:Ba,qd:{id:"title",name:"dt",valueType:"text",maxLength:1500,defaultValue:void 0},Gc:{id:"dimension",name:"cd[1-9][0-9]*",valueType:"text",maxLength:150,defaultValue:void 0},Xc:{id:"metric",name:"cm[1-9][0-9]*",valueType:"integer",maxLength:void 0,defaultValue:void 0},rc:{id:"appId",name:"aid",valueType:"text",
|
|
maxLength:150,defaultValue:void 0},sc:{id:"appInstallerId",name:"aiid",valueType:"text",maxLength:150,defaultValue:void 0},Jc:{id:"eventCategory",name:"ec",valueType:"text",maxLength:150,defaultValue:void 0},Ic:{id:"eventAction",name:"ea",valueType:"text",maxLength:500,defaultValue:void 0},Kc:{id:"eventLabel",name:"el",valueType:"text",maxLength:500,defaultValue:void 0},Lc:{id:"eventValue",name:"ev",valueType:"integer",maxLength:void 0,defaultValue:void 0},jd:{id:"socialNetwork",name:"sn",valueType:"text",
|
|
maxLength:50,defaultValue:void 0},hd:{id:"socialAction",name:"sa",valueType:"text",maxLength:50,defaultValue:void 0},kd:{id:"socialTarget",name:"st",valueType:"text",maxLength:2048,defaultValue:void 0},td:{id:"transactionId",name:"ti",valueType:"text",maxLength:500,defaultValue:void 0},sd:{id:"transactionAffiliation",name:"ta",valueType:"text",maxLength:500,defaultValue:void 0},ud:{id:"transactionRevenue",name:"tr",valueType:"currency",maxLength:void 0,defaultValue:void 0},vd:{id:"transactionShipping",
|
|
name:"ts",valueType:"currency",maxLength:void 0,defaultValue:void 0},wd:{id:"transactionTax",name:"tt",valueType:"currency",maxLength:void 0,defaultValue:void 0},Dc:{id:"currencyCode",name:"cu",valueType:"text",maxLength:10,defaultValue:void 0},Tc:{id:"itemPrice",name:"ip",valueType:"currency",maxLength:void 0,defaultValue:void 0},Uc:{id:"itemQuantity",name:"iq",valueType:"integer",maxLength:void 0,defaultValue:void 0},Rc:{id:"itemCode",name:"ic",valueType:"text",maxLength:500,defaultValue:void 0},
|
|
Sc:{id:"itemName",name:"in",valueType:"text",maxLength:500,defaultValue:void 0},Qc:{id:"itemCategory",name:"iv",valueType:"text",maxLength:500,defaultValue:void 0},Bc:{id:"campaignSource",name:"cs",valueType:"text",maxLength:100,defaultValue:void 0},zc:{id:"campaignMedium",name:"cm",valueType:"text",maxLength:50,defaultValue:void 0},Ac:{id:"campaignName",name:"cn",valueType:"text",maxLength:100,defaultValue:void 0},yc:{id:"campaignKeyword",name:"ck",valueType:"text",maxLength:500,defaultValue:void 0},
|
|
wc:{id:"campaignContent",name:"cc",valueType:"text",maxLength:500,defaultValue:void 0},xc:{id:"campaignId",name:"ci",valueType:"text",maxLength:100,defaultValue:void 0},Oc:{id:"gclid",name:"gclid",valueType:"text",maxLength:void 0,defaultValue:void 0},Ec:{id:"dclid",name:"dclid",valueType:"text",maxLength:void 0,defaultValue:void 0},$c:{id:"pageLoadTime",name:"plt",valueType:"integer",maxLength:void 0,defaultValue:void 0},Hc:{id:"dnsTime",name:"dns",valueType:"integer",maxLength:void 0,defaultValue:void 0},
|
|
ld:{id:"tcpConnectTime",name:"tcp",valueType:"integer",maxLength:void 0,defaultValue:void 0},fd:{id:"serverResponseTime",name:"srt",valueType:"integer",maxLength:void 0,defaultValue:void 0},Zc:{id:"pageDownloadTime",name:"pdt",valueType:"integer",maxLength:void 0,defaultValue:void 0},bd:{id:"redirectResponseTime",name:"rrt",valueType:"integer",maxLength:void 0,defaultValue:void 0},md:{id:"timingCategory",name:"utc",valueType:"text",maxLength:150,defaultValue:void 0},pd:{id:"timingVar",name:"utv",
|
|
valueType:"text",maxLength:500,defaultValue:void 0},od:{id:"timingValue",name:"utt",valueType:"integer",maxLength:void 0,defaultValue:void 0},nd:{id:"timingLabel",name:"utl",valueType:"text",maxLength:500,defaultValue:void 0},Mc:{id:"exDescription",name:"exd",valueType:"text",maxLength:150,defaultValue:void 0},Nc:{id:"exFatal",name:"exf",valueType:"boolean",maxLength:void 0,defaultValue:"1"}};var Da=function(a,b){this.width=a;this.height=b};Da.prototype.clone=function(){return new Da(this.width,this.height)};Da.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};var y;t:{var Ea=k.navigator;if(Ea){var Fa=Ea.userAgent;if(Fa){y=Fa;break t}}y=""}var z=function(a){return-1!=y.indexOf(a)};var Ga=z("Opera")||z("OPR"),A=z("Trident")||z("MSIE"),B=z("Gecko")&&-1==y.toLowerCase().indexOf("webkit")&&!(z("Trident")||z("MSIE")),C=-1!=y.toLowerCase().indexOf("webkit"),Ha=function(){var a=k.document;return a?a.documentMode:void 0},Ia=function(){var a="",b;if(Ga&&k.opera)return a=k.opera.version,p(a)?a():a;B?b=/rv\:([^\);]+)(\)|;)/:A?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:C&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(y))?a[1]:"");return A&&(b=Ha(),b>parseFloat(a))?String(b):a}(),Ja={},D=function(a){var b;
|
|
if(!(b=Ja[a])){b=0;for(var c=String(Ia).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),d=String(a).replace(/^[\s\xa0]+|[\s\xa0]+$/g,"").split("."),e=Math.max(c.length,d.length),f=0;0==b&&f<e;f++){var g=c[f]||"",l=d[f]||"",I=RegExp("(\\d*)(\\D*)","g"),F=RegExp("(\\d*)(\\D*)","g");do{var S=I.exec(g)||["","",""],T=F.exec(l)||["","",""];if(0==S[0].length&&0==T[0].length)break;b=ia(0==S[1].length?0:parseInt(S[1],10),0==T[1].length?0:parseInt(T[1],10))||ia(0==S[2].length,0==T[2].length)||ia(S[2],T[2])}while(0==
|
|
b)}b=Ja[a]=0<=b}return b},Ka=k.document,La=Ka&&A?Ha()||("CSS1Compat"==Ka.compatMode?parseInt(Ia,10):5):void 0;!B&&!A||A&&A&&9<=La||B&&D("1.9.1");A&&D("9");var Ma=function(){};Ma.prototype.Ka=!1;Ma.prototype.na=function(){this.Ka||(this.Ka=!0,this.j())};Ma.prototype.j=function(){if(this.rb)for(;this.rb.length;)this.rb.shift()()};var E=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.N=!1;this.Wa=!0};E.prototype.j=function(){};E.prototype.na=function(){};E.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Wa=!1};var Na=function(a){Na[" "](a);return a};Na[" "]=ba;var Oa=!A||A&&9<=La,Pa=A&&!D("9"),Qa=!C||D("528"),Ra=B&&D("1.9b")||A&&D("8")||Ga&&D("9.5")||C&&D("528"),Sa=B&&!D("8")||A&&!D("9");var G=function(a,b){E.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.lb=this.state=null;if(a){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(B){var e;t:{try{Na(d.nodeName);e=!0;break t}catch(f){}e=!1}e||(d=null)}}else"mouseover"==
|
|
c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.offsetX=C||void 0!==a.offsetX?a.offsetX:a.layerX;this.offsetY=C||void 0!==a.offsetY?a.offsetY:a.layerY;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.screenX=a.screenX||0;this.screenY=a.screenY||0;this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=
|
|
a.metaKey;this.state=a.state;this.lb=a;a.defaultPrevented&&this.preventDefault()}};t(G,E);G.prototype.preventDefault=function(){G.I.preventDefault.call(this);var a=this.lb;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Pa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};G.prototype.j=function(){};var Ta="closure_listenable_"+(1E6*Math.random()|0),Ua=function(a){return!(!a||!a[Ta])},Va=0;var Wa=function(a,b,c,d,e){this.K=a;this.proxy=null;this.src=b;this.type=c;this.ga=!!d;this.ia=e;this.key=++Va;this.removed=this.ha=!1},Xa=function(a){a.removed=!0;a.K=null;a.proxy=null;a.src=null;a.ia=null};var H=function(a){this.src=a;this.h={};this.T=0};H.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.h[f];a||(a=this.h[f]=[],this.T++);var g=Ya(a,b,d,e);-1<g?(b=a[g],c||(b.ha=!1)):(b=new Wa(b,this.src,f,!!d,e),b.ha=c,a.push(b));return b};H.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.h))return!1;var e=this.h[a];b=Ya(e,b,c,d);return-1<b?(Xa(e[b]),v.splice.call(e,b,1),0==e.length&&(delete this.h[a],this.T--),!0):!1};
|
|
var Za=function(a,b){var c=b.type;if(!(c in a.h))return!1;var d=oa(a.h[c],b);d&&(Xa(b),0==a.h[c].length&&(delete a.h[c],a.T--));return d};H.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.h)if(!a||c==a){for(var d=this.h[c],e=0;e<d.length;e++)++b,Xa(d[e]);delete this.h[c];this.T--}return b};H.prototype.S=function(a,b,c,d){a=this.h[a.toString()];var e=-1;a&&(e=Ya(a,b,c,d));return-1<e?a[e]:null};
|
|
var Ya=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.removed&&f.K==b&&f.ga==!!c&&f.ia==d)return e}return-1};var $a="closure_lm_"+(1E6*Math.random()|0),ab={},bb=0,cb=function(a,b,c,d,e){if(m(b)){for(var f=0;f<b.length;f++)cb(a,b[f],c,d,e);return null}c=db(c);return Ua(a)?a.listen(b,c,d,e):eb(a,b,c,!1,d,e)},eb=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var g=!!e,l=fb(a);l||(a[$a]=l=new H(a));c=l.add(b,c,d,e,f);if(c.proxy)return c;d=gb();c.proxy=d;d.src=a;d.K=c;a.addEventListener?a.addEventListener(b.toString(),d,g):a.attachEvent(hb(b.toString()),d);bb++;return c},gb=function(){var a=ib,
|
|
b=Oa?function(c){return a.call(b.src,b.K,c)}:function(c){c=a.call(b.src,b.K,c);if(!c)return c};return b},jb=function(a,b,c,d,e){if(m(b)){for(var f=0;f<b.length;f++)jb(a,b[f],c,d,e);return null}c=db(c);return Ua(a)?a.Oa(b,c,d,e):eb(a,b,c,!0,d,e)},kb=function(a,b,c,d,e){if(m(b))for(var f=0;f<b.length;f++)kb(a,b[f],c,d,e);else c=db(c),Ua(a)?a.Ja(b,c,d,e):a&&(a=fb(a))&&(b=a.S(b,c,!!d,e))&&lb(b)},lb=function(a){if("number"==typeof a||!a||a.removed)return!1;var b=a.src;if(Ua(b))return Za(b.v,a);var c=a.type,
|
|
d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.ga):b.detachEvent&&b.detachEvent(hb(c),d);bb--;(c=fb(b))?(Za(c,a),0==c.T&&(c.src=null,b[$a]=null)):Xa(a);return!0},hb=function(a){return a in ab?ab[a]:ab[a]="on"+a},nb=function(a,b,c,d){var e=1;if(a=fb(a))if(b=a.h[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.ga==c&&!f.removed&&(e&=!1!==mb(f,d))}return Boolean(e)},mb=function(a,b){var c=a.K,d=a.ia||a.src;a.ha&&lb(a);return c.call(d,b)},ib=function(a,b){if(a.removed)return!0;
|
|
if(!Oa){var c;if(!(c=b))t:{c=["window","event"];for(var d=k,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break t}c=d}e=c;c=new G(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){t:{var f=!1;if(0==e.keyCode)try{e.keyCode=-1;break t}catch(g){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.currentTarget;f;f=f.parentNode)e.push(f);for(var f=a.type,l=e.length-1;!c.N&&0<=l;l--)c.currentTarget=e[l],d&=nb(e[l],f,!0,c);for(l=0;!c.N&&l<e.length;l++)c.currentTarget=e[l],d&=nb(e[l],f,
|
|
!1,c)}return d}return mb(a,new G(b,this))},fb=function(a){a=a[$a];return a instanceof H?a:null},ob="__closure_events_fn_"+(1E9*Math.random()>>>0),db=function(a){if(p(a))return a;a[ob]||(a[ob]=function(b){return a.handleEvent(b)});return a[ob]};var J=function(){this.v=new H(this);this.Lb=this;this.Fa=null};t(J,Ma);J.prototype[Ta]=!0;h=J.prototype;h.addEventListener=function(a,b,c,d){cb(this,a,b,c,d)};h.removeEventListener=function(a,b,c,d){kb(this,a,b,c,d)};
|
|
h.dispatchEvent=function(a){var b,c=this.Fa;if(c){b=[];for(var d=1;c;c=c.Fa)b.push(c),++d}c=this.Lb;d=a.type||a;if(n(a))a=new E(a,c);else if(a instanceof E)a.target=a.target||c;else{var e=a;a=new E(d,c);xa(a,e)}var e=!0,f;if(b)for(var g=b.length-1;!a.N&&0<=g;g--)f=a.currentTarget=b[g],e=pb(f,d,!0,a)&&e;a.N||(f=a.currentTarget=c,e=pb(f,d,!0,a)&&e,a.N||(e=pb(f,d,!1,a)&&e));if(b)for(g=0;!a.N&&g<b.length;g++)f=a.currentTarget=b[g],e=pb(f,d,!1,a)&&e;return e};
|
|
h.j=function(){J.I.j.call(this);this.v&&this.v.removeAll(void 0);this.Fa=null};h.listen=function(a,b,c,d){return this.v.add(String(a),b,!1,c,d)};h.Oa=function(a,b,c,d){return this.v.add(String(a),b,!0,c,d)};h.Ja=function(a,b,c,d){return this.v.remove(String(a),b,c,d)};var pb=function(a,b,c,d){b=a.v.h[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var g=b[f];if(g&&!g.removed&&g.ga==c){var l=g.K,I=g.ia||g.src;g.ha&&Za(a.v,g);e=!1!==l.call(I,d)&&e}}return e&&!1!=d.Wa};
|
|
J.prototype.S=function(a,b,c,d){return this.v.S(String(a),b,c,d)};var qb=function(a,b){J.call(this);this.oa=a||1;this.L=b||k;this.Ga=q(this.Nb,this);this.Ha=r()};t(qb,J);h=qb.prototype;h.enabled=!1;h.e=null;h.Nb=function(){if(this.enabled){var a=r()-this.Ha;0<a&&a<.8*this.oa?this.e=this.L.setTimeout(this.Ga,this.oa-a):(this.e&&(this.L.clearTimeout(this.e),this.e=null),this.dispatchEvent("tick"),this.enabled&&(this.e=this.L.setTimeout(this.Ga,this.oa),this.Ha=r()))}};h.start=function(){this.enabled=!0;this.e||(this.e=this.L.setTimeout(this.Ga,this.oa),this.Ha=r())};
|
|
h.stop=function(){this.enabled=!1;this.e&&(this.L.clearTimeout(this.e),this.e=null)};h.j=function(){qb.I.j.call(this);this.stop();delete this.L};var rb=function(a,b,c){if(p(a))c&&(a=q(a,c));else if(a&&"function"==typeof a.handleEvent)a=q(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:k.setTimeout(a,b||0)};var K=function(a){this.Ia=a;this.b={}};t(K,Ma);var sb=[];K.prototype.listen=function(a,b,c,d){m(b)||(b&&(sb[0]=b.toString()),b=sb);for(var e=0;e<b.length;e++){var f=cb(a,b[e],c||this.handleEvent,d||!1,this.Ia||this);if(!f)break;this.b[f.key]=f}return this};K.prototype.Oa=function(a,b,c,d){return tb(this,a,b,c,d)};var tb=function(a,b,c,d,e,f){if(m(c))for(var g=0;g<c.length;g++)tb(a,b,c[g],d,e,f);else{b=jb(b,c,d||a.handleEvent,e,f||a.Ia||a);if(!b)return a;a.b[b.key]=b}return a};
|
|
K.prototype.Ja=function(a,b,c,d,e){if(m(b))for(var f=0;f<b.length;f++)this.Ja(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.Ia||this,c=db(c),d=!!d,b=Ua(a)?a.S(b,c,d,e):a?(a=fb(a))?a.S(b,c,d,e):null:null,b&&(lb(b),delete this.b[b.key]);return this};K.prototype.removeAll=function(){sa(this.b,lb);this.b={}};K.prototype.j=function(){K.I.j.call(this);this.removeAll()};K.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};var L=function(){J.call(this);this.ja=new K(this);Qa&&(Ra?this.ja.listen(Sa?document.body:window,["online","offline"],this.cb):(this.eb=Qa?navigator.onLine:!0,this.e=new qb(250),this.ja.listen(this.e,"tick",this.Fb),this.e.start()))};t(L,J);L.prototype.Fb=function(){var a=Qa?navigator.onLine:!0;a!=this.eb&&(this.eb=a,this.cb())};L.prototype.cb=function(){this.dispatchEvent((Qa?navigator.onLine:1)?"online":"offline")};
|
|
L.prototype.j=function(){L.I.j.call(this);this.ja.na();this.ja=null;this.e&&(this.e.na(),this.e=null)};var ub=function(a){k.setTimeout(function(){throw a;},0)},vb,wb=function(){if(k.Promise&&k.Promise.resolve){var a=k.Promise.resolve();return function(b){a.then(function(){try{b()}catch(a){ub(a)}})}}var b=k.MessageChannel;"undefined"===typeof b&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(b=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();
|
|
var c="callImmediate"+Math.random(),d=b.location.protocol+"//"+b.location.host,a=q(function(a){if(a.origin==d||a.data==c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof b){var c=new b,d={},e=d;c.port1.onmessage=function(){d=d.next;var a=d.ob;d.ob=null;a()};return function(a){e.next={ob:a};e=e.next;c.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?
|
|
function(a){var b=document.createElement("script");b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){k.setTimeout(a,0)}};var Bb=function(a,b){if(!xb){var c=yb;p(k.setImmediate)?k.setImmediate(c):(vb||(vb=wb()),vb(c));xb=!0}zb.push(new Ab(a,b))},xb=!1,zb=[],yb=function(){for(;zb.length;){var a=zb;zb=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.ac.call(c.scope)}catch(d){ub(d)}}}xb=!1},Ab=function(a,b){this.ac=a;this.scope=b};var Cb=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0},Db=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var N=function(a,b){this.l=0;this.r=void 0;this.m=this.n=null;this.ka=this.za=!1;try{var c=this;a.call(b,function(a){M(c,2,a)},function(a){M(c,3,a)})}catch(d){M(this,3,d)}};N.prototype.then=function(a,b,c){return Eb(this,p(a)?a:null,p(b)?b:null,c)};Cb(N);N.prototype.cancel=function(a){0==this.l&&Bb(function(){var b=new Fb(a);Gb(this,b)},this)};
|
|
var Gb=function(a,b){if(0==a.l)if(a.n){var c=a.n;if(c.m){for(var d=0,e=-1,f=0,g;g=c.m[f];f++)if(g=g.ma)if(d++,g==a&&(e=f),0<=e&&1<d)break;0<=e&&(0==c.l&&1==d?Gb(c,b):(d=c.m.splice(e,1)[0],Hb(c),d.Aa(b)))}}else M(a,3,b)},Jb=function(a,b){a.m&&a.m.length||2!=a.l&&3!=a.l||Ib(a);a.m||(a.m=[]);a.m.push(b)},Eb=function(a,b,c,d){var e={ma:null,Va:null,Aa:null};e.ma=new N(function(a,g){e.Va=b?function(c){try{var e=b.call(d,c);a(e)}catch(F){g(F)}}:a;e.Aa=c?function(b){try{var e=c.call(d,b);void 0===e&&b instanceof
|
|
Fb?g(b):a(e)}catch(F){g(F)}}:g});e.ma.n=a;Jb(a,e);return e.ma};N.prototype.gb=function(a){this.l=0;M(this,2,a)};N.prototype.hb=function(a){this.l=0;M(this,3,a)};
|
|
var M=function(a,b,c){if(0==a.l){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Db(c)){a.l=1;c.then(a.gb,a.hb,a);return}if(ea(c))try{var d=c.then;if(p(d)){Kb(a,c,d);return}}catch(e){b=3,c=e}}a.r=c;a.l=b;Ib(a);3!=b||c instanceof Fb||Lb(a,c)}},Kb=function(a,b,c){a.l=1;var d=!1,e=function(b){d||(d=!0,a.gb(b))},f=function(b){d||(d=!0,a.hb(b))};try{c.call(b,e,f)}catch(g){f(g)}},Ib=function(a){a.za||(a.za=!0,Bb(a.Yb,a))};
|
|
N.prototype.Yb=function(){for(;this.m&&this.m.length;){var a=this.m;this.m=[];for(var b=0;b<a.length;b++){var c=a[b],d=this.r;2==this.l?c.Va(d):(Hb(this),c.Aa(d))}}this.za=!1};var Hb=function(a){for(;a&&a.ka;a=a.n)a.ka=!1},Lb=function(a,b){a.ka=!0;Bb(function(){a.ka&&Mb.call(null,b)})},Mb=ub,Fb=function(a){u.call(this,a)};t(Fb,u);Fb.prototype.name="cancel";/*
|
|
Portions of this code are from MochiKit, received by
|
|
The Closure Authors under the MIT license. All other code is Copyright
|
|
2005-2009 The Closure Authors. All Rights Reserved.
|
|
*/
|
|
var O=function(a,b){this.ba=[];this.Ta=a;this.Sa=b||null;this.P=this.G=!1;this.r=void 0;this.xa=this.tb=this.wa=!1;this.ca=0;this.n=null;this.va=0};O.prototype.cancel=function(a){if(this.G)this.r instanceof O&&this.r.cancel();else{if(this.n){var b=this.n;delete this.n;a?b.cancel(a):(b.va--,0>=b.va&&b.cancel())}this.Ta?this.Ta.call(this.Sa,this):this.xa=!0;this.G||this.t(new Nb)}};O.prototype.Ua=function(a,b){this.wa=!1;Ob(this,a,b)};
|
|
var Ob=function(a,b,c){a.G=!0;a.r=c;a.P=!b;Pb(a)},Sb=function(a){if(a.G){if(!a.xa)throw new Rb;a.xa=!1}};O.prototype.C=function(a){Sb(this);Ob(this,!0,a)};O.prototype.t=function(a){Sb(this);Ob(this,!1,a)};O.prototype.F=function(a,b){return P(this,a,null,b)};var P=function(a,b,c,d){a.ba.push([b,c,d]);a.G&&Pb(a);return a};O.prototype.then=function(a,b,c){var d,e,f=new N(function(a,b){d=a;e=b});P(this,d,function(a){a instanceof Nb?f.cancel():e(a)});return f.then(a,b,c)};Cb(O);
|
|
var Tb=function(a){var b=new O;P(a,b.C,b.t,b);return b},Ub=function(a){return la(a.ba,function(a){return p(a[1])})},Pb=function(a){if(a.ca&&a.G&&Ub(a)){var b=a.ca,c=Vb[b];c&&(k.clearTimeout(c.da),delete Vb[b]);a.ca=0}a.n&&(a.n.va--,delete a.n);for(var b=a.r,d=c=!1;a.ba.length&&!a.wa;){var e=a.ba.shift(),f=e[0],g=e[1],e=e[2];if(f=a.P?g:f)try{var l=f.call(e||a.Sa,b);void 0!==l&&(a.P=a.P&&(l==b||l instanceof Error),a.r=b=l);Db(b)&&(d=!0,a.wa=!0)}catch(I){b=I,a.P=!0,Ub(a)||(c=!0)}}a.r=b;d&&(l=q(a.Ua,
|
|
a,!0),d=q(a.Ua,a,!1),b instanceof O?(P(b,l,d),b.tb=!0):b.then(l,d));c&&(b=new Wb(b),Vb[b.da]=b,a.ca=b.da)},Xb=function(a){var b=new O;b.C(a);return b},Zb=function(){var a=Yb,b=new O;b.t(a);return b},Rb=function(){u.call(this)};t(Rb,u);Rb.prototype.message="Deferred has already fired";Rb.prototype.name="AlreadyCalledError";var Nb=function(){u.call(this)};t(Nb,u);Nb.prototype.message="Deferred was canceled";Nb.prototype.name="CanceledError";
|
|
var Wb=function(a){this.da=k.setTimeout(q(this.Ub,this),0);this.aa=a};Wb.prototype.Ub=function(){delete Vb[this.da];throw this.aa;};var Vb={};var $b=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,l,I,F,S,T){if("%"==F)return"%";var Qb=c.shift();if("undefined"==typeof Qb)throw Error("[goog.string.format] Not enough arguments");arguments[0]=Qb;return Q[F].apply(null,arguments)})},Q={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Array(c-
|
|
a.length+1).join(" "):Array(c-a.length+1).join(" ")+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||""==e||(d=a.toFixed(e));var f;f=0>a?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=a&&(d=f+d);if(isNaN(c)||d.length>=c)return d;d=isNaN(e)?Math.abs(a).toString():Math.abs(a).toFixed(e);a=c-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Array(a+1).join(" "):f+Array(a+1).join(0<=b.indexOf("0",0)?"0":" ")+d},d:function(a,b,c,d,e,f,g,l){return Q.f(parseInt(a,10),b,c,d,0,f,g,l)}};Q.i=Q.d;
|
|
Q.u=Q.d;var ac=function(a){if("function"==typeof a.q)return a.q();if(n(a))return a.split("");if(da(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return ta(a)},bc=function(a,b){if("function"==typeof a.forEach)a.forEach(b,void 0);else if(da(a)||n(a))ka(a,b,void 0);else{var c;if("function"==typeof a.B)c=a.B();else if("function"!=typeof a.q)if(da(a)||n(a)){c=[];for(var d=a.length,e=0;e<d;e++)c.push(e)}else c=ua(a);else c=void 0;for(var d=ac(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],
|
|
a)}};var R=function(a){this.M=new w;this.Ba(arguments)};R.prototype.set=function(a,b){this.M.set(a.name,{key:a,value:b})};R.prototype.remove=function(a){this.M.remove(a.name)};R.prototype.get=function(a){a=this.M.get(a.name,null);return null===a?null:a.value};R.prototype.Ba=function(a){for(var b=0;b<a.length;b+=2)this.set(a[b],a[b+1])};var cc=function(a,b){ka(a.M.q(),function(a){b(a.key,a.value)})};R.prototype.mb=function(){var a={};cc(this,function(b,c){a[b.id]=c});return a};
|
|
R.prototype.clone=function(){var a=new R;a.M=this.M.clone();return a};R.prototype.toString=function(){var a={};cc(this,function(b,c){a[b.id]=c});return JSON.stringify(a)};var dc={id:"apiVersion",name:"v",valueType:"text",maxLength:void 0,defaultValue:void 0},ec={id:"appName",name:"an",valueType:"text",maxLength:100,defaultValue:void 0},fc={id:"appVersion",name:"av",valueType:"text",maxLength:100,defaultValue:void 0},gc={id:"clientId",name:"cid",valueType:"text",maxLength:void 0,defaultValue:void 0},hc={id:"language",name:"ul",valueType:"text",maxLength:20,defaultValue:void 0},ic={id:"libVersion",name:"_v",valueType:"text",maxLength:void 0,defaultValue:void 0},jc={id:"sampleRateOverride",
|
|
name:"usro",valueType:"integer",maxLength:void 0,defaultValue:void 0},kc={id:"screenColors",name:"sd",valueType:"text",maxLength:20,defaultValue:void 0},lc={id:"screenResolution",name:"sr",valueType:"text",maxLength:20,defaultValue:void 0},mc={id:"trackingId",name:"tid",valueType:"text",maxLength:void 0,defaultValue:void 0},nc={id:"viewportSize",name:"vp",valueType:"text",maxLength:20,defaultValue:void 0},oc={qc:dc,tc:ec,uc:fc,Cc:gc,Vc:hc,Wc:ic,cd:jc,dd:kc,ed:lc,rd:mc,yd:nc},qc=function(a){if(!n(a))return a;
|
|
var b=pc(a,Ca);if(ea(b))return b;b=pc(a,oc);if(ea(b))return b;b=/^dimension(\d+)$/.exec(a);if(null!==b)return{id:a,name:"cd"+b[1],valueType:"text",maxLength:150,defaultValue:void 0};b=/^metric(\d+)$/.exec(a);if(null!==b)return{id:a,name:"cm"+b[1],valueType:"integer",maxLength:void 0,defaultValue:void 0};throw Error(a+" is not a valid parameter name.");},pc=function(a,b){var c=va(b,function(b){return b.id==a&&"metric"!=a&&"dimension"!=a});return ea(c)?c:null};var rc=function(a,b){this.k=a;this.w=b};rc.prototype.send=function(a,b){b.set(gc,this.k.ea);return this.w.send(a,b)};var U=function(){};U.Sb=function(){return U.qb?U.qb:U.qb=new U};U.prototype.send=function(){return Xb()};var V=function(a,b){E.call(this,"a");this.Zb=a;this.Vb=b};t(V,E);V.prototype.fc=function(){return this.Zb};V.prototype.ec=function(){return this.Vb.mb()};var sc=function(a,b){this.Ma=a;this.w=b};sc.prototype.send=function(a,b){this.Ma.dispatchEvent(new V(a,b));return this.w.send(a,b)};var tc=function(a){this.w=a};tc.prototype.send=function(a,b){uc(b);vc(b);return this.w.send(a,b)};var uc=function(a){cc(a,function(b,c){void 0!==b.maxLength&&"text"==b.valueType&&0<b.maxLength&&c.length>b.maxLength&&a.set(b,c.substring(0,b.maxLength))})},vc=function(a){cc(a,function(b,c){void 0!==b.defaultValue&&c==b.defaultValue&&a.remove(b)})};var Yb={status:"device-offline",qa:void 0},wc={status:"rate-limited",qa:void 0},xc={status:"sampled-out",qa:void 0},yc={status:"sent",qa:void 0};var zc=function(a,b){this.Eb=a;this.w=b};zc.prototype.send=function(a,b){var c;c=this.Eb;var d=c.ab(),e=Math.floor((d-c.$a)*c.Bb);0<e&&(c.U=Math.min(c.U+e,c.Cb),c.$a=d);1>c.U?c=!1:(c.U-=1,c=!0);return c||"item"==a||"transaction"==a?this.w.send(a,b):Xb(wc)};var Ac=function(a){this.Wb=a};Ac.prototype.send=function(a,b){this.Wb.push({zb:a,Ab:b});return Xb()};var Bc=function(a,b,c){this.k=a;this.la=[];this.J={enabled:new Ac(this.la),disabled:c};this.R=this.J.enabled;P(Tb(this.k.ya),ha(this.yb,b),this.xb,this)};Bc.prototype.yb=function(a){this.J.enabled=a(this.k);Cc(this);ka(this.la,function(a){this.send(a.zb,a.Ab)},this);this.la=null;Dc(this.k,q(this.Db,this))};Bc.prototype.xb=function(){this.R=this.J.enabled=this.J.disabled;this.la=null};Bc.prototype.send=function(a,b){return this.R.send(a,b)};var Cc=function(a){a.R=a.k.pa()?a.J.enabled:a.J.disabled};
|
|
Bc.prototype.Db=function(a){switch(a){case "analytics.tracking-permitted":Cc(this)}};var W=function(a,b){this.R=a;this.Ma=b;this.kb=new R;this.Na=!1};h=W.prototype;h.set=function(a,b){var c=qc(a);this.kb.set(c,b)};h.send=function(a,b){var c=this.kb.clone();b&&sa(b,function(a,b){null!=a&&c.set(qc(b),a)},this);this.Na&&(this.Na=!1,c.set(Aa,"start"));return this.R.send(a,c)};h.hc=function(a){var b={description:a};this.set(Ba,a);return this.send("appview",b)};h.ic=function(a,b,c,d){return this.send("event",{eventCategory:a,eventAction:b,eventLabel:c,eventValue:d})};
|
|
h.kc=function(a,b,c){return this.send("social",{socialNetwork:a,socialAction:b,socialTarget:c})};h.jc=function(a,b){return this.send("exception",{exDescription:a,exFatal:b})};h.jb=function(a,b,c,d,e){return this.send("timing",{timingCategory:a,timingVar:b,timingLabel:d,timingValue:c,sampleRateOverride:e})};h.bc=function(){this.Na=!0};h.nc=function(a,b,c,d){return new Ec(this,a,b,c,d)};h.dc=function(){return this.Ma};
|
|
var Ec=function(a,b,c,d,e){this.ib=a;this.Hb=b;this.Kb=c;this.Ib=d;this.O=e;this.Jb=r()};Ec.prototype.send=function(){var a=this.ib.jb(this.Hb,this.Kb,r()-this.Jb,this.Ib,this.O);this.ib=null;return a};var Fc=function(){this.U=60;this.Cb=500;this.Bb=5E-4;this.ab=function(){return(new Date).getTime()};this.$a=this.ab()};var Gc=function(a,b){this.k=a;this.w=b};Gc.prototype.send=function(a,b){var c=b.get(gc),c=parseInt(c.split("-")[1],16),d;"timing"!=a?d=this.k.O:((d=b.get(jc))&&b.remove(jc),d||(d=this.k.O));return c<655.36*d?this.w.send(a,b):Xb(xc)};var Hc=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,Ic=C,Jc=function(a,b){if(Ic){Ic=!1;var c=k.location;if(c){var d=c.href;if(d&&(d=(d=Jc(3,d))&&decodeURIComponent(d))&&d!=c.hostname)throw Ic=!0,Error();}}return b.match(Hc)[a]||null};var Kc=function(){};Kc.prototype.nb=null;var Mc=function(a){var b;(b=a.nb)||(b={},Lc(a)&&(b[0]=!0,b[1]=!0),b=a.nb=b);return b};var Nc,Oc=function(){};t(Oc,Kc);var Pc=function(a){return(a=Lc(a))?new ActiveXObject(a):new XMLHttpRequest},Lc=function(a){if(!a.pb&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.pb=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.pb};Nc=new Oc;var X=function(a){J.call(this);this.headers=new w;this.$=a||null;this.A=!1;this.X=this.a=null;this.W=this.sa="";this.H=this.ra=this.V=this.ua=!1;this.Z=0;this.Y=null;this.Pa="";this.ta=this.sb=!1};t(X,J);var Qc=/^https?$/i,Rc=["POST","PUT"],Sc=[],Tc=function(a,b,c){var d=new X;Sc.push(d);b&&d.listen("complete",b);d.Oa("ready",d.Xb);d.send(a,"POST",c,void 0)};X.prototype.Xb=function(){this.na();oa(Sc,this)};
|
|
X.prototype.send=function(a,b,c,d){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.sa+"; newUri="+a);b=b?b.toUpperCase():"GET";this.sa=a;this.W="";this.ua=!1;this.A=!0;this.a=this.$?Pc(this.$):Pc(Nc);this.X=this.$?Mc(this.$):Mc(Nc);this.a.onreadystatechange=q(this.Qa,this);try{this.ra=!0,this.a.open(b,String(a),!0),this.ra=!1}catch(e){this.aa(5,e);return}a=c||"";var f=this.headers.clone();d&&bc(d,function(a,b){f.set(b,a)});d=na(f.B());c=k.FormData&&a instanceof
|
|
k.FormData;!(0<=ja(Rc,b))||d||c||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");f.forEach(function(a,b){this.a.setRequestHeader(b,a)},this);this.Pa&&(this.a.responseType=this.Pa);"withCredentials"in this.a&&(this.a.withCredentials=this.sb);try{Uc(this),0<this.Z&&((this.ta=Vc(this.a))?(this.a.timeout=this.Z,this.a.ontimeout=q(this.Ra,this)):this.Y=rb(this.Ra,this.Z,this)),this.V=!0,this.a.send(a),this.V=!1}catch(g){this.aa(5,g)}};
|
|
var Vc=function(a){return A&&D(9)&&"number"==typeof a.timeout&&void 0!==a.ontimeout},ma=function(a){return"content-type"==a.toLowerCase()};X.prototype.Ra=function(){"undefined"!=typeof aa&&this.a&&(this.W="Timed out after "+this.Z+"ms, aborting",this.dispatchEvent("timeout"),this.abort(8))};X.prototype.aa=function(a,b){this.A=!1;this.a&&(this.H=!0,this.a.abort(),this.H=!1);this.W=b;Wc(this);Xc(this)};var Wc=function(a){a.ua||(a.ua=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
|
|
X.prototype.abort=function(){this.a&&this.A&&(this.A=!1,this.H=!0,this.a.abort(),this.H=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Xc(this))};X.prototype.j=function(){this.a&&(this.A&&(this.A=!1,this.H=!0,this.a.abort(),this.H=!1),Xc(this,!0));X.I.j.call(this)};X.prototype.Qa=function(){this.Ka||(this.ra||this.V||this.H?Yc(this):this.Mb())};X.prototype.Mb=function(){Yc(this)};
|
|
var Yc=function(a){if(a.A&&"undefined"!=typeof aa&&(!a.X[1]||4!=Zc(a)||2!=$c(a)))if(a.V&&4==Zc(a))rb(a.Qa,0,a);else if(a.dispatchEvent("readystatechange"),4==Zc(a)){a.A=!1;try{var b=$c(a),c,d;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break t;default:d=!1}if(!(c=d)){var e;if(e=0===b){var f=Jc(1,String(a.sa));if(!f&&self.location)var g=self.location.protocol,f=g.substr(0,g.length-1);e=!Qc.test(f?f.toLowerCase():"")}c=e}if(c)a.dispatchEvent("complete"),a.dispatchEvent("success");
|
|
else{var l;try{l=2<Zc(a)?a.a.statusText:""}catch(I){l=""}a.W=l+" ["+$c(a)+"]";Wc(a)}}finally{Xc(a)}}},Xc=function(a,b){if(a.a){Uc(a);var c=a.a,d=a.X[0]?ba:null;a.a=null;a.X=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}},Uc=function(a){a.a&&a.ta&&(a.a.ontimeout=null);"number"==typeof a.Y&&(k.clearTimeout(a.Y),a.Y=null)},Zc=function(a){return a.a?a.a.readyState:0},$c=function(a){try{return 2<Zc(a)?a.a.status:-1}catch(b){return-1}};var ad=function(a,b,c){this.p=a||null;this.Tb=!!c},Z=function(a){if(!a.c&&(a.c=new w,a.g=0,a.p))for(var b=a.p.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," ")):"")}};h=ad.prototype;h.c=null;h.g=null;h.add=function(a,b){Z(this);this.p=null;a=Y(this,a);var c=this.c.get(a);c||this.c.set(a,c=[]);c.push(b);this.g++;return this};
|
|
h.remove=function(a){Z(this);a=Y(this,a);return this.c.Q(a)?(this.p=null,this.g-=this.c.get(a).length,this.c.remove(a)):!1};h.Q=function(a){Z(this);a=Y(this,a);return this.c.Q(a)};h.B=function(){Z(this);for(var a=this.c.q(),b=this.c.B(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};h.q=function(a){Z(this);var b=[];if(n(a))this.Q(a)&&(b=pa(b,this.c.get(Y(this,a))));else{a=this.c.q();for(var c=0;c<a.length;c++)b=pa(b,a[c])}return b};
|
|
h.set=function(a,b){Z(this);this.p=null;a=Y(this,a);this.Q(a)&&(this.g-=this.c.get(a).length);this.c.set(a,[b]);this.g++;return this};h.get=function(a,b){var c=a?this.q(a):[];return 0<c.length?String(c[0]):b};h.toString=function(){if(this.p)return this.p;if(!this.c)return"";for(var a=[],b=this.c.B(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.q(d),f=0;f<d.length;f++){var g=e;""!==d[f]&&(g+="="+encodeURIComponent(String(d[f])));a.push(g)}return this.p=a.join("&")};
|
|
h.clone=function(){var a=new ad;a.p=this.p;this.c&&(a.c=this.c.clone(),a.g=this.g);return a};var Y=function(a,b){var c=String(b);a.Tb&&(c=c.toLowerCase());return c};var bd=function(a,b){this.Gb=a;this.fb=b};bd.prototype.send=function(a,b){if(Qa&&!navigator.onLine)return Zb();var c=new O,d=cd(a,b);d.length>this.fb?c.t({status:"payload-too-big",qa:$b("Encoded hit length == %s, but should be <= %s.",d.length,this.fb)}):Tc(this.Gb,function(){c.C(yc)},d);return c};var cd=function(a,b){var c=new ad;c.add(za.name,a);cc(b,function(a,b){c.add(a.name,b.toString())});return c.toString()};var dd=function(a,b,c,d){this.Qb=a;this.Ob=b;this.Pb=c;this.k=d},ed;dd.prototype.gc=function(a){var b=new J,b=new W(fd(this,b),b);b.set(ic,this.Qb);b.set(dc,1);b.set(ec,this.Ob);b.set(fc,this.Pb);b.set(mc,a);a=window.navigator.language;b.set(hc,a);a=screen.colorDepth+"-bit";b.set(kc,a);a=[screen.width,screen.height].join("x");b.set(lc,a);a=window.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;a=new Da(a.clientWidth,a.clientHeight);a=[a.width,a.height].join("x");b.set(nc,a);return b};
|
|
var fd=function(a,b){return new Bc(a.k,function(a){if(!ed){new L;var d=new tc(new bd("https://www.google-analytics.com/collect",8192)),e=new Fc;ed=new rc(a,new Gc(a,new zc(e,d)))}return new sc(b,ed)},U.Sb())};dd.prototype.cc=function(){return Tb(this.k.ya)};var gd=function(a,b,c,d,e,f){O.call(this,e,f);this.Ca=a;this.Da=[];this.Xa=!!b;this.vb=!!c;this.ub=!!d;for(b=this.Ya=0;b<a.length;b++)P(a[b],q(this.bb,this,b,!0),q(this.bb,this,b,!1));0!=a.length||this.Xa||this.C(this.Da)};t(gd,O);gd.prototype.bb=function(a,b,c){this.Ya++;this.Da[a]=[b,c];this.G||(this.Xa&&b?this.C([a,c]):this.vb&&!b?this.t(c):this.Ya==this.Ca.length&&this.C(this.Da));this.ub&&!b&&(c=null);return c};gd.prototype.t=function(a){gd.I.t.call(this,a);for(a=0;a<this.Ca.length;a++)this.Ca[a].cancel()};
|
|
var hd=function(a){return(new gd(a,!1,!0)).F(function(a){for(var c=[],d=0;d<a.length;d++)c[d]=a[d][1];return c})};var $=function(a){this.D=a;this.O=100;this.Za=[];this.Ea=this.ea=null;this.ya=id(this);this.ya.F(function(){cb(this.D,"b",q(this.wb,this))},this)},id=function(a){return jd(a).F(function(){return this},a)},jd=function(a){return hd([kd(a),ld(a)])};$.prototype.wb=function(){var a=this.ea,b=this.pa();jd(this).F(function(){if(a!=this.ea)throw Error("User ID changed unexpectedly!");b!=this.pa()&&md(this)},this)};var Dc=function(a,b){a.Za.push(b)};
|
|
$.prototype.mc=function(a){this.D.set("analytics.tracking-permitted",a).F(function(){this.Ea=a},this)};$.prototype.pa=function(){var a;if(a=this.Ea)a=k._gaUserPrefs,a=!(a&&a.ioo&&a.ioo());return a};
|
|
var kd=function(a){return a.D.get("analytics.tracking-permitted").F(function(a){this.Ea=void 0!==a?a:!0},a)},ld=function(a){return a.D.get("analytics.user-id").F(function(a){if(!a){a="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("");for(var c=0,d=a.length;c<d;c++)switch(a[c]){case "x":a[c]=Math.floor(16*Math.random()).toString(16);break;case "y":a[c]=(Math.floor(4*Math.random())+8).toString(16)}a=a.join("");this.D.set("analytics.user-id",a)}this.ea=a},a)};$.prototype.lc=function(a){this.O=a};
|
|
var md=function(a){ka(a.Za,function(a){a("analytics.tracking-permitted")})};var nd=function(a){J.call(this);this.La=a;this.D=chrome.storage.local;chrome.storage.onChanged.addListener(q(this.Rb,this))};t(nd,J);nd.prototype.Rb=function(a){od(this,a)&&this.dispatchEvent("b")};var od=function(a,b){return la(ua(b),function(a){return 0==a.lastIndexOf(this.La,0)},a)};nd.prototype.get=function(a){var b=new O,c=this.La+"."+a;this.D.get(c,function(a){var e=chrome.runtime.lastError;e?b.t(e):b.C(a[c])});return b};
|
|
nd.prototype.set=function(a,b){var c=new O,d={};d[this.La+"."+a]=b;this.D.set(d,function(){var a=chrome.runtime.lastError;a?c.t(a):c.C()});return c};var pd=new w;s("goog.async.Deferred",O);s("goog.async.Deferred.prototype.addCallback",O.prototype.F);s("goog.events.EventTarget",J);s("goog.events.EventTarget.prototype.listen",J.prototype.listen);s("analytics.getService",function(a){var b=pd.get(a,null);if(null===b){var b=chrome.runtime.getManifest().version,c;c=new nd("google-analytics");c=new $(c);b=new dd("ca1.4.0",a,b,c);pd.set(a,b)}return b});s("analytics.internal.GoogleAnalyticsService",dd);
|
|
s("analytics.internal.GoogleAnalyticsService.prototype.getTracker",dd.prototype.gc);s("analytics.internal.GoogleAnalyticsService.prototype.getConfig",dd.prototype.cc);s("analytics.internal.ServiceSettings",$);s("analytics.internal.ServiceSettings.prototype.setTrackingPermitted",$.prototype.mc);s("analytics.internal.ServiceSettings.prototype.isTrackingPermitted",$.prototype.pa);s("analytics.internal.ServiceSettings.prototype.setSampleRate",$.prototype.lc);s("analytics.internal.ServiceTracker",W);
|
|
s("analytics.internal.ServiceTracker.prototype.send",W.prototype.send);s("analytics.internal.ServiceTracker.prototype.sendAppView",W.prototype.hc);s("analytics.internal.ServiceTracker.prototype.sendEvent",W.prototype.ic);s("analytics.internal.ServiceTracker.prototype.sendSocial",W.prototype.kc);s("analytics.internal.ServiceTracker.prototype.sendException",W.prototype.jc);s("analytics.internal.ServiceTracker.prototype.sendTiming",W.prototype.jb);
|
|
s("analytics.internal.ServiceTracker.prototype.startTiming",W.prototype.nc);s("analytics.internal.ServiceTracker.Timing",Ec);s("analytics.internal.ServiceTracker.Timing.prototype.send",Ec.prototype.send);s("analytics.internal.ServiceTracker.prototype.forceSessionStart",W.prototype.bc);s("analytics.internal.ServiceTracker.prototype.getEventTarget",W.prototype.dc);s("analytics.HitTypes.APPVIEW","appview");s("analytics.HitTypes.EVENT","event");s("analytics.HitTypes.SOCIAL","social");
|
|
s("analytics.HitTypes.TRANSACTION","transaction");s("analytics.HitTypes.ITEM","item");s("analytics.HitTypes.TIMING","timing");s("analytics.HitTypes.EXCEPTION","exception");s("analytics.Tracker.HitEvent",V);s("analytics.Tracker.HitEvent.EVENT_TYPE","a");s("analytics.Tracker.HitEvent.prototype.getHitType",V.prototype.fc);s("analytics.Tracker.HitEvent.prototype.getHit",V.prototype.ec);sa(Ca,function(a){var b=a.id.replace(/[A-Z]/,"_$&").toUpperCase();s("analytics.Parameters."+b,a)}); })()
|