(function(){var d=window,e=document,f="getItem",k="getData",m="indexOf",n="length",p="prototype",r="localStorage",s="substring",u="",v=" ",w=",",y="; expires=",z="=",A="_GPSLSC=",B="img",C="link",D="load",E="on",F="pagespeed_lsc_expiry",G="pagespeed_lsc_hash",H="pagespeed_lsc_url",I="pagespeed_lsc_url:",J="script",K="style",L="stylesheet",M="text/css";d.pagespeed=d.pagespeed||{};var N=d.pagespeed,O=function(){this.a=!0};O[p].b=function(a){a=a[s](0,a[m](v));return a!=u&&a>=Date.now()};O[p].hasExpired=O[p].b;
O[p].getData=function(a){return a[s](a[m](v,a[m](v)+1)+1)};O[p].getData=O[p][k];O[p].c=function(a){var b=e.getElementsByTagName(J),b=b[b[n]-1];b.parentNode.replaceChild(a,b)};O[p].replaceLastScript=O[p].c;O[p].h=function(a){var b=d[r][f](a),c=e.createElement(b?K:C);b&&!this.b(b)?(c.type=M,c.appendChild(e.createTextNode(this[k](b)))):(c.rel=L,c.href=a,this.a=!0);this.c(c)};O[p].inlineCss=O[p].h;
O[p].i=function(a){var b=d[r][f](a),c=e.createElement(B);b&&!this.b(b)?c.src=this[k](b):(c.src=a,this.a=!0);for(var b=1,g=arguments[n];b<g;++b){var h=arguments[b][m](z);c[arguments[b][s](0,h)]=arguments[b][s](h+1)}this.c(c)};O[p].inlineImg=O[p].i;
O[p].e=function(a,b){for(var c=e.getElementsByTagName(a),g=0,h=c[n];g<h;++g){var j=c[g],t=j.getAttribute(G);if(t){var q=j.getAttribute(H),l=j.getAttribute(F),l=l?(new Date(l)).getTime():u;(j=b(j))||(j=this[k](d[r][f](q)));d[r].setItem(I+q,l+v+t+v+j);this.a=!0}}};O[p].g=function(){this.e(B,function(a){return a.src});this.e(K,function(a){return a.firstChild?a.firstChild.nodeValue:null})};
O[p].f=function(){if(this.a){for(var a=[],b=[],c=0,g=(new Date).getTime(),h=0,j=d[r][n];h<j;++h){var t=d[r].key(h);if(!t[m](I)){var q=d[r][f](t),l=q[m](v),x=q[s](0,l);if(x)if(x>=g){a.push(t);continue}else if(x<c||0==c)c=x;b.push(q[s](l+1,q[m](v,l+1)))}}g=u;c&&(g=y+(new Date(c)).toUTCString());e.cookie=A+b.join(w)+g;h=0;for(j=a[n];h<j;++h)d[r].removeItem(a[h]);this.a=!1}};
N.d=function(a,b,c){if(a.addEventListener)a.addEventListener(b,c,!1);else if(a.attachEvent)a.attachEvent(E+b,c);else{var g=a[E+b];a[E+b]=function(){c.call(this);g&&g.call(this)}}};N.j=function(){if(d[r]){var a=new O;N.localStorageCache=a;N.d(d,D,function(){a.g()});N.d(d,D,function(){a.f()})}};N.localStorageCacheInit=N.j;})();
