!function(){function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}System.register(["./usage-legacy.03fd855f.js"],(function(){"use strict";var t,n,a,r,h;return{setters:[function(e){t=e.p,n=e.t,a=e.a,r=e.b,h=e.c}],execute:function(){var o=[],s=function(){function t(i,n){var a=this;e(this,t),this.context=i,this.methodName=n,this.isTask=/Task$/.test(n),this.originalMethodReference=this.isTask?i.get(n):i[n],this.methodChain=[],this.boundMethodChain=[],this.wrappedMethod=function(){var e=a.boundMethodChain[a.boundMethodChain.length-1];return e.apply(void 0,arguments)},this.isTask?i.set(n,this.wrappedMethod):i[n]=this.wrappedMethod}return i(t,[{key:"add",value:function(e){this.methodChain.push(e),this.rebindMethodChain()}},{key:"remove",value:function(e){var t=this.methodChain.indexOf(e);t>-1&&(this.methodChain.splice(t,1),this.methodChain.length>0?this.rebindMethodChain():this.destroy())}},{key:"rebindMethodChain",value:function(){this.boundMethodChain=[];for(var e,t=0;e=this.methodChain[t];t++){var i=this.boundMethodChain[t-1]||this.originalMethodReference.bind(this.context);this.boundMethodChain.push(e(i))}}},{key:"destroy",value:function(){var e=o.indexOf(this);e>-1&&(o.splice(e,1),this.isTask?this.context.set(this.methodName,this.originalMethodReference):this.context[this.methodName]=this.originalMethodReference)}}],[{key:"add",value:function(e,t,i){d(e,t).add(i)}},{key:"remove",value:function(e,t,i){d(e,t).remove(i)}}]),t}();function d(e,t){var i=o.filter((function(i){return i.context==e&&i.methodName==t}))[0];return i||(i=new s(e,t),o.push(i)),i}var u=function(){function t(i,h){if(e(this,t),n(i,a.URL_CHANGE_TRACKER),history.pushState&&window.addEventListener){var o={shouldTrackUrlChange:this.shouldTrackUrlChange,trackReplaceState:!1,fieldsObj:{},hitFilter:null};this.opts=r(o,h),this.tracker=i,this.path=c(),this.pushStateOverride=this.pushStateOverride.bind(this),this.replaceStateOverride=this.replaceStateOverride.bind(this),this.handlePopState=this.handlePopState.bind(this),s.add(history,"pushState",this.pushStateOverride),s.add(history,"replaceState",this.replaceStateOverride),window.addEventListener("popstate",this.handlePopState)}}return i(t,[{key:"pushStateOverride",value:function(e){var t=this;return function(){e.apply(void 0,arguments),t.handleUrlChange(!0)}}},{key:"replaceStateOverride",value:function(e){var t=this;return function(){e.apply(void 0,arguments),t.handleUrlChange(!1)}}},{key:"handlePopState",value:function(){this.handleUrlChange(!0)}},{key:"handleUrlChange",value:function(e){var t=this;setTimeout((function(){var i=t.path,n=c();if(i!=n&&t.opts.shouldTrackUrlChange.call(t,n,i)&&(t.path=n,t.tracker.set({page:n,title:document.title}),e||t.opts.trackReplaceState)){t.tracker.send("pageview",h({transport:"beacon"},t.opts.fieldsObj,t.tracker,t.opts.hitFilter))}}),0)}},{key:"shouldTrackUrlChange",value:function(e,t){return!(!e||!t)}},{key:"remove",value:function(){s.remove(history,"pushState",this.pushStateOverride),s.remove(history,"replaceState",this.replaceStateOverride),window.removeEventListener("popstate",this.handlePopState)}}]),t}();function c(){return location.pathname+location.search}t("urlChangeTracker",u)}}}))}();
