var Gridsum;(function(a){function d(a){return"string"==typeof a}var b=document,l=Math;a.b={lower:function(a){return a&&d(a)?a.toLowerCase():a},indexOf:function(a,b,k){if(a){if(a.indexOf)return a.indexOf(b,k);if(a.length)for(k=k||0;k>2);return k&2147483647},za:function(){return l.round((new Date).getTimezoneOffset()/-60)+""},aa:function(a){var b,k=[];for(b=0;bf;f++){var d=v.find(a,b[f]+C+"=","&",g);if(null!=d)return c?n(d):d}return null},find:function(a,b,g,c,f){a=v.gb(a,b,g,c,f);b=a.length;return 0=c?(c=B.substring(c,n),n+=g.length):(c=B.substring(c),n=-1)):(c=B.substring(c),n=-1));if(!c)break;k.push(d?c:a.b.trim(c))}return k},$:function(){return(new Date).getTime()+36E5*Number(a.b.za())},uc:function(a,b,g){g=f(g||p.pathname);b=f(b);w(a)||(a=[a]);for(var c=0;c]+>/ig,"")):null},Z:function(a,b){a=v.J(a);var f="";if(a&&a.innerHTML)for(var c=a.innerHTML,d=c.indexOf(b+'="');-1!=d;)var d=d+(b.length+2),m=c.indexOf('"',d),f=f+c.substr(d,m-d),c=c.substr(m),d=c.indexOf(b+'="');return f},A:function(a,b,g,c,d){var k;g=f(g);a=a&&a.parentNode;var l=void 0===b.target||q(b.target)?b:b.target;do{b=!0;if(!g||f(l.tagName)==g)for(k in b=!1,c)if(z(c,k)&&0>m(f(l[k]||l.getAttribute(k)),f(c[k]))){b=!0;break}if(b)l=l.parentNode;else return l;if(0==d)break;d--}while(l&&l!=a&&l.getAttribute);return null},f:function(b,f,g){try{g=g||{};for(var c=0;ck;k++)if(d=this.pa[k].get(a)){for(l=0;4>l;l++)k!=l&&this.pa[l].set(a,d,63072E3);return d}return b||null};b.prototype.set=function(a,b,d,k,l,p){if(a){var q;for(q=0;4>q;q++)this.pa[q].set(a,b,d,k,l,p)}};b.prototype.remove=function(a){this.pa[3].remove(a)};return b}();a.Lb=b;var l=function(){function b(a){this.a=a;this.I=["_gscu"]}b.prototype.get=function(b){try{if(0<=a.b.indexOf(this.I,b)){var k=d.localStorage;if(k)return k.getItem(a.b.o(b,this.a))}}catch(l){}return null};b.prototype.set=function(b,k){try{if(0<=a.b.indexOf(this.I,b)){var l=d.localStorage;l&&l.setItem(a.b.o(b,this.a),k)}}catch(n){}};return b}(),p=function(){function b(a){this.a=a;this.I=["_gscu"]}b.prototype.get=function(b){try{if(0<=a.b.indexOf(this.I,b)){var k=d.sessionStorage;if(k)return k.getItem(a.b.o(b,this.a))}}catch(l){}return null};b.prototype.set=function(b,k){try{if(0<=a.b.indexOf(this.I,b)){var l=d.sessionStorage;l&&l.setItem(a.b.o(b,this.a),k)}}catch(n){}};return b}(),u=function(){function b(a){this.a=a;this.I=["_gscu"]}b.prototype.get=function(b){try{if(0<=a.b.indexOf(this.I,b))return this.hc(a.b.o(b,this.a),d.gstempobj)}catch(k){}return null};b.prototype.set=function(b,k){try{0<=a.b.indexOf(this.I,b)&&(d.gstempobj=this.replace(d.gstempobj,a.b.o(b,this.a),k))}catch(l){}};b.prototype.replace=function(a,b,d){if(-1=this.Aa(a,void 0,void 0).length};b.prototype.send=function(a,e,c){if(a)if(c)this.V(a,e,c);else{c=this.a.oa;for(var b=0;bd.F?0:d.F;c.f(g,"SendingFailed",{cmd:e.gscmd,url:h})};f.onload=function(){d.F--;d.F=0>d.F?0:d.F;void 0!=e.dedupid&&d.Lc(e.dedupid);if(0==d.F){var a=d.Ic();a&&(a.obj.gsdelay=c.$()-a.obj.gsltime,d.send(a.obj,a.noEncode,a.destUrl))}};f.src=b}};h.prototype.appendData=function(e,a,h){try{var d=this.Ka();100>d.length&&(d.push({obj:e,noEncode:a,destUrl:h}),b.localStorage.setItem(c.o("gsfailed",this.a),JSON.stringify(d)))}catch(f){}};h.prototype.Ic=function(){try{var e=this.Ka(),a=e.splice(0,1)[0];b.localStorage.setItem(c.o("gsfailed",this.a),JSON.stringify(e));return a}catch(h){}return null};h.prototype.Lc=function(e){try{var a=this.Ka(),h;for(h=0;ha[c].value.length&&(c=b);c!==e&&(b=a[c],a[c]=a[e],a[e]=b)}return a};a.Nb=function(b,e){for(var d=[],f=0;f=h.length)return h;var f="eqid wd word q p query w search keyword kw".split(" "),g=h.indexOf("?"),l=h.substr(0,g);if(-1!==g){var k=h.length;h=h.substr(g+1).split("&");for(var g=T.ic(h),g=a.Nb(g,f),m=0;m=k)return l+"?"+h.join("&");var n=g[m].value,q=n.substr(0,n.length/2);h[g[m].index]=g[m].key+"="+q;k-=n.length-q.length}for(g=h.length-1;0<=g&&!(700>=k);g--)-1===c.indexOf(f,h[g].split("=")[0])&&(k=k-h[g].length-1,h.splice(g,1));return l+"?"+h.join("&")}return h};return a}();a.dd=J;var R=function(){function d(a){this.a=a;this.N=a.N;this.origin=a.origin}d.prototype.isEnabled=function(){return this.a.H?100==this.a.Ga?!0:m.round(1E4*m.random())<100*this.a.Ga:!1};d.prototype.Xc=function(){if(this.a.ga){var a=(c.jb()-this.a.ga)/2;this.offsetX=0E||(E=0);a.h.execHook("heatmap.send",A,d,e,x,f,k);if(!k.cancel){x=f.button;c.Da()&&(1==x?x=0:4==x&&(x=1));A.btn=x;x=c.A(null,f,"A",null,3);if(null!=x)A.lk=x.href,A.lt=c.Z(x,"title")+x.title||c.Z(x,"alt")||c.ia(x),k=c.C(x),k=this.C(k.x,k.y),A.lx=k.x,A.ly=k.y,A.lw=m.round(x.offsetWidth),A.lh=m.round(x.offsetHeight);else if(this.a.Bc)return;x=c.A(null,f,null,{gsregion:""});null!=x&&(k=g(x.getAttribute("gsregion")),-1k&&(A.re=k,"1"==x.getAttribute("gsposfixed")&&(k=c.C(x),k=this.C(k.x,k.y),d-=k.x,e-=k.y),x=c.A(null,f,null,{gssnapshot:""})))&&(E=g(x.getAttribute("gssnapshot")),0>E||255e&&(e=0);this.duration=e};h.sendHeartbeat=function(e,a,b){this.lc||(this.trackHeartbeat(e,a),this.wb=c.$(),b||(this.lc=1))};h.ta=function(e){e.gsst=m.max(u?u.scrollTop:0,l.body?l.body.scrollTop:0);e.gswh=this.a.Yc||b.innerHeight||(u?u.clientHeight:null)};h.init=function(){var e=this;if(e.tc)e.g.U();else{e.g=new Q(e.a);e.referrer=new J;e.url=new P(e.a);e.m=new S(e.a);e.sender=e.a.xb?new O(e.a):new H(e.a);e.H=new R(e.a);e.g.U();if(e.a.qb){var d=new a.Zc(e.a);d.kd(function(){var a=d.get("_gscu");a||(a=c.l(),d.set("_gscu",a));e.trackJunctionPoint(a,4)});d.ed()}var f,g=a.h.plugins;for(f=0;fg;g++)void 0!=document[f[g]+"Hidden"]&&(m=f[g]);void 0!=document.hidden&&(m="");"-"==m?c.f(e.c,"Page visibility is not supported on Cordova."):c.observe(l,""==m?"visibilitychange":m+"visibilitychange",function(){if("hidden"==document[""==m?"visibilityState":m+"VisibilityState"])e.sendHeartbeat(void 0,void 0,!0);else if("visible"==document[""==m?"visibilityState":m+"VisibilityState"]){if(void 0!=e.wb&&e.wb+3E4a||3600