(function(){for(var h,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError("ES3 does not support getters and setters.");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},k="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,m=["String","prototype","repeat"],n=0;n<m.length-1;n++){var p=m[n];p in k||(k[p]={});k=k[p]}
var ba=m[m.length-1],q=k[ba],r=q?q:function(a){var b;if(null==this)throw new TypeError("The 'this' value for String.prototype.repeat must not be null or undefined");b=this+"";if(0>a||1342177279<a)throw new RangeError("Invalid count value");a|=0;for(var c="";a;)if(a&1&&(c+=b),a>>>=1)b+=b;return c};r!=q&&null!=r&&aa(k,ba,{configurable:!0,writable:!0,value:r});var t=t||{},u=this;function ca(){}
function v(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}function w(a){return"string"==typeof a}var da="closure_uid_"+(1E9*Math.random()>>>0),ea=0;function fa(a,b,c){return a.call.apply(a.bind,arguments)}function ga(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)}}
function x(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?fa:ga;return x.apply(null,arguments)}var ha=Date.now||function(){return+new Date};function y(a,b){function c(){}c.prototype=b.prototype;a.X=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Z=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};function z(a){if(Error.captureStackTrace)Error.captureStackTrace(this,z);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}y(z,Error);z.prototype.name="CustomError";function ia(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&1<c.length;)d+=c.shift()+e.shift();return d+c.join("%s")}var ja=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function A(a,b){return a<b?-1:a>b?1:0};function B(a,b){b.unshift(a);z.call(this,ia.apply(null,b));b.shift()}y(B,z);B.prototype.name="AssertionError";function ka(a,b){throw new B("Failure"+(a?": "+a:""),Array.prototype.slice.call(arguments,1));};var la=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(w(a))return w(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};function ma(a){var b;a:{b=na;for(var c=a.length,d=w(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){b=e;break a}b=-1}return 0>b?null:w(a)?a.charAt(b):a[b]};var C;a:{var oa=u.navigator;if(oa){var pa=oa.userAgent;if(pa){C=pa;break a}}C=""};var qa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ra(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<qa.length;f++)c=qa[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function D(a){D[" "](a);return a}D[" "]=ca;function sa(a,b){var c=ta;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};var ua=-1!=C.indexOf("Opera"),E=-1!=C.indexOf("Trident")||-1!=C.indexOf("MSIE"),va=-1!=C.indexOf("Edge"),wa=-1!=C.indexOf("Gecko")&&!(-1!=C.toLowerCase().indexOf("webkit")&&-1==C.indexOf("Edge"))&&!(-1!=C.indexOf("Trident")||-1!=C.indexOf("MSIE"))&&-1==C.indexOf("Edge"),xa=-1!=C.toLowerCase().indexOf("webkit")&&-1==C.indexOf("Edge");function ya(){var a=u.document;return a?a.documentMode:void 0}var F;
a:{var G="",H=function(){var a=C;if(wa)return/rv\:([^\);]+)(\)|;)/.exec(a);if(va)return/Edge\/([\d\.]+)/.exec(a);if(E)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(xa)return/WebKit\/(\S+)/.exec(a);if(ua)return/(?:Version)[ \/]?(\S+)/.exec(a)}();H&&(G=H?H[1]:"");if(E){var za=ya();if(null!=za&&za>parseFloat(G)){F=String(za);break a}}F=G}var ta={};
function Aa(a){return sa(a,function(){for(var b=0,c=ja(String(F)).split("."),d=ja(String(a)).split("."),e=Math.max(c.length,d.length),f=0;!b&&f<e;f++){var g=c[f]||"",l=d[f]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(0==g[0].length&&0==l[0].length)break;b=A(0==g[1].length?0:parseInt(g[1],10),0==l[1].length?0:parseInt(l[1],10))||A(0==g[2].length,0==l[2].length)||A(g[2],l[2]);g=g[3];l=l[3]}while(!b)}return 0<=b})}var Ba;var Ca=u.document;
Ba=Ca&&E?ya()||("CSS1Compat"==Ca.compatMode?parseInt(F,10):5):void 0;var Da;(Da=!E)||(Da=9<=Number(Ba));var Ea=Da,Fa=E&&!Aa("9");function Ga(){0!=Ha&&(this[da]||(this[da]=++ea));this.F=this.F;this.S=this.S}var Ha=0;Ga.prototype.F=!1;function I(a,b){this.type=a;this.a=this.target=b;this.N=!0}I.prototype.b=function(){this.N=!1};function J(a,b){I.call(this,a?a.type:"");this.f=this.a=this.target=null;if(a){this.type=a.type;this.target=a.target||a.srcElement;this.a=b;var c=a.relatedTarget;if(c&&wa)try{D(c.nodeName)}catch(d){}this.f=a;a.defaultPrevented&&this.b()}}y(J,I);J.prototype.b=function(){J.X.b.call(this);var a=this.f;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Fa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var K="closure_listenable_"+(1E6*Math.random()|0),Ia=0;function Ja(a,b,c,d,e){this.listener=a;this.a=null;this.src=b;this.type=c;this.v=!!d;this.w=e;++Ia;this.o=this.u=!1}function Ka(a){a.o=!0;a.listener=null;a.a=null;a.src=null;a.w=null};function La(a){this.src=a;this.a={};this.b=0}function Ma(a,b,c,d,e){var f=b.toString();b=a.a[f];b||(b=a.a[f]=[],a.b++);var g=Oa(b,c,d,e);-1<g?(a=b[g],a.u=!1):(a=new Ja(c,a.src,f,!!d,e),a.u=!1,b.push(a));return a}function Pa(a,b){var c=b.type;if(c in a.a){var d=a.a[c],e=la(d,b),f;(f=0<=e)&&Array.prototype.splice.call(d,e,1);f&&(Ka(b),a.a[c].length||(delete a.a[c],a.b--))}}function Oa(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.o&&f.listener==b&&f.v==!!c&&f.w==d)return e}return-1};var Qa="closure_lm_"+(1E6*Math.random()|0),Ra={},Sa=0;
function L(a,b,c,d,e){if("array"==v(b))for(var f=0;f<b.length;f++)L(a,b[f],c,d,e);else if(c=Ta(c),a&&a[K])Ma(a.f,String(b),c,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,g=M(a);g||(a[Qa]=g=new La(a));c=Ma(g,b,c,d,e);if(!c.a){d=Ua();c.a=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,f);else if(a.attachEvent)a.attachEvent(Va(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Sa++}}}
function Ua(){var a=Wa,b=Ea?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function Xa(a,b,c,d,e){if("array"==v(b))for(var f=0;f<b.length;f++)Xa(a,b[f],c,d,e);else(c=Ta(c),a&&a[K])?(a=a.f,b=String(b).toString(),b in a.a&&(f=a.a[b],c=Oa(f,c,d,e),-1<c&&(Ka(f[c]),Array.prototype.splice.call(f,c,1),f.length||(delete a.a[b],a.b--)))):a&&(a=M(a))&&(b=a.a[b.toString()],a=-1,b&&(a=Oa(b,c,!!d,e)),(c=-1<a?b[a]:null)&&Ya(c))}
function Ya(a){if("number"!=typeof a&&a&&!a.o){var b=a.src;if(b&&b[K])Pa(b.f,a);else{var c=a.type,d=a.a;b.removeEventListener?b.removeEventListener(c,d,a.v):b.detachEvent&&b.detachEvent(Va(c),d);Sa--;(c=M(b))?(Pa(c,a),c.b||(c.src=null,b[Qa]=null)):Ka(a)}}}function Va(a){return a in Ra?Ra[a]:Ra[a]="on"+a}function Za(a,b,c,d){var e=!0;if(a=M(a))if(b=a.a[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.v==c&&!f.o&&(f=$a(f,d),e=e&&!1!==f)}return e}
function $a(a,b){var c=a.listener,d=a.w||a.src;a.u&&Ya(a);return c.call(d,b)}
function Wa(a,b){if(a.o)return!0;if(!Ea){var c;if(!(c=b))a:{c=["window","event"];for(var d=u,e;e=c.shift();)if(null!=d[e])d=d[e];else{c=null;break a}c=d}e=c;c=new J(e,this);d=!0;if(!(0>e.keyCode||void 0!=e.returnValue)){a:{var f=!1;if(!e.keyCode)try{e.keyCode=-1;break a}catch(Na){f=!0}if(f||void 0==e.returnValue)e.returnValue=!0}e=[];for(f=c.a;f;f=f.parentNode)e.push(f);for(var f=a.type,g=e.length-1;0<=g;g--){c.a=e[g];var l=Za(e[g],f,!0,c),d=d&&l}for(g=0;g<e.length;g++)c.a=e[g],l=Za(e[g],f,!1,c),
d=d&&l}return d}return $a(a,new J(b,this))}function M(a){a=a[Qa];return a instanceof La?a:null}var ab="__closure_events_fn_"+(1E9*Math.random()>>>0);function Ta(a){if("function"==v(a))return a;a[ab]||(a[ab]=function(b){return a.handleEvent(b)});return a[ab]};function N(){Ga.call(this);this.f=new La(this);this.R=this}y(N,Ga);N.prototype[K]=!0;N.prototype.removeEventListener=function(a,b,c,d){Xa(this,a,b,c,d)};function O(a,b){var c=a.R,d=b,e=d.type||d;if(w(d))d=new I(d,c);else if(d instanceof I)d.target=d.target||c;else{var f=d,d=new I(e,c);ra(d,f)}f=!0;c=d.a=c;f=bb(c,e,!0,d)&&f;bb(c,e,!1,d)}
function bb(a,b,c,d){b=a.f.a[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.o&&g.v==c){var l=g.listener,Na=g.w||g.src;g.u&&Pa(a.f,g);e=!1!==l.call(Na,d)&&e}}return e&&0!=d.N};function cb(a,b,c){if("function"==v(a))c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:u.setTimeout(a,b||0)};function db(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function eb(a){a=String(a);if(db(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};function P(a,b){this.b={};this.a=[];this.f=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 if(a){var e;if(a instanceof P)e=a.D(),d=a.U();else{var c=[],f=0;for(e in a)c[f++]=e;e=c;c=[];f=0;for(d in a)c[f++]=a[d];d=c}for(c=0;c<e.length;c++)this.set(e[c],d[c])}}h=P.prototype;h.U=function(){fb(this);for(var a=[],b=0;b<this.a.length;b++)a.push(this.b[this.a[b]]);return a};h.D=function(){fb(this);return this.a.concat()};
h.clear=function(){this.b={};this.f=this.a.length=0};function fb(a){if(a.f!=a.a.length){for(var b=0,c=0;b<a.a.length;){var d=a.a[b];Object.prototype.hasOwnProperty.call(a.b,d)&&(a.a[c++]=d);b++}a.a.length=c}if(a.f!=a.a.length){for(var e={},c=b=0;b<a.a.length;)d=a.a[b],Object.prototype.hasOwnProperty.call(e,d)||(a.a[c++]=d,e[d]=1),b++;a.a.length=c}}h.get=function(a,b){return Object.prototype.hasOwnProperty.call(this.b,a)?this.b[a]:b};
h.set=function(a,b){Object.prototype.hasOwnProperty.call(this.b,a)||(this.f++,this.a.push(a));this.b[a]=b};h.forEach=function(a,b){for(var c=this.D(),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 P(this)};function gb(a,b,c,d,e){this.reset(a,b,c,d,e)}gb.prototype.a=null;var hb=0;gb.prototype.reset=function(a,b,c,d,e){"number"==typeof e||hb++;d||ha();this.b=b;delete this.a};function ib(a){this.g=a;this.b=this.f=this.a=null}function Q(a,b){this.name=a;this.value=b}Q.prototype.toString=function(){return this.name};var jb=new Q("SEVERE",1E3),kb=new Q("CONFIG",700),lb=new Q("FINE",500);function mb(a){if(a.f)return a.f;if(a.a)return mb(a.a);ka("Root logger has no level set.");return null}
ib.prototype.log=function(a,b,c){if(a.value>=mb(this).value)for("function"==v(b)&&(b=b()),a=new gb(a,String(b),this.g),c&&(a.a=c),c="log:"+a.b,u.console&&(u.console.timeStamp?u.console.timeStamp(c):u.console.markTimeline&&u.console.markTimeline(c)),u.msWriteProfilerMark&&u.msWriteProfilerMark(c),c=this;c;)c=c.a};var nb={},R=null;
function ob(a){R||(R=new ib(""),nb[""]=R,R.f=kb);var b;if(!(b=nb[a])){b=new ib(a);var c=a.lastIndexOf("."),d=a.substr(c+1),c=ob(a.substr(0,c));c.b||(c.b={});c.b[d]=b;b.a=c;nb[a]=b}return b};function S(a,b){a&&a.log(lb,b,void 0)};function pb(){}pb.prototype.a=null;function qb(a){var b;(b=a.a)||(b={},rb(a)&&(b[0]=!0,b[1]=!0),b=a.a=b);return b};var sb;function tb(){}y(tb,pb);function ub(a){return(a=rb(a))?new ActiveXObject(a):new XMLHttpRequest}function rb(a){if(!a.b&&"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.b=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.b}sb=new tb;var vb=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function T(a){N.call(this);this.headers=new P;this.C=a||null;this.b=!1;this.B=this.c=null;this.a=this.P=this.l="";this.g=this.H=this.j=this.G=!1;this.i=0;this.m=null;this.J=wb;this.A=this.L=!1}y(T,N);var wb="",xb=T.prototype,yb=ob("goog.net.XhrIo");xb.h=yb;var zb=/^https?$/i,Ab=["POST","PUT"];
function Bb(a,b){if(a.c)throw Error("[goog.net.XhrIo] Object is active with another request="+a.l+"; newUri="+b);a.l=b;a.a="";a.P="GET";a.G=!1;a.b=!0;a.c=a.C?ub(a.C):ub(sb);a.B=a.C?qb(a.C):qb(sb);a.c.onreadystatechange=x(a.I,a);try{S(a.h,U(a,"Opening Xhr")),a.H=!0,a.c.open("GET",String(b),!0),a.H=!1}catch(f){S(a.h,U(a,"Error opening Xhr: "+f.message));Cb(a,f);return}var c=a.headers.clone(),d=ma(c.D()),e=u.FormData&&!1;!(0<=la(Ab,"GET"))||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");
c.forEach(function(a,b){this.c.setRequestHeader(b,a)},a);a.J&&(a.c.responseType=a.J);"withCredentials"in a.c&&a.c.withCredentials!==a.L&&(a.c.withCredentials=a.L);try{Db(a),0<a.i&&(a.A=Eb(a.c),S(a.h,U(a,"Will abort after "+a.i+"ms if incomplete, xhr2 "+a.A)),a.A?(a.c.timeout=a.i,a.c.ontimeout=x(a.K,a)):a.m=cb(a.K,a.i,a)),S(a.h,U(a,"Sending request")),a.j=!0,a.c.send(""),a.j=!1}catch(f){S(a.h,U(a,"Send error: "+f.message)),Cb(a,f)}}
function Eb(a){return E&&Aa(9)&&"number"==typeof a.timeout&&void 0!==a.ontimeout}function na(a){return"content-type"==a.toLowerCase()}T.prototype.K=function(){"undefined"!=typeof t&&this.c&&(this.a="Timed out after "+this.i+"ms, aborting",S(this.h,U(this,this.a)),O(this,"timeout"),this.abort(8))};function Cb(a,b){a.b=!1;a.c&&(a.g=!0,a.c.abort(),a.g=!1);a.a=b;Fb(a);Gb(a)}function Fb(a){a.G||(a.G=!0,O(a,"complete"),O(a,"error"))}
T.prototype.abort=function(){this.c&&this.b&&(S(this.h,U(this,"Aborting")),this.b=!1,this.g=!0,this.c.abort(),this.g=!1,O(this,"complete"),O(this,"abort"),Gb(this))};T.prototype.I=function(){this.F||(this.H||this.j||this.g?Hb(this):this.T())};T.prototype.T=function(){Hb(this)};
function Hb(a){if(a.b&&"undefined"!=typeof t)if(a.B[1]&&4==V(a)&&2==W(a))S(a.h,U(a,"Local request error detected and ignored"));else if(a.j&&4==V(a))cb(a.I,0,a);else if(O(a,"readystatechange"),4==V(a)){S(a.h,U(a,"Request complete"));a.b=!1;try{if(Ib(a))O(a,"complete"),O(a,"success");else{var b;try{b=2<V(a)?a.c.statusText:""}catch(c){S(a.h,"Can not get status: "+c.message),b=""}a.a=b+" ["+W(a)+"]";Fb(a)}}finally{Gb(a)}}}
function Gb(a){if(a.c){Db(a);var b=a.c,c=a.B[0]?ca:null;a.c=null;a.B=null;O(a,"ready");try{b.onreadystatechange=c}catch(d){(a=a.h)&&a.log(jb,"Problem encountered resetting onreadystatechange: "+d.message,void 0)}}}function Db(a){a.c&&a.A&&(a.c.ontimeout=null);"number"==typeof a.m&&(u.clearTimeout(a.m),a.m=null)}
function Ib(a){var b=W(a),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}if(!c){if(b=!b)a=String(a.l).match(vb)[1]||null,!a&&u.self&&u.self.location&&(a=u.self.location.protocol,a=a.substr(0,a.length-1)),b=!zb.test(a?a.toLowerCase():"");c=b}return c}function V(a){return a.c?a.c.readyState:0}function W(a){try{return 2<V(a)?a.c.status:-1}catch(b){return-1}}function U(a,b){return b+" ["+a.P+" "+a.l+" "+W(a)+"]"};function Jb(a){this.b=a||new T;this.a=[];a=document.getElementById("stat").textContent.split("\n");for(var b=0;b<a.length;++b){var c=a[b].split(":");2>c.length||this.a.push({name:c[0].trim(),value:c[1].trim()})}this.j=this.a.length;this.m={statsName:0};this.s={statsName:0};this.i="";this.l=this.f=this.g=!1;a=document.createElement("div");a.style.overflow="hidden";a.style.clear="both";b=document.createElement("div");b.id="ui-div";b.innerHTML='<table id="ui-table" border=1 style="float:left; border-collapse: collapse;border-color:silver;"><tr valign="center"><td>Auto refresh (every 5 seconds): <input type="checkbox" id="auto-refresh" '+
(this.g?"checked":"")+'></td><td>&nbsp;&nbsp;&nbsp;&nbsp;Filter: <input id="text-filter" type="text" size="70"></td></tr></table>';a.appendChild(b);b=document.createElement("div");b.id="num";b.className="pagespeed-show-number";a.appendChild(b);document.body.insertBefore(a,document.getElementById("stat"));Kb(this)}h=Jb.prototype;h.Y=function(){this.g=!this.g};h.O=function(){this.f=!this.f;Lb(this)};h.W=function(a){this.i=a.value;Lb(this)};
function Kb(a,b){document.getElementById("num").textContent="The number of statistics: "+(void 0!=b?b:a.a.length).toString()+"/"+a.j}h.error=function(){var a=this.a;if("array"!=v(a))for(var b=a.length-1;0<=b;b--)delete a[b];this.j=a.length=0;Kb(this);document.getElementById("stat").textContent="Sorry, failed to update the statistics. Please wait and try again later."};
function Lb(a){a.f?Mb(a):a.a.sort(Nb);var b;var c=a.a,d=c.length;if(0<d){b=Array(d);for(var e=0;e<d;e++)b[e]=c[e]}else b=[];if(a.i)for(e=b.length-1;0<=e;--e)b[e].name&&-1!=b[e].name.toLowerCase().indexOf(a.i.toLowerCase())||b.splice(e,1);Kb(a,b.length);c=document.createElement("table");for(e=0;e<b.length;++e){var f=c.insertRow(-1),d=f.insertCell(0);d.textContent=b[e].name;d.className="pagespeed-stats-name";d=f.insertCell(1);d.textContent=b[e].value;d.className="pagespeed-stats-value";d=f.insertCell(2);
d.textContent=a.s[b[e].name].toString();d.className="pagespeed-stats-number-of-changes"}b=c.createTHead().insertRow(0);d=b.insertCell(0);d.innerHTML='Name <input type="checkbox" id="sort-alpha" title="Sort in alphabetical order."'+(a.f?"":"checked")+">";d.className="pagespeed-stats-first-column";b.insertCell(1).textContent="Value";d=b.insertCell(2);d.innerHTML='Number of changes <input type="checkbox" id="sort-freq" title="Sort by the number of changes(descending order)."'+(a.f?"checked":"")+">";
d.title="How many times the value changes during the auto-refresh.\nThe number of changes only accumulates when auto-refresh is on.";d.className="pagespeed-stats-third-column";d=document.getElementById("stat");d.innerHTML="";d.appendChild(c);L(document.getElementById("sort-freq"),"change",x(a.O,a));L(document.getElementById("sort-alpha"),"change",x(a.O,a))}function Nb(a,b){return a.name>b.name?1:a.name<b.name?-1:0}
function Mb(a){a.a.sort(x(function(a,c){var b=this.s[a.name],e=this.s[c.name];return e!=b?e-b:Nb(a,c)},a))}h.M=function(){if(!this.b.c&&(!this.l||this.g)){this.l=!0;var a=location.pathname,b=a.lastIndexOf("/",a.length-2);Bb(this.b,0<b?a.substring(0,b)+"/stats_json":a+"/stats_json")}};
h.V=function(){if(Ib(this.b)){var a;var b=this.b;a=b.c?eb(b.c.responseText):void 0;b=a.variables;a=a.maxlength;if("object"!=v(b)||"number"!=v(a))this.error();else{a=[];for(var c in b)if("_"!=c[c.length-1]){var d=c.replace(/-/g,"_");"_"==d[0]&&(d=d.substring(1));a.push({name:d,value:b[c].toString()});var e=b[c],f=this.s[d];void 0==f?this.s[d]=e?1:0:e!=this.m[d]&&(this.s[d]=f+1);this.m[d]=e}this.a=a;this.j=a.length;Lb(this)}}else c=this.b,console.log(w(c.a)?c.a:String(c.a)),this.error()};
function Ob(){L(window,"load",function(){var a=new Jb,b=document.getElementById("text-filter");L(b,"keyup",x(a.W,a,b));L(document.getElementById("auto-refresh"),"change",x(a.Y,a));setInterval(x(a.M,a),5E3);L(a.b,"complete",x(a.V,a));a.M()})}var X=["pagespeed","Statistics","Start"],Y=u;X[0]in Y||!Y.execScript||Y.execScript("var "+X[0]);for(var Z;X.length&&(Z=X.shift());)X.length||void 0===Ob?Y[Z]?Y=Y[Z]:Y=Y[Z]={}:Y[Z]=Ob;})();
