cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can an Angular Application be configured as Application?

Hi, 

Currently, our Angular application is configured as "User Experience", We are facing the below issues:

1. We want to trigger an alert when there is a specific HTTP code in the response ex: 500, . While configuring health rules, there is no option to select a specific error code.

2. Anomalies are not detected even through enabled the option to overcome these issues

 

Can we configure our application as "Application" so that will give more options to configure the health rules? 

21 REPLIES 21

Thank you very much and appreciate for your support. 

I have below question:

As you know our application is configured as "EUM" and when any java script error occurred / AJAX error occurred we are not getting the meaningful error message. 

Currently we are getting {"status":"500","message":""} and also please refer to the screen shot.

ArjunasettyMurahari_0-1629847427590.png

How we can capture the right error message instead of very generic message? 

What configuration/java script code do we need to add/modify so that will capture data? 

Please find current index.html and adrum.js file as inline code here.

index.html

 

<!doctype html>
<html lang="en" dir="ltr">
<head>
  <script>
  (function (p, r, m) {
    m = p.match(r);
    !!m && !!m[2] ? document.write('<base href="' + (m ? m[0] : '') + '/" />') : null;
  })(location.pathname, /^\/shiponline(\/([a-z]{2}-[a-z]{2}))?/i);
  </script>

  <script>
    /* Allow return from legacy */
    (function () {
      if (window.location.search.substr(1).includes('legacy=true')) {
        window.localStorage.removeItem('legacyShipping');
        window.localStorage.removeItem('legacyShipping_ts');
        window.location.href = window.location.href.replace(window.location.search, '');
      }})();
  </script>

  <meta charset="utf-8">
  <title i18n="The title element of the page | text that appears in the tab">
    Create a Shipment - XXX Shipment Creation
  </title>

  <!--change description for content-->
  <meta name="description"
        content="Easily compare and calculate Express, Ground, and Freight shipping rates to get the fastest delivery times available for all your domestic and international shipments">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  <link rel="icon"
        type="image/png"
        href="https://www.XXX.com/images/c/s1/fx-favicon.ico">
  <link rel="stylesheet"
        type="text/css"
        href="https://www.XXX.com/etc/clientlibs/XXX/commoncore.min.css">
  <!--PLACEHOLDER FOR SCRIPT TAG TO INCLUDE GOOGLE MAPS API LINK-->
  <style type="text/css">
    .fdx-c-static-loading-indicator-container {
      text-align: center;
      padding: 30px 0;
      background: #f2f2f2;
      min-height: 1000px;
    }

    .fdx-c-static-loading-indicator {
      display: inline-block;
      position: relative;
      width: 4rem;
      height: 4rem;
      overflow: hidden;
    }

    .fdx-c-static-loading-indicator__part {
      position: absolute;
      box-sizing: border-box;
      left: 0;
      right: 0;
      bottom: 0;
      top: 0;
      margin: 2px;
      border-width: 2px;
      border-style: solid;
      border-color: #4d148c transparent transparent;
      border-radius: 50%;
      -webkit-animation: 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite static-loading-indicator;
      animation: 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite static-loading-indicator;
    }

    .fdx-c-static-loading-indicator__part:nth-child(1) {
      border-color: #58595b;
      opacity: 0.15;
    }

    .fdx-c-static-loading-indicator__part:nth-child(2) {
      -webkit-animation-delay: -0.24s;
      animation-delay: -0.24s;
    }

    .fdx-c-static-loading-indicator__part:nth-child(3) {
      -webkit-animation-delay: -0.36s;
      animation-delay: -0.36s;
    }

    .fdx-c-static-loading-indicator__part:nth-child(4) {
      -webkit-animation-delay: -0.5s;
      animation-delay: -0.5s;
    }

    .fdx-c-static-loading-indicator--white .fdx-c-static-loading-indicator__part {
      border-color: #fff transparent transparent;
    }

    .fdx-c-static-loading-indicator--white .fdx-c-static-loading-indicator__part:nth-child(1) {
      border-color: transparent;
    }

    @-webkit-keyframes static-loading-indicator {
      0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
      }

      100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }

    @keyframes static-loading-indicator {
      0% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
      }

      100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
      }
    }
  </style>
  <script>
    if (!FDX) {
      var FDX = {};
    }
    FDX.CAAS = {
      channel: 'XXX.com|caas|xxx',
      pagePath: 'default'
    };
    FDX.DATALAYER = {};
    FDX.DATALAYER.event = [];
    FDX.DATALAYER.page = {
      pageInfo: {
        pageName: "XXX",
        locale: "en_us",
        language: "en",
        historicalPageName: "",
        region: "us",
        country: "us",
        pagePath: "/"
      },
      category: {
        pageType: "application",
        primaryCategory: "content|application",
        isApplication: "true",
        appName: "XXX-mags"
      },
      button: {
        data: ""
      }
    };
  </script>
</head>
<body>
  <link async rel="preload" href="https://cdn.optimizely.com/js/19595420443.js" as="script">
  <link rel="preconnect" href="//logx.optimizely.com">
  <script async src="https://cdn.optimizely.com/js/19595420443.js"></script>
  <!--Script to handle google authorization failures. -->
  <script>
    function gm_authFailure() {
      document.dispatchEvent(new Event('GOOGLE_AUTH_FAILURE'));
      google = undefined;
    };
  </script>
  <!--Script to load Google places library. -->
  <script
    src="https://maps.googleapis.com/maps/api/js?client=gme-XXXcorporation1&libraries=places&channel=MAGS"></script>
  <!--Script to listen to Login Event from Header.-->

  <script charset='UTF-8'>
    // Load AppD scripts for test levels and production environments.
    if (window.location.host.indexOf('localhost') != 0) {
      window['adrum-start-time'] = new Date().getTime();
      var hostName = window.location.host;
      (function (config) {
        if (window.location.host.indexOf('www.XXX.com') === 0) {
          config.appKey = 'AD-AAB-XXX-YYY';  // Production Key
        } else {
          config.appKey = 'AD-AAB-XXX-YYY';  // Test Level Key
        }
        window["adrum-app-key"] = config.appKey;
        config.adrumExtUrlHttp = 'http://' + hostName + '/shiponline/appd';
        config.adrumExtUrlHttps = 'https://' + hostName + '/shiponline/appd';
        config.fetch = true;
        config.angular = true;
        config.isZonePromise = true;
        config.beaconUrlHttp = 'http://col.eum-appdynamics.com';
        config.beaconUrlHttps = 'https://col.eum-appdynamics.com';
        config.xd = {enable: true};
        config.spa = {"spa2": true};

      })(window['adrum-config'] || (window['adrum-config'] = {}));

      //Load Adrum.js file
      var script = document.createElement('script');
      script.type='text/javascript';
      script.src='https://' + hostName + '/shiponline/appd/adrum.js';
      document.getElementsByTagName('head')[0].appendChild(script);
    }
  </script>

  <script>
    if (!window.sessioncamConfiguration) {
      window.sessioncamConfiguration = new Object();
    }
    window.sessioncamConfiguration.elementsToRemove='.pac-item';
  </script>

  <!-- MAGS Application Bootstrap selector -->
  <fx-mags-root></fx-mags-root>
  <div class="app-loading">
    <div class="fdx-c-static-loading-indicator-container">
      <div class="fdx-c-static-loading-indicator">
        <div class="fdx-c-static-loading-indicator__part"></div>
        <div class="fdx-c-static-loading-indicator__part"></div>
        <div class="fdx-c-static-loading-indicator__part"></div>
        <div class="fdx-c-static-loading-indicator__part"></div>
      </div>
    </div>
  </div>
</body>
</html>

 

adrum.js

 

;/* Version 7f7b11e2ec93e71bae6b513f9fdfe436 v:20.9.0.3268, c:8e37d36c5ab2998302780023f430589606906a17, b:20.9.0.3268 */(function(){new function(){if(!window.ADRUM&&!0!==window["adrum-disable"]){var k=window.ADRUM={},y=window.console,A=y&&"function"==typeof y.log?y:{log:function(){}};window["adrum-start-time"]=window["adrum-start-time"]||(new Date).getTime();var u=this&&this.Bc||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,l){a.__proto__=l}||function(a,l){for(var e in l)l.hasOwnProperty(e)&&(a[e]=l[e])};return function(b,l){function e(){this.constructor=b}a(b,l);b.prototype=null===l?Object.create(l): (e.prototype=l.prototype,new e)}}();(function(a){(function(a){a.setUpMonitors=function(){for(var a=[],b=0;b<arguments.length;b++)a[b]=arguments[b];for(b=0;b<a.length;b++){var c=a[b];c&&c.setUp()}}})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){function l(a){return b.refs.slice.apply(a,b.refs.slice.call(arguments,1))}function e(a,f){return c(b.refs.setTimeout.apply)?b.refs.setTimeout.apply(window,arguments):b.refs.setTimeout(a,f)}function c(a){return"undefined"!==typeof a&&null!== a}function f(a){return"object"==typeof a&&!b.isArray(a)&&null!==a}function g(a){return"function"==typeof a||!1}function n(a){return"string"==typeof a}function m(a){return"number"==typeof a}function q(a,c){for(var m in c){var g=c[m];if(t(c,m)){var n=a[m];f(g)&&f(n)?q(n,g):b.isArray(n)&&b.isArray(g)?a[m]=n.concat(g):a[m]=g}}return a}function t(a,b){return Object.prototype.hasOwnProperty.call(a,b)&&c(a[b])}function p(a){return n(a)?a.replace(/^\s*/,"").replace(/\s*$/,""):a}function r(){return b.refs.la&& g(b.refs.la.now)}function k(){return r()?b.refs.round(b.refs.la.now()+x()):(new Date).getTime()}function x(){var a=b.refs.la,a=a&&a.timing&&m(a.timing.navigationStart)?a.timing.navigationStart:window["adrum-start-time"];c(a)||(a=k());return a}function s(a,b){var c=Array.prototype[a];return c?v(c):B(a,b)}function v(a){return function(c){return a.apply(c,b.refs.slice.call(arguments,1))}}function B(a,b){return function(f,m){if(!c(f))throw new TypeError(a+" called on null or undefined");if(!g(m))throw new TypeError(m+ " is not a function");return b.apply(null,arguments)}}function C(a,b,c){var f=Object(a),m=f.length>>>0,g=0;if(3>arguments.length){for(;g<m&&!(g in f);)g++;if(g>=m)throw new TypeError("Reduce of empty array with no initial value");c=f[g++]}for(;g<m;g++)g in f&&(c=b(c,f[g],g,f));return c}function z(a,c,f){return b.reduce(a,function(a,b,g,m){a[g]=c.call(f,b,g,m);return a},Array(a.length>>>0))}function D(a,c,f){return b.reduce(a,function(a,b,g,m){c.call(f,b,g,m)&&a.push(b);return a},[])}function E(a, b,c){a=Object(a);for(var f=a.length>>>0,g=0;g<f;g++)if(g in a&&b.call(c,a[g],g,a))return!0;return!1}function F(a,c,g){return!b.some(a,function(a){return!c.call(g,a)})}function N(a,c,g){b.reduce(a,function(a,b,f,m){c.call(g,b,f,m)},void 0)}b.refs={isArray:Array.isArray,toString:Object.prototype.toString,slice:Array.prototype.slice,setTimeout:window.setTimeout,setInterval:window.setInterval,la:window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance,assign:Object.assign, round:Math.round};b.xa=l;b.oSTO=e;b.isCORSSupported=function(){var a=window.JSON&&g(JSON.stringify);return c(window.XMLHttpRequest)&&"withCredentials"in new XMLHttpRequest&&a};b.isDefined=c;b.gl=function(a){return"number"===typeof a&&!window.isNaN(a)};b.isArray=g(b.refs.isArray)&&g(b.refs.isArray.bind)?b.refs.isArray.bind(Array):function(a){return b.refs.toString.call(a)===b.refs.toString.call([])};b.isObject=f;b.isFunction=g;b.isString=n;b.isNumber=m;b.isBoolean=function(a){return"boolean"==typeof a}; b.max=function(a,b){return Math.max(isNaN(a)?Number.NEGATIVE_INFINITY:a,isNaN(b)?Number.NEGATIVE_INFINITY:b)};b.jc=e;b.so=function(a,b){e(a,b||1E4)};b.addEventListener=function(b,c,g,f){function m(){try{return g.apply(this,l(arguments))}catch(f){a.exception(f,"M1",c,b,f)}}void 0===f&&(f=!1);a.isDebug&&a.log("M0",c,b);m.I=!0;b.addEventListener?b.addEventListener(c,m,f):b.attachEvent&&b.attachEvent("on"+c,m)};b.loadScriptAsync=function(b){var c=document.createElement("script");c.type="text/javascript"; c.async=!0;c.src=b;var f=document.getElementsByTagName("script")[0];f?(f.parentNode.insertBefore(c,f),a.log("M2",b)):a.log("M3",b)};b.mergeJSON=q;b.hasOwnPropertyDefined=t;b.pf=function(a,c){if(b.isFunction(Object.getPrototypeOf))for(;b.isDefined(a)&&!t(a,c);)a=Object.getPrototypeOf(a);return a};b.en=function(a){return c(a)?b.isArray(a)?a:[a]:[]};b.xo=function(a,b){return null!=a&&a.slice(0,b.length)==b};b.generateGUID=function(a){return c(a)&&g(a.getRandomValues)&&function(){function b(a){a=a.toString(16); return"0000".substr(a.length)+a}var c=new Uint16Array(8);a.getRandomValues(c);return b(c[0])+b(c[1])+"_"+b(c[2])+"_"+b(c[3])+"_"+b(c[4])+"_"+b(c[5])+b(c[6])+b(c[7])}}(window.crypto||window.msCrypto)||function(){return"xxxxxxxx_xxxx_4xxx_yxxx_xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})};b.tryExtractingErrorStack=function(a){return a?(a=a.stack)&&"string"===typeof a?a:null:null};b.trim=p;b.Tl=function(a){var b={},c,f;if(!a)return b;var g= a.split("\n");for(f=0;f<g.length;f++){var m=g[f];c=m.indexOf(":");a=p(m.substr(0,c)).toLowerCase();c=p(m.substr(c+1));a&&(b[a]=b[a]?b[a]+(", "+c):c)}return b};b.tryPeriodically=function(a,b,c,f){function g(){if(b())c&&c();else{var n=a(++m);0<n?e(g,n):f&&f()}}var m=0;g()};b.Re=function(a){return a.charAt(0).toUpperCase()+a.slice(1)};b.og=function(a){for(var b=[],c=1;c<arguments.length;c++)b[c-1]=arguments[c];return function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return a.apply(this, b.concat(c))}};b.Wn=r;b.now=k;b.Ra=x;b.Fn=C;b.reduce=s("reduce",C);b.En=z;b.map=s("map",z);b.Cn=D;b.filter=s("filter",D);b.Gn=E;b.some=s("some",E);b.Bn=F;b.every=s("every",F);b.Dn=N;b.forEach=s("forEach",N);b.Fj=function(a){return b.filter(a,c)};b.Kn=function(a){return[].concat.apply([],a)};b.Ti=c(window.Reflect)&&c(window.Reflect.construct)?function(b,c,f,g){try{return null!==c?window.Reflect.construct(c,f,g):b}catch(m){return a.monitor.ErrorMonitor.l(m),b}}:function(b,c,f){try{return null!==c&& c.apply(b,f)||b}catch(g){return a.monitor.ErrorMonitor.l(g),b}};b.Bc=function(){var a=Object.setPrototypeOf||function(a,b){var c=Object.getOwnPropertyNames(b),f;for(f in c)a[f]=b[f]};return function(b,c){function f(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();b.Oj=function(a){if(!b.isString(a))return a;var c={"&":"&","<":"<",">":">","'":"'",'"':""","/":"/"};return a.replace(/[&<>'"/]/g,function(a){return c[a]})};b.Bo= function(a){if(!b.isString(a))return a;var c={"&":"&","&":"&","&":"&","<":"<","<":"<","<":"<",">":">",">":">",">":">","'":"'","'":"'","'":"'",""":'"',""":'"',""":'"',"/":"/","/":"/","/":"/"};return a.replace(/&(?:amp|#0*38|#x0*26|lt|#0*60|#x0*3c|gt|#0*62|#x0*3e|apos|#0*39|#x0*27|quot|#0*34|#x0*22|sol|#0*47|#x0*2f);/g,function(a){a=a.replace(/0+\B/g,"");return c[a]})};b.Bj=function(a){var b;return function(){var c=this;b&& clearTimeout(b);b=e(function(){a.apply(c,arguments)},300)}};b.nk=function(a){var c=a.length;if(c)for(c-=1;0<=c;c--)if(b.isObject(a[c])&&a[c].adrumArgs)return c;return-1};b.Yc=function(a,c){var f=a.length,g;g=null;if(f)for(f-=1;0<=f;f--)if(b.isObject(a[f])&&a[f].adrumArgs){g=a[f].adrumArgs;g=g[c];break}return g};b.kd=function(){return c(window.__zone_symbol__Promise)||c(window.__zone_symbol__ZoneAwarePromise)}})(a.utils||(a.utils={}))})(k||(k={}));(function(a){var b=a.conf||(a.conf={});b.userConf= window["adrum-config"]||{};b.useHTTPSAlways=!0===b.userConf.useHTTPSAlways;b.modernBrowserFeaturesAvailable=a.utils.isDefined(window.addEventListener)&&a.utils.isCORSSupported()&&a.utils.isDefined(Array.prototype.forEach);b.spa2=b.userConf.spa&&b.userConf.spa.spa2&&(!0===b.userConf.spa.spa2||a.utils.isObject(b.userConf.spa.spa2));b.clearResTiming=b.userConf.spa&&a.utils.isObject(b.userConf.spa.spa2)&&a.utils.isDefined(b.userConf.spa.spa2.clearResTiming)?b.userConf.spa.spa2.clearResTiming:!0;b.disableTextForTesting= !0===b.userConf.disableTextForTesting;b.enablePrimaryMetrics=(!a.utils.isDefined(b.userConf.enablePrimaryMetrics)||!0===b.userConf.enablePrimaryMetrics)&&b.modernBrowserFeaturesAvailable;b.L=!1;b.devMode=!0===b.userConf.devMode;b.isZonePromise=!0===b.userConf.isZonePromise||!0===b.userConf.angular;b.fetch=!a.utils.isDefined(b.userConf.fetch)||!0==b.userConf.fetch;b.backTimeGap=Math.abs(b.userConf.backTimeGap)||0;b.neverSendImageBeacon=!a.utils.isDefined(b.userConf.beacon)||!a.utils.isDefined(b.userConf.beacon.neverSendImageBeacon)|| !0==b.userConf.beacon.neverSendImageBeacon;b.beaconUrlHttp=a.utils.isDefined(b.userConf.beaconUrlHttp)?b.userConf.beaconUrlHttp:"http://col.eum-appdynamics.com";b.beaconUrlHttps=a.utils.isDefined(b.userConf.beaconUrlHttps)?b.userConf.beaconUrlHttps:"https://col.eum-appdynamics.com";b.corsEndpointPath="/eumcollector/beacons/browser"+(b.spa2?"/v2":"/v1");b.imageEndpointPath="/eumcollector/adrum.gif?";b.appKey=b.userConf.appKey||window["adrum-app-key"]||"APP_KEY_NOT_SET";a=b.useHTTPSAlways||"https:"=== document.location.protocol;var l=b.userConf.adrumExtUrlHttp||"http://cdn.appdynamics.com",e=b.userConf.adrumExtUrlHttps||"https://cdn.appdynamics.com";b.adrumExtUrl=(a?e:l)+"/adrum-ext.7f7b11e2ec93e71bae6b513f9fdfe436.js";b.adrumXdUrl=e+"/adrum-xd.7f7b11e2ec93e71bae6b513f9fdfe436.html";b.agentVer="20.9.0.3268";b.sendImageBeacon=b.userConf.beacon&&b.userConf.beacon.sendImageBeacon||window["adrum-send-image-beacon"];window["adrum-geo-resolver-url"]?(l=window["adrum-geo-resolver-url"],e=l.indexOf("://"), -1!=e&&(l=l.substring(e+3)),l=(a?"https://":"http://")+l):(l=b.userConf.geoResolverUrlHttps||"",e=b.userConf.geoResolverUrlHttp||"",l=a?l:e);b.geoResolverUrl=l;b.useStrictDomainCookies=!0===window["adrum-use-strict-domain-cookies"];b.oi=10;b.ii=10;b.sendBeaconOnUnload=b.userConf.beacon&&!1===b.userConf.beacon.sendOnUnload?!1:!0})(k||(k={}));(function(a){function b(b,c,f,g){b=a.conf.beaconUrlHttps+"/eumcollector/error.gif?version=1&appKey="+f+"&msg="+encodeURIComponent(b.substring(0,500));g&&(b+="&stack=", b+=encodeURIComponent(g.substring(0,1500-b.length)));return b}function l(c,f){2<=k||(document.createElement("img").src=b(c,0,a.conf.appKey,f),k++)}function e(a){return 0<=a.location.search.indexOf("ADRUM_debug=true")||0<=a.cookie.search(/(^|;)\s*ADRUM_debug=true/)}function c(b){a.isDebug&&p.push(n(arguments).join(" | "))}function f(a){r.push(n(arguments).join(" | "))}function g(a){var b=n(arguments).join(" | ");c(b);l(b,null)}var n=a.utils.xa,m=a.utils.reduce,q=a.utils.isDefined;a.iDR=e;var t;(function(a){a[a.API_ERROR= 0]="API_ERROR";a[a.API_ERROR_INVALID_PARAMS=1]="API_ERROR_INVALID_PARAMS";a[a.API_ERROR_INVALID_CONFIG=2]="API_ERROR_INVALID_CONFIG";a[a.API_WARNING=3]="API_WARNING";a[a.API_WARNING_INEFFECTIVE_CONFIG=4]="API_WARNING_INEFFECTIVE_CONFIG"})(t=a.W||(a.W={}));a.Cb=["JS Agent API Error:","JS Agent API Error Invalid Parameters: ","JS Agent API Error Invalid Configs: ","JS Agent API Warning:","JS Agent API Warning Ineffective Config:"];a.Za=" a constructor is called as a function. Don't forget keyword new."; a.isDebug=e(document);a.apiMessageConsoleOut=q(a.conf.userConf)&&q(a.conf.userConf.log)&&!0===a.conf.userConf.log.apiMessageConsoleOut?!0:!1;var p=[],r=[];a.logMessages=p;a.apiMessages=r;a.log=c;a.jo=f;a.error=g;a.reportAPIMessage=function(b,c,g,m){var n=a.Zl.apply(this,arguments);f(n);a.apiMessageConsoleOut&&A.log(n);return n};a.exception=function(){if(!(1>arguments.length)){var b=n(arguments),c=a.utils.tryExtractingErrorStack(b[0]),b=b.slice(1);a.utils.isArray(b)&&(b=b.slice(0,20));b=b.join(" | "); a.log(b);l(b,c)}};a.assert=function(a){for(var b=1;b<arguments.length;b++);var c=n(arguments);a||(b=c[1],(c=c.slice(2))&&0<c.length?g("M4",b,c):g("M5",b))};a.dumpLog=a.isDebug?function(){return m(p,function(a,b){return a+b.replace(/\<br\/\>/g,"\n\t")+"\n"},"")}:function(){};a.ff=0;a.gf=0;a.P=a.isDebug&&a.utils.refs.la?function(){a.ff=a.utils.refs.la.now()}:function(){};a.Q=a.isDebug&&a.utils.refs.la?function(){a.gf+=a.utils.refs.la.now()-a.ff}:function(){};a.Zl=function(b,c,f,g){var m="",m="",n=(new window.Error).stack, e,n=a.utils.isString(n)?n.substring(5):n+"";q(e)||(e=a.utils.map(g,function(a){return null===a?"null":void 0==a?"undefined":""===a?"''":a}));switch(b){case t.ma:case t.on:m=a.Cb[b];m=q(f)?""+m+c+"\n in "+f+"("+e.join(", ")+")\n"+n:""+m+c+"\n"+n;break;case t.Zd:m=a.Cb[b];m=""+m+c+"\nin "+f+"("+e.join(", ")+")\n"+n;break;case t.nn:case t.Ah:m=a.Cb[b];m=""+m+c+", but "+f+"="+e.join(", ")+"\n"+n;break;default:m=a.Cb[t.ma],m=""+m+c+"\nin "+f+"("+e.join(", ")+")\n"+n}return m};a.cIEBU=b;var k=0;c("M6")})(k|| (k={}));(function(a){var b=function(){function a(b){this.max=b;this.Lc=0}a.prototype.Jk=function(){this.Wb()||this.Lc++};a.prototype.Wb=function(){return this.Lc>=this.max};a.prototype.reset=function(){this.Lc=0};return a}(),l=function(){function e(){this.Mb=[];this.Hd=new b(e.zi);this.nd=new b(e.si)}e.prototype.submit=function(b){this.push(b)&&a.initEXTDone&&this.processQ()};e.prototype.processQ=function(){for(var b=this.Ij(),f=0;f<b.length;f++){var g=b[f];"function"===typeof a.commands[g[0]]?(a.isDebug&& a.log("M7",g[0],g.slice(1).join(", ")),a.commands[g[0]].apply(a,g.slice(1))):a.error("M8",g[0])}};e.prototype.nl=function(a){return"reportXhr"===a||"reportPageError"===a};e.prototype.push=function(b){var f=b[0],g=this.nl(f),n=g?this.Hd:this.nd;if(n.Wb())return a.log("M9",g?"spontaneous":"non spontaneous",f),!1;this.Mb.push(b);n.Jk();return!0};e.prototype.Ij=function(){var a=this.Mb;this.reset();return a};e.prototype.size=function(){return this.Mb.length};e.prototype.reset=function(){this.Mb=[];this.Hd.reset(); this.nd.reset()};e.prototype.isSpontaneousQueueDead=function(){return this.Hd.Wb()};e.prototype.isNonSpontaneousQueueDead=function(){return this.nd.Wb()};return e}();l.zi=100;l.si=100;a.CommandExecutor=l})(k||(k={}));(function(a){a.q=new a.CommandExecutor;a.command=function(b){for(var l=1;l<arguments.length;l++);a.isDebug&&a.log("M10",b,Array.prototype.slice.call(arguments).slice(1).join(", "));a.q.submit(Array.prototype.slice.call(arguments))}})(k||(k={}));(function(a){(function(a){var l=function(){function a(){this.status= {}}a.prototype.setUp=function(){};a.prototype.set=function(a,b){this.status[a]=b};return a}();a.xc=l})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.xa,e=a.utils.isDefined;window.ADRUM.aop=b;b.support=function(a){return!a||"apply"in a};b.around=function(c,f,g,n,m){a.assert(b.support(c),"M11");c=c||function(){};return function(){if(a.isDebug)try{a.log("M12",n,l(arguments).join(", "))}catch(b){a.log("M13",e(b.stack)||b.toString())}var t=l(arguments),p,r=null;try{if(f&& (p=f.apply(this,t))){var k=a.utils.nk(p),r=p[k];-1!==k&&p.splice(k,1)}}catch(x){a.exception(x,"M14",n,x)}a.assert(!p||a.utils.isArray(p));k=void 0;try{k=c.apply(this,p||t)}catch(s){throw a.log(s,"M15",n,s),m?m(s):a.monitor.ErrorMonitor.l(s),s;}finally{try{g&&(r?(r.adrumArgs.origFuncResult=k,t.push(r)):e(k)&&(r={adrumArgs:{origFuncResult:k}},t.push(r)),g.apply(this,t))}catch(v){a.exception(v,"M16",n,v)}}return k}};b.before=function(a,f,g){return b.around(a,f,null,g)};b.after=function(a,f,g){return b.around(a, null,f,g)};b.forceWrap=function(b){var f=b.customDescriptorConfig||{},g=null,n=b.parentObject,m=b.property,q=b.setUpFunc,t=b.wrapNewFunctionAgain||!1,p=b.propertyWrappedFunctionName;if(n&&m){g=Object.getOwnPropertyDescriptor(n,m);if(!g||g.configurable){g?(delete g.writable,delete g.value):g={configurable:!0,enumerable:!0};var l=g.set,k=g.get;g.set=f.set||function(f){!0!==f.usedByAgent&&(e(l)&&l(arguments),e(b.Na)&&!t||!a.utils.isFunction(q)||q(f))};g.get=f.get||function(){var f=k?k():a.utils.refs[p]; e(b.Na)&&(f=b.Na);return f}}else a.log("M17",p);Object.defineProperty(n,m,g)}else a.error("M18")}})(a.aop||(a.aop={}))})(k||(k={}));(function(a){a=a.EventType||(a.EventType={});a[a.PageView=0]="PageView";a[a.Ajax=2]="Ajax";a[a.VPageView=3]="VPageView";a[a.Error=4]="Error";a[a.IFRAME=1]="IFRAME";a[a.ABSTRACT=100]="ABSTRACT";a[a.ADRUM_XHR=101]="ADRUM_XHR";a[a.NG_VIRTUAL_PAGE=102]="NG_VIRTUAL_PAGE"})(k||(k={}));(function(a){var b=a.events||(a.events={});b.T={};b.T[a.EventType.ABSTRACT]={guid:"string", url:"string",parentGUID:"string",parentUrl:"string",parentType:"number",timestamp:"number"};b.T[a.EventType.VPageView]={resTiming:"object"};b.T[a.EventType.NG_VIRTUAL_PAGE]={digestCount:"number"};b.T[a.EventType.Ajax]={method:"string",parentPhase:"string",parentPhaseId:"number",error:"object",parameter:"object",xhrStatus:"number",dataObject:"object"};b.T[a.EventType.ADRUM_XHR]={allResponseHeaders:"string"};b.T[a.EventType.Error]={msg:"string",line:"number",stack:"string"}})(k||(k={}));(function(a){var b= function(){function a(){this.ga={}}a.prototype.mark=function(a,b){l.mark.apply(this,arguments)};a.prototype.getTiming=function(a){return(a=this.getEntryByName(a))&&a.startTime};a.prototype.measure=function(a,b,g){l.measure.apply(this,arguments)};a.prototype.getEntryByName=function(a){return l.getEntryByName.call(this,a)};return a}();b.Kc=function(a){return l.Kc(a)};a.PerformanceTracker=b;var l;(function(b){var c=a.utils.hasOwnPropertyDefined,f=a.utils.Ra(),g=a.utils.now;b.mark=function(b,c){this.ga[b]= {name:b,entryType:"mark",startTime:a.utils.isDefined(c)?c:g(),duration:0}};b.measure=function(b,m,e){c(this.ga,m)&&c(this.ga,e)?this.ga[b]={name:b,entryType:"measure",startTime:m?this.ga[m].startTime:f,duration:(e?this.ga[e].startTime:g())-(m?this.ga[m].startTime:f)}:a.error("M19",c(this.ga,m)?e:m)};b.getEntryByName=function(a){return this.ga[a]||null};b.Kc=function(a){return a+f}})(l||(l={}))})(k||(k={}));(function(a){(function(b){function l(b,c){b=b||{};for(var n in b)c[n]=function(){var c=n,g= b[n];return function(b){var f="_"+c,n=this[f];if(a.utils.isDefined(b))if(typeof b===g)this[f]=b;else throw f="wrong type of "+c+" value, "+typeof b+" passed in but should be a "+g+".",a.reportAPIMessage(a.W.Zd,f,"ADRUM.report",Array.prototype.slice.call(arguments)),TypeError(f);return n}}()}function e(a){var b={},c;for(c in a){var m=a[c];b[m.start]=!0;b[m.end]=!0}return b}var c=function(){function b(c){this.perf=new a.PerformanceTracker;"Object"===this.constructor.name&&a.reportAPIMessage(a.W.ma, a.Za);this.timestamp(a.utils.now());this.guid(a.utils.generateGUID());this.url(document.URL);this.mc(c)}b.prototype.type=function(){return a.EventType.ABSTRACT};b.prototype.mc=function(b){if(a.utils.isObject(b))for(var c in b){var f=this[c]||this["mark"+a.utils.Re(c)];f&&a.utils.isFunction(f)&&f.call(this,b[c])}};b.Ec=function(a,b,c){return{guid:function(){return a},url:function(){return b},type:function(){return c}}};b.prototype.rk=function(){return b.Ec(this.parentGUID(),this.parentUrl(),this.parentType())}; b.prototype.parent=function(b){var c=this.rk();a.utils.isDefined(b)&&(a.utils.isFunction(b.guid)&&a.utils.isFunction(b.url)&&a.utils.isFunction(b.type)?(this.parentGUID(b.guid()),this.parentUrl(b.url()),this.parentType(b.type())):a.reportAPIMessage(a.W.ma,"object is not a valid EventIdentifier","EventTracker.parent",Array.prototype.slice.call(arguments)));return c};return b}();b.EventTracker=c;b.Oa=l;b.Le=function(b,c){b=b||{};var n=e(b),m;for(m in n)n=a.utils.Re(m),c["mark"+n]=a.utils.og(function(a, b){this.perf.mark(a,b)},m),c["get"+n]=a.utils.og(function(a){return this.perf.getTiming(a)},m)};l(b.T[a.EventType.ABSTRACT],c.prototype)})(a.events||(a.events={}))})(k||(k={}));(function(a){(function(b){var l=function(b){function c(f){f=b.call(this,f)||this;f.constructor!=c&&a.reportAPIMessage(a.W.ma,a.Za,"ADRUM.events.Error",[]);return f}u(c,b);c.prototype.type=function(){return a.EventType.Error};return c}(b.EventTracker);b.Error=l;b.Oa(b.T[a.EventType.Error],l.prototype)})(a.events||(a.events= {}))})(k||(k={}));(function(a){(function(b){var l=function(b){function c(){var f=null!==b&&b.apply(this,arguments)||this;f.wl=function(b){var n=b.message,m=b.filename,e=b.lineno,t=b.colno;b=b.error;a.log("M20");if(a.utils.isDefined(b)||c.Zb)a.log("M21"),c.Zb=!0,f.Ia(n,m,e,t,b)};return f}u(c,b);c.l=function(b){a.monitor.ha.Ia(b.message||b.description,b.fileName||b.filename,b.lineNumber,b.columnNumber,b)};c.prototype.setUp=function(){var c=this;b.prototype.setUp.call(this);a.utils.addEventListener(window, "error",this.wl,!0);a.listenForErrors=function(){c.Xf()};this.Xf()};c.prototype.im=function(){c.Sc=0};c.prototype.Ia=function(b,g,n,m,e){c.Sc>=a.conf.oi?a.log("M22"):(m=a.utils.tryExtractingErrorStack(e),a.command("reportPageError",new a.events.Error(a.utils.mergeJSON({msg:b+"",url:a.utils.isString(g)?g:void 0,line:a.utils.isNumber(n)?n:void 0,stack:m},this.status))),c.Sc++,c.hadErrors=!0)};c.prototype.Xf=function(){var b=this;c.Zb=!1;a.aop.support(window.onerror)?(window.onerror=a.aop.around(window.onerror, function(g,n,m,e,t){c.Zb?a.log("M23"):c.jd?a.log("M25"):(a.log("M24"),b.Ia(g,n,m,e,t),c.jd=!0)},function(){a.log("M26");c.jd=!1},"onerror"),a.log("M27")):a.log("M28")};return c}(b.xc);l.jd=!1;l.Sc=0;l.hadErrors=!1;l.Zb=!1;b.ErrorMonitor=l;b.ha=new b.ErrorMonitor})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=a.log,e=a.aop.after,c=function(c){function g(){return null!==c&&c.apply(this,arguments)||this}u(g,c);g.prototype.setUp=function(){a.utils.map(["error","exception"], function(b){var c=A[b];a.utils.isFunction(c)&&a.aop.support(c)?(l("M29",b),A[b]=e(c,function(a){l("M30",b,a);g.Wi(a)})):l("M31",b)});b.ha.Ia=e(b.ha.Ia,function(){0<g.pa.length?(l("M32"),g.pa=[]):l("M33")})};g.Wi=function(b){g.pa.length>=a.conf.ii?l("M34"):a.utils.isString(b)?(l("M35",b),g.pa.push(b),a.utils.oSTO(g.Dg)):a.utils.isObject(b)?(b=a.utils.toJSONString(b),null!==b?(l("M36",b),g.pa.push(b),a.utils.oSTO(g.Dg)):a.error("M37")):l("M38",typeof b)};g.Dg=function(){0<g.pa.length?(l("M39"),b.ha.Ia(g.pa.join("\n")), g.pa=[]):l("M40")};return g}(b.xc);c.pa=[];b.qn=c;b.wj=new c})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=function(){function b(){}b.setUp=function(){b.perf=a.utils.refs.la;a.utils.isObject(b.perf)&&a.utils.isObject(b.perf.timing)||(b.perf=void 0)};return b}();l.perf=null;b.PerformanceWrapper=l})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=function(){function e(){this.navTiming=null}e.prototype.Ye=function(){var c=b.PerformanceWrapper.perf; if(c=c&&c.timing)if(c.navigationStart&&c.navigationStart<=c.loadEventEnd){var f={},g;for(g in c){var n=c[g];"number"===typeof n&&(f[g]=n)}this.navTiming=f}else a.log("M42");else a.log("M41")};e.prototype.setUp=function(){b.PerformanceWrapper.setUp()};return e}();b.NavTimingMonitor=l;b.navMonitor=new b.NavTimingMonitor})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=function(){function e(){this.ud=null;b.PerformanceWrapper.setUp();this.resourceBuffer=[];this.basePageResourceBuffer= [];this.se=500;this.Ac=150;this.Hi=3E3;this.setResourceTimingBufferSize();this.um()}e.prototype.setUp=function(){b.PerformanceWrapper.setUp();a.utils.isDefined(b.PerformanceWrapper.perf)&&a.utils.isFunction(b.PerformanceWrapper.perf.getEntriesByType)?a.utils.isFunction(b.PerformanceWrapper.perf.addEventListener)?b.PerformanceWrapper.perf.addEventListener("resourcetimingbufferfull",this.hb.bind(this)):"onresourcetimingbufferfull"in b.PerformanceWrapper.perf?a.utils.isFunction(b.PerformanceWrapper.perf.td)? b.PerformanceWrapper.perf.td=a.aop.around(b.PerformanceWrapper.perf.td,this.hb.bind(this)):b.PerformanceWrapper.perf.td=this.hb.bind(this):a.utils.refs.setInterval.call(window,this.lm.bind(this),this.Hi):a.log("M43");this.ym();this.mm()};e.prototype.ym=function(){var c=a.conf.userConf&&a.conf.userConf.resTiming&&a.conf.userConf.resTiming.bufSize;a.utils.isDefined(b.PerformanceWrapper.perf)&&a.utils.isFunction(b.PerformanceWrapper.perf.setResourceTimingBufferSize)&&a.utils.isNumber(c)&&0<c&&(this.Ac= c)};e.prototype.mm=function(){var c=b.PerformanceWrapper.perf;a.utils.isDefined(c)&&(a.utils.isFunction(c.setResourceTimingBufferSize)&&(c.setResourceTimingBufferSize=a.aop.around(c.setResourceTimingBufferSize,function(){a.utils.isDefined(arguments)&&a.utils.isDefined(arguments[0])&&(this.Ac=arguments[0])}.bind(this))),a.utils.isFunction(c.clearResourceTimings)&&(c.clearResourceTimings=a.aop.around(c.clearResourceTimings,function(){this.hb()}.bind(this))))};e.prototype.Xe=function(){this.basePageResourceBuffer= this.of()};e.prototype.hb=function(){this.resourceBuffer=this.of()};e.prototype.lm=function(){this.kb().length>=this.Ac&&this.hb()};e.prototype.kb=function(){var c=b.PerformanceWrapper.perf,f=[];c&&c.getEntriesByType&&(c=c.getEntriesByType("resource"))&&c.length&&0<c.length&&c.unshift&&(f=c);0==f.length&&a.log("M44");return f};e.prototype.vk=function(b,f){return a.utils.filter(this.resourceBuffer,function(a){return b+a.startTime>=f})};e.prototype.wk=function(a,b){this.resourceBuffer=this.resourceBuffer.concat(this.kb()); var g=this.vk(a,b);this.clearResourceTimings();this.resourceBuffer=[];return g};e.prototype.um=function(){var c=b.PerformanceWrapper.perf;a.utils.isDefined(c)&&a.utils.isFunction(c.clearResourceTimings)&&(this.ud=c.clearResourceTimings.bind(c))};e.prototype.setResourceTimingBufferSize=function(){var c=b.PerformanceWrapper.perf,f=a.conf.userConf&&a.conf.userConf.resTiming&&a.conf.userConf.resTiming.bufSize;!a.utils.isNumber(f)||0>=f?a.log("M45"):c&&a.utils.isFunction(c.setResourceTimingBufferSize)? c.setResourceTimingBufferSize(f):a.log("M46")};e.prototype.of=function(){var b=this.kb();if(this.resourceBuffer.length+b.length>this.se)return a.log("M47"),this.resourceBuffer.concat(b.slice(0,this.se-this.resourceBuffer.length));this.clearResourceTimings();return this.resourceBuffer.concat(b)};e.prototype.clearResourceTimings=function(){a.conf.clearResTiming&&a.utils.isFunction(this.ud)&&this.ud()};return e}();b.ResourceMonitor=l;b.resourceMonitor=new b.ResourceMonitor})(a.monitor||(a.monitor={}))})(k|| (k={}));(function(a){(function(a){function l(a){return a.nodeName.toLowerCase()}function e(a){return"video"==l(a)}function c(a){return"image"==l(a)}function f(a){return"svg"==l(a)}function g(a){return a?0===a.lastIndexOf("video/",0)||0===a.lastIndexOf("image/",0)||0===a.lastIndexOf("font/",0)||0===a.lastIndexOf("model/",0)||0===a.lastIndexOf("text/",0):!1}function n(a){return"embed"==l(a)&&(a.type?g(a.type):g(a.getAttribute("type")))}function m(a){return"object"==l(a)&&(a.type?g(a.type):g(a.getAttribute("type")))} function q(a){return"img"==l(a)}a.mk=l;a.Tf=e;a.bo=c;a.ao=f;a.Lf=function(a){return"canvas"==l(a)};a.Rf=function(a){return a instanceof Text};a.Zn=g;a.qf=function(a){return(a.right-a.left)*(a.bottom-a.top)};a.Yn=n;a.$n=m;a.Xn=q;a.ob=function(a){return q(a)||m(a)||n(a)||e(a)||c(a)||f(a)};a.pb=function(a){a=window.getComputedStyle(a);return"none"!==a.getPropertyValue("display")&&"hidden"!==a.getPropertyValue("visibility")};a.Sb=function(a){var b="";a instanceof HTMLImageElement?b=a.currentSrc||a.src: a instanceof HTMLEmbedElement?b=a.src:a instanceof HTMLObjectElement?b=a.data:"undefined"!=typeof HTMLVideoElement&&a instanceof HTMLVideoElement?b=a.currentSrc||a.src:a instanceof SVGImageElement&&(b=a.href.baseVal);return b};a.Sn=function(a){var b="";a instanceof HTMLImageElement?b="img":a instanceof HTMLEmbedElement?b="embed":a instanceof HTMLObjectElement?b="object":"undefined"!=typeof HTMLVideoElement&&a instanceof HTMLVideoElement?b="video":a instanceof SVGImageElement&&(b="image");return b}; a.Zc=function(c){return a.isDefined(c.attributes)?c.attributes.getNamedItem("src")||c.attributes.getNamedItem("href"):void 0}})(a.utils||(a.utils={}))})(k||(k={}));(function(a){var b=function(){function b(){this.Zk=0.2;this.Xa=0;this.mb=!1;this.Aa=a.conf.spa2;this.tc=this.uc=this.h=this.da=this.ya=0;this.viewport={top:0,left:0,bottom:this.tc,right:this.uc};this.Va=0}b.prototype.setUp=function(){this.R={};this.ec={};this.da=a.utils.now();this.h=0;var b=window.MutationObserver;this.We();a.utils.addEventListener(window, "resize",a.utils.Bj(this.We).bind(this));a.utils.isDefined(b)&&(a.utils.isDefined(window.Zone)&&a.utils.isDefined(window.Zone.__symbol__("MutationObserver"))?this.bc=new (window[window.Zone.__symbol__("MutationObserver")])(this.jg.bind(this)):this.bc=new b(this.jg.bind(this)),this.bc.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["src","href"]}),a.log("M48"))};b.prototype.jg=function(b){var c=this;a.P();b.forEach(function(a){switch(a.type){case "childList":[].slice.call(a.addedNodes).forEach(function(a){c.Oe(a)}); break;case "attributes":c.Oe(a.target)}});a.Q()};b.prototype.We=function(){this.uc=a.utils.isDefined(window.innerWidth)&&a.utils.isDefined(document.documentElement.clientWidth)?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth;this.tc=a.utils.isDefined(window.innerHeight)&&a.utils.isDefined(document.documentElement.clientHeight)?Math.min(window.innerHeight,document.documentElement.clientHeight): window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight;a.log("M49",this.uc,this.tc);this.viewport={top:0,left:0,bottom:this.tc,right:this.uc}};b.prototype.start=function(){a.P();this.setUp();a.Q();a.log("M50")};b.prototype.reset=function(){this.R={};this.Xa=0;this.ec={};this.Va=0;a.log("M51")};b.prototype.Oe=function(b){a.P();var c=a.utils.now();a.utils.ob(b)&&!b.isAdrumTrackedNode?(this.mb||(this.M=this.M.bind(this),this.l=this.l.bind(this), this.M.I=!0,this.mb=this.l.I=!0),this.h++,a.log("M52",this.h),c=a.utils.Zc(b),c=a.utils.isDefined(c)?c.value:null,a.utils.Tf(b)?(b.addEventListener("loadeddata",this.M),a.log("M53",c)):(b.addEventListener("load",this.M),a.log("M54",c)),b.addEventListener("error",this.l),b.isAdrumTrackedNode=!0):a.utils.Lf(b)&&!b.adrumNodeId?(a.log("M55"),this.Kb(b,c)):a.utils.Rf(b)&&(this.Xa=Math.max(this.Xa,c));a.Q()};b.prototype.M=function(b){a.P();var c=a.utils.now();this.da=c;b=b.target;var f=a.utils.Sb(b);a.utils.isDefined(f)&& 0<f.length?"data:"!=f.substring(0,5)||b.adrumNodeId?this.Yi(f,c,b):(a.log("M56"),this.Kb(b,c)):b instanceof SVGElement&&!b.adrumNodeId&&(a.log("M57"),this.Kb(b,c));b&&b.isAdrumTrackedNode&&(this.ub(b),this.h--,a.log("M58",this.h));a.Q()};b.prototype.l=function(b){var c=b.target;c&&c.isAdrumTrackedNode&&(this.ub(c),this.h--,b=a.utils.Sb(b.target),a.log("M59",b))};b.prototype.ub=function(a){a.removeEventListener("load",this.M);a.removeEventListener("error",this.l)};b.prototype.Ub=function(b){return this.nb(b)&& a.utils.pb(b)};b.prototype.Yi=function(b,c,f){a.utils.isDefined(this.R[b])?this.Ub(f)&&(this.R[b]=c,a.log("M60",b,c)):(this.R[b]=c,a.log("M61",b,c))};b.prototype.Kb=function(b,c){a.log("M62",this.Va,c,b.outerHTML);b.adrumNodeId=this.Va;this.ec[this.Va]=c;this.Va+=1};b.prototype.Jc=function(b){var c=this;a.j.Gb.Ga&&(this.ya=b);var f=0,g=0,n=this.tk(this.ya);a.log("M63",n);[].slice.call(document.getElementsByTagName("*")).forEach(function(m){var t=a.utils.Sb(m);delete m.isAdrumTrackedNode;if(a.utils.isDefined(t)&& 0<t.length)if(a.log("M64",t),a.utils.isDefined(c.R[t])){var p=c.R[t];a.log("M65",t,p);a.utils.pb(m)&&(a.log("M66",t,p),c.Aa&&(a.log("M67",g,p,b),g=Math.max(g,p-b),a.log("M68",t,g)),c.nb(m)&&(a.log("M69",f,p,b),f=Math.max(f,p-b),a.log("M70",t,f)))}else{if(a.utils.ob(m)&&a.utils.pb(m)&&(p=c.xf(t),a.utils.isDefined(p))){var l=p.startTime-(b-c.ya),k=p.duration*n+l;a.log("M71",t,k);a.log("M72",p.duration,l);c.Aa&&(g=Math.max(g,k),a.log("M73",t,g));c.nb(m)&&(f=Math.max(f,k),a.log("M74",t,f))}}else a.utils.isDefined(m.adrumNodeId)&& (a.utils.isDefined(c.ec[m.adrumNodeId])&&(p=c.ec[m.adrumNodeId],a.utils.pb(m)&&(c.Aa&&(g=Math.max(g,p-b),a.log("M75",m.adrumNodeId,p)),c.nb(m)&&(f=Math.max(f,p-b),a.log("M76",m.adrumNodeId,p)))),delete m.adrumNodeId)});a.log("M77",f,g);this.ak().forEach(function(m){var t=m.url;m=m.Ub;var p=c.xf(t);a.utils.isDefined(p)&&(p=p.duration*n+(p.startTime-(b-c.ya)),c.Aa&&(a.log("M78",t,p),g=Math.max(g,p)),m&&(a.log("M79",t,p),f=Math.max(f,p)))});if(!a.conf.disableTextForTesting){var m=this.Xa-b;0==f&&(a.log("M80"), f=Math.max(f,m));this.Aa&&0==g&&(a.log("M81"),g=Math.max(g,m))}f|=0;g|=0;a.log("M82",b,this.ya);a.log("M83",window.location.href);a.log("M84",f,g);return{vct:f,pct:g}};b.prototype.ok=function(a){a=a.getBoundingClientRect();var b=document.documentElement||document.body,f=a.top+(window.pageYOffset||b.scrollTop)-(b.clientTop||0),b=a.left+(window.pageXOffset||b.scrollLeft)-(b.clientLeft||0);return{top:Math.round(f),left:Math.round(b),bottom:Math.round(f)+a.height,right:Math.round(b)+a.width}};b.prototype.nb= function(b){b=this.ok(b);if(this.bl(b))return a.log("M85"),!1;var c={top:Math.max(this.viewport.top,b.top),left:Math.max(this.viewport.left,b.left),bottom:Math.min(this.viewport.bottom,b.bottom),right:Math.min(this.viewport.right,b.right)},c=a.utils.qf(c);b=a.utils.qf(b);if(0!=b&&c/b>=this.Zk)return!0;a.log("M86");return!1};b.prototype.bl=function(a){return a.top>this.viewport.bottom||a.bottom<this.viewport.top||a.right<this.viewport.left||a.left>this.viewport.right?!0:!1};b.prototype.Gj=function(){a.utils.isDefined(this.bc)&& this.bc.disconnect();a.log("M87")};b.prototype.tk=function(b){var c=this,f=0,g=0;this.zf().forEach(function(n){var m=n.name;if(a.utils.isDefined(c.R[m])){var q=c.R[m]-b-n.startTime,t=n.duration;a.log("M88",m,b,n.startTime,c.R[m],t);t&&0<q&&(f+=q/t,g++)}});return 0<g?f/g:1};b.prototype.ak=function(){var b=this,c=[];[].slice.call(document.getElementsByTagName("*")).forEach(function(f){if(a.utils.pb(f)){var g=b.$j(f);g&&(b.nb(f)?c.push({url:g,Ub:!0}):b.Aa&&c.push({url:g,Ub:!1}))}});return c};b.prototype.$j= function(b){if(b&&b.style){var c=window.getComputedStyle(b).getPropertyValue("background-image");c||(c=(b.currentStyle||b.style).backgroundImage);b=this.yk(c);return a.utils.isDefined(b)&&a.utils.isDefined(b.substr)&&"undefined"===b.substr(b.lastIndexOf("/")+1)?void 0:b}};b.prototype.yk=function(a){if(a&&a.match("url"))return a.replace('url("',"").replace('")',"")};b.prototype.xf=function(b){for(var c=0,f=this.zf();c<f.length;c++){var g=f[c];if(a.utils.isDefined(g.name)&&0<=g.name.indexOf(b))return g}}; b.prototype.zf=function(){return a.j.Gb.Ga?a.monitor.resourceMonitor.basePageResourceBuffer:a.monitor.resourceMonitor.resourceBuffer.concat(a.monitor.resourceMonitor.kb())};return b}();a.yn=b;a.J=new b})(k||(k={}));(function(a){(function(b){var l=function(){function e(){this.mb=!1;this.Nc=a.conf.spa2?5E3:1E3;this.qb=a.conf.userConf&&a.conf.userConf.navComplete&&a.conf.userConf.navComplete.maxResourceQuietTime?a.conf.userConf.navComplete.maxResourceQuietTime:this.Nc}e.prototype.Tg=function(){a.P(); this.lb(Element.prototype,"innerHTML",this.ug.bind(this));this.lb(HTMLElement.prototype,"innerHTML",this.ug.bind(this));this.lb(HTMLImageElement.prototype,"src",this.rb.bind(this));this.lb(HTMLScriptElement.prototype,"src",this.rb.bind(this));this.lb(HTMLLinkElement.prototype,"href",this.rb.bind(this));this.Qk();this.gd("append");this.gd("appendChild");this.gd("insertBefore");a.Q()};e.prototype.setUp=function(b){a.P();this.od=this.h=0;this.da=b;this.qa=this.B=!1;this.dc={};this.R={};this.rd={};a.Q()}; e.prototype.start=function(b){this.setUp(b);this.qa=!0;a.log("M89")};e.prototype.reset=function(){this.B=!1;this.h=0;this.qa=!1;this.R={};this.rd={};a.log("M90")};e.prototype.lb=function(a,b,g){this.Ql(a,b,Object.getOwnPropertyDescriptor(a,b),g)};e.prototype.Ql=function(b,f,g,n){if(a.utils.isDefined(g)&&a.utils.isDefined(g.set)&&!a.utils.isDefined(g.I)){var m=this;Object.defineProperty(b,f,{set:function(a){var b;try{b=g.set.apply(this,arguments)}catch(c){throw c;}finally{n.call(m,this)}return b}})}}; e.prototype.rb=function(b){a.P();this.Od(b);a.Q()};e.prototype.Qk=function(){var b=Element.prototype,f=this;a.utils.isDefined(b.setAttribute)&&(b.setAttribute=a.aop.around(b.setAttribute,null,function(){var a=d(arguments);"src"!=a[0]&&"href"!=a[0]||f.rb.call(f,this)}))};e.prototype.gd=function(b){var f=Element.prototype,g=this;a.utils.isDefined(f[b])&&(f[b]=a.aop.around(f[b],null,function(){0<arguments.length&&g.rb.call(g,arguments[0])}))};e.prototype.ug=function(b){a.P();this.qa&&a.utils.isDefined(b)&& a.utils.isDefined(b.childNodes)&&(this.Od(b),this.fh(b.childNodes));a.Q()};e.prototype.fh=function(b){for(var f=0;f<b.length;f++){var g=b[f];"script"!=a.utils.mk(g)&&this.Od(g);this.fh(g.childNodes)}};e.prototype.Od=function(b){a.monitor.AnySpaMonitor.ed()||(this.$k(b)?this.ij(b):a.conf.L&&this.jj(b))};e.prototype.ij=function(b){var f=a.utils.Zc(b);a.utils.isDefined(f)&&(f=f.value,!a.utils.isDefined(this.dc[f])&&0<f.length&&(this.h++,this.dc[f]=!0,a.log("M91",f,this.h),this.Pe(b)))};e.prototype.jj= function(b){var f=a.utils.now();a.utils.ob(b)&&!b.isAdrumTrackedNode?(f=a.utils.Sb(b),!a.utils.isDefined(this.dc[f])&&0<f.length&&(this.h++,this.dc[f]=!0,this.Pe(b),a.log("M92",f,this.h))):a.utils.Lf(b)&&!b.adrumNodeId?(a.log("M93",f),a.J.Kb(b,f)):a.utils.Rf(b)&&(a.J.Xa=Math.max(a.J.Xa,f))};e.prototype.Pe=function(b){this.mb||(this.M=this.M.bind(this),this.l=this.l.bind(this),this.M.I=!0,this.mb=this.l.I=!0);var f=a.utils.Zc(b),f=a.utils.isDefined(f)?f.value:null;a.utils.Tf(b)?(b.addEventListener("loadeddata", this.M),a.log("M94",f)):(b.addEventListener("load",this.M),a.log("M95",f,b.nodeName));b.addEventListener("error",this.l)};e.prototype.fl=function(b){return"LINK"==b.nodeName?(b=b.attributes.getNamedItem("rel"),a.utils.isDefined(b)?0<=b.value.indexOf("stylesheet"):!0):!0};e.prototype.$k=function(a){return/^(SCRIPT|IMG|LINK)$/.test(a.nodeName)&&this.fl(a)};e.prototype.M=function(c){a.P();var f=this.rf(c.target);!a.utils.isDefined(this.R[f])&&0<this.h&&(this.h--,this.R[f]=!0,a.log("M96",f,this.h));this.da= a.utils.now();this.od+=1;1==this.od&&(b.n.Yg(),this.B=!0);this.ub(c.target);f=c.target;a.conf.L&&a.utils.ob(f)&&!f.isAdrumTrackedNode&&(a.log("M97"),a.J.M(c));a.Q()};e.prototype.l=function(b){a.P();var f=this.rf(b.target),g=b.target;a.utils.isDefined(this.rd[f])||(this.h--,this.rd[f]=!0,a.log("M98",f,this.h));a.conf.L&&a.utils.ob(g)&&!g.isAdrumTrackedNode&&(a.log("M99"),a.J.l(b));this.ub(b.target);a.Q()};e.prototype.fj=function(){return 0<this.h&&this.B};e.prototype.rf=function(a){var b="";a instanceof HTMLScriptElement?b=a.src:a instanceof HTMLImageElement?b=a.src:a instanceof HTMLLinkElement&&(b=a.href);return b};e.prototype.dd=function(b){var f=this.h,g=0;a.conf.L&&(f+=a.J.h,g=a.J.da);a.log("M100",f);return 0==f&&this.B&&(a.log("M101"),f=Math.max(this.da,g),b-f>=this.qb)?(this.reset(),f):-1};e.prototype.ub=function(a){a.removeEventListener("load",this.M);a.removeEventListener("error",this.l)};return e}();b.Nh=l})(a.j||(a.j={}))})(k||(k={}));(function(a){(function(b){var l=function(){function e(){this.Nc= a.conf.spa2?3E3:1E3;this.qb=a.conf.userConf&&a.conf.userConf.navComplete&&a.conf.userConf.navComplete.maxXhrQuietTime?a.conf.userConf.navComplete.maxXhrQuietTime:this.Nc}e.prototype.setUp=function(a){this.pd=this.h=0;this.Ea=a;this.qa=this.B=!1;this.vh={};this.Yd={}};e.prototype.start=function(a){this.setUp(a);this.qa=!0};e.prototype.Ee=function(b){a.monitor.AnySpaMonitor.ed()||a.utils.isDefined(this.vh[b])||!this.qa||(this.h+=1,this.vh[b]=!0,a.log("M102",b,this.h))};e.prototype.$i=function(c){!a.monitor.AnySpaMonitor.ed()&& this.qa&&0<this.h&&(a.utils.isDefined(this.Yd)&&!a.utils.isDefined(this.Yd[c])&&(this.Ea=a.utils.now(),this.h-=1,this.Yd[c]=!0,a.log("M103",c,this.h)),this.pd+=1,1==this.pd&&(b.n.Yg(),this.B=!0))};e.prototype.dd=function(a){return 0==this.h&&this.B&&a-this.Ea>=this.qb?(this.reset(),this.Ea):-1};e.prototype.gj=function(){return 0<this.h&&this.B};e.prototype.reset=function(){this.B=!1;this.h=0;this.qa=!1};return e}();b.Dh=l})(a.j||(a.j={}))})(k||(k={}));var d=k.utils.xa,h=k.utils.isFunction;(function(a){var b= a.utils.generateGUID,l;(function(a){a[a.USER=0]="USER";a[a.TIMER=1]="TIMER";a[a.XHR=2]="XHR";a[a.RESOURCE=3]="RESOURCE";a[a.PROMISE=4]="PROMISE";a[a.FETCH=5]="FETCH";a[a.OTHER=6]="OTHER"})(l=a.CauseType||(a.CauseType={}));var e=function(){return function(c,g,n){this.start=a.utils.now();this.parent=c;this.qc=g;this.guid=b();this.type=n}}();a.Fb=e;var c=function(){function b(){}b.Rn=function(){return b.events};b.Mf=function(b){return a.utils.isDefined(b)&&a.utils.isFunction(b.handleEvent)};b.xg=function(a, c,m,q){var e,p=c.guid;b.ra(c);try{b.Mf(a)?e=a.handleEvent.apply(a,q):h(a)&&(e=a.apply(m,q))}catch(l){throw l;}finally{b.V(p)}return e};b.wc=function(c,n,m,q){if(!a.utils.isDefined(n)||n.I)return n;var e;q||(e=b.ja());return function(a){var q=b.Qa(c,a,e,m);return b.xg(n,q,this,arguments)}};b.Qa=function(b,c,m,f){m?a.log("M104",b,m.qc.action):a.log("M105",b);a.utils.isDefined(c)?(c=a.fe.yl(c.target||c.srcElement),c.action=b):c=new a.La(b);return new e(m,c,f)};b.jn=function(c,n,m){if(!a.utils.isDefined(n)|| n.I)return n;var q=b.Qa(c,void 0,b.ja(),m);return function(){new a.La(c);return b.xg(n,q,this,arguments)}};b.Eo=function(a,c){return function(){var m=c.apply(this,arguments);b.Hc(a);return m}};b.ja=function(){return 0<b.events.length?b.events[b.events.length-1]:null};b.ra=function(a){b.events.push(a)};b.V=function(a){var c=b.events,m=c.length,q=null;if(a)for(m-=1;0<=m;m--)if(a===c[m].guid)return q=b.events.splice(m,1),q[0];return b.events.pop()};b.Ic=function(b,c){var m=b,f=1,e="";if(!a.utils.isDefined(m))return null; for(;a.utils.isDefined(m.parent);)e=" -> "+m.qc.action+e,m=m.parent,f+=1;var p=a.utils.now();a.utils.isDefined(m.qc)&&(e=m.qc.action+e+" -> "+c);a.log("M106",e);a.log("M107",m.start,f);a.log("M108",p-m.start);return m};b.Hc=function(a){return b.Ic(b.ja(),a)};b.zk=function(){var c=b.Hc(void 0);if(a.utils.isDefined(c)&&a.utils.isDefined(c.type))return[l.TIMER,l.USER].some(function(a){return c.type==a})?c:void 0};b.Yk=function(a){if(h(a))return a;var b=""+a;return function(){eval(b)}};b.setUp=function(){b.events= [];var c=a.utils.refs;[{mg:c.setTimeout,mf:"setTimeout"},{mg:c.setInterval,mf:"setInterval"}].forEach(function(a){var c=a.mg,g=a.mf;window[g]=function(a){var n=d(arguments);if(a){var e=b.ol(g,arguments[1])?l.OTHER:l.TIMER,e=b.jn(g,b.Yk(a),e);n[0]=e;return c.apply(window,n)}c.apply(window,n)}})};b.ol=function(b,c){return"setTimeout"==b&&(a.utils.isDefined(c)&&0==c||!a.utils.isDefined(c))};return b}();c.events=[];a.c=c})(k||(k={}));(function(a){var b=a.utils.Oj,l=window.addEventListener,e=a.utils.isDefined(window.EventTarget)? window.EventTarget.prototype.addEventListener:function(){},c=a.utils.isDefined(window.EventTarget)?window.EventTarget.prototype.removeEventListener:function(){},f=function(){return function(a,b,c,f,g,e,l,k){this.action=a||"";this.Wh=b||"";this.className=c||"";this.tagName=f||"";this.name=g||"";this.text=e||"";this.src=l;this.item=k}}();a.La=f;var g=function(){function g(){}g.setUp=function(){Array.prototype.push.apply(g.Oc,[]);g.fn();a.utils.isDefined(window.EventTarget)?(g.gn(),g.hn()):g.Zi();g.Kf("onload"); g.Kf("onerror")};g.oo=function(){return[]};g.ek=function(b,c){var f="";if(a.utils.isDefined(b))if("string"===typeof b.textContent)f=a.utils.isDefined(String.prototype.trim)?b.textContent.trim():b.textContent,f=a.utils.isDefined(c)?f.substring(0,c):f;else for(b=b.firstChild;a.utils.isDefined(b)&&!(f+=g.ek(b,c),a.utils.isDefined(c)&&f.length>=c);b=b.nextSibling);return f};g.yl=function(c){var g=b(c.id)||"",n=b(c.className)||"",e="",l=new f;c instanceof HTMLHtmlElement?(e="html",l.text="#html"):c=== document?(e="document",l.text="#document"):c===window?(e="window",l.text="#window"):c instanceof XMLHttpRequest?(e="xhr",l.src=a.utils.isObject(c._adrumAjaxT)?encodeURI(c._adrumAjaxT.url()):""):c instanceof WebSocket?(e="websocket",l.src=encodeURI(c.url)):c instanceof HTMLScriptElement?(e="script",l.src=encodeURI(c.src)):c instanceof HTMLAnchorElement?(e="a",l.text=b(c.text)||""):c instanceof HTMLButtonElement?(e="button",l.name=b(c.name)):c instanceof HTMLDivElement?e="div":c instanceof HTMLImageElement? (e="img",l.src=encodeURI(c.src),l.text=b(c.title)||""):c instanceof HTMLLIElement?(e="li",l.item=c.value):c instanceof HTMLUListElement?e="ul":c instanceof HTMLFormElement?e="form":c instanceof HTMLFrameElement?(e="frame",l.src=encodeURI(c.src)):c instanceof HTMLInputElement?(e=b(c.type)||"input",l.text=b(c.value),l.name=b(c.name)):c instanceof HTMLTableElement?e="table":c instanceof HTMLTableCaptionElement?e="tcap":c instanceof HTMLTableCellElement?e="td":c instanceof HTMLTableRowElement?e="tr": (e=a.utils.isDefined(c.tagName)?b(c.tagName):"",a.log("M109",e));l.Wh=g;l.className=n;l.tagName=e;a.utils.isString(l.text)&&(l.text=a.utils.isDefined(String.prototype.trim)?l.text.trim():l.text,l.text=l.text.substring(0,30));return l};g.fn=function(){a.utils.forEach(g.Oc,function(b){l(b,function(c){c=c.target||c.srcElement;(c===document||c===window||c instanceof XMLHttpRequest||c instanceof HTMLElement)&&null!=c&&c["on"+b]&&(c["on"+b]=a.c.wc(b,c["on"+b],a.CauseType.USER,!0),c["on"+b].I=!0)},!0)})}; g.Zi=function(){a.utils.forEach(g.Oc,function(b){l(b,function(c){c=a.c.Qa(b,c,null,a.CauseType.USER);a.c.ra(c)},!0);l(b,function(){a.c.V()},!1)})};g.jh=function(b){var c=!1;a.utils.isBoolean(b)?c=b:a.utils.isObject(b)&&a.utils.isDefined(b.capture)&&(c=!!b.capture);return c};g.Ng=function(b,c,g,f){if(!a.utils.isDefined(b.eventListenerMap)||!a.utils.isDefined(b.eventListenerMap[c])||!a.utils.isDefined(g))return-1;b=b.eventListenerMap[c];for(c=0;c<b.length;c++)if(b[c][0]==g&&b[c][1]==f)return c;return-1}; g.If=function(b,c,g,f,n){a.utils.isDefined(b)&&a.utils.isDefined(n)&&(a.utils.isDefined(b.eventListenerMap)||(b.eventListenerMap={}),a.utils.isDefined(b.eventListenerMap[c])||(b.eventListenerMap[c]=[]),b.eventListenerMap[c].push([g,f,n]))};g.gm=function(a,b,c){if(-1<c){var g=a.eventListenerMap[b];delete g[c];g.splice(c,1);0==g.length&&delete a.eventListenerMap[b]}};g.gn=function(){EventTarget.prototype.addEventListener=function(b,c,f){if(a.utils.isDefined(c)&&c.I||!a.c.Mf(c)&&!h(c))return e.call(this, b,c,f);var l=g.jh(f),r=a.utils.isDefined(this)?this:window;if(!(-1<g.Ng(r,b,c,l))){var k=c;switch(b){case "click":case "dblclick":case "auxclick":case "mousedown":case "mouseup":case "drop":case "keyup":case "keydown":case "keypress":case "contextmenu":case "pageChanged":case "close":k=a.c.wc(b,c,a.CauseType.USER,!0);g.If(r,b,c,l,k);break;case "load":case "error":k=a.c.wc(b,c,a.CauseType.USER,!1),g.If(r,b,c,l,k)}e.call(r,b,k,f)}}};g.hn=function(){EventTarget.prototype.removeEventListener=function(b, f,e){if(a.utils.isDefined(f)&&f.I)return c.call(this,b,f,e);var l=g.jh(e),k=a.utils.isDefined(this)?this:window,l=g.Ng(k,b,f,l);0<=l?(c.call(k,b,this.eventListenerMap[b][l][2],e),g.gm(k,b,l)):c.call(k,b,f,e)}};g.Kf=function(b){var c=HTMLElement.prototype,g=Object.getOwnPropertyDescriptor(c,b);a.utils.isDefined(g)&&a.utils.isDefined(g.set)&&Object.defineProperty(c,b,{set:function(c){var f=c;a.utils.isDefined(c)&&(f=a.c.wc(b,c,a.CauseType.RESOURCE,!1));var n;try{n=g.set.call(this,f)}catch(e){throw e; }return n}})};return g}();g.Oc="click dblclick mousedown mouseup change select submit keydown keypress keyup load unload".split(" ");a.fe=g})(k||(k={}));(function(a){(function(b){var l=a.utils.map,e=a.utils.en,c=a.utils.isDefined,f=a.utils.isString,g=a.utils.Fj,n=a.utils.isFunction;b.eg=function(a,b){for(var c=!1,g=0;g<b.length;g++){var f=b[g];if(f&&f.test(a)){c=!0;break}}return c};b.Xb=function(a,g,f){var n=!1;if(g&&f)for(var e=0;e<f.length;e++){var l=f[e];if(!(c(l.method)&&a!==l.method||c(l.urls)&& !b.eg(g,l.urls))){n=!0;break}}return n};b.Ab=function(a,b){return g(l(e(b),a))};b.sc=function(a){var c=b.ik(a);a=b.sf(a);return c||a};b.ik=function(b){var g=b.method;if(c(g)){if(f(g))return b;a.error("M110")}};b.Zm=function(a){var c=b.sf(a);return b.am(a)&&c};b.am=function(b){if(n(b.getFromBody))return b;a.error("M111")};b.zj=function(b){for(var c=[],g=0;g<b.length;g++){var n=b[g].pattern;if(f(n))try{c.push(new RegExp(n))}catch(e){a.exception(e,"M112")}else a.error("M113")}return c};b.sf=function(a){var c= a.urls;if(c&&0<c.length&&(a.urls=b.zj(c),0<a.urls.length))return a}})(a.utils||(a.utils={}))})(k||(k={}));(function(a){a=a.events||(a.events={});a=a.b||(a.b={});a.navigationStart="navigationStart";a.domainLookupStart="domainLookupStart";a.domainLookupEnd="domainLookupEnd";a.connectStart="connectStart";a.secureConnectionStart="secureConnectionStart";a.connectEnd="connectEnd";a.requestStart="requestStart";a.responseStart="responseStart";a.responseEnd="responseEnd";a.domContentLoadedEventStart="domContentLoadedEventStart"; a.loadEventEnd="loadEventEnd";a.Og="sendTime";a.kf="firstByteTime";a.Ig="respAvailTime";a.Jg="respProcTime";a.Ud="viewChangeStart";a.lh="viewChangeEnd";a.Vd="viewDOMLoaded";a.uh="xhrRequestsCompleted";a.Co="viewFragmentsLoaded";a.Do="viewResourcesLoaded";a.Wd="virtualPageStart";a.bn="virtualPageEnd"})(k||(k={}));(function(a){var b=a.events||(a.events={});b.metricSpec={};b.metricSpec[a.EventType.PageView]={Nj:{start:b.b.navigationStart,end:b.b.loadEventEnd,name:"PLT"},Vj:{start:b.b.navigationStart, end:b.b.responseStart,name:"FBT"},vo:{start:b.b.navigationStart,end:b.b.requestStart,name:"SCT"},wo:{start:b.b.secureConnectionStart,end:b.b.connectEnd,name:"SHT"},On:{start:b.b.domainLookupStart,end:b.b.domainLookupEnd,name:"DLT"},zo:{start:b.b.connectStart,end:b.b.connectEnd,name:"TCP"},ro:{start:b.b.requestStart,end:b.b.responseStart,name:"RAT"},Qn:{start:b.b.responseStart,end:b.b.loadEventEnd,name:"FET"},Un:{start:b.b.responseStart,end:b.b.domContentLoadedEventStart,name:"DRT"},Tn:{start:b.b.responseStart, end:b.b.responseEnd,name:"DDT"},Mn:{start:b.b.responseEnd,end:b.b.domContentLoadedEventStart,name:"DPT"},qo:{start:b.b.domContentLoadedEventStart,end:b.b.loadEventEnd,name:"PRT"},Nn:{start:b.b.navigationStart,end:b.b.domContentLoadedEventStart,name:"DOM"}};b.metricSpec[a.EventType.Ajax]={Vj:{start:b.b.Og,end:b.b.kf,name:"FBT"},An:{start:b.b.kf,end:b.b.Ig,name:"DDT"},zn:{start:b.b.Ig,end:b.b.Jg,name:"DPT"},Nj:{start:b.b.Og,end:b.b.Jg,name:"PLT"}};b.metricSpec[a.EventType.VPageView]={io:{start:b.b.Wd, end:b.b.bn,name:"PLT"},In:{start:b.b.Ud,end:b.b.lh,name:"DDT"},eo:{start:b.b.Ud,end:b.b.Vd,name:"DRT"},rn:{start:b.b.lh,end:b.b.Vd,name:"DPT"},sn:{start:b.b.Ud,end:b.b.Vd,name:"DOM"},po:{start:"viewChangeEnd",end:"xhrRequestsCompleted",name:null},fo:{start:"viewChangeEnd",end:"viewPartialsLoaded",name:null},co:{start:"viewPartialsLoaded",end:"viewFragmentsLoaded",name:null},ho:{start:"viewPartialsLoaded",end:"viewResourcesLoaded",name:null}};b.metricSpec[a.EventType.NG_VIRTUAL_PAGE]=b.metricSpec[a.EventType.VPageView]})(k|| (k={}));(function(a){(function(b){var l=function(e){function c(f){f=e.call(this,f)||this;f.constructor!=c&&f.constructor!=b.AdrumAjax&&a.reportAPIMessage(a.W.ma,a.Za,"ADRUM.events.Ajax",[]);return f}u(c,e);c.prototype.type=function(){return a.EventType.Ajax};return c}(b.EventTracker);b.Ajax=l;b.Oa(b.T[a.EventType.Ajax],l.prototype);b.Le(b.metricSpec[a.EventType.Ajax],l.prototype)})(a.events||(a.events={}))})(k||(k={}));(function(a){(function(b){var l=function(b){function c(a){return b.call(this,a)|| this}u(c,b);c.prototype.type=function(){return a.EventType.Ajax};return c}(b.Ajax);b.AdrumAjax=l;b.Oa(b.T[a.EventType.ADRUM_XHR],l.prototype)})(a.events||(a.events={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.isDefined,e=function(){function c(){}c.Ad=function(b,g){a.conf.spa2?c.xj(b,g):c.Mg(b,g)};c.xj=function(f,g){var n=a.c.Ic(f.g);if(l(a.monitor.AnySpaMonitor.vp)&&!a.monitor.AnySpaMonitor.Ca&&a.monitor.AnySpaMonitor.vp.gb==n){g.parent(a.monitor.AnySpaMonitor.vp);if(++a.monitor.AnySpaMonitor.vp.Me> b.va.maxPerPageView)return;c.Mg(f,g)}else l(a.monitor.AnySpaMonitor.vp)&&!a.monitor.AnySpaMonitor.Ca&&g.parent(a.monitor.AnySpaMonitor.vp),c.yd(g,f),b.oSTO(c.zd,c.Di);delete f._adrumAjaxT;a.j.n.G.$i(g.url())};c.Mg=function(f,g){var n={};f.Ce=n;delete f._adrumAjaxT;var m={};if(f instanceof XMLHttpRequest)try{if(m={status:f.status,getAllResponseHeaders:f.getAllResponseHeaders()},400<=f.status)if(b.isString(f.statusText))m.statusText=f.statusText;else try{m.responseText=f.responseText}catch(e){m.responseType= f.responseType}}catch(l){a.error("M114",l)}b.jc(function(){f.Ce===n&&c.reportXhr(m,g)})};c.reportXhr=function(b,g){c.hh(b,g);a.command("reportXhr",g)};c.yd=function(b,g){if(l(g.g)){var n=a.c.Ic(g.g).guid;c.hh(g,b);l(c.ia[n])||(c.ia[n]=[]);-1==c.ia[n].indexOf(b)&&c.ia[n].push(b)}else a.log("M115")};c.hh=function(a,c){var n=c.response||a,m=n.status,e;b.isNumber(m)&&c.xhrStatus(m);if(n.getAllResponseHeaders){var l=b.isFunction(n.getAllResponseHeaders)?n.getAllResponseHeaders():n.getAllResponseHeaders; c.allResponseHeaders(l)}if(400<=m){if(b.isString(n.statusText))e=n.statusText;else try{b.isString(n.responseText)&&(e=n.responseText)}catch(p){b.isString(n.responseType)&&(e=n.responseType)}c.error({status:m,msg:e})}};c.Vm=function(a,b){var c="";a.headers.forEach(function(a,b){c+=b+": "+a+"\r\n"});b.allResponseHeaders(c)};c.Cg=function(a){c.ia[a]=[];delete c.ia[a]};c.Al=function(b,g){var n=c.ia[g];l(n)&&(n.forEach(function(c){c.parent(b);a.command("reportXhr",c)}),c.Cg(g))};c.zd=function(f){for(var g in c.ia){for(var n= 0,m=c.ia[g];n<m.length;n++){var e=m[n];!l(a.monitor.AnySpaMonitor.vp)&&++c.kj<=b.va.maxPerPageView?a.command("reportXhr",e,f):l(a.monitor.AnySpaMonitor.vp)&&++a.monitor.AnySpaMonitor.vp.Me<=b.va.maxPerPageView&&a.command("reportXhr",e)}c.Cg(g)}};return c}();e.Di=2E3;e.ia={};e.kj=0;b.Eb=e})(a.utils||(a.utils={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.isDefined,e=function(){function c(){}c.setUp=function(){c.exclude=[{urls:[new RegExp(a.conf.beaconUrlHttp+a.conf.corsEndpointPath),new RegExp(a.conf.beaconUrlHttps+ a.conf.corsEndpointPath)]}];c.include=[];c.maxPerPageView=c.$l(a.conf.userConf&&a.conf.userConf.xhr);c.payloadParams=[];c.parameter={};c.tg(a.conf.userConf&&a.conf.userConf.xhr)};c.tg=function(a){l(a)&&(c.exclude=c.exclude.concat(b.Ab(b.sc,a.exclude)),c.include=c.include.concat(b.Ab(b.sc,a.include)),c.payloadParams=c.payloadParams.concat(b.Ab(b.sc,a.payloadParams)),c.parameter=b.Ab(b.Zm,a.parameter))};c.$l=function(f){if(l(f)){f=f.maxPerPageView;if(b.isNumber(f)&&0<f)return f;if("UNLIMITED"===f)return Infinity; a.reportAPIMessage(a.W.Ah,"Invalid maxPerPageView value: "+f,"xhr.maxPerPageView",[f])}return a.conf.spa2?c.Jh:c.Ih};c.nc=function(a,g){var n=c.include,m=c.exclude;return l(n)&&0<n.length&&!b.Xb(g,a,n)||l(m)&&0<m.length&&b.Xb(g,a,m)};c.Wg=function(a,g){var n=c.payloadParams;b.Xb(a.method(),a.url(),n)&&a.dataObject({data:g})};return c}();e.Ih=50;e.Jh=250;b.va=e})(a.utils||(a.utils={}))})(k||(k={}));(function(a){(function(b){b.parseURI=function(a){var b=String(a).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(?:\/\/(?:([^:@\/?#]*)(?::([^:@\/?#]*))?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/); a=b&&null!=a.match(b[1]+"//");return b&&{href:b[0]||"",protocol:b[1]||"",slash:a?"//":"",username:b[2]||"",password:b[3]||"",host:b[4]||"",hostname:b[5]||"",port:b[6]||"",pathname:b[7]||"",search:b[8]||"",hash:b[9]||""}};b.absolutizeURI=function(a,e){function c(a){var b=[];a.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(a){"/.."===a?b.pop():b.push(a)});return b.join("").replace(/^\//,"/"===a.charAt(0)?"/":"")}var f,g,n,m,q,t,p, k;k=e?b.parseURI(e):{};p=a?b.parseURI(a):{};k.protocol?(f=k.protocol,g=k.slash,n=k.username,m=k.password,q=k.host,t=c(k.pathname),p=k.search):k.host?(f=p.protocol,g=p.slash,n=k.username,m=k.password,q=k.host,t=c(k.pathname),p=k.search):(f=p.protocol,g=p.slash,n=p.username,m=p.password,q=p.host,k.pathname?("/"===k.pathname.charAt(0)?t=c(k.pathname):(t=p.pathname?p.pathname.slice(0,p.pathname.lastIndexOf("/")+1)+k.pathname:g?"/"+k.pathname:k.pathname,t=c(t)),p=k.search):(t=c(p.pathname),p=k.search|| p.search));return f+g+(n?n+(m?":"+m:"")+"@":"")+q+t+p+(k.hash?k.hash:"")};b.getFullyQualifiedUrl=function(l){try{var e,c=document.location.href,f;a:{for(var g=document.getElementsByTagName("base"),n=0;n<g.length;n++){var m=g[n].href;if(m){f=m;break a}}f=void 0}e=f?b.absolutizeURI(c,f):c;return b.absolutizeURI(e,l)}catch(q){return a.exception(q,"M116",l,e),l}}})(a.utils||(a.utils={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.isString,e=function(c){function f(){var a=c.call(this)||this; a.ea=0;a.ea=0;return a}u(f,c);f.prototype.hc=function(){this.ea=0};f.l=function(b){var c=b.message||b.description,f=b.fileName||b.filename,e=b.lineNumber,t=b.columnNumber;l(b.description)&&0<=b.description.indexOf("Access is denied.")&&(c+=": maybe you have CORS XHR error in IE");a.monitor.ha.Ia(c,f,e,t,b)};f.Qf=function(a){var c=document.createElement("a");c.href=a;a=document.location;var m=a.protocol;return c.protocol===m&&c.hostname===a.hostname&&f.Ul(b.XHRMonitor.Ej[m],c.port,a.port)};f.Ul=function(a, b,c){return(b||a)===(c||a)};return f}(b.xc);e.Ej={"http:":"80","https:":"443"};b.wa=e})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.va,e=a.utils.Eb,c=a.utils.mergeJSON,f=a.events.AdrumAjax,g=a.utils.isString,n=a.utils.isDefined,m=a.utils.isNumber,q=a.utils.getFullyQualifiedUrl,t=a.conf.spa2;b.Ma=null;b.qh=window.fetch;var k=a.conf.isZonePromise,r=null,w=function(w){function s(){return null!==w&&w.apply(this,arguments)||this}u(s,w);s.prototype.Rk=function(){var c= this,g=Object.getOwnPropertyDescriptor(window,"fetch");if(!g||g.configurable){g&&delete g.writable;g&&delete g.value;g||(g={configurable:!0,enumerable:!0});var f=g.set,m=g.get;g.set=function(a){!0!==a.isAgentFetch&&(n(f)&&f.apply(this,arguments),n(b.Ma)||c.setUp(a))};g.get=function(){var a=b.qh;n(m)&&(a=m.apply(this,arguments));n(b.Ma)&&(a=b.Ma);return a}}Object.defineProperty(window,"fetch",g);k&&a.utils.kd()&&(window.fetch=window.fetch)};s.prototype.setUp=function(g){var m=this;g=g||window.fetch|| b.qh;a.log("M117");if(n(g)&&!g.isAgentFetch){var q=function(c){return function(g,f){var n=arguments;if(m._adrumAjaxT){a.log("M118",m._adrumAjaxT.url(),m._adrumAjaxT.method());var l=a.utils.now();b.wa.Qf(m._adrumAjaxT.url())&&(n=s.Ui(arguments));var q=c.apply(this,n),k=new window.Promise(function(b,c){q.then(function(c){a.log("M119",m._adrumAjaxT.url());a.log("M120",l,m._adrumAjaxT.url());e.Vm(c,k._adrumAjaxT);k._adrumAjaxT.markFirstByteTime(k._adrumAjaxT.getFirstByteTime()||a.utils.now());k._adrumAjaxT.response= c;if(h(c.clone)){a.log("M121",m._adrumAjaxT.url());var g=c.clone().text();g["catch"](function(a){s.Uc(k,a)});s.Bk(g,k)}else a.log("M122",m._adrumAjaxT.url()),s.zm(k,c);b(c)});q["catch"](function(b){a.log("M123",m._adrumAjaxT.url());k._adrumAjaxT.markFirstByteTime(k._adrumAjaxT.getFirstByteTime()||a.utils.now());s.Uc(k);c(b)})});k._adrumAjaxT=m._adrumAjaxT;k.I=!0;k._adrumAjaxT.timestamp(l);k._adrumAjaxT.markSendTime(l);k._adrumAjaxT.parentPhase(a.lifecycle.getPhaseName());s.tm(k._adrumAjaxT,arguments); a.log("M124",l,m._adrumAjaxT.url());t&&(k.g=new a.Fb(a.c.ja(),new a.La("window.fetch"),a.CauseType.FETCH));return k}return c.apply(this,n)}};q.isAgentFetch=!0;b.Ma=a.aop.around(q(g),function(){var g=s.uk(arguments),n=Array.prototype.slice.call(arguments);if(!t&&++m.ea+b.xhrMonitor.ea>l.maxPerPageView||l.nc(g.url,g.method))a.log("M125",g.url),delete m._adrumAjaxT;else return m._adrumAjaxT=new f(c(g,m.status)),t&&(m.g=a.c.Qa("window.fetch.send",void 0,a.c.ja(),a.CauseType.FETCH),n[n.length]={adrumArgs:{cEventId:m.g.guid}}, a.c.ra(m.g)),n},function(){if(m._adrumAjaxT)if(!t&&m.ea+b.xhrMonitor.ea>l.maxPerPageView)a.log("M126",m._adrumAjaxT.url());else if(l.nc(m._adrumAjaxT.url(),m._adrumAjaxT.method()))a.log("M127",m._adrumAjaxT.url());else if(t){var c=a.utils.Yc(arguments,"cEventId");a.j.n.G.Ee(m._adrumAjaxT.url());a.c.V(c)}},"fetch",b.wa.l);b.Ma.isAgentFetch=!0;window.fetch=b.Ma}};s.uf=function(){r||(r=new s);return r};s.Bk=function(b,c){b.then(function(b){var g=a.utils.now();s.ca(c)&&(c._adrumAjaxT.response.responseText= b,s.ag(c._adrumAjaxT,g),b=c._adrumAjaxT.getRespProcTime(),n(b)||n(c._adrumAjaxT.w)&&0!==c._adrumAjaxT.w||(a.log("M128",g,c._adrumAjaxT.url()),c._adrumAjaxT.markRespProcTime(g),s.Wa(c)))})["catch"](function(a){s.Uc(c,a)})};s.Uc=function(b,c){if((!c||c.code!==c.ABORT_ERR)&&b&&b._adrumAjaxT){a.log("M129",b._adrumAjaxT.url());var g=a.utils.now();s.ca(b)&&(s.ag(b._adrumAjaxT,g),s.bg(b._adrumAjaxT,g),s.Wa(b))}};s.ag=function(b,c){var g=b.getRespAvailTime();n(g)||(a.log("M130",c,b.url()),b.markRespAvailTime(c))}; s.bg=function(b,c){var g=b.getRespProcTime();if(n(g))return!1;a.log("M131",c,b.url());b.markRespProcTime(c);return!0};s.zm=function(a,b){b.hj=s.Bb(a,b.hj);b.oj=s.Bb(a,b.oj);b.Xj=s.Bb(a,b.Xj);b.vl=s.Bb(a,b.vl);b.text=s.Bb(a,b.text)};s.Bb=function(b,c){return a.aop.around(c,function(){s.ca(b)&&b._adrumAjaxT.markRespAvailTime(a.utils.now())},function(){s.ca(b)&&(b._adrumAjaxT.markRespProcTime(a.utils.now()),s.Wa(b))},"wrapResponseReader",a.monitor.ErrorMonitor.l)};s.Ui=function(a){1==a.length?g(a[0])? ([].push.call(a,{}),s.Fc(a[1])):s.Fc(a[0]):2==a.length&&s.Fc(a[1]);return a};s.Fc=function(b){n(b)&&(n(b.headers)||(b.headers=new Headers,a.log("M132")),b.headers instanceof Headers?b.headers.has("ADRUM")?b.headers.set("ADRUM","isAjax:true"):b.headers.append("ADRUM","isAjax:true"):b.headers.ADRUM="isAjax:true")};s.tm=function(b,c){2<=c.length&&a.utils.isObject(c[1])&&n(c[1].body)&&l.Wg(b,c[1].body)};s.uk=function(b){var c={url:"",method:""};a.utils.isObject(b[0])?(c.url=b[0].url||(a.utils.isDefined(b[0].toString)? b[0].toString():void 0),c.method=b[0].method||"GET"):g(b[0])&&(c.url=b[0],c.method=b[1]&&b[1].method||"GET");c.url=n(c.url)?c.url:"";c.url=q(c.url);c.method=c.method;return c};s.Lk=function(b){var c;n(c)||(a.log("M133",b._adrumAjaxT.url()),c=1);n(b._adrumAjaxT.w)&&m(b._adrumAjaxT.w)&&(b._adrumAjaxT.w+=c,a.log("M134",b._adrumAjaxT.w,b._adrumAjaxT.url()))};s.Ob=function(b){var c;n(c)||(a.log("M135",b._adrumAjaxT.url()),c=1);n(b._adrumAjaxT.w)&&m(b._adrumAjaxT.w)&&(b._adrumAjaxT.w-=c,a.log("M136",b._adrumAjaxT.w, b._adrumAjaxT.url()))};s.ca=function(a){return n(a._adrumAjaxT)};s.Tb=function(a){return n(a._adrumAjaxT.w)};s.Xm=function(b,c){b._adrumAjaxT=c._adrumAjaxT;b._adrumAjaxT.w+=b.D;a.log("M137",b._adrumAjaxT.w,c._adrumAjaxT.url());b.D=0};s.$m=function(a){var b=!1;s.ca(a)&&n(a._adrumAjaxT.w)&&(s.Lk(a),b=!0);return b};s.Wa=function(a){e.Ad(a,a._adrumAjaxT)};s.Td=function(b){var c=a.utils.now();return 0===b._adrumAjaxT.w&&n(b._adrumAjaxT)?s.bg(b._adrumAjaxT,c):!1};s.Sd=function(b){var c=!1,g=a.utils.now(), f=b._adrumAjaxT.getRespAvailTime();n(f)||(b._adrumAjaxT.markRespAvailTime(g),c=!0);return c};s.Nk=function(b){a.log("M138",b._adrumAjaxT.url());b._adrumAjaxT.w=0};return s}(b.wa);b.Rh=w;b.jb=w.uf()})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.isObject,e=a.utils.map,c=a.utils.reduce,f=a.utils.filter,g=a.utils.isDefined,n=a.utils.isString,m=a.utils.mergeJSON,q=a.utils.xa,k=a.utils.jc,p=a.utils.va,r=a.utils.Eb,w=a.conf.spa2,x=function(s){function v(){var b=s.call(this)|| this;b.Ld=!1;if(!0===window["adrum-xhr-disable"])return a.log("M139"),b;if(!window.XMLHttpRequest)return a.log("M140"),b;b.C=window.XMLHttpRequest.prototype;if(!b.C)return a.log("M141"),b;if(!("open"in b.C&&"send"in b.C))return a.log("M142"),b;b.Ld=a.aop.support(b.C.open)&&a.aop.support(b.C.send);b.Ld||a.log("M143");return b}u(v,s);v.prototype.setUp=function(){if(this.Ld){a.log("M144");a.xhrConstructor=window.XMLHttpRequest;a.xhrOpen=this.xhrOpen=this.C.open;a.xhrSend=this.xhrSend=this.C.send;p.setUp(); var c=this;this.C.open=a.aop.around(this.C.open,function(){v.ll(this)&&(4===this.readyState?(a.log("M145"),v.Pj(this._adrumAjaxT),delete this.Ce,r.reportXhr(this,this._adrumAjaxT)):a.log("M146",this._adrumAjaxT.url()));var g=1<=arguments.length?String(arguments[0]):"",f=2<=arguments.length?String(arguments[1]):"",f=a.utils.getFullyQualifiedUrl(f);!w&&c.ea+b.jb.ea>p.maxPerPageView||p.nc(f,g)||(this._adrumAjaxT=new a.events.AdrumAjax(m({method:g,url:f},c.status)))},null,"XHR.open",b.wa.l);this.C.send= a.aop.around(this.C.send,function(g){var m=this,n=this._adrumAjaxT,e=!1;if(!(!n||!w&&++c.ea+b.jb.ea>p.maxPerPageView)){var l=a.utils.now(),q=n.getSendTime();a.assert(null===q,"M147");n.timestamp(l);n.markSendTime(q||l);n.parentPhase(a.lifecycle.getPhaseName());w&&(m.g=a.c.Qa("XHR.send",void 0,a.c.ja(),a.CauseType.XHR));b.wa.Qf(n.url())?m.setRequestHeader("ADRUM","isAjax:true"):a.log("M148",document.location.href,n.url());p.Wg(n,g);g=v.qk(n.url(),p.parameter,g);n.parameter(g);var r=0,s=function(){if(4== m.readyState)e?a.log("M149"):(a.log("M150"),c.vc(m));else{var b=null;try{b=m.onreadystatechange}catch(g){if(e){a.log("M151",g);return}a.log("M152",g);c.vc(m);return}r++;b?a.aop.support(b)?(m.onreadystatechange=v.$e(b,"XHR.onReadyStateChange"),f&&c.th.call(m,"readystatechange",v.cf),a.log("M153",r)):f||(a.log("M154"),c.vc(m)):r<v.Ri?k(s):e?a.log("M155"):(a.log("M156"),c.vc(m))}};if(f){a.log("M157");try{c.ln.call(m,"readystatechange",v.cf),e=!0}catch(x){a.error("M158",x)}}s()}},function(){if(w){var b= this._adrumAjaxT;b&&a.j.n.G.Ee(b.url())}},"XHR.send",b.wa.l);var f="addEventListener"in this.C&&"removeEventListener"in this.C&&a.aop.support(this.C.addEventListener)&&a.aop.support(this.C.removeEventListener);if(f){var n=a.utils.pf(this.C,"addEventListener");this.ln=n.addEventListener;n.addEventListener=a.aop.around(n.addEventListener,function(b,c,f){if(g(c)&&(c.I=!0,this instanceof XMLHttpRequest&&/^(load|error|readystatechange)$/.test(b)&&c)){var m=v.Rm(c);if(m){var n=q(arguments);n[1]=m;a.log("M159"); return n}a.log("M160",b,c)}},null,"XHR.addEventListener");n=a.utils.pf(this.C,"removeEventListener");this.th=n.removeEventListener;n.removeEventListener=a.aop.around(n.removeEventListener,function(b,g,f){if(this instanceof XMLHttpRequest&&this._adrumAjaxT){var m=q(arguments);g.__adrumInterceptor?(m[1]=g.__adrumInterceptor,a.log("M161"),c.th.apply(this,m)):a.log("M162")}},null,"XHR.removeEventListener")}else a.log("M163");a.log("M164")}};v.qk=function(b,g,n){if(g&&(g=f(e(f(g,function(c){return a.utils.eg(b, c.urls)}),function(a){return a.getFromBody(n)}),l),0<g.length))return c(g,m,{})};v.cd=function(b){var c=b._adrumAjaxT;if(c){var g=a.utils.now();2==b.readyState?c.markFirstByteTime(c.getFirstByteTime()||g):4==b.readyState&&(c.markRespAvailTime(c.getRespAvailTime()||g),c.markFirstByteTime(c.getFirstByteTime()||g),w&&(b=b.g=a.c.Qa("XHR.load",void 0,b.g,a.CauseType.XHR),a.c.ra(b),c.yg=b.guid))}};v.Bf=function(b){var c=b._adrumAjaxT;if(c&&4==b.readyState){var g=a.utils.now(),f=c.getRespProcTime();c.markRespAvailTime(c.getRespAvailTime()|| g);g>f&&c.markRespProcTime(g);r.Ad(b,c);a.conf.spa2&&a.c.V(c.yg)}};v.$e=function(a,b){return v.mn(a,function(){v.cd(this)},function(){v.Bf(this)},b)};v.cf=function(){v.cd(this);v.Bf(this)};v.ll=function(a){return g(a._adrumAjaxT)&&n(a._adrumAjaxT._url)};v.Pj=function(b){var c=a.utils.now();b.markRespAvailTime(b.getRespAvailTime()||c);b.markFirstByteTime(b.getFirstByteTime()||c);b.markRespProcTime(b.getRespProcTime()||c)};v.prototype.vc=function(b){if(b._adrumAjaxT){var c=a.utils.now()+3E4,g=function(){v.cd(b); var f=b._adrumAjaxT;if(f){var m=a.utils.now();4==b.readyState?(a.assert(null===f.getRespProcTime(),"M165"),f.markRespProcTime(f.getRespProcTime()||m),a.log("M166"),r.Ad(b,f),a.conf.spa2&&a.c.V(f.yg)):m<c?a.utils.oSTO(g,v.ee):(delete b._adrumAjaxT,a.log("M167"))}};g()}};v.mn=function(b,c,g,f){var m=b;b&&"object"===typeof b&&"toString"in b&&"[xpconnect wrapped nsIDOMEventListener]"===b.toString()&&"handleEvent"in b&&(m=function(){b.handleEvent.apply(this,q(arguments))});return a.aop.around(m,c,g,f)}; v.Rm=function(b){if(b.__adrumInterceptor)return b.__adrumInterceptor;if(a.aop.support(b)){var c=v.$e(b,"XHR.invokeEventListener");return b.__adrumInterceptor=c}};return v}(b.wa);x.Ri=5;x.ee=50;b.XHRMonitor=x;b.xhrMonitor=new b.XHRMonitor})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.Eb,e=function(c){function f(b){b=c.call(this,b)||this;b.perf=new a.PerformanceTracker;b.af=!1;b.Me=0;return b}u(f,c);f.prototype.type=function(){return a.EventType.VPageView};f.prototype.Xc= function(){return b.EventTracker.Ec(this.guid(),this.url(),this.type())};f.prototype.Id=function(){var b=this.Xc();a.monitor.ha.set("parent",b);a.log("M168",b.guid(),b.url())};f.prototype.startCorrelatingXhrs=function(){a.log("M169");a.utils.isDefined(this.gb)&&!a.monitor.AnySpaMonitor.Ca&&l.Al(this,this.gb.guid)};f.prototype.start=function(){this.startCorrelatingXhrs();this.Id()};return f}(b.EventTracker);b.AnySpaVPageView=e;b.Oa(b.T[a.EventType.VPageView],e.prototype)})(a.events||(a.events={}))})(k|| (k={}));(function(a){a.report=function(b){a.utils.isObject(b)&&a.utils.isFunction(b.type)?-1==[a.EventType.PageView,a.EventType.Ajax,a.EventType.VPageView,a.EventType.Error].indexOf(b.type())?a.reportAPIMessage(a.W.ma,b.type()+"is not a valid external event type","ADRUM.report",Array.prototype.slice.call(arguments)):a.conf.spa2&&a.EventType.VPageView==b.type()?a.log("M170"):a.utils.jc(function(){a.command("reportEvent",b)}):a.reportAPIMessage(a.W.Zd,"","ADRUM.report",Array.prototype.slice.call(arguments))}; a.markVirtualPageBegin=function(b,l){a.conf.spa2&&(this.Sa=a.utils.isDefined(l)?l:!0,a.log("M171",document.URL),a.monitor.AnySpaMonitor.Gd(document.URL,b,!0),a.monitor.AnySpaMonitor.Rg())};a.markVirtualPageEnd=function(){a.conf.spa2&&this.Sa&&(a.log("M172",a.monitor.AnySpaMonitor.ka),a.monitor.AnySpaMonitor.cg(a.monitor.AnySpaMonitor.vp.startTime,a.utils.now()),this.Sa=!1)}})(k||(k={}));(function(a){(function(b){var l=a.utils.isDefined,e=a.aop.after,c=a.aop.before,f=function(){function g(){}g.prototype.setUp= function(){var b=!1;g.ya=a.utils.Ra();a.c.setUp();a.fe.setUp();g.wm();a.j.n.setUp(a.utils.now());g.ka=document.URL;g.Tc=[];a.utils.isDefined(window.history)&&a.utils.isFunction(window.history.pushState)&&(b=!0,g.De("push"));a.utils.isDefined(window.history)&&a.utils.isFunction(window.history.replaceState)&&(b=!0,g.De("replace"));g.Tc=g.Tc.concat(a.utils.Ab(a.utils.sc,a.conf.userConf&&a.conf.userConf.spa&&a.conf.userConf.spa.spa2&&a.utils.isObject(a.conf.userConf.spa.spa2)&&a.conf.userConf.spa.spa2.vp&& a.conf.userConf.spa.spa2.vp.exclude));if(a.utils.isDefined(window.addEventListener)){var b=!0,c=function(){g.ka!=document.URL&&g.Sg()};c.I=!0;window.addEventListener("popstate",c)}b||a.log("M173")};g.De=function(a){switch(a){case "push":window.history.pushState=g.Vg(window.history.pushState,a);break;case "replace":window.history.replaceState=g.Vg(window.history.replaceState,a)}};g.Vg=function(c,f){var e=f[0].toUpperCase()+f.slice(1);return a.aop.around(c,function(){b.DOMEventsMonitor.ac&&!a.Sa&&(a.log("M174", f),g.Gd(document.URL))},function(){b.DOMEventsMonitor.ac&&(a.Sa?(a.log("M175",f),g.vp.url(document.URL)):(a.log("M176",f),g.Rg()));g.ka=document.URL},"history"+e+"State")};g.Sg=function(){var c=document.URL;a.log("M177",g.ka,c);b.DOMEventsMonitor.ac&&(a.Sa?(a.log("M178"),g.vp.url(document.URL)):(g.Gd(g.ka),g.Jd(c)));g.ka=c};g.wm=function(){var b;a.c.ra=e(a.c.ra,function(){b=location.hash});a.c.V=c(a.c.V,function(){b!=location.hash&&g.ka!=document.URL&&g.Sg()})};g.Gd=function(a,b,c){g.qm();g.Ca=!1; g.Ze(a,b,c)};g.Rg=function(){var a=document.URL;g.Jd(a);g.ka=a};g.Ln=function(){g.Ca=!0;g.Ze(g.ka);g.Jd()};g.qm=function(){var c=a.j.n;a.conf.L&&a.j.Gb.Ga&&a.utils.isDefined(b.DOMEventsMonitor.currentBasePage)&&(a.log("M179"),c.G.B||c.K.B?c.navComplete(a.utils.now()):c.navComplete(a.utils.max(c.G.Ea,c.K.da)),c.reset());g.Ca||!a.utils.isDefined(g.vp)||g.vp.Eg||(a.log("M180"),c=g.fk(a.j.n.B),g.cg(g.vp.startTime,c))};g.fk=function(b){var c=a.utils.now();b?(c=g.gk(a.j.n.Ta),a.j.n.reset()):c=g.vp.timestamp(); return c};g.Bm=function(b,c){return g.vp.af?!1:l(c)&&0<c.length&&a.utils.Xb(void 0,b,c)};g.gk=function(b){var c=a.utils.now();b?a.j.n.K.fj()||a.j.n.G.gj()||(c=a.utils.max(a.j.n.K.da,a.j.n.G.Ea)):c=a.j.n.startTime;return c};g.cg=function(a,b){g.md(a,b);g.$f(a);g.report()};g.Ze=function(b,c,f){g.reset();g.vp=new a.events.AnySpaVPageView;g.vp.startUrl=b;a.utils.isDefined(c)&&(g.vp.userPageName=c);a.utils.isBoolean(f)&&(g.vp.af=f);b=a.c.Hc();g.vp.startTime=g.Ca?a.utils.Ra():a.utils.isDefined(b)?b.start: a.utils.now();g.vp.gb=b};g.Jd=function(b){a.utils.isDefined(b)&&g.vp.url(b);g.vp.start();a.Sa||a.j.n.start(a.utils.now())};g.md=function(b,c){a.utils.isDefined(g.vp)&&(a.conf.L&&g.sj(b),a.utils.isDefined(c)?a.conf.L?g.vp.timestamp(c-b>g.vp.vct?c:g.vp.vct+b):g.vp.timestamp(c):g.vp.timestamp(b))};g.sj=function(b){a.log("M181");b=a.J.Jc(b);g.vp.vct=b.vct;a.J.reset()};g.$f=function(c){a.utils.isDefined(g.vp)&&g.vp.resTiming(b.resourceMonitor.wk(g.ya,c))};g.ed=function(){var b=a.c.zk();return a.utils.isDefined(b)&& a.utils.isDefined(g.vp)&&(!a.utils.isDefined(g.vp.gb)||g.vp.gb!=b)};g.report=function(){if(a.utils.isDefined(g.vp))if(g.Bm(g.vp.url(),g.Tc))a.log("M183",g.vp.url());else{a.log("M184");var c=g.vp;if(c.Eg)a.log("M185");else{var f=a.utils.isDefined(b.DOMEventsMonitor.currentBasePage)?b.DOMEventsMonitor.currentBasePage.url():document.URL;c.parentUrl(f);a.command("call",function(){a.reporter.reportEvent(c)});c.Eg=!0}}else a.log("M182")};g.reset=function(){g.vp=null};return g}();b.AnySpaMonitor=f;b.ej= new b.AnySpaMonitor})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){(function(b){var l=function(){function e(){this.K=new b.Nh;this.G=new b.Dh;this.Dl=a.conf.spa2?3E3:1E3;this.maxInactiveTime=a.conf.userConf&&a.conf.userConf.navComplete&&a.conf.userConf.navComplete.maxInactiveTime?a.conf.userConf.navComplete.maxInactiveTime:Math.max(this.K.qb,this.G.qb)+this.Dl;this.sg=1E3}e.prototype.setUp=function(a){this.currentTime=this.startTime=a;this.B=this.Ta=!1;this.K.setUp(a);this.G.setUp(a)};e.prototype.start= function(a){this.setUp(a);this.B=!0;this.K.start(a);this.G.start(a);this.Se();this.Fm()};e.prototype.Fm=function(){this.eh=a.utils.refs.setInterval.call(window,function(){a.P();this.currentTime=a.utils.now();var b=a.utils.max(this.K.da,this.G.Ea);if(this.currentTime-b>=this.maxInactiveTime){if(a.conf.L&&e.Ga&&!a.utils.isDefined(a.monitor.DOMEventsMonitor.currentBasePage)){a.log("M186");e.Pa=e.Pa||this.Ta?this.currentTime:b;return}this.currentTime=e.Pa||this.currentTime;a.log("M187");this.navComplete(this.Ta? this.currentTime:b);this.reset()}a.Q()}.bind(this),this.sg)};e.prototype.Yg=function(){this.Ta||(this.Dm(),this.Ta=!0)};e.prototype.Se=function(){a.utils.isDefined(this.zg)&&clearInterval(this.zg);a.utils.isDefined(this.eh)&&clearInterval(this.eh)};e.prototype.reset=function(){this.Se();this.B=this.Ta=!1;this.K.reset();this.G.reset()};e.prototype.navComplete=function(b){a.P();var f=a.utils.isDefined(a.monitor.AnySpaMonitor.vp&&a.monitor.AnySpaMonitor.vp.startTime)?a.monitor.AnySpaMonitor.vp.startTime: this.startTime;a.log("M188",b-f);a.conf.L?e.Ga?(a.monitor.PerformanceWrapper.perf&&(a.monitor.navMonitor.Ye(),a.monitor.resourceMonitor.Xe()),a.log("M189"),b=a.J.Jc(a.utils.Ra()),a.monitor.DOMEventsMonitor.currentBasePage.vct=b.vct,a.conf.spa2&&(a.monitor.DOMEventsMonitor.currentBasePage.pct=b.pct),a.command("reportOnload",a.monitor.DOMEventsMonitor.currentBasePage),a.J.reset(),a.J.Aa=!1,e.Ga=!1):a.monitor.AnySpaMonitor.md(f,b):(a.monitor.resourceMonitor.basePageResourceBuffer=[],a.monitor.AnySpaMonitor.md(f, b));a.monitor.AnySpaMonitor.Ca||(a.monitor.AnySpaMonitor.$f(f),a.monitor.AnySpaMonitor.report());a.Q()};e.prototype.Dm=function(){this.zg=a.utils.refs.setInterval.call(window,function(){a.P();this.currentTime=a.utils.now();var b=this.K.dd(this.currentTime);0<=b&&a.log("M190",b-this.startTime);b=this.G.dd(this.currentTime);0<=b&&a.log("M191",b-this.startTime);if(!this.G.B&&!this.K.B){b=a.utils.max(this.G.Ea,this.K.da);if(a.conf.L&&e.Ga&&!a.utils.isDefined(a.monitor.DOMEventsMonitor.currentBasePage)){a.log("M192"); e.Pa=e.Pa||b;return}b=e.Pa||b;a.log("M193");this.navComplete(b);this.reset()}a.Q()}.bind(this),this.sg)};return e}();l.Ga=!0;l.Pa=0;b.Gb=l;b.n=new b.Gb})(a.j||(a.j={}))})(k||(k={}));(function(a){var b=function(){function b(){this.pc=[];this.gc(b.Dc,0)}b.prototype.Hl=function(a){this.gc(b.Fe,a)};b.prototype.Jl=function(a){this.gc(b.Ne,a)};b.prototype.Il=function(a){this.gc(b.He,a)};b.prototype.gc=function(a,b){this.pc.push({Gl:(new Date).getTime(),Fl:b,pg:a});this.Aj=a};b.prototype.getPhaseName=function(){return this.Aj}; b.prototype.getPhaseID=function(a){for(var c=0;c<b.Ke.length;c++)if(b.Ke[c]===a)return c;return null};b.prototype.getPhaseCallbackTime=function(a){for(var b=this.pc,f=0;f<b.length;f++)if(b[f].pg===a)return b[f].Gl;return null};b.prototype.findPhaseAtNominalTime=function(e){a.assert(0<=e);for(var c=this.pc,f=c.length-1;0<=f;f--)if(e>=c[f].Fl)return c[f].pg;a.error("M194",e,a.utils.dumpObject(c));return b.Dc};return b}();b.Dc="AFTER_FIRST_BYTE";b.Fe="AFTER_DOM_INTERACTIVE";b.Ne="AT_ONLOAD";b.He="AFTER_ONLOAD"; b.Ke=[b.Dc,b.Fe,b.Ne,b.He];a.PageLifecycleTracker=b;a.lifecycle=new b;a.lifecycle=a.lifecycle})(k||(k={}));(function(a){(function(b){var l=function(b){function c(c){c=b.call(this,c)||this;c.isBeaconSent=!1;c.backTimeGap=a.conf.backTimeGap;return c}u(c,b);c.prototype.type=function(){return a.EventType.PageView};return c}(b.EventTracker);b.PageView=l})(a.events||(a.events={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.now,e=a.utils.Eb,c=function(){function c(){}c.prototype.setUp=function(){var b= document.readyState;if("loading"===b)a.log("M195"),c.xm(),c.Ug();else{var n={timeStamp:l()};c.ab(n);"interactive"===b?(a.log("M196"),c.Ug()):(a.log("M197"),c.tb(n),c.lg(n))}};c.Ug=function(){a.utils.addEventListener(window,"load",c.tb);a.utils.addEventListener(window,"load",c.lg)};c.prototype.setUpOnBeforeUnload=function(){a.conf.sendBeaconOnUnload&&a.utils.addEventListener(window,"beforeunload",c.Ol)};c.Ol=function(){if(c.currentBasePage&&!c.currentBasePage.isBeaconSent){if(a.conf.L){var b=a.J.Jc(a.utils.Ra()); c.currentBasePage.vct=b.vct;a.conf.spa2&&(c.currentBasePage.pct=b.pct)}a.command("quickReportOnLoad",c.currentBasePage);e.zd(!0)}else a.channel&&a.channel.sendBeacon&&(e.zd(!0),a.j.n.navComplete(a.utils.now()),a.channel.sendBeacon(!0))};c.lg=function(g){c.currentBasePage=new a.events.PageView;a.lifecycle.Jl(g&&g.timeStamp);a.utils.jc(function(){var g=l();a.lifecycle.Il(g);a.command("mark","onload",g);c.ac=!0;a.conf.L?a.J.Gj():(b.PerformanceWrapper.perf&&(b.navMonitor.Ye(),b.resourceMonitor.Xe()), a.command("reportOnload",c.currentBasePage));!a.conf.L&&a.conf.spa2&&a.conf.modernBrowserFeaturesAvailable&&a.j.n.K.Tg();a.utils.loadScriptAsync(a.conf.adrumExtUrl)});a.log("M198")};c.xm=function(){if(a.utils.isFunction(document.addEventListener))document.addEventListener("DOMContentLoaded",c.ab,!1);else if(a.utils.isObject(document.attachEvent)){document.attachEvent("onreadystatechange",c.ab);var b=null;try{b=null===window.frameElement?document.documentElement:null}catch(n){}null!=b&&b.doScroll&& function q(){if(!c.isReady){try{b.doScroll("left")}catch(n){a.utils.oSTO(q,10);return}c.tb()}}()}else a.error("M199");a.log("M200")};c.tb=function(b){c.dg||(a.lifecycle.Hl(b&&b.timeStamp),a.command("mark","onready",l()),c.dg=!0)};c.ab=function(a){document.addEventListener?(document.removeEventListener("DOMContentLoaded",c.ab,!1),c.tb(a)):"complete"===document.readyState&&(document.detachEvent("onreadystatechange",c.ab),c.tb(a))};return c}();c.isReady=!1;c.dg=!1;c.ac=!1;b.DOMEventsMonitor=c;c.prototype.setUpOnBeforeUnload= c.prototype.setUpOnBeforeUnload;b.domEventsMonitor=new b.DOMEventsMonitor})(a.monitor||(a.monitor={}))})(k||(k={}));(function(a){var b=a.utils.isDefined,l=a.utils.isNumber,e=a.monitor.Rh;a.ph=window.Promise;a.Lb=null;a.Ao=null;a.ve=Object.defineProperty;var c=a.conf.spa2&&a.conf.modernBrowserFeaturesAvailable,f=a.conf.isZonePromise,g=a.conf.fetch,n=function(){function g(){}g.Tk=function(){Object.defineProperty=a.aop.around(a.ve,function(a,c,f){"Promise"===c&&b(f)&&g.Jf(f)});if(f&&a.utils.kd()){a.log("M201"); var c=Object.getOwnPropertyDescriptor(window,"Promise");g.Jf(c);a.ve(window,"Promise",c);window.Promise=window.Promise}};g.Jf=function(c){b(window.Zone)&&b(window.Zone.assertZonePatched)&&(window.Zone.assertZonePatched=function(){});c=c||Object.getOwnPropertyDescriptor(window,"Promise");var f=c.set,n=c.get;h(f)&&(c.set=function(c){!0===c.agentPromise?a.log("M202"):(f.apply(this,arguments),b(a.Lb)?f.apply(this,arguments):(a.log("M203"),g.setUp()))});h(n)&&(c.get=function(){var c=n.apply(this,arguments); b(a.Lb)&&(a.log("M204"),c=a.Lb);return c})};g.setUp=function(){if(b(a.ph)){g.Wk();g.Vk();var f=function(f){function n(e){var l=this.constructor,q=e;this.aa=a.utils.generateGUID();b(e)&&(q=g.Uk(e,this));e=a.utils.Ti(this,f,[q],l);c&&(b(this.g)&&(e.g=this.g),b(this.Ha)?e.g=this.Ha.g:e.g=a.c.ja());e.aa=this.aa;this.Ha=e;a.log("M205",e.aa);c&&b(e.g)&&a.log("M206",e.g.guid);return e}a.utils.Bc(n,f);return n}(window.Promise);f.agentPromise=!0;a.Lb=f;window.Promise=f}};g.za=function(f,e){return function(){if(c){var n, l=n=void 0;a.log("M207",f);switch(f){case g.H.ne:case g.H.me:case g.H.be:case g.H.ae:a.utils.isDefined(e)&&a.utils.isDefined(e.Ha)&&(n=e.Ha.g);n=a.c.ja()||n;l=new a.Fb(n,new a.La(f),a.CauseType.PROMISE);break;case g.H.ke:case g.H.le:case g.H.je:n=e.g,l=new a.Fb(n,new a.La(f),a.CauseType.PROMISE),a.c.ra(l)}b(e)&&(b(e.Ha)?(e.Ha.g=l,a.log("M208",e.Ha.aa)):(a.log("M209",e.aa),e.g=l))}}};g.Uk=function(f,e){c&&(f=a.aop.around(f,function(){e.g=new a.Fb(a.c.ja(),new a.La(g.H.Zh),a.CauseType.PROMISE);a.c.ra(e.g); a.log("M210",e.g.guid,e.aa);if(b(arguments[0])){a.log("M211");var c=a.aop.around(arguments[0],g.za(g.H.ne,e));arguments[0]=c}b(arguments[1])&&(a.log("M212"),c=a.aop.around(arguments[1],g.za(g.H.me,e)),arguments[1]=c);return a.utils.xa(arguments)},function(){a.log("M213");a.c.V(e.g?e.g.guid:null)},"interceptPromiseExecutor",g.sb));return f};g.Vk=function(){a.utils.refs.promiseThen=window.Promise.prototype.then;var b=g.wg(),c={parentObject:window.Promise.prototype,property:"then",propertyWrappedFunctionName:"promiseThen", wrapNewFunctionAgain:!0};c.setUpFunc=function(b){return function(c){a.utils.kd()||g.fm(c,b)}}.call(this,c);c.Na=b;a.aop.forceWrap(c);a.utils.refs.promiseFinally=window.Promise.prototype["finally"];b=g.vg();c={parentObject:window.Promise.prototype,property:"finally",propertyWrappedFunctionName:"promiseFinally",wrapNewFunctionAgain:!0};c.setUpFunc=function(a){return function(b){g.em(b,a)}}.call(this,c);c.Na=b;a.aop.forceWrap(c)};g.fm=function(a,b){b.Na=g.wg(a)};g.em=function(a,b){b.Na=g.vg(a)};g.Wk= function(){g.cm();g.bm()};g.kl=function(b){return b instanceof g||b instanceof a.ph};g.Kk=function(c){var g;b(g)||(a.log("M214"),g=1);b(c.D)&&l(c.D)&&(c.D+=g,a.log("M215",c.D))};g.Dj=function(a){var c;b(c)||(c=1);b(a.D)&&l(a.D)&&(a.D-=c)};g.Mk=function(c){b(c.D)&&a.utils.gl(c.D)?(a.log("M216"),g.Kk(c)):c.D=1};g.Wm=function(b){e.$m(b)||(a.log("M217"),g.Mk(b))};g.jm=function(a){a.D=0};g.Pf=function(a){return b(a.I)};g.wg=function(f){var n=null;f=f||window.Promise.prototype.then;f=a.aop.around(f,function(){var f= this;n=f;a.log("M218",f.aa);if(b(arguments[0])&&a.utils.isFunction(arguments[0])){g.Wm(f);a.log("M219",f.aa);var l=a.aop.around(arguments[0],g.za(g.H.ke,f),function(){var n=a.utils.Yc(arguments,"origFuncResult");b(n)&&b(n.D)&&g.kl(n)&&e.ca(f)?(e.Xm(n,f),g.jm(n)):(e.ca(f)&&!g.Pf(f)&&e.Tb(f)&&(e.Sd(f),e.Ob(f),!0===e.Td(f)&&(a.log("M220"),a.log("M221"),e.Wa(f))),c&&(a.log("M222"),a.c.V(f.g?f.g.guid:null)))},"interceptPromiseThenFulfil",function(b){e.ca(f)&&e.Tb(f)&&(e.Sd(f)&&e.Ob(f),!0===e.Td(f)&&(a.log("M223"), a.log("M224"),e.Wa(f)));g.sb(b)});arguments[0]=l}b(arguments[1])&&a.utils.isFunction(arguments[1])&&(a.log("M225",f.aa),l=a.aop.around(arguments[1],g.za(g.H.le,f),function(){c&&(a.log("M226"),a.c.V(f.g?f.g.guid:null))}),arguments[1]=l);return a.utils.xa(arguments)},function(){var f=a.utils.Yc(arguments,"origFuncResult");!b(f)||b(arguments[0])&&!a.utils.isFunction(arguments[0])||(c&&(f.g=this.g),g.Pf(this)&&e.ca(this)&&(f._adrumAjaxT=this._adrumAjaxT,e.Tb(this)||e.Nk(f)))},"interceptPromiseThenInterceptor", function(b){var c=n;e.ca(c)&&e.Tb(c)&&(e.Sd(c)&&e.Ob(c),!0===e.Td(c)&&(a.log("M227"),a.log("M228"),e.Wa(c)));g.sb(b)});f.usedByAgent=!0;return window.Promise.prototype.then=f};g.vg=function(f){if(b(window.Promise.prototype["finally"]))return f=f||window.Promise.prototype["finally"],f=a.aop.around(f,function(){var f=this;b(f._adrumAjaxT)&&b(f._adrumAjaxT.w)?e.Ob(f):b(f.D)&&g.Dj(f);if(b(arguments[0])){a.log("M229",f.aa);var n=a.aop.around(arguments[0],g.za(g.H.je,f),function(){c&&(a.log("M230"),a.c.V(f.g? f.g.guid:null))});arguments[0]=n;return a.utils.xa(arguments)}},function(){a.log("M231");a.c.V(this.g?this.g.guid:null)},"interceptPromiseFinally"),f.usedByAgent=!0,window.Promise.prototype["finally"]=f};g.cm=function(){window.Promise.resolve=a.aop.around(window.Promise.resolve,g.za(g.H.be,null),null,"interceptPromiseResolve",g.sb)};g.bm=function(){window.Promise.reject=a.aop.around(window.Promise.reject,g.za(g.H.ae,null),null,"interceptPromiseReject",g.sb)};return g}();n.H={Zh:"PromiseInstance.init", ne:"PromiseInstance.resolve",me:"PromiseInstance.reject",ke:"PromiseInstance.onFulfilled",le:"PromiseInstance.onRejected",je:"PromiseInstance.finally",be:"PromiseConstructor.resolve",ae:"PromiseConstructor.reject"};n.sb=a.monitor.ErrorMonitor.l;a.Gi=n;f&&g&&(n.Tk(),e.uf().Rk())})(k||(k={}));(function(a){(function(b){function l(a,b){var c=[],e=/^\s*(ADRUM_BT\w*)=(.*)\s*$/i.exec(a);if(e){var l=e[1],e=e[2].replace(/^"|"$/g,""),e=decodeURIComponent(e).split("|"),k=e[0].split(":");if("R"===k[0]&&Number(k[1])=== b)for(f(l),l=1;l<e.length;l++)c.push(e[l])}return c}function e(a,b){var c=/^\s*(ADRUM_(\d+)_(\d+)_(\d+))=(.*)\s*$/i.exec(a);if(c){var e=c[1],l=c[4],k=c[5];if(Number(c[3])===b)return f(e),{index:Number(l),value:k}}return null}function c(b){var c=/^\s*ADRUM=s=([\d]+)&r=(.*)\s*/.exec(b);if(c){a.log("M234",b);if(3===c.length)return f("ADRUM"),{startTime:Number(c[1]),startPage:c[2]};a.error("M235",b);return null}}function f(b){a.log("M233",b);var c=new Date;c.setTime(c.getTime()-1E3);document.cookie=b+ "=;Expires="+c.toUTCString()}b.startTimeCookie=null;b.cookieMetadataChunks=null;b.df=function(g,f){a.log("M232");for(var m=f?f.length:0,k=[],t=g.split(";"),p=0;p<t.length;p++){var r=t[p],w=e(r,m);w?k.push(w):(r=c(r),null!=r&&(b.startTimeCookie=r))}Array.prototype.sort.call(k,function(a,b){return a.index-b.index});r=[];for(p=0;p<k.length;p++)r.push(k[p].value);for(p=0;p<t.length;p++)(k=l(t[p],m))&&0<k.length&&(r=r.concat(k));b.cookieMetadataChunks=r};a.correlation.eck=b.df})(a.correlation||(a.correlation= {}))})(k||(k={}));(function(a){"APP_KEY_NOT_SET"!==a.conf.appKey||a.utils.isDefined(window.ADEUM_js_handler)||a.utils.isDefined(window.webkit)||A.log("AppDynamics EUM cloud application key missing. Please specify window['adrum-app-key']");a.correlation.df(document.cookie,document.referrer);a.command("mark","firstbyte",window["adrum-start-time"]);a.monitor.setUpMonitors(a.monitor.ha,a.monitor.wj,a.monitor.domEventsMonitor,a.monitor.navMonitor,a.monitor.xhrMonitor,a.monitor.resourceMonitor);a.conf.fetch&& !a.conf.isZonePromise&&(a.Gi.setUp(),a.monitor.setUpMonitors(a.monitor.jb));a.conf.spa2&&a.conf.modernBrowserFeaturesAvailable&&a.monitor.setUpMonitors(a.monitor.ej);a.conf.enablePrimaryMetrics&&a.utils.isDefined(window.MutationObserver)&&(a.conf.L=!0,a.j.n.K.Tg(),a.j.n.start(a.utils.Ra()),a.J.start())})(k||(k={}));(function(a){a=a.ng||(a.ng={});a=a.k||(a.k={});a.Yf="locationChangeStart";a.xl="locationChangeSuccess";a.Kg="routeChangeStart";a.Lg="routeChangeSuccess";a.Zg="stateChangeStart";a.$g="stateChangeSuccess"; a.mh="viewContentLoaded";a.Gk="includeContentRequested";a.Fk="includeContentLoaded";a.bf="digest";a.lo="outstandingRequestsComplete";a.Qe="beforeNgXhrRequested";a.Ge="afterNgXhrRequested";a.ko="ngXhrLoaded";a.Ue="$$completeOutstandingRequest"})(k||(k={}));(function(a){(function(b){function l(a,c,e,m,l,k){if(c)try{return c.apply(a,[e,m,l].concat(k))}catch(p){return a.error(e,m,l,k,b.Error.$h,"M236",p)}}function e(a,c){return function(){var e=this.current,m=c[e]||c[b.Ib]||e,k=Array.prototype.slice.call(arguments); if(this.uj(a))return this.error(a,e,m,k,b.Error.ai,"event "+a+"M237"+this.current);if(!1===l(this,this["onbefore"+a],a,e,m,k))return b.Hb.$d;m===b.Ib&&(m=e);if(e===m)return l(this,this["onafter"+a]||this["on"+a],a,e,m,k),b.Hb.Ai;var t=this;this.transition=function(){t.transition=null;t.current=m;l(t,t["onenter"+m]||t["on"+m],a,e,m,k);l(t,t["onafter"+a]||t["on"+a],a,e,m,k);return b.Hb.Li};if(!1===l(this,this["onleave"+e],a,e,m,k))return this.transition=null,b.Hb.$d;if(this.transition)return this.transition()}} var c=a.utils.hasOwnPropertyDefined;b.VERSION="2.3.5";b.Hb={Li:1,Ai:2,$d:3,un:4};b.Error={ai:100,vn:200,$h:300};b.Ib="*";b.create=function(a,g){function n(a){var c=a.from instanceof Array?a.from:a.from?[a.from]:[b.Ib];r[a.name]=r[a.name]||{};for(var g=0;g<c.length;g++)w[c[g]]=w[c[g]]||[],w[c[g]].push(a.name),r[a.name][c[g]]=a.to||c[g]}var m="string"==typeof a.initial?{state:a.initial}:a.initial,l=g||a.target||{},k=a.events||[],p=a.callbacks||{},r={},w={};m&&(m.event=m.event||"startup",n({name:m.event, from:"none",to:m.state}));for(var x=0;x<k.length;x++)n(k[x]);for(var s in r)c(r,s)&&(l[s]=e(s,r[s]));for(s in p)c(p,s)&&(l[s]=p[s]);l.current="none";l.Vn=function(a){return a instanceof Array?0<=a.indexOf(this.current):this.current===a};l.tj=function(a){return!this.transition&&(c(r[a],this.current)||c(r[a],b.Ib))};l.uj=function(a){return!this.tj(a)};l.pc=function(){return w[this.current]};l.error=a.error||function(a,b,c,g,f,e,m){throw m||e;};if(m&&!m.defer)l[m.event]();return l}})(a.ye||(a.ye={}))})(k|| (k={}));(function(a){(function(b){var l=function(e){function c(b){b=e.call(this,b)||this;a.utils.isDefined(a.ng)&&b.constructor!=a.ng.NgVPageView&&b.constructor!=c&&a.reportAPIMessage(a.W.ma,a.Za,"ADRUM.events.VPageView",[]);if(a.conf.spa2)return b;b.perf=new a.PerformanceTracker;b.start();a.monitor.xhrMonitor.hc();a.monitor.jb.hc();a.monitor.ha.im();return b}u(c,e);c.prototype.type=function(){return a.EventType.VPageView};c.prototype.Xc=function(){return b.EventTracker.Ec(this.guid(),this.url(), this.type())};c.prototype.Xg=function(b){var c=this.Xc();b.set("parent",c);a.log("M238",c.guid(),c.url())};c.prototype.startCorrelatingXhrs=function(){a.conf.spa2||(a.log("M239"),this.Xg(a.monitor.xhrMonitor))};c.prototype.stopCorrelatingXhrs=function(){a.conf.spa2||(a.monitor.xhrMonitor.set("parent",null),a.log("M240"))};c.prototype.Id=function(){a.conf.spa2||(a.log("M241"),this.Xg(a.monitor.ha))};c.prototype.start=function(){a.conf.spa2||(this.markVirtualPageStart(),this.startCorrelatingXhrs())}; c.prototype.end=function(){a.conf.spa2||(this.markVirtualPageEnd(),this.stopCorrelatingXhrs())};return c}(b.EventTracker);b.VPageView=l;b.Oa(b.T[a.EventType.VPageView],l.prototype);b.Le(b.metricSpec[a.EventType.VPageView],l.prototype)})(a.events||(a.events={}))})(k||(k={}));(function(a){var b=a.ng||(a.ng={}),b=b.conf||(b.conf={});b.disabled=a.conf.userConf&&a.conf.userConf.spa&&a.conf.userConf.spa.angular&&a.conf.userConf.spa.angular.disable;b.distinguishVPwithItsTemplateUrl=a.conf.userConf&&a.conf.userConf.spa&& a.conf.userConf.spa.angular&&!0===a.conf.userConf.spa.angular.distinguishVPwithItsTemplateUrl?!0:!1;b.xhr={};b.metrics={includeResTimingInEndUserResponseTiming:!0};a.conf.userConf&&a.conf.userConf.spa&&a.conf.userConf.spa.angular&&a.conf.userConf.spa.angular.vp&&(a.conf.userConf.spa.angular.vp.xhr&&a.utils.va.tg(a.conf.userConf.spa.angular.vp.xhr),a.conf.userConf.spa.angular.vp.metrics&&a.utils.mergeJSON(b.metrics,a.conf.userConf.spa.angular.vp.metrics))})(k||(k={}));(function(a){(function(b){var l= a.utils.map,e=a.utils.reduce,c=a.utils.filter,f=function(g){function f(b){b=g.call(this,b)||this;b.Of=!0;b.vb={};b.Ya=0;b.Fo=[];b.digestCount(0);if(b.constructor!=f)return a.reportAPIMessage(a.W.ma,a.Za,"ADRUM.events.Ajax",[]),b;b.stopCorrelatingXhrs();return b}u(f,g);f.prototype.type=function(){return a.EventType.VPageView};f.prototype.Wd=function(){this.markViewChangeStart();this.markVirtualPageStart(this.getViewChangeStart());this.timestamp(this.getViewChangeStart())};f.prototype.Hk=function(){this.digestCount(this.digestCount()+ 1)};f.prototype.Ik=function(){this.Ya++;a.log("M242",this.Ya)};f.prototype.Cj=function(){this.Ya--;a.log("M243",this.Ya)};f.prototype.Ck=function(){var b=this.perf.getEntryByName(a.events.b.uh);a.log("M244",this.Ya,b);return 0<this.Ya};f.prototype.pj=function(){var a={oc:0},b=document.querySelectorAll("ng-view, [ng-view], .ng-view, [ui-view]"),b=l(b,angular.element),c;for(c in f.Hg){var g=f.Hg[c];l(b,function(b){b=b.find(c);l(b,function(b){if(b=b[g])b=decodeURIComponent(b),a[b]||(a[b]=c,a.oc++)})})}this.vb= a};f.prototype.nj=function(a){return!!this.vb[decodeURIComponent(a.name)]};f.prototype.qj=function(){var b=[],c=this;0<this.vb.oc&&(b=a.monitor.resourceMonitor.kb().filter(function(a){return c.nj(a)}));this.resTiming(b)};f.Sj=function(b){return c(b,function(b){return(b.eventType===a.EventType.Ajax||b.eventType===a.EventType.ADRUM_XHR)&&!a.utils.va.nc(b.eventUrl,b.method)})};f.kk=function(a){return e(a,function(a,b){return Math.max(a,b.timestamp+b.metrics.PLT)},-1)};f.prototype.bj=function(){if(b.conf.xhr){var c= f.Sj(a.channel.getEventsWithParentGUID(this.guid())),c=f.kk(c);if(0<c){var g=this.perf.getEntryByName(a.events.b.uh);this.markXhrRequestsCompleted(Math.min(g&&g.startTime||Number.MAX_VALUE,c))}}};f.prototype.adjustTimings=function(){this.bj();var c=this.getViewDOMLoaded(),g=this.getXhrRequestsCompleted(),c=Math.max(c,g);b.conf.metrics.includeResTimingInEndUserResponseTiming&&(this.aj(),g=this.getViewResourcesLoaded(),g=Math.max(c,g),a.log("M245",c,g),c=g);this.markVirtualPageEnd(c)};f.prototype.aj= function(){if(0<this.vb.oc){this.qj();var b=this.resTiming();b&&b.length>=this.vb.oc&&(b=e(b,function(a,b){return Math.max(a,b.responseEnd)},0),this.markViewResourcesLoaded(a.PerformanceTracker.Kc(b)))}};f.prototype.identifier=function(b){var c=this.oh;a.utils.isDefined(b)&&(this.oh=f.Qj(b),this.url(this.oh.url));return c};f.Qj=function(b){var c={};b&&b.N?(c.N={vd:""},a.utils.mergeJSON(c.N,{vd:b.N.originalPath,wb:b.N.template,xb:b.N.templateUrl})):b&&b.state&&(c.state={url:""},a.utils.mergeJSON(c.state, {url:b.state.url,name:b.state.name,wb:b.state.template,xb:b.state.templateUrl}));return c};return f}(a.events.VPageView);f.Hg={img:"src",script:"src",link:"href"};b.NgVPageView=f;a.events.Oa(a.events.T[a.EventType.NG_VIRTUAL_PAGE],f.prototype)})(a.ng||(a.ng={}))})(k||(k={}));(function(a){(function(b){var l=function(){function e(){this.A=new b.NgVPageView}e.prototype.pm=function(){var c=this,f=this.A;b.conf.metrics.includeResTimingInEndUserResponseTiming?(a.log("M246"),a.utils.oSTO(function(){c.Bd(f)}, e.Ni)):a.utils.oSTO(function(){c.Bd(f)},e.Oi)};e.prototype.Bd=function(b){a.log("M247");b.parent(a.monitor.DOMEventsMonitor.currentBasePage);a.command("call",function(){b.adjustTimings();a.reporter.reportEvent(b)})};e.prototype.vm=function(a){this.A=a};return e}();l.Ni=5E3;l.Oi=2*a.monitor.XHRMonitor.ee;b.VirtualPageStateMachine=l;a.ye.create({events:[{name:"start",from:"none",to:"ChangeView"},{name:"viewLoaded",from:"ChangeView",to:"XhrPending"},{name:"xhrCompleted",from:"XhrPending",to:"End"},{name:"abort", from:"*",to:"none"},{name:"init",from:"*",to:"none"},{name:"locChange",from:"*",to:"*"},{name:"beforeXhrReq",from:"*",to:"*"},{name:"afterXhrReq",from:"*",to:"*"}],error:function(b){a.log("M248",b)},callbacks:{onChangeView:function(){this.A.Wd();this.A.Id()},onviewLoaded:function(){this.A.markViewDOMLoaded()},onXhrPending:function(){this.A.Of&&this.xhrCompleted()},onleaveXhrPending:function(a,b,f){if("abort"===a)return this.Bd(),!0;if("xhrCompleted"===a&&"End"===f){if(this.A.Ck())return!1;this.A.markXhrRequestsCompleted(); return!0}},onEnd:function(){this.A.pj();this.pm()},oninit:function(b,c,f,g){this.vm(g);a.monitor.xhrMonitor.hc();a.monitor.jb.hc()},onlocChange:function(a,b,f,g){this.A.identifier.url=g;this.A.mc({url:g})},onbeforeXhrReq:function(b,c,f,g){var n=this.A;n.Of=!1;a.log("M249",g&&g[1]||"",n.guid());n.Ik();n.startCorrelatingXhrs();g[3]&&(g[3]=a.aop.before(g[3],function(b,c,g){a.log("M250");n.Cj();g&&(b=a.utils.Tl(g)["content-type"])&&0<=b.indexOf("text/html")&&n.markViewFragmentsLoaded()}));return g},onafterXhrReq:function(){this.A.stopCorrelatingXhrs()}}}, l.prototype)})(a.ng||(a.ng={}))})(k||(k={}));(function(a){(function(b){var l=function(){function e(){this.O=new b.VirtualPageStateMachine;this.distinguishVPwithItsTemplateUrl=a.ng.conf.distinguishVPwithItsTemplateUrl}e.prototype.S=function(c,f){a.log("M251",c);switch(c){case b.k.Kg:case b.k.Zg:this.O.start();var g=f.next.url||document.URL,n=new b.NgVPageView({url:g,identifier:f.next});this.distinguishVPwithItsTemplateUrl&&e.cl(this.O.A,n)?this.O.A.mc({url:g,identifier:f.next}):this.Jm(n);break;case b.k.Lg:case b.k.$g:this.O.A.markViewChangeEnd(); break;case b.k.mh:this.O.viewLoaded();break;case b.k.Qe:this.O.beforeXhrReq(f);break;case b.k.Ge:this.O.afterXhrReq();break;case b.k.Ue:this.O.xhrCompleted();break;case b.k.Yf:this.O.A.mc({url:f.next.url});this.O.locChange(f.next.url);break;case b.k.bf:this.O.A.Hk()}};e.prototype.Jm=function(a){this.O.abort();this.O.init(a);this.O.start()};e.cl=function(b,f){var g=b.identifier(),e=f.identifier(),m=!1;return m=!a.utils.isDefined(g)&&!a.utils.isDefined(e)||g===e?!0:a.utils.isDefined(g)&&a.utils.isDefined(e)? g.state||e.state?a.utils.isDefined(g.state)&&a.utils.isDefined(e.state)?g.state.name===e.state.name&&g.state.wb===e.state.wb&&g.state.xb===e.state.xb&&g.state.url===e.state.url:!1:g.N&&e.N?g.N.vd===e.N.vd&&g.N.wb===e.N.wb&&g.N.xb===e.N.xb:g.url===e.url:!1};return e}();b.Pi=l})(a.ng||(a.ng={}))})(k||(k={}));(function(a){(function(b){var l=a.utils.addEventListener,e=function(){function c(){this.U=new b.Pi;this.Hf=!1}c.prototype.setUp=function(){function b(f){return function(){a.log(f);c.init()}}var c= this;b("M252")();l(document,"DOMContentLoaded",b("M253"));l(window,"load",b("M254"))};c.prototype.init=function(){if("loading"===document.readyState)a.log("M255");else if("undefined"!=typeof angular&&!this.Hf){this.Hf=!0;a.log("M256");var b=this,c=angular.module("ng");c.config(["$provide",function(a){b.Xk(a);b.Sk(a)}]);c.run(["$browser",function(a){b.Pk(a)}]);a.log("M257")}};c.prototype.Sk=function(c){var g=a.aop,e=this;c.decorator("$httpBackend",["$delegate",function(a){return a=g.around(a,function(){var a= Array.prototype.slice.call(arguments);e.U.S(b.k.Qe,a);return a},function(){e.U.S(b.k.Ge)},"ng.httpBackend")}])};c.prototype.Xk=function(c){var g=a.aop,e=this;c.decorator("$rootScope",["$delegate",function(a){a.$digest=g.after(a.$digest,function(){e.U.S(b.k.bf)},"ngevents.digest");a.$on("$locationChangeStart",function(a,c){var g={url:c},f=a&&a.ib&&a.ib.$state&&a.ib.$state.current;f&&(g.state=f);e.U.S(b.k.Yf,{next:g})});a.$on("$locationChangeSuccess",function(){e.U.S(b.k.xl)});a.$on("$routeChangeStart", function(a,c){var g={url:location.href},f=c&&c.$$route;f&&(g.N=f);e.U.S(b.k.Kg,{next:g})});a.$on("$routeChangeSuccess",function(){e.U.S(b.k.Lg)});a.$on("$stateChangeStart",function(a,c){e.U.S(b.k.Zg,{next:{state:c}})});a.$on("$stateChangeSuccess",function(){e.U.S(b.k.$g)});a.$on("$viewContentLoaded",function(a){var c={url:location.href};if(a=a&&a.ib&&a.ib.$state&&a.ib.$state.current)c.state=a;e.U.S(b.k.mh,{next:c})});a.$on("$includeContentRequested",function(){e.U.S(b.k.Gk)});a.$on("$includeContentLoaded", function(){e.U.S(b.k.Fk)});return a}])};c.prototype.Pk=function(c){var g=this;c.$$completeOutstandingRequest=a.aop.before(c.$$completeOutstandingRequest,function(){g.U.S(b.k.Ue)})};return c}();b.pn=e;b.ngMonitor=new e})(a.ng||(a.ng={}))})(k||(k={}));(function(a){var b=a.ng||(a.ng={});b.conf.disabled||a.conf.spa2||a.monitor.setUpMonitors(b.ngMonitor)})(k||(k={}))}};})();

Hi @Hiroki.Ito

Thank you very much for explanation and appreciate your coordination. 

One more question: 

As you know our application is configured as "EUM" and when any java script/ Ajax error occurred the message is not captured please refer screen shot.  

 

ArjunasettyMurahari_0-1629848110695.png

My question is :

1. How can capture the error message for that error code / java script error code? 

2. For IE 11 Do we need any specific adrum.js file? we suspecting IE11 java script errors / data is not capturing. 

Can you please let us know how we can attach the files here? / how we can send the files? 

 

Please find the current index.html here.

<!doctype html>
<html lang="en" dir="ltr">
<head>
<script>
(function (p, r, m) {
m = p.match(r);
!!m && !!m[2] ? document.write('<base href="' + (m ? m[0] : '') + '/" />') : null;
})(location.pathname, /^\/shiponline(\/([a-z]{2}-[a-z]{2}))?/i);
</script>

<script>
/* Allow return from legacy */
(function () {
if (window.location.search.substr(1).includes('legacy=true')) {
window.localStorage.removeItem('legacyShipping');
window.localStorage.removeItem('legacyShipping_ts');
window.location.href = window.location.href.replace(window.location.search, '');
}})();
</script>

<meta charset="utf-8">
<title i18n="The title element of the page | text that appears in the tab">
Create a Shipment - XXX Shipment Creation
</title>

<!--change description for content-->
<meta name="description"
content="Easily compare and calculate Express, Ground, and Freight shipping rates to get the fastest delivery times available for all your domestic and international shipments">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="icon"
type="image/png"
href="https://www.XXX.com/images/c/s1/fx-favicon.ico">
<link rel="stylesheet"
type="text/css"
href="https://www.XXX.com/etc/clientlibs/XXX/commoncore.min.css">
<!--PLACEHOLDER FOR SCRIPT TAG TO INCLUDE GOOGLE MAPS API LINK-->
<style type="text/css">
.fdx-c-static-loading-indicator-container {
text-align: center;
padding: 30px 0;
background: #f2f2f2;
min-height: 1000px;
}

.fdx-c-static-loading-indicator {
display: inline-block;
position: relative;
width: 4rem;
height: 4rem;
overflow: hidden;
}

.fdx-c-static-loading-indicator__part {
position: absolute;
box-sizing: border-box;
left: 0;
right: 0;
bottom: 0;
top: 0;
margin: 2px;
border-width: 2px;
border-style: solid;
border-color: #4d148c transparent transparent;
border-radius: 50%;
-webkit-animation: 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite static-loading-indicator;
animation: 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite static-loading-indicator;
}

.fdx-c-static-loading-indicator__part:nth-child(1) {
border-color: #58595b;
opacity: 0.15;
}

.fdx-c-static-loading-indicator__part:nth-child(2) {
-webkit-animation-delay: -0.24s;
animation-delay: -0.24s;
}

.fdx-c-static-loading-indicator__part:nth-child(3) {
-webkit-animation-delay: -0.36s;
animation-delay: -0.36s;
}

.fdx-c-static-loading-indicator__part:nth-child(4) {
-webkit-animation-delay: -0.5s;
animation-delay: -0.5s;
}

.fdx-c-static-loading-indicator--white .fdx-c-static-loading-indicator__part {
border-color: #fff transparent transparent;
}

.fdx-c-static-loading-indicator--white .fdx-c-static-loading-indicator__part:nth-child(1) {
border-color: transparent;
}

@-webkit-keyframes static-loading-indicator {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}

100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}

@keyframes static-loading-indicator {
0% {
-webkit-transform: rotate(0);
transform: rotate(0);
}

100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
</style>
<script>
if (!FDX) {
var FDX = {};
}
FDX.CAAS = {
channel: 'XXX.com|caas|xxx',
pagePath: 'default'
};
FDX.DATALAYER = {};
FDX.DATALAYER.event = [];
FDX.DATALAYER.page = {
pageInfo: {
pageName: "XXX",
locale: "en_us",
language: "en",
historicalPageName: "",
region: "us",
country: "us",
pagePath: "/"
},
category: {
pageType: "application",
primaryCategory: "content|application",
isApplication: "true",
appName: "XXX-mags"
},
button: {
data: ""
}
};
</script>
</head>
<body>
<link async rel="preload" href="https://cdn.optimizely.com/js/19595420443.js" as="script">
<link rel="preconnect" href="//logx.optimizely.com">
<script async src="https://cdn.optimizely.com/js/19595420443.js"></script>
<!--Script to handle google authorization failures. -->
<script>
function gm_authFailure() {
document.dispatchEvent(new Event('GOOGLE_AUTH_FAILURE'));
google = undefined;
};
</script>
<!--Script to load Google places library. -->
<script
src="https://maps.googleapis.com/maps/api/js?client=gme-XXXcorporation1&libraries=places&channel=MAGS"></script>
<!--Script to listen to Login Event from Header.-->

<script charset='UTF-8'>
// Load AppD scripts for test levels and production environments.
if (window.location.host.indexOf('localhost') != 0) {
window['adrum-start-time'] = new Date().getTime();
var hostName = window.location.host;
(function (config) {
if (window.location.host.indexOf('www.XXX.com') === 0) {
config.appKey = 'AD-AAB-XXX-YYY'; // Production Key
} else {
config.appKey = 'AD-AAB-XXX-YYY'; // Test Level Key
}
window["adrum-app-key"] = config.appKey;
config.adrumExtUrlHttp = 'http://' + hostName + '/shiponline/appd';
config.adrumExtUrlHttps = 'https://' + hostName + '/shiponline/appd';
config.fetch = true;
config.angular = true;
config.isZonePromise = true;
config.beaconUrlHttp = 'http://col.eum-appdynamics.com';
config.beaconUrlHttps = 'https://col.eum-appdynamics.com';
config.xd = {enable: true};
config.spa = {"spa2": true};

})(window['adrum-config'] || (window['adrum-config'] = {}));

//Load Adrum.js file
var script = document.createElement('script');
script.type='text/javascript';
script.src='https://' + hostName + '/shiponline/appd/adrum.js';
document.getElementsByTagName('head')[0].appendChild(script);
}
</script>

<script>
if (!window.sessioncamConfiguration) {
window.sessioncamConfiguration = new Object();
}
window.sessioncamConfiguration.elementsToRemove='.pac-item';
</script>

<!-- MAGS Application Bootstrap selector -->
<fx-mags-root></fx-mags-root>
<div class="app-loading">
<div class="fdx-c-static-loading-indicator-container">
<div class="fdx-c-static-loading-indicator">
<div class="fdx-c-static-loading-indicator__part"></div>
<div class="fdx-c-static-loading-indicator__part"></div>
<div class="fdx-c-static-loading-indicator__part"></div>
<div class="fdx-c-static-loading-indicator__part"></div>
</div>
</div>
</div>
</body>
</html>


Edited 8/24/21 to include the "@mention" tag for improved notification
Claudia Landviar, Community Manager &the  Editor


> 1. How can capture the error message for that error code / java script error code?
For Ajax error, the message is taken from http status message corresponding to the HTTP status code.
i.e. "Not Found" for 404 and "Internal Server Error" for 500.
If the API doesn't return http status message, Ajax error message becomes empty, so your API may not return http status message.
HttpStatusMessage.png

For Javascript error, it should be available if "Enable JavaScript Error Capture" is enabled.

> 2. For IE 11 Do we need any specific adrum.js file? we suspecting IE11 java script errors / data is not capturing.
> Can you please let us know how we can attach the files here? / how we can send the files?
You don't need specific adrum.js file for IE11.

Could you please check if compatibility mode is used with IE11?
IE 10 and Edge are supported. IE >= 10 and Edge cannot be in compatibility mode with IE <= 9 browsers.

Attaching files is not allowed in community because they can contain personally-identifying information (PII) or content.
If compatibility mode is not used, I think this issue can be complicated and a support engagement could be helpful. Support is only accessible for non trial/Lite customers.

How do I submit a Support ticket? An FAQ

If you raise a support ticket, attaching debug console session and error details/links/screenshots may be helpful.

How to debug a browser page by modifying adrum.js

Troubleshoot Browser RUM

Best Regards,
Hiroki

Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Hiroki, 

Thank you for your reply.

for 1. How can capture the error message for that error code / java script error code?

As part of our application API sending the proper response, please find the screen shot.

 

ArjunasettyMurahari_0-1629908364936.pngArjunasettyMurahari_1-1629908372522.png

As part of java script error we configured that option already and there is no rules to ignore the errors.

ArjunasettyMurahari_2-1629908541297.png

Still we don't see the java scripts errors and ajax error messages

For question 2 will analyze and get back to you 


Could you please confirm if my understanding is correct?

1. Ajax error: You can see Ajax error with browser snapshots. However the error is like {"status":"400","message":""} and the message part is empty.

2. Javascript error: JavaScript Error is not shown with browser snapshots for any browser.


For the 1st one, the message is taken from http status message corresponding to the HTTP status code.
The screenshot you attached is too small to see, but you can see http status message from the network tab and selecting the request.
There should be status code, and if it only show the code without message, it means API is not returning http status message.
withMessage.pngwithoutMessage.png

  


For the 2nd one, could you please check the error is unhandled exceptions? If not, the agent can't capture the errors. e.g. console.error may not be captured.

Also, could you please check the below document if any script on your web pages sets the JavaScript window.onerror event?
> The JavaScript Agent (adrum.js) sets window.onerror to listen for uncaught JavaScript errors. If this listener is overwritten, errors are not reported.

In addition, it looks like AppD script is in the <body> tag.
Could you insert the script right after the <head> tag and see the behavior?

If none fixes the issue, I think this is a complicated issue, and a support engagement could be helpful. Please attach HAR file if you raise a support ticket.

How do I create a HAR File to troubleshoot web download issues?

Best Regards,
Hiroki

Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Hi Hiroki, 

Thank you for your great support and patience. 

Java script errors are capturing  but not providing meaningful message.

Gone through provided link and configuration already in place as per documentation, still not capturing the java script messages. 

What kind of java script error messages will it capture? 

If adrum.js loaded but application is not loaded will appD collects the error data? 

 

Please find the configuration screen shot and errors response

ArjunasettyMurahari_0-1630103041154.pngArjunasettyMurahari_1-1630103212222.png

Regards

Arjun

Hi @Arjunasetty.Murahari,


No problem.

Captured javascript error is same as the one that appears on the console of developer tools.
Could you please check they are the same?
e.g.
src/page/XXX.js
Line 35:18: 'XXX' is not defined no-undef
Search for the keywords to learn more about each error.
In addition, please see the document below for how Browser RUM works.

Adrum.js is loaded at the same time with application, and AppD should collect the error data if adrum.js(3-b) and adrum-ext.js(6) are loaded.

Best Regards,
Hiroki

Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Hi Hiroki, 

1. Is there any way / add custom script to the index.html such way that appD captures the AJAX 
Response for other than 200 http code? 

For example: 

ArjunasettyMurahari_1-1630362417003.png

 

ArjunasettyMurahari_0-1630362387551.png

2. I could see there is a small difference in urls will it cause any problem to capture more error data? 

App Dynamic documentation:

config.adrumExtUrlHttp = "http://cdn.appdynamics.com";
config.adrumExtUrlHttps = "https://cdn.appdynamics.com";
config.beaconUrlHttp = "http://pdx-col.eum-appdynamics.com";
config.beaconUrlHttps = "https://pdx-col.eum-appdynamics.com";

 

In our script urls:

config.adrumExtUrlHttp = 'http://' + hostName + '/shiponline/appd';
config.adrumExtUrlHttps = 'https://' + hostName + '/shiponline/appd';

config.beaconUrlHttp = 'http://col.eum-appdynamics.com';
config.beaconUrlHttps = 'https://col.eum-appdynamics.com';

 

 

<script charset='UTF-8'>
// Load AppD scripts for test levels and production environments.
if (window.location.host.indexOf('localhost') != 0) {
window['adrum-start-time'] = new Date().getTime();
var hostName = window.location.host;
(function (config) {
if (window.location.host.indexOf('www.XXX.com') === 0) {
config.appKey = 'AD-AAB-XXX-YYY'; // Production Key
} else {
config.appKey = 'AD-AAB-XXX-YYY'; // Test Level Key
}
window["adrum-app-key"] = config.appKey;
config.adrumExtUrlHttp = 'http://' + hostName + '/shiponline/appd';
config.adrumExtUrlHttps = 'https://' + hostName + '/shiponline/appd';
config.fetch = true;
config.angular = true;
config.isZonePromise = true;
config.beaconUrlHttp = 'http://col.eum-appdynamics.com';
config.beaconUrlHttps = 'https://col.eum-appdynamics.com';
config.xd = {enable: true};
config.spa = {"spa2": true};

})(window['adrum-config'] || (window['adrum-config'] = {}));

//Load Adrum.js file
var script = document.createElement('script');
script.type='text/javascript';
script.src='https://' + hostName + '/shiponline/appd/adrum.js';
document.getElementsByTagName('head')[0].appendChild(script);
}
</script>

 

1. Unfortunately, you can't capture Ajax Response.
There is a feature called custom data, but it only supports adding Ajax requests because JavaScript Agent doesn't intercept or expose the response from the request.

 

You can manually add userData for Ajax Response, but it requires you to change the code of the application and is complex to do so.

 

2. adrumExtUrlHttp/adrumExtUrlHttps are used to download JavaScript agent.
From the configuration, you are choosing self-hosting option, and you are hosting all JavaScript Agent files.
If JavaScript agent you host is very old or modified in some way, it can affect the behavior of the agent.

 

beaconUrlHttp/beaconUrlHttps are used to transmit metrics about your application to the EUM Server. If it is pointing to EUM server you are using, it should be fine.
https://col.eum-appdynamics.com is for SaaS, so the difference may not cause any problem.

 

Best Regards,
Hiroki

Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

thank you for your support. 

 

Is there a way to run the analytics query through the REST CALL? 

For example :  How I can run below query with date range / last 7 days/ last 30 days with rest api call? 

SELECT * FROM browser_records WHERE ajaxerror like "*status*5*" and appkey = "XXXX" and pagename="api.xxx.com/ship/v3"

 

If possible please provide some useful examples so that I can run utilize your examples.