Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autotrack

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autotrack - npm Package Compare versions

Comparing version 2.3.3 to 2.4.0

test/unit/plugins/clean-url-tracker-test.js

122

autotrack.js

@@ -1,62 +0,62 @@

(function(){var f,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;function ba(){ba=function(){};k.Symbol||(k.Symbol=ca)}var da=0;function ca(a){return"jscomp_symbol_"+(a||"")+da++}
function l(){ba();var a=k.Symbol.iterator;a||(a=k.Symbol.iterator=k.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});l=function(){}}function ea(a){var b=0;return fa(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function fa(a){l();a={next:a};a[k.Symbol.iterator]=function(){return this};return a}
function m(a){if(!(a instanceof Array)){l();var b=a[Symbol.iterator];a=b?b.call(a):ea(a);for(var c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}function ha(a,b){function c(){}c.prototype=b.prototype;a.ha=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}
var n=window.Element.prototype,ia=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector;function ja(a,b){if(a&&1==a.nodeType&&b){if("string"==typeof b||1==b.nodeType)return a==b||ka(a,b);if("length"in b)for(var c=0,d;d=b[c];c++)if(a==d||ka(a,d))return!0}return!1}function ka(a,b){if("string"!=typeof b)return!1;if(ia)return ia.call(a,b);b=a.parentNode.querySelectorAll(b);for(var c=0,d;d=b[c];c++)if(d==a)return!0;return!1}
function la(a){for(var b=[];a&&a.parentNode&&1==a.parentNode.nodeType;)a=a.parentNode,b.push(a);return b}
function p(a,b,c){function d(a){var d;if(h.composed&&"function"==typeof a.composedPath)for(var e=a.composedPath(),g=0,E;E=e[g];g++)1==E.nodeType&&ja(E,b)&&(d=E);else a:{if((d=a.target)&&1==d.nodeType&&b)for(d=[d].concat(la(d)),e=0;g=d[e];e++)if(ja(g,b)){d=g;break a}d=void 0}d&&c.call(d,a,d)}var e=document,h={composed:!0,S:!0},h=void 0===h?{}:h;e.addEventListener(a,d,h.S);return{j:function(){e.removeEventListener(a,d,h.S)}}}
function ma(a){var b={};if(!a||1!=a.nodeType)return b;a=a.attributes;if(!a.length)return{};for(var c=0,d;d=a[c];c++)b[d.name]=d.value;return b}var na=/:(80|443)$/,q=document.createElement("a"),r={};
function t(a){a=a&&"."!=a?a:location.href;if(r[a])return r[a];q.href=a;if("."==a.charAt(0)||"/"==a.charAt(0))return t(q.href);var b="80"==q.port||"443"==q.port?"":q.port,b="0"==b?"":b,c=q.host.replace(na,"");return r[a]={hash:q.hash,host:c,hostname:q.hostname,href:q.href,origin:q.origin?q.origin:q.protocol+"//"+c,pathname:"/"==q.pathname.charAt(0)?q.pathname:"/"+q.pathname,port:b,protocol:q.protocol,search:q.search}}var u=[];
function oa(a,b){var c=this;this.context=a;this.P=b;this.f=(this.c=/Task$/.test(b))?a.get(b):a[b];this.b=[];this.a=[];this.g=function(a){for(var b=[],d=0;d<arguments.length;++d)b[d-0]=arguments[d];return c.a[c.a.length-1].apply(null,[].concat(m(b)))};this.c?a.set(b,this.g):a[b]=this.g}function v(a,b,c){a=pa(a,b);a.b.push(c);qa(a)}function w(a,b,c){a=pa(a,b);c=a.b.indexOf(c);-1<c&&(a.b.splice(c,1),0<a.b.length?qa(a):a.j())}
function qa(a){a.a=[];for(var b,c=0;b=a.b[c];c++){var d=a.a[c-1]||a.f.bind(a.context);a.a.push(b(d))}}oa.prototype.j=function(){var a=u.indexOf(this);-1<a&&(u.splice(a,1),this.c?this.context.set(this.P,this.f):this.context[this.P]=this.f)};function pa(a,b){var c=u.filter(function(c){return c.context==a&&c.P==b})[0];c||(c=new oa(a,b),u.push(c));return c}
function x(a,b,c,d,e,h){if("function"==typeof d){var g=c.get("buildHitTask");return{buildHitTask:function(c){c.set(a,null,!0);c.set(b,null,!0);d(c,e,h);g(c)}}}return y({},a,b)}function z(a,b){var c=ma(a),d={};Object.keys(c).forEach(function(a){if(!a.indexOf(b)&&a!=b+"on"){var e=c[a];"true"==e&&(e=!0);"false"==e&&(e=!1);a=ra(a.slice(b.length));d[a]=e}});return d}
function sa(a){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",function c(){document.removeEventListener("DOMContentLoaded",c);a()}):a()}function ta(a,b){var c;return function(d){for(var e=[],h=0;h<arguments.length;++h)e[h-0]=arguments[h];clearTimeout(c);c=setTimeout(function(){return a.apply(null,[].concat(m(e)))},b)}}function ua(a){function b(){c||(c=!0,a())}var c=!1;setTimeout(b,2E3);return b}var A={};
function va(a,b){function c(){clearTimeout(e.timeout);e.send&&w(a,"send",e.send);delete A[d];e.R.forEach(function(a){return a()})}var d=a.get("trackingId"),e=A[d]=A[d]||{};clearTimeout(e.timeout);e.timeout=setTimeout(c,0);e.R=e.R||[];e.R.push(b);e.send||(e.send=function(a){return function(b){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];c();a.apply(null,[].concat(m(d)))}},v(a,"send",e.send))}
var y=Object.assign||function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(var d=0,e=c.length;d<e;d++){var h=Object(c[d]),g;for(g in h)Object.prototype.hasOwnProperty.call(h,g)&&(a[g]=h[g])}return a};function ra(a){return a.replace(/[\-\_]+(\w?)/g,function(a,c){return c.toUpperCase()})}function B(a){return"object"==typeof a&&null!==a}var C=function wa(b){return b?(b^16*Math.random()>>b/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,wa)};
function F(a,b){var c=window.GoogleAnalyticsObject||"ga";window[c]=window[c]||function(a){for(var b=[],d=0;d<arguments.length;++d)b[d-0]=arguments[d];(window[c].q=window[c].q||[]).push(b)};window.gaDevIds=window.gaDevIds||[];0>window.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 G={T:1,U:2,V:3,X:4,Y:5,Z:6,$:7,aa:8,ba:9,W:10},H=Object.keys(G).length;
function I(a,b){a.set("\x26_av","2.3.3");var c=a.get("\x26_au"),c=parseInt(c||"0",16).toString(2);if(c.length<H)for(var d=H-c.length;d;)c="0"+c,d--;b=H-b;c=c.substr(0,b)+1+c.substr(b+1);a.set("\x26_au",parseInt(c||"0",2).toString(16))}function J(a,b){I(a,G.T);this.a=y({},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);v(a,"get",this.f);v(a,"buildHitTask",this.c)}
J.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 xa(b,d)[c]}return a(c)}};J.prototype.c=function(a){var b=this;return function(c){var d=xa(b,{location:c.get("location"),page:c.get("page")});c.set(d,null,!0);a(c)}};
function xa(a,b){var c=t(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?"":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,t),c={},c.page=b.page,
c.location=b.location,c[a.b]=b[a.b],c):d}J.prototype.remove=function(){w(this.g,"get",this.f);w(this.g,"buildHitTask",this.c)};F("cleanUrlTracker",J);function K(a,b){var c=this;I(a,G.U);if(window.addEventListener){this.a=y({events:["click"],fieldsObj:{},attributePrefix:"ga-"},b);this.f=a;this.c=this.c.bind(this);var d="["+this.a.attributePrefix+"on]";this.b={};this.a.events.forEach(function(a){c.b[a]=p(a,d,c.c)})}}
K.prototype.c=function(a,b){var c=this.a.attributePrefix;if(!(0>b.getAttribute(c+"on").split(/\s*,\s*/).indexOf(a.type))){var c=z(b,c),d=y({},this.a.fieldsObj,c);this.f.send(c.hitType||"event",x({transport:"beacon"},d,this.f,this.a.hitFilter,b,a))}};K.prototype.remove=function(){var a=this;Object.keys(this.b).forEach(function(b){a.b[b].j()})};F("eventTracker",K);
function ya(a,b){var c=this;I(a,G.V);window.IntersectionObserver&&window.MutationObserver&&(this.a=y({rootMargin:"0px",fieldsObj:{},attributePrefix:"ga-"},b),this.c=a,this.M=this.M.bind(this),this.O=this.O.bind(this),this.K=this.K.bind(this),this.L=this.L.bind(this),this.b=null,this.items=[],this.i={},this.h={},sa(function(){c.a.elements&&c.observeElements(c.a.elements)}))}f=ya.prototype;
f.observeElements=function(a){var b=this;a=L(this,a);this.items=this.items.concat(a.items);this.i=y({},a.i,this.i);this.h=y({},a.h,this.h);a.items.forEach(function(a){var c=b.h[a.threshold]=b.h[a.threshold]||new IntersectionObserver(b.O,{rootMargin:b.a.rootMargin,threshold:[+a.threshold]});(a=b.i[a.id]||(b.i[a.id]=document.getElementById(a.id)))&&c.observe(a)});this.b||(this.b=new MutationObserver(this.M),this.b.observe(document.body,{childList:!0,subtree:!0}));requestAnimationFrame(function(){})};
f.unobserveElements=function(a){var b=[],c=[];this.items.forEach(function(d){a.some(function(a){a=za(a);return a.id===d.id&&a.threshold===d.threshold&&a.trackFirstImpressionOnly===d.trackFirstImpressionOnly})?c.push(d):b.push(d)});if(b.length){var d=L(this,b),e=L(this,c);this.items=d.items;this.i=d.i;this.h=d.h;c.forEach(function(a){if(!d.i[a.id]){var b=e.h[a.threshold],c=e.i[a.id];c&&b.unobserve(c);d.h[a.threshold]||e.h[a.threshold].disconnect()}})}else this.unobserveAllElements()};
f.unobserveAllElements=function(){var a=this;Object.keys(this.h).forEach(function(b){a.h[b].disconnect()});this.b.disconnect();this.b=null;this.items=[];this.i={};this.h={}};function L(a,b){var c=[],d={},e={};b.length&&b.forEach(function(b){b=za(b);c.push(b);e[b.id]=a.i[b.id]||null;d[b.threshold]=a.h[b.threshold]||null});return{items:c,i:e,h:d}}f.M=function(a){for(var b=0,c;c=a[b];b++){for(var d=0,e;e=c.removedNodes[d];d++)M(this,e,this.L);for(d=0;e=c.addedNodes[d];d++)M(this,e,this.K)}};
function M(a,b,c){1==b.nodeType&&b.id in a.i&&c(b.id);for(var d=0,e;e=b.childNodes[d];d++)M(a,e,c)}
f.O=function(a){for(var b=[],c=0,d;d=a[c];c++)for(var e=0,h;h=this.items[e];e++){var g;if(g=d.target.id===h.id)(g=h.threshold)?g=d.intersectionRatio>=g:(g=d.intersectionRect,g=0<g.top||0<g.bottom||0<g.left||0<g.right);if(g){var D=h.id;g=document.getElementById(D);var D={transport:"beacon",eventCategory:"Viewport",eventAction:"impression",eventLabel:D,nonInteraction:!0},Ma=y({},this.a.fieldsObj,z(g,this.a.attributePrefix));this.c.send("event",x(D,Ma,this.c,this.a.hitFilter,g));h.trackFirstImpressionOnly&&
b.push(h)}}b.length&&this.unobserveElements(b)};f.K=function(a){var b=this,c=this.i[a]=document.getElementById(a);this.items.forEach(function(d){a==d.id&&b.h[d.threshold].observe(c)})};f.L=function(a){var b=this,c=this.i[a];this.items.forEach(function(d){a==d.id&&b.h[d.threshold].unobserve(c)});this.i[a]=null};f.remove=function(){this.unobserveAllElements()};F("impressionTracker",ya);function za(a){"string"==typeof a&&(a={id:a});return y({threshold:0,trackFirstImpressionOnly:!0},a)}
function Aa(){this.a={}}function Ba(a,b){(a.a.externalSet=a.a.externalSet||[]).push(b)}Aa.prototype.ca=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];(this.a[a]=this.a[a]||[]).forEach(function(a){return a.apply(null,[].concat(m(c)))})};var N={},O=!1,P;function Q(a,b){b=void 0===b?{}:b;this.a={};this.b=a;this.w=b;this.l=null}ha(Q,Aa);function R(a,b,c){a=["autotrack",a,b].join(":");N[a]||(N[a]=new Q(a,c),O||(window.addEventListener("storage",Ca),O=!0));return N[a]}
function S(){if(null!=P)return P;try{window.localStorage.setItem("autotrack","autotrack"),window.localStorage.removeItem("autotrack"),P=!0}catch(a){P=!1}return P}Q.prototype.get=function(){if(this.l)return this.l;if(S())try{this.l=Da(window.localStorage.getItem(this.b))}catch(a){}return this.l=y({},this.w,this.l)};Q.prototype.set=function(a){this.l=y({},this.w,this.l,a);if(S())try{var b=JSON.stringify(this.l);window.localStorage.setItem(this.b,b)}catch(c){}};
function Ea(a){a.l={};if(S())try{window.localStorage.removeItem(a.b)}catch(b){}}Q.prototype.j=function(){delete N[this.b];Object.keys(N).length||(window.removeEventListener("storage",Ca),O=!1)};function Ca(a){var b=N[a.key];if(b){var c=y({},b.w,Da(a.oldValue));a=y({},b.w,Da(a.newValue));b.l=a;b.ca("externalSet",a,c)}}function Da(a){var b={};if(a)try{b=JSON.parse(a)}catch(c){}return b}var T={};
function U(a,b,c){this.f=a;this.timeout=b||Fa;this.timeZone=c;this.b=this.b.bind(this);v(a,"sendHitTask",this.b);try{this.c=new Intl.DateTimeFormat("en-US",{timeZone:this.timeZone})}catch(d){}this.a=R(a.get("trackingId"),"session",{hitTime:0,isExpired:!1});this.a.get().id||this.a.set({id:C()})}function Ga(a,b,c){var d=a.get("trackingId");return T[d]?T[d]:T[d]=new U(a,b,c)}function V(a){return a.a.get().id}
U.prototype.isExpired=function(a){a=void 0===a?V(this):a;if(a!=V(this))return!0;a=this.a.get();if(a.isExpired)return!0;var b=a.hitTime;return b&&(a=new Date,b=new Date(b),a-b>6E4*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=C());d&&(e.isExpired=!0);b.a.set(e)}};
U.prototype.j=function(){w(this.f,"sendHitTask",this.b);this.a.j();delete T[this.f.get("trackingId")]};var Fa=30;function W(a,b){I(a,G.W);window.addEventListener&&(this.b=y({increaseThreshold:20,sessionTimeout:Fa,fieldsObj:{}},b),this.f=a,this.c=Ha(this),this.g=ta(this.g.bind(this),500),this.o=this.o.bind(this),this.a=R(a.get("trackingId"),"plugins/max-scroll-tracker"),this.m=Ga(a,this.b.sessionTimeout,this.b.timeZone),v(a,"set",this.o),Ia(this))}
function Ia(a){100>(a.a.get()[a.c]||0)&&window.addEventListener("scroll",a.g)}
W.prototype.g=function(){var a=document.documentElement,b=document.body,a=Math.min(100,Math.max(0,Math.round(window.pageYOffset/(Math.max(a.offsetHeight,a.scrollHeight,b.offsetHeight,b.scrollHeight)-window.innerHeight)*100))),b=V(this.m);b!=this.a.get().sessionId&&(Ea(this.a),this.a.set({sessionId:b}));if(this.m.isExpired(this.a.get().sessionId))Ea(this.a);else if(b=this.a.get()[this.c]||0,a>b&&(100!=a&&100!=b||window.removeEventListener("scroll",this.g),b=a-b,100==a||b>=this.b.increaseThreshold)){var c=
{};this.a.set((c[this.c]=a,c.sessionId=V(this.m),c));a={transport:"beacon",eventCategory:"Max Scroll",eventAction:"increase",eventValue:b,eventLabel:String(a),nonInteraction:!0};this.b.maxScrollMetricIndex&&(a["metric"+this.b.maxScrollMetricIndex]=b);this.f.send("event",x(a,this.b.fieldsObj,this.f,this.b.hitFilter))}};W.prototype.o=function(a){var b=this;return function(c,d){a(c,d);var e={};(B(c)?c:(e[c]=d,e)).page&&(c=b.c,b.c=Ha(b),b.c!=c&&Ia(b))}};
function Ha(a){a=t(a.f.get("page")||a.f.get("location"));return a.pathname+a.search}W.prototype.remove=function(){this.m.j();window.removeEventListener("scroll",this.g);w(this.f,"set",this.o)};F("maxScrollTracker",W);var Ja={};function Ka(a,b){I(a,G.X);window.matchMedia&&(this.a=y({changeTemplate:this.changeTemplate,changeTimeout:1E3,fieldsObj:{}},b),B(this.a.definitions)&&(b=this.a.definitions,this.a.definitions=Array.isArray(b)?b:[b],this.b=a,this.c=[],La(this)))}
function La(a){a.a.definitions.forEach(function(b){if(b.name&&b.dimensionIndex){var c=Na(b);a.b.set("dimension"+b.dimensionIndex,c);Oa(a,b)}})}function Na(a){var b;a.items.forEach(function(a){Pa(a.media).matches&&(b=a)});return b?b.name:"(not set)"}
function Oa(a,b){b.items.forEach(function(c){c=Pa(c.media);var d=ta(function(){var c=Na(b),d=a.b.get("dimension"+b.dimensionIndex);c!==d&&(a.b.set("dimension"+b.dimensionIndex,c),c={transport:"beacon",eventCategory:b.name,eventAction:"change",eventLabel:a.a.changeTemplate(d,c),nonInteraction:!0},a.b.send("event",x(c,a.a.fieldsObj,a.b,a.a.hitFilter)))},a.a.changeTimeout);c.addListener(d);a.c.push({fa:c,da:d})})}Ka.prototype.remove=function(){for(var a=0,b;b=this.c[a];a++)b.fa.removeListener(b.da)};
Ka.prototype.changeTemplate=function(a,b){return a+" \x3d\x3e "+b};F("mediaQueryTracker",Ka);function Pa(a){return Ja[a]||(Ja[a]=window.matchMedia(a))}function X(a,b){I(a,G.Y);window.addEventListener&&(this.a=y({formSelector:"form",shouldTrackOutboundForm:this.shouldTrackOutboundForm,fieldsObj:{},attributePrefix:"ga-"},b),this.b=a,this.c=p("submit",this.a.formSelector,this.f.bind(this)))}
X.prototype.f=function(a,b){var c={transport:"beacon",eventCategory:"Outbound Form",eventAction:"submit",eventLabel:t(b.action).href};if(this.a.shouldTrackOutboundForm(b,t)){navigator.sendBeacon||(a.preventDefault(),c.hitCallback=ua(function(){b.submit()}));var d=y({},this.a.fieldsObj,z(b,this.a.attributePrefix));this.b.send("event",x(c,d,this.b,this.a.hitFilter,b,a))}};
X.prototype.shouldTrackOutboundForm=function(a,b){a=b(a.action);return a.hostname!=location.hostname&&"http"==a.protocol.slice(0,4)};X.prototype.remove=function(){this.c.j()};F("outboundFormTracker",X);
function Y(a,b){var c=this;I(a,G.Z);window.addEventListener&&(this.a=y({events:["click"],linkSelector:"a, area",shouldTrackOutboundLink:this.shouldTrackOutboundLink,fieldsObj:{},attributePrefix:"ga-"},b),this.f=a,this.c=this.c.bind(this),this.b={},this.a.events.forEach(function(a){c.b[a]=p(a,c.a.linkSelector,c.c)}))}
Y.prototype.c=function(a,b){if(this.a.shouldTrackOutboundLink(b,t)){var c=b.getAttribute("href")||b.getAttribute("xlink:href"),d=t(c),e={transport:"beacon",eventCategory:"Outbound Link",eventAction:a.type,eventLabel:d.href};navigator.sendBeacon||"click"!=a.type||"_blank"==b.target||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||1<a.which||window.addEventListener("click",function(a){a.defaultPrevented||(a.preventDefault(),e.hitCallback=ua(function(){location.href=c}))});d=y({},this.a.fieldsObj,z(b,this.a.attributePrefix));
this.f.send("event",x(e,d,this.f,this.a.hitFilter,b,a))}};Y.prototype.shouldTrackOutboundLink=function(a,b){a=a.getAttribute("href")||a.getAttribute("xlink:href");b=b(a);return b.hostname!=location.hostname&&"http"==b.protocol.slice(0,4)};Y.prototype.remove=function(){var a=this;Object.keys(this.b).forEach(function(b){a.b[b].j()})};F("outboundLinkTracker",Y);var Z=C();
function Qa(a,b){var c=this;I(a,G.$);document.visibilityState&&(this.a=y({sessionTimeout:Fa,visibleThreshold:5E3,sendInitialPageview:!1,fieldsObj:{}},b),this.b=a,this.g=document.visibilityState,this.m=null,this.o=!1,this.v=this.v.bind(this),this.s=this.s.bind(this),this.G=this.G.bind(this),this.N=this.N.bind(this),this.c=R(a.get("trackingId"),"plugins/page-visibility-tracker"),Ba(this.c,this.N),this.f=Ga(a,this.a.sessionTimeout,this.a.timeZone),v(a,"set",this.v),window.addEventListener("unload",this.G),
document.addEventListener("visibilitychange",this.s),va(this.b,function(){if("visible"==document.visibilityState)c.a.sendInitialPageview&&(Ra(c,{ea:!0}),c.o=!0),c.c.set({time:+new Date,state:"visible",pageId:Z,sessionId:V(c.f)});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",x(a,c.a.fieldsObj,
c.b,c.a.hitFilter))}}))}f=Qa.prototype;
f.s=function(){var a=this;if("visible"==document.visibilityState||"hidden"==document.visibilityState){var b=Sa(this),c={time:+new Date,state:document.visibilityState,pageId:Z,sessionId:V(this.f)};"visible"==document.visibilityState&&this.a.sendInitialPageview&&!this.o&&(Ra(this),this.o=!0);"hidden"==document.visibilityState&&this.m&&clearTimeout(this.m);this.f.isExpired(b.sessionId)?(Ea(this.c),"hidden"==this.g&&"visible"==document.visibilityState&&(clearTimeout(this.m),this.m=setTimeout(function(){a.c.set(c);
Ra(a,{hitTime:c.time})},this.a.visibleThreshold))):(b.pageId==Z&&"visible"==b.state&&Ta(this,b),this.c.set(c));this.g=document.visibilityState}};function Sa(a){var b=a.c.get();"visible"==a.g&&"hidden"==b.state&&b.pageId!=Z&&(b.state="visible",b.pageId=Z,a.c.set(b));return b}
function Ta(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",x(d,a.a.fieldsObj,a.b,a.a.hitFilter)))}
function Ra(a,b){var c=b?b:{};b=c.hitTime;var c=c.ea,d={transport:"beacon"};b&&(d.queueTime=+new Date-b);c&&a.a.pageLoadsMetricIndex&&(d["metric"+a.a.pageLoadsMetricIndex]=1);a.b.send("pageview",x(d,a.a.fieldsObj,a.b,a.a.hitFilter))}f.v=function(a){var b=this;return function(c,d){var e={},e=B(c)?c:(e[c]=d,e);e.page&&e.page!==b.b.get("page")&&"visible"==b.g&&b.s();a(c,d)}};f.N=function(a,b){a.time!=b.time&&(b.pageId!=Z||"visible"!=b.state||this.f.isExpired(b.sessionId)||Ta(this,b,{hitTime:a.time}))};
f.G=function(){"hidden"!=this.g&&this.s()};f.remove=function(){this.c.j();this.f.j();w(this.b,"set",this.v);window.removeEventListener("unload",this.G);document.removeEventListener("visibilitychange",this.s)};F("pageVisibilityTracker",Qa);
function Ua(a,b){I(a,G.aa);window.addEventListener&&(this.a=y({fieldsObj:{},hitFilter:null},b),this.b=a,this.u=this.u.bind(this),this.J=this.J.bind(this),this.D=this.D.bind(this),this.A=this.A.bind(this),this.B=this.B.bind(this),this.F=this.F.bind(this),"complete"!=document.readyState?window.addEventListener("load",this.u):this.u())}f=Ua.prototype;
f.u=function(){if(window.FB)try{window.FB.Event.subscribe("edge.create",this.B),window.FB.Event.subscribe("edge.remove",this.F)}catch(a){}window.twttr&&this.J()};f.J=function(){var a=this;try{window.twttr.ready(function(){window.twttr.events.bind("tweet",a.D);window.twttr.events.bind("follow",a.A)})}catch(b){}};function Va(a){try{window.twttr.ready(function(){window.twttr.events.unbind("tweet",a.D);window.twttr.events.unbind("follow",a.A)})}catch(b){}}
f.D=function(a){if("tweet"==a.region){var b={transport:"beacon",socialNetwork:"Twitter",socialAction:"tweet",socialTarget:a.data.url||a.target.getAttribute("data-url")||location.href};this.b.send("social",x(b,this.a.fieldsObj,this.b,this.a.hitFilter,a.target,a))}};
f.A=function(a){if("follow"==a.region){var b={transport:"beacon",socialNetwork:"Twitter",socialAction:"follow",socialTarget:a.data.screen_name||a.target.getAttribute("data-screen-name")};this.b.send("social",x(b,this.a.fieldsObj,this.b,this.a.hitFilter,a.target,a))}};f.B=function(a){this.b.send("social",x({transport:"beacon",socialNetwork:"Facebook",socialAction:"like",socialTarget:a},this.a.fieldsObj,this.b,this.a.hitFilter))};
f.F=function(a){this.b.send("social",x({transport:"beacon",socialNetwork:"Facebook",socialAction:"unlike",socialTarget:a},this.a.fieldsObj,this.b,this.a.hitFilter))};f.remove=function(){window.removeEventListener("load",this.u);try{window.FB.Event.unsubscribe("edge.create",this.B),window.FB.Event.unsubscribe("edge.remove",this.F)}catch(a){}Va(this)};F("socialWidgetTracker",Ua);
function Wa(a,b){I(a,G.ba);history.pushState&&window.addEventListener&&(this.a=y({shouldTrackUrlChange:this.shouldTrackUrlChange,trackReplaceState:!1,fieldsObj:{},hitFilter:null},b),this.b=a,this.c=location.pathname+location.search,this.H=this.H.bind(this),this.I=this.I.bind(this),this.C=this.C.bind(this),v(history,"pushState",this.H),v(history,"replaceState",this.I),window.addEventListener("popstate",this.C))}f=Wa.prototype;
f.H=function(a){var b=this;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];a.apply(null,[].concat(m(d)));Xa(b,!0)}};f.I=function(a){var b=this;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];a.apply(null,[].concat(m(d)));Xa(b,!1)}};f.C=function(){Xa(this,!0)};
function Xa(a,b){setTimeout(function(){var c=a.c,d=location.pathname+location.search;c!=d&&a.a.shouldTrackUrlChange.call(a,d,c)&&(a.c=d,a.b.set({page:d,title:document.title}),(b||a.a.trackReplaceState)&&a.b.send("pageview",x({transport:"beacon"},a.a.fieldsObj,a.b,a.a.hitFilter)))},0)}f.shouldTrackUrlChange=function(a,b){return!(!a||!b)};f.remove=function(){w(history,"pushState",this.H);w(history,"replaceState",this.I);window.removeEventListener("popstate",this.C)};F("urlChangeTracker",Wa);})();
(function(){var f,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;function l(){l=function(){};k.Symbol||(k.Symbol=ba)}var ca=0;function ba(a){return"jscomp_symbol_"+(a||"")+ca++}
function m(){l();var a=k.Symbol.iterator;a||(a=k.Symbol.iterator=k.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return da(this)}});m=function(){}}function da(a){var b=0;return ea(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})}function ea(a){m();a={next:a};a[k.Symbol.iterator]=function(){return this};return a}function fa(a){m();l();m();var b=a[Symbol.iterator];return b?b.call(a):da(a)}
function n(a){if(!(a instanceof Array)){a=fa(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}function ha(a,b){function c(){}c.prototype=b.prototype;a.ha=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}var p=window.Element.prototype,ia=p.matches||p.matchesSelector||p.webkitMatchesSelector||p.mozMatchesSelector||p.msMatchesSelector||p.oMatchesSelector;
function ja(a,b){if(a&&1==a.nodeType&&b){if("string"==typeof b||1==b.nodeType)return a==b||ka(a,b);if("length"in b)for(var c=0,d;d=b[c];c++)if(a==d||ka(a,d))return!0}return!1}function ka(a,b){if("string"!=typeof b)return!1;if(ia)return ia.call(a,b);b=a.parentNode.querySelectorAll(b);for(var c=0,d;d=b[c];c++)if(d==a)return!0;return!1}function la(a){for(var b=[];a&&a.parentNode&&1==a.parentNode.nodeType;)a=a.parentNode,b.push(a);return b}
function q(a,b,c){function d(a){var d;if(h.composed&&"function"==typeof a.composedPath)for(var e=a.composedPath(),g=0,F;F=e[g];g++)1==F.nodeType&&ja(F,b)&&(d=F);else a:{if((d=a.target)&&1==d.nodeType&&b)for(d=[d].concat(la(d)),e=0;g=d[e];e++)if(ja(g,b)){d=g;break a}d=void 0}d&&c.call(d,a,d)}var e=document,h={composed:!0,S:!0},h=void 0===h?{}:h;e.addEventListener(a,d,h.S);return{j:function(){e.removeEventListener(a,d,h.S)}}}
function ma(a){var b={};if(!a||1!=a.nodeType)return b;a=a.attributes;if(!a.length)return{};for(var c=0,d;d=a[c];c++)b[d.name]=d.value;return b}var na=/:(80|443)$/,r=document.createElement("a"),t={};
function u(a){a=a&&"."!=a?a:location.href;if(t[a])return t[a];r.href=a;if("."==a.charAt(0)||"/"==a.charAt(0))return u(r.href);var b="80"==r.port||"443"==r.port?"":r.port,b="0"==b?"":b,c=r.host.replace(na,"");return t[a]={hash:r.hash,host:c,hostname:r.hostname,href:r.href,origin:r.origin?r.origin:r.protocol+"//"+c,pathname:"/"==r.pathname.charAt(0)?r.pathname:"/"+r.pathname,port:b,protocol:r.protocol,search:r.search}}var v=[];
function oa(a,b){var c=this;this.context=a;this.P=b;this.f=(this.c=/Task$/.test(b))?a.get(b):a[b];this.b=[];this.a=[];this.g=function(a){for(var b=[],d=0;d<arguments.length;++d)b[d-0]=arguments[d];return c.a[c.a.length-1].apply(null,[].concat(n(b)))};this.c?a.set(b,this.g):a[b]=this.g}function w(a,b,c){a=pa(a,b);a.b.push(c);qa(a)}function x(a,b,c){a=pa(a,b);c=a.b.indexOf(c);-1<c&&(a.b.splice(c,1),0<a.b.length?qa(a):a.j())}
function qa(a){a.a=[];for(var b,c=0;b=a.b[c];c++){var d=a.a[c-1]||a.f.bind(a.context);a.a.push(b(d))}}oa.prototype.j=function(){var a=v.indexOf(this);-1<a&&(v.splice(a,1),this.c?this.context.set(this.P,this.f):this.context[this.P]=this.f)};function pa(a,b){var c=v.filter(function(c){return c.context==a&&c.P==b})[0];c||(c=new oa(a,b),v.push(c));return c}
function y(a,b,c,d,e,h){if("function"==typeof d){var g=c.get("buildHitTask");return{buildHitTask:function(c){c.set(a,null,!0);c.set(b,null,!0);d(c,e,h);g(c)}}}return z({},a,b)}function A(a,b){var c=ma(a),d={};Object.keys(c).forEach(function(a){if(!a.indexOf(b)&&a!=b+"on"){var e=c[a];"true"==e&&(e=!0);"false"==e&&(e=!1);a=ra(a.slice(b.length));d[a]=e}});return d}
function sa(a){"loading"==document.readyState?document.addEventListener("DOMContentLoaded",function c(){document.removeEventListener("DOMContentLoaded",c);a()}):a()}function ta(a,b){var c;return function(d){for(var e=[],h=0;h<arguments.length;++h)e[h-0]=arguments[h];clearTimeout(c);c=setTimeout(function(){return a.apply(null,[].concat(n(e)))},b)}}function ua(a){function b(){c||(c=!0,a())}var c=!1;setTimeout(b,2E3);return b}var B={};
function va(a,b){function c(){clearTimeout(e.timeout);e.send&&x(a,"send",e.send);delete B[d];e.R.forEach(function(a){return a()})}var d=a.get("trackingId"),e=B[d]=B[d]||{};clearTimeout(e.timeout);e.timeout=setTimeout(c,0);e.R=e.R||[];e.R.push(b);e.send||(e.send=function(a){return function(b){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];c();a.apply(null,[].concat(n(d)))}},w(a,"send",e.send))}
var z=Object.assign||function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];for(var d=0,e=c.length;d<e;d++){var h=Object(c[d]),g;for(g in h)Object.prototype.hasOwnProperty.call(h,g)&&(a[g]=h[g])}return a};function ra(a){return a.replace(/[\-\_]+(\w?)/g,function(a,c){return c.toUpperCase()})}function C(a){return"object"==typeof a&&null!==a}var D=function wa(b){return b?(b^16*Math.random()>>b/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,wa)};
function G(a,b){var c=window.GoogleAnalyticsObject||"ga";window[c]=window[c]||function(a){for(var b=[],d=0;d<arguments.length;++d)b[d-0]=arguments[d];(window[c].q=window[c].q||[]).push(b)};window.gaDevIds=window.gaDevIds||[];0>window.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 H={T:1,U:2,V:3,X:4,Y:5,Z:6,$:7,aa:8,ba:9,W:10},I=Object.keys(H).length;
function J(a,b){a.set("\x26_av","2.4.0");var c=a.get("\x26_au"),c=parseInt(c||"0",16).toString(2);if(c.length<I)for(var d=I-c.length;d;)c="0"+c,d--;b=I-b;c=c.substr(0,b)+1+c.substr(b+1);a.set("\x26_au",parseInt(c||"0",2).toString(16))}function K(a,b){J(a,H.T);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);w(a,"get",this.f);w(a,"buildHitTask",this.c)}
K.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 xa(b,d)[c]}return a(c)}};K.prototype.c=function(a){var b=this;return function(c){var d=xa(b,{location:c.get("location"),page:c.get("page")});c.set(d,null,!0);a(c)}};
function xa(a,b){var c=u(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?ya(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,u),c={page:b.page,
location:b.location},a.b&&(c[a.b]=b[a.b]),c):d}function ya(a,b){if(Array.isArray(a.a.queryParamsWhitelist)){var c=[];b.slice(1).split("\x26").forEach(function(b){var d=fa(b.split("\x3d"));b=d.next().value;d=d.next().value;-1<a.a.queryParamsWhitelist.indexOf(b)&&d&&c.push([b,d])});return c.length?"?"+c.map(function(a){return a.join("\x3d")}).join("\x26"):""}return""}K.prototype.remove=function(){x(this.g,"get",this.f);x(this.g,"buildHitTask",this.c)};G("cleanUrlTracker",K);
function L(a,b){var c=this;J(a,H.U);if(window.addEventListener){this.a=z({events:["click"],fieldsObj:{},attributePrefix:"ga-"},b);this.f=a;this.c=this.c.bind(this);var d="["+this.a.attributePrefix+"on]";this.b={};this.a.events.forEach(function(a){c.b[a]=q(a,d,c.c)})}}
L.prototype.c=function(a,b){var c=this.a.attributePrefix;if(!(0>b.getAttribute(c+"on").split(/\s*,\s*/).indexOf(a.type))){var c=A(b,c),d=z({},this.a.fieldsObj,c);this.f.send(c.hitType||"event",y({transport:"beacon"},d,this.f,this.a.hitFilter,b,a))}};L.prototype.remove=function(){var a=this;Object.keys(this.b).forEach(function(b){a.b[b].j()})};G("eventTracker",L);
function za(a,b){var c=this;J(a,H.V);window.IntersectionObserver&&window.MutationObserver&&(this.a=z({rootMargin:"0px",fieldsObj:{},attributePrefix:"ga-"},b),this.c=a,this.M=this.M.bind(this),this.O=this.O.bind(this),this.K=this.K.bind(this),this.L=this.L.bind(this),this.b=null,this.items=[],this.i={},this.h={},sa(function(){c.a.elements&&c.observeElements(c.a.elements)}))}f=za.prototype;
f.observeElements=function(a){var b=this;a=M(this,a);this.items=this.items.concat(a.items);this.i=z({},a.i,this.i);this.h=z({},a.h,this.h);a.items.forEach(function(a){var c=b.h[a.threshold]=b.h[a.threshold]||new IntersectionObserver(b.O,{rootMargin:b.a.rootMargin,threshold:[+a.threshold]});(a=b.i[a.id]||(b.i[a.id]=document.getElementById(a.id)))&&c.observe(a)});this.b||(this.b=new MutationObserver(this.M),this.b.observe(document.body,{childList:!0,subtree:!0}));requestAnimationFrame(function(){})};
f.unobserveElements=function(a){var b=[],c=[];this.items.forEach(function(d){a.some(function(a){a=Aa(a);return a.id===d.id&&a.threshold===d.threshold&&a.trackFirstImpressionOnly===d.trackFirstImpressionOnly})?c.push(d):b.push(d)});if(b.length){var d=M(this,b),e=M(this,c);this.items=d.items;this.i=d.i;this.h=d.h;c.forEach(function(a){if(!d.i[a.id]){var b=e.h[a.threshold],c=e.i[a.id];c&&b.unobserve(c);d.h[a.threshold]||e.h[a.threshold].disconnect()}})}else this.unobserveAllElements()};
f.unobserveAllElements=function(){var a=this;Object.keys(this.h).forEach(function(b){a.h[b].disconnect()});this.b.disconnect();this.b=null;this.items=[];this.i={};this.h={}};function M(a,b){var c=[],d={},e={};b.length&&b.forEach(function(b){b=Aa(b);c.push(b);e[b.id]=a.i[b.id]||null;d[b.threshold]=a.h[b.threshold]||null});return{items:c,i:e,h:d}}f.M=function(a){for(var b=0,c;c=a[b];b++){for(var d=0,e;e=c.removedNodes[d];d++)N(this,e,this.L);for(d=0;e=c.addedNodes[d];d++)N(this,e,this.K)}};
function N(a,b,c){1==b.nodeType&&b.id in a.i&&c(b.id);for(var d=0,e;e=b.childNodes[d];d++)N(a,e,c)}
f.O=function(a){for(var b=[],c=0,d;d=a[c];c++)for(var e=0,h;h=this.items[e];e++){var g;if(g=d.target.id===h.id)(g=h.threshold)?g=d.intersectionRatio>=g:(g=d.intersectionRect,g=0<g.top||0<g.bottom||0<g.left||0<g.right);if(g){var E=h.id;g=document.getElementById(E);var E={transport:"beacon",eventCategory:"Viewport",eventAction:"impression",eventLabel:E,nonInteraction:!0},Na=z({},this.a.fieldsObj,A(g,this.a.attributePrefix));this.c.send("event",y(E,Na,this.c,this.a.hitFilter,g));h.trackFirstImpressionOnly&&
b.push(h)}}b.length&&this.unobserveElements(b)};f.K=function(a){var b=this,c=this.i[a]=document.getElementById(a);this.items.forEach(function(d){a==d.id&&b.h[d.threshold].observe(c)})};f.L=function(a){var b=this,c=this.i[a];this.items.forEach(function(d){a==d.id&&b.h[d.threshold].unobserve(c)});this.i[a]=null};f.remove=function(){this.unobserveAllElements()};G("impressionTracker",za);function Aa(a){"string"==typeof a&&(a={id:a});return z({threshold:0,trackFirstImpressionOnly:!0},a)}
function Ba(){this.a={}}function Ca(a,b){(a.a.externalSet=a.a.externalSet||[]).push(b)}Ba.prototype.ca=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];(this.a[a]=this.a[a]||[]).forEach(function(a){return a.apply(null,[].concat(n(c)))})};var O={},P=!1,Q;function R(a,b){b=void 0===b?{}:b;this.a={};this.b=a;this.w=b;this.l=null}ha(R,Ba);function S(a,b,c){a=["autotrack",a,b].join(":");O[a]||(O[a]=new R(a,c),P||(window.addEventListener("storage",Da),P=!0));return O[a]}
function Ea(){if(null!=Q)return Q;try{window.localStorage.setItem("autotrack","autotrack"),window.localStorage.removeItem("autotrack"),Q=!0}catch(a){Q=!1}return Q}R.prototype.get=function(){if(this.l)return this.l;if(Ea())try{this.l=Fa(window.localStorage.getItem(this.b))}catch(a){}return this.l=z({},this.w,this.l)};R.prototype.set=function(a){this.l=z({},this.w,this.l,a);if(Ea())try{var b=JSON.stringify(this.l);window.localStorage.setItem(this.b,b)}catch(c){}};
function Ga(a){a.l={};if(Ea())try{window.localStorage.removeItem(a.b)}catch(b){}}R.prototype.j=function(){delete O[this.b];Object.keys(O).length||(window.removeEventListener("storage",Da),P=!1)};function Da(a){var b=O[a.key];if(b){var c=z({},b.w,Fa(a.oldValue));a=z({},b.w,Fa(a.newValue));b.l=a;b.ca("externalSet",a,c)}}function Fa(a){var b={};if(a)try{b=JSON.parse(a)}catch(c){}return b}var T={};
function U(a,b,c){this.f=a;this.timeout=b||Ha;this.timeZone=c;this.b=this.b.bind(this);w(a,"sendHitTask",this.b);try{this.c=new Intl.DateTimeFormat("en-US",{timeZone:this.timeZone})}catch(d){}this.a=S(a.get("trackingId"),"session",{hitTime:0,isExpired:!1});this.a.get().id||this.a.set({id:D()})}function Ia(a,b,c){var d=a.get("trackingId");return T[d]?T[d]:T[d]=new U(a,b,c)}function V(a){return a.a.get().id}
U.prototype.isExpired=function(a){a=void 0===a?V(this):a;if(a!=V(this))return!0;a=this.a.get();if(a.isExpired)return!0;var b=a.hitTime;return b&&(a=new Date,b=new Date(b),a-b>6E4*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=D());d&&(e.isExpired=!0);b.a.set(e)}};
U.prototype.j=function(){x(this.f,"sendHitTask",this.b);this.a.j();delete T[this.f.get("trackingId")]};var Ha=30;function W(a,b){J(a,H.W);window.addEventListener&&(this.b=z({increaseThreshold:20,sessionTimeout:Ha,fieldsObj:{}},b),this.f=a,this.c=Ja(this),this.g=ta(this.g.bind(this),500),this.o=this.o.bind(this),this.a=S(a.get("trackingId"),"plugins/max-scroll-tracker"),this.m=Ia(a,this.b.sessionTimeout,this.b.timeZone),w(a,"set",this.o),Ka(this))}
function Ka(a){100>(a.a.get()[a.c]||0)&&window.addEventListener("scroll",a.g)}
W.prototype.g=function(){var a=document.documentElement,b=document.body,a=Math.min(100,Math.max(0,Math.round(window.pageYOffset/(Math.max(a.offsetHeight,a.scrollHeight,b.offsetHeight,b.scrollHeight)-window.innerHeight)*100))),b=V(this.m);b!=this.a.get().sessionId&&(Ga(this.a),this.a.set({sessionId:b}));if(this.m.isExpired(this.a.get().sessionId))Ga(this.a);else if(b=this.a.get()[this.c]||0,a>b&&(100!=a&&100!=b||window.removeEventListener("scroll",this.g),b=a-b,100==a||b>=this.b.increaseThreshold)){var c=
{};this.a.set((c[this.c]=a,c.sessionId=V(this.m),c));a={transport:"beacon",eventCategory:"Max Scroll",eventAction:"increase",eventValue:b,eventLabel:String(a),nonInteraction:!0};this.b.maxScrollMetricIndex&&(a["metric"+this.b.maxScrollMetricIndex]=b);this.f.send("event",y(a,this.b.fieldsObj,this.f,this.b.hitFilter))}};W.prototype.o=function(a){var b=this;return function(c,d){a(c,d);var e={};(C(c)?c:(e[c]=d,e)).page&&(c=b.c,b.c=Ja(b),b.c!=c&&Ka(b))}};
function Ja(a){a=u(a.f.get("page")||a.f.get("location"));return a.pathname+a.search}W.prototype.remove=function(){this.m.j();window.removeEventListener("scroll",this.g);x(this.f,"set",this.o)};G("maxScrollTracker",W);var La={};function Ma(a,b){J(a,H.X);window.matchMedia&&(this.a=z({changeTemplate:this.changeTemplate,changeTimeout:1E3,fieldsObj:{}},b),C(this.a.definitions)&&(b=this.a.definitions,this.a.definitions=Array.isArray(b)?b:[b],this.b=a,this.c=[],Oa(this)))}
function Oa(a){a.a.definitions.forEach(function(b){if(b.name&&b.dimensionIndex){var c=Pa(b);a.b.set("dimension"+b.dimensionIndex,c);Qa(a,b)}})}function Pa(a){var b;a.items.forEach(function(a){Ra(a.media).matches&&(b=a)});return b?b.name:"(not set)"}
function Qa(a,b){b.items.forEach(function(c){c=Ra(c.media);var d=ta(function(){var c=Pa(b),d=a.b.get("dimension"+b.dimensionIndex);c!==d&&(a.b.set("dimension"+b.dimensionIndex,c),c={transport:"beacon",eventCategory:b.name,eventAction:"change",eventLabel:a.a.changeTemplate(d,c),nonInteraction:!0},a.b.send("event",y(c,a.a.fieldsObj,a.b,a.a.hitFilter)))},a.a.changeTimeout);c.addListener(d);a.c.push({fa:c,da:d})})}Ma.prototype.remove=function(){for(var a=0,b;b=this.c[a];a++)b.fa.removeListener(b.da)};
Ma.prototype.changeTemplate=function(a,b){return a+" \x3d\x3e "+b};G("mediaQueryTracker",Ma);function Ra(a){return La[a]||(La[a]=window.matchMedia(a))}function X(a,b){J(a,H.Y);window.addEventListener&&(this.a=z({formSelector:"form",shouldTrackOutboundForm:this.shouldTrackOutboundForm,fieldsObj:{},attributePrefix:"ga-"},b),this.b=a,this.c=q("submit",this.a.formSelector,this.f.bind(this)))}
X.prototype.f=function(a,b){var c={transport:"beacon",eventCategory:"Outbound Form",eventAction:"submit",eventLabel:u(b.action).href};if(this.a.shouldTrackOutboundForm(b,u)){navigator.sendBeacon||(a.preventDefault(),c.hitCallback=ua(function(){b.submit()}));var d=z({},this.a.fieldsObj,A(b,this.a.attributePrefix));this.b.send("event",y(c,d,this.b,this.a.hitFilter,b,a))}};
X.prototype.shouldTrackOutboundForm=function(a,b){a=b(a.action);return a.hostname!=location.hostname&&"http"==a.protocol.slice(0,4)};X.prototype.remove=function(){this.c.j()};G("outboundFormTracker",X);
function Y(a,b){var c=this;J(a,H.Z);window.addEventListener&&(this.a=z({events:["click"],linkSelector:"a, area",shouldTrackOutboundLink:this.shouldTrackOutboundLink,fieldsObj:{},attributePrefix:"ga-"},b),this.f=a,this.c=this.c.bind(this),this.b={},this.a.events.forEach(function(a){c.b[a]=q(a,c.a.linkSelector,c.c)}))}
Y.prototype.c=function(a,b){if(this.a.shouldTrackOutboundLink(b,u)){var c=b.getAttribute("href")||b.getAttribute("xlink:href"),d=u(c),e={transport:"beacon",eventCategory:"Outbound Link",eventAction:a.type,eventLabel:d.href};navigator.sendBeacon||"click"!=a.type||"_blank"==b.target||a.metaKey||a.ctrlKey||a.shiftKey||a.altKey||1<a.which||window.addEventListener("click",function(a){a.defaultPrevented||(a.preventDefault(),e.hitCallback=ua(function(){location.href=c}))});d=z({},this.a.fieldsObj,A(b,this.a.attributePrefix));
this.f.send("event",y(e,d,this.f,this.a.hitFilter,b,a))}};Y.prototype.shouldTrackOutboundLink=function(a,b){a=a.getAttribute("href")||a.getAttribute("xlink:href");b=b(a);return b.hostname!=location.hostname&&"http"==b.protocol.slice(0,4)};Y.prototype.remove=function(){var a=this;Object.keys(this.b).forEach(function(b){a.b[b].j()})};G("outboundLinkTracker",Y);var Z=D();
function Sa(a,b){var c=this;J(a,H.$);document.visibilityState&&(this.a=z({sessionTimeout:Ha,visibleThreshold:5E3,sendInitialPageview:!1,fieldsObj:{}},b),this.b=a,this.g=document.visibilityState,this.m=null,this.o=!1,this.v=this.v.bind(this),this.s=this.s.bind(this),this.G=this.G.bind(this),this.N=this.N.bind(this),this.c=S(a.get("trackingId"),"plugins/page-visibility-tracker"),Ca(this.c,this.N),this.f=Ia(a,this.a.sessionTimeout,this.a.timeZone),w(a,"set",this.v),window.addEventListener("unload",this.G),
document.addEventListener("visibilitychange",this.s),va(this.b,function(){if("visible"==document.visibilityState)c.a.sendInitialPageview&&(Ta(c,{ea:!0}),c.o=!0),c.c.set({time:+new Date,state:"visible",pageId:Z,sessionId:V(c.f)});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))}}))}f=Sa.prototype;
f.s=function(){var a=this;if("visible"==document.visibilityState||"hidden"==document.visibilityState){var b=Ua(this),c={time:+new Date,state:document.visibilityState,pageId:Z,sessionId:V(this.f)};"visible"==document.visibilityState&&this.a.sendInitialPageview&&!this.o&&(Ta(this),this.o=!0);"hidden"==document.visibilityState&&this.m&&clearTimeout(this.m);this.f.isExpired(b.sessionId)?(Ga(this.c),"hidden"==this.g&&"visible"==document.visibilityState&&(clearTimeout(this.m),this.m=setTimeout(function(){a.c.set(c);
Ta(a,{hitTime:c.time})},this.a.visibleThreshold))):(b.pageId==Z&&"visible"==b.state&&Va(this,b),this.c.set(c));this.g=document.visibilityState}};function Ua(a){var b=a.c.get();"visible"==a.g&&"hidden"==b.state&&b.pageId!=Z&&(b.state="visible",b.pageId=Z,a.c.set(b));return b}
function Va(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 Ta(a,b){var c=b?b:{};b=c.hitTime;var c=c.ea,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))}f.v=function(a){var b=this;return function(c,d){var e={},e=C(c)?c:(e[c]=d,e);e.page&&e.page!==b.b.get("page")&&"visible"==b.g&&b.s();a(c,d)}};f.N=function(a,b){a.time!=b.time&&(b.pageId!=Z||"visible"!=b.state||this.f.isExpired(b.sessionId)||Va(this,b,{hitTime:a.time}))};
f.G=function(){"hidden"!=this.g&&this.s()};f.remove=function(){this.c.j();this.f.j();x(this.b,"set",this.v);window.removeEventListener("unload",this.G);document.removeEventListener("visibilitychange",this.s)};G("pageVisibilityTracker",Sa);
function Wa(a,b){J(a,H.aa);window.addEventListener&&(this.a=z({fieldsObj:{},hitFilter:null},b),this.b=a,this.u=this.u.bind(this),this.J=this.J.bind(this),this.D=this.D.bind(this),this.A=this.A.bind(this),this.B=this.B.bind(this),this.F=this.F.bind(this),"complete"!=document.readyState?window.addEventListener("load",this.u):this.u())}f=Wa.prototype;
f.u=function(){if(window.FB)try{window.FB.Event.subscribe("edge.create",this.B),window.FB.Event.subscribe("edge.remove",this.F)}catch(a){}window.twttr&&this.J()};f.J=function(){var a=this;try{window.twttr.ready(function(){window.twttr.events.bind("tweet",a.D);window.twttr.events.bind("follow",a.A)})}catch(b){}};function Xa(a){try{window.twttr.ready(function(){window.twttr.events.unbind("tweet",a.D);window.twttr.events.unbind("follow",a.A)})}catch(b){}}
f.D=function(a){if("tweet"==a.region){var b={transport:"beacon",socialNetwork:"Twitter",socialAction:"tweet",socialTarget:a.data.url||a.target.getAttribute("data-url")||location.href};this.b.send("social",y(b,this.a.fieldsObj,this.b,this.a.hitFilter,a.target,a))}};
f.A=function(a){if("follow"==a.region){var b={transport:"beacon",socialNetwork:"Twitter",socialAction:"follow",socialTarget:a.data.screen_name||a.target.getAttribute("data-screen-name")};this.b.send("social",y(b,this.a.fieldsObj,this.b,this.a.hitFilter,a.target,a))}};f.B=function(a){this.b.send("social",y({transport:"beacon",socialNetwork:"Facebook",socialAction:"like",socialTarget:a},this.a.fieldsObj,this.b,this.a.hitFilter))};
f.F=function(a){this.b.send("social",y({transport:"beacon",socialNetwork:"Facebook",socialAction:"unlike",socialTarget:a},this.a.fieldsObj,this.b,this.a.hitFilter))};f.remove=function(){window.removeEventListener("load",this.u);try{window.FB.Event.unsubscribe("edge.create",this.B),window.FB.Event.unsubscribe("edge.remove",this.F)}catch(a){}Xa(this)};G("socialWidgetTracker",Wa);
function Ya(a,b){J(a,H.ba);history.pushState&&window.addEventListener&&(this.a=z({shouldTrackUrlChange:this.shouldTrackUrlChange,trackReplaceState:!1,fieldsObj:{},hitFilter:null},b),this.b=a,this.c=location.pathname+location.search,this.H=this.H.bind(this),this.I=this.I.bind(this),this.C=this.C.bind(this),w(history,"pushState",this.H),w(history,"replaceState",this.I),window.addEventListener("popstate",this.C))}f=Ya.prototype;
f.H=function(a){var b=this;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];a.apply(null,[].concat(n(d)));Za(b,!0)}};f.I=function(a){var b=this;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];a.apply(null,[].concat(n(d)));Za(b,!1)}};f.C=function(){Za(this,!0)};
function Za(a,b){setTimeout(function(){var c=a.c,d=location.pathname+location.search;c!=d&&a.a.shouldTrackUrlChange.call(a,d,c)&&(a.c=d,a.b.set({page:d,title:document.title}),(b||a.a.trackReplaceState)&&a.b.send("pageview",y({transport:"beacon"},a.a.fieldsObj,a.b,a.a.hitFilter)))},0)}f.shouldTrackUrlChange=function(a,b){return!(!a||!b)};f.remove=function(){x(history,"pushState",this.H);x(history,"replaceState",this.I);window.removeEventListener("popstate",this.C)};G("urlChangeTracker",Ya);})();
//# sourceMappingURL=autotrack.js.map

@@ -5,2 +5,6 @@ # Changelog

### 2.4.0 (2017-06-02)
- Add a `queryParamsWhitelist` option to the `cleanUrlTracker` plugin [#181]
### 2.3.3 (2017-05-23)

@@ -7,0 +11,0 @@

@@ -40,3 +40,3 @@ # `cleanUrlTracker`

**Note:** while the `cleanUrlTracker` plugin does modify the `page` field value for each hit, it never modifies the [`location`](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#location) field. This allows campaign and site search data encoded in the full URL to be preserved.
**Note:** while the `cleanUrlTracker` plugin does modify the `page` field value for each hit, it never modifies the [`location`](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#location) field. This allows campaign (e.g. `utm` params) and adwords (e.g. `glclid`) data encoded in the full URL to be preserved.

@@ -70,2 +70,9 @@ ## Usage

<tr valign="top">
<td><code>queryParamsWhitelist</code></td>
<td><code>Array</code></td>
<td>
An array of query params not to strip. This is most commonly used in conjunction with site search, as shown in the <a href=""><code>queryParamsWhitelist</code> example</a> below.
</td>
</tr>
<tr valign="top">
<td><code>queryDimensionIndex</code></td>

@@ -97,3 +104,3 @@ <td><code>number</code></td>

<p>The <code>urlFieldsFilter</code> function must return a <code>fieldsObj</code> (either the passed one or a new one), and the returned fields will be sent with all hits. Non-URL fields set on the <code>fieldsObj</code> are ignored.</p>
<p><strong>Warning:</strong> be careful when modifying the <code>location</code> field as it's used to determine many session-level dimensions in Google Analytics (e.g. utm campaign data, site search, hostname, etc.). Unless you need to update the hostname, it's usually better to only modify the <code>page</code> field.</p>
<p><strong>Warning:</strong> be careful when modifying the <code>location</code> field as it's used to determine many session-level dimensions in Google Analytics (e.g. utm campaign data, adwords identifiers, hostname, etc.). Unless you need to update the hostname, it's usually better to only modify the <code>page</code> field.</p>
</td>

@@ -160,2 +167,22 @@ </tr>

### Using the `queryParamsWhitelist` option
Unlike campaign (e.g. `utm` params) and adwords (e.g. `glclid`) data, [Site Search](https://support.google.com/analytics/answer/1012264) data is not inferred by Google Analytics from the `location` field when the `page` field is present, so any site search query params *must not* be stripped from the `page` field.
You can preserve individual query params via the `queryParamsWhitelist` option:
```js
ga('require', 'cleanUrlTracker', {
stripQuery: true,
queryParamsWhitelist: ['q'],
});
```
Note that *not* stripping site search params from your URLs means those params will still show up in your page reports. If you don't want this to happen you can update your view's [Site Search setup](https://support.google.com/analytics/answer/1012264) as follows:
1. Specify the same parameter(s) you set in the `queryParamsWhitelist` option.
2. Check the "Strip query parameters out of URL" box.
These options combined will allow you to keep all unwanted query params out of your page reports and still use site search.
### Using the `urlFieldsFilter` option

@@ -162,0 +189,0 @@

@@ -21,3 +21,3 @@ # `eventTracker`

To add declarative interaction tracking to a DOM element, you start by adding a `ga-on` attribute (assuming the default `'ga-'` attribute prefix) and setting its value to a comma-separated list of DOM events you want to track (note: all events specified in the attribute most also be present in the [`events`](#options) configuration option). When any of the specified events is detected, a hit is sent to Google Analytics with the corresponding attribute values present on the element.
To add declarative interaction tracking to a DOM element, you start by adding a `ga-on` attribute (assuming the default `'ga-'` attribute prefix) and setting its value to a comma-separated list of DOM events you want to track (note: all events specified in the attribute must also be present in the [`events`](#options) configuration option). When any of the specified events is detected, a hit is sent to Google Analytics with the corresponding attribute values present on the element.

@@ -24,0 +24,0 @@ Any valid [analytics.js field](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference) can be set declaratively as an attribute. The attribute name can be determined by combining the [`attributePrefix`](#options) option with the [kebab-cased](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles) version of the field name. For example, if you want to set the [`eventCategory`](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#eventCategory) field and you're using the default `attributePrefix` of `'ga-'`, you would use the attribute name `ga-event-category`.

@@ -18,3 +18,3 @@ /**

export const VERSION = '2.3.3';
export const VERSION = '2.4.0';
export const DEV_ID = 'i5iSjo';

@@ -21,0 +21,0 @@

@@ -5,2 +5,3 @@ /**

* stripQuery: (boolean|undefined),
* queryParamsWhitelist: (Array|undefined),
* queryDimensionIndex: (number|undefined),

@@ -7,0 +8,0 @@ * indexFilename: (string|undefined),

@@ -45,2 +45,3 @@ /**

// stripQuery: undefined,
// queryParamsWhitelist: undefined,
// queryDimensionIndex: undefined,

@@ -144,3 +145,4 @@ // indexFilename: undefined,

const cleanedFieldsObj = {
page: pathname + (!this.opts.stripQuery ? url.search : ''),
page: pathname + (this.opts.stripQuery ?
this.stripNonWhitelistedQueryParams(url.search) : url.search),
};

@@ -162,7 +164,11 @@ if (fieldsObj.location) {

// Ensure only the URL fields are returned.
return {
const returnValue = {
page: userCleanedFieldsObj.page,
location: userCleanedFieldsObj.location,
[this.queryDimension]: userCleanedFieldsObj[this.queryDimension],
};
if (this.queryDimension) {
returnValue[this.queryDimension] =
userCleanedFieldsObj[this.queryDimension];
}
return returnValue;
} else {

@@ -174,2 +180,25 @@ return cleanedFieldsObj;

/**
* Accpets a raw URL search string and returns a new search string containing
* only the site search params (if they exist).
* @param {string} searchString The URL search string (starting with '?').
* @return {string} The query string
*/
stripNonWhitelistedQueryParams(searchString) {
if (Array.isArray(this.opts.queryParamsWhitelist)) {
const foundParams = [];
searchString.slice(1).split('&').forEach((kv) => {
const [key, value] = kv.split('=');
if (this.opts.queryParamsWhitelist.indexOf(key) > -1 && value) {
foundParams.push([key, value]);
}
});
return foundParams.length ?
'?' + foundParams.map((kv) => kv.join('=')).join('&') : '';
} else {
return '';
}
}
/**
* Restores all overridden tasks and methods.

@@ -176,0 +205,0 @@ */

{
"name": "autotrack",
"version": "2.3.3",
"version": "2.4.0",
"description": "Automatic and enhanced Google Analytics tracking for common user interactions on the web",

@@ -5,0 +5,0 @@ "main": "lib",

@@ -1,15 +0,15 @@

(function(){var ec=function(a){this.B=a||[]};ec.prototype.set=function(a){this.B[a]=!0};ec.prototype.encode=function(){for(var a=[],b=0;b<this.B.length;b++)this.B[b]&&(a[Math.floor(b/6)]^=1<<b%6);for(b=0;b<a.length;b++)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b]||0);return a.join("")+"~"};var Ne=new ec;function F(a){Ne.set(a)}var bf=function(a,b){var c=new ec($e(a));c.set(b);a.set(af,c.B)},cf=function(a){a=$e(a);a=new ec(a);for(var b=Ne.B.slice(),c=0;c<a.B.length;c++)b[c]=b[c]||a.B[c];return(new ec(b)).encode()},$e=function(a){a=a.get(af);ga(a)||(a=[]);return a};var t=function(a){return"function"==typeof a},ga=function(a){return"[object Array]"==Object.prototype.toString.call(Object(a))},G=function(a){return void 0!=a&&-1<(a.constructor+"").indexOf("String")},H=function(a,b){return 0==a.indexOf(b)},xa=function(a){return a?a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},za=function(a){var b=I.createElement("img");b.width=1;b.height=1;b.src=a;return b},Aa=function(){},P=function(a){if(encodeURIComponent instanceof Function)return encodeURIComponent(a);F(28);return a},
Ba=function(a){a=a.split("+").join(" ");if(decodeURIComponent instanceof Function)try{return decodeURIComponent(a)}catch(b){F(18)}F(28);return a},Ca=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){F(27)}},g=/^[\w\-:/.?=&%!]+$/,Ea=function(a,b,c){a&&(N("Loading script: %s",a),c?(c="",b&&(g.test(b)?c=' id="'+b+'"':J("Dropping invalid script ID: %s",b)),g.test(a)?I.write("<script"+c+' src="'+a+'">\x3c/script>'):J("URL uses invalid characters. Dropping request for: %s",
a)):(c=I.createElement("script"),c.type="text/javascript",c.async=!0,c.src=a,b&&(c.id=b),a=I.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},df=function(){return"https:"==I.location.protocol},aa=function(a,b){var c=a.match("(?:&|#|\\?)"+P(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)");return c&&2==c.length?c[1]:""},Wb=function(){var a=""+I.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},Xb=function(a){var b=I.referrer;if(/^https?:\/\//i.test(b)){if(a)return b;
a="//"+I.location.hostname;var c=b.indexOf(a);if(5==c||6==c)if(a=b.charAt(c+a.length),"/"==a||"?"==a||""==a||":"==a)return;return b}},Yb=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length),e=0;e<d;e++)if("object"===typeof b[e]){for(var f in b[e])b[e].hasOwnProperty(f)&&(c[f]=b[e][f]);break}else e<a.length?c[a[e]]=b[e]:J("Unrecognized positional argument: "+b[e]);return c},Zb=function(a,b){for(var c=0;c<a.length;c++)if(b==a[c])return!0;
return!1};var ef=function(){this.keys=[];this.values={};this.u={};this.debug=!1};ef.prototype.set=function(a,b,c){this.debug&&L(" "+a+"="+Fa(b)+(c?" (temp)":""));this.keys.push(a);c?this.u[":"+a]=b:this.values[":"+a]=b};ef.prototype.get=function(a){return this.u.hasOwnProperty(":"+a)?this.u[":"+a]:this.values[":"+a]};ef.prototype.map=function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b],d=this.get(c);d&&a(c,d)}};var Rd=[{V:"pa",W:"ec:action"},{V:"ti",W:"ec:id"},{V:"ta",W:"ec:affiliation"},{V:"tr",W:"ec:revenue"},{V:"tt",W:"ec:tax"},{V:"ts",W:"ec:shipping"},{V:"tcc",W:"ec:coupon"},{V:"cos",W:"ec:step"},{V:"col",W:"ec:label"},{V:"pal",W:"ec:product action list"},{V:"promoa",W:"ec:promo action"},{V:/^pr(\d+)id$/,W:"ec:product %s id"},{V:/^pr(\d+)nm$/,W:"ec:product %s name"},{V:/^pr(\d+)br$/,W:"ec:product %s brand"},{V:/^pr(\d+)ca$/,W:"ec:product %s category"},{V:/^pr(\d+)va$/,W:"ec:product %s variant"},{V:/^pr(\d+)ps$/,
(function(){var ec=function(a){this.B=a||[]};ec.prototype.set=function(a){this.B[a]=!0};ec.prototype.encode=function(){for(var a=[],b=0;b<this.B.length;b++)this.B[b]&&(a[Math.floor(b/6)]^=1<<b%6);for(b=0;b<a.length;b++)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b]||0);return a.join("")+"~"};var Ne=new ec;function F(a){Ne.set(a)}var bf=function(a,b){var c=new ec($e(a));c.set(b);a.set(af,c.B)},cf=function(a){a=$e(a);a=new ec(a);for(var b=Ne.B.slice(),c=0;c<a.B.length;c++)b[c]=b[c]||a.B[c];return(new ec(b)).encode()},$e=function(a){a=a.get(af);ga(a)||(a=[]);return a};var t=function(a){return"function"==typeof a},ga=function(a){return"[object Array]"==Object.prototype.toString.call(Object(a))},G=function(a){return void 0!=a&&-1<(a.constructor+"").indexOf("String")},H=function(a,b){return 0==a.indexOf(b)},xa=function(a){return a?a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},ia=function(){for(var a=Q.navigator.userAgent+(I.cookie?I.cookie:"")+(I.referrer?I.referrer:""),b=a.length,c=Q.history.length;0<c;)a+=c--^b++;return[ae()^ic(a)&2147483647,Math.round((new Date).getTime()/
1E3)].join(".")},za=function(a){var b=I.createElement("img");b.width=1;b.height=1;b.src=a;return b},Aa=function(){},P=function(a){if(encodeURIComponent instanceof Function)return encodeURIComponent(a);F(28);return a},Ba=function(a){a=a.split("+").join(" ");if(decodeURIComponent instanceof Function)try{return decodeURIComponent(a)}catch(b){F(18)}F(28);return a},Ca=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){F(27)}},g=/^[\w\-:/.?=&%!]+$/,
Ea=function(a,b,c,d){a&&(N("Loading script: %s",a),c?(d="",b&&(g.test(b)?d=' id="'+b+'"':J("Dropping invalid script ID: %s",b)),g.test(a)?I.write("<script"+d+' src="'+a+'">\x3c/script>'):J("URL uses invalid characters. Dropping request for: %s",a)):(c=I.createElement("script"),c.type="text/javascript",c.async=!0,c.src=a,d&&(c.onload=d),b&&(c.id=b),a=I.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},df=function(){return"https:"==I.location.protocol},aa=function(a,b){return(a=a.match("(?:&|#|\\?)"+
P(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==a.length?a[1]:""},Wb=function(){var a=""+I.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},Xb=function(a){var b=I.referrer;if(/^https?:\/\//i.test(b)){if(a)return b;a="//"+I.location.hostname;var c=b.indexOf(a);if(5==c||6==c)if(a=b.charAt(c+a.length),"/"==a||"?"==a||""==a||":"==a)return;return b}},Yb=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length),
e=0;e<d;e++)if("object"===typeof b[e]){for(var f in b[e])b[e].hasOwnProperty(f)&&(c[f]=b[e][f]);break}else e<a.length?c[a[e]]=b[e]:J("Unrecognized positional argument: "+b[e]);return c},Zb=function(a,b){for(var c=0;c<a.length;c++)if(b==a[c])return!0;return!1};var ef=function(){this.keys=[];this.values={};this.u={};this.debug=!1};ef.prototype.set=function(a,b,c){this.debug&&L(" "+a+"="+Fa(b)+(c?" (temp)":""));this.keys.push(a);c?this.u[":"+a]=b:this.values[":"+a]=b};ef.prototype.get=function(a){return this.u.hasOwnProperty(":"+a)?this.u[":"+a]:this.values[":"+a]};ef.prototype.map=function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b],d=this.get(c);d&&a(c,d)}};var Rd=[{V:"pa",W:"ec:action"},{V:"ti",W:"ec:id"},{V:"ta",W:"ec:affiliation"},{V:"tr",W:"ec:revenue"},{V:"tt",W:"ec:tax"},{V:"ts",W:"ec:shipping"},{V:"tcc",W:"ec:coupon"},{V:"cos",W:"ec:step"},{V:"col",W:"ec:label"},{V:"pal",W:"ec:product action list"},{V:"promoa",W:"ec:promo action"},{V:/^pr(\d+)id$/,W:"ec:product %s id"},{V:/^pr(\d+)nm$/,W:"ec:product %s name"},{V:/^pr(\d+)br$/,W:"ec:product %s brand"},{V:/^pr(\d+)ca$/,W:"ec:product %s category"},{V:/^pr(\d+)va$/,W:"ec:product %s variant"},{V:/^pr(\d+)ps$/,
W:"ec:product %s position"},{V:/^pr(\d+)pr$/,W:"ec:product %s price"},{V:/^pr(\d+)qt$/,W:"ec:product %s quantity"},{V:/^pr(\d+)cc$/,W:"ec:product %s coupon"},{V:/^pr(\d+)cd(\d+)$/,W:"ec:product %s dimension %s"},{V:/^pr(\d+)cm(\d+)$/,W:"ec:product %s metric %s"},{V:/^promo(\d+)id$/,W:"ec:promo %s id"},{V:/^promo(\d+)nm$/,W:"ec:promo %s name"},{V:/^promo(\d+)cr$/,W:"ec:promo %s creative"},{V:/^promo(\d+)ps$/,W:"ec:promo %s position"},{V:/^il(\d+)nm$/,W:"ec:impression list %s name"},{V:/^il(\d+)ls$/,
W:"ec:impression list %s source"},{V:/^il(\d+)pi(\d+)id$/,W:"ec:impression list %s product %s id"},{V:/^il(\d+)pi(\d+)nm$/,W:"ec:impression list %s product %s name"},{V:/^il(\d+)pi(\d+)br$/,W:"ec:impression list %s product %s brand"},{V:/^il(\d+)pi(\d+)ca$/,W:"ec:impression list %s product %s category"},{V:/^il(\d+)pi(\d+)va$/,W:"ec:impression list %s product %s variant"},{V:/^il(\d+)pi(\d+)ps$/,W:"ec:impression list %s product %s position"},{V:/^il(\d+)pi(\d+)pr$/,W:"ec:impression list %s product %s price"},
{V:/^il(\d+)pi(\d+)cd(\d+)$/,W:"ec:impression list %s product %s dimension %s"},{V:/^il(\d+)pi(\d+)cm(\d+)$/,W:"ec:impression list %s product %s metric %s"},{V:"linkid",W:"linkid:linkId"},{V:"ic",W:"ec:item code"},{V:"in",W:"ec:item name"},{V:"iv",W:"ec:item variation"},{V:"ip",W:"ec:item price"},{V:"iq",W:"ec:item quantity"},{V:"cu",W:"ec:item currency"}],Sd=function(a){"&"==a.charAt(0)&&(a=a.substring(1));for(var b=0;b<Rd.length;b++){var c=Rd[b].V,d=Rd[b].W;if(G(c)){if(c==a)return d}else if(c=a.match(c))return c[0]=
d,Ha.apply(void 0,c)}return""};function Ga(a,b){var c=[].slice.call(arguments);c.unshift("log");M.log.apply(M,c)}function N(a,b){var c=[].slice.call(arguments);c.unshift("info");M.log.apply(M,c)}function J(a,b){var c=[].slice.call(arguments);c.unshift("warn");M.log.apply(M,c)}function O(a,b){var c=[].slice.call(arguments);c.unshift("error");M.log.apply(M,c)}function L(a,b){var c=Q.ga_debug;c&&c.trace&&(c=[].slice.call(arguments),c.unshift("log"),M.log.apply(M,c))}
function dd(a,b){var c=[].slice.call(arguments);c.unshift("group");M.log.apply(M,c)}function ge(){M.log.apply(M,["groupEnd"])}var M=new function(){var a=window.console,b=a&&"Firebug Lite"==a.provider;this.log=function(c,d,e){if(a){var f=Ha.apply(window,[].slice.call(arguments,1));if(b)for(var f=f.split("\n"),ea=0;ea<f.length;ea++)a[c](f[ea]);else if(a[c])a[c](f);else"group"==c&&a.log(f)}}};
d,Ha.apply(void 0,c)}return""};var M;function Ga(a,b){var c=[].slice.call(arguments);c.unshift("log");M.log.apply(M,c)}function N(a,b){var c=[].slice.call(arguments);c.unshift("info");M.log.apply(M,c)}function J(a,b){var c=[].slice.call(arguments);c.unshift("warn");M.log.apply(M,c)}function O(a,b){var c=[].slice.call(arguments);c.unshift("error");M.log.apply(M,c)}function L(a,b){var c=Q.ga_debug;c&&c.trace&&(c=[].slice.call(arguments),c.unshift("log"),M.log.apply(M,c))}
function dd(a,b){var c=[].slice.call(arguments);c.unshift("group");M.log.apply(M,c)}function ge(){M.log.apply(M,["groupEnd"])}M=new function(){var a=window.console,b=a&&"Firebug Lite"==a.provider;this.log=function(c,d,e){if(a){var f=Ha.apply(window,[].slice.call(arguments,1));if(b)for(var f=f.split("\n"),ea=0;ea<f.length;ea++)a[c](f[ea]);else if(a[c])a[c](f);else"group"==c&&a.log(f)}}};
function Ia(a){N("\nSent beacon:\n"+a+"\n\n");var b=[];a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].split("="),e=d[0],d=d[1];if("_"!=e.charAt(0)){var f=kd(e);f&&0==f.indexOf("&")&&(f=Sd(f)||f);f&&("&"+e==f&&(f="<unknown>"),b.push([f,"(&"+e+")",Ba(d)]))}}b.sort();Xd(b)}
function Xd(a){for(var b=[],c=0;c<a.length;c++)for(var d=0;d<a[c].length-1;d++)a[c][d]&&(b[d]=b[d]||0,b[d]=a[c][d].length>b[d]?a[c][d].length:b[d]);for(c=0;c<a.length;c++){for(var e=[],d=0;d<a[c].length;d++){var f=he(0)+a[c][d];e.push(f+he((b[d]||0)-f.length))}N(e.join(" "))}}function Ja(a){var b=[];Ka.map(function(c,d){var e=a.get(c);void 0!=e&&"_"!=c[0]&&b.push(c+(d.i?" ("+d.i+")":"")+" = "+Fa(e))});for(var c=b.sort(),d=0;d<c.length;d++)N(" "+c[d])}
function Td(a){for(var b in a)a.hasOwnProperty(b)&&(Zb(ac,b)||(yc(b)?J('This field cannot be set in a create method. Please use ga("set", %s, %s);',b,a[b]):J("Create config had an unknown parameter: %s",b)),La(b,a[b]))}
function Fa(a,b){var c=b||0;if(void 0==a)return""+a;if(G(a))return'"'+a+'"';if(t(a))return"[function]";if(ga(a)){if(3<b)return"[...]";for(var d=[],e=0;e<a.length;e++)d.push(Fa(a[e],c+1));return"["+d.join(", ")+"]"}if(a.constructor==Object){if(3<b)return"{...}";d=[];for(e in a)d.push(e+": "+Fa(a[e],c+1));return"{"+d.join(", ")+"}"}return""+a}function Ha(a,b){if(!G(a))return"";for(var c=a.split("%s"),d=1;d<arguments.length;d++)c.splice(2*d-1,0,Fa(arguments[d]));return c.join("")}
function Fa(a,b){var c=b||0;if(void 0==a)return""+a;if(G(a))return'"'+a+'"';if(t(a))return"[function]";if(ga(a)){if(3<b)return"[...]";b=[];for(var d=0;d<a.length;d++)b.push(Fa(a[d],c+1));return"["+b.join(", ")+"]"}if(a.constructor==Object){if(3<b)return"{...}";b=[];for(d in a)b.push(d+": "+Fa(a[d],c+1));return"{"+b.join(", ")+"}"}return""+a}function Ha(a,b){if(!G(a))return"";for(var c=a.split("%s"),d=1;d<arguments.length;d++)c.splice(2*d-1,0,Fa(arguments[d]));return c.join("")}
function he(a){return 0<a?Array(a+1).join(" "):""}

@@ -23,9 +23,9 @@ function La(a,b){if(void 0==b)switch(a){case U:case Ma:case Gc:J("Expected a value for required field: %s",a)}else{switch(a){case Ma:case Na:case Oa:case Pa:case Qa:case Ra:case Sa:case Ta:case Ua:case Va:case Wa:case Xa:case Ya:case Za:case R:case $a:case ab:case bb:case cb:case db:case eb:case fb:case gb:case hb:case ib:case jb:case kb:case lb:case mb:case nb:case pb:case qb:case rb:case sb:case tb:case ub:case S:case vb:case wb:case xb:case Pd:G(b)||J("Expected a string value for field: %s. But found: %s.",

f)).toGMTString()+"; ");d&&"none"!=d&&(c+="domain="+d+";");d=I.cookie;I.cookie=c;return d!=I.cookie||Zb(Md(a),b)},Ae=function(a){return P(a).replace(/\(/g,"%28").replace(/\)/g,"%29")},fe=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,Wd=/(^|\.)doubleclick\.net$/i;var hd=function(){return($b||df()?"https:":"http:")+"//www.google-analytics.com"},bc=function(a){this.name="len";this.message=a+"-8192"},da=function(a,b,c){c=c||Aa;if(2036>=b.length)id(a,b,c),Ia(b);else if(8192>=b.length)u(a,b,c)||te(a,b,c)||id(a,b,c),Ia(b);else throw O("Payload size is too large (%s). Max allowed is %s.",b.length,8192),fc("len",b.length),new bc(b.length);},id=function(a,b,c){var d=za(a+"?"+b);d.onload=d.onerror=function(){d.onload=null;d.onerror=null;c()}},te=function(a,b,c){var d=
Q.XMLHttpRequest;if(!d)return!1;var e=new d;if(!("withCredentials"in e))return!1;e.open("POST",a,!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onreadystatechange=function(){4==e.readyState&&(c(),e=null)};e.send(b);return!0},u=function(a,b,c){return Q.navigator.sendBeacon?Q.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},fc=function(a,b,c){O("Error: type=%s method=%s message=%s account=%s",arguments);if(!(1<=100*Math.random()||K("?"))){var d=["t=error","_e="+a,"_v=j47d","sr=1"];
b&&d.push("_f="+b);c&&d.push("_m="+P(c.substring(0,100)));d.push("aip=1");d.push("z="+ae());id(hd()+"/collect",d.join("&"),Aa)}};var h=function(a){var b=Q.gaData=Q.gaData||{};return b[a]=b[a]||{}};var gc=function(){this.m=[]};gc.prototype.add=function(a){this.m.push(a)};gc.prototype.H=function(a){L("\nExecuting "+this.m.length+" filters:");try{for(var b=0;b<this.m.length;b++){L(" filter["+b+"]: "+this.m[b]);var c=a.get(this.m[b]);c&&t(c)?c.call(Q,a):L(" Skipping (no function found.)")}}catch(d){L("Aborted execution due to exception: "+d)}b=a.get(Nb);b!=Aa&&t(b)&&(L("Manually firing callback"),a.set(Nb,Aa,!0),setTimeout(b,10))};
Q.XMLHttpRequest;if(!d)return!1;var e=new d;if(!("withCredentials"in e))return!1;a=a.replace(/^http:/,"https:");e.open("POST",a,!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onreadystatechange=function(){4==e.readyState&&(c(),e=null)};e.send(b);return!0},u=function(a,b,c){return Q.navigator.sendBeacon?Q.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},fc=function(a,b,c){O("Error: type=%s method=%s message=%s account=%s",arguments);if(!(1<=100*Math.random()||K("?"))){var d=["t=error",
"_e="+a,"_v=j54d","sr=1"];b&&d.push("_f="+b);c&&d.push("_m="+P(c.substring(0,100)));d.push("aip=1");d.push("z="+ae());id(hd()+"/collect",d.join("&"),Aa)}};var h=function(a){var b=Q.gaData=Q.gaData||{};return b[a]=b[a]||{}};var gc=function(){this.m=[]};gc.prototype.add=function(a){this.m.push(a)};gc.prototype.H=function(a){L("\nExecuting "+this.m.length+" filters:");try{for(var b=0;b<this.m.length;b++){L(" filter["+b+"]: "+this.m[b]);var c=a.get(this.m[b]);c&&t(c)?c.call(Q,a):L(" Skipping (no function found.)")}}catch(d){L("Aborted execution due to exception: "+d)}b=a.get(Nb);b!=Aa&&t(b)&&(L("Manually firing callback"),a.set(Nb,Aa,!0),setTimeout(b,10))};
function hc(a){if(100!=a.get(Db)&&ic(V(a,R))%1E4>=100*jc(a,Db))throw N("User has been sampled out. Aborting hit."),"abort";}function kc(a){if(K(V(a,U)))throw N("User has opted out of tracking. Aborting hit."),"abort";}function lc(){var a=I.location.protocol;if("http:"!=a&&"https:"!=a)throw N("Unallowed document protocol. Aborting hit."),"abort";}
function mc(a){try{Q.navigator.sendBeacon?F(42):Q.XMLHttpRequest&&"withCredentials"in new Q.XMLHttpRequest&&F(40)}catch(c){}a.set(oc,cf(a),!0);a.set(md,jc(a,md)+1);var b=[];Ka.map(function(c,d){if(d.i){var e=a.get(c);void 0!=e&&e!=d.defaultValue&&("boolean"==typeof e&&(e*=1),b.push(d.i+"="+P(""+e)))}});b.push("z="+be());a.set(Na,b.join("&"),!0)}
function mc(a){try{Q.navigator.sendBeacon?F(42):Q.XMLHttpRequest&&"withCredentials"in new Q.XMLHttpRequest&&F(40)}catch(c){}a.set(oc,cf(a),!0);a.set(md,jc(a,md)+1);var b=[];Ka.map(function(c,d){d.i&&(c=a.get(c),void 0!=c&&c!=d.defaultValue&&("boolean"==typeof c&&(c*=1),b.push(d.i+"="+P(""+c))))});b.push("z="+be());a.set(Na,b.join("&"),!0)}
function pc(a){var b=V(a,ob)||hd()+"/collect",c=V(a,ha);!c&&a.get(Oe)&&(c="beacon");if(c){var d=V(a,Na),e=a.get(Nb);8192<d.length&&O("Payload size is too large (%s). Max allowed is %s.",d.length,8192);e=e||Aa;N("Sending hit with transport method %s",c);"image"==c?(id(b,d,e),Ia(d)):"xhr"==c&&te(b,d,e)?Ia(d):"beacon"==c&&u(b,d,e)?Ia(d):(N("Transport Method, %s, is not supported, falling back to default method.",c),da(b,d,e))}else da(b,V(a,Na),a.get(Nb));b=a.get(U);b=h(b);c=b.hitcount;b.hitcount=c?
c+1:1;b=a.get(U);delete h(b).pending_experiments;a.set(Nb,Aa,!0)}function td(a){(Q.gaData=Q.gaData||{}).expId&&a.set(zd,(Q.gaData=Q.gaData||{}).expId);(Q.gaData=Q.gaData||{}).expVar&&a.set(Ad,(Q.gaData=Q.gaData||{}).expVar);var b;var c=a.get(U);if(c=h(c).pending_experiments){var d=[];for(b in c)c.hasOwnProperty(b)&&c[b]&&d.push(encodeURIComponent(b)+"."+encodeURIComponent(c[b]));b=d.join("!")}else b=void 0;b&&a.set(m,b,!0)}function nc(a){Ec(a)}
function Ud(){if(Q.navigator&&"preview"==Q.navigator.loadPurpose)throw N("Navigator in preview mode. Aborting hit."),"abort";}function ve(a){var b=Q.gaDevIds;ga(b)&&0!=b.length&&a.set("&did",b.join(","),!0)}function ya(a){if(!a.get(U))throw O("Tracking ID not set. Aborting hit."),"abort";};var ae=function(){return Math.round(2147483647*Math.random())},be=function(){try{var a=new Uint32Array(1);Q.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return ae()}};function qc(a){var b=jc(a,rc);500<=b&&(F(15),N("Exceeded maximum number of hits for this page. Try reducing the number of hits being sent."));var c=V(a,Ma);if("transaction"!=c&&"item"!=c){var c=jc(a,uc),d=(new Date).getTime(),e=jc(a,vc);0==e&&a.set(vc,d);e=Math.round(2*(d-e)/1E3);0<e&&(c=Math.min(c+e,20),a.set(vc,d));if(0>=c)throw N("Exceeded rate limit for sending hits. Aborting hit."),"abort";a.set(uc,--c)}a.set(rc,++b)};var wc=function(){this.data=new ef;this.data.debug=!0},Ka=new ef,xc=[];wc.prototype.get=function(a){var b=yc(a),c=this.data.get(a);b&&void 0==c&&(c=t(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.v?b.v(this,a,c):c};var V=function(a,b){var c=a.get(b);return void 0==c?"":""+c},jc=function(a,b){var c=a.get(b);return void 0==c||""===c?0:1*c};wc.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&zc(this,d,a[d],c);else zc(this,a,b,c)};
c+1:1;b=a.get(U);delete h(b).pending_experiments;a.set(Nb,Aa,!0)}function td(a){(Q.gaData=Q.gaData||{}).expId&&a.set(zd,(Q.gaData=Q.gaData||{}).expId);(Q.gaData=Q.gaData||{}).expVar&&a.set(Ad,(Q.gaData=Q.gaData||{}).expVar);var b=a.get(U);if(b=h(b).pending_experiments){var c=[];for(d in b)b.hasOwnProperty(d)&&b[d]&&c.push(encodeURIComponent(d)+"."+encodeURIComponent(b[d]));var d=c.join("!")}else d=void 0;d&&a.set(m,d,!0)}function nc(a){Ec(a)}
function Ud(){if(Q.navigator&&"preview"==Q.navigator.loadPurpose)throw N("Navigator in preview mode. Aborting hit."),"abort";}function ve(a){var b=Q.gaDevIds;ga(b)&&0!=b.length&&a.set("&did",b.join(","),!0)}function ya(a){if(!a.get(U))throw O("Tracking ID not set. Aborting hit."),"abort";};var ae=function(){return Math.round(2147483647*Math.random())},be=function(){try{var a=new Uint32Array(1);Q.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return ae()}};function qc(a){var b=jc(a,rc);500<=b&&(F(15),N("Exceeded maximum number of hits for this page. Try reducing the number of hits being sent."));var c=V(a,Ma);if("transaction"!=c&&"item"!=c){var c=jc(a,uc),d=(new Date).getTime(),e=jc(a,vc);0==e&&a.set(vc,d);e=Math.round(2*(d-e)/1E3);0<e&&(c=Math.min(c+e,20),a.set(vc,d));if(0>=c)throw N("Exceeded rate limit for sending hits. Aborting hit."),"abort";a.set(uc,--c)}a.set(rc,++b)};var wc=function(){this.data=new ef;this.data.debug=!0},Ka=new ef,xc=[];wc.prototype.get=function(a){var b=yc(a),c=this.data.get(a);b&&void 0==c&&(c=t(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.v?b.v(this,a,c):c};var V=function(a,b){a=a.get(b);return void 0==a?"":""+a},jc=function(a,b){a=a.get(b);return void 0==a||""===a?0:1*a};wc.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&zc(this,d,a[d],c);else zc(this,a,b,c)};
var zc=function(a,b,c,d){La(b,c);var e=yc(b);e&&e.w?e.w(a,b,c,d):a.data.set(b,c,d);e||N("Set called on unknown field: %s.",b)},Ac=function(a,b,c,d,e){this.name=a;this.i=b;this.v=d;this.w=e;this.defaultValue=c},yc=function(a){var b=Ka.get(a);if(!b)for(var c=0;c<xc.length;c++){var d=xc[c],e=d[0].exec(a);if(e){L("Generating new model field for name: "+a);b=d[1](e);Ka.set(b.name,b);break}}return b},kd=function(a){var b;Ka.map(function(c,d){d.i==a&&(b=d)});return b&&b.name},W=function(a,b,c,d,e){a=new Ac(a,

@@ -36,35 +36,38 @@ b,c,d,e);Ka.set(a.name,a);return a.name},Bc=function(a,b){xc.push([new RegExp("^"+a+"$"),b])},X=function(a,b,c){return W(a,b,c,void 0,Cc)},Cc=function(a,b){O("Ignored attempt to update read-only property: "+b)};var Fc=G(window.GoogleAnalyticsObject)&&xa(window.GoogleAnalyticsObject)||"ga",$b=!1,Gc=X("apiVersion","v"),Hc=X("clientVersion","_v"),Fb=W("anonymizeIp","aip"),yb=W("adSenseId","a"),Ma=W("hitType","t"),Nb=W("hitCallback"),Na=W("hitPayload"),Gb=W("nonInteraction","ni"),Pd=W("currencyCode","cu");W("dataSource","ds");var Oe=W("useBeacon",void 0,!1),ha=W("transport"),Hb=W("sessionControl","sc","");W("sessionGroup","sg");

"pdt"),Kc=W("l3","dns"),Lc=W("l4","rrt"),Mc=W("l5","srt"),Nc=W("l6","tcp"),Oc=W("l7","dit"),Pc=W("l8","clt"),lb=W("timingCategory","utc"),mb=W("timingVar","utv"),nb=W("timingLabel","utl"),Bb=W("timingValue","utt"),pb=W("appName","an"),qb=W("appVersion","av",""),rb=W("appId","aid",""),sb=W("appInstallerId","aiid",""),tb=W("exDescription","exd"),Jb=W("exFatal","exf"),zd=W("expId","xid"),Ad=W("expVar","xvar"),m=W("exp","exp"),Dd=W("_utma","_utma"),Ed=W("_utmz","_utmz"),Fd=W("_utmht","_utmht"),rc=W("_hc",
void 0,0),vc=W("_ti",void 0,0),uc=W("_to",void 0,20);Bc("dimension([0-9]+)",function(a){return new Ac(a[0],"cd"+a[1])});Bc("metric([0-9]+)",function(a){return new Ac(a[0],"cm"+a[1])});W("linkerParam",void 0,void 0,nd,Cc);var oc=W("usage","_u"),af=W("_um");W("forceSSL",void 0,void 0,function(){return $b},function(a,b,c){F(34);$b=!!c});var Zd=W("_j1","jid");
void 0,0),vc=W("_ti",void 0,0),uc=W("_to",void 0,20);Bc("dimension([0-9]+)",function(a){return new Ac(a[0],"cd"+a[1])});Bc("metric([0-9]+)",function(a){return new Ac(a[0],"cm"+a[1])});W("linkerParam",void 0,void 0,nd,Cc);var oc=W("usage","_u"),af=W("_um");W("forceSSL",void 0,void 0,function(){return $b},function(a,b,c){F(34);$b=!!c});var Zd=W("_j1","jid"),ja=W("_j2","gjid");
Bc("\\&(.*)",function(a){var b=new Ac(a[0],a[1]),c=kd(a[0].substring(1));c&&(L("Alias created: "+a[0]+" -> "+c),b.v=function(a){return a.get(c)},b.w=function(a,b,f,ea){a.set(c,f,ea)},b.i=void 0);return b});
var Ob=X("_oot"),Vd=W("previewTask"),Pb=W("checkProtocolTask"),xd=W("validationTask"),Qb=W("checkStorageTask"),Gd=W("historyImportTask"),Rb=W("samplerTask"),Tb=W("_rlt"),Ub=W("buildHitTask"),Vb=W("sendHitTask"),Hd=W("ceTask"),we=W("devIdTask"),oe=W("timingTask"),Ce=W("displayFeaturesTask"),T=X("name"),R=X("clientId","cid"),n=X("clientIdTime"),xe=W("userId","uid"),U=X("trackingId","tid"),ub=X("cookieName",void 0,"_ga"),S=X("cookieDomain"),vb=X("cookiePath",void 0,"/"),Cb=X("cookieExpires",void 0,63072E3),
wb=X("legacyCookieDomain"),Id=X("legacyHistoryImport",void 0,!0),xb=X("storage",void 0,"cookie"),Kb=X("allowLinker",void 0,!1),Lb=X("allowAnchor",void 0,!0),Db=X("sampleRate","sf",100),Eb=X("siteSpeedSampleRate",void 0,1),Mb=X("alwaysSendReferrer",void 0,!1),ac=[T,U,R,n,xe,ub,S,vb,Cb,wb,Id,Kb,Lb,Db,Eb,Mb,xb],ob=W("transportUrl"),De=W("_r","_r");function Y(a,b,c,d){b[a]=function(){try{return d&&F(d),c.apply(this,arguments)}catch(e){throw fc("exc",a,e&&e.name),e;}}};var Ie=function(a){this.Z=a;this.ja=void 0;this.fa=!1;this.ra=void 0;this.ia=1},ye=function(a,b){var c;if(a.ja&&a.fa)return 0;a.fa=!0;if(b){if(a.ra&&jc(b,a.ra))return jc(b,a.ra);if(0==b.get(Eb))return 0}if(0==a.Z)return 0;void 0===c&&(c=be());return 0==c%a.Z?Math.floor(c/a.Z)%a.ia+1:0};function Qc(){var a,b,c;if((c=(c=Q.navigator)?c.plugins:null)&&c.length)for(var d=0;d<c.length&&!b;d++){var e=c[d];-1<e.name.indexOf("Shockwave Flash")&&(b=e.description)}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),b=a.GetVariable("$version")}catch(f){}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b="WIN 6,0,21,0",a.AllowScriptAccess="always",b=a.GetVariable("$version")}catch(f){}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=a.GetVariable("$version")}catch(f){}b&&
(a=b.match(/[\d]+/g))&&3<=a.length&&(b=a[0]+"."+a[1]+" r"+a[2]);return b||void 0};var ba=function(a){var b=Math.min(jc(a,Eb),100);return ic(V(a,R))%100>=b?(L("Site speed data not sent - visitor sampled out"),!1):!0},Sc=function(a){var b={};if(qd(b)||rd(b)){var c=b[Ic];void 0==c||Infinity==c||isNaN(c)?L("Site speed data not sent - unsupported browser"):0<c?(Rc(b,Kc),Rc(b,Nc),Rc(b,Mc),Rc(b,Jc),Rc(b,Lc),Rc(b,Oc),Rc(b,Pc),a(b)):(L("Site speed data not available - waiting for onload"),Ca(Q,"load",function(){Sc(a)},!1))}else L("Site speed data not sent - unsupported browser")},qd=function(a){var b=
Q.performance||Q.webkitPerformance,b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Ic]=b.loadEventStart-c;a[Kc]=b.domainLookupEnd-b.domainLookupStart;a[Nc]=b.connectEnd-b.connectStart;a[Mc]=b.responseStart-b.requestStart;a[Jc]=b.responseEnd-b.responseStart;a[Lc]=b.fetchStart-c;a[Oc]=b.domInteractive-c;a[Pc]=b.domContentLoadedEventStart-c;return!0},rd=function(a){if(Q.top!=Q)return!1;var b=Q.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<c&&(c=void 0);
0<c&&b.setPageReadyTime();if(void 0==c)return!1;a[Ic]=c;return!0},Rc=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0},ze=function(a){return function(b){if("pageview"==b.get(Ma)&&!a.L){a.L=!0;var c=ba(b);b=0<aa(b.get(Pa),"gclid").length;(c||b)&&Sc(function(b){a.send(c?"timing":"adtiming",b)})}}};var Tc=!1,Yc=function(a){if("cookie"==V(a,xb)){var b=V(a,ub),c=ie(a),d=Wc(V(a,vb)),e=Xc(V(a,S)),f=1E3*jc(a,Cb),ea=V(a,U);if("auto"!=e)pe(b,c,d,e,ea,f)&&(Tc=!0);else{F(32);for(var l=fd(),k=0;k<l.length;k++)if(e=l[k],a.data.set(S,e),c=ie(a),pe(b,c,d,e,ea,f)){N("Auto cookieDomain found: %s",e);Tc=!0;return}O("Cookie write failed.");a.data.set(S,"auto")}}},Zc=function(a){if("cookie"==V(a,xb)&&!Tc&&(Yc(a),!Tc))throw N("Storage not available. Aborting hit."),"abort";},Kd=function(a){if(a.get(Id)){var b=
V(a,S),c=V(a,wb)||Wb(),d=Jd("__utma",c,b);d&&(F(19),a.set(Fd,(new Date).getTime(),!0),a.set(Dd,d.T),(b=Jd("__utmz",c,b))&&d.hash==b.hash&&a.set(Ed,b.T))}},ie=function(a){var b=Ae(V(a,R)),c=Xc(V(a,S)).split(".").length;a=Vc(V(a,vb));1<a&&(c+="-"+a);return["GA1",c,b].join(".")},sd=function(a,b,c){for(var d=[],e=[],f,ea=0;ea<a.length;ea++){var l=a[ea];l.K[c]==b?d.push(l):void 0==f||l.K[c]<f?(e=[l],f=l.K[c]):l.K[c]==f&&e.push(l)}return 0<d.length?d:e},Xc=function(a){return 0==a.indexOf(".")?a.substr(1):
a},fd=function(){var a=[],b=Wb().split(".");if(4==b.length){var c=b[b.length-1];if(parseInt(c,10)==c)return["none"]}for(c=b.length-2;0<=c;c--)a.push(b.slice(c).join("."));a.push("none");return a},Wc=function(a){if(!a)return"/";1<a.length&&a.lastIndexOf("/")==a.length-1&&(a=a.substr(0,a.length-1));0!=a.indexOf("/")&&(a="/"+a);return a},Vc=function(a){a=Wc(a);return"/"==a?1:a.split("/").length};function Jd(a,b,c){"none"==b&&(b="");var d=[],e=Md(a);a="__utma"==a?6:2;for(var f=0;f<e.length;f++){var ea=(""+e[f]).split(".");ea.length>=a&&d.push({hash:ea[0],T:e[f],ea:ea})}if(0!=d.length)return 1==d.length?d[0]:Ld(b,d)||Ld(c,d)||Ld(null,d)||d[0]}function Ld(a,b){var c,d;null==a?c=d=1:(c=ic(a),d=ic(H(a,".")?a.substring(1):"."+a));for(var e=0;e<b.length;e++)if(b[e].hash==c||b[e].hash==d)return b[e]};var je=new RegExp(/^https?:\/\/([^\/:]+)/),ke=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/;function nd(a){a=a.get(R);var b=ud(a,0);return"_ga=1."+P(b+"."+a)}function ud(a,b){for(var c=new Date,d=Q.navigator,e=d.plugins||[],c=[a,d.userAgent,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b],d=0;d<e.length;++d)c.push(e[d].description);return ic(c.join("."))}var pd=function(a){F(48);this.target=a;this.X=!1};
pd.prototype.S=function(a,b){if(a.tagName){if("a"==a.tagName.toLowerCase()){a.href&&(a.href=le(this,a.href,b));return}if("form"==a.tagName.toLowerCase())return me(this,a)}if("string"==typeof a)return le(this,a,b);O("Unknown Object passed to linker:decorate %s",a)};
var le=function(a,b,c){var d=ke.exec(b);d&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));a=a.target.get("linkerParam");var e=b.indexOf("?"),d=b.indexOf("#");c?b+=(-1==d?"#":"&")+a:(c=-1==e?"?":"&",b=-1==d?b+(c+a):b.substring(0,d)+c+a+b.substring(d));return b=b.replace(/&+_ga=/,"&_ga=")},me=function(a,b){if(b)if(b.action){N("Linker decorating form: %s",b);var c=a.target.get("linkerParam").split("=")[1];if("get"==b.method.toLowerCase()){for(var d=b.childNodes||[],e=0;e<d.length;e++)if("_ga"==d[e].name){d[e].setAttribute("value",
c);return}d=I.createElement("input");d.setAttribute("type","hidden");d.setAttribute("name","_ga");d.setAttribute("value",c);b.appendChild(d)}else"post"==b.method.toLowerCase()?b.action=le(a,b.action):O("Unknown form method %s on %s",b.method,b)}else O("An action is required for the linker to work.")};
pd.prototype.U=function(a,b,c){function d(c){try{c=c||Q.event;var d;a:{var f=c.target||c.srcElement;for(c=100;f&&0<c;){if(f.href&&f.nodeName.match(/^a(?:rea)?$/i)){d=f;break a}f=f.parentNode;c--}d={}}"http:"!=d.protocol&&"https:"!=d.protocol||!ne(a,d.hostname||"")||(d.href&&(d.href=le(e,d.href,b)),N("Link decorated: "+d.href))}catch(k){F(26)}}var e=this;this.X||(this.X=!0,Ca(I,"mousedown",d,!1),Ca(I,"keyup",d,!1));c&&Ca(I,"submit",function(b){b=b||Q.event;if((b=b.target||b.srcElement)&&b.action){var c=
b.action.match(je);c&&ne(a,c[1])&&me(e,b)}})};function ne(a,b){if(b==I.location.hostname)return!1;for(var c=0;c<a.length;c++)if(a[c]instanceof RegExp){if(a[c].test(b))return!0}else if(0<=b.indexOf(a[c]))return!0;return!1};var p=/^(GTM|OPT)-[A-Z0-9]+$/,q=/;_gaexp=[^;]*/g,r=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,w=function(a){function b(a,b){b&&(c+="&"+a+"="+P(b))}var c="https://www.google-analytics.com/gtm/js?id="+P(a.id);"dataLayer"!=a.F&&b("l",a.F);b("t",a.target);b("cid",a.ma);b("cidt",a.na);b("gac",a.oa);b("aip",a.la);a.qa&&b("m","sync");b("cycle",a.J);return c};var Fe=function(a,b,c){this.Y=Zd;this.ca=b;(b=c)||(b=(b=V(a,T))&&"t0"!=b?Pe.test(b)?"_gat_"+Ae(V(a,U)):"_gat_"+Ae(b):"_gat");this.aa=b;ye(new Ie(100),a)&&(F(30),this.sa=!0)},Le=function(a,b){var c=b.get(Ub);b.set(Ub,function(b){Je(a,b);var d=c(b);Ke(a,b);return d});var d=b.get(Vb);b.set(Vb,function(b){var c=d(b);Ee(a,b);return c})},Je=function(a,b){b.get(a.Y)?J("Join id already set"):"1"==Md(a.aa)[0]?b.set(a.Y,"",!0):b.set(a.Y,""+ae(),!0)},Ke=function(a,b){if(b.get(a.Y)){N("Setting throttling cookie: %s",
a.aa);var c=6E5;a.sa&&(c/=10);pe(a.aa,"1",b.get(vb),b.get(S),b.get(U),c)}},Ee=function(a,b){if(b.get(a.Y)){var c=new ef,d=function(a){yc(a).i&&c.set(yc(a).i,b.get(a))};d(Gc);d(Hc);d(U);d(R);d(xe);d(a.Y);c.set(yc(oc).i,cf(b));var e=a.ca;c.map(function(a,b){e+=P(a)+"=";e+=P(""+b)+"&"});e+="z="+ae();od(c,e);za(e);b.set(a.Y,"",!0)}},Pe=/^gtm\d+$/;var $d=function(a,b){var c=a.a;if(!c.get("dcLoaded")){bf(c,29);b=b||{};var d;b[ub]&&(d=Ae(b[ub]));d=new Fe(c,"https://stats.g.doubleclick.net/r/collect?t=dc&aip=1&_r=3&",d);Le(d,c);c.set("dcLoaded",!0)}};var Me=function(a){if(!a.get("dcLoaded")&&"cookie"==a.get(xb)){bf(a,51);var b=new Fe(a);Je(b,a);Ke(b,a);a.get(b.Y)&&(a.set(De,1,!0),a.set(ob,hd()+"/r/collect",!0))}};var He=function(){var a=Q.gaGlobal=Q.gaGlobal||{};return a.hid=a.hid||ae()};var Nd,Od=function(a,b,c){if(!Nd){var d;d=I.location.hash;var e=Q.name,f=/^#?gaso=([^&]*)/;if(e=(d=(d=d&&d.match(f)||e&&e.match(f))?d[1]:Md("GASO")[0]||"")&&d.match(/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))pe("GASO",""+d,c,b,a,0),window._udo||(window._udo=b),window._utcp||(window._utcp=c),a=e[1],Ea("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(a?"prefix="+a+"&":"")+ae(),"_gasojs");Nd=!0}};var va=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,ad=function(a){function b(a,b){d.a.data.set(a,b)}function c(a,c){b(a,c);d.filters.add(a)}var d=this;this.a=new wc;this.filters=new gc;L("Initializing tracker");b(T,a[T]);b(U,xa(a[U]));b(ub,a[ub]);b(S,a[S]||Wb());b(vb,a[vb]);b(Cb,a[Cb]);b(wb,a[wb]);b(Id,a[Id]);b(Kb,a[Kb]);b(Lb,a[Lb]);b(Db,a[Db]);b(Eb,a[Eb]);b(Mb,a[Mb]);b(xb,a[xb]);b(xe,a[xe]);b(n,a[n]);b(Gc,1);b(Hc,"j47d");c(Ob,kc);c(Vd,Ud);c(Pb,lc);c(xd,ya);c(Qb,Zc);c(Gd,Kd);c(Rb,hc);c(Tb,qc);c(Hd,td);c(we,ve);
c(Ce,Me);c(Ub,mc);c("_dt",nc);c(Vb,pc);c(oe,ze(this));vd(this.a,a[R]);wd(this.a);this.a.set(yb,He());Od(this.a.get(U),this.a.get(S),this.a.get(vb));Td(a);L("Initialization complete\n\n")},vd=function(a,b){if("cookie"==V(a,xb)){Tc=!1;var c;b:{var d=Md(V(a,ub));if(d&&!(1>d.length)){c=[];for(var e=0;e<d.length;e++){var f;f=d[e].split(".");var ea=f.shift();("GA1"==ea||"1"==ea)&&1<f.length?(ea=f.shift().split("-"),1==ea.length&&(ea[1]="1"),ea[0]*=1,ea[1]*=1,f={K:ea,M:f.join(".")}):(J("Unknown cookie version: "+
ea),f=void 0);f&&c.push(f)}if(1==c.length){F(13);c=c[0].M;break b}if(0==c.length)F(12);else{F(14);d=Xc(V(a,S)).split(".").length;c=sd(c,d,0);if(1==c.length){c=c[0].M;break b}d=Vc(V(a,vb));c=sd(c,d,1);c=c[0]&&c[0].M;break b}}c=void 0}c||(c=V(a,S),d=V(a,wb)||Wb(),c=Jd("__utma",d,c),void 0!=c?(F(10),d=c.ea[1]+"."+c.ea[2],Ga("Loaded legacy client id from utma cookie: %s (hash=%s)",d,c.hash),c=d):c=void 0);c&&(a.data.set(R,c),Tc=!0)}c=a.get(Lb);if(c=aa(I.location[c?"href":"search"],"_ga"))a.get(Kb)?(e=
c.indexOf("."),-1==e?(J("Invalid linker parameter format: "+c),F(22)):(f=c.substring(e+1),"1"!=c.substring(0,e)?(J("Unrecognized linker parameter version: "+c),F(22)):(e=f.indexOf("."),-1==e?(J("Invalid linker parameter v1 payload: "+c),F(22)):(d=f.substring(0,e),e=f.substring(e+1),d!=ud(e,0)&&d!=ud(e,-1)&&d!=ud(e,-2)?(J("Bad or expired linker parameter hash: "+c),F(23)):(Ga("Loaded linker parameter: "+c),F(11),a.data.set(R,e)))))):(J("Linker disabled. Ignoring linker parameter: "+c),F(21));b&&(Ga("Used client Id from constructor."),
F(9),a.data.set(R,P(b)));if(!a.get(R))if(c=(c=Q.gaGlobal&&Q.gaGlobal.vid)&&-1!=c.search(/^(?:utma\.)?\d+\.\d+$/)?c:void 0)Ga("New visitor. Copying new clientId"),F(17),a.data.set(R,c);else{Ga("New visitor. Generating new clientId");F(8);c=Q.navigator.userAgent+(I.cookie?I.cookie:"")+(I.referrer?I.referrer:"");d=c.length;for(e=Q.history.length;0<e;)c+=e--^d++;a.data.set(R,[ae()^ic(c)&2147483647,Math.round((new Date).getTime()/1E3)].join("."))}Yc(a)},wd=function(a){var b=Q.navigator,c=Q.screen,d=I.location;
a.set(Qa,Xb(a.get(Mb)));if(d){var e=d.pathname||"";"/"!=e.charAt(0)&&(F(31),e="/"+e);a.set(Pa,d.protocol+"//"+d.hostname+e+d.search)}c&&a.set(Xa,c.width+"x"+c.height);c&&a.set(Wa,c.colorDepth+"-bit");var c=I.documentElement,f=(e=I.body)&&e.clientWidth&&e.clientHeight,ea=[];c&&c.clientWidth&&c.clientHeight&&("CSS1Compat"===I.compatMode||!f)?ea=[c.clientWidth,c.clientHeight]:f&&(ea=[e.clientWidth,e.clientHeight]);c=0>=ea[0]||0>=ea[1]?"":ea.join("x");a.set(Ya,c);a.set(Za,Qc());a.set(Ua,I.characterSet||
I.charset);a.set(Ib,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(Ta,(b&&(b.language||b.browserLanguage)||"").toLowerCase());if(d&&a.get(Lb)&&(b=I.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;c<b.length;++c)(H(b[c],"utm_id")||H(b[c],"utm_campaign")||H(b[c],"utm_source")||H(b[c],"utm_medium")||H(b[c],"utm_term")||H(b[c],"utm_content")||H(b[c],"gclid")||H(b[c],"dclid")||H(b[c],"gclsrc"))&&d.push(b[c]);0<d.length&&(b="#"+d.join("&"),a.set(Pa,a.get(Pa)+b))}};
var Ob=X("_oot"),Vd=W("previewTask"),Pb=W("checkProtocolTask"),xd=W("validationTask"),Qb=W("checkStorageTask"),Gd=W("historyImportTask"),Rb=W("samplerTask"),Tb=W("_rlt"),Ub=W("buildHitTask"),Vb=W("sendHitTask"),Hd=W("ceTask"),we=W("devIdTask"),oe=W("timingTask"),Ce=W("displayFeaturesTask"),qa=W("customTask"),T=X("name"),R=X("clientId","cid"),n=X("clientIdTime"),xe=W("userId","uid"),U=X("trackingId","tid"),ub=X("cookieName",void 0,"_ga"),S=X("cookieDomain"),vb=X("cookiePath",void 0,"/"),Cb=X("cookieExpires",
void 0,63072E3),wb=X("legacyCookieDomain"),Id=X("legacyHistoryImport",void 0,!0),xb=X("storage",void 0,"cookie"),Kb=X("allowLinker",void 0,!1),Lb=X("allowAnchor",void 0,!0),Db=X("sampleRate","sf",100),Eb=X("siteSpeedSampleRate",void 0,1),Mb=X("alwaysSendReferrer",void 0,!1),la=X("_gid","_gid"),ma=X("_ge"),na=X("_gcn"),ac=[T,U,R,n,xe,ub,S,vb,Cb,wb,Id,Kb,Lb,Db,Eb,Mb,xb],ob=W("transportUrl"),De=W("_r","_r");
function Y(a,b,c,d){b[a]=function(){try{return d&&F(d),c.apply(this,arguments)}catch(e){throw fc("exc",a,e&&e.name),e;}}};var Ie=function(a,b,c){this.Z=a;this.ja=b;this.fa=!1;this.ra=c;this.ia=1},ye=function(a,b,c){if(a.ja&&a.fa)return 0;a.fa=!0;if(b){if(a.ra&&jc(b,a.ra))return jc(b,a.ra);if(0==b.get(Eb))return 0}if(0==a.Z)return 0;void 0===c&&(c=be());return 0==c%a.Z?Math.floor(c/a.Z)%a.ia+1:0};function Qc(){var a,b;if((b=(b=Q.navigator)?b.plugins:null)&&b.length)for(var c=0;c<b.length&&!a;c++){var d=b[c];-1<d.name.indexOf("Shockwave Flash")&&(a=d.description)}if(!a)try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=e.GetVariable("$version")}catch(f){}if(!a)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),a="WIN 6,0,21,0",e.AllowScriptAccess="always",a=e.GetVariable("$version")}catch(f){}if(!a)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),a=e.GetVariable("$version")}catch(f){}a&&
(e=a.match(/[\d]+/g))&&3<=e.length&&(a=e[0]+"."+e[1]+" r"+e[2]);return a||void 0};var ba=function(a){var b=Math.min(jc(a,Eb),100);return ic(V(a,R))%100>=b?(L("Site speed data not sent - visitor sampled out"),!1):!0},Sc=function(a){var b={};if(qd(b)||rd(b)){var c=b[Ic];void 0==c||Infinity==c||isNaN(c)?L("Site speed data not sent - unsupported browser"):0<c?(Rc(b,Kc),Rc(b,Nc),Rc(b,Mc),Rc(b,Jc),Rc(b,Lc),Rc(b,Oc),Rc(b,Pc),setTimeout(function(){a(b)},10)):(L("Site speed data not available - waiting for onload"),Ca(Q,"load",function(){Sc(a)},!1))}else L("Site speed data not sent - unsupported browser")},
qd=function(a){var b=Q.performance||Q.webkitPerformance,b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Ic]=b.loadEventStart-c;a[Kc]=b.domainLookupEnd-b.domainLookupStart;a[Nc]=b.connectEnd-b.connectStart;a[Mc]=b.responseStart-b.requestStart;a[Jc]=b.responseEnd-b.responseStart;a[Lc]=b.fetchStart-c;a[Oc]=b.domInteractive-c;a[Pc]=b.domContentLoadedEventStart-c;return!0},rd=function(a){if(Q.top!=Q)return!1;var b=Q.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<
c&&(c=void 0);0<c&&b.setPageReadyTime();if(void 0==c)return!1;a[Ic]=c;return!0},Rc=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0},ze=function(a){return function(b){if("pageview"==b.get(Ma)&&!a.L){a.L=!0;var c=ba(b);b=0<aa(b.get(Pa),"gclid").length;(c||b)&&Sc(function(b){a.send(c?"timing":"adtiming",b)})}}};var Tc=!1,Yc=function(a){"cookie"==V(a,xb)&&(oa(a,R,ub),a.get(ma)&&oa(a,la,na,864E5))},oa=function(a,b,c,d){if(b=ie(a,b)){c=V(a,c);var e=Wc(V(a,vb)),f=Xc(V(a,S));d=d||1E3*jc(a,Cb);var ea=V(a,U);if("auto"!=f)pe(c,b,e,f,ea,d)&&(Tc=!0);else{F(32);for(var l=fd(),k=0;k<l.length;k++)if(f=l[k],a.data.set(S,f),b=ie(a,R),pe(c,b,e,f,ea,d)){N("Auto cookieDomain found: %s",f);Tc=!0;return}O("Cookie write failed.");a.data.set(S,"auto")}}else a.get(ma)||F(54)},Zc=function(a){if("cookie"==V(a,xb)&&!Tc&&(Yc(a),!Tc))throw N("Storage not available. Aborting hit."),
"abort";},Kd=function(a){if(a.get(Id)){var b=V(a,S),c=V(a,wb)||Wb(),d=Jd("__utma",c,b);d&&(F(19),a.set(Fd,(new Date).getTime(),!0),a.set(Dd,d.T),(b=Jd("__utmz",c,b))&&d.hash==b.hash&&a.set(Ed,b.T))}},ie=function(a,b){b=Ae(V(a,b));var c=Xc(V(a,S)).split(".").length;a=Vc(V(a,vb));1<a&&(c+="-"+a);return b?["GA1",c,b].join("."):""},pa=function(a,b){if(!b||1>b.length)F(12);else{for(var c=[],d=0;d<b.length;d++){var e=b[d];var f=e.split(".");var ea=f.shift();("GA1"==ea||"1"==ea)&&1<f.length?(e=f.shift().split("-"),
1==e.length&&(e[1]="1"),e[0]*=1,e[1]*=1,f={K:e,M:f.join(".")}):/^amp-/.test(e)?f={K:[0,0],M:e}:(J("Unknown cookie version: "+ea),f=void 0);f&&c.push(f)}if(1==c.length)return F(13),c[0].M;if(0==c.length)F(12);else{F(14);b=Xc(V(a,S)).split(".").length;c=sd(c,b,0);if(1==c.length)return c[0].M;a=Vc(V(a,vb));c=sd(c,a,1);1<c.length&&F(41);return c[0]&&c[0].M}}},sd=function(a,b,c){for(var d=[],e=[],f,ea=0;ea<a.length;ea++){var l=a[ea];l.K[c]==b?d.push(l):void 0==f||l.K[c]<f?(e=[l],f=l.K[c]):l.K[c]==f&&e.push(l)}return 0<
d.length?d:e},Xc=function(a){return 0==a.indexOf(".")?a.substr(1):a},fd=function(){var a=[],b=Wb().split(".");if(4==b.length){var c=b[b.length-1];if(parseInt(c,10)==c)return["none"]}for(c=b.length-2;0<=c;c--)a.push(b.slice(c).join("."));a.push("none");return a},Wc=function(a){if(!a)return"/";1<a.length&&a.lastIndexOf("/")==a.length-1&&(a=a.substr(0,a.length-1));0!=a.indexOf("/")&&(a="/"+a);return a},Vc=function(a){a=Wc(a);return"/"==a?1:a.split("/").length};function Jd(a,b,c){"none"==b&&(b="");var d=[],e=Md(a);a="__utma"==a?6:2;for(var f=0;f<e.length;f++){var ea=(""+e[f]).split(".");ea.length>=a&&d.push({hash:ea[0],T:e[f],ea:ea})}if(0!=d.length)return 1==d.length?d[0]:Ld(b,d)||Ld(c,d)||Ld(null,d)||d[0]}function Ld(a,b){if(null==a)var c=a=1;else c=ic(a),a=ic(H(a,".")?a.substring(1):"."+a);for(var d=0;d<b.length;d++)if(b[d].hash==c||b[d].hash==a)return b[d]};var je=new RegExp(/^https?:\/\/([^\/:]+)/),ke=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/;function nd(a){var b=a.get(R);if(a.get(ma)){a=a.get(la);var c=ud(a+b,0);return"_ga=2."+P(c+"."+a+"-"+b)}c=ud(b,0);return"_ga=1."+P(c+"."+b)}function ud(a,b){var c=new Date,d=Q.navigator,e=d.plugins||[];a=[a,d.userAgent,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b];for(b=0;b<e.length;++b)a.push(e[b].description);return ic(a.join("."))}
function ra(a,b){var c=new Date,d=Q.navigator;return ic([a,d.userAgent,d.language||"",c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b].join("."))}var pd=function(a){F(48);this.target=a;this.X=!1};pd.prototype.S=function(a,b){if(a.tagName){if("a"==a.tagName.toLowerCase()){a.href&&(a.href=le(this,a.href,b));return}if("form"==a.tagName.toLowerCase())return me(this,a)}if("string"==typeof a)return le(this,a,b);O("Unknown Object passed to linker:decorate %s",a)};
var le=function(a,b,c){var d=ke.exec(b);d&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));a=a.target.get("linkerParam");var e=b.indexOf("?"),d=b.indexOf("#");c?b+=(-1==d?"#":"&")+a:(c=-1==e?"?":"&",b=-1==d?b+(c+a):b.substring(0,d)+c+a+b.substring(d));return b=b.replace(/&+_ga=/,"&_ga=")},me=function(a,b){if(b)if(b.action)if(N("Linker decorating form: %s",b),"get"==b.method.toLowerCase()){a=a.target.get("linkerParam").split("=")[1];for(var c=b.childNodes||[],d=0;d<c.length;d++)if("_ga"==c[d].name){c[d].setAttribute("value",
a);return}c=I.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","_ga");c.setAttribute("value",a);b.appendChild(c)}else"post"==b.method.toLowerCase()?b.action=le(a,b.action):O("Unknown form method %s on %s",b.method,b);else O("An action is required for the linker to work.")};
pd.prototype.U=function(a,b,c){function d(c){try{c=c||Q.event;a:{var d=c.target||c.srcElement;for(c=100;d&&0<c;){if(d.href&&d.nodeName.match(/^a(?:rea)?$/i)){var f=d;break a}d=d.parentNode;c--}f={}}"http:"!=f.protocol&&"https:"!=f.protocol||!ne(a,f.hostname||"")||(f.href&&(f.href=le(e,f.href,b)),N("Link decorated: "+f.href))}catch(k){F(26)}}var e=this;this.X||(this.X=!0,Ca(I,"mousedown",d,!1),Ca(I,"keyup",d,!1));c&&Ca(I,"submit",function(b){b=b||Q.event;if((b=b.target||b.srcElement)&&b.action){var c=
b.action.match(je);c&&ne(a,c[1])&&me(e,b)}})};function ne(a,b){if(b==I.location.hostname)return!1;for(var c=0;c<a.length;c++)if(a[c]instanceof RegExp){if(a[c].test(b))return!0}else if(0<=b.indexOf(a[c]))return!0;return!1};var p=/^(GTM|OPT)-[A-Z0-9]+$/,q=/;_gaexp=[^;]*/g,r=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,w=function(a){function b(a,b){b&&(c+="&"+a+"="+P(b))}var c="https://www.google-analytics.com/gtm/js?id="+P(a.id);"dataLayer"!=a.F&&b("l",a.F);b("t",a.target);b("cid",a.ma);b("cidt",a.na);b("gac",a.oa);b("aip",a.la);a.sync&&b("m","sync");b("cycle",a.J);a.ta&&b("gclid",a.ta);return c};var Fe=function(a,b,c){this.Y=Zd;this.ca=b;(b=c)||(b=(b=V(a,T))&&"t0"!=b?Pe.test(b)?"_gat_"+Ae(V(a,U)):"_gat_"+Ae(b):"_gat");this.aa=b},Le=function(a,b){var c=b.get(Ub);b.set(Ub,function(b){Je(a,b,a.Y);var d=c(b);Ke(a,b);return d});var d=b.get(Vb);b.set(Vb,function(b){var c=d(b);Ee(a,b);return c})},Je=function(a,b,c){b.get(c)?J("Join id already set: "+c):"1"==Md(a.aa)[0]?b.set(c,"",!0):b.set(c,""+ae(),!0)},Ke=function(a,b){b.get(a.Y)&&(N("Setting throttling cookie: %s",a.aa),pe(a.aa,"1",b.get(vb),
b.get(S),b.get(U),6E4))},Ee=function(a,b){if(b.get(a.Y)){var c=new ef,d=function(a){yc(a).i&&c.set(yc(a).i,b.get(a))};d(Gc);d(Hc);d(U);d(R);d(xe);d(a.Y);c.set(yc(oc).i,cf(b));var e=a.ca;c.map(function(a,b){e+=P(a)+"=";e+=P(""+b)+"&"});e+="z="+ae();od(c,e);za(e);b.set(a.Y,"",!0)}},Pe=/^gtm\d+$/;var $d=function(a,b){a=a.a;if(!a.get("dcLoaded")){bf(a,29);b=b||{};var c;b[ub]&&(c=Ae(b[ub]));b=new Fe(a,"https://stats.g.doubleclick.net/r/collect?t=dc&aip=1&_r=3&",c);Le(b,a);a.set("dcLoaded",!0)}};var Me=function(a){if(!a.get("dcLoaded")&&"cookie"==a.get(xb)){bf(a,51);var b=new Fe(a);Je(b,a,b.Y);Je(b,a,ja);Ke(b,a);a.get(b.Y)&&(a.set(De,1,!0),a.set(ob,hd()+"/r/collect",!0))}};var He=function(){var a=Q.gaGlobal=Q.gaGlobal||{};return a.hid=a.hid||ae()};var Nd,Od=function(a,b,c){if(!Nd){var d=I.location.hash;var e=Q.name,f=/^#?gaso=([^&]*)/;if(e=(d=(d=d&&d.match(f)||e&&e.match(f))?d[1]:Md("GASO")[0]||"")&&d.match(/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))pe("GASO",""+d,c,b,a,0),window._udo||(window._udo=b),window._utcp||(window._utcp=c),a=e[1],Ea("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(a?"prefix="+a+"&":"")+ae(),"_gasojs");Nd=!0}};var ca=function(a){return a?(1*a).toFixed(3):"0"},fa=function(a){var b=Q.performance;if(b&&b.getEntriesByName){F(35);var c="https://www.google-analytics.com/analytics.js?wpid="+a;Ea(c,void 0,void 0,function(){try{var d=1,e=b.getEntriesByName("https://www.google-analytics.com/analytics.js");e&&0!=e.length||(e=b.getEntriesByName("http://www.google-analytics.com/analytics.js"),d=0);var f=b.getEntriesByName(c);if(e&&1==e.length&&f&&1==f.length){F(37);var ea=e[0],l=f[0],k={tid:a,ad:ca(ea.duration),bd:ca(l.duration),
ar:ca(ea.responseEnd-ea.requestStart),br:ca(l.responseEnd-l.requestStart),an:ca(ea.domainLookupEnd-ea.domainLookupStart),bn:ca(l.domainLookupEnd-l.domainLookupStart),ac:ca(ea.connectEnd-ea.connectStart),bc:ca(l.connectEnd-l.connectStart),as:d},d=[];d.push("_v=j54d");d.push("id=10");for(var v in k)k.hasOwnProperty(v)&&d.push(v+"="+P(k[v]));d.push("z="+ae());id("https://www.google-analytics.com/u/d",d.join("&"),Aa)}}catch(ka){}})}};var va=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,ad=function(a){function b(a,b){d.a.data.set(a,b)}function c(a,c){b(a,c);d.filters.add(a)}var d=this;this.a=new wc;this.filters=new gc;L("Initializing tracker");b(T,a[T]);b(U,xa(a[U]));b(ub,a[ub]);b(S,a[S]||Wb());b(vb,a[vb]);b(Cb,a[Cb]);b(wb,a[wb]);b(Id,a[Id]);b(Kb,a[Kb]);b(Lb,a[Lb]);b(Db,a[Db]);b(Eb,a[Eb]);b(Mb,a[Mb]);b(xb,a[xb]);b(xe,a[xe]);b(n,a[n]);b(ma,a[ma]);b(Gc,1);b(Hc,"j54d");c(Ob,kc);c(qa,Aa);c(Vd,Ud);c(Pb,lc);c(xd,ya);c(Qb,Zc);c(Gd,Kd);c(Rb,hc);c(Tb,
qc);c(Hd,td);c(we,ve);c(Ce,Me);c(Ub,mc);c("_dt",nc);c(Vb,pc);c(oe,ze(this));vd(this.a,a[R]);wd(this.a);this.a.set(yb,He());Od(this.a.get(U),this.a.get(S),this.a.get(vb));this.ua=new Ie(1E4,!0,"gaexp10");Td(a);L("Initialization complete\n\n")},vd=function(a,b){if("cookie"==V(a,xb)){Tc=!1;var c=Md(V(a,ub));if(!(c=pa(a,c))){var c=V(a,S),d=V(a,wb)||Wb();c=Jd("__utma",d,c);void 0!=c?(F(10),d=c.ea[1]+"."+c.ea[2],Ga("Loaded legacy client id from utma cookie: %s (hash=%s)",d,c.hash),c=d):c=void 0}c&&(a.data.set(R,
c),c=Md(V(a,na)),(c=pa(a,c))&&a.data.set(la,c),Tc=!0)}a:if(c=a.get(Lb),c=aa(I.location[c?"href":"search"],"_ga"))if(a.get(Kb)){var e=c.indexOf(".");if(-1==e)J("Invalid linker parameter format: "+c),F(22);else{var f=c.substring(0,e),ea=c.substring(e+1),e=ea.indexOf("."),d=ea.substring(0,e),ea=ea.substring(e+1);if("1"==f){if(e=ea,d!=ud(e,0)&&d!=ud(e,-1)&&d!=ud(e,-2)&&d!=ra(e,0)&&d!=ra(e,-1)&&d!=ra(e,-2)){J("Bad or expired linker parameter hash: "+c);F(23);break a}}else if("2"==f){f=ea.split("-",2);
e=f[1];if(d!=ud(f[0]+e,0)&&d!=ud(f[0]+e,-1)&&d!=ud(f[0]+e,-2)&&d!=ra(f[0]+e,0)&&d!=ra(f[0]+e,-1)&&d!=ra(f[0]+e,-2)){J("Bad or expired linker parameter hash: "+c);F(53);break a}Ga("Loaded gid: "+f[0]);F(2);a.data.set(la,f[0])}else{J("Unrecognized linker parameter version: "+c);F(22);break a}Ga("Loaded client id: "+e);F(11);a.data.set(R,e)}}else J("Linker disabled. Ignoring linker parameter: "+c),F(21);b&&(Ga("Used client Id from constructor."),F(9),a.data.set(R,P(b)));a.get(R)||((b=(b=Q.gaGlobal&&
Q.gaGlobal.vid)&&-1!=b.search(/^(?:utma\.)?\d+\.\d+$/)?b:void 0)?(Ga("New visitor. Copying new clientId"),F(17),a.data.set(R,b)):(Ga("New visitor. Generating new clientId"),F(8),a.data.set(R,ia())));a.data.set(ma,a.get(ma)||1==ye(new Ie(1,!0),void 0,ic(a.get(R))));a.get(ma)&&(b=V(a,ub),a.data.set(na,"_ga"==b?"_gid":b+"_gid"));a.get(ma)&&!a.get(la)&&(Ga("Generating new gid"),F(3),a.data.set(la,ia()));Yc(a)},wd=function(a){var b=Q.navigator,c=Q.screen,d=I.location;a.set(Qa,Xb(a.get(Mb)));if(d){var e=
d.pathname||"";"/"!=e.charAt(0)&&(F(31),e="/"+e);a.set(Pa,d.protocol+"//"+d.hostname+e+d.search)}c&&a.set(Xa,c.width+"x"+c.height);c&&a.set(Wa,c.colorDepth+"-bit");var c=I.documentElement,f=(e=I.body)&&e.clientWidth&&e.clientHeight,ea=[];c&&c.clientWidth&&c.clientHeight&&("CSS1Compat"===I.compatMode||!f)?ea=[c.clientWidth,c.clientHeight]:f&&(ea=[e.clientWidth,e.clientHeight]);c=0>=ea[0]||0>=ea[1]?"":ea.join("x");a.set(Ya,c);a.set(Za,Qc());a.set(Ua,I.characterSet||I.charset);a.set(Ib,b&&"function"===
typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(Ta,(b&&(b.language||b.browserLanguage)||"").toLowerCase());if(d&&a.get(Lb)&&(b=I.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;c<b.length;++c)(H(b[c],"utm_id")||H(b[c],"utm_campaign")||H(b[c],"utm_source")||H(b[c],"utm_medium")||H(b[c],"utm_term")||H(b[c],"utm_content")||H(b[c],"gclid")||H(b[c],"dclid")||H(b[c],"gclsrc"))&&d.push(b[c]);0<d.length&&(b="#"+d.join("&"),a.set(Pa,a.get(Pa)+b))}};
ad.prototype.get=function(a){G(a)||O("Please specify a field name to get it's value.");return this.a.get(a)};ad.prototype.set=function(a,b){this.a.set(a,b)};var bd={pageview:[Ra],event:[fb,gb,hb,Ab],social:[ib,jb,kb],timing:[lb,mb,Bb,nb]};
ad.prototype.send=function(a){L("Send start: "+(0==Z.h?-1:(new Date).getTime()-Z.h));if(1>arguments.length)O("No hit type specified. Aborting hit.");else{var b,c;"string"===typeof arguments[0]?(b=arguments[0],c=[].slice.call(arguments,1)):(b=arguments[0]&&arguments[0][Ma],c=arguments);b?(c=Yb(bd[b]||[],c),c[Ma]=b,this.a.set(c,void 0,!0),this.filters.H(this.a),L("Send finished: "+(0==Z.h?-1:(new Date).getTime()-Z.h)),this.a.data.u={}):O("No hit type specified. Aborting hit.")}};
ad.prototype.send=function(a){L("Send start: "+(0==Z.h?-1:(new Date).getTime()-Z.h));if(1>arguments.length)O("No hit type specified. Aborting hit.");else{if("string"===typeof arguments[0]){var b=arguments[0];var c=[].slice.call(arguments,1)}else b=arguments[0]&&arguments[0][Ma],c=arguments;b?(c=Yb(bd[b]||[],c),c[Ma]=b,this.a.set(c,void 0,!0),this.filters.H(this.a),L("Send finished: "+(0==Z.h?-1:(new Date).getTime()-Z.h)),this.a.data.u={},ye(this.ua,this.a)&&fa(this.a.get(U))):O("No hit type specified. Aborting hit.")}};
ad.prototype.pa=function(a,b){var c=this;x(a,c,b)||(y(a,function(){x(a,c,b)}),z(String(c.get(T)),a,void 0,b,!0))};var cd=function(a){if("prerender"==I.visibilityState)return!1;a();return!0},A=function(a){if(!cd(a)){F(16);var b=!1,c=function(){if(!b&&cd(a)){b=!0;var d=c,e=I;e.removeEventListener?e.removeEventListener("visibilitychange",d,!1):e.detachEvent&&e.detachEvent("onvisibilitychange",d)}};Ca(I,"visibilitychange",c)}};var qe=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,se=function(a){this.G=a;if(t(a[0]))this.s=a[0];else{var b=qe.exec(a[0]);null!=b&&4==b.length&&(this.c=b[1]||"t0",this.I=b[2]||"",this.A=b[3],this.b=[].slice.call(a,1),this.I||(this.D="create"==this.A,this.g="require"==this.A,this.f="provide"==this.A,this.$="remove"==this.A),this.g&&(3<=this.b.length?(this.da=this.b[1],this.ba=this.b[2]):this.b[1]&&(G(this.b[1])?this.da=this.b[1]:this.ba=this.b[1])));var b=a[1],c=a[2];if(!this.A)throw O("Invalid command: "+a),
"abort";if(this.g&&(!G(b)||""==b))throw O("Invalid require command.",a),"abort";if(this.f&&(!G(b)||""==b||!t(c)))throw O("Invalid provide command.",a),"abort";if(re(this.c)||re(this.I))throw O('Target name and plugin names should not contain "." or ":"'),"abort";if(this.f&&"t0"!=this.c)throw O("Provide command should not be preceeded by a tracker name."),"abort";}};function re(a){return 0<=a.indexOf(".")||0<=a.indexOf(":")};var Re,Se,Te,B;Re=new ef;Te=new ef;B=new ef;Se={ec:45,ecommerce:46,linkid:47};
var x=function(a,b,c){var d=b==Z?Fc:b.get(T),e=Re.get(a);if(!t(e))return N("Waiting on require of %s to be fulfilled.",a),!1;b.plugins_=b.plugins_||new ef;if(b.plugins_.get(a))return O("Command ignored. Plugin %s has already been required on tracker %s.",a,d),!0;b.plugins_.set(a,new e(b,c||{}));N("Plugin %s intialized on tracker %s.",a,d);return!0},z=function(a,b,c,d,e){if(!t(Re.get(b))&&!Te.get(b)){Se.hasOwnProperty(b)&&F(Se[b]);if(p.test(b)){F(52);a=Z.O(a);if(!a)return!0;c=d||{};d={id:b,F:c.dataLayer||
"dataLayer",la:!!a.get("anonymizeIp"),qa:e,J:!1};a.get("&gtm")==b&&(d.J=!0,O("Infinite loop detected. Tracker trying to load the container (%s) that created it. Ignoring require statement.",b));var f=String(a.get("name"));"t0"!=f&&(d.target=f);K(String(a.get("trackingId")))||(d.ma=String(a.get(R)),d.na=Number(a.get(n)),a=c.palindrome?r:q,a=(a=I.cookie.replace(/^|(; +)/g,";").match(a))?a.sort().join("").substring(1):void 0,d.oa=a);a=d.F;c=(new Date).getTime();Q[a]=Q[a]||[];c={"gtm.start":c};e||(c.event=
"gtm.js");Q[a].push(c);c=w(d)}!c&&Se.hasOwnProperty(b)?(F(39),c=b+".js"):F(43);c?(c&&0<=c.indexOf("/")||(c=($b||df()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+c),d=Ue(c),a=d.protocol,c=I.location.protocol,("https:"==a||a==c||("http:"!=a?0:"http:"==c))&&C(d)?(N("Loading resource for plugin: "+b),Ea(d.url,void 0,e),Te.set(b,!0)):O("Error loading resource for plugin %s: Refusing to load url: %s",b,d.url)):N("No plugin url set for %s.",b)}},y=function(a,b){var c=B.get(a)||[];c.push(b);
B.set(a,c)},D=function(a,b){Re.set(a,b);for(var c=B.get(a)||[],d=0;d<c.length;d++)c[d]();B.set(a,[])},C=function(a){var b=Ue(I.location.href);if(H(a.url,"https://www.google-analytics.com/gtm/js?id="))return!0;if(a.query||0<=a.url.indexOf("?")||0<=a.path.indexOf("://"))return!1;if(a.host==b.host&&a.port==b.port)return!0;b="http:"==a.protocol?80:443;return"www.google-analytics.com"==a.host&&(a.port||b)==b&&H(a.path,"/plugins/")?!0:!1},Ue=function(a){function b(a){var b=(a.hostname||"").split(":")[0].toLowerCase(),
c=(a.protocol||"").toLowerCase(),c=1*a.port||("http:"==c?80:"https:"==c?443:"");a=a.pathname||"";H(a,"/")||(a="/"+a);return[b,""+c,a]}var c=I.createElement("a");c.href=I.location.href;var d=(c.protocol||"").toLowerCase(),e=b(c),f=c.search||"",ea=d+"//"+e[0]+(e[1]?":"+e[1]:"");H(a,"//")?a=d+a:H(a,"/")?a=ea+a:!a||H(a,"?")?a=ea+e[2]+(a||f):0>a.split("/")[0].indexOf(":")&&(a=ea+e[2].substring(0,e[2].lastIndexOf("/"))+"/"+a);c.href=a;d=b(c);return{protocol:(c.protocol||"").toLowerCase(),host:d[0],port:d[1],
path:d[2],query:c.search||"",url:a||""}};var jf={ka:function(){jf.j=[]}};jf.ka();jf.H=function(a){var b=jf.N.apply(jf,arguments),b=jf.j.concat(b);for(jf.j=[];0<b.length;){var c;c=b[0];if(c.s)c="ga(Function)";else{for(var d=[],e=0;c.G&&e<c.G.length;e++)d.push(Fa(c.G[e]));c="ga("+d.join(", ")+")"}dd("Running command: "+c);c=jf.R(b[0]);ge();if(c)break;b.shift();if(0<jf.j.length)break}jf.j=jf.j.concat(b)};
jf.N=function(a){for(var b=[],c=0;c<arguments.length;c++)try{var d=new se(arguments[c]);d.f?(D(d.b[0],d.b[1]),N("Registered new plugin: ga(provide, %s, Function)",d.b[0])):(d.g&&(d.ha=z(d.c,d.b[0],d.da,d.ba)),b.push(d))}catch(l){var e=arguments[c],f=d,ea=l;ga(e)||t(e)?ga(e)&&!G(e[0])?O("First element of command array is not a string: %s",e):f&&f.g?O("Invalid require command: %s",e):O("Command failure: %s",ea):O("Command is not an array or function: %s",ea)}return b};
jf.R=function(a){try{if(a.s)a.s.call(Q,Z.O("t0"));else{var b=a.c==Fc?Z:Z.O(a.c);if(a.D)"t0"!=a.c?J('Command ignored. Use "create" instead of "%s.create"',a.c):Z.create.apply(Z,a.b);else if(a.$)Z.remove(a.c);else if(b)if(a.g){if(a.ha&&(a.ha=z(a.c,a.b[0],a.da,a.ba)),!x(a.b[0],b,a.ba))return!0}else if(a.I){var c=a.I,d=a.A,e=a.b,f;b.plugins_||O("Tracker does not have any plugins.");b.plugins_.get(c)||O("Tracker does not have %s plugin required.",c);f=b.plugins_.get(c);f[d]||O("Plugin %s does not have method %s.",
var x=function(a,b,c){var d=b==Z?Fc:b.get(T);var e=Re.get(a);if(!t(e))return N("Waiting on require of %s to be fulfilled.",a),!1;b.plugins_=b.plugins_||new ef;if(b.plugins_.get(a))return O("Command ignored. Plugin %s has already been required on tracker %s.",a,d),!0;b.plugins_.set(a,new e(b,c||{}));N("Plugin %s intialized on tracker %s.",a,d);return!0},z=function(a,b,c,d,e){if(!t(Re.get(b))&&!Te.get(b)){Se.hasOwnProperty(b)&&F(Se[b]);if(p.test(b)){F(52);a=Z.O(a);if(!a)return!0;c=d||{};d={id:b,F:c.dataLayer||
"dataLayer",la:!!a.get("anonymizeIp"),sync:e,J:!1};a.get("&gtm")==b&&(d.J=!0,O("Infinite loop detected. Tracker trying to load the container (%s) that created it. Ignoring require statement.",b));var f=String(a.get("name"));"t0"!=f&&(d.target=f);K(String(a.get("trackingId")))||(d.ma=String(a.get(R)),d.na=Number(a.get(n)),c=c.palindrome?r:q,c=(c=I.cookie.replace(/^|(; +)/g,";").match(c))?c.sort().join("").substring(1):void 0,d.oa=c,d.ta=aa(a.a.get(Pa)||"","gclid"));a=d.F;c=(new Date).getTime();Q[a]=
Q[a]||[];c={"gtm.start":c};e||(c.event="gtm.js");Q[a].push(c);c=w(d)}!c&&Se.hasOwnProperty(b)?(F(39),c=b+".js"):F(43);c?(c&&0<=c.indexOf("/")||(c=($b||df()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+c),d=Ue(c),a=d.protocol,c=I.location.protocol,("https:"==a||a==c||("http:"!=a?0:"http:"==c))&&C(d)?(N("Loading resource for plugin: "+b),Ea(d.url,void 0,e),Te.set(b,!0)):O("Error loading resource for plugin %s: Refusing to load url: %s",b,d.url)):N("No plugin url set for %s.",b)}},y=function(a,
b){var c=B.get(a)||[];c.push(b);B.set(a,c)},D=function(a,b){Re.set(a,b);b=B.get(a)||[];for(var c=0;c<b.length;c++)b[c]();B.set(a,[])},C=function(a){var b=Ue(I.location.href);if(H(a.url,"https://www.google-analytics.com/gtm/js?id="))return!0;if(a.query||0<=a.url.indexOf("?")||0<=a.path.indexOf("://"))return!1;if(a.host==b.host&&a.port==b.port)return!0;b="http:"==a.protocol?80:443;return"www.google-analytics.com"==a.host&&(a.port||b)==b&&H(a.path,"/plugins/")?!0:!1},Ue=function(a){function b(a){var b=
(a.hostname||"").split(":")[0].toLowerCase(),c=(a.protocol||"").toLowerCase(),c=1*a.port||("http:"==c?80:"https:"==c?443:"");a=a.pathname||"";H(a,"/")||(a="/"+a);return[b,""+c,a]}var c=I.createElement("a");c.href=I.location.href;var d=(c.protocol||"").toLowerCase(),e=b(c),f=c.search||"",ea=d+"//"+e[0]+(e[1]?":"+e[1]:"");H(a,"//")?a=d+a:H(a,"/")?a=ea+a:!a||H(a,"?")?a=ea+e[2]+(a||f):0>a.split("/")[0].indexOf(":")&&(a=ea+e[2].substring(0,e[2].lastIndexOf("/"))+"/"+a);c.href=a;d=b(c);return{protocol:(c.protocol||
"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:c.search||"",url:a||""}};var jf={ka:function(){jf.j=[]}};jf.ka();jf.H=function(a){var b=jf.N.apply(jf,arguments),b=jf.j.concat(b);for(jf.j=[];0<b.length;){var c=b[0];if(c.s)c="ga(Function)";else{for(var d=[],e=0;c.G&&e<c.G.length;e++)d.push(Fa(c.G[e]));c="ga("+d.join(", ")+")"}dd("Running command: "+c);c=jf.R(b[0]);ge();if(c)break;b.shift();if(0<jf.j.length)break}jf.j=jf.j.concat(b)};
jf.N=function(a){for(var b,c=[],d=0;d<arguments.length;d++)try{b=new se(arguments[d]),b.f?(D(b.b[0],b.b[1]),N("Registered new plugin: ga(provide, %s, Function)",b.b[0])):(b.g&&(b.ha=z(b.c,b.b[0],b.da,b.ba)),c.push(b))}catch(l){var e=arguments[d],f=b,ea=l;ga(e)||t(e)?ga(e)&&!G(e[0])?O("First element of command array is not a string: %s",e):f&&f.g?O("Invalid require command: %s",e):O("Command failure: %s",ea):O("Command is not an array or function: %s",ea)}return c};
jf.R=function(a){try{if(a.s)a.s.call(Q,Z.O("t0"));else{var b=a.c==Fc?Z:Z.O(a.c);if(a.D)"t0"!=a.c?J('Command ignored. Use "create" instead of "%s.create"',a.c):Z.create.apply(Z,a.b);else if(a.$)Z.remove(a.c);else if(b)if(a.g){if(a.ha&&(a.ha=z(a.c,a.b[0],a.da,a.ba)),!x(a.b[0],b,a.ba))return!0}else if(a.I){var c=a.I,d=a.A,e=a.b;b.plugins_||O("Tracker does not have any plugins.");b.plugins_.get(c)||O("Tracker does not have %s plugin required.",c);var f=b.plugins_.get(c);f[d]||O("Plugin %s does not have method %s.",
c,d);f[d].apply(f,e)}else b[a.A].apply(b,a.b);else N("Command ignored. Unknown target: "+b)}}catch(ea){a.s?O("Exception thrown from pushed function: %s",ea):a.g?O("Error creating a plugin instance: %s",a.G):a.f?O("Error registering a plugin: %s",a.G):a.$?O("Error removing tracker: %s",a.G):a.I?O("Error calling a plugin method: %s",a.G):O('Called method "%s" threw exception: %s',a.A,ea)}};var Z=function(a){dd("Executing Google Analytics commands.");F(1);jf.H.apply(jf,[arguments]);ge()};Z.o={};Z.C=[];Z.h=0;Z.answer=42;var gd=[U,S,T];Z.create=function(a){var b=Yb(gd,[].slice.call(arguments));b[T]||(b[T]="t0");var c=""+b[T];if(Z.o[c])return J("Ignoring create request for duplicate tracking name."),Z.o[c];N("Creating new tracker: "+c);b=new ad(b);Z.o[c]=b;Z.C.push(b);return b};

@@ -77,2 +80,2 @@ Z.remove=function(a){for(var b=0;b<Z.C.length;b++)if(Z.C[b].get(T)==a){N("Removing tracker: "+a);Z.C.splice(b,1);Z.o[a]=null;return}O("Tracker does not exist.")};Z.O=function(a){return Z.o[a]};Z.getAll=function(){return Z.C.slice(0)};

d])}else/^((__utmt)|(_gat))/.test(e)&&b.push([e,"","",d])}Xd(b);ge()};Z.dump=Z.ga;Ga("\n _ _ _ _\n | | | | | | (_)\n __ _ ___ ___ __ _| | ___ __ _ _ __ __ _| |_ _| |_ _ ___ ___\n / _` |/ _ \\ / _ \\ / _` | |/ _ \\ / _` | '_ \\ / _` | | | | | __| |/ __/ __|\n| (_| | (_) | (_) | (_| | | __/ | (_| | | | | (_| | | |_| | |_| | (__\\__ \\\n \\__, |\\___/ \\___/ \\__, |_|\\___| \\__,_|_| |_|\\__,_|_|\\__, |\\__|_|\\___|___/\n __/ | __/ | __/ |\n |___/ |___/ |___/\n");
J("Running analytics_debug.js. This script is intended for testing and debugging only.");var ca=Z.P,fa=Q[Fc];fa&&fa.r?ca():A(ca);A(function(){jf.H(["provide","render",Aa])});function ic(a){var b=1,c,d;if(a)for(b=0,d=a.length-1;0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c>>21:b;return b};})(window);
J("Running analytics_debug.js. This script is intended for testing and debugging only.");var sa=Z.P,ta=Q[Fc];ta&&ta.r?sa():A(sa);A(function(){jf.H(["provide","render",Aa])});function ic(a){var b=1,c;if(a)for(b=0,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);b=(b<<6&268435455)+d+(d<<14);d=b&266338304;b=0!=d?b^d>>21:b}return b};})(window);

@@ -1,11 +0,12 @@

(function(){var $c=function(a){this.w=a||[]};$c.prototype.set=function(a){this.w[a]=!0};$c.prototype.encode=function(){for(var a=[],b=0;b<this.w.length;b++)this.w[b]&&(a[Math.floor(b/6)]^=1<<b%6);for(b=0;b<a.length;b++)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b]||0);return a.join("")+"~"};var vd=new $c;function J(a){vd.set(a)}var Nd=function(a,b){var c=new $c(Dd(a));c.set(b);a.set(Gd,c.w)},Td=function(a){a=Dd(a);a=new $c(a);for(var b=vd.w.slice(),c=0;c<a.w.length;c++)b[c]=b[c]||a.w[c];return(new $c(b)).encode()},Dd=function(a){a=a.get(Gd);ka(a)||(a=[]);return a};var ea=function(a){return"function"==typeof a},ka=function(a){return"[object Array]"==Object.prototype.toString.call(Object(a))},qa=function(a){return void 0!=a&&-1<(a.constructor+"").indexOf("String")},D=function(a,b){return 0==a.indexOf(b)},sa=function(a){return a?a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},ta=function(a){var b=M.createElement("img");b.width=1;b.height=1;b.src=a;return b},ua=function(){},K=function(a){if(encodeURIComponent instanceof Function)return encodeURIComponent(a);J(28);return a},
L=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){J(27)}},f=/^[\w\-:/.?=&%!]+$/,wa=function(a,b,c){a&&(c?(c="",b&&f.test(b)&&(c=' id="'+b+'"'),f.test(a)&&M.write("<script"+c+' src="'+a+'">\x3c/script>')):(c=M.createElement("script"),c.type="text/javascript",c.async=!0,c.src=a,b&&(c.id=b),a=M.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},Ud=function(){return"https:"==M.location.protocol},E=function(a,b){var c=
a.match("(?:&|#|\\?)"+K(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)");return c&&2==c.length?c[1]:""},xa=function(){var a=""+M.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},ya=function(a){var b=M.referrer;if(/^https?:\/\//i.test(b)){if(a)return b;a="//"+M.location.hostname;var c=b.indexOf(a);if(5==c||6==c)if(a=b.charAt(c+a.length),"/"==a||"?"==a||""==a||":"==a)return;return b}},za=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c=
{},d=Math.min(a.length+1,b.length),e=0;e<d;e++)if("object"===typeof b[e]){for(var g in b[e])b[e].hasOwnProperty(g)&&(c[g]=b[e][g]);break}else e<a.length&&(c[a[e]]=b[e]);return c};var ee=function(){this.keys=[];this.values={};this.m={}};ee.prototype.set=function(a,b,c){this.keys.push(a);c?this.m[":"+a]=b:this.values[":"+a]=b};ee.prototype.get=function(a){return this.m.hasOwnProperty(":"+a)?this.m[":"+a]:this.values[":"+a]};ee.prototype.map=function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b],d=this.get(c);d&&a(c,d)}};var O=window,M=document;var F=window,G=function(a){var b=F._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===F["ga-disable-"+a])return!0;try{var c=F.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(d){}return!1};var Ca=function(a){var b=[],c=M.cookie.split(";");a=new RegExp("^\\s*"+a+"=\\s*(.*?)\\s*$");for(var d=0;d<c.length;d++){var e=c[d].match(a);e&&b.push(e[1])}return b},zc=function(a,b,c,d,e,g){e=G(e)?!1:eb.test(M.location.hostname)||"/"==c&&vc.test(d)?!1:!0;if(!e)return!1;b&&1200<b.length&&(b=b.substring(0,1200),J(24));c=a+"="+b+"; path="+c+"; ";g&&(c+="expires="+(new Date((new Date).getTime()+g)).toGMTString()+"; ");d&&"none"!=d&&(c+="domain="+d+";");d=M.cookie;M.cookie=c;if(!(d=d!=M.cookie))a:{a=
(function(){var $c=function(a){this.w=a||[]};$c.prototype.set=function(a){this.w[a]=!0};$c.prototype.encode=function(){for(var a=[],b=0;b<this.w.length;b++)this.w[b]&&(a[Math.floor(b/6)]^=1<<b%6);for(b=0;b<a.length;b++)a[b]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[b]||0);return a.join("")+"~"};var vd=new $c;function J(a){vd.set(a)}var Nd=function(a,b){var c=new $c(Dd(a));c.set(b);a.set(Gd,c.w)},Td=function(a){a=Dd(a);a=new $c(a);for(var b=vd.w.slice(),c=0;c<a.w.length;c++)b[c]=b[c]||a.w[c];return(new $c(b)).encode()},Dd=function(a){a=a.get(Gd);ka(a)||(a=[]);return a};var ea=function(a){return"function"==typeof a},ka=function(a){return"[object Array]"==Object.prototype.toString.call(Object(a))},qa=function(a){return void 0!=a&&-1<(a.constructor+"").indexOf("String")},D=function(a,b){return 0==a.indexOf(b)},sa=function(a){return a?a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,""):""},ga=function(){for(var a=O.navigator.userAgent+(M.cookie?M.cookie:"")+(M.referrer?M.referrer:""),b=a.length,c=O.history.length;0<c;)a+=c--^b++;return[hd()^La(a)&2147483647,Math.round((new Date).getTime()/
1E3)].join(".")},ta=function(a){var b=M.createElement("img");b.width=1;b.height=1;b.src=a;return b},ua=function(){},K=function(a){if(encodeURIComponent instanceof Function)return encodeURIComponent(a);J(28);return a},L=function(a,b,c,d){try{a.addEventListener?a.addEventListener(b,c,!!d):a.attachEvent&&a.attachEvent("on"+b,c)}catch(e){J(27)}},f=/^[\w\-:/.?=&%!]+$/,wa=function(a,b,c,d){a&&(c?(d="",b&&f.test(b)&&(d=' id="'+b+'"'),f.test(a)&&M.write("<script"+d+' src="'+a+'">\x3c/script>')):(c=M.createElement("script"),
c.type="text/javascript",c.async=!0,c.src=a,d&&(c.onload=d),b&&(c.id=b),a=M.getElementsByTagName("script")[0],a.parentNode.insertBefore(c,a)))},Ud=function(){return"https:"==M.location.protocol},E=function(a,b){return(a=a.match("(?:&|#|\\?)"+K(b).replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")+"=([^&#]*)"))&&2==a.length?a[1]:""},xa=function(){var a=""+M.location.hostname;return 0==a.indexOf("www.")?a.substring(4):a},ya=function(a){var b=M.referrer;if(/^https?:\/\//i.test(b)){if(a)return b;a="//"+M.location.hostname;
var c=b.indexOf(a);if(5==c||6==c)if(a=b.charAt(c+a.length),"/"==a||"?"==a||""==a||":"==a)return;return b}},za=function(a,b){if(1==b.length&&null!=b[0]&&"object"===typeof b[0])return b[0];for(var c={},d=Math.min(a.length+1,b.length),e=0;e<d;e++)if("object"===typeof b[e]){for(var g in b[e])b[e].hasOwnProperty(g)&&(c[g]=b[e][g]);break}else e<a.length&&(c[a[e]]=b[e]);return c};var ee=function(){this.keys=[];this.values={};this.m={}};ee.prototype.set=function(a,b,c){this.keys.push(a);c?this.m[":"+a]=b:this.values[":"+a]=b};ee.prototype.get=function(a){return this.m.hasOwnProperty(":"+a)?this.m[":"+a]:this.values[":"+a]};ee.prototype.map=function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b],d=this.get(c);d&&a(c,d)}};var O=window,M=document;var F=window,G=function(a){var b=F._gaUserPrefs;if(b&&b.ioo&&b.ioo()||a&&!0===F["ga-disable-"+a])return!0;try{var c=F.external;if(c&&c._gaUserPrefs&&"oo"==c._gaUserPrefs)return!0}catch(d){}return!1};var Ca=function(a){var b=[],c=M.cookie.split(";");a=new RegExp("^\\s*"+a+"=\\s*(.*?)\\s*$");for(var d=0;d<c.length;d++){var e=c[d].match(a);e&&b.push(e[1])}return b},zc=function(a,b,c,d,e,g){e=G(e)?!1:eb.test(M.location.hostname)||"/"==c&&vc.test(d)?!1:!0;if(!e)return!1;b&&1200<b.length&&(b=b.substring(0,1200),J(24));c=a+"="+b+"; path="+c+"; ";g&&(c+="expires="+(new Date((new Date).getTime()+g)).toGMTString()+"; ");d&&"none"!=d&&(c+="domain="+d+";");d=M.cookie;M.cookie=c;if(!(d=d!=M.cookie))a:{a=
Ca(a);for(d=0;d<a.length;d++)if(b==a[d]){d=!0;break a}d=!1}return d},Cc=function(a){return K(a).replace(/\(/g,"%28").replace(/\)/g,"%29")},vc=/^(www\.)?google(\.com?)?(\.[a-z]{2})?$/,eb=/(^|\.)doubleclick\.net$/i;var oc=function(){return(Ba||Ud()?"https:":"http:")+"//www.google-analytics.com"},Da=function(a){this.name="len";this.message=a+"-8192"},ba=function(a,b,c){c=c||ua;if(2036>=b.length)wc(a,b,c);else if(8192>=b.length)x(a,b,c)||wd(a,b,c)||wc(a,b,c);else throw ge("len",b.length),new Da(b.length);},wc=function(a,b,c){var d=ta(a+"?"+b);d.onload=d.onerror=function(){d.onload=null;d.onerror=null;c()}},wd=function(a,b,c){var d=O.XMLHttpRequest;if(!d)return!1;var e=new d;if(!("withCredentials"in e))return!1;
e.open("POST",a,!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onreadystatechange=function(){4==e.readyState&&(c(),e=null)};e.send(b);return!0},x=function(a,b,c){return O.navigator.sendBeacon?O.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},ge=function(a,b,c){1<=100*Math.random()||G("?")||(a=["t=error","_e="+a,"_v=j47","sr=1"],b&&a.push("_f="+b),c&&a.push("_m="+K(c.substring(0,100))),a.push("aip=1"),a.push("z="+hd()),wc(oc()+"/collect",a.join("&"),ua))};var h=function(a){var b=O.gaData=O.gaData||{};return b[a]=b[a]||{}};var Ha=function(){this.M=[]};Ha.prototype.add=function(a){this.M.push(a)};Ha.prototype.D=function(a){try{for(var b=0;b<this.M.length;b++){var c=a.get(this.M[b]);c&&ea(c)&&c.call(O,a)}}catch(d){}b=a.get(Ia);b!=ua&&ea(b)&&(a.set(Ia,ua,!0),setTimeout(b,10))};function Ja(a){if(100!=a.get(Ka)&&La(P(a,Q))%1E4>=100*R(a,Ka))throw"abort";}function Ma(a){if(G(P(a,Na)))throw"abort";}function Oa(){var a=M.location.protocol;if("http:"!=a&&"https:"!=a)throw"abort";}
function Pa(a){try{O.navigator.sendBeacon?J(42):O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest&&J(40)}catch(c){}a.set(ld,Td(a),!0);a.set(Ac,R(a,Ac)+1);var b=[];Qa.map(function(c,d){if(d.F){var e=a.get(c);void 0!=e&&e!=d.defaultValue&&("boolean"==typeof e&&(e*=1),b.push(d.F+"="+K(""+e)))}});b.push("z="+Bd());a.set(Ra,b.join("&"),!0)}
a=a.replace(/^http:/,"https:");e.open("POST",a,!0);e.withCredentials=!0;e.setRequestHeader("Content-Type","text/plain");e.onreadystatechange=function(){4==e.readyState&&(c(),e=null)};e.send(b);return!0},x=function(a,b,c){return O.navigator.sendBeacon?O.navigator.sendBeacon(a,b)?(c(),!0):!1:!1},ge=function(a,b,c){1<=100*Math.random()||G("?")||(a=["t=error","_e="+a,"_v=j54","sr=1"],b&&a.push("_f="+b),c&&a.push("_m="+K(c.substring(0,100))),a.push("aip=1"),a.push("z="+hd()),wc(oc()+"/collect",a.join("&"),
ua))};var h=function(a){var b=O.gaData=O.gaData||{};return b[a]=b[a]||{}};var Ha=function(){this.M=[]};Ha.prototype.add=function(a){this.M.push(a)};Ha.prototype.D=function(a){try{for(var b=0;b<this.M.length;b++){var c=a.get(this.M[b]);c&&ea(c)&&c.call(O,a)}}catch(d){}b=a.get(Ia);b!=ua&&ea(b)&&(a.set(Ia,ua,!0),setTimeout(b,10))};function Ja(a){if(100!=a.get(Ka)&&La(P(a,Q))%1E4>=100*R(a,Ka))throw"abort";}function Ma(a){if(G(P(a,Na)))throw"abort";}function Oa(){var a=M.location.protocol;if("http:"!=a&&"https:"!=a)throw"abort";}
function Pa(a){try{O.navigator.sendBeacon?J(42):O.XMLHttpRequest&&"withCredentials"in new O.XMLHttpRequest&&J(40)}catch(c){}a.set(ld,Td(a),!0);a.set(Ac,R(a,Ac)+1);var b=[];Qa.map(function(c,d){d.F&&(c=a.get(c),void 0!=c&&c!=d.defaultValue&&("boolean"==typeof c&&(c*=1),b.push(d.F+"="+K(""+c))))});b.push("z="+Bd());a.set(Ra,b.join("&"),!0)}
function Sa(a){var b=P(a,gd)||oc()+"/collect",c=P(a,fa);!c&&a.get(Vd)&&(c="beacon");if(c){var d=P(a,Ra),e=a.get(Ia),e=e||ua;"image"==c?wc(b,d,e):"xhr"==c&&wd(b,d,e)||"beacon"==c&&x(b,d,e)||ba(b,d,e)}else ba(b,P(a,Ra),a.get(Ia));b=a.get(Na);b=h(b);c=b.hitcount;b.hitcount=c?c+1:1;b=a.get(Na);delete h(b).pending_experiments;a.set(Ia,ua,!0)}
function Hc(a){(O.gaData=O.gaData||{}).expId&&a.set(Nc,(O.gaData=O.gaData||{}).expId);(O.gaData=O.gaData||{}).expVar&&a.set(Oc,(O.gaData=O.gaData||{}).expVar);var b;var c=a.get(Na);if(c=h(c).pending_experiments){var d=[];for(b in c)c.hasOwnProperty(b)&&c[b]&&d.push(encodeURIComponent(b)+"."+encodeURIComponent(c[b]));b=d.join("!")}else b=void 0;b&&a.set(m,b,!0)}function cd(){if(O.navigator&&"preview"==O.navigator.loadPurpose)throw"abort";}
function yd(a){var b=O.gaDevIds;ka(b)&&0!=b.length&&a.set("&did",b.join(","),!0)}function vb(a){if(!a.get(Na))throw"abort";};var hd=function(){return Math.round(2147483647*Math.random())},Bd=function(){try{var a=new Uint32Array(1);O.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return hd()}};function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){var c=R(a,Wa),d=(new Date).getTime(),e=R(a,Xa);0==e&&a.set(Xa,d);e=Math.round(2*(d-e)/1E3);0<e&&(c=Math.min(c+e,20),a.set(Xa,d));if(0>=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new ee},Qa=new ee,Za=[];Ya.prototype.get=function(a){var b=$a(a),c=this.data.get(a);b&&void 0==c&&(c=ea(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.Z?b.Z(this,a,c):c};var P=function(a,b){var c=a.get(b);return void 0==c?"":""+c},R=function(a,b){var c=a.get(b);return void 0==c||""===c?0:1*c};Ya.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&ab(this,d,a[d],c);else ab(this,a,b,c)};
function Hc(a){(O.gaData=O.gaData||{}).expId&&a.set(Nc,(O.gaData=O.gaData||{}).expId);(O.gaData=O.gaData||{}).expVar&&a.set(Oc,(O.gaData=O.gaData||{}).expVar);var b=a.get(Na);if(b=h(b).pending_experiments){var c=[];for(d in b)b.hasOwnProperty(d)&&b[d]&&c.push(encodeURIComponent(d)+"."+encodeURIComponent(b[d]));var d=c.join("!")}else d=void 0;d&&a.set(m,d,!0)}function cd(){if(O.navigator&&"preview"==O.navigator.loadPurpose)throw"abort";}
function yd(a){var b=O.gaDevIds;ka(b)&&0!=b.length&&a.set("&did",b.join(","),!0)}function vb(a){if(!a.get(Na))throw"abort";};var hd=function(){return Math.round(2147483647*Math.random())},Bd=function(){try{var a=new Uint32Array(1);O.crypto.getRandomValues(a);return a[0]&2147483647}catch(b){return hd()}};function Ta(a){var b=R(a,Ua);500<=b&&J(15);var c=P(a,Va);if("transaction"!=c&&"item"!=c){var c=R(a,Wa),d=(new Date).getTime(),e=R(a,Xa);0==e&&a.set(Xa,d);e=Math.round(2*(d-e)/1E3);0<e&&(c=Math.min(c+e,20),a.set(Xa,d));if(0>=c)throw"abort";a.set(Wa,--c)}a.set(Ua,++b)};var Ya=function(){this.data=new ee},Qa=new ee,Za=[];Ya.prototype.get=function(a){var b=$a(a),c=this.data.get(a);b&&void 0==c&&(c=ea(b.defaultValue)?b.defaultValue():b.defaultValue);return b&&b.Z?b.Z(this,a,c):c};var P=function(a,b){a=a.get(b);return void 0==a?"":""+a},R=function(a,b){a=a.get(b);return void 0==a||""===a?0:1*a};Ya.prototype.set=function(a,b,c){if(a)if("object"==typeof a)for(var d in a)a.hasOwnProperty(d)&&ab(this,d,a[d],c);else ab(this,a,b,c)};
var ab=function(a,b,c,d){if(void 0!=c)switch(b){case Na:wb.test(c)}var e=$a(b);e&&e.o?e.o(a,b,c,d):a.data.set(b,c,d)},bb=function(a,b,c,d,e){this.name=a;this.F=b;this.Z=d;this.o=e;this.defaultValue=c},$a=function(a){var b=Qa.get(a);if(!b)for(var c=0;c<Za.length;c++){var d=Za[c],e=d[0].exec(a);if(e){b=d[1](e);Qa.set(b.name,b);break}}return b},yc=function(a){var b;Qa.map(function(c,d){d.F==a&&(b=d)});return b&&b.name},S=function(a,b,c,d,e){a=new bb(a,b,c,d,e);Qa.set(a.name,a);return a.name},cb=function(a,

@@ -16,31 +17,33 @@ b){Za.push([new RegExp("^"+a+"$"),b])},T=function(a,b,c){return S(a,b,c,void 0,db)},db=function(){};var gb=qa(window.GoogleAnalyticsObject)&&sa(window.GoogleAnalyticsObject)||"ga",Ba=!1,hb=T("apiVersion","v"),ib=T("clientVersion","_v");S("anonymizeIp","aip");var jb=S("adSenseId","a"),Va=S("hitType","t"),Ia=S("hitCallback"),Ra=S("hitPayload");S("nonInteraction","ni");S("currencyCode","cu");S("dataSource","ds");var Vd=S("useBeacon",void 0,!1),fa=S("transport");S("sessionControl","sc","");S("sessionGroup","sg");S("queueTime","qt");var Ac=S("_s","_s");S("screenName","cd");

S("appVersion","av","");S("appId","aid","");S("appInstallerId","aiid","");S("exDescription","exd");S("exFatal","exf");var Nc=S("expId","xid"),Oc=S("expVar","xvar"),m=S("exp","exp"),Rc=S("_utma","_utma"),Sc=S("_utmz","_utmz"),Tc=S("_utmht","_utmht"),Ua=S("_hc",void 0,0),Xa=S("_ti",void 0,0),Wa=S("_to",void 0,20);cb("dimension([0-9]+)",function(a){return new bb(a[0],"cd"+a[1])});cb("metric([0-9]+)",function(a){return new bb(a[0],"cm"+a[1])});S("linkerParam",void 0,void 0,Bc,db);
var ld=S("usage","_u"),Gd=S("_um");S("forceSSL",void 0,void 0,function(){return Ba},function(a,b,c){J(34);Ba=!!c});var ed=S("_j1","jid");cb("\\&(.*)",function(a){var b=new bb(a[0],a[1]),c=yc(a[0].substring(1));c&&(b.Z=function(a){return a.get(c)},b.o=function(a,b,g,ca){a.set(c,g,ca)},b.F=void 0);return b});
var Qb=T("_oot"),dd=S("previewTask"),Rb=S("checkProtocolTask"),md=S("validationTask"),Sb=S("checkStorageTask"),Uc=S("historyImportTask"),Tb=S("samplerTask"),Vb=S("_rlt"),Wb=S("buildHitTask"),Xb=S("sendHitTask"),Vc=S("ceTask"),zd=S("devIdTask"),Cd=S("timingTask"),Ld=S("displayFeaturesTask"),V=T("name"),Q=T("clientId","cid"),n=T("clientIdTime"),Ad=S("userId","uid"),Na=T("trackingId","tid"),U=T("cookieName",void 0,"_ga"),W=T("cookieDomain"),Yb=T("cookiePath",void 0,"/"),Zb=T("cookieExpires",void 0,63072E3),
$b=T("legacyCookieDomain"),Wc=T("legacyHistoryImport",void 0,!0),ac=T("storage",void 0,"cookie"),bc=T("allowLinker",void 0,!1),cc=T("allowAnchor",void 0,!0),Ka=T("sampleRate","sf",100),dc=T("siteSpeedSampleRate",void 0,1),ec=T("alwaysSendReferrer",void 0,!1),gd=S("transportUrl"),Md=S("_r","_r");function X(a,b,c,d){b[a]=function(){try{return d&&J(d),c.apply(this,arguments)}catch(e){throw ge("exc",a,e&&e.name),e;}}};var Od=function(a){this.V=a;this.fa=void 0;this.$=!1;this.oa=void 0;this.ea=1},Ed=function(a,b){var c;if(a.fa&&a.$)return 0;a.$=!0;if(b){if(a.oa&&R(b,a.oa))return R(b,a.oa);if(0==b.get(dc))return 0}if(0==a.V)return 0;void 0===c&&(c=Bd());return 0==c%a.V?Math.floor(c/a.V)%a.ea+1:0};function fc(){var a,b,c;if((c=(c=O.navigator)?c.plugins:null)&&c.length)for(var d=0;d<c.length&&!b;d++){var e=c[d];-1<e.name.indexOf("Shockwave Flash")&&(b=e.description)}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),b=a.GetVariable("$version")}catch(g){}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),b="WIN 6,0,21,0",a.AllowScriptAccess="always",b=a.GetVariable("$version")}catch(g){}if(!b)try{a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),b=a.GetVariable("$version")}catch(g){}b&&
(a=b.match(/[\d]+/g))&&3<=a.length&&(b=a[0]+"."+a[1]+" r"+a[2]);return b||void 0};var aa=function(a){var b=Math.min(R(a,dc),100);return La(P(a,Q))%100>=b?!1:!0},gc=function(a){var b={};if(Ec(b)||Fc(b)){var c=b[Eb];void 0==c||Infinity==c||isNaN(c)||(0<c?(Y(b,Gb),Y(b,Jb),Y(b,Ib),Y(b,Fb),Y(b,Hb),Y(b,Kb),Y(b,Lb),a(b)):L(O,"load",function(){gc(a)},!1))}},Ec=function(a){var b=O.performance||O.webkitPerformance,b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Eb]=b.loadEventStart-c;a[Gb]=b.domainLookupEnd-b.domainLookupStart;a[Jb]=b.connectEnd-b.connectStart;a[Ib]=
b.responseStart-b.requestStart;a[Fb]=b.responseEnd-b.responseStart;a[Hb]=b.fetchStart-c;a[Kb]=b.domInteractive-c;a[Lb]=b.domContentLoadedEventStart-c;return!0},Fc=function(a){if(O.top!=O)return!1;var b=O.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<c&&(c=void 0);0<c&&b.setPageReadyTime();if(void 0==c)return!1;a[Eb]=c;return!0},Y=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0},Fd=function(a){return function(b){if("pageview"==b.get(Va)&&!a.I){a.I=!0;var c=
aa(b);b=0<E(b.get(kb),"gclid").length;(c||b)&&gc(function(b){a.send(c?"timing":"adtiming",b)})}}};var hc=!1,mc=function(a){if("cookie"==P(a,ac)){var b=P(a,U),c=nd(a),d=kc(P(a,Yb)),e=lc(P(a,W)),g=1E3*R(a,Zb),ca=P(a,Na);if("auto"!=e)zc(b,c,d,e,ca,g)&&(hc=!0);else{J(32);var l;a:{c=[];e=xa().split(".");if(4==e.length&&(l=e[e.length-1],parseInt(l,10)==l)){l=["none"];break a}for(l=e.length-2;0<=l;l--)c.push(e.slice(l).join("."));c.push("none");l=c}for(var k=0;k<l.length;k++)if(e=l[k],a.data.set(W,e),c=nd(a),zc(b,c,d,e,ca,g)){hc=!0;return}a.data.set(W,"auto")}}},nc=function(a){if("cookie"==P(a,ac)&&
!hc&&(mc(a),!hc))throw"abort";},Yc=function(a){if(a.get(Wc)){var b=P(a,W),c=P(a,$b)||xa(),d=Xc("__utma",c,b);d&&(J(19),a.set(Tc,(new Date).getTime(),!0),a.set(Rc,d.R),(b=Xc("__utmz",c,b))&&d.hash==b.hash&&a.set(Sc,b.R))}},nd=function(a){var b=Cc(P(a,Q)),c=lc(P(a,W)).split(".").length;a=jc(P(a,Yb));1<a&&(c+="-"+a);return["GA1",c,b].join(".")},Gc=function(a,b,c){for(var d=[],e=[],g,ca=0;ca<a.length;ca++){var l=a[ca];l.H[c]==b?d.push(l):void 0==g||l.H[c]<g?(e=[l],g=l.H[c]):l.H[c]==g&&e.push(l)}return 0<
d.length?d:e},lc=function(a){return 0==a.indexOf(".")?a.substr(1):a},kc=function(a){if(!a)return"/";1<a.length&&a.lastIndexOf("/")==a.length-1&&(a=a.substr(0,a.length-1));0!=a.indexOf("/")&&(a="/"+a);return a},jc=function(a){a=kc(a);return"/"==a?1:a.split("/").length};function Xc(a,b,c){"none"==b&&(b="");var d=[],e=Ca(a);a="__utma"==a?6:2;for(var g=0;g<e.length;g++){var ca=(""+e[g]).split(".");ca.length>=a&&d.push({hash:ca[0],R:e[g],O:ca})}if(0!=d.length)return 1==d.length?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){var c,d;null==a?c=d=1:(c=La(a),d=La(D(a,".")?a.substring(1):"."+a));for(var e=0;e<b.length;e++)if(b[e].hash==c||b[e].hash==d)return b[e]};var od=new RegExp(/^https?:\/\/([^\/:]+)/),pd=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/;function Bc(a){a=a.get(Q);var b=Ic(a,0);return"_ga=1."+K(b+"."+a)}function Ic(a,b){for(var c=new Date,d=O.navigator,e=d.plugins||[],c=[a,d.userAgent,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b],d=0;d<e.length;++d)c.push(e[d].description);return La(c.join("."))}var Dc=function(a){J(48);this.target=a;this.T=!1};
Dc.prototype.ca=function(a,b){if(a.tagName){if("a"==a.tagName.toLowerCase()){a.href&&(a.href=qd(this,a.href,b));return}if("form"==a.tagName.toLowerCase())return rd(this,a)}if("string"==typeof a)return qd(this,a,b)};
var qd=function(a,b,c){var d=pd.exec(b);d&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));a=a.target.get("linkerParam");var e=b.indexOf("?"),d=b.indexOf("#");c?b+=(-1==d?"#":"&")+a:(c=-1==e?"?":"&",b=-1==d?b+(c+a):b.substring(0,d)+c+a+b.substring(d));return b=b.replace(/&+_ga=/,"&_ga=")},rd=function(a,b){if(b&&b.action){var c=a.target.get("linkerParam").split("=")[1];if("get"==b.method.toLowerCase()){for(var d=b.childNodes||[],e=0;e<d.length;e++)if("_ga"==d[e].name){d[e].setAttribute("value",c);return}d=
M.createElement("input");d.setAttribute("type","hidden");d.setAttribute("name","_ga");d.setAttribute("value",c);b.appendChild(d)}else"post"==b.method.toLowerCase()&&(b.action=qd(a,b.action))}};
Dc.prototype.S=function(a,b,c){function d(c){try{c=c||O.event;var d;a:{var g=c.target||c.srcElement;for(c=100;g&&0<c;){if(g.href&&g.nodeName.match(/^a(?:rea)?$/i)){d=g;break a}g=g.parentNode;c--}d={}}("http:"==d.protocol||"https:"==d.protocol)&&sd(a,d.hostname||"")&&d.href&&(d.href=qd(e,d.href,b))}catch(k){J(26)}}var e=this;this.T||(this.T=!0,L(M,"mousedown",d,!1),L(M,"keyup",d,!1));c&&L(M,"submit",function(b){b=b||O.event;if((b=b.target||b.srcElement)&&b.action){var c=b.action.match(od);c&&sd(a,
c[1])&&rd(e,b)}})};function sd(a,b){if(b==M.location.hostname)return!1;for(var c=0;c<a.length;c++)if(a[c]instanceof RegExp){if(a[c].test(b))return!0}else if(0<=b.indexOf(a[c]))return!0;return!1};var p=/^(GTM|OPT)-[A-Z0-9]+$/,q=/;_gaexp=[^;]*/g,r=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,t=function(a){function b(a,b){b&&(c+="&"+a+"="+K(b))}var c="https://www.google-analytics.com/gtm/js?id="+K(a.id);"dataLayer"!=a.B&&b("l",a.B);b("t",a.target);b("cid",a.ja);b("cidt",a.ka);b("gac",a.la);b("aip",a.ia);a.na&&b("m","sync");b("cycle",a.G);return c};var Jd=function(a,b,c){this.U=ed;this.aa=b;(b=c)||(b=(b=P(a,V))&&"t0"!=b?Wd.test(b)?"_gat_"+Cc(P(a,Na)):"_gat_"+Cc(b):"_gat");this.Y=b;Ed(new Od(100),a)&&(J(30),this.pa=!0)},Rd=function(a,b){var c=b.get(Wb);b.set(Wb,function(b){Pd(a,b);var d=c(b);Qd(a,b);return d});var d=b.get(Xb);b.set(Xb,function(b){var c=d(b);Id(a,b);return c})},Pd=function(a,b){b.get(a.U)||("1"==Ca(a.Y)[0]?b.set(a.U,"",!0):b.set(a.U,""+hd(),!0))},Qd=function(a,b){if(b.get(a.U)){var c=6E5;a.pa&&(c/=10);zc(a.Y,"1",b.get(Yb),b.get(W),
b.get(Na),c)}},Id=function(a,b){if(b.get(a.U)){var c=new ee,d=function(a){$a(a).F&&c.set($a(a).F,b.get(a))};d(hb);d(ib);d(Na);d(Q);d(Ad);d(a.U);c.set($a(ld).F,Td(b));var e=a.aa;c.map(function(a,b){e+=K(a)+"=";e+=K(""+b)+"&"});e+="z="+hd();ta(e);b.set(a.U,"",!0)}},Wd=/^gtm\d+$/;var fd=function(a,b){var c=a.b;if(!c.get("dcLoaded")){Nd(c,29);b=b||{};var d;b[U]&&(d=Cc(b[U]));d=new Jd(c,"https://stats.g.doubleclick.net/r/collect?t=dc&aip=1&_r=3&",d);Rd(d,c);c.set("dcLoaded",!0)}};var Sd=function(a){if(!a.get("dcLoaded")&&"cookie"==a.get(ac)){Nd(a,51);var b=new Jd(a);Pd(b,a);Qd(b,a);a.get(b.U)&&(a.set(Md,1,!0),a.set(gd,oc()+"/r/collect",!0))}};var Lc=function(){var a=O.gaGlobal=O.gaGlobal||{};return a.hid=a.hid||hd()};var ad,bd=function(a,b,c){if(!ad){var d;d=M.location.hash;var e=O.name,g=/^#?gaso=([^&]*)/;if(e=(d=(d=d&&d.match(g)||e&&e.match(g))?d[1]:Ca("GASO")[0]||"")&&d.match(/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))zc("GASO",""+d,c,b,a,0),window._udo||(window._udo=b),window._utcp||(window._utcp=c),a=e[1],wa("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(a?"prefix="+a+"&":"")+hd(),"_gasojs");ad=!0}};var wb=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,pc=function(a){function b(a,b){d.b.data.set(a,b)}function c(a,c){b(a,c);d.filters.add(a)}var d=this;this.b=new Ya;this.filters=new Ha;b(V,a[V]);b(Na,sa(a[Na]));b(U,a[U]);b(W,a[W]||xa());b(Yb,a[Yb]);b(Zb,a[Zb]);b($b,a[$b]);b(Wc,a[Wc]);b(bc,a[bc]);b(cc,a[cc]);b(Ka,a[Ka]);b(dc,a[dc]);b(ec,a[ec]);b(ac,a[ac]);b(Ad,a[Ad]);b(n,a[n]);b(hb,1);b(ib,"j47");c(Qb,Ma);c(dd,cd);c(Rb,Oa);c(md,vb);c(Sb,nc);c(Uc,Yc);c(Tb,Ja);c(Vb,Ta);c(Vc,Hc);c(zd,yd);c(Ld,Sd);c(Wb,Pa);c(Xb,Sa);
c(Cd,Fd(this));Jc(this.b,a[Q]);Kc(this.b);this.b.set(jb,Lc());bd(this.b.get(Na),this.b.get(W),this.b.get(Yb))},Jc=function(a,b){if("cookie"==P(a,ac)){hc=!1;var c;b:{var d=Ca(P(a,U));if(d&&!(1>d.length)){c=[];for(var e=0;e<d.length;e++){var g;g=d[e].split(".");var ca=g.shift();("GA1"==ca||"1"==ca)&&1<g.length?(ca=g.shift().split("-"),1==ca.length&&(ca[1]="1"),ca[0]*=1,ca[1]*=1,g={H:ca,s:g.join(".")}):g=void 0;g&&c.push(g)}if(1==c.length){J(13);c=c[0].s;break b}if(0==c.length)J(12);else{J(14);d=lc(P(a,
W)).split(".").length;c=Gc(c,d,0);if(1==c.length){c=c[0].s;break b}d=jc(P(a,Yb));c=Gc(c,d,1);c=c[0]&&c[0].s;break b}}c=void 0}c||(c=P(a,W),d=P(a,$b)||xa(),c=Xc("__utma",d,c),void 0!=c?(J(10),c=c.O[1]+"."+c.O[2]):c=void 0);c&&(a.data.set(Q,c),hc=!0)}c=a.get(cc);if(e=E(M.location[c?"href":"search"],"_ga"))a.get(bc)?(c=e.indexOf("."),-1==c?J(22):(d=e.substring(c+1),"1"!=e.substring(0,c)?J(22):(c=d.indexOf("."),-1==c?J(22):(e=d.substring(0,c),c=d.substring(c+1),e!=Ic(c,0)&&e!=Ic(c,-1)&&e!=Ic(c,-2)?J(23):
(J(11),a.data.set(Q,c)))))):J(21);b&&(J(9),a.data.set(Q,K(b)));if(!a.get(Q))if(c=(c=O.gaGlobal&&O.gaGlobal.vid)&&-1!=c.search(/^(?:utma\.)?\d+\.\d+$/)?c:void 0)J(17),a.data.set(Q,c);else{J(8);c=O.navigator.userAgent+(M.cookie?M.cookie:"")+(M.referrer?M.referrer:"");d=c.length;for(e=O.history.length;0<e;)c+=e--^d++;a.data.set(Q,[hd()^La(c)&2147483647,Math.round((new Date).getTime()/1E3)].join("."))}mc(a)},Kc=function(a){var b=O.navigator,c=O.screen,d=M.location;a.set(lb,ya(a.get(ec)));if(d){var e=
d.pathname||"";"/"!=e.charAt(0)&&(J(31),e="/"+e);a.set(kb,d.protocol+"//"+d.hostname+e+d.search)}c&&a.set(qb,c.width+"x"+c.height);c&&a.set(pb,c.colorDepth+"-bit");var c=M.documentElement,g=(e=M.body)&&e.clientWidth&&e.clientHeight,ca=[];c&&c.clientWidth&&c.clientHeight&&("CSS1Compat"===M.compatMode||!g)?ca=[c.clientWidth,c.clientHeight]:g&&(ca=[e.clientWidth,e.clientHeight]);c=0>=ca[0]||0>=ca[1]?"":ca.join("x");a.set(rb,c);a.set(tb,fc());a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"===
typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"").toLowerCase());if(d&&a.get(cc)&&(b=M.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;c<b.length;++c)(D(b[c],"utm_id")||D(b[c],"utm_campaign")||D(b[c],"utm_source")||D(b[c],"utm_medium")||D(b[c],"utm_term")||D(b[c],"utm_content")||D(b[c],"gclid")||D(b[c],"dclid")||D(b[c],"gclsrc"))&&d.push(b[c]);0<d.length&&(b="#"+d.join("&"),a.set(kb,a.get(kb)+b))}};pc.prototype.get=function(a){return this.b.get(a)};
pc.prototype.set=function(a,b){this.b.set(a,b)};var qc={pageview:[mb],event:[ub,xb,yb,zb],social:[Bb,Cb,Db],timing:[Mb,Nb,Pb,Ob]};pc.prototype.send=function(a){if(!(1>arguments.length)){var b,c;"string"===typeof arguments[0]?(b=arguments[0],c=[].slice.call(arguments,1)):(b=arguments[0]&&arguments[0][Va],c=arguments);b&&(c=za(qc[b]||[],c),c[Va]=b,this.b.set(c,void 0,!0),this.filters.D(this.b),this.b.data.m={})}};
var ld=S("usage","_u"),Gd=S("_um");S("forceSSL",void 0,void 0,function(){return Ba},function(a,b,c){J(34);Ba=!!c});var ed=S("_j1","jid"),ia=S("_j2","gjid");cb("\\&(.*)",function(a){var b=new bb(a[0],a[1]),c=yc(a[0].substring(1));c&&(b.Z=function(a){return a.get(c)},b.o=function(a,b,g,ca){a.set(c,g,ca)},b.F=void 0);return b});
var Qb=T("_oot"),dd=S("previewTask"),Rb=S("checkProtocolTask"),md=S("validationTask"),Sb=S("checkStorageTask"),Uc=S("historyImportTask"),Tb=S("samplerTask"),Vb=S("_rlt"),Wb=S("buildHitTask"),Xb=S("sendHitTask"),Vc=S("ceTask"),zd=S("devIdTask"),Cd=S("timingTask"),Ld=S("displayFeaturesTask"),oa=S("customTask"),V=T("name"),Q=T("clientId","cid"),n=T("clientIdTime"),Ad=S("userId","uid"),Na=T("trackingId","tid"),U=T("cookieName",void 0,"_ga"),W=T("cookieDomain"),Yb=T("cookiePath",void 0,"/"),Zb=T("cookieExpires",
void 0,63072E3),$b=T("legacyCookieDomain"),Wc=T("legacyHistoryImport",void 0,!0),ac=T("storage",void 0,"cookie"),bc=T("allowLinker",void 0,!1),cc=T("allowAnchor",void 0,!0),Ka=T("sampleRate","sf",100),dc=T("siteSpeedSampleRate",void 0,1),ec=T("alwaysSendReferrer",void 0,!1),I=T("_gid","_gid"),ja=T("_ge"),la=T("_gcn"),gd=S("transportUrl"),Md=S("_r","_r");function X(a,b,c,d){b[a]=function(){try{return d&&J(d),c.apply(this,arguments)}catch(e){throw ge("exc",a,e&&e.name),e;}}};var Od=function(a,b,c){this.V=a;this.fa=b;this.$=!1;this.oa=c;this.ea=1},Ed=function(a,b,c){if(a.fa&&a.$)return 0;a.$=!0;if(b){if(a.oa&&R(b,a.oa))return R(b,a.oa);if(0==b.get(dc))return 0}if(0==a.V)return 0;void 0===c&&(c=Bd());return 0==c%a.V?Math.floor(c/a.V)%a.ea+1:0};function fc(){var a,b;if((b=(b=O.navigator)?b.plugins:null)&&b.length)for(var c=0;c<b.length&&!a;c++){var d=b[c];-1<d.name.indexOf("Shockwave Flash")&&(a=d.description)}if(!a)try{var e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");a=e.GetVariable("$version")}catch(g){}if(!a)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),a="WIN 6,0,21,0",e.AllowScriptAccess="always",a=e.GetVariable("$version")}catch(g){}if(!a)try{e=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),a=e.GetVariable("$version")}catch(g){}a&&
(e=a.match(/[\d]+/g))&&3<=e.length&&(a=e[0]+"."+e[1]+" r"+e[2]);return a||void 0};var aa=function(a){var b=Math.min(R(a,dc),100);return La(P(a,Q))%100>=b?!1:!0},gc=function(a){var b={};if(Ec(b)||Fc(b)){var c=b[Eb];void 0==c||Infinity==c||isNaN(c)||(0<c?(Y(b,Gb),Y(b,Jb),Y(b,Ib),Y(b,Fb),Y(b,Hb),Y(b,Kb),Y(b,Lb),setTimeout(function(){a(b)},10)):L(O,"load",function(){gc(a)},!1))}},Ec=function(a){var b=O.performance||O.webkitPerformance,b=b&&b.timing;if(!b)return!1;var c=b.navigationStart;if(0==c)return!1;a[Eb]=b.loadEventStart-c;a[Gb]=b.domainLookupEnd-b.domainLookupStart;a[Jb]=b.connectEnd-
b.connectStart;a[Ib]=b.responseStart-b.requestStart;a[Fb]=b.responseEnd-b.responseStart;a[Hb]=b.fetchStart-c;a[Kb]=b.domInteractive-c;a[Lb]=b.domContentLoadedEventStart-c;return!0},Fc=function(a){if(O.top!=O)return!1;var b=O.external,c=b&&b.onloadT;b&&!b.isValidLoadTime&&(c=void 0);2147483648<c&&(c=void 0);0<c&&b.setPageReadyTime();if(void 0==c)return!1;a[Eb]=c;return!0},Y=function(a,b){var c=a[b];if(isNaN(c)||Infinity==c||0>c)a[b]=void 0},Fd=function(a){return function(b){if("pageview"==b.get(Va)&&
!a.I){a.I=!0;var c=aa(b);b=0<E(b.get(kb),"gclid").length;(c||b)&&gc(function(b){a.send(c?"timing":"adtiming",b)})}}};var hc=!1,mc=function(a){"cookie"==P(a,ac)&&(ma(a,Q,U),a.get(ja)&&ma(a,I,la,864E5))},ma=function(a,b,c,d){var e=nd(a,b);if(e){c=P(a,c);b=kc(P(a,Yb));var g=lc(P(a,W));d=d||1E3*R(a,Zb);var ca=P(a,Na);if("auto"!=g)zc(c,e,b,g,ca,d)&&(hc=!0);else{J(32);a:{e=[];g=xa().split(".");if(4==g.length){var l=g[g.length-1];if(parseInt(l,10)==l){l=["none"];break a}}for(l=g.length-2;0<=l;l--)e.push(g.slice(l).join("."));e.push("none");l=e}for(var k=0;k<l.length;k++)if(g=l[k],a.data.set(W,g),e=nd(a,Q),zc(c,e,b,g,ca,
d)){hc=!0;return}a.data.set(W,"auto")}}else a.get(ja)||J(54)},nc=function(a){if("cookie"==P(a,ac)&&!hc&&(mc(a),!hc))throw"abort";},Yc=function(a){if(a.get(Wc)){var b=P(a,W),c=P(a,$b)||xa(),d=Xc("__utma",c,b);d&&(J(19),a.set(Tc,(new Date).getTime(),!0),a.set(Rc,d.R),(b=Xc("__utmz",c,b))&&d.hash==b.hash&&a.set(Sc,b.R))}},nd=function(a,b){b=Cc(P(a,b));var c=lc(P(a,W)).split(".").length;a=jc(P(a,Yb));1<a&&(c+="-"+a);return b?["GA1",c,b].join("."):""},na=function(a,b){if(!b||1>b.length)J(12);else{for(var c=
[],d=0;d<b.length;d++){var e=b[d];var g=e.split(".");var ca=g.shift();("GA1"==ca||"1"==ca)&&1<g.length?(e=g.shift().split("-"),1==e.length&&(e[1]="1"),e[0]*=1,e[1]*=1,g={H:e,s:g.join(".")}):g=/^amp-/.test(e)?{H:[0,0],s:e}:void 0;g&&c.push(g)}if(1==c.length)return J(13),c[0].s;if(0==c.length)J(12);else{J(14);b=lc(P(a,W)).split(".").length;c=Gc(c,b,0);if(1==c.length)return c[0].s;a=jc(P(a,Yb));c=Gc(c,a,1);1<c.length&&J(41);return c[0]&&c[0].s}}},Gc=function(a,b,c){for(var d=[],e=[],g,ca=0;ca<a.length;ca++){var l=
a[ca];l.H[c]==b?d.push(l):void 0==g||l.H[c]<g?(e=[l],g=l.H[c]):l.H[c]==g&&e.push(l)}return 0<d.length?d:e},lc=function(a){return 0==a.indexOf(".")?a.substr(1):a},kc=function(a){if(!a)return"/";1<a.length&&a.lastIndexOf("/")==a.length-1&&(a=a.substr(0,a.length-1));0!=a.indexOf("/")&&(a="/"+a);return a},jc=function(a){a=kc(a);return"/"==a?1:a.split("/").length};function Xc(a,b,c){"none"==b&&(b="");var d=[],e=Ca(a);a="__utma"==a?6:2;for(var g=0;g<e.length;g++){var ca=(""+e[g]).split(".");ca.length>=a&&d.push({hash:ca[0],R:e[g],O:ca})}if(0!=d.length)return 1==d.length?d[0]:Zc(b,d)||Zc(c,d)||Zc(null,d)||d[0]}function Zc(a,b){if(null==a)var c=a=1;else c=La(a),a=La(D(a,".")?a.substring(1):"."+a);for(var d=0;d<b.length;d++)if(b[d].hash==c||b[d].hash==a)return b[d]};var od=new RegExp(/^https?:\/\/([^\/:]+)/),pd=/(.*)([?&#])(?:_ga=[^&#]*)(?:&?)(.*)/;function Bc(a){var b=a.get(Q);if(a.get(ja)){a=a.get(I);var c=Ic(a+b,0);return"_ga=2."+K(c+"."+a+"-"+b)}c=Ic(b,0);return"_ga=1."+K(c+"."+b)}function Ic(a,b){var c=new Date,d=O.navigator,e=d.plugins||[];a=[a,d.userAgent,c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b];for(b=0;b<e.length;++b)a.push(e[b].description);return La(a.join("."))}
function pa(a,b){var c=new Date,d=O.navigator;return La([a,d.userAgent,d.language||"",c.getTimezoneOffset(),c.getYear(),c.getDate(),c.getHours(),c.getMinutes()+b].join("."))}var Dc=function(a){J(48);this.target=a;this.T=!1};Dc.prototype.ca=function(a,b){if(a.tagName){if("a"==a.tagName.toLowerCase()){a.href&&(a.href=qd(this,a.href,b));return}if("form"==a.tagName.toLowerCase())return rd(this,a)}if("string"==typeof a)return qd(this,a,b)};
var qd=function(a,b,c){var d=pd.exec(b);d&&3<=d.length&&(b=d[1]+(d[3]?d[2]+d[3]:""));a=a.target.get("linkerParam");var e=b.indexOf("?"),d=b.indexOf("#");c?b+=(-1==d?"#":"&")+a:(c=-1==e?"?":"&",b=-1==d?b+(c+a):b.substring(0,d)+c+a+b.substring(d));return b=b.replace(/&+_ga=/,"&_ga=")},rd=function(a,b){if(b&&b.action)if("get"==b.method.toLowerCase()){a=a.target.get("linkerParam").split("=")[1];for(var c=b.childNodes||[],d=0;d<c.length;d++)if("_ga"==c[d].name){c[d].setAttribute("value",a);return}c=M.createElement("input");
c.setAttribute("type","hidden");c.setAttribute("name","_ga");c.setAttribute("value",a);b.appendChild(c)}else"post"==b.method.toLowerCase()&&(b.action=qd(a,b.action))};
Dc.prototype.S=function(a,b,c){function d(c){try{c=c||O.event;a:{var d=c.target||c.srcElement;for(c=100;d&&0<c;){if(d.href&&d.nodeName.match(/^a(?:rea)?$/i)){var g=d;break a}d=d.parentNode;c--}g={}}("http:"==g.protocol||"https:"==g.protocol)&&sd(a,g.hostname||"")&&g.href&&(g.href=qd(e,g.href,b))}catch(k){J(26)}}var e=this;this.T||(this.T=!0,L(M,"mousedown",d,!1),L(M,"keyup",d,!1));c&&L(M,"submit",function(b){b=b||O.event;if((b=b.target||b.srcElement)&&b.action){var c=b.action.match(od);c&&sd(a,c[1])&&
rd(e,b)}})};function sd(a,b){if(b==M.location.hostname)return!1;for(var c=0;c<a.length;c++)if(a[c]instanceof RegExp){if(a[c].test(b))return!0}else if(0<=b.indexOf(a[c]))return!0;return!1};var p=/^(GTM|OPT)-[A-Z0-9]+$/,q=/;_gaexp=[^;]*/g,r=/;((__utma=)|([^;=]+=GAX?\d+\.))[^;]*/g,t=function(a){function b(a,b){b&&(c+="&"+a+"="+K(b))}var c="https://www.google-analytics.com/gtm/js?id="+K(a.id);"dataLayer"!=a.B&&b("l",a.B);b("t",a.target);b("cid",a.ja);b("cidt",a.ka);b("gac",a.la);b("aip",a.ia);a.sync&&b("m","sync");b("cycle",a.G);a.qa&&b("gclid",a.qa);return c};var Jd=function(a,b,c){this.U=ed;this.aa=b;(b=c)||(b=(b=P(a,V))&&"t0"!=b?Wd.test(b)?"_gat_"+Cc(P(a,Na)):"_gat_"+Cc(b):"_gat");this.Y=b},Rd=function(a,b){var c=b.get(Wb);b.set(Wb,function(b){Pd(a,b,a.U);var d=c(b);Qd(a,b);return d});var d=b.get(Xb);b.set(Xb,function(b){var c=d(b);Id(a,b);return c})},Pd=function(a,b,c){b.get(c)||("1"==Ca(a.Y)[0]?b.set(c,"",!0):b.set(c,""+hd(),!0))},Qd=function(a,b){b.get(a.U)&&zc(a.Y,"1",b.get(Yb),b.get(W),b.get(Na),6E4)},Id=function(a,b){if(b.get(a.U)){var c=new ee,
d=function(a){$a(a).F&&c.set($a(a).F,b.get(a))};d(hb);d(ib);d(Na);d(Q);d(Ad);d(a.U);c.set($a(ld).F,Td(b));var e=a.aa;c.map(function(a,b){e+=K(a)+"=";e+=K(""+b)+"&"});e+="z="+hd();ta(e);b.set(a.U,"",!0)}},Wd=/^gtm\d+$/;var fd=function(a,b){a=a.b;if(!a.get("dcLoaded")){Nd(a,29);b=b||{};var c;b[U]&&(c=Cc(b[U]));b=new Jd(a,"https://stats.g.doubleclick.net/r/collect?t=dc&aip=1&_r=3&",c);Rd(b,a);a.set("dcLoaded",!0)}};var Sd=function(a){if(!a.get("dcLoaded")&&"cookie"==a.get(ac)){Nd(a,51);var b=new Jd(a);Pd(b,a,b.U);Pd(b,a,ia);Qd(b,a);a.get(b.U)&&(a.set(Md,1,!0),a.set(gd,oc()+"/r/collect",!0))}};var Lc=function(){var a=O.gaGlobal=O.gaGlobal||{};return a.hid=a.hid||hd()};var ad,bd=function(a,b,c){if(!ad){var d=M.location.hash;var e=O.name,g=/^#?gaso=([^&]*)/;if(e=(d=(d=d&&d.match(g)||e&&e.match(g))?d[1]:Ca("GASO")[0]||"")&&d.match(/^(?:!([-0-9a-z.]{1,40})!)?([-.\w]{10,1200})$/i))zc("GASO",""+d,c,b,a,0),window._udo||(window._udo=b),window._utcp||(window._utcp=c),a=e[1],wa("https://www.google.com/analytics/web/inpage/pub/inpage.js?"+(a?"prefix="+a+"&":"")+hd(),"_gasojs");ad=!0}};var H=function(a){return a?(1*a).toFixed(3):"0"},da=function(a){var b=O.performance;if(b&&b.getEntriesByName){J(35);var c="https://www.google-analytics.com/analytics.js?wpid="+a;wa(c,void 0,void 0,function(){try{var d=1,e=b.getEntriesByName("https://www.google-analytics.com/analytics.js");e&&0!=e.length||(e=b.getEntriesByName("http://www.google-analytics.com/analytics.js"),d=0);var g=b.getEntriesByName(c);if(e&&1==e.length&&g&&1==g.length){J(37);var ca=e[0],l=g[0],k={tid:a,ad:H(ca.duration),bd:H(l.duration),
ar:H(ca.responseEnd-ca.requestStart),br:H(l.responseEnd-l.requestStart),an:H(ca.domainLookupEnd-ca.domainLookupStart),bn:H(l.domainLookupEnd-l.domainLookupStart),ac:H(ca.connectEnd-ca.connectStart),bc:H(l.connectEnd-l.connectStart),as:d},d=[];d.push("_v=j54");d.push("id=10");for(var w in k)k.hasOwnProperty(w)&&d.push(w+"="+K(k[w]));d.push("z="+hd());wc("https://www.google-analytics.com/u/d",d.join("&"),ua)}}catch(ha){}})}};var wb=/^(UA|YT|MO|GP)-(\d+)-(\d+)$/,pc=function(a){function b(a,b){d.b.data.set(a,b)}function c(a,c){b(a,c);d.filters.add(a)}var d=this;this.b=new Ya;this.filters=new Ha;b(V,a[V]);b(Na,sa(a[Na]));b(U,a[U]);b(W,a[W]||xa());b(Yb,a[Yb]);b(Zb,a[Zb]);b($b,a[$b]);b(Wc,a[Wc]);b(bc,a[bc]);b(cc,a[cc]);b(Ka,a[Ka]);b(dc,a[dc]);b(ec,a[ec]);b(ac,a[ac]);b(Ad,a[Ad]);b(n,a[n]);b(ja,a[ja]);b(hb,1);b(ib,"j54");c(Qb,Ma);c(oa,ua);c(dd,cd);c(Rb,Oa);c(md,vb);c(Sb,nc);c(Uc,Yc);c(Tb,Ja);c(Vb,Ta);c(Vc,Hc);c(zd,yd);c(Ld,
Sd);c(Wb,Pa);c(Xb,Sa);c(Cd,Fd(this));Jc(this.b,a[Q]);Kc(this.b);this.b.set(jb,Lc());bd(this.b.get(Na),this.b.get(W),this.b.get(Yb));this.ra=new Od(1E4,!0,"gaexp10")},Jc=function(a,b){if("cookie"==P(a,ac)){hc=!1;var c=Ca(P(a,U));if(!(c=na(a,c))){var c=P(a,W),d=P(a,$b)||xa();c=Xc("__utma",d,c);void 0!=c?(J(10),c=c.O[1]+"."+c.O[2]):c=void 0}c&&(a.data.set(Q,c),c=Ca(P(a,la)),(c=na(a,c))&&a.data.set(I,c),hc=!0)}a:if(c=a.get(cc),c=E(M.location[c?"href":"search"],"_ga"))if(a.get(bc))if(d=c.indexOf("."),
-1==d)J(22);else{var e=c.substring(0,d),g=c.substring(d+1),d=g.indexOf("."),c=g.substring(0,d),g=g.substring(d+1);if("1"==e){if(d=g,c!=Ic(d,0)&&c!=Ic(d,-1)&&c!=Ic(d,-2)&&c!=pa(d,0)&&c!=pa(d,-1)&&c!=pa(d,-2)){J(23);break a}}else if("2"==e){e=g.split("-",2);d=e[1];if(c!=Ic(e[0]+d,0)&&c!=Ic(e[0]+d,-1)&&c!=Ic(e[0]+d,-2)&&c!=pa(e[0]+d,0)&&c!=pa(e[0]+d,-1)&&c!=pa(e[0]+d,-2)){J(53);break a}J(2);a.data.set(I,e[0])}else{J(22);break a}J(11);a.data.set(Q,d)}else J(21);b&&(J(9),a.data.set(Q,K(b)));a.get(Q)||
((b=(b=O.gaGlobal&&O.gaGlobal.vid)&&-1!=b.search(/^(?:utma\.)?\d+\.\d+$/)?b:void 0)?(J(17),a.data.set(Q,b)):(J(8),a.data.set(Q,ga())));a.data.set(ja,a.get(ja)||1==Ed(new Od(1,!0),void 0,La(a.get(Q))));a.get(ja)&&(b=P(a,U),a.data.set(la,"_ga"==b?"_gid":b+"_gid"));a.get(ja)&&!a.get(I)&&(J(3),a.data.set(I,ga()));mc(a)},Kc=function(a){var b=O.navigator,c=O.screen,d=M.location;a.set(lb,ya(a.get(ec)));if(d){var e=d.pathname||"";"/"!=e.charAt(0)&&(J(31),e="/"+e);a.set(kb,d.protocol+"//"+d.hostname+e+d.search)}c&&
a.set(qb,c.width+"x"+c.height);c&&a.set(pb,c.colorDepth+"-bit");var c=M.documentElement,g=(e=M.body)&&e.clientWidth&&e.clientHeight,ca=[];c&&c.clientWidth&&c.clientHeight&&("CSS1Compat"===M.compatMode||!g)?ca=[c.clientWidth,c.clientHeight]:g&&(ca=[e.clientWidth,e.clientHeight]);c=0>=ca[0]||0>=ca[1]?"":ca.join("x");a.set(rb,c);a.set(tb,fc());a.set(ob,M.characterSet||M.charset);a.set(sb,b&&"function"===typeof b.javaEnabled&&b.javaEnabled()||!1);a.set(nb,(b&&(b.language||b.browserLanguage)||"").toLowerCase());
if(d&&a.get(cc)&&(b=M.location.hash)){b=b.split(/[?&#]+/);d=[];for(c=0;c<b.length;++c)(D(b[c],"utm_id")||D(b[c],"utm_campaign")||D(b[c],"utm_source")||D(b[c],"utm_medium")||D(b[c],"utm_term")||D(b[c],"utm_content")||D(b[c],"gclid")||D(b[c],"dclid")||D(b[c],"gclsrc"))&&d.push(b[c]);0<d.length&&(b="#"+d.join("&"),a.set(kb,a.get(kb)+b))}};pc.prototype.get=function(a){return this.b.get(a)};pc.prototype.set=function(a,b){this.b.set(a,b)};
var qc={pageview:[mb],event:[ub,xb,yb,zb],social:[Bb,Cb,Db],timing:[Mb,Nb,Pb,Ob]};pc.prototype.send=function(a){if(!(1>arguments.length)){if("string"===typeof arguments[0]){var b=arguments[0];var c=[].slice.call(arguments,1)}else b=arguments[0]&&arguments[0][Va],c=arguments;b&&(c=za(qc[b]||[],c),c[Va]=b,this.b.set(c,void 0,!0),this.filters.D(this.b),this.b.data.m={},Ed(this.ra,this.b)&&da(this.b.get(Na)))}};
pc.prototype.ma=function(a,b){var c=this;u(a,c,b)||(v(a,function(){u(a,c,b)}),y(String(c.get(V)),a,void 0,b,!0))};var rc=function(a){if("prerender"==M.visibilityState)return!1;a();return!0},z=function(a){if(!rc(a)){J(16);var b=!1,c=function(){if(!b&&rc(a)){b=!0;var d=c,e=M;e.removeEventListener?e.removeEventListener("visibilitychange",d,!1):e.detachEvent&&e.detachEvent("onvisibilitychange",d)}};L(M,"visibilitychange",c)}};var td=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/,sc=function(a){if(ea(a[0]))this.u=a[0];else{var b=td.exec(a[0]);null!=b&&4==b.length&&(this.c=b[1]||"t0",this.K=b[2]||"",this.C=b[3],this.a=[].slice.call(a,1),this.K||(this.A="create"==this.C,this.i="require"==this.C,this.g="provide"==this.C,this.ba="remove"==this.C),this.i&&(3<=this.a.length?(this.X=this.a[1],this.W=this.a[2]):this.a[1]&&(qa(this.a[1])?this.X=this.a[1]:this.W=this.a[1])));b=a[1];a=a[2];if(!this.C)throw"abort";if(this.i&&(!qa(b)||""==b))throw"abort";
if(this.g&&(!qa(b)||""==b||!ea(a)))throw"abort";if(ud(this.c)||ud(this.K))throw"abort";if(this.g&&"t0"!=this.c)throw"abort";}};function ud(a){return 0<=a.indexOf(".")||0<=a.indexOf(":")};var Yd,Zd,$d,A;Yd=new ee;$d=new ee;A=new ee;Zd={ec:45,ecommerce:46,linkid:47};
var u=function(a,b,c){b==N||b.get(V);var d=Yd.get(a);if(!ea(d))return!1;b.plugins_=b.plugins_||new ee;if(b.plugins_.get(a))return!0;b.plugins_.set(a,new d(b,c||{}));return!0},y=function(a,b,c,d,e){if(!ea(Yd.get(b))&&!$d.get(b)){Zd.hasOwnProperty(b)&&J(Zd[b]);if(p.test(b)){J(52);a=N.j(a);if(!a)return!0;c=d||{};d={id:b,B:c.dataLayer||"dataLayer",ia:!!a.get("anonymizeIp"),na:e,G:!1};a.get("&gtm")==b&&(d.G=!0);var g=String(a.get("name"));"t0"!=g&&(d.target=g);G(String(a.get("trackingId")))||(d.ja=String(a.get(Q)),
d.ka=Number(a.get(n)),a=c.palindrome?r:q,a=(a=M.cookie.replace(/^|(; +)/g,";").match(a))?a.sort().join("").substring(1):void 0,d.la=a);a=d.B;c=(new Date).getTime();O[a]=O[a]||[];c={"gtm.start":c};e||(c.event="gtm.js");O[a].push(c);c=t(d)}!c&&Zd.hasOwnProperty(b)?(J(39),c=b+".js"):J(43);c&&(c&&0<=c.indexOf("/")||(c=(Ba||Ud()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+c),d=ae(c),a=d.protocol,c=M.location.protocol,("https:"==a||a==c||("http:"!=a?0:"http:"==c))&&B(d)&&(wa(d.url,void 0,
e),$d.set(b,!0)))}},v=function(a,b){var c=A.get(a)||[];c.push(b);A.set(a,c)},C=function(a,b){Yd.set(a,b);for(var c=A.get(a)||[],d=0;d<c.length;d++)c[d]();A.set(a,[])},B=function(a){var b=ae(M.location.href);if(D(a.url,"https://www.google-analytics.com/gtm/js?id="))return!0;if(a.query||0<=a.url.indexOf("?")||0<=a.path.indexOf("://"))return!1;if(a.host==b.host&&a.port==b.port)return!0;b="http:"==a.protocol?80:443;return"www.google-analytics.com"==a.host&&(a.port||b)==b&&D(a.path,"/plugins/")?!0:!1},
ae=function(a){function b(a){var b=(a.hostname||"").split(":")[0].toLowerCase(),c=(a.protocol||"").toLowerCase(),c=1*a.port||("http:"==c?80:"https:"==c?443:"");a=a.pathname||"";D(a,"/")||(a="/"+a);return[b,""+c,a]}var c=M.createElement("a");c.href=M.location.href;var d=(c.protocol||"").toLowerCase(),e=b(c),g=c.search||"",ca=d+"//"+e[0]+(e[1]?":"+e[1]:"");D(a,"//")?a=d+a:D(a,"/")?a=ca+a:!a||D(a,"?")?a=ca+e[2]+(a||g):0>a.split("/")[0].indexOf(":")&&(a=ca+e[2].substring(0,e[2].lastIndexOf("/"))+"/"+
a);c.href=a;d=b(c);return{protocol:(c.protocol||"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:c.search||"",url:a||""}};var Z={ga:function(){Z.f=[]}};Z.ga();Z.D=function(a){var b=Z.J.apply(Z,arguments),b=Z.f.concat(b);for(Z.f=[];0<b.length&&!Z.v(b[0])&&!(b.shift(),0<Z.f.length););Z.f=Z.f.concat(b)};Z.J=function(a){for(var b=[],c=0;c<arguments.length;c++)try{var d=new sc(arguments[c]);d.g?C(d.a[0],d.a[1]):(d.i&&(d.ha=y(d.c,d.a[0],d.X,d.W)),b.push(d))}catch(e){}return b};
var u=function(a,b,c){b==N||b.get(V);var d=Yd.get(a);if(!ea(d))return!1;b.plugins_=b.plugins_||new ee;if(b.plugins_.get(a))return!0;b.plugins_.set(a,new d(b,c||{}));return!0},y=function(a,b,c,d,e){if(!ea(Yd.get(b))&&!$d.get(b)){Zd.hasOwnProperty(b)&&J(Zd[b]);if(p.test(b)){J(52);a=N.j(a);if(!a)return!0;c=d||{};d={id:b,B:c.dataLayer||"dataLayer",ia:!!a.get("anonymizeIp"),sync:e,G:!1};a.get("&gtm")==b&&(d.G=!0);var g=String(a.get("name"));"t0"!=g&&(d.target=g);G(String(a.get("trackingId")))||(d.ja=String(a.get(Q)),
d.ka=Number(a.get(n)),c=c.palindrome?r:q,c=(c=M.cookie.replace(/^|(; +)/g,";").match(c))?c.sort().join("").substring(1):void 0,d.la=c,d.qa=E(a.b.get(kb)||"","gclid"));a=d.B;c=(new Date).getTime();O[a]=O[a]||[];c={"gtm.start":c};e||(c.event="gtm.js");O[a].push(c);c=t(d)}!c&&Zd.hasOwnProperty(b)?(J(39),c=b+".js"):J(43);c&&(c&&0<=c.indexOf("/")||(c=(Ba||Ud()?"https:":"http:")+"//www.google-analytics.com/plugins/ua/"+c),d=ae(c),a=d.protocol,c=M.location.protocol,("https:"==a||a==c||("http:"!=a?0:"http:"==
c))&&B(d)&&(wa(d.url,void 0,e),$d.set(b,!0)))}},v=function(a,b){var c=A.get(a)||[];c.push(b);A.set(a,c)},C=function(a,b){Yd.set(a,b);b=A.get(a)||[];for(var c=0;c<b.length;c++)b[c]();A.set(a,[])},B=function(a){var b=ae(M.location.href);if(D(a.url,"https://www.google-analytics.com/gtm/js?id="))return!0;if(a.query||0<=a.url.indexOf("?")||0<=a.path.indexOf("://"))return!1;if(a.host==b.host&&a.port==b.port)return!0;b="http:"==a.protocol?80:443;return"www.google-analytics.com"==a.host&&(a.port||b)==b&&
D(a.path,"/plugins/")?!0:!1},ae=function(a){function b(a){var b=(a.hostname||"").split(":")[0].toLowerCase(),c=(a.protocol||"").toLowerCase(),c=1*a.port||("http:"==c?80:"https:"==c?443:"");a=a.pathname||"";D(a,"/")||(a="/"+a);return[b,""+c,a]}var c=M.createElement("a");c.href=M.location.href;var d=(c.protocol||"").toLowerCase(),e=b(c),g=c.search||"",ca=d+"//"+e[0]+(e[1]?":"+e[1]:"");D(a,"//")?a=d+a:D(a,"/")?a=ca+a:!a||D(a,"?")?a=ca+e[2]+(a||g):0>a.split("/")[0].indexOf(":")&&(a=ca+e[2].substring(0,
e[2].lastIndexOf("/"))+"/"+a);c.href=a;d=b(c);return{protocol:(c.protocol||"").toLowerCase(),host:d[0],port:d[1],path:d[2],query:c.search||"",url:a||""}};var Z={ga:function(){Z.f=[]}};Z.ga();Z.D=function(a){var b=Z.J.apply(Z,arguments),b=Z.f.concat(b);for(Z.f=[];0<b.length&&!Z.v(b[0])&&!(b.shift(),0<Z.f.length););Z.f=Z.f.concat(b)};Z.J=function(a){for(var b,c=[],d=0;d<arguments.length;d++)try{b=new sc(arguments[d]),b.g?C(b.a[0],b.a[1]):(b.i&&(b.ha=y(b.c,b.a[0],b.X,b.W)),c.push(b))}catch(e){}return c};
Z.v=function(a){try{if(a.u)a.u.call(O,N.j("t0"));else{var b=a.c==gb?N:N.j(a.c);if(a.A)"t0"!=a.c||N.create.apply(N,a.a);else if(a.ba)N.remove(a.c);else if(b)if(a.i){if(a.ha&&(a.ha=y(a.c,a.a[0],a.X,a.W)),!u(a.a[0],b,a.W))return!0}else if(a.K){var c=a.C,d=a.a,e=b.plugins_.get(a.K);e[c].apply(e,d)}else b[a.C].apply(b,a.a)}}catch(g){}};var N=function(a){J(1);Z.D.apply(Z,[arguments])};N.h={};N.P=[];N.L=0;N.answer=42;var uc=[Na,W,V];N.create=function(a){var b=za(uc,[].slice.call(arguments));b[V]||(b[V]="t0");var c=""+b[V];if(N.h[c])return N.h[c];b=new pc(b);N.h[c]=b;N.P.push(b);return b};N.remove=function(a){for(var b=0;b<N.P.length;b++)if(N.P[b].get(V)==a){N.P.splice(b,1);N.h[a]=null;break}};N.j=function(a){return N.h[a]};N.getAll=function(){return N.P.slice(0)};
N.N=function(){"ga"!=gb&&J(49);var a=O[gb];if(!a||42!=a.answer){N.L=a&&a.l;N.loaded=!0;var b=O[gb]=N;X("create",b,b.create);X("remove",b,b.remove);X("getByName",b,b.j,5);X("getAll",b,b.getAll,6);b=pc.prototype;X("get",b,b.get,7);X("set",b,b.set,4);X("send",b,b.send);X("requireSync",b,b.ma);b=Ya.prototype;X("get",b,b.get);X("set",b,b.set);if(!Ud()&&!Ba){a:{for(var b=M.getElementsByTagName("script"),c=0;c<b.length&&100>c;c++){var d=b[c].src;if(d&&0==d.indexOf("https://www.google-analytics.com/analytics")){J(33);
b=!0;break a}}b=!1}b&&(Ba=!0)}Ud()||Ba||!Ed(new Od(1E4))||(J(36),Ba=!0);(O.gaplugins=O.gaplugins||{}).Linker=Dc;b=Dc.prototype;C("linker",Dc);X("decorate",b,b.ca,20);X("autoLink",b,b.S,25);C("displayfeatures",fd);C("adfeatures",fd);a=a&&a.q;ka(a)?Z.D.apply(N,a):J(50)}};N.da=function(){for(var a=N.getAll(),b=0;b<a.length;b++)a[b].get(V)};var H=N.N,I=O[gb];I&&I.r?H():z(H);z(function(){Z.D(["provide","render",ua])});function La(a){var b=1,c,d;if(a)for(b=0,d=a.length-1;0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c>>21:b;return b};})(window);
b=!0;break a}}b=!1}b&&(Ba=!0)}Ud()||Ba||!Ed(new Od(1E4))||(J(36),Ba=!0);(O.gaplugins=O.gaplugins||{}).Linker=Dc;b=Dc.prototype;C("linker",Dc);X("decorate",b,b.ca,20);X("autoLink",b,b.S,25);C("displayfeatures",fd);C("adfeatures",fd);a=a&&a.q;ka(a)?Z.D.apply(N,a):J(50)}};N.da=function(){for(var a=N.getAll(),b=0;b<a.length;b++)a[b].get(V)};var ra=N.N,va=O[gb];va&&va.r?ra():z(ra);z(function(){Z.D(["provide","render",ua])});function La(a){var b=1,c;if(a)for(b=0,c=a.length-1;0<=c;c--){var d=a.charCodeAt(c);b=(b<<6&268435455)+d+(d<<14);d=b&266338304;b=0!=d?b^d>>21:b}return b};})(window);

@@ -69,64 +69,2 @@ /**

it('supports removing the query string from the URL path', () => {
const url = 'https://example.com/foo/bar?q=qux&b=baz#hash';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(ga.run, 'require', 'cleanUrlTracker', {
stripQuery: true,
});
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(1));
const hits = log.getHits();
assert.strictEqual(hits[0].dl, url);
assert.strictEqual(hits[0].dp, '/foo/bar');
});
it('optionally adds the query string as a custom dimension', () => {
const url = 'https://example.com/foo/bar?q=qux&b=baz#hash';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(ga.run, 'require', 'cleanUrlTracker', {
stripQuery: true,
queryDimensionIndex: 1,
});
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(1));
const hits = log.getHits();
assert.strictEqual(hits[0].dl, url);
assert.strictEqual(hits[0].dp, '/foo/bar');
assert.strictEqual(hits[0].cd1, 'q=qux&b=baz');
});
it('adds the null dimensions when no query string is found', () => {
const url = 'https://example.com/foo/bar';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(ga.run, 'require', 'cleanUrlTracker', {
stripQuery: true,
queryDimensionIndex: 1,
});
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(1));
const hits = log.getHits();
assert.strictEqual(hits[0].dl, url);
assert.strictEqual(hits[0].dp, '/foo/bar');
assert.strictEqual(hits[0].cd1, constants.NULL_DIMENSION);
});
it('does not set a dimension if strip query is false', () => {
const url = 'https://example.com/foo/bar?q=qux&b=baz#hash';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(ga.run, 'require', 'cleanUrlTracker', {
stripQuery: false,
queryDimensionIndex: 1,
});
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(1));
const hits = log.getHits();
assert.strictEqual(hits[0].dl, url);
assert.strictEqual(hits[0].dp, '/foo/bar?q=qux&b=baz');
assert.strictEqual(hits[0].cd1, undefined);
});
it('cleans URLs in all hits, not just the initial pageview', () => {

@@ -180,72 +118,2 @@ const url = 'https://example.com/foo/bar?q=qux&b=baz#hash';

it('supports removing index filenames', () => {
const url = 'https://example.com/foo/bar/index.html?q=qux&b=baz#hash';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(ga.run, 'require', 'cleanUrlTracker', {
indexFilename: 'index.html',
});
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(1));
const hits = log.getHits();
assert.strictEqual(hits[0].dp, '/foo/bar/?q=qux&b=baz');
});
it('only removes index filenames at the end of the URL after a slash', () => {
const url = 'https://example.com/noindex.html';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(ga.run, 'require', 'cleanUrlTracker', {
indexFilename: 'index.html',
});
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(1));
const hits = log.getHits();
assert.strictEqual(hits[0].dp, '/noindex.html');
});
it('supports stripping trailing slashes', () => {
const url = 'https://example.com/foo/bar/';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(ga.run, 'require', 'cleanUrlTracker', {
trailingSlash: 'remove',
});
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(1));
const hits = log.getHits();
assert.strictEqual(hits[0].dp, '/foo/bar');
});
it('supports adding trailing slashes to non-filename URLs', () => {
const url = 'https://example.com/foo/bar?q=qux&b=baz#hash';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(ga.run, 'require', 'cleanUrlTracker', {
stripQuery: true,
queryDimensionIndex: 1,
trailingSlash: 'add',
});
browser.execute(ga.run, 'send', 'pageview');
browser.execute(ga.run, 'set', 'page', '/foo/bar.html');
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(2));
const hits = log.getHits();
assert.strictEqual(hits[0].dp, '/foo/bar/');
assert.strictEqual(hits[1].dp, '/foo/bar.html');
});
it('supports generically filtering all URL fields', () => {
const url = 'https://example.com/foo/bar?q=qux&b=baz#hash';
browser.execute(ga.run, 'set', 'location', url);
browser.execute(requireCleanUrlTracker_urlFieldsFilter);
browser.execute(ga.run, 'send', 'pageview');
browser.waitUntil(log.hitCountEquals(1));
const hits = log.getHits();
assert.strictEqual(hits[0].dl,
'https://example.io/foo/bar?q=qux&b=baz#hash');
assert.strictEqual(hits[0].dp, '/foo/bar');
});
it('works with many options in conjunction with each other', () => {

@@ -261,3 +129,3 @@ const url = 'https://example.com/path/to/index.html?q=qux&b=baz#hash';

'https://example.io/path/to/index.html?q=qux&b=baz#hash');
assert.strictEqual(hits[0].dp, '/path/to');
assert.strictEqual(hits[0].dp, '/path/to?q=qux');
assert.strictEqual(hits[0].cd1, 'q=qux&b=baz');

@@ -311,27 +179,6 @@ });

*/
function requireCleanUrlTracker_urlFieldsFilter() {
ga('require', 'cleanUrlTracker', {
urlFieldsFilter: (fieldsObj, parseUrl) => {
fieldsObj.page = parseUrl(fieldsObj.location).pathname;
const url = parseUrl(fieldsObj.location);
if (url.hostname == 'example.com') {
fieldsObj.location =
`${url.protocol}//example.io` +
`${url.pathname}${url.search}${url.hash}`;
}
return fieldsObj;
},
});
}
/**
* Since function objects can't be passed via parameters from server to
* client, this one-off function must be used to set the value for
* `urlFieldsFilter`.
*/
function requireCleanUrlTracker_multipleOpts() {
ga('require', 'cleanUrlTracker', {
stripQuery: true,
queryParamsWhitelist: ['q', 's'],
queryDimensionIndex: 1,

@@ -338,0 +185,0 @@ indexFilename: 'index.html',

@@ -28,3 +28,3 @@ /**

const SESSION_TIMEOUT_IN_MINUTES = (1/60) * 3; // 3 seconds
const VISIBLE_THRESHOLD = 2000; // 2 seconds
const VISIBLE_THRESHOLD = 4000; // 4 seconds

@@ -31,0 +31,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc