/*! rum-beacon-capture - v0.1.9.119-1 - 2016-01-06 */
function BOOMR_check_doc_domain(a){var b;if(!a){if(window.parent===window||!document.getElementById("boomr-if-as"))return;a=document.domain}if(-1!==a.indexOf(".")){try{return void(b=window.parent.document)}catch(c){document.domain=a}try{return void(b=window.parent.document)}catch(c){a=a.replace(/^[\w\-]+\./,"")}BOOMR_check_doc_domain(a)}}BOOMR_start=(new Date).getTime(),BOOMR_check_doc_domain(),function(a){var b,c,d,e,f,g,h,i;a.parent!==a&&document.getElementById("boomr-if-as")&&"script"===document.getElementById("boomr-if-as").nodeName.toLowerCase()&&(a=a.parent,e=document.getElementById("boomr-if-as").src),d=a.document,a.BOOMR||(a.BOOMR={}),BOOMR=a.BOOMR,BOOMR.version||(BOOMR.version="0.9",BOOMR.window=a,BOOMR.plugins||(BOOMR.plugins={}),function(){try{void 0!==new a.CustomEvent("CustomEvent")&&(f=function(b,c){return new a.CustomEvent(b,c)})}catch(b){}try{!f&&d.createEvent&&d.createEvent("CustomEvent")&&(f=function(a,b){var c=d.createEvent("CustomEvent");return b=b||{cancelable:!1,bubbles:!1},c.initCustomEvent(a,b.bubbles,b.cancelable,b.detail),c})}catch(b){}!f&&d.createEventObject&&(f=function(a,b){var c=d.createEventObject();return c.type=c.propertyName=a,c.detail=b.detail,c}),f||(f=function(){return void 0})}(),g=function(a,b){var c=f(a,{detail:b});c&&BOOMR.setImmediate(function(){d.dispatchEvent?d.dispatchEvent(c):d.fireEvent&&d.fireEvent("onpropertychange",c)})},"undefined"!=typeof document.hidden?(h="visibilityState",i="visibilitychange"):"undefined"!=typeof document.mozHidden?(h="mozVisibilityState",i="mozvisibilitychange"):"undefined"!=typeof document.msHidden?(h="msVisibilityState",i="msvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(h="webkitVisibilityState",i="webkitvisibilitychange"),b={beacon_url:"",beacon_type:"AUTO",site_domain:a.location.hostname.replace(/.*?([^.]+\.[^.]+)\.?$/,"$1").toLowerCase(),user_ip:"",strip_query_string:!1,onloadfired:!1,handlers_attached:!1,events:{page_ready:[],page_unload:[],dom_loaded:[],visibility_changed:[],before_beacon:[],onbeacon:[],xhr_load:[],click:[],form_submit:[]},public_events:{before_beacon:"onBeforeBoomerangBeacon",onbeacon:"onBoomerangBeacon",onboomerangloaded:"onBoomerangLoaded"},vars:{},errors:{},disabled_plugins:{},xb_handler:function(c){return function(d){var e;d||(d=a.event),d.target?e=d.target:d.srcElement&&(e=d.srcElement),3===e.nodeType&&(e=e.parentNode),e&&"OBJECT"===e.nodeName.toUpperCase()&&"application/x-shockwave-flash"===e.type||b.fireEvent(c,e)}},fireEvent:function(a,b){var c,d,e;if(a=a.toLowerCase(),!this.events.hasOwnProperty(a))return!1;for(this.public_events.hasOwnProperty(a)&&g(this.public_events[a],b),e=this.events[a],c=0;c<e.length;c++)try{d=e[c],d.fn.call(d.scope,b,d.cb_data)}catch(f){BOOMR.addError(f,"fireEvent."+a+"<"+c+">")}return!0}},c={t_lstart:null,t_start:BOOMR_start,t_end:null,url:e,utils:{objectToString:function(a,b,c){var d,e=[];if(!a||"object"!=typeof a)return a;if(void 0===b&&(b="\n	"),c||(c=0),"[object Array]"===Object.prototype.toString.call(a)){for(d=0;d<a.length;d++)e.push(c>0&&null!==a[d]&&"object"==typeof a[d]?this.objectToString(a[d],b+("\n	"===b?"	":""),c-1):"&"===b?encodeURIComponent(a[d]):a[d]);b=","}else for(d in a)Object.prototype.hasOwnProperty.call(a,d)&&e.push(c>0&&null!==a[d]&&"object"==typeof a[d]?encodeURIComponent(d)+"="+this.objectToString(a[d],b+("\n	"===b?"	":""),c-1):"&"===b?encodeURIComponent(d)+"="+encodeURIComponent(a[d]):d+"="+a[d]);return e.join(b)},getCookie:function(a){if(!a)return null;a=" "+a+"=";var b,c;return c=" "+d.cookie+";",(b=c.indexOf(a))>=0?(b+=a.length,c=c.substring(b,c.indexOf(";",b))):null},setCookie:function(a,b,c){var d=new Date;d.setTime(d.getTime()+1e3*c);var e="expires="+d.toGMTString(),f="path=/",g=this.objectToString(b,"&");document.cookie=a+"="+g+"; "+e+";"+f;var h=this.getCookie(a);return g===h?!0:(BOOMR.warn("Saved cookie value doesn't match what we tried to set:\n"+g+"\n"+h),!1)},getSubCookies:function(a){var b,c,d,e,f=!1,g={};if(!a)return null;if("string"!=typeof a)return BOOMR.debug("TypeError: cookie is not a string: "+typeof a),null;for(b=a.split("&"),c=0,d=b.length;d>c;c++)e=b[c].split("="),e[0]&&(e.push(""),g[decodeURIComponent(e[0])]=decodeURIComponent(e[1]),f=!0);return f?g:null},removeCookie:function(a){return this.setCookie(a,{},-86400)},cleanupURL:function(a){return a?b.strip_query_string?a.replace(/\?.*/,"?qs-redacted"):a:""},hashQueryString:function(a,b){return a?(a.match(/^\/\//)&&(a=location.protocol+a),a.match(/^(https?|file):/)?(b&&(a=a.replace(/#.*/,"")),BOOMR.utils.MD5?a.replace(/\?([^#]*)/,function(a,b){return"?"+(b.length>10?BOOMR.utils.MD5(b):b)}):a):(BOOMR.error("Passed in URL is invalid: "+a),"")):a},pluginConfig:function(a,b,c,d){var e,f=0;if(!b||!b[c])return!1;for(e=0;e<d.length;e++)void 0!==b[c][d[e]]&&(a[d[e]]=b[c][d[e]],f++);return f>0},addObserver:function(a,b,c,d,e,f){function g(a){var b=!1;h.timer&&(clearTimeout(h.timer),h.timer=null),d&&(b=d.call(f,a,e),b||(d=null)),!b&&h.observer&&(h.observer.disconnect(),h.observer=null),"number"==typeof b&&b>0&&(h.timer=setTimeout(g,b))}var h={observer:null,timer:null};return window.MutationObserver&&d&&a?(h.observer=new MutationObserver(g),c&&(h.timer=setTimeout(g,h.timeout)),h.observer.observe(a,b),h):null},addListener:function(a,b,c){a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c)},removeListener:function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)},pushVars:function(a,b,c){var d,e,f,g=0;for(d in b)if(b.hasOwnProperty(d))if("[object Array]"===Object.prototype.toString.call(b[d]))for(e=0;e<b[d].length;++e)g+=BOOMR.utils.pushVars(a,b[d][e],d+"["+e+"]");else f=document.createElement("input"),f.name=c?c+"["+d+"]":d,f.value=void 0===b[d]||null===b[d]?"":b[d],a.appendChild(f),g+=encodeURIComponent(f.name).length+encodeURIComponent(f.value).length+2;return g},sendData:function(a,c){function d(a){var b=document.getElementById(a);b&&b.parentNode.removeChild(b)}function e(){var b,c="boomerang_post-"+encodeURIComponent(a.action)+"-"+Math.random();try{b=document.createElement('<iframe name="'+c+'">')}catch(g){b=document.createElement("iframe")}a.action=f.shift(),a.target=b.name=b.id=c,b.style.display=a.style.display="none",b.src="javascript:false",d(b.id),d(a.id),document.body.appendChild(b),document.body.appendChild(a),a.submit(),f.length&&BOOMR.setImmediate(e),setTimeout(function(){d(b.id)},1e4)}var f=(document.createElement("input"),[b.beacon_url]);a.method=c,a.id="beacon_form",a.enctype="application/x-www-form-urlencoded",b.secondary_beacons&&b.secondary_beacons.length&&f.push.apply(f,b.secondary_beacons),e()}},init:function(c){var e,f,g=["beacon_url","beacon_type","site_domain","user_ip","strip_query_string","secondary_beacons"];for(BOOMR_check_doc_domain(),c||(c={}),e=0;e<g.length;e++)void 0!==c[g[e]]&&(b[g[e]]=c[g[e]]);void 0!==c.log&&(this.log=c.log),this.log||(this.log=function(){});for(f in this.plugins)if(this.plugins.hasOwnProperty(f)){if(c[f]&&c[f].hasOwnProperty("enabled")&&c[f].enabled===!1){b.disabled_plugins[f]=1;continue}if(b.disabled_plugins[f]&&delete b.disabled_plugins[f],"function"==typeof this.plugins[f].init)try{this.plugins[f].init(c)}catch(h){BOOMR.addError(h,f+".init")}}return b.handlers_attached?this:(b.onloadfired||void 0!==c.autorun&&c.autorun===!1||(d.readyState&&"complete"===d.readyState?(BOOMR.loadedLate=!0,this.setImmediate(BOOMR.page_ready,null,null,BOOMR)):a.onpagehide||null===a.onpagehide?BOOMR.utils.addListener(a,"pageshow",BOOMR.page_ready):BOOMR.utils.addListener(a,"load",BOOMR.page_ready)),BOOMR.utils.addListener(a,"DOMContentLoaded",function(){b.fireEvent("dom_loaded")}),function(){var c,e;for(void 0!==i&&(BOOMR.utils.addListener(d,i,function(){b.fireEvent("visibility_changed")}),BOOMR.subscribe("visibility_changed",function(){BOOMR.lastVisibilityEvent[BOOMR.visibilityState()]=BOOMR.now()})),BOOMR.utils.addListener(d,"mouseup",b.xb_handler("click")),c=d.getElementsByTagName("form"),e=0;e<c.length;e++)BOOMR.utils.addListener(c[e],"submit",b.xb_handler("form_submit"));a.onpagehide||null===a.onpagehide||BOOMR.utils.addListener(a,"unload",function(){BOOMR.window=a=null})}(),b.handlers_attached=!0,this)},page_ready:function(c){return c||(c=a.event),c||(c={name:"load"}),b.onloadfired?this:(b.fireEvent("page_ready",c),b.onloadfired=!0,this)},setImmediate:function(b,c,d,e){var f=function(){b.call(e||null,c,d||{}),f=null};a.setImmediate?a.setImmediate(f):a.msSetImmediate?a.msSetImmediate(f):a.webkitSetImmediate?a.webkitSetImmediate(f):a.mozSetImmediate?a.mozSetImmediate(f):setTimeout(f,10)},now:window.performance&&window.performance.now?function(){return Math.round(window.performance.now()+window.performance.timing.navigationStart)}:Date.now||function(){return(new Date).getTime()},visibilityState:void 0===h?function(){return"visible"}:function(){return d[h]},lastVisibilityEvent:{},subscribe:function(c,d,e,f){var g,h,i,j;if(c=c.toLowerCase(),!b.events.hasOwnProperty(c))return this;for(i=b.events[c],g=0;g<i.length;g++)if(h=i[g],h.fn===d&&h.cb_data===e&&h.scope===f)return this;return i.push({fn:d,cb_data:e||{},scope:f||null}),"page_ready"===c&&b.onloadfired&&this.setImmediate(d,null,e,f),"page_unload"===c&&(j=function(b){d&&d.call(f,b||a.event,e)},a.onpagehide||null===a.onpagehide?BOOMR.utils.addListener(a,"pagehide",j):BOOMR.utils.addListener(a,"unload",j),BOOMR.utils.addListener(a,"beforeunload",j)),this},addError:function(a,c,d){"string"!=typeof a&&(a=String(a)),void 0!==c&&(a="["+c+":"+BOOMR.now()+"] "+a),d&&(a+=":: "+d),b.errors[a]?b.errors[a]++:b.errors[a]=1},addVar:function(a,c){if("string"==typeof a)b.vars[a]=c;else if("object"==typeof a){var d,e=a;for(d in e)e.hasOwnProperty(d)&&(b.vars[d]=e[d])}return this},removeVar:function(a){var c,d;if(!arguments.length)return this;for(d=1===arguments.length&&"[object Array]"===Object.prototype.toString.apply(a)?a:arguments,c=0;c<d.length;c++)b.vars.hasOwnProperty(d[c])&&delete b.vars[d[c]];return this},hasVar:function(a){return b.vars.hasOwnProperty(a)},requestStart:function(a){var b=BOOMR.now();return BOOMR.plugins.RT.startTimer("xhr_"+a,b),{loaded:function(c){BOOMR.responseEnd(a,b,c)}}},responseEnd:function(a,c,d){"object"==typeof a&&a.url?b.fireEvent("xhr_load",a):(BOOMR.plugins.RT.startTimer("xhr_"+a,c),b.fireEvent("xhr_load",{name:"xhr_"+a,data:d}))},sendBeacon:function(){var c,e,f,g=[];BOOMR.debug("Checking if we can send beacon");for(c in this.plugins)if(this.plugins.hasOwnProperty(c)){if(b.disabled_plugins[c])continue;if(!this.plugins[c].is_complete())return BOOMR.debug("Plugin "+c+" is not complete, deferring beacon send"),!1}b.vars.pgu=BOOMR.utils.cleanupURL(d.URL.replace(/#.*/,"")),b.vars.u||(b.vars.u=b.vars.pgu),b.vars.pgu===b.vars.u&&delete b.vars.pgu,b.vars.v=BOOMR.version,BOOMR.visibilityState()&&(b.vars["vis.st"]=BOOMR.visibilityState(),BOOMR.lastVisibilityEvent.visible&&(b.vars["vis.lv"]=BOOMR.now()-BOOMR.lastVisibilityEvent.visible),BOOMR.lastVisibilityEvent.hidden&&(b.vars["vis.lh"]=BOOMR.now()-BOOMR.lastVisibilityEvent.hidden)),a!==window&&(b.vars["if"]="");for(c in b.errors)b.errors.hasOwnProperty(c)&&g.push(c+(b.errors[c]>1?" (*"+b.errors[c]+")":""));return g.length>0&&(b.vars.errors=g.join("\n")),b.errors={},b.fireEvent("before_beacon",b.vars),BOOMR.debug("Ready to send beacon: "+BOOMR.utils.objectToString(b.vars)),b.beacon_url?(e=document.createElement("form"),f=BOOMR.utils.pushVars(e,b.vars),b.fireEvent("onbeacon",b.vars),f?(BOOMR.utils.sendData(e,"AUTO"===b.beacon_type?f>2e3?"POST":"GET":"POST"),!0):this):(BOOMR.debug("No beacon URL, so skipping."),!0)}},delete BOOMR_start,"number"==typeof BOOMR_lstart?(c.t_lstart=BOOMR_lstart,delete BOOMR_lstart):"number"==typeof BOOMR.window.BOOMR_lstart&&(c.t_lstart=BOOMR.window.BOOMR_lstart),function(){var a;"object"==typeof console&&void 0!==console.log&&(c.log=function(a,b,c){console.log(c+": ["+b+"] "+a)}),a=function(){return function(){return this}},c.debug=a("debug"),c.info=a("info"),c.warn=a("warn"),c.error=a("error")}(),function(){var a;for(a in c)c.hasOwnProperty(a)&&(BOOMR[a]=c[a]);BOOMR.xhr_excludes||(BOOMR.xhr_excludes={})}(),g("onBoomerangLoaded",{BOOMR:BOOMR}))}(window),function(a){var b,c=a.document;BOOMR=BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},BOOMR.plugins.RT||(b={onloadfired:!1,unloadfired:!1,visiblefired:!1,initialized:!1,complete:!1,timers:{},cookie:"RT",cookie_exp:600,strict_referrer:!0,navigationType:0,navigationStart:void 0,responseStart:void 0,t_start:void 0,cached_t_start:void 0,t_fb_approx:void 0,r:void 0,r2:void 0,basic_timers:{t_done:1,t_resp:1,t_page:1},addedVars:[],updateCookie:function(a,b){var c,d,e,f;if(!this.cookie)return!1;if(e=BOOMR.utils.getSubCookies(BOOMR.utils.getCookie(this.cookie))||{},"object"==typeof a)for(f in a)a.hasOwnProperty(f)&&(void 0===a[f]?e.hasOwnProperty(f)&&delete e[f]:(("nu"===f||"r"===f)&&(a[f]=BOOMR.utils.hashQueryString(a[f],!0)),e[f]=a[f]));return d=BOOMR.now(),b&&(e[b]=d),BOOMR.debug("Setting cookie (timer="+b+")\n"+BOOMR.utils.objectToString(e),"rt"),BOOMR.utils.setCookie(this.cookie,e,this.cookie_exp)?(c=BOOMR.now(),c-d>50&&(BOOMR.utils.removeCookie(this.cookie),BOOMR.error("took more than 50ms to set cookie... aborting: "+d+" -> "+c,"rt")),!0):(BOOMR.error("cannot set start cookie","rt"),!1)},initFromCookie:function(){var a,b;b=BOOMR.utils.getSubCookies(BOOMR.utils.getCookie(this.cookie)),b&&(b.s=Math.max(+b.ul||0,+b.cl||0),BOOMR.debug("Read from cookie "+BOOMR.utils.objectToString(b),"rt"),b.s&&(b.r||b.nu)&&(this.r=b.r,a=BOOMR.utils.hashQueryString(c.URL,!0),BOOMR.debug(this.r+" =?= "+this.r2,"rt"),BOOMR.debug(b.s+" <? "+(+b.cl+15),"rt"),BOOMR.debug(b.nu+" =?= "+a,"rt"),!this.strict_referrer||b.nu&&b.nu===a&&b.s<+b.cl+15||b.s===+b.ul&&this.r===this.r2?(this.t_start=b.s,+b.hd>b.s&&(this.t_fb_approx=parseInt(b.hd,10))):this.t_start=this.t_fb_approx=void 0),this.updateCookie({s:void 0,r:void 0,nu:void 0,ul:void 0,cl:void 0,hd:void 0}))},getBoomerangTimings:function(){function a(a,b){var c=Math.round(a?a:0),d=Math.round(b?b:0);return c=0===c?0:c-d,c?c:""}var c,d,e,f,g;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),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&&window.performance.getEntriesByName){d={"rt.bmr":BOOMR.url};for(e in d)if(d.hasOwnProperty(e)&&d[e]){if(c=window.performance.getEntriesByName(d[e]),!c||0===c.length)continue;c=c[0],f=a(c.startTime,0),g=[f,a(c.responseEnd,f),a(c.responseStart,f),a(c.requestStart,f),a(c.connectEnd,f),a(c.secureConnectionStart,f),a(c.connectStart,f),a(c.domainLookupEnd,f),a(c.domainLookupStart,f),a(c.redirectEnd,f),a(c.redirectStart,f)].join(",").replace(/,+$/,""),BOOMR.addVar(e,g),b.addedVars.push(e)}}}catch(h){BOOMR.addError(h,"rt.getBoomerangTimings")}},checkPreRender:function(){return"prerender"!==BOOMR.visibilityState()?!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"),!0)},initFromNavTiming:function(){var b,c,d;this.navigationStart||(c=a.performance||a.msPerformance||a.webkitPerformance||a.mozPerformance,c&&c.navigation&&(this.navigationType=c.navigation.type),c&&c.timing?b=c.timing:a.chrome&&a.chrome.csi&&a.chrome.csi().startE?(b={navigationStart:a.chrome.csi().startE},d="csi"):a.gtbExternal&&a.gtbExternal.startE()&&(b={navigationStart:a.gtbExternal.startE()},d="gtb"),b?(BOOMR.addVar("rt.start",d||"navigation"),this.navigationStart=b.navigationStart||b.fetchStart||void 0,this.responseStart=b.responseStart||void 0,navigator.userAgent.match(/Firefox\/[78]\./)&&(this.navigationStart=b.unloadEventStart||b.fetchStart||void 0)):BOOMR.warn("This browser doesn't support the WebTiming API","rt"))},validateLoadTimestamp:function(b,c){var d=b;return c&&c.timing&&c.timing.loadEventEnd?d=c.timing.loadEventEnd:BOOMR.loadedLate&&(a.performance&&a.performance.timing?a.performance.timing.loadEventStart&&a.performance.timing.loadEventStart<BOOMR.t_end&&(d=a.performance.timing.loadEventStart):d=BOOMR.t_lstart||BOOMR.t_start||b),d},setPageLoadTimers:function(a,c,d){var e;return"xhr"!==a&&(b.initFromCookie(),b.initFromNavTiming(),b.checkPreRender())?!1:("xhr"===a?d&&d.timing&&(e=d.timing.responseStart):b.responseStart?e=b.responseStart:b.timers.hasOwnProperty("t_page")?BOOMR.plugins.RT.endTimer("t_page"):b.t_fb_approx&&(e=b.t_fb_approx),e&&(BOOMR.plugins.RT.endTimer("t_resp",e),b.timers.t_load?BOOMR.plugins.RT.setTimer("t_page",b.timers.t_load.end-e):BOOMR.plugins.RT.setTimer("t_page",c-e)),b.timers.hasOwnProperty("t_postrender")&&(BOOMR.plugins.RT.endTimer("t_postrender"),BOOMR.plugins.RT.endTimer("t_prerender")),!0)},setSupportingTimestamps:function(a){a?BOOMR.addVar("ds",a):BOOMR.addVar("ds",BOOMR.t_start),"number"==typeof b.t_start&&b.t_start!==a&&BOOMR.addVar("rt.cstart",b.t_start),BOOMR.addVar("rt.bstart",BOOMR.t_start),BOOMR.t_lstart&&BOOMR.addVar("rt.blstart",BOOMR.t_lstart),BOOMR.addVar("de",b.timers.t_done.end)},determineTStart:function(a,c){var d;return"xhr"===a?(c&&c.name&&b.timers[c.name]?d=b.timers[c.name].start:c&&c.timing&&c.timing.requestStart&&(d=c.timing.requestStart),BOOMR.addVar("rt.start","manual")):b.navigationStart?d=b.navigationStart:b.t_start&&2!==b.navigationType?(d=b.t_start,BOOMR.addVar("rt.start","cookie")):b.cached_t_start?d=b.cached_t_start:(BOOMR.addVar("rt.start","none"),d=void 0),BOOMR.debug("Got start time: "+d,"rt"),b.cached_t_start=d,d},page_ready:function(){this.onloadfired=!0},check_visibility:function(){"visible"===BOOMR.visibilityState()&&(b.visiblefired=!0),"prerender"===b.visibilityState&&"prerender"!==BOOMR.visibilityState()&&BOOMR.plugins.RT.done(null,"visible"),b.visibilityState=BOOMR.visibilityState()},page_unload:function(a){BOOMR.debug("Unload called with "+BOOMR.utils.objectToString(a)+" when unloadfired = "+this.unloadfired,"rt"),this.unloadfired||BOOMR.plugins.RT.done(a,"unload"),this.updateCookie({r:c.URL},"beforeunload"===a.type?"ul":"hd"),this.unloadfired=!0},_iterable_click:function(a,c,d,e){var f;if(d){for(BOOMR.debug(a+" called with "+d.nodeName,"rt");d&&d.nodeName.toUpperCase()!==c;)d=d.parentNode;d&&d.nodeName.toUpperCase()===c&&(BOOMR.debug("passing through","rt"),f=e(d),this.updateCookie({nu:f},"cl"),BOOMR.addVar("nu",BOOMR.utils.cleanupURL(f)),b.addedVars.push("nu"))}},onclick:function(a){b._iterable_click("Click","A",a,function(a){return a.href})},onsubmit:function(a){b._iterable_click("Submit","FORM",a,function(a){var b=a.getAttribute("action")||c.URL||"";return b.match(/\?/)?b:b+"?"})},domloaded:function(){BOOMR.plugins.RT.endTimer("t_domloaded")},clear:function(){b.addedVars&&b.addedVars.length>0&&(BOOMR.removeVar(b.addedVars),b.addedVars=[])}},BOOMR.plugins.RT={init:function(d){return BOOMR.debug("init RT","rt"),a!==BOOMR.window&&(a=BOOMR.window),c=a.document,BOOMR.utils.pluginConfig(b,d,"RT",["cookie","cookie_exp","strict_referrer"]),b.r=b.r2=BOOMR.utils.hashQueryString(c.referrer,!0),b.initFromCookie(),b.getBoomerangTimings(),b.initialized?this:(b.complete=!1,b.timers={},b.check_visibility(),BOOMR.subscribe("page_ready",b.page_ready,null,b),BOOMR.subscribe("visibility_changed",b.check_visibility,null,b),BOOMR.subscribe("page_ready",this.done,"load",this),BOOMR.subscribe("xhr_load",this.done,"xhr",this),BOOMR.subscribe("dom_loaded",b.domloaded,null,b),BOOMR.subscribe("click",b.onclick,null,b),BOOMR.subscribe("form_submit",b.onsubmit,null,b),BOOMR.subscribe("before_beacon",this.addTimersToBeacon,"beacon",this),BOOMR.subscribe("onbeacon",b.clear,null,b),b.initialized=!0,this)},startTimer:function(a,c){return a&&("t_page"===a&&this.endTimer("t_resp",c),b.timers[a]={start:"number"==typeof c?c:BOOMR.now()}),this},endTimer:function(a,c){return a&&(b.timers[a]=b.timers[a]||{},void 0===b.timers[a].end&&(b.timers[a].end="number"==typeof c?c:BOOMR.now())),this},setTimer:function(a,c){return a&&(b.timers[a]={delta:c}),this},addTimersToBeacon:function(a,c){var d,e,f=[];for(d in b.timers)if(b.timers.hasOwnProperty(d)){if(e=b.timers[d],"number"!=typeof e.delta&&("number"!=typeof e.start&&(e.start=b.cached_t_start),e.delta=e.end-e.start),isNaN(e.delta))continue;b.basic_timers.hasOwnProperty(d)?(BOOMR.addVar(d,e.delta),b.addedVars.push(d)):f.push(d+"|"+e.delta)}f.length&&(BOOMR.addVar("t_other",f.join(",")),b.addedVars.push("t_other")),"beacon"===c&&(b.timers={},b.complete=!1)},done:function(a,c){try{BOOMR.debug("Called done with "+BOOMR.utils.objectToString(a,void 0,1)+", "+c,"rt")}catch(d){BOOMR.debug("Called done with "+d+", "+c,"rt")}var e,f,g=BOOMR.now(),h=!1;return b.complete=!1,f=b.validateLoadTimestamp(g,a),"load"!==c&&"visible"!==c&&"xhr"!==c||b.setPageLoadTimers(c,f,a)?(e=b.determineTStart(c,a),a&&a.data&&(a=a.data),"xhr"===c&&a&&(h=a.subresource),this.endTimer("t_done",f),BOOMR.removeVar("t_done","t_page","t_resp","t_postrender","t_prerender","t_load","t_other","r","r2","rt.tstart","rt.cstart","rt.bstart","rt.end","rt.subres","rt.abld","http.errno","http.method","xhr.sync"),b.setSupportingTimestamps(e),this.addTimersToBeacon(),BOOMR.addVar("r",BOOMR.utils.cleanupURL(b.r)),b.r2!==b.r&&BOOMR.addVar("r2",BOOMR.utils.cleanupURL(b.r2)),"xhr"===c&&a&&(a.url&&(BOOMR.addVar("u",BOOMR.utils.cleanupURL(a.url.replace(/#.*/,""))),b.addedVars.push("u")),a.status&&(a.status<-1||a.status>=400)&&BOOMR.addVar("http.errno",a.status),a.method&&"GET"!==a.method&&BOOMR.addVar("http.method",a.method),a.headers&&BOOMR.addVar("http.hdr",a.headers),a.synchronous&&BOOMR.addVar("xhr.sync",1),a.initiator&&BOOMR.addVar("http.initiator",a.initiator),b.addedVars.push("http.errno","http.method","http.hdr","xhr.sync","http.initiator")),h&&(BOOMR.addVar("rt.subres",1),b.addedVars.push("rt.subres")),b.updateCookie(),"unload"===c&&(BOOMR.addVar("rt.quit",""),b.onloadfired||BOOMR.addVar("rt.abld",""),b.visiblefired||BOOMR.addVar("rt.ntvu","")),b.complete=!0,BOOMR.sendBeacon(),this):this},is_complete:function(){return b.complete}})}(window),function(){if(BOOMR=BOOMR||{},BOOMR.plugins=BOOMR.plugins||{},!BOOMR.plugins.NavigationTiming){var a={complete:!1,xhr_done:function(b){var c,d,e=BOOMR.window,f={};if(b){if(b.data&&(b=b.data),b.url&&e.performance&&e.performance.getEntriesByName&&(c=e.performance.getEntriesByName(b.url),c&&c.length>0)){c=c[0],f={nt_red_st:c.redirectStart,nt_red_end:c.redirectEnd,nt_fet_st:c.fetchStart,nt_dns_st:c.domainLookupStart,nt_dns_end:c.domainLookupEnd,nt_con_st:c.connectStart,nt_con_end:c.connectEnd,nt_req_st:c.requestStart,nt_res_st:c.responseStart,nt_res_end:c.responseEnd},c.secureConnectionStart&&(f.nt_ssl_st=c.secureConnectionStart);for(d in f)f.hasOwnProperty(d)&&f[d]&&(f[d]+=e.performance.timing.navigationStart)}b.timing&&(c=b.timing,f.nt_req_st||(f.nt_req_st=c.requestStart),f.nt_res_st||(f.nt_res_st=c.responseStart),f.nt_res_end||(f.nt_res_end=c.responseEnd),f.nt_domint=c.domInteractive,f.nt_domcomp=c.domComplete,f.nt_load_st=c.loadEventEnd,f.nt_load_end=c.loadEventEnd);for(d in f)f.hasOwnProperty(d)&&!f[d]&&delete f[d];BOOMR.addVar(f);try{a.addedVars.push.apply(a.addedVars,Object.keys(f))}catch(g){}this.complete=!0,BOOMR.sendBeacon()}},done:function(){var b,c,d,e,f=BOOMR.window;if(this.complete)return this;if(a.addedVars=[],b=f.performance||f.msPerformance||f.webkitPerformance||f.mozPerformance,b&&b.timing&&b.navigation){BOOMR.info("This user agent supports NavigationTiming.","nt"),c=b.navigation,d=b.timing,e={rct:c.redirectCount,nty:c.type,nst:d.navigationStart,rst:d.redirectStart,rnd:d.redirectEnd,fst:d.fetchStart,dns:d.domainLookupStart,dnn:d.domainLookupEnd,cns:d.connectStart,cnn:d.connectEnd,rqs:d.requestStart,rss:d.responseStart,rsn:d.responseEnd,dlg:d.domLoading,din:d.domInteractive,dls:d.domContentLoadedEventStart,dln:d.domContentLoadedEventEnd,dcp:d.domComplete,lst:d.loadEventStart,lnd:d.loadEventEnd,ust:d.unloadEventStart,und:d.unloadEventEnd},d.secureConnectionStart&&(e.nt_ssl_st=d.secureConnectionStart),d.msFirstPaint&&(e.nt_first_paint=d.msFirstPaint),BOOMR.addVar(e);try{a.addedVars.push.apply(a.addedVars,Object.keys(e))}catch(g){}}if(f.chrome&&f.chrome.loadTimes&&(d=f.chrome.loadTimes())){e={nt_spdy:d.wasFetchedViaSpdy?1:0,nt_first_paint:d.firstPaintTime},BOOMR.addVar(e);try{a.addedVars.push.apply(a.addedVars,Object.keys(e))}catch(g){}}this.complete=!0,BOOMR.sendBeacon()},clear:function(){a.addedVars&&a.addedVars.length>0&&(BOOMR.removeVar(a.addedVars),a.addedVars=[]),this.complete=!1}};BOOMR.plugins.NavigationTiming={init:function(){return a.initialized||(BOOMR.subscribe("page_ready",a.done,null,a),BOOMR.subscribe("xhr_load",a.xhr_done,null,a),BOOMR.subscribe("page_unload",a.done,null,a),BOOMR.subscribe("onbeacon",a.clear,null,a),a.initialized=!0),this},is_complete:function(){return a.complete}}}}(),function(a){BOOMR=BOOMR||{},BOOMR.plugins=BOOMR.plugins||{};var b={complete:!1,base_url:"",t_start:null,t_dns:null,t_http:null,img:null,gen_url:"",start:function(){var a=Math.floor(2147483647*Math.random()).toString(36),c=""+(new Date).getTime()+Math.random();b.gen_url=b.base_url.replace(/\*/,a),b.img=new Image,b.img.onload=b.A_loaded,b.t_start=(new Date).getTime(),b.img.src=this.gen_url+"image-l.gif?t="+c},A_loaded:function(){var a;b.t_dns=(new Date).getTime()-b.t_start,a=""+(new Date).getTime()+Math.random(),b.img=new Image,b.img.onload=b.B_loaded,b.t_start=(new Date).getTime(),b.img.src=b.gen_url+"image-l.gif?t="+a},B_loaded:function(){b.t_http=(new Date).getTime()-b.t_start,b.img=null,b.done()},done:function(){var a=b.t_dns-b.t_http;BOOMR.addVar("dns",a),this.complete=!0,BOOMR.sendBeacon()},read_timing_api:function(a){return"undefined"==typeof a.domainLookupStart||"undefined"==typeof a.domainLookupEnd?!1:(BOOMR.addVar("dns",a.domainLookupEnd-a.domainLookupStart),b.complete=!0,!0)}};BOOMR.plugins.DNS={init:function(c){return BOOMR.utils.pluginConfig(b,c,"DNS",["base_url"]),a.performance&&a.performance.timing&&b.read_timing_api(a.performance.timing)?this:b.base_url?(b.base_url="https:"===a.location.protocol?b.base_url.replace(/^http:/,"https:"):b.base_url.replace(/^https:/,"http:"),BOOMR.subscribe("page_ready",b.start,null,this),this):(BOOMR.warn("DNS.base_url is not set.  Cannot run DNS test.","dns"),b.complete=!0,this)},is_complete:function(){return b.complete}}}(window),function(a){BOOMR=BOOMR||{},BOOMR.plugins=BOOMR.plugins||{};var b={client_id:"",generateGUID:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0,c="x"==a?b:3&b|8;return c.toString(16)})},done:function(c){BOOMR.debug("Called RUM plugin done...");var d=(a.document,{});d.r=document.referrer;var e=new Date(c.ds).getTimezoneOffset();d.tz=isNaN(e)?0:e;var f=parseInt(BOOMR.utils.getCookie("SCOSN"));isNaN(f)&&(f=1),d.N=f,f++,BOOMR.utils.setCookie("SCOSN",String(f),600);var g=BOOMR.utils.getCookie("SCOSID");null===g&&(g=b.generateGUID()),BOOMR.utils.setCookie("SCOSID",g,600),d.si=g;var h=BOOMR.utils.getCookie("SCOGID");null===h&&(h=b.generateGUID()),BOOMR.utils.setCookie("SCOGID",h,31557600),d.gid=h,d.cid=b.customer_id,d.cecd=b.status_code;var i,j;"undefined"!=typeof window.innerWidth?(i=window.innerWidth,j=window.innerHeight):"undefined"!=typeof document.documentElement&&"undefined"!=typeof document.documentElement.clientWidth&&0!=document.documentElement.clientWidth?(i=document.documentElement.clientWidth,j=document.documentElement.clientHeight):(i=document.getElementsByTagName("body")[0].clientWidth,j=document.getElementsByTagName("body")[0].clientHeight),d.sch=j,d.scw=i,BOOMR.addVar(d)},ifStop:function(){return BOOMR.debug("inside ifstop method.."),null!==BOOMR.utils.getCookie("SE")}};BOOMR.plugins.RUM={is_complete:function(){return!0},init:function(a){BOOMR.debug("inside RUM plugin init");var c,d=["customer_id","status_code"];for(a||(a={}),c=0;c<d.length;c++)void 0!==a[d[c]]&&(b[d[c]]=a[d[c]]);return BOOMR.subscribe("before_beacon",function(a){return b.ifStop()||b.done(a),this}),this}}}(window),BOOMR.t_end=(new Date).getTime(),"undefined"==typeof BOOMRSETTINGS&&(BOOMRSETTINGS={}),BOOMR.init(BOOMRSETTINGS);