(function(){
  var u = document.URL,a=u.match(/beusable_viewer=([^&#]*)/),b=u.match(/staging_viewer=([^&#]*)/);
  if(a&&a[1]) { __beusablerumclient__.load("//api.beusably.net/script/" + a[1]); } else if(b&&b[1]) { __beusablerumclient__.load("//staging.beusably.net/script/" + (b&&b[1])); }else {
    
    (function(){
    __beusablerumclient__.sid='0b35d028d3';__beusablerumclient__._code_v=2;__beusablerumclient__.samplingRate=100;
    __beusablerumclient__.device='desktop';
    __beusablerumclient__.aid='';
    __beusablerumclient__._timeout==null ? __beusablerumclient__._timeout=100 : '';
    window['require'] && typeof require === 'function' && typeof require.specified === 'function' ? __beusablerumclient__.load('//script.beusable.net/rum.v1.0.0.withrequire.min.js') : __beusablerumclient__.load('//script.beusable.net/rum.v1.0.0.min.js');
  
    __beusablerumclient__.isSPA = true;
    
    if(__beusablerumclient__.addHistoryListener !== true) {
      setTimeout(function(){
        function SPAChange(){
          if(__beusablerumclient__.refresh_timeout) {
            clearTimeout(__beusablerumclient__.refresh_timeout);
          }
          __beusablerumclient__.refresh_timeout = setTimeout(function(){
            __beusablerumclient__.refresh_timeout = null;
            if(new Date().getTime() - __beusablerumclient__.prev_time < 500 && __beusablerumclient__.prev_url == document.URL) {
              return false;
            }
            __beusablerumclient__.ab_aid = false;
            __beusablerumclient__.isSPA = true;
            __beusablerumclient__.prev_time = new Date().getTime();
              __beusablerumclient__.prev_url = document.URL;
            if(__beusablerumclient__.instance) {
              __beusablerumclient__.instance._endPageview();
            }
            if(__beusablerumclient__.replace_interval !== null) {
              clearInterval(__beusablerumclient__.replace_interval);
              __beusablerumclient__.replace_interval = null;
            }
            if(__beusablerumclient__._code_v===2){
              __beusablerumclient__.load("//rum.beusable.net/load/b201012e105630u245?url="+encodeURIComponent(document.URL));
            } else {
              __beusablerumclient__.load("//rum.beusable.net/script/checker/b201012e105630u245/"+__beusablerumclient__.sid+"?url="+encodeURIComponent(document.URL));
            }
          },200)
          
        }
        __beusablerumclient__.addHistoryListener = true;
          var _beu_pushState = history.pushState;
          var _beu_replaceState = history.replaceState;
          history.pushState = function () {
            _beu_pushState.apply(history, arguments);
            SPAChange();
          };
          history.replaceState = function () {
            _beu_replaceState.apply(history, arguments);
            SPAChange();
          };
          window.addEventListener('popstate', function () {
            window.dispatchEvent(new Event('locationchange'))
          });
          window.addEventListener('locationchange', function () {
            SPAChange();
          });
        }, 500);
      }
  })();
  }
  })()