/* * Copyright (c) 2011, Yahoo! Inc. All rights reserved. * Copyright (c) 2011-2012, Log-Normal, Inc. All rights reserved. * Copyright (c) 2012-2017, SOASTA, Inc. All rights reserved. * Copyright (c) 2017, Akamai Technologies, Inc. All rights reserved. * Copyrights licensed under the BSD License. See the accompanying LICENSE.txt file for terms. */ /* JavaScript MD5 1.0.1 Copyright 2011, Sebastian Tschan. Licensed under the MIT license. */ /* Boomerang Version: 1.669.0 034cc27e2ea42b3553cf8df5638c4554df1f5df2 */ BOOMR_start=(new Date).getTime();function BOOMR_check_doc_domain(e){if(window){if(!e){if(window.parent===window||!document.getElementById("boomr-if-as"))return;if(window.BOOMR&&BOOMR.boomerang_frame&&BOOMR.window)try{BOOMR.boomerang_frame.document.domain!==BOOMR.window.document.domain&&(BOOMR.boomerang_frame.document.domain=BOOMR.window.document.domain)}catch(t){BOOMR.isCrossOriginError(t)||BOOMR.addError(t,"BOOMR_check_doc_domain.domainFix")}e=document.domain}if(e&&-1!==e.indexOf(".")&&window.parent){try{window.parent.document;return}catch(t){try{document.domain=e}catch(n){return}}try{window.parent.document;return}catch(t){e=e.replace(/^[\w\-]+\./,"")}BOOMR_check_doc_domain(e)}}}BOOMR_check_doc_domain();!function(c){var d,t,u,o,s,e,a,n=c;c.parent!==c&&document.getElementById("boomr-if-as")&&"script"===document.getElementById("boomr-if-as").nodeName.toLowerCase()&&(c=c.parent);u=c.document;c.BOOMR||(c.BOOMR={});BOOMR=c.BOOMR;if(!BOOMR.version){BOOMR.version="1.669.0";BOOMR.window=c;BOOMR.boomerang_frame=n;BOOMR.plugins||(BOOMR.plugins={});!function(){try{new c.CustomEvent("CustomEvent")!==undefined&&(o=function(e,t){return new c.CustomEvent(e,t)})}catch(e){}try{!o&&u.createEvent&&u.createEvent("CustomEvent")&&(o=function(e,t){var n=u.createEvent("CustomEvent");t=t||{cancelable:!1,bubbles:!1};n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail);return n})}catch(e){}!o&&u.createEventObject&&(o=function(e,t){var n=u.createEventObject();n.type=n.propertyName=e;n.detail=t.detail;return n});o||(o=function(){return undefined})}();s=function(e,t,n){var r=o(e,{detail:t});r&&(n?BOOMR.setImmediate(i):i());function i(){try{u.dispatchEvent?u.dispatchEvent(r):u.fireEvent&&u.fireEvent("onpropertychange",r)}catch(e){}}};if("undefined"!=typeof u.hidden){e="visibilityState";a="visibilitychange"}else if("undefined"!=typeof u.mozHidden){e="mozVisibilityState";a="mozvisibilitychange"}else if("undefined"!=typeof u.msHidden){e="msVisibilityState";a="msvisibilitychange"}else if("undefined"!=typeof u.webkitHidden){e="webkitVisibilityState";a="webkitvisibilitychange"}d={beacon_url:"",beacon_url_force_https:!0,beacon_urls_allowed:["^//[a-z0-9]+\\.akstat\\.io/?$"],beacon_type:"AUTO",beacon_auth_key:"Authorization",beacon_auth_token:undefined,beacon_with_credentials:!1,beacon_disable_sendbeacon:!1,site_domain:c.location.hostname.replace(/.*?([^.]+\.[^.]+)\.?$/,"$1").toLowerCase(),user_ip:"",autorun:!0,hasSentPageLoadBeacon:!1,r:undefined,events:{page_ready:[],page_unload:[],before_unload:[],dom_loaded:[],visibility_changed:[],prerender_to_visible:[],before_beacon:[],beacon:[],page_load_beacon:[],xhr_load:[],click:[],form_submit:[],config:[],xhr_init:[],spa_init:[],spa_navigation:[],spa_cancel:[],xhr_send:[],xhr_error:[],error:[],netinfo:[],rage_click:[],before_early_beacon:[]},public_events:{before_beacon:"onBeforeBoomerangBeacon",beacon:"onBoomerangBeacon",onboomerangloaded:"onBoomerangLoaded"},translate_events:{onbeacon:"beacon",onconfig:"config",onerror:"error",onxhrerror:"xhr_error"},unloadEventsCount:0,unloadEventCalled:0,listenerCallbacks:{},vars:{},singleBeaconVars:{},varPriority:{"-1":{},1:{}},errors:{},disabled_plugins:{},localStorageSupported:!1,LOCAL_STORAGE_PREFIX:"_boomr_",nativeOverwrites:[],xb_handler:function(n){return function(e){var t;e||(e=c.event);e.target?t=e.target:e.srcElement&&(t=e.srcElement);3===t.nodeType&&(t=t.parentNode);t&&t.nodeName&&"OBJECT"===t.nodeName.toUpperCase()&&"application/x-shockwave-flash"===t.type||d.fireEvent(n,t)}},clearEvents:function(){var e;for(e in this.events)this.events.hasOwnProperty(e)&&(this.events[e]=[])},clearListeners:function(){var e;for(e in d.listenerCallbacks)if(d.listenerCallbacks.hasOwnProperty(e))for(;d.listenerCallbacks[e].length;)BOOMR.utils.removeListener(d.listenerCallbacks[e][0].el,e,d.listenerCallbacks[e][0].fn);d.listenerCallbacks={}},fireEvent:function(e,t){var n,r,i,o;e=e.toLowerCase();this.translate_events[e]&&(e=this.translate_events[e]);if(this.events.hasOwnProperty(e)){this.public_events.hasOwnProperty(e)&&s(this.public_events[e],t);i=this.events[e];"before_beacon"!==e&&"beacon"!==e&&"before_early_beacon"!==e&&BOOMR.real_sendBeacon();o=i.length;for(n=0;n")}for(n=0;n=n.expires){this.removeLocalStorage(e);return undefined}return n.items},setLocalStorage:function(e,t,n){var r,i,o;if(!e||!d.localStorageSupported||"object"!=typeof t)return!1;r={items:t};"number"==typeof n&&(r.expires=BOOMR.now()+1e3*n);if((i=c.JSON.stringify(r)).length<5e4){try{c.localStorage.setItem(d.LOCAL_STORAGE_PREFIX+e,i);if(i===(o=c.localStorage.getItem(d.LOCAL_STORAGE_PREFIX+e)))return!0}catch(a){}BOOMR.warn("Saved storage value doesn't match what we tried to set:\n"+i+"\n"+o)}else BOOMR.warn("Storage items too large: "+i.length+" "+i);return!1},removeLocalStorage:function(e){if(!e||!d.localStorageSupported)return!1;try{c.localStorage.removeItem(d.LOCAL_STORAGE_PREFIX+e);return!0}catch(t){}return!1},cleanupURL:function(e,t){if(!e||BOOMR.utils.isArray(e))return"";d.strip_query_string&&(e=e.replace(/\?.*/,"?qs-redacted"));if(void 0!==t&&e&&e.length>t){var n=e.indexOf("?");e=-1!==n&&nBOOMR.constants.MAX_GET_LENGTH&&(window.console&&(console.warn||console.log)||function(){})("Boomerang: Warning: Beacon may not be sent via GET due to payload size > 2000 bytes")}else("POST"===d.beacon_type||r.length>BOOMR.constants.MAX_GET_LENGTH)&&(s=!1);if(c&&c.navigator&&"function"==typeof c.navigator.sendBeacon&&BOOMR.utils.isNative(c.navigator.sendBeacon)&&"function"==typeof c.Blob&&"GET"!==d.beacon_type&&"undefined"==typeof d.beacon_auth_token&&!d.beacon_disable_sendbeacon){var u=new c.Blob([n+"&sb=1"],{type:"application/x-www-form-urlencoded"});if(c.navigator.sendBeacon(d.beacon_url,u))return!0}BOOMR.orig_XMLHttpRequest||c&&c.XMLHttpRequest||(s=!0);if(s){try{i=new Image}catch(l){return!1}i.src=r}else{o=new(BOOMR.window.orig_XMLHttpRequest||BOOMR.orig_XMLHttpRequest||BOOMR.window.XMLHttpRequest);try{this.sendXhrPostBeacon(o,n)}catch(l){o=new BOOMR.boomerang_frame.XMLHttpRequest;this.sendXhrPostBeacon(o,n)}}return!0},hasSentPageLoadBeacon:function(){return d.hasSentPageLoadBeacon},sendXhrPostBeacon:function(e,t){e.open("POST",d.beacon_url);e.setRequestHeader("Content-type","application/x-www-form-urlencoded");if("undefined"!=typeof d.beacon_auth_token){"undefined"==typeof d.beacon_auth_key&&(d.beacon_auth_key="Authorization");e.setRequestHeader(d.beacon_auth_key,d.beacon_auth_token)}d.beacon_with_credentials&&(e.withCredentials=!0);e.send(t)},getVarsOfPriority:function(e,t){var n,r=[],i=0!==t?d.varPriority[t]:e;for(n in i)if(i.hasOwnProperty(n)&&e.hasOwnProperty(n)){r.push(this.getUriEncodedVar(n,"undefined"==typeof e[n]?"":e[n]));0!==t&&delete e[n]}return r},getUriEncodedVar:function(e,t){t!==undefined&&null!==t||(t="");"object"==typeof t&&(t=BOOMR.utils.serializeForUrl(t));return encodeURIComponent(e)+"="+encodeURIComponent(t)},getResourceTiming:function(e,t,n){var r,i=BOOMR.getPerformance();try{if(i&&"function"==typeof i.getEntriesByName){if(!(r=i.getEntriesByName(e))||!r.length)return;if(!("function"!=typeof n||(r=BOOMR.utils.arrayFilter(r,n))&&r.length))return;1_.logMaxEntries&&Array.prototype.splice.call(a,0,a.length-_.logMaxEntries)},increment:function h(e,t,n){void 0===n&&(n=d());void 0===t&&(t=1);if(c[e]){c[e][n]||(c[e][n]=0);c[e][n]+=t}},getTimeBucket:d,getStats:function g(e,t){var n,r=0,i=0,o=Infinity,a=0,s=Math.floor((t-l)/y);if(!c[e])return 0;for(var u in c[e])if(s<=(u=parseInt(u,10))&&c[e].hasOwnProperty(u)){r++;i+=n=c[e][u];o=Math.min(o,n);a=Math.max(a,n)}return{total:i,count:r,min:o,max:a}},analyze:function R(e){var t=d(),n=0,r=0;_.sendLog&&void 0!==e&&function i(){for(var e="",t=0;ts){i.log(0,t,{y:n});l=n}o.interact("scroll",t,e);c+=Math.round(r/h*100);d+=Math.round(r/h*100);u=n}},a=function(e,o,a){o.register("click",b);var s=10,u=3,l=0,c=0,d=0,f=0,p=0,O=null;function t(e){var t=BOOMR.now(),n=e.clientX,r=e.clientY;l++;var i=Math.round(Math.sqrt(Math.pow(p-r,2)+Math.pow(f-n,2)));if(O===e.target||i<=s){if(u<=++c+1){d++;BOOMR.fireEvent("rage_click",e)}}else c=0;f=n;p=r;O=e.target;o.increment("click");o.log(1,t,{x:n,y:r});a.interact("click",t,e)}T.clicksCount=function(){return l};T.clicksRage=function(){return d};BOOMR.utils.addListener(e.document,"click",t,!0);return{analyze:function n(e){_.addToBeacon("c.c",T.clicksCount());_.addToBeacon("c.c.r",T.clicksRage())},stop:function r(){BOOMR.utils.removeListener(e.document,"click",t)},onBeacon:function i(){d=c=l=0}}},s=function(e,n,r){n.register("key",b);var i=0,o=0;function t(e){var t=BOOMR.now();i++;27===e.keyCode&&o++;n.increment("key");n.log(3,t);r.interact("key",t,e)}T.keyCount=function(){return i};T.keyEscapes=function(){return o};BOOMR.utils.addListener(e.document,"keydown",t,!0);return{analyze:function a(e){_.addToBeacon("c.k",T.keyCount());_.addToBeacon("c.k.e",T.keyEscapes())},stop:function s(){BOOMR.utils.removeListener(e.document,"keydown",t)},onBeacon:function u(){o=i=0}}},u=function(e,o,t){o.register("mouse",b);o.register("mousepct",w);var a=0,s=0,n=0,r=0,u=0,l=0,c=0,i=!1,d=!1,f=Math.round(Math.sqrt(Math.pow(BOOMR.utils.windowHeight(),2)+Math.pow(BOOMR.utils.windowWidth(),2)));function p(e){BOOMR.now();var t=e.clientX,n=e.clientY,r=Math.round(Math.sqrt(Math.pow(s-n,2)+Math.pow(a-t,2))),i=Math.round(r/f*100);u+=i;l+=i;c+=r;a=t;s=n;o.increment("mouse",r)}T.mousePct=function(){return l};T.mousePixels=function(){return c};i=setInterval(function O(){var e=Math.min(u,100);0!==e&&o.set("mousepct",e);u=0},y);d=setInterval(function m(){if((n!==a||r!==s)&&10<=Math.round(Math.sqrt(Math.pow(r-s,2)+Math.pow(n-a,2)))){o.log(2,BOOMR.now(),{x:a,y:s});n=a;r=s}},250);BOOMR.utils.addListener(e.document,"mousemove",p,!0);return{analyze:function h(e){_.addToBeacon("c.m.p",T.mousePct());_.addToBeacon("c.m.n",T.mousePixels())},stop:function g(){if(i){clearInterval(i);i=!1}if(d){clearInterval(d);d=!1}BOOMR.utils.removeListener(e.document,"mousemove",p)},onBeacon:function R(){c=l=0}}},l=function(e,i,t){i.register("inter",b);i.register("interdly",b);var o=t,a=0,s=null,u=0,l=0,c=0,d=0,f=!0,p=0,O=0,m=!1,h=!1,g=!1;function n(){if(m){clearTimeout(m);m=!1}if(h){clearTimeout(h);h=!1}}function R(){BOOMR.sendBeaconWhenReady({"rt.start":"manual","http.initiator":"interaction","rt.tstart":p,"rt.end":O},function(){n();BOOMR.fireEvent("interaction")},_)}T.interactionDelayed=function(){return c};T.interactionDelayedTime=function(){return Math.ceil(d)};T.interactionAvgDelay=function(){if(0_.waitAfterOnload){_.complete=!0;BOOMR.sendBeacon()}else{_.timeline.analyze();if(T.timeToInteractive()){_.complete=!0;BOOMR.sendBeacon()}else setTimeout(t,500)}},500)}else _.complete=!0},addToBeacon:function(e,t,n){if(0!==t&&void 0!==t||n){BOOMR.addVar(e,t);_.addedVars.push(e)}else BOOMR.removeVar(e)}};BOOMR.plugins.Continuity={init:function(e){BOOMR.utils.pluginConfig(_,e,"Continuity",["monitorLongTasks","monitorPageBusy","monitorFrameRate","monitorInteractions","monitorStats","afterOnload","afterOnloadMaxLength","afterOnloadMinWait","waitAfterOnload","ttiWaitForFrameworkReady","ttiWaitForHeroImages","sendLog","logMaxEntries","sendTimeline"]);if(_.initialized)return this;_.initialized=!0;_.timeline=new t(BOOMR.now());if(BOOMR.window){if(_.monitorLongTasks&&BOOMR.window.PerformanceObserver&&BOOMR.window.PerformanceLongTaskTiming){_.longTaskMonitor=new n(BOOMR.window,_.timeline);_.ttiMethod="lt"}if(_.monitorFrameRate&&"function"==typeof BOOMR.window.requestAnimationFrame){_.frameRateMonitor=new i(BOOMR.window,_.timeline);_.ttiMethod||(_.ttiMethod="raf")}if(_.monitorPageBusy&&(!BOOMR.window.PerformanceObserver||!BOOMR.window.PerformanceLongTaskTiming||!_.monitorLongTasks)){_.pageBusyMonitor=new r(BOOMR.window,_.timeline);_.ttiMethod||(_.ttiMethod="b")}if(_.monitorInteractions){_.interactionMonitor=new l(BOOMR.window,_.timeline,_.afterOnloadMinWait);_.scrollMonitor=new o(BOOMR.window,_.timeline,_.interactionMonitor);_.keyMonitor=new s(BOOMR.window,_.timeline,_.interactionMonitor);_.clickMonitor=new a(BOOMR.window,_.timeline,_.interactionMonitor);_.mouseMonitor=new u(BOOMR.window,_.timeline,_.interactionMonitor);_.visibilityMonitor=new c(BOOMR.window,_.timeline,_.interactionMonitor);_.orientationMonitor=new d(BOOMR.window,_.timeline,_.interactionMonitor)}_.monitorStats&&(_.statsMonitor=new f(BOOMR.window,_.timeline,_.interactionMonitor))}BOOMR.addVar("c.e",S.toString(36));BOOMR.addVar("c.tti.m",_.ttiMethod);BOOMR.subscribe("before_beacon",_.onBeforeBeacon,null,_);BOOMR.subscribe("beacon",_.onBeacon,null,_);BOOMR.subscribe("page_ready",_.onPageReady,null,_);BOOMR.subscribe("xhr_load",_.onXhrLoad,null,_);return this},is_complete:function(e){return _.complete||e&&("error"===e["http.initiator"]||"undefined"!=typeof e.early)},frameworkReady:function(){_.frameworkReady=BOOMR.now()},metrics:T}}}();!function(){var p,f,O,s,m,h;if(!BOOMR.plugins.PageParams){var e=/(-?(?:[1-9][\d,]*)?[0-9](?:\.\d+)?)/,o=["img","iframe","script","link","object","svg","video"],r={name:1,"honorific-prefix":1,"given-name":1,"additional-name":1,"family-name":1,"honorific-suffix":1,username:1,"new-password":1,"current-password":1,"street-address":1,country:1,"country-name":1,"postal-code":1,email:1,tel:1},i=["cc-","address-","tel-"],n=[/(?:3[47][0-9]{13})/,/(?:3(?:0[0-5]|[68][0-9])[0-9]{11})/,/(?:6(?:011|5[0-9]{2})(?:[0-9]{12}))/,/(?:(?:2131|1800|35\d{3})\d{11})/,/(?:(?:5[0678]\d\d|6304|6390|67\d\d)\d{8,15})/,/(?:(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12})/,/(?:4[0-9]{12})(?:[0-9]{3})?/,/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/],g=function(){return{pageGroups:{varname:"h.pg",stopOnFirst:!0,isDimension:!0},abTests:{varname:"h.ab",stopOnFirst:!0,isDimension:!0},customMetrics:{cleanUpRE:e},customDimensions:{sanitizeRE:/[^\w\. \-]/g,isDimension:!0},customTimers:{cleanUpRE:e,method:BOOMR.plugins.RT&&BOOMR.plugins.RT.setTimer,ctx:BOOMR.plugins.RT,preProcessor:function(e){return Math.round("number"==typeof e?e:parseFloat(e,10))}}}},a=["src","href","data","codebase"],u={".,":e},l={".":/\./g,",":/,/g," ":/ /g,"'":/'/g};(h=function(e){this.varname=e.varname;this.method=e.method||BOOMR.addVar;this.ctx=e.ctx||BOOMR;this.preProcessor=e.preProcessor;this.sanitizeRE=e.sanitizeRE||/[^\w \-]/g;this.cleanUpRE=e.cleanUpRE;this.resourceTime={};this.resources=[];this.RTSupport=!1;this.MOSupport=!1;return this}).prototype={apply:function(e){this.preProcessor&&(e=this.preProcessor(e));if(!e&&0!==e)return!1;"function"==typeof this.method&&this.method.call(this.ctx,this.varname,e);return!0},handle:function(e,t,n){var r=this;if(!this.isValid(e))return!1;e.label&&("ResourceGroup"===e.type&&m.resourceGroupHandlers[e.label]?r=m.resourceGroupHandlers[e.label]:(r=new h(this)).varname=e.label);return r[e.type](e,t,n)},isValid:function(e){return e&&"object"==typeof e&&e.hasOwnProperty("type")&&"function"==typeof this[e.type]&&(this.varname||e.label)},cleanUp:function(e,t){var n,r,i,o,a=this.cleanUpRE;if(!e)return e;if(a){r=t&&t.decimal?t.decimal:m.defaultDecimal;i=t&&t.thousands?t.thousands:m.defaultThousands;if(("."!==r||","!==i)&&void 0===(a=u[o=r+i])){a=new RegExp("(-?(?:[1-9][\\d"+i+"]*)?[0-9](?:\\"+r+"\\d+)?)");u[o]=a}if((n=e.match(a))&&1o.duration)&&(o=a[i]);else if(a[i].name&&this.checkURLPattern(e,a[i].name,!1)){d.push(a[i]);if(r&&d.length===r)return d}if(t.frames){u=function f(e){try{return e.frames.length}catch(t){return 0}}(t);for(s=0;so.duration)&&(o=l[i]);else{d.push(l[i]);if(r&&d.length===r)return d}}return o?[o]:d},UserTiming:function(e){var t,n;if(!e.parameter2)return!1;if(!s||"function"!=typeof s.getEntriesByType)return!1;if(!this.checkURLPattern(e.parameter1))return!1;t=s.getEntriesByType("mark");for(n=0;t&&ne[r])&&(this.resourceTime.start=e[r]):this.resourceTime.start=m.deltaFromNavStart;(!this.resourceTime.stop||this.resourceTime.stopi.loadEnd&&(i.loadEnd=t.loadEnd);i.checkCompleteness()}}},onIFrameMessageAsChild:function(e){var t;if(e&&e.data&&"string"==typeof e.data&&"{"===e.data.charAt(0)&&e.source){try{t=JSON.parse(e.data)}catch(n){return}if(t.msg===i.messages.startACK){clearInterval(i.loadingIntervalID);i.loadingIntervalID=undefined}else if(t.msg===i.messages.doneACK){clearInterval(i.loadedIntervalID);i.loadedIntervalID=undefined}}},checkCompleteness:function(){if(i.is_complete()){BOOMR.addVar("ifdl.done",BOOMR.now());BOOMR.addVar("ifdl.ct",i.finishedCount);BOOMR.addVar("ifdl.r",i.runningCount);BOOMR.addVar("ifdl.mon",i.monitoredCount);BOOMR.hasBrowserOnloadFired()?BOOMR.page_ready(0=i.monitoredCount&&0===i.runningCount}};BOOMR.plugins.IFrameDelay={init:function(e){BOOMR.utils.pluginConfig(i,e,"IFrameDelay",["enabled","registerParent","monitoredCount"]);if(i.initialized)return this;i.initialized=!0;if(this.is_supported())if(i.registerParent){BOOMR.utils.addListener(window,"message",i.onIFrameMessageAsChild);function t(){r.parent.postMessage(JSON.stringify({msg:i.messages.start,pid:BOOMR.pageId}),"*")}t();i.loadingIntervalID=setInterval(t,250);BOOMR.subscribe("page_load_beacon",function(e){var t;t=e&&e["rt.end"]?e["rt.end"]:BOOMR.now();function n(){i.loadingIntervalID||r.parent.postMessage(JSON.stringify({msg:i.messages.done,pid:BOOMR.pageId,loadEnd:t}),"*")}n();i.loadedIntervalID=setInterval(n,250)})}else if(!i.registerParent&&i.monitoredCount&&0i){n[o].responseStart=i;n[o].responseEnd=i}else n[o].responseEnd>i&&(n[o].responseEnd=i);var a=Math.round(BOOMR.plugins.ResourceTiming.calculateResourceTimingUnion(n)),s=r-a;if(a<0||r<0||s<0){BOOMR.addError("Incorrect SPA time calculation");return}e.timers={t_resp:a,t_page:s,t_done:r}}};u.prototype.setTimeout=function(e,t){var n=this;if(e){this.clearTimeout(t);this.timer=setTimeout(function(){n.timedout(t)},e)}};u.prototype.timedout=function(e){var t;this.clearTimeout(e);if((t=this.pending_events[e])&&0===t.nodes_to_wait){if("click"===t.type&&(0===t.total_nodes||!t.resource.url)){this.watch--;this.pending_events[e]=undefined}this.sendEvent(e)}};u.prototype.clearTimeout=function(e){if(this.timer&&e===this.pending_events.length-1){clearTimeout(this.timer);this.timer=null}};u.prototype.load_cb=function(e,t){var n,r,i=BOOMR.now();if((n=e.target||e.srcElement)&&n._bmr){r=n._bmr.idx;t=void 0!==t?t:n._bmr.res||0;if(!n._bmr.end[t]){n._bmr.end[t]=i;this.load_finished(r,i)}}};u.prototype.monitorMO=function(e){var t=this.pending_events[e];t&&delete t.ignoreMO};u.prototype.load_finished=function(e,t){var n=this.pending_events[e];if(n){n.nodes_to_wait--;if(0===n.nodes_to_wait){n.resource.timing.loadEventEnd=t||BOOMR.now();if(e===this.pending_events.length-1)if(BOOMR.utils.inArray(n.type,BOOMR.constants.BEACON_TYPE_SPAS)){if(!n.firedEarlyBeacon&&BOOMR.plugins.Early&&BOOMR.plugins.Early.is_supported()){if(this.timerEarlyBeacon){clearTimeout(this.timerEarlyBeacon);this.timerEarlyBeacon=null}this.timerEarlyBeacon=setTimeout(function(){d.timerEarlyBeacon=null;if(!n.firedEarlyBeacon&&0===n.nodes_to_wait){n.firedEarlyBeacon=!0;BOOMR.plugins.Early.sendEarlyBeacon(n.resource,n.type)}},100)}this.setTimeout(m.spaIdleTimeout,e)}else this.setTimeout(m.xhrIdleTimeout,e);else this.sendEvent(e)}}};u.prototype.wait_for_node=function(t,n){var e,r,i,o,a,s,u,l,c,d=this,f=!1,p=!1;if(t&&t.nodeName&&(t.nodeName.toUpperCase().match(/^(IMG|IFRAME|IMAGE)$/)||"LINK"===t.nodeName.toUpperCase()&&t.rel&&t.rel.match(/\bstylesheet\b/i))){t._bmr&&"number"==typeof t._bmr.res&&t._bmr.end[t._bmr.res]&&(p=!0);if(!(a=t.src||"function"==typeof t.getAttribute&&t.getAttribute("xlink:href")||t.href)||a.match(/^(about:|javascript:|data:)/i))return!1;t._bmr&&t._bmr.url!==a&&(p=!0);if("IMG"===t.nodeName){if(t.naturalWidth&&!p)return!1;if("function"==typeof t.getAttribute&&""===t.getAttribute("src"))return!1}if("IFRAME"===t.nodeName&&p)return!1;if("function"==typeof t.getAttribute){u=parseInt(t.getAttribute("height"),10);l=parseInt(t.getAttribute("width"),10)}isNaN(u)&&(u=!t.style||"0"!==t.style.height&&"0px"!==t.style.height&&"1px"!==t.style.height?undefined:0);isNaN(l)&&(l=!t.style||"0"!==t.style.width&&"0px"!==t.style.width&&"1px"!==t.style.width?undefined:0);if(!isNaN(u)&&u<=1&&!isNaN(l)&&l<=1)return!1;if(t.style&&"none"===t.style.display)return!1;if(t.style&&"hidden"===t.style.visibility)return!1;if(!(e=this.pending_events[n]))return!1;s=e.resources.length;t._bmr||(t._bmr={end:{}});e.urls||(e.urls={});if(e.urls[a])return!1;if(!e.resource.url){O.href=a;if(m.excludeFilter(O))return!1;e.resource.url=O.href}t._bmr.res=s;t._bmr.idx=n;delete t._bmr.end[s];t._bmr.url=a;c=function(e){d.load_cb(e,s);t.removeEventListener("load",c);t.removeEventListener("error",c)};t.addEventListener("load",c);t.addEventListener("error",c);e.nodes_to_wait++;this.clearTimeout(n);e.total_nodes++;e.resources.push(t);e.urls[a]=1;f=!0}else t.nodeType===Node.ELEMENT_NODE&&["IMAGE","IMG"].forEach(function(e){if((r=t.getElementsByTagName(e))&&r.length)for(i=0,o=r.length;i=t.timing.requestStart&&0!==e.responseEnd})){i=Math.floor(r+n.startTime);if((o=Math.floor(r+n.responseEnd))<=BOOMR.now()){t.timing.responseEnd=o;t.timing.loadEventEnd "+n,"rt")}return!0},refreshSession:function(e){e||(e=BOOMR.plugins.RT.getCookie());if(e){e.ss?BOOMR.session.start=e.ss:BOOMR.session.start=BOOMR.plugins.RT.navigationStart()||BOOMR.t_lstart||BOOMR.t_start;e.si&&e.si.match(/-/)&&(BOOMR.session.ID=e.si);e.sl&&(BOOMR.session.length=e.sl);e.tt&&(this.loadTime=e.tt);e.obo&&(this.oboError=e.obo);e.dm&&!BOOMR.session.domain&&(BOOMR.session.domain=e.dm);e.se&&(s.session_exp=e.se);e.bcn&&(this.beacon_url=e.bcn);e.rl&&"1"===e.rl&&(BOOMR.session.rate_limited=!0)}},maybeResetSession:function(e,t){var n=0;BOOMR.session.start&&BOOMR.session.length&&(n=(BOOMR.now()-BOOMR.session.start)/BOOMR.session.length);var r=1e3*s.session_exp;if(!BOOMR.session.start||t&&BOOMR.session.start>t||e-(s.lastActionTime||BOOMR.t_start)>r||rn.s&&(this.t_fb_approx=n.hd)}else this.t_start=this.t_fb_approx=undefined}n.s&&(this.lastActionTime=n.s);this.refreshSession(n);this.updateCookie({s:undefined,ul:undefined,cl:undefined,hd:undefined,ld:undefined,rl:undefined,r:undefined,nu:undefined,sh:undefined});this.maybeResetSession(BOOMR.now())}},incrementSessionDetails:function(){BOOMR.session.length++;!s.timers.t_done||isNaN(s.timers.t_done.delta)?s.oboError++:s.loadTime+=s.timers.t_done.delta},getBoomerangTimings:function(){var e,t,n,r,i;function o(e,t){var n=Math.round(e||0),r=Math.round(t||0);return(n=0===n?0:n-r)||""}if(BOOMR.t_start){BOOMR.plugins.RT.startTimer("boomerang",BOOMR.t_start);BOOMR.plugins.RT.endTimer("boomerang",BOOMR.t_end);BOOMR.plugins.RT.endTimer("boomr_fb",BOOMR.t_start);if(BOOMR.t_lstart){BOOMR.plugins.RT.endTimer("boomr_ld",BOOMR.t_lstart);BOOMR.plugins.RT.setTimer("boomr_lat",BOOMR.t_start-BOOMR.t_lstart)}}try{if(window&&"performance"in window&&window.performance&&"function"==typeof window.performance.getEntriesByName){t={"rt.bmr":BOOMR.url};BOOMR.config_url&&(t["rt.cnf"]=BOOMR.config_url);for(n in t)if(t.hasOwnProperty(n)&&t[n]){if(!(e=window.performance.getEntriesByName(t[n]))||0===e.length||!e[0])continue;i=[r=o((e=e[0]).startTime,0),o(e.responseEnd,r),o(e.responseStart,r),o(e.requestStart,r),o(e.connectEnd,r),o(e.secureConnectionStart,r),o(e.connectStart,r),o(e.domainLookupEnd,r),o(e.domainLookupStart,r),o(e.redirectEnd,r),o(e.redirectStart,r)].join(",").replace(/,+$/,"");BOOMR.addVar(n,i);s.addedVars.push(n)}}}catch(a){BOOMR.addError(a,"rt.getBoomerangTimings")}},checkPreRender:function(){if("prerender"!==BOOMR.visibilityState())return!1;BOOMR.plugins.RT.startTimer("t_load",this.navigationStart);BOOMR.plugins.RT.endTimer("t_load");BOOMR.plugins.RT.startTimer("t_prerender",this.navigationStart);BOOMR.plugins.RT.startTimer("t_postrender");return!0},initFromNavTiming:function(){var e,t;if(!this.navigationStart){(t=BOOMR.getPerformance())&&t.navigation&&(this.navigationType=t.navigation.type);if(t&&t.timing){e=t.timing;this.navigationStartSource="navigation"}else if(n.chrome&&n.chrome.csi&&n.chrome.csi().startE){e={navigationStart:n.chrome.csi().startE};this.navigationStartSource="csi"}else if(n.gtbExternal&&n.gtbExternal.startE()){e={navigationStart:n.gtbExternal.startE()};this.navigationStartSource="gtb"}if(e){this.navigationStart=e.navigationStart||e.fetchStart||undefined;this.fetchStart=e.fetchStart||undefined;this.responseStart=e.responseStart||undefined;navigator.userAgent.match(/Firefox\/[78]\./)&&(this.navigationStart=e.unloadEventStart||e.fetchStart||undefined)}else BOOMR.warn("This browser doesn't support the WebTiming API","rt")}},validateLoadTimestamp:function(e,t,n){var r;return t&&t.timing&&t.timing.loadEventEnd?t.timing.loadEventEnd:"xhr"!==n||t&&BOOMR.utils.inArray(t.initiator,BOOMR.constants.BEACON_TYPE_SPAS)?(r=BOOMR.getPerformance())&&r.timing?r.timing.loadEventEnd?r.timing.loadEventEnd:e:BOOMR.t_onload||BOOMR.t_lstart||BOOMR.t_start||e:e},setPageLoadTimers:function(e,t,n){var r,i;if(!("xhr"===e||"early"===e&&n&&BOOMR.utils.inArray(n.initiator,BOOMR.constants.BEACON_TYPE_SPAS))){s.initFromCookie();s.initFromNavTiming();BOOMR.addVar("rt.start",this.navigationStartSource);if(s.checkPreRender())return!1}if("xhr"===e)if(n.timers)for(var o in n.timers)n.timers.hasOwnProperty(o)&&BOOMR.plugins.RT.setTimer(o,n.timers[o]);else n&&n.timing&&(void 0===(i=n.timing.fetchStart)||n.timing.responseEnd>=i)&&(r=n.timing.responseEnd);else s.responseStart?s.responseStart>=s.navigationStart&&s.responseStart>=s.fetchStart&&(r=s.responseStart):s.timers.hasOwnProperty("t_page")?BOOMR.plugins.RT.endTimer("t_page"):s.t_fb_approx&&(r=s.t_fb_approx);if(r&&"early"!==e){i?BOOMR.plugins.RT.setTimer("t_resp",i,r):BOOMR.plugins.RT.endTimer("t_resp",r);"load"===e&&s.timers.t_load?BOOMR.plugins.RT.setTimer("t_page",s.timers.t_load.end-r):ts.oboError&&(s.oboError=e.RT.oboError);if(e.RT.loadTime&&!isNaN(e.RT.loadTime)&&e.RT.loadTime>s.loadTime){s.loadTime=e.RT.loadTime;s.timers.t_done&&!isNaN(s.timers.t_done.delta)&&(s.loadTime+=s.timers.t_done.delta)}}},domloaded:function(){BOOMR.plugins.RT.endTimer("t_domloaded")},clear:function(e){e&&"undefined"!=typeof e.early||BOOMR.removeVar("rt.start");if(s.addedVars&&0")}catch(r){n=p.createElement("IFRAME")}n.id=t;n.src=e;n.style.display="none";return n}};BOOMR.plugins.CrossDomain={init:function(e){var t,n;if(BOOMR.plugins.RT&&!e.primary){e.CrossDomain&&(O.enabled=!0);BOOMR.utils.pluginConfig(O,e,"CrossDomain",["cross_domain_url","sending","session_transfer_timeout","debug"]);if(O.enabled&&!O.session_transferred){O.plugin_start=BOOMR.now();if(BOOMR.utils.hasPostMessageSupport()){if(!O.sending&&O.enabled){O.cross_domain_url&&(O.cross_domain_url=O.cross_domain_url.replace(/^\s+|\s+$/g,""));if(!O.cross_domain_url){O.enabled=!1;return}(t=p.createElement("a")).href=O.cross_domain_url;if(t.href===BOOMR.window.location.href||!t.href.match(/^https?:\/\//)){O.enabled=!1;return}O.cross_domain_url=t.href;O.setup(O.cross_domain_url);setTimeout(function(){if(!O.session_transferred){O.session_transfer_timedout=!0;O.session_transferred=!0;O.debug||p.body.removeChild(p.getElementById(O.iframe_name));BOOMR.sendBeacon()}},O.session_transfer_timeout)}if(O.sending&&O.enabled){BOOMR.disable();var r=f.location.hash.substring(1,f.location.hash.length).split("&"),i={};for(n=0;n=BOOMR.session.length&&a.start>BOOMR.now()-864e5){BOOMR.session.start=a.start;BOOMR.session.ID&&"string"!=typeof a.ID||(BOOMR.session.ID=a.ID)}BOOMR.plugins.RT.updateCookie();s.obo=parseInt(s.obo);s.tt=parseInt(s.tt);isNaN(s.obo)||isNaN(s.tt)||this.updateCookie(s)}catch(d){}var u=BOOMR.session.start;u||(u=BOOMR.plugins.RT.navigationStart()||BOOMR.t_lstart||BOOMR.t_start);var l=BOOMR.plugins.RT.getCookie();if(!f.JSON)return;var c=f.JSON.stringify(l);f.parent.postMessage(c,"*");O.session_transferred=!0}}else{O.session_transferred=!0;O.enabled=!1}}}},updateCookie:function(e){BOOMR.plugins.RT&&BOOMR.fireEvent("config",{RT:{oboError:e.obo,loadTime:e.tt}})},is_complete:function(){if(O.sending)return!0;if(O.session_transfer_complete)return!0;if(O.session&&!O.session_transfer_timedout&&O.enabled&&O.session_transferred){if(!isNaN(O.session.start)&&O.session.start>BOOMR.now()-864e5&&O.session.start<("number"==typeof BOOMR.session.start?BOOMR.session.start:BOOMR.now())){BOOMR.session.start=O.session.start;if(!isNaN(O.session.length)&&O.session.length>BOOMR.session.length){BOOMR.session.length=O.session.length;BOOMR.plugins.RT.incrementSessionDetails()}BOOMR.session.ID=O.session.ID;BOOMR.plugins.RT&&BOOMR.plugins.RT.updateCookie()}BOOMR.addVar("rt.sstr_dur",O.session_transferred_time-O.plugin_start);O.session_transfer_complete=!0}O.session_transfer_timedout&&BOOMR.addVar("rt.sstr_to",1);return O.session_transferred||!O.enabled}}}}}();!function(){var l,y;if(!BOOMR.plugins.BW){(y=[{name:"image-0.png",size:11773,timeout:1400},{name:"image-1.png",size:40836,timeout:1200},{name:"image-2.png",size:165544,timeout:1300},{name:"image-3.png",size:382946,timeout:1500},{name:"image-4.png",size:1236278,timeout:1200},{name:"image-5.png",size:4511798,timeout:1200},{name:"image-6.png",size:9092136,timeout:1200}]).end=y.length;y.start=0;y.l={name:"image-l.gif",size:35,timeout:1e3};l={base_url:"",timeout:15e3,nruns:5,latency_runs:10,user_ip:"",block_beacon:!1,test_https:!1,cookie_exp:604800,cookie:"BA",results:[],latencies:[],latency:null,runs_left:0,aborted:!1,complete:!0,running:!1,initialized:!1,ncmp:function(e,t){return e-t},iqr:function(e){var t,n,r,i,o=e.length-1,a=[];t=(e[Math.floor(.25*o)]+e[Math.ceil(.25*o)])/2;if(0===(r=1.5*((n=(e[Math.floor(.75*o)]+e[Math.ceil(.75*o)])/2)-t)))return e;o++;for(i=0;it-r&&a.push(e[i]);return a},calc_latency:function(){var e,t,n,r,i,o,a=0,s=0;this.latencies.shift();t=(o=this.iqr(this.latencies.sort(this.ncmp))).length;for(e=0;ethis.latency.mean){p=1e3*y[t].size/(n[t].t-this.latency.mean);h.push(p)}else v.push(t+"_"+n[t].t)}}if(3=y.end-1||this.results[this.nruns-n].r[e+1]!==undefined){n===this.nruns&&(y.start=e);BOOMR.setImmediate(this.iterate,null,null,this)}else this.load_img(e+1,n,this.img_loaded)}else this.results[this.nruns-n].r[e+1]={t:null,state:null,run:n}},finish:function(){this.latency||(this.latency=this.calc_latency());var e=this.calc_bw(),t={bw:e.median_corrected,bw_err:parseFloat(e.stderr_corrected,10),lat:this.latency.mean,lat_err:parseFloat(this.latency.stderr,10),bw_time:Math.round(BOOMR.now()/1e3)};BOOMR.addVar(t);0=u-this.cookie_exp&&0BOOMR.now()+864e5)){BOOMR.addVar("nt_bad",1);d.addedVars.push("nt_bad")}try{d.addedVars.push.apply(d.addedVars,Object.keys(s))}catch(c){}}d.sendBeacon()},clear:function(){if(d.addedVars&&0t)break;if(void 0===n||"*"===n||!n.length||i.initiatorType&&BOOMR.utils.inArray(i.initiatorType,n)){f(s,i.serverTiming);u.push(i)}}var l=function c(r){return Object.keys(r).sort(function(e,t){return r[t].count-r[e].count}).reduce(function(e,n){var t=Object.keys(r[n].counts).sort(function(e,t){return r[n].counts[t]-r[n].counts[e]});e.push(1===t.length&&""===t[0]?n:[n].concat(t));return e},[])}(s);return{entries:u,serverTiming:{lookup:l,indexed:function d(e){return e.reduce(function(e,t,n){var r,i;if(Array.isArray(t)){r=t[0];i=t.slice(1).reduce(function(e,t,n){e[t]=n;return e},{})}else{r=t;i={"":0}}e[r]={index:n,descriptions:i};return e},{})}(l)}}}function U(e){var t,n,r;if(e.encodedBodySize||e.decodedBodySize||e.transferSize){t=e.transferSize;return[n=e.encodedBodySize,t?t-n:"_",(r=e.decodedBodySize)?r-n:0].map(V).join(",").replace(/,+$/,"")}return""}function H(e,t){var n,r,i;if(e&&t)for(n=0;n>16)+(t>>16)+(n>>16)<<16|65535&n}function s(e,t,n,r,i,o){return d(function a(e,t){return e<>>32-t}(d(d(t,e),d(r,o)),i),n)}function f(e,t,n,r,i,o,a){return s(t&n|~t&r,e,t,i,o,a)}function p(e,t,n,r,i,o,a){return s(t&r|n&~r,e,t,i,o,a)}function O(e,t,n,r,i,o,a){return s(t^n^r,e,t,i,o,a)}function m(e,t,n,r,i,o,a){return s(n^(t|~r),e,t,i,o,a)}function u(e,t){e[t>>5]|=128<>>9<<4)]=t;var n,r,i,o,a,s=1732584193,u=-271733879,l=-1732584194,c=271733878;for(n=0;n>5]>>>t%32&255);return n}function c(e){var t,n=[];n[(e.length>>2)-1]=undefined;for(t=0;t>5]|=(255&e.charCodeAt(t/8))<>>4&15)+r.charAt(15&t)}return i}function n(e){return unescape(encodeURIComponent(e))}function a(e){return function t(e){return l(u(c(e),8*e.length))}(n(e))}function h(e,t){return function s(e,t){var n,r,i=c(e),o=[],a=[];o[15]=a[15]=undefined;16 eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1"));if(-1===e.indexOf("@")&&-1===e.indexOf(":"))return{functionName:e};var t=e.split("@"),n=this.extractLocation(t.pop()),r=t.join("@")||undefined;return{functionName:r,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:e}},this)},parseOpera:function(e){return!e.stacktrace||-1e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],i=2,o=n.length;i/,"$2").replace(/\([^\)]*\)/g,"")||undefined;i.match(/\(([^\)]*)\)/)&&(t=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));var a=t===undefined||"[arguments not available]"===t?undefined:t.split(",");return{functionName:o,args:a,fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e}},this)}}}()}(this,function AL(){"use strict";var t=/(^|@)\S+\:\d+/,n=/^\s*at .*(\S+\:\d+|\(native\))/m,r=/^(eval@)?(\[native code\])?$/;function i(e,t,n){if("function"==typeof Array.prototype.map)return e.map(t,n);for(var r=new Array(e.length),i=0;i eval")&&(e=e.replace(/ line (\d+)(?: > eval line \d+)* > eval\:\d+\:\d+/g,":$1"));if(-1===e.indexOf("@")&&-1===e.indexOf(":"))return{functionName:e};var t=e.split("@"),n=this.extractLocation(t.pop());return{functionName:t.join("@")||undefined,fileName:n[0],lineNumber:n[1],columnNumber:n[2],source:e}},this)},parseOpera:function(e){return!e.stacktrace||-1e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(e){for(var t=/Line (\d+).*script (?:in )?(\S+)/i,n=e.message.split("\n"),r=[],i=2,o=n.length;i/,"$2").replace(/\([^\)]*\)/g,"")||undefined;i.match(/\(([^\)]*)\)/)&&(t=i.replace(/^[^\(]+\(([^\)]*)\)$/,"$1"));return{functionName:o,args:t===undefined||"[arguments not available]"===t?undefined:t.split(","),fileName:r[0],lineNumber:r[1],columnNumber:r[2],source:e}},this)}}});!function(){var f;if(!BOOMR.plugins.Errors){var p=["BOOMR_addError","createStackForSend","BOOMR.window.console.error","BOOMR.plugins.Errors.init","BOOMR.window.onerror","BOOMR_plugins_errors_"],O=["Object.send","b.send","wrap","Anonymous function"],m=["/boomerang"];h.prototype.equals=function(e){return"object"==typeof e&&(this.code===e.code&&(this.message===e.message&&(this.functionName===e.functionName&&(this.fileName===e.fileName&&(this.lineNumber===e.lineNumber&&(this.columnNumber===e.columnNumber&&(this.stack===e.stack&&(this.type===e.type&&this.source===e.source))))))))};h.fromError=function(e,t,n){var r,i,o,a,s,u,l,c,d=!1,f=BOOMR.now();if(!e)return null;if(e.stack){5e3=f.maxErrors)){i=h.fromError(e,t,n);o=f.mergeDuplicateErrors(f.errors,i,!1);BOOMR.fireEvent("error",o||i);f.mergeDuplicateErrors(f.q,i,!0);if((BOOMR.hasSentPageLoadBeacon()||!f.autorun)&&-1===f.sendIntervalId){if(o)return;f.sendIntervalId=setTimeout(function(){f.sendIntervalId=-1;0!==f.q.length&&BOOMR.sendBeaconWhenReady({"rt.start":"manual","http.initiator":"error",api:1,"rt.tstart":a,"rt.end":a},function(){f.addErrorsToBeacon()},this)},f.isDuringLoad?f.sendIntervalDuringLoad:f.sendInterval)}}}},findDuplicateError:function(e,t){if(!BOOMR.utils.isArray(e)||void 0===t)return undefined;for(var n=0;no.length)for(n=0;n=t.from}));t.to&&(n=n.filter(function(e){return e.startTime<=t.to}));return f.compressUserTiming(n,t)};n.compressForUri=function(e){if("object"!=typeof e)return"";var t=!1;for(var n in e)if(e.hasOwnProperty(n)){if(isNaN(n)){t=!1;break}t=!0}if(t)return"1"+f.flattenMap(e);var r=f.convertToTrie(e),i=f.optimizeTrie(r,!0),o=f.jsUrl(i),a=f.flattenArray(e);if("string"!=typeof a||0===a.length)return"";var s=encodeURIComponent(o),u=encodeURIComponent(a);return s.length=s.options.from}));var t,n=window.UserTimingCompression||BOOMR.window.UserTimingCompression;if(void 0===n){if(0===e.length)return null;for(var r={},i=0,o=e.length;i