(function(){var 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)},f="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function g(){g=function(){};f.Symbol||(f.Symbol=ba)}var ca=0;function ba(a){return"jscomp_symbol_"+(a||"")+ca++} function h(){g();var a=f.Symbol.iterator;a||(a=f.Symbol.iterator=f.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return k(this)}});h=function(){}}function k(a){var b=0;return da(function(){return b>b/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,ja)}; function C(a,b){var c=window.GoogleAnalyticsObject||"ga";window[c]=window[c]||function(a){for(var b=[],d=0;dwindow.gaDevIds.indexOf("i5iSjo")&&window.gaDevIds.push("i5iSjo");window[c]("provide",a,b);window.gaplugins=window.gaplugins||{};window.gaplugins[a.charAt(0).toUpperCase()+a.slice(1)]=b}var E={A:1,G:2,H:3,J:4,K:5,L:6,B:7,M:8,C:9,I:10},F=Object.keys(E).length; function G(a,b){a.set("\x26_av","2.4.1");var c=a.get("\x26_au"),c=parseInt(c||"0",16).toString(2);if(c.length6E4*this.timeout||this.c&&this.c.format(a)!=this.c.format(b))?!0:!1};U.prototype.b=function(a){var b=this;return function(c){a(c);var d=c.get("sessionControl");c="start"==d||b.isExpired();var d="end"==d,e=b.a.get();e.hitTime=+new Date;c&&(e.isExpired=!1,e.id=B());d&&(e.isExpired=!0);b.a.set(e)}};var V=30,W=B(); function X(a,b){var c=this;G(a,E.B);document.visibilityState&&(this.a=z({sessionTimeout:V,visibleThreshold:5E3,sendInitialPageview:!1,fieldsObj:{}},b),this.b=a,this.g=document.visibilityState,this.o=null,this.v=!1,this.m=this.m.bind(this),this.f=this.f.bind(this),this.l=this.l.bind(this),this.s=this.s.bind(this),this.c=O(a.get("trackingId"),"plugins/page-visibility-tracker"),ka(this.c,this.s),this.i=ma(a,this.a.sessionTimeout,this.a.timeZone),p(a,"set",this.m),window.addEventListener("unload",this.l), document.addEventListener("visibilitychange",this.f),ia(this.b,function(){if("visible"==document.visibilityState)c.a.sendInitialPageview&&(Y(c,{F:!0}),c.v=!0),c.c.set({time:+new Date,state:"visible",pageId:W,sessionId:c.i.a.get().id});else if(c.a.sendInitialPageview&&c.a.pageLoadsMetricIndex){var a={},a=(a.transport="beacon",a.eventCategory="Page Visibility",a.eventAction="page load",a.eventLabel="(not set)",a["metric"+c.a.pageLoadsMetricIndex]=1,a.nonInteraction=!0,a);c.b.send("event",y(a,c.a.fieldsObj, c.b,c.a.hitFilter))}}))} X.prototype.f=function(){var a=this;if("visible"==document.visibilityState||"hidden"==document.visibilityState){var b=na(this),c={time:+new Date,state:document.visibilityState,pageId:W,sessionId:this.i.a.get().id};"visible"==document.visibilityState&&this.a.sendInitialPageview&&!this.v&&(Y(this),this.v=!0);"hidden"==document.visibilityState&&this.o&&clearTimeout(this.o);this.i.isExpired(b.sessionId)?(la(this.c),"hidden"==this.g&&"visible"==document.visibilityState&&(clearTimeout(this.o),this.o=setTimeout(function(){a.c.set(c); Y(a,{hitTime:c.time})},this.a.visibleThreshold))):(b.pageId==W&&"visible"==b.state&&oa(this,b),this.c.set(c));this.g=document.visibilityState}};function na(a){var b=a.c.get();"visible"==a.g&&"hidden"==b.state&&b.pageId!=W&&(b.state="visible",b.pageId=W,a.c.set(b));return b} function oa(a,b,c){c=(c?c:{}).hitTime;var d={hitTime:c},d=(d?d:{}).hitTime;(b=b.time?(d||+new Date)-b.time:0)&&b>=a.a.visibleThreshold&&(b=Math.round(b/1E3),d={transport:"beacon",nonInteraction:!0,eventCategory:"Page Visibility",eventAction:"track",eventValue:b,eventLabel:"(not set)"},c&&(d.queueTime=+new Date-c),a.a.visibleMetricIndex&&(d["metric"+a.a.visibleMetricIndex]=b),a.b.send("event",y(d,a.a.fieldsObj,a.b,a.a.hitFilter)))} function Y(a,b){var c=b?b:{};b=c.hitTime;var c=c.F,d={transport:"beacon"};b&&(d.queueTime=+new Date-b);c&&a.a.pageLoadsMetricIndex&&(d["metric"+a.a.pageLoadsMetricIndex]=1);a.b.send("pageview",y(d,a.a.fieldsObj,a.b,a.a.hitFilter))}X.prototype.m=function(a){var b=this;return function(c,d){var e={},e="object"==typeof c&&null!==c?c:(e[c]=d,e);e.page&&e.page!==b.b.get("page")&&"visible"==b.g&&b.f();a(c,d)}}; X.prototype.s=function(a,b){a.time!=b.time&&(b.pageId!=W||"visible"!=b.state||this.i.isExpired(b.sessionId)||oa(this,b,{hitTime:a.time}))};X.prototype.l=function(){"hidden"!=this.g&&this.f()};X.prototype.remove=function(){S(this.c);var a=this.i;t(a.f,"sendHitTask",a.b);S(a.a);delete T[a.f.get("trackingId")];t(this.b,"set",this.m);window.removeEventListener("unload",this.l);document.removeEventListener("visibilitychange",this.f)};C("pageVisibilityTracker",X); function Z(a,b){G(a,E.A);this.a=z({},b);this.g=a;this.b=this.a.stripQuery&&this.a.queryDimensionIndex?"dimension"+this.a.queryDimensionIndex:null;this.f=this.f.bind(this);this.c=this.c.bind(this);p(a,"get",this.f);p(a,"buildHitTask",this.c)}Z.prototype.f=function(a){var b=this;return function(c){if("page"==c||c==b.b){var d={location:a("location"),page:a("page")};return pa(b,d)[c]}return a(c)}}; Z.prototype.c=function(a){var b=this;return function(c){var d=pa(b,{location:c.get("location"),page:c.get("page")});c.set(d,null,!0);a(c)}}; function pa(a,b){var c=w(b.page||b.location),d=c.pathname;if(a.a.indexFilename){var e=d.split("/");a.a.indexFilename==e[e.length-1]&&(e[e.length-1]="",d=e.join("/"))}"remove"==a.a.trailingSlash?d=d.replace(/\/+$/,""):"add"==a.a.trailingSlash&&(/\.\w+$/.test(d)||"/"==d.substr(-1)||(d+="/"));d={page:d+(a.a.stripQuery?qa(a,c.search):c.search)};b.location&&(d.location=b.location);a.b&&(d[a.b]=c.search.slice(1)||"(not set)");return"function"==typeof a.a.urlFieldsFilter?(b=a.a.urlFieldsFilter(d,w),c={page:b.page, location:b.location},a.b&&(c[a.b]=b[a.b]),c):d}function qa(a,b){if(Array.isArray(a.a.queryParamsWhitelist)){var c=[];b.slice(1).split("\x26").forEach(function(b){var d=l(b.split("\x3d"));b=d.next().value;d=d.next().value;-1