text: (function(){var getDG=function(){var x={};return x;};var getP=function(){var x={};try{x['-360577408']=['div.col-lg-6 > h1', 'div.col-lg-7 > h1', 'div.row > div.col-md-12 > div.row > div.col-md-9', 'div[id=\'page1\'] > h1', 'footer[id=\'footer\']', 'footer[id=\'footer\'] > article', 'section[id=\'core_capabilities\'] > article.container > div.background'];x['-145495072']=x['-360577408'];}catch(err){}return x;};(function(m){window.blueConicPreListeners=[];(function(){var m=!1,ta=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.BCClass=function(){};BCClass.extend=function(L){function N(){!m&&this.init&&this.init.apply(this,arguments)}var Y=this.prototype;m=!0;var ua=new this;m=!1;for(var O in L)ua[O]="function"==typeof L[O]&&"function"==typeof Y[O]&&ta.test(L[O])?function(m,E){return function(){var O=this._super;this._super=Y[m];var Q=E.apply(this,arguments);this._super=O;return Q}}(O,L[O]):L[O];N.prototype=
  ua;N.constructor=N;N.extend=arguments.callee;return N}})();var InteractionType=BCClass.extend({init:function(){},getPreloadProperties:function(){return [];},getContent:function(){},onEvent:function() {},importLibraries:function(urls) {blueConic.fn.importLibraries.call(this, urls);}});(function(){var InteractionTypeImpl = InteractionType.extend({
  
    init: function(blueConicClient, context) {
      this.blueConicClient = blueConicClient;
      this.context = context ? context : null;
  
      this.changePermissionLevel = false;
  
      this.OBJECTIVE_ID = "iab_purpose_";
  
      this.COOKIE_NAME = "OptanonConsent";
      this.COOKIE_GROUP = "groups";
    },
  
    /**
     *
     */
    onPrepare: function() {
      this._handleConsentCookie(true);
    },
  
    onLoad: function() {
      this._subscribeConsentOnChanged();
    },
  
    _subscribeConsentOnChanged: function() {
      if (window.OneTrust && window.OneTrust.OnConsentChanged) {
        var me = this;
        window.OneTrust.OnConsentChanged(function() {
          me._handleConsentCookie();
        });
      }
    },
  
    /**
     * Handler to convert the consent cookie to BlueConic objectives
     * @param {String} cookie
     */
    _handleConsentCookie: function(prepare) {
      try {
        var cookie = this.blueConicClient.util.cookie.getCookie(this.COOKIE_NAME);
        if (!cookie) {
          // do nothing or refuse all purposes?
          return;
        }
        // Convert the string to a cookie object
        var cookieObject = this._consentCookieToObject(cookie);
  
        // retrieve the purposes from the cookie
        var purposes = this._getIABPurposes(cookieObject);
  
        // set the BlueConic objectives based of the purposes
        this._setObjectives(purposes, prepare);
  
      } catch (err) {
        // do nothing
      }
    },
  
    /**
     * Transform the consent cookie string to an usable object.
     * @param {String} cookie
     */
    _consentCookieToObject: function(cookie) {
      var result = {};
      if (cookie) {
        var cookieSplit = cookie.split("&");
        for (var i = 0; i < cookieSplit.length; i++) {
          var item = cookieSplit[i].split("=");
          if (item[0] && item[1]) {
            result[item[0]] = item[1];
          }
        }
      }
  
      return result;
    },
  
    /**
     * Return the purposes from the cookie
     * @param {*} cookieObject
     */
    _getIABPurposes: function(cookieObject) {
      var result = {};
      if (!cookieObject || !cookieObject[this.COOKIE_GROUP]) {
        return result;
      }
  
      // "0_47572:1,1:1,2:0,4:0,0_72602:1,0_116028:1,0_115966:1,0_116019:1,0_47573:1,0_69893:1,0_81449:1,0_116024:1,0_102673:1,0_112685:1,0_105905:1,0_112074:1,0_112682:1,0_71263:1,0_105904:1,0_112683:1,0_47569:1,0_47568:1,0_112681:1"
      var groups = cookieObject[this.COOKIE_GROUP].split(",");
  
      for (var i = 0; i < groups.length; i++) {
        var group = groups[i]
        if (group && (group.indexOf("C000") === 0  || group.length === 3)) {
          // valid purposes are always 3 characters long: 1:1, 2:0, 4:0
          group = group.replace("C000", "");
          var item = group.split(":");
  
          if (item[0] !== null && item[1] !== null && result[item[0]] === undefined) {
            // Do not override purposes
            result[item[0]] = parseInt(item[1]) === 1;
          }
        }
      }
  
      return result;
    },
  
    /**
     * Consent/refuse objectives
     * @param {String[]} groups
     * @param {Boolean} prepare
     */
    _setObjectives: function(groups, prepare) {
      var profile = this.blueConicClient.profile.getProfile();
      for (var key in groups) {
        var objective = this.OBJECTIVE_ID + key.toLowerCase();
        groups[key] ?
          profile.addConsentedObjective(objective) :
          profile.addRefusedObjective(objective);
      }
  
      if (!prepare) {
        this.blueConicClient.profile.updateProfile();
      }
    }
  });
  
  //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlcyI6WyIvVXNlcnMveW91cmkvZ2l0L3BsdWdpbnMvcGx1Z2lucy9jZXJ0aWZpZWQvbGlzdGVuZXJfb25ldHJ1c3QvZnJvbnRlbmQvbGlzdGVuZXJfb25ldHJ1c3QuanMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIEludGVyYWN0aW9uVHlwZUltcGwgPSBJbnRlcmFjdGlvblR5cGUuZXh0ZW5kKHtcblxuICBpbml0OiBmdW5jdGlvbihibHVlQ29uaWNDbGllbnQsIGNvbnRleHQpIHtcbiAgICB0aGlzLmJsdWVDb25pY0NsaWVudCA9IGJsdWVDb25pY0NsaWVudDtcbiAgICB0aGlzLmNvbnRleHQgPSBjb250ZXh0ID8gY29udGV4dCA6IG51bGw7XG5cbiAgICB0aGlzLmNoYW5nZVBlcm1pc3Npb25MZXZlbCA9IGZhbHNlO1xuXG4gICAgdGhpcy5PQkpFQ1RJVkVfSUQgPSBcImlhYl9wdXJwb3NlX1wiO1xuXG4gICAgdGhpcy5DT09LSUVfTkFNRSA9IFwiT3B0YW5vbkNvbnNlbnRcIjtcbiAgICB0aGlzLkNPT0tJRV9HUk9VUCA9IFwiZ3JvdXBzXCI7XG4gIH0sXG5cbiAgLyoqXG4gICAqXG4gICAqL1xuICBvblByZXBhcmU6IGZ1bmN0aW9uKCkge1xuICAgIHRoaXMuX2hhbmRsZUNvbnNlbnRDb29raWUodHJ1ZSk7XG4gIH0sXG5cbiAgb25Mb2FkOiBmdW5jdGlvbigpIHtcbiAgICB0aGlzLl9zdWJzY3JpYmVDb25zZW50T25DaGFuZ2VkKCk7XG4gIH0sXG5cbiAgX3N1YnNjcmliZUNvbnNlbnRPbkNoYW5nZWQ6IGZ1bmN0aW9uKCkge1xuICAgIGlmICh3aW5kb3cuT25lVHJ1c3QgJiYgd2luZG93Lk9uZVRydXN0Lk9uQ29uc2VudENoYW5nZWQpIHtcbiAgICAgIHZhciBtZSA9IHRoaXM7XG4gICAgICB3aW5kb3cuT25lVHJ1c3QuT25Db25zZW50Q2hhbmdlZChmdW5jdGlvbigpIHtcbiAgICAgICAgbWUuX2hhbmRsZUNvbnNlbnRDb29raWUoKTtcbiAgICAgIH0pO1xuICAgIH1cbiAgfSxcblxuICAvKipcbiAgICogSGFuZGxlciB0byBjb252ZXJ0IHRoZSBjb25zZW50IGNvb2tpZSB0byBCbHVlQ29uaWMgb2JqZWN0aXZlc1xuICAgKiBAcGFyYW0ge1N0cmluZ30gY29va2llXG4gICAqL1xuICBfaGFuZGxlQ29uc2VudENvb2tpZTogZnVuY3Rpb24ocHJlcGFyZSkge1xuICAgIHRyeSB7XG4gICAgICB2YXIgY29va2llID0gdGhpcy5ibHVlQ29uaWNDbGllbnQudXRpbC5jb29raWUuZ2V0Q29va2llKHRoaXMuQ09PS0lFX05BTUUpO1xuICAgICAgaWYgKCFjb29raWUpIHtcbiAgICAgICAgLy8gZG8gbm90aGluZyBvciByZWZ1c2UgYWxsIHB1cnBvc2VzP1xuICAgICAgICByZXR1cm47XG4gICAgICB9XG4gICAgICAvLyBDb252ZXJ0IHRoZSBzdHJpbmcgdG8gYSBjb29raWUgb2JqZWN0XG4gICAgICB2YXIgY29va2llT2JqZWN0ID0gdGhpcy5fY29uc2VudENvb2tpZVRvT2JqZWN0KGNvb2tpZSk7XG5cbiAgICAgIC8vIHJldHJpZXZlIHRoZSBwdXJwb3NlcyBmcm9tIHRoZSBjb29raWVcbiAgICAgIHZhciBwdXJwb3NlcyA9IHRoaXMuX2dldElBQlB1cnBvc2VzKGNvb2tpZU9iamVjdCk7XG5cbiAgICAgIC8vIHNldCB0aGUgQmx1ZUNvbmljIG9iamVjdGl2ZXMgYmFzZWQgb2YgdGhlIHB1cnBvc2VzXG4gICAgICB0aGlzLl9zZXRPYmplY3RpdmVzKHB1cnBvc2VzLCBwcmVwYXJlKTtcblxuICAgIH0gY2F0Y2ggKGVycikge1xuICAgICAgLy8gZG8gbm90aGluZ1xuICAgIH1cbiAgfSxcblxuICAvKipcbiAgICogVHJhbnNmb3JtIHRoZSBjb25zZW50IGNvb2tpZSBzdHJpbmcgdG8gYW4gdXNhYmxlIG9iamVjdC5cbiAgICogQHBhcmFtIHtTdHJpbmd9IGNvb2tpZVxuICAgKi9cbiAgX2NvbnNlbnRDb29raWVUb09iamVjdDogZnVuY3Rpb24oY29va2llKSB7XG4gICAgdmFyIHJlc3VsdCA9IHt9O1xuICAgIGlmIChjb29raWUpIHtcbiAgICAgIHZhciBjb29raWVTcGxpdCA9IGNvb2tpZS5zcGxpdChcIiZcIik7XG4gICAgICBmb3IgKHZhciBpID0gMDsgaSA8IGNvb2tpZVNwbGl0Lmxlbmd0aDsgaSsrKSB7XG4gICAgICAgIHZhciBpdGVtID0gY29va2llU3BsaXRbaV0uc3BsaXQoXCI9XCIpO1xuICAgICAgICBpZiAoaXRlbVswXSAmJiBpdGVtWzFdKSB7XG4gICAgICAgICAgcmVzdWx0W2l0ZW1bMF1dID0gaXRlbVsxXTtcbiAgICAgICAgfVxuICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH0sXG5cbiAgLyoqXG4gICAqIFJldHVybiB0aGUgcHVycG9zZXMgZnJvbSB0aGUgY29va2llXG4gICAqIEBwYXJhbSB7Kn0gY29va2llT2JqZWN0XG4gICAqL1xuICBfZ2V0SUFCUHVycG9zZXM6IGZ1bmN0aW9uKGNvb2tpZU9iamVjdCkge1xuICAgIHZhciByZXN1bHQgPSB7fTtcbiAgICBpZiAoIWNvb2tpZU9iamVjdCB8fCAhY29va2llT2JqZWN0W3RoaXMuQ09PS0lFX0dST1VQXSkge1xuICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICB9XG5cbiAgICAvLyBcIjBfNDc1NzI6MSwxOjEsMjowLDQ6MCwwXzcyNjAyOjEsMF8xMTYwMjg6MSwwXzExNTk2NjoxLDBfMTE2MDE5OjEsMF80NzU3MzoxLDBfNjk4OTM6MSwwXzgxNDQ5OjEsMF8xMTYwMjQ6MSwwXzEwMjY3MzoxLDBfMTEyNjg1OjEsMF8xMDU5MDU6MSwwXzExMjA3NDoxLDBfMTEyNjgyOjEsMF83MTI2MzoxLDBfMTA1OTA0OjEsMF8xMTI2ODM6MSwwXzQ3NTY5OjEsMF80NzU2ODoxLDBfMTEyNjgxOjFcIlxuICAgIHZhciBncm91cHMgPSBjb29raWVPYmplY3RbdGhpcy5DT09LSUVfR1JPVVBdLnNwbGl0KFwiLFwiKTtcblxuICAgIGZvciAodmFyIGkgPSAwOyBpIDwgZ3JvdXBzLmxlbmd0aDsgaSsrKSB7XG4gICAgICB2YXIgZ3JvdXAgPSBncm91cHNbaV1cbiAgICAgIGlmIChncm91cCAmJiAoZ3JvdXAuaW5kZXhPZihcIkMwMDBcIikgPT09IDAgIHx8IGdyb3VwLmxlbmd0aCA9PT0gMykpIHtcbiAgICAgICAgLy8gdmFsaWQgcHVycG9zZXMgYXJlIGFsd2F5cyAzIGNoYXJhY3RlcnMgbG9uZzogMToxLCAyOjAsIDQ6MFxuICAgICAgICBncm91cCA9IGdyb3VwLnJlcGxhY2UoXCJDMDAwXCIsIFwiXCIpO1xuICAgICAgICB2YXIgaXRlbSA9IGdyb3VwLnNwbGl0KFwiOlwiKTtcblxuICAgICAgICBpZiAoaXRlbVswXSAhPT0gbnVsbCAmJiBpdGVtWzFdICE9PSBudWxsICYmIHJlc3VsdFtpdGVtWzBdXSA9PT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgLy8gRG8gbm90IG92ZXJyaWRlIHB1cnBvc2VzXG4gICAgICAgICAgcmVzdWx0W2l0ZW1bMF1dID0gcGFyc2VJbnQoaXRlbVsxXSkgPT09IDE7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9LFxuXG4gIC8qKlxuICAgKiBDb25zZW50L3JlZnVzZSBvYmplY3RpdmVzXG4gICAqIEBwYXJhbSB7U3RyaW5nW119IGdyb3Vwc1xuICAgKiBAcGFyYW0ge0Jvb2xlYW59IHByZXBhcmVcbiAgICovXG4gIF9zZXRPYmplY3RpdmVzOiBmdW5jdGlvbihncm91cHMsIHByZXBhcmUpIHtcbiAgICB2YXIgcHJvZmlsZSA9IHRoaXMuYmx1ZUNvbmljQ2xpZW50LnByb2ZpbGUuZ2V0UHJvZmlsZSgpO1xuICAgIGZvciAodmFyIGtleSBpbiBncm91cHMpIHtcbiAgICAgIHZhciBvYmplY3RpdmUgPSB0aGlzLk9CSkVDVElWRV9JRCArIGtleS50b0xvd2VyQ2FzZSgpO1xuICAgICAgZ3JvdXBzW2tleV0gP1xuICAgICAgICBwcm9maWxlLmFkZENvbnNlbnRlZE9iamVjdGl2ZShvYmplY3RpdmUpIDpcbiAgICAgICAgcHJvZmlsZS5hZGRSZWZ1c2VkT2JqZWN0aXZlKG9iamVjdGl2ZSk7XG4gICAgfVxuXG4gICAgaWYgKCFwcmVwYXJlKSB7XG4gICAgICB0aGlzLmJsdWVDb25pY0NsaWVudC5wcm9maWxlLnVwZGF0ZVByb2ZpbGUoKTtcbiAgICB9XG4gIH1cbn0pO1xuIl0sImZpbGUiOiJmcm9udGVuZC9zcmMvbGlzdGVuZXJfb25ldHJ1c3QuanMifQ==
  window.blueConicPreListeners.push({id: 'listener_onetrust', interactionType: InteractionTypeImpl });})();(function(){var InteractionTypeImpl=InteractionType.extend({blueConicClient:null,context:null,_profile:null,_userLanguage:null,_systemLanguage:null,_language:null,_referrer:null,_hostName:null,_currentUrl:null,_domain:null,ORIGIN_TYPES:{WEB:"web",MOBILE_WEB:"mobile_web",CONNECTION:"connection",MOBILE:"mobile_app"},CONSTANTS:{THIRTY_MINUTES_IN_MS:18e5,UNKNOWN:""},PROFILE_PROPERTIES:{CLICKCOUNT:"clickcount",VISITS:"visits",VISITCLICKS:"visitclicks",LASTVISITDATE:"lastvisitdate",VISITEDSITES:"visitedsites",VISITEDDOMAIN:"visiteddomain",ENTRYPAGE:"entrypage",REFERRERHOST:"referrerhost",REFERRERHOSTS:"referrerhosts",HOSTENTRYPAGE:"hostentrypage",HOSTAVERAGETIME:"hostaveragetime",LASTREFERRERAVERAGE:"lastreferreraverage",AVERAGETIME:"averagetime",TOTALVISITTIME:"totalvisittime",RESOLUTION:"resolution",CURRENTRESOLUTION:"currentresolution",CURRENTSCREENWIDTH:"currentscreenwidth",CURRENTSCREENHEIGHT:"currentscreenheight",ORIGIN_TYPE:"origin_type",ORIGIN_SOURCE:"origin_source",ORIGIN_DETAIL:"origin_detail",DEVICETYPE:"devicetype",RECEIVED_FROM_SYSTEM:"received_from_system",RECEIVED_FROM_CONNECTION:"received_from_connection",MOBILE_APP_ID:"mobile_app_id",MOBILE_APP_NAMEVERSION:"mobile_app_nameversion",LANGUAGE:"language",KEYWORDS:"keywords",CURRENTKEYWORDS:"currentkeywords",CURRENT_UTM_SOURCE:"current_utm_source",CURRENT_UTM_MEDIUM:"current_utm_medium",CURRENT_UTM_TERM:"current_utm_term",CURRENT_UTM_CONTENT:"current_utm_content",CURRENT_UTM_CAMPAIGN:"current_utm_campaign",UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content",UTM_CAMPAIGN:"utm_campaign"},PROFILE_PROPERTIES_FOR_CHANNEL:{},init:function(e,t){this.blueConicClient=e,this.context=t,this._profile=e.profile.getProfile(),this._channelId=e.getChannelId(),this._referrer=document.referrer,this._hostName=window.location.hostname,this._currentUrl=window.location.href,this._domain=document.domain,this._userLanguage=window.navigator.userLanguage,this._systemLanguage=navigator.systemLanguage,this._language=window.navigator.language,this.PROFILE_PROPERTIES_FOR_CHANNEL={CLICKCOUNT:this.PROFILE_PROPERTIES.CLICKCOUNT+"_"+this._channelId,VISITS:this.PROFILE_PROPERTIES.VISITS+"_"+this._channelId,VISITCLICKS:this.PROFILE_PROPERTIES.VISITCLICKS+"_"+this._channelId,LASTVISITDATE:this.PROFILE_PROPERTIES.LASTVISITDATE+"_"+this._channelId}},onPrepare:function(){this._profile&&(this._setLanguageProperties(),this._setResolutionProperties(),this._setReferrerProperties(),this._setCampaignProperties())},onLoad:function(){this._profile&&(this._setReferrerHostOnLoad(),this._setVisitProperties(),this._setOriginProperties(),this.blueConicClient.profile.updateProfile())},getPreloadProperties:function(){return[this.PROFILE_PROPERTIES.CLICKCOUNT,this.PROFILE_PROPERTIES.VISITS,this.PROFILE_PROPERTIES.VISITCLICKS,this.PROFILE_PROPERTIES.LASTVISITDATE,this.PROFILE_PROPERTIES.VISITEDSITES,this.PROFILE_PROPERTIES.ENTRYPAGE,this.PROFILE_PROPERTIES.HOSTENTRYPAGE,this.PROFILE_PROPERTIES.HOSTAVERAGETIME,this.PROFILE_PROPERTIES.LASTREFERRERAVERAGE,this.PROFILE_PROPERTIES.AVERAGETIME,this.PROFILE_PROPERTIES.TOTALVISITTIME,this.PROFILE_PROPERTIES.RESOLUTION,this.PROFILE_PROPERTIES.DEVICETYPE,this.PROFILE_PROPERTIES.ORIGIN_TYPE,this.PROFILE_PROPERTIES.ORIGIN_SOURCE,this.PROFILE_PROPERTIES.ORIGIN_DETAIL,this.PROFILE_PROPERTIES.RECEIVED_FROM_SYSTEM,this.PROFILE_PROPERTIES.RECEIVED_FROM_CONNECTION,this.PROFILE_PROPERTIES.VISITEDDOMAIN,this.PROFILE_PROPERTIES.MOBILE_APP_ID,this.PROFILE_PROPERTIES.MOBILE_APP_NAMEVERSION,this.PROFILE_PROPERTIES_FOR_CHANNEL.CLICKCOUNT,this.PROFILE_PROPERTIES_FOR_CHANNEL.VISITS,this.PROFILE_PROPERTIES_FOR_CHANNEL.VISITCLICKS,this.PROFILE_PROPERTIES_FOR_CHANNEL.LASTVISITDATE]},_setLanguageProperties:function(){var e=this._userLanguage||this._systemLanguage||this._language,t=this._normalizeLocale(e).split("-")[0];t&&this._profile.setValue(this.PROFILE_PROPERTIES.LANGUAGE,t)},_normalizeLocale:function(e){return e&&e.replace("_","-").toLowerCase()},_setResolutionProperties:function(){var e=screen.width,t=screen.height;this._profile.setValue(this.PROFILE_PROPERTIES.CURRENTSCREENWIDTH,e),this._profile.setValue(this.PROFILE_PROPERTIES.CURRENTSCREENHEIGHT,t);var i=e+"x"+t;this._profile.setValue(this.PROFILE_PROPERTIES.CURRENTRESOLUTION,i),this._profile.addValue(this.PROFILE_PROPERTIES.RESOLUTION,i)},_setReferrerProperties:function(){this._setReferrerKeywords(),this._setReferrerHost()},_setReferrerKeywords:function(){var e=this.HELPER.decodeReferrer(this._referrer)||[];e.length>0&&(this._addProfileValues(this.PROFILE_PROPERTIES.KEYWORDS,e),this._profile.setValues(this.PROFILE_PROPERTIES.CURRENTKEYWORDS,e))},_addProfileValues:function(e,t){(Array.isArray(t)?t:[t]).forEach(function(t){this._profile.addValue(e,t)},this)},_setReferrerHost:function(){var e=this._getReferrerHost();e!==this._hostName&&(this._profile.setValue(this.PROFILE_PROPERTIES.ENTRYPAGE,this._currentUrl),e&&(this._profile.setValue(this.PROFILE_PROPERTIES.REFERRERHOST,e),this._profile.addValue(this.PROFILE_PROPERTIES.REFERRERHOSTS,e)))},_setReferrerHostOnLoad:function(){var e=this._getReferrerHost();e!==this._hostName&&this._setHostEntryPageProperty(),this._setHostTotalAndAverageTimeProperty(this._hostName,e)},_getReferrerHost:function(){return this._referrer.replace(/http[s]?:\/\/(.*?)(:|\?|\/|$).*/,"$1")},_setCampaignProperties:function(){[this.PROFILE_PROPERTIES.UTM_SOURCE,this.PROFILE_PROPERTIES.UTM_MEDIUM,this.PROFILE_PROPERTIES.UTM_TERM,this.PROFILE_PROPERTIES.UTM_CONTENT,this.PROFILE_PROPERTIES.UTM_CAMPAIGN].forEach(function(e){var t=this._removeHashPart(this.HELPER._getParameterByName(this._currentUrl,e));t&&(this._profile.setValue("current_"+e,t),this._profile.addValue(e,t))},this)},_setHostEntryPageProperty:function(){this._profile.setValue(this.PROFILE_PROPERTIES.ENTRYPAGE,this._currentUrl);var e=this._getHostEntryPageMapping();e[this._hostName]={entrypage:this._currentUrl},this._profile.setValue(this.PROFILE_PROPERTIES.HOSTENTRYPAGE,JSON.stringify(e))},_getHostEntryPageMapping:function(){return this._safeJSONParse(this._profile.getValue(this.PROFILE_PROPERTIES.HOSTENTRYPAGE))},_safeJSONParse:function(e){try{var t=e.replace(/'/g,'"');return JSON.parse(t)||{}}catch(e){return{}}},_setHostTotalAndAverageTimeProperty:function(e,t){var i=this._safeJSONParse(this._profile.getValue(this.PROFILE_PROPERTIES.HOSTAVERAGETIME));i[e]||(i[e]=this._createNewVisitData());var s=this.blueConicClient.getCurrentDate().getTime(),E=this._profile.getValue(this.PROFILE_PROPERTIES.LASTREFERRERAVERAGE),r=0,R=0,I=0;Object.keys(i).map(function(e){return e.toString()}).forEach(function(_){var n=i[_];this._isSessionExpired(n.enddate)?this._addVisit(n,n.enddate-n.startdate):_===e?n.enddate=s:_===t&&E!==t&&(n.enddate=s,this._profile.setValue(this.PROFILE_PROPERTIES.LASTREFERRERAVERAGE,t)),0!==n.averageTime&&(R++,r+=n.averageTime,I+=n.averageTime*n.visits)},this),this._profile.setValue(this.PROFILE_PROPERTIES.HOSTAVERAGETIME,JSON.stringify(i)),this._profile.setValue(this.PROFILE_PROPERTIES.TOTALVISITTIME,I);var _=R>0?Math.round(r/R):0;this._profile.setValue(this.PROFILE_PROPERTIES.AVERAGETIME,_)},_addVisit:function(e,t){if(t>0){var i=e.averageTime*e.visits+t/1e3;e.visits++,e.averageTime=Math.round(i/e.visits)}var s=this.blueConicClient.getCurrentDate().getTime();e.startdate=s,e.enddate=s},_createNewVisitData:function(){var e=this.blueConicClient.getCurrentDate().getTime();return{startdate:e,enddate:e,averageTime:0,visits:0}},_setPropertyIfEmpty:function(e,t,i){void 0===e[t]&&(e[t]=i)},_setVisitProperties:function(){this._addVisitedDomain(this._domain),this._increaseClickCount(),this._increaseVisits(this.PROFILE_PROPERTIES.VISITS,this.PROFILE_PROPERTIES.VISITCLICKS,this.PROFILE_PROPERTIES.LASTVISITDATE),this._channelId&&this._increaseVisits(this.PROFILE_PROPERTIES_FOR_CHANNEL.VISITS,this.PROFILE_PROPERTIES_FOR_CHANNEL.VISITCLICKS,this.PROFILE_PROPERTIES_FOR_CHANNEL.LASTVISITDATE)},_increaseVisits:function(e,t,i){e=e||this.PROFILE_PROPERTIES.VISITS,t=t||this.PROFILE_PROPERTIES.VISITCLICKS,i=i||this.PROFILE_PROPERTIES.LASTVISITDATE,this._isNewSession(e,i)?(this._resetPageViewsCurrentSession(t),this._increaseSessionCount(e)):this._increasePageViewsCurrentSession(t),this._setLastVisitDate(i,this.blueConicClient.getCurrentDate().getTime())},_setLastVisitDate:function(e,t){e=e||this.PROFILE_PROPERTIES.LASTVISITDATE,this._profile.setValue(e,t)},_addVisitedDomain:function(e){this._hasVisitedDomain(e)||this._profile.addValue(this.PROFILE_PROPERTIES.VISITEDSITES,e)},_hasVisitedDomain:function(e){var t=this._profile.getValues(this.PROFILE_PROPERTIES.VISITEDSITES)||[];return t.length>0&&-1!==t.indexOf(e)},_increaseClickCount:function(){var e=this._getNumberProperty(this.PROFILE_PROPERTIES.CLICKCOUNT);if(this._profile.setValue(this.PROFILE_PROPERTIES.CLICKCOUNT,e+1),this._channelId){var t=this._getNumberProperty(this.PROFILE_PROPERTIES_FOR_CHANNEL.CLICKCOUNT);this._profile.setValue(this.PROFILE_PROPERTIES_FOR_CHANNEL.CLICKCOUNT,t+1)}},_isNewSession:function(e,t){e=e||this.PROFILE_PROPERTIES.VISITS,t=t||this.PROFILE_PROPERTIES.LASTVISITDATE;var i=this._getNumberProperty(e),s=this._getNumberProperty(t)||0;return 0===i||this._isSessionExpired(s)},_isSessionExpired:function(e){return this.blueConicClient.getCurrentDate().getTime()>e+this.CONSTANTS.THIRTY_MINUTES_IN_MS},_resetPageViewsCurrentSession:function(e){e=e||this.PROFILE_PROPERTIES.VISITCLICKS,this._profile.setValue(e,1)},_increasePageViewsCurrentSession:function(e){e=e||this.PROFILE_PROPERTIES.VISITCLICKS;var t=this._getNumberProperty(e);this._profile.setValue(e,t+1)},_increaseSessionCount:function(e){e=e||this.PROFILE_PROPERTIES.VISITS;var t=this._getNumberProperty(e);this._profile.setValue(e,t+1)},_setOriginProperties:function(){var e=this._getOriginCount();e>1?this._mergeOriginProperties():0===e&&this._resolveOriginProperties()},_getOriginCount:function(){var e=this._profile.getValues(this.PROFILE_PROPERTIES.ORIGIN_TYPE)||[],t=this._profile.getValues(this.PROFILE_PROPERTIES.ORIGIN_SOURCE)||[],i=this._profile.getValues(this.PROFILE_PROPERTIES.ORIGIN_DETAIL)||[];return Math.max(e.length,t.length,i.length)},_mergeOriginProperties:function(){this._mergePropertyToUnknown(this.PROFILE_PROPERTIES.ORIGIN_TYPE),this._mergePropertyToUnknown(this.PROFILE_PROPERTIES.ORIGIN_SOURCE),this._mergePropertyToUnknown(this.PROFILE_PROPERTIES.ORIGIN_DETAIL)},_mergePropertyToUnknown:function(e){var t=this._profile.getValues(e)||[];this._profile.setValue(e,1===t.length?t[0]:this.CONSTANTS.UNKNOWN)},_resolveOriginProperties:function(){this._isVisitorOriginFromWeb()?this._resolveOriginForWebVisitor():this._isVisitorOriginFromConnection()?this._resolveOriginForProfileComingFromConnection():this._isVisitorOriginFromMobileApp()&&this._resolveOriginForMobileAppVisitor()},_isVisitorOriginFromWeb:function(){var e=this._profile.getValues(this.PROFILE_PROPERTIES.RECEIVED_FROM_SYSTEM)||[],t=this._profile.getValues(this.PROFILE_PROPERTIES.MOBILE_APP_ID)||[];return 0===e.length&&0===t.length},_isVisitorOriginFromMobileApp:function(){var e=this._profile.getValues(this.PROFILE_PROPERTIES.RECEIVED_FROM_SYSTEM)||[],t=this._profile.getValues(this.PROFILE_PROPERTIES.MOBILE_APP_ID)||[],i=this._getNumberProperty(this.PROFILE_PROPERTIES.VISITS);return t.length>0&&0===e.length&&0===i},_isVisitorOriginFromConnection:function(){var e=this._profile.getValues(this.PROFILE_PROPERTIES.RECEIVED_FROM_SYSTEM),t=this._profile.getValues(this.PROFILE_PROPERTIES.MOBILE_APP_ID),i=this._getNumberProperty(this.PROFILE_PROPERTIES.VISITS);return e&&e.length>0&&t&&0===t.length&&i<=0},_resolveOriginForWebVisitor:function(){var e="",t=this._profile.getValues(this.PROFILE_PROPERTIES.VISITEDSITES)||[],i=this._profile.getValue(this.PROFILE_PROPERTIES.DEVICETYPE)||"",s=this._profile.getValues(this.PROFILE_PROPERTIES.ENTRYPAGE)||[];i&&(e="PC"===i?this.ORIGIN_TYPES.WEB:this.ORIGIN_TYPES.MOBILE_WEB);var E=1===t.length?t[0]:this.CONSTANTS.UNKNOWN,r=1===s.length?s[0]:this.CONSTANTS.UNKNOWN;this._setOriginProfileProperties(e,E,r)},_resolveOriginForProfileComingFromConnection:function(){var e=this._profile.getValues(this.PROFILE_PROPERTIES.RECEIVED_FROM_SYSTEM)||[],t=this._profile.getValues(this.PROFILE_PROPERTIES.RECEIVED_FROM_CONNECTION)||[],i=1===e.length?e[0]:this.CONSTANTS.UNKNOWN,s=1===t.length?t[0]:this.CONSTANTS.UNKNOWN;this._setOriginProfileProperties(this.ORIGIN_TYPES.CONNECTION,i,s)},_resolveOriginForMobileAppVisitor:function(){var e=this._profile.getValues(this.PROFILE_PROPERTIES.MOBILE_APP_ID)||[],t=this._profile.getValues(this.PROFILE_PROPERTIES.MOBILE_APP_NAMEVERSION)||[],i=1===e.length?e[0]:this.CONSTANTS.UNKNOWN,s=1===t.length?t[0]:this.CONSTANTS.UNKNOWN;this._setOriginProfileProperties(this.ORIGIN_TYPES.MOBILE,i,s)},_setOriginProfileProperties:function(e,t,i){this._profile.setValue(this.PROFILE_PROPERTIES.ORIGIN_TYPE,e),this._profile.setValue(this.PROFILE_PROPERTIES.ORIGIN_SOURCE,t),this._profile.setValue(this.PROFILE_PROPERTIES.ORIGIN_DETAIL,i)},_removeHashPart:function(e){if(e){var t=e.indexOf("#");if(-1!==t)return e.substring(0,t)}return e},HELPER:{search_engines:[["google\\.","q"],["bing\\.","q"],["search\\.yahoo\\.","p"],["search\\.aol\\.","q"],["duckduckgo\\.","q"],["baidu\\.","wd"],["ask\\.com","q"],["search\\.lycos\\.","q"],["dogpile\\.com","q"]],substringToHash:function(e){if(e){var t=e.indexOf("#");if(-1!==t)return e.substring(0,t)}return e},decodeReferrer:function(e){for(var t=new RegExp(""),i=0;i<this.search_engines.length;i++){var s=this.search_engines[i];t.compile("^http(s?)://(www\\.)?"+s[0],"i");var E=e.match(t);if(E){var r;if(r=isNaN(s[1])?this._getParameterByName(e,s[1]):E[s[1]+1])return r=decodeURIComponent(r),s.length>2&&s[2]&&(r=decodeURIComponent(r)),r=(r=(r=r.replace(/'|"/g,"")).split(/[\s,+.]+/)).filter(function(e){return e});break}}return null},_getParameterByName:function(e,t){if(!t)return"";t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&#]"+t+"=([^&#]*)").exec(e);return null===i?"":decodeURIComponent(i[1].replace(/\+/g," "))}},_getNumberProperty:function(e){var t=this._profile.getValue(e);if(!t)return 0;try{t=parseInt(t),isNaN(t)&&(t=0)}catch(e){t=0}return t}});window.blueConicPreListeners.push({id: 'listenerinteractiontype', interactionType: InteractionTypeImpl });})();})();
  (function(m,eb,ta,L,N,Y,ua,O,fb,E){function pa(){var a=c.hash(m.location.hostname).toString();return m.location.hostname&&a in BC_HOSTNAME_MAP?"https://"+BC_HOSTNAME_MAP[a]:null}function Q(){return pa()||BC_URL}function Cb(a,b){this._id=a;this._parameters=b;this.getId=function(){return this._id};this.getParameters=function(){var a=null,b=null;for(a in this._parameters)if(b=a,R&&a&&0===a.indexOf(R))return k&&c.logInfo("Use locale ["+a+"] for connection ["+this.getId()+"]."),this._parameters[a];return null!==
  b?(k&&c.logInfo("Use locale ["+b+"] for connection ["+this.getId()+"]."),this._parameters[b]):null}}function Db(a,b){this._id=a.id;this._dialogueId=a.dialogueId;this._name=a.name;this._position=a.position;this._parameters=b;this._defaultLocale=a.defaultLocale;this._interactionTypeId=a.interactionType.myId?a.interactionType.myId.toLowerCase():null;this._type=a.interactionType.myType?a.interactionType.myType.toUpperCase():null;this._positionType=a.interactionType.myPositionType?a.interactionType.myPositionType:
  null;this._usedLocale=null;this._isOnLoadExecuted=this._isGetContentExecuted=this._isPositionFound=!1;this._isLocalEditMode=!0===a.isLocalEditMode;this._bcClient=null;this.getInteractionId=function(){return this._id};this.getDialogueId=function(){return this._dialogueId};this.getName=function(){return this._name};this.getType=function(){return this._type};this.getPosition=function(){return this._position};this.getDOMElement=function(){var a=c.getDOMElement(this._position);a&&!this._isPositionFound&&
  (this._isPositionFound=!0);return a};this.isPositionFound=function(){return this._isPositionFound};this.isGetContentExecuted=function(){return this._isGetContentExecuted};this.setGetContentExecuted=function(a){this._isGetContentExecuted=a};this.isOnLoadExecuted=function(){return this._isOnLoadExecuted};this.setOnLoadExecuted=function(a){this._isOnLoadExecuted=a};this.setParameters=function(a,b){this._parameters[a]=b};this.getParameters=function(){var a,b=this.getName()?this.getName():this.getInteractionId();
  for(a in this._parameters)if(R&&a&&0===a.indexOf(R))return this._usedLocale=a,k&&c.logInfo("use locale ["+a+"] for interaction ["+b+"]."),this._parameters[a];k&&c.logInfo("no parameters found for locale ["+R+"] with interaction ["+b+"].\x3cbr\x3eUsing the default locale ["+this._defaultLocale+"] instead.");this._usedLocale=this._defaultLocale;return this._parameters[this._defaultLocale]};this.getDefaultLocale=function(){return this._defaultLocale};this.getLocale=function(){return R};this.getUrlPrefix=
  function(){c.logDeprecated("context.getUrlPrefix","profile.getBaseURL");return c.getBaseURL(this._interactionTypeId)};this.getBaseURL=function(){return c.getBaseURL(this._interactionTypeId)};this.getInteractionTypeId=function(){return this._interactionTypeId};this.isPositionTypePlugin=function(){return"position"===this._positionType};this.getProfile=function(){return this._bcClient.profile.getProfile()};this.isLocalEditMode=function(){return this._isLocalEditMode};this.getBlueConicClient=function(){this._bcClient||
  (this._bcClient=B.getBlueConicClient(this));return this._bcClient};this.getConnection=function(a){if(!a||!W||!c.isArray(W)||0===W.length)return null;for(var b=0,d=W.length;b<d;b++){var g=W[b];if(g&&g.id&&g.parameters&&g.id===a)return b=c.getInteractionParameters(g),new Cb(a,b)}return null};this.getGoals=function(){return va?va[this._id]:null}}function Ia(a){function b(a){a=c.ensureArray(a).join(",");S?a?localStorage.setItem("BCRefusedObjectives",a):localStorage.removeItem("BCRefusedObjectives"):c.setCookie("BCRefusedObjectives",
  a,31536E6)}this._id=a;this._properties={};this.getId=function(){return this._id};this.getPropertyNames=function(){var a=[],b;for(b in this._properties)z.call(a,b);return a};this.getValue=function(a){if(!fa.call(this._properties,a))return E;a=this._properties[a];return c.isArray(a)?a[0]:a};this.getValues=function(a){return fa.call(this._properties,a)?c.ensureArray(this._properties[a]):[]};this.setValue=function(a,b,f){"consented_objectives"===a?(b=c.isArray(b)?0<b.length?[b[0]]:[]:[b],this.setConsentedObjectives(b,
  f)):"refused_objectives"===a?(b=c.isArray(b)?0<b.length?[b[0]]:[]:[b],this.setRefusedObjectives(b,f)):this._setValue(a,b,f)};this._setValue=function(a,b,f){var d=this.profileIsPrivacyAware();a?null===b||b===E?k&&c.logInfo("value cannot be undefined or null"):(x.unsavedLog(a,null),c.isArray(b)?b=0<b.length?b[0]:null:c.isDate(b)&&(b=b.getTime()),x.unsavedLog(a,b,!1,d,f),this._properties[a]=c.ensureArray(b)):k&&c.logInfo("could not set value for undefined property")};this.setValues=function(a,b,c){"consented_objectives"===
  a?this.setConsentedObjectives(b,c):"refused_objectives"===a?this.setRefusedObjectives(b,c):this._setValues(a,b,c)};this._setValues=function(a,b,f){var d=this.profileIsPrivacyAware();if(a)if(c.isArray(a))k&&c.logInfo("property cannot be an array");else{x.unsavedLog(a,null);b=c.ensureArray(b);for(var e=0;e<b.length;e++)c.isDate(b[e])&&(b[e]=b[e].getTime());c.removeItemFromArray(b,null);c.removeItemFromArray(b,E);this._properties[a]=b;x.unsavedLog(a,b,!1,d,f)}else k&&c.logInfo("could not set values for undefined property")};
  this.addValue=function(a,b,c){"consented_objectives"===a?this.addConsentedObjective(b,c):"refused_objectives"===a?this.addRefusedObjective(b,c):this._addValue(a,b,c)};this._addValue=function(a,b,f){var d=this.profileIsPrivacyAware();if(a)if(c.isArray(a))k&&c.logInfo("property cannot be an array");else if(null===b||b===E)k&&c.logInfo("value cannot be undefined or null");else{c.isDate(b)&&(b=b.getTime());this._properties[a]||(this._properties[a]=[]);var e=this._properties[a];-1===c.indexOfArray(e,b)&&
  (z.call(e,b),x.setQueue[a]?x.unsavedLog(a,e,!1,d,f):x.unsavedLog(a,b,!0,d,f));this._properties[a]=e}else k&&c.logInfo("could not add value for undefined property")};this.getPrivacyLegislation=function(){return this.getValue("privacy_legislation")};this.getConsentedObjectives=function(){return this.getValues("consented_objectives")};this.getRefusedObjectives=function(){return this._privacyAwareAndDoNotTrack()?this.getDntRefusedObjectives():this.getValues("refused_objectives")};this.setPrivacyLegislation=
  function(a,b){this.setValue("privacy_legislation",a,b)};this.addConsentedObjective=function(a,b){var d=this.getConsentedObjectives();-1===c.indexOfArray(d,a)&&this._addValue("consented_objectives",a,b);d=this.getRefusedObjectives();this._privacyAwareAndDoNotTrack()&&(this._setValues("refused_objectives",d,b),this.deleteDntRefusedObjectives(),k&&c.logInfo("Set permission level because of added consented objective: "+a),l.setLevel(l.PERSONAL,"Added consented objective: "+a))};this.addRefusedObjective=
  function(a,e){if(this._privacyAwareAndDoNotTrack())e=this.getDntRefusedObjectives(),-1===c.indexOfArray(e,a)&&z.call(e,a),b(e);else{var d=this.getRefusedObjectives();-1===c.indexOfArray(d,a)&&this._addValue("refused_objectives",a,e)}};this.setConsentedObjectives=function(a,b){this._setValues("consented_objectives",a,b);if(0!==a.length){var d=this.getRefusedObjectives();this._privacyAwareAndDoNotTrack()&&(this._setValues("refused_objectives",d,b),this.deleteDntRefusedObjectives(),k&&c.logInfo("Set permission level because of consented objectives: "+
  a),l.setLevel(l.PERSONAL,"Set consented objectives: "+a))}};this.setRefusedObjectives=function(a,c){this._privacyAwareAndDoNotTrack()?b(a):this._setValues("refused_objectives",a,c)};this.loadValues=function(a,b,f){a=c.ensureArray(a);x.getProperties(a,this,function(){c.doCallback(b,f)});h.submitBatch()};this.addProperty=function(a,b){c.logDeprecated("profile.addProperty(property, value)","profile.addValue(property, value)");this.addValue(a,b)};this.getDntRefusedObjectives=function(){var a;return(a=
  S?localStorage.getItem("BCRefusedObjectives"):c.getCookie("BCRefusedObjectives"))?c.ensureArray(a.split(",")):[]};this.deleteDntRefusedObjectives=function(){S?localStorage.removeItem("BCRefusedObjectives"):c.setCookie("BCRefusedObjectives",null)};this._privacyAwareAndDoNotTrack=function(){return this.hasSupportedLegislation()&&l.getLevel()===l.DO_NOT_TRACK};this.hasSupportedLegislation=function(){var a=this.getPrivacyLegislation();return 0<=c.indexOfArray(gb,a)};this.profileIsPrivacyAware=function(){return!this.getPrivacyLegislation()||
  this.hasSupportedLegislation()}}function Z(a){this.getId=function(){return t.getId()};this.getPropertyNames=function(){return t.getPropertyNames()};this.getValue=function(a){return t.getValue(a)};this.getValues=function(a){return t.getValues(a)};this.setValue=function(b,c){t.setValue(b,c,a)};this.setValues=function(b,c){t.setValues(b,c,a)};this.addValue=function(b,c){t.addValue(b,c,a)};this.getPrivacyLegislation=function(){return t.getPrivacyLegislation()};this.getConsentedObjectives=function(){return t.getConsentedObjectives()};
  this.getRefusedObjectives=function(){return t.getRefusedObjectives()};this.setPrivacyLegislation=function(a,c){t.setPrivacyLegislation(a,c)};this.addConsentedObjective=function(b){t.addConsentedObjective(b,a)};this.addRefusedObjective=function(b){t.addRefusedObjective(b,a)};this.setConsentedObjectives=function(b){t.setConsentedObjectives(b,a)};this.setRefusedObjectives=function(b){t.setRefusedObjectives(b,a)};this.loadValues=function(a,c,e){t.loadValues(a,c,e)};this.addProperty=function(a,c){t.addProperty(a,
  c)};this.isNew=function(){return Ta};this.getLifecycleStages=function(){return X}}function Eb(a){this._apiVersion=a&&a.recommendationBlock?2:1;if(1===this._apiVersion)this._id=a&&0<a.length?a[0].recommendationId[0]:null,this._items=a?a:[];else{this._id=a.recommendationId;this._setsOrder=[];this._groupedItems={};for(var b=u.util.array.ensureArray(a.recommendationBlock),c=0;c<b.length;c++)for(var e=u.util.array.ensureArray(b[c].recommendations),f=0;f<e.length;f++){var g=b[c].id;e[f].recommendationId=
  this._id;e[f].setId=g;this._groupedItems[g]||(this._groupedItems[g]=[],this._setsOrder.push(g));this._groupedItems[g].push(e[f])}this._trackingPixel=a.trackingPixel}this.getId=function(){return this._id};this.getAPIVersion=function(){return this._apiVersion};this.getItems=function(){if(1===this.getAPIVersion())return this._items;for(var a=[],b=0;b<this._setsOrder.length;b++)a=a.concat(this._groupedItems[this._setsOrder[b]]);return a};this.getSetsOrder=function(){return this._setsOrder};this.getGroupedItems=
  function(){return this._groupedItems};this.getTrackingPixelUrl=function(){return this._trackingPixel}}function Fb(a,b,c,e,f){this._id=a;this._html=b;this._css=c;this._javascript=e;this._precompiledTemplate=f;this.getId=function(){return this._id};this.getHtml=function(){return this._html};this.getCss=function(){return this._css};this.getJavaScript=function(){return this._javascript};this.getPrecompiled=function(){return this._precompiledTemplate}}function Gb(a,b,c){this._id=a;this._title=b;this._description=
  c;this.getId=function(){return this._id};this.getTitle=function(){return this._title};this.getDescription=function(){return this._description}}function Hb(a){this._id=a;this.getId=function(){return this._id}}function Ib(a,b){this._id=a;this._name=b;this.getId=function(){return this._id};this.getName=function(){return this._name}}function Jb(a,b){this._id=a;this._name=b;this.getId=function(){return this._id};this.getName=function(){return this._name}}function Kb(a,b){this._lifecycle=a;this._stage=
  b;this.getLifecycle=function(){return this._lifecycle};this.getStage=function(){return this._stage}}function Lb(){k&&c.logInfo("The browser has no JSON support; the json2 [http://www.JSON.org/js.html] is used for handling JSON");wa={};(function(a){function b(a){return 10>a?"0"+a:a}function c(a){g.lastIndex=0;return g.test(a)?'"'+a.replace(g,function(a){var b=n[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function e(a,b){var d,f,g=q,n,h=b[a];
  h&&"object"===typeof h&&"function"===typeof h.bcToJSON&&(h=h.bcToJSON(a));"function"===typeof y&&(h=y.call(b,a,h));switch(typeof h){case "string":return c(h);case "number":return isFinite(h)?String(h):"null";case "boolean":case "null":return String(h);case "object":if(!h)return"null";q+=r;n=[];if("[object Array]"===Object.prototype.toString.apply(h)){f=h.length;for(a=0;a<f;a+=1)n[a]=e(a,h)||"null";b=0===n.length?"[]":q?"[\n"+q+n.join(",\n"+q)+"\n"+g+"]":"["+n.join(",")+"]";q=g;return b}if(y&&"object"===
  typeof y)for(f=y.length,a=0;a<f;a+=1)"string"===typeof y[a]&&(d=y[a],(b=e(d,h))&&n.push(c(d)+(q?": ":":")+b));else for(d in h)Object.prototype.hasOwnProperty.call(h,d)&&(b=e(d,h))&&n.push(c(d)+(q?": ":":")+b);b=0===n.length?"{}":q?"{\n"+q+n.join(",\n"+q)+"\n"+g+"}":"{"+n.join(",")+"}";q=g;return b}}"function"!==typeof Date.prototype.bcToJSON&&(Date.prototype.bcToJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+b(this.getUTCMonth()+1)+"-"+b(this.getUTCDate())+"T"+b(this.getUTCHours())+
  ":"+b(this.getUTCMinutes())+":"+b(this.getUTCSeconds())+"Z":null},String.prototype.bcToJSON=Number.prototype.bcToJSON=Boolean.prototype.bcToJSON=function(a){return this.valueOf()});var f=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,g=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,q,r,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},
  y;"function"!==typeof a.stringify&&(a.stringify=function(a,b,c){var d;r=q="";if("number"===typeof c)for(d=0;d<c;d+=1)r+=" ";else"string"===typeof c&&(r=c);if((y=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return e("",{"":a})});"function"!==typeof a.parse&&(a.parse=function(a,b){function c(a,d){var e,f,g=a[d];if(g&&"object"===typeof g)for(e in g)Object.prototype.hasOwnProperty.call(g,e)&&(f=c(g,e),f!==E?g[e]=f:delete g[e]);return b.call(a,
  d,g)}a=String(a);f.lastIndex=0;f.test(a)&&(a=a.replace(f,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return a=eval("("+a+")"),"function"===typeof b?c({"":a},""):a;throw new SyntaxError("JSON.parse");})})(wa)}var Nb=L?L:"FORCE_POST";var BC_URL='https://infosys.blueconic.net';var BC_HOSTNAME_MAP = {};
  var xa=document.createElement("a");xa.href=BC_URL;Y=-1===xa.href.substring(xa.protocol.length).indexOf(":")?xa.hostname:xa.host;var I=!1;if(m.name&&0==m.name.indexOf("bc_")||top.window!=m||document.cookie&&-1!=document.cookie.indexOf("BC_e\x3dtrue"))if(m.top!=m||m.opener){I=!0;try{top.location.host!=document.location.host||m.opener||(I=!1)}catch(a){I=!0}}if(!m.blueConicClient||-1==BC_URL.indexOf(Y)){var hb=function(){if(I)return BC_URL;var a="undefined"!=typeof Y?"https://"+Y:null;a&&-1!=BC_URL.indexOf(Y.split(":")[0].replace("http://",
  ""))||(a=BC_URL);if(!a)a:{var b;b=document.getElementsByTagName("script");for(var c=0,e=b.length;c<e;c++)if(a=b[c],(a=a.getAttribute("src"))&&-1!==a.indexOf("/blueconic/blueconic")){b=document.createElement("a");b.href=a;a="https://"+b.host;break a}a=void 0}return a},ib=hb(),J="undefined"!=typeof ta&&ta?ta:null,jb=function(){var a=m.navigator.userLanguage||navigator.systemLanguage||m.navigator.language;if(!a)return null;var b=-1!==a.indexOf("-")?a.indexOf("-"):a.indexOf("_");-1!=b&&(a=a.substring(0,
  b));return a=a.toLowerCase()},R=jb.call(this),Ob=(new Date).getTime(),k="undefined"!=typeof eb&&eb,T="undefined"!=typeof console&&console&&console.log,ga=!1,kb=!1,Ua=!1,ha=[],Pb=["LISTENER","TOOLBAR"],qa=!1,ya=!1,za=!1,Va=null,gb=[],Wa=null,Aa;Aa=m.navigator&&m.navigator.userAgent?navigator.userAgent.toLowerCase():"unknown";var Qb=function(){try{var a;document.createEvent?(a=document.createEvent("Event"),a.initEvent("onBlueConicEventCheck",!0,!0),m.dispatchEvent(a)):(a=document.createEventObject(),
  m.fireEvent("onBlueConicEventCheck",a));return!0}catch(b){return!1}}(),Rb=function(){if("undefined"!=typeof XMLHttpRequest&&XMLHttpRequest){if("withCredentials"in new XMLHttpRequest)return k&&T&&console.log("CORS is fully supported. Chrome/Firefox/Opera/Safari/IE10+"),!0;if("undefined"!=typeof XDomainRequest)return k&&T&&console.log("CORS is not fully supported in IE8/9, fallback to old GET mechanism."),!1}k&&T&&console.log("CORS is not supported.");return!1}(),S;try{localStorage.setItem("bc_local_storage_check",
  "bc_local_storage_check"),localStorage.removeItem("bc_local_storage_check"),S=!0}catch(a){S=!1}var Ba=!0,Xa=null,U=!0,lb=!1,Ca=function(){if(m.navigator&&m.navigator.vendor&&-1!==m.navigator.vendor.toLowerCase().indexOf("apple")||-1!==Aa.indexOf("safari/"))U=!1;return-1!==Aa.indexOf("firefox")?(-1!==Aa.indexOf("gecko/")&&(U=!1),7168):-1!==Aa.indexOf("chrome")?(U=!0,7168):3072}();N!==E&&(U=U?N:!1,k&&T&&console.log("Cookie sync is toggled by configuration: "+U));var wa=null,mb=Object.prototype.toString,
  fa=Object.prototype.hasOwnProperty,z=Array.prototype.push,Sb=Array.prototype.unshift,nb=Array.prototype.indexOf,Tb=Array.prototype.isArray,Ub=Array.prototype.filter,Vb=Array.prototype.map,ia=null,Da=null,ob=!1,Ea;try{ia=document.cookie,Ea=!0}catch(a){Ea=!1}for(var pb=null,qb=null,Ya=null,K=[],ja=[],X=[],va=null,W=[],ka=null,t=null,Ta=!1,Ja=null,Ka=null,Oa=null,Fa=[],Za={},$a={},Pa={},da={},rb={},ab="bc_pre_"+(new Date).getTime(),sb="bc_post_"+(new Date).getTime(),Qa="bc_async_"+(new Date).getTime(),
  ea=fb?fb:[],tb=!1,ub=["bc_simulator","bc_dialogues","bc_visualpicker"],vb="ArrayBuffer Attr Audio AudioProcessingEvent BCClass BeforeLoadEvent Blob CDATASection CSSCharsetRule CSSFontFaceRule CSSImportRule CSSMediaRule CSSPageRule CSSPrimitiveValue CSSRule CSSRuleList CSSStyleDeclaration CSSStyleRule CSSStyleSheet CSSValue CSSValueList CanvasGradient CanvasPattern CanvasRenderingContext2D CharacterData ClientRect ClientRectList Clipboard CloseEvent Comment CompositionEvent Counter CustomEvent DOMException DOMImplementation DOMParser DOMSettableTokenList DOMStringList DOMStringMap DOMTokenList DataView DeviceOrientationEvent Document DocumentFragment DocumentType Element Entity EntityReference ErrorEvent Event EventException EventSource File FileError FileList FileReader Float32Array Float64Array FormData HTMLAllCollection HTMLAnchorElement HTMLAppletElement HTMLAreaElement HTMLAudioElement HTMLBRElement HTMLBaseElement HTMLBaseFontElement HTMLBodyElement HTMLButtonElement HTMLCanvasElement HTMLCollection HTMLDListElement HTMLDirectoryElement HTMLDivElement HTMLDocument HTMLElement HTMLEmbedElement HTMLFieldSetElement HTMLFontElement HTMLFormElement HTMLFrameElement HTMLFrameSetElement HTMLHRElement HTMLHeadElement HTMLHeadingElement HTMLHtmlElement HTMLIFrameElement HTMLImageElement HTMLInputElement HTMLKeygenElement HTMLLIElement HTMLLabelElement HTMLLegendElement HTMLLinkElement HTMLMapElement HTMLMarqueeElement HTMLMediaElement HTMLMenuElement HTMLMetaElement HTMLMeterElement HTMLModElement HTMLOListElement HTMLObjectElement HTMLOptGroupElement HTMLOptionElement HTMLOutputElement HTMLParagraphElement HTMLParamElement HTMLPreElement HTMLProgressElement HTMLQuoteElement HTMLScriptElement HTMLSelectElement HTMLSourceElement HTMLSpanElement HTMLStyleElement HTMLTableCaptionElement HTMLTableCellElement HTMLTableColElement HTMLTableElement HTMLTableRowElement HTMLTableSectionElement HTMLTextAreaElement HTMLTitleElement HTMLUListElement HTMLUnknownElement HTMLVideoElement HashChangeEvent IceCandidate Image ImageData Int16Array Int32Array Int8Array KeyboardEvent MediaController MediaError MediaList MediaStreamEvent MessageChannel MessageEvent MessagePort MimeType MimeTypeArray MouseEvent MutationEvent NamedNodeMap Node NodeFilter NodeList Notation OfflineAudioCompletionEvent Option OverflowEvent PERSISTENT PageTransitionEvent Plugin PluginArray PopStateEvent ProcessingInstruction ProgressEvent RGBColor Range RangeException Rect SQLException SVGAElement SVGAltGlyphDefElement SVGAltGlyphElement SVGAltGlyphItemElement SVGAngle SVGAnimateColorElement SVGAnimateElement SVGAnimateMotionElement SVGAnimateTransformElement SVGAnimatedAngle SVGAnimatedBoolean SVGAnimatedEnumeration SVGAnimatedInteger SVGAnimatedLength SVGAnimatedLengthList SVGAnimatedNumber SVGAnimatedNumberList SVGAnimatedPreserveAspectRatio SVGAnimatedRect SVGAnimatedString SVGAnimatedTransformList SVGCircleElement SVGClipPathElement SVGColor SVGComponentTransferFunctionElement SVGCursorElement SVGDefsElement SVGDescElement SVGDocument SVGElement SVGElementInstance SVGElementInstanceList SVGEllipseElement SVGException SVGFEBlendElement SVGFEColorMatrixElement SVGFEComponentTransferElement SVGFECompositeElement SVGFEConvolveMatrixElement SVGFEDiffuseLightingElement SVGFEDisplacementMapElement SVGFEDistantLightElement SVGFEDropShadowElement SVGFEFloodElement SVGFEFuncAElement SVGFEFuncBElement SVGFEFuncGElement SVGFEFuncRElement SVGFEGaussianBlurElement SVGFEImageElement SVGFEMergeElement SVGFEMergeNodeElement SVGFEMorphologyElement SVGFEOffsetElement SVGFEPointLightElement SVGFESpecularLightingElement SVGFESpotLightElement SVGFETileElement SVGFETurbulenceElement SVGFilterElement SVGFontElement SVGFontFaceElement SVGFontFaceFormatElement SVGFontFaceNameElement SVGFontFaceSrcElement SVGFontFaceUriElement SVGForeignObjectElement SVGGElement SVGGlyphElement SVGGlyphRefElement SVGGradientElement SVGHKernElement SVGImageElement SVGLength SVGLengthList SVGLineElement SVGLinearGradientElement SVGMPathElement SVGMarkerElement SVGMaskElement SVGMatrix SVGMetadataElement SVGMissingGlyphElement SVGNumber SVGNumberList SVGPaint SVGPathElement SVGPathSeg SVGPathSegArcAbs SVGPathSegArcRel SVGPathSegClosePath SVGPathSegCurvetoCubicAbs SVGPathSegCurvetoCubicRel SVGPathSegCurvetoCubicSmoothAbs SVGPathSegCurvetoCubicSmoothRel SVGPathSegCurvetoQuadraticAbs SVGPathSegCurvetoQuadraticRel SVGPathSegCurvetoQuadraticSmoothAbs SVGPathSegCurvetoQuadraticSmoothRel SVGPathSegLinetoAbs SVGPathSegLinetoHorizontalAbs SVGPathSegLinetoHorizontalRel SVGPathSegLinetoRel SVGPathSegLinetoVerticalAbs SVGPathSegLinetoVerticalRel SVGPathSegList SVGPathSegMovetoAbs SVGPathSegMovetoRel SVGPatternElement SVGPoint SVGPointList SVGPolygonElement SVGPolylineElement SVGPreserveAspectRatio SVGRadialGradientElement SVGRect SVGRectElement SVGRenderingIntent SVGSVGElement SVGScriptElement SVGSetElement SVGStopElement SVGStringList SVGStyleElement SVGSwitchElement SVGSymbolElement SVGTRefElement SVGTSpanElement SVGTextContentElement SVGTextElement SVGTextPathElement SVGTextPositioningElement SVGTitleElement SVGTransform SVGTransformList SVGUnitTypes SVGUseElement SVGVKernElement SVGViewElement SVGZoomEvent Selection SessionDescription SharedWorker SpeechInputEvent Storage StorageEvent StyleSheet StyleSheetList TEMPORARY Text TextEvent TextMetrics TimeRanges TouchEvent UIEvent URL Uint16Array Uint32Array Uint8Array Uint8ClampedArray WebGLActiveInfo WebGLBuffer WebGLContextEvent WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLRenderingContext WebGLShader WebGLTexture WebGLUniformLocation WebKitAnimationEvent WebKitBlobBuilder WebKitCSSFilterValue WebKitCSSKeyframeRule WebKitCSSKeyframesRule WebKitCSSMatrix WebKitCSSRegionRule WebKitCSSTransformValue WebKitIntent WebKitMutationObserver WebKitPoint WebKitTransitionEvent WebSocket WheelEvent Window Worker XMLDocument XMLHttpRequest XMLHttpRequestException XMLHttpRequestProgressEvent XMLHttpRequestUpload XMLSerializer XPathEvaluator XPathException XPathResult XSLTProcessor addEventListener alert applicationCache atob bcHostname bcVerbose blueConicClient blueConicPreListeners blur btoa caches cancelAnimationFrame cancelIdleCallback captureEvents chrome clearInterval clearTimeout clientInformation close closed confirm console content controllers createImageBitmap crypto customElements defaultStatus defaultstatus devicePixelRatio disableExternalCapture dispatchEvent document enableExternalCapture event external fetch find focus forward frameElement frames fullScreen getComputedStyle getMatchedCSSRules getSelection globalStorage history home indexedDB innerHeight innerWidth isSecureContext length localStorage location locationbar matchMedia menubar moveBy moveTo mozAnimationStartTime mozCancelAnimationFrame mozCancelRequestAnimationFrame mozIndexedDB mozInnerScreenX mozInnerScreenY mozPaintCount mozRequestAnimationFrame myVar name navigator offscreenBuffering onabort onafterprint onafterscriptexecute onanimationend onanimationiteration onanimationstart onappinstalled onauxclick onbeforeinstallprompt onbeforeprint onbeforescriptexecute onbeforeunload onblur oncancel oncanplay oncanplaythrough onchange onclick onclose oncontextmenu oncopy oncuechange oncut ondblclick ondevicemotion ondeviceorientation ondeviceorientationabsolute ondrag ondragend ondragenter ondragleave ondragover ondragstart ondrop ondurationchange onemptied onended onerror onfocus ongotpointercapture onhashchange oninput oninvalid onkeydown onkeypress onkeyup onlanguagechange onload onloadeddata onloadedmetadata onloadstart onlostpointercapture onmessage onmessageerror onmousedown onmouseenter onmouseleave onmousemove onmouseout onmouseover onmouseup onmousewheel onmozfullscreenchange onmozfullscreenerror onoffline ononline onpagehide onpageshow onpaste onpause onplay onplaying onpointercancel onpointerdown onpointerenter onpointerleave onpointermove onpointerout onpointerover onpointerup onpopstate onprogress onratechange onrejectionhandled onreset onresize onscroll onsearch onseeked onseeking onselect onshow onstalled onstorage onsubmit onsuspend ontimeupdate ontoggle ontouchcancel ontouchend ontouchmove ontouchstart ontransitionend onunhandledrejection onunload onvolumechange onwaiting onwebkitanimationend onwebkitanimationiteration onwebkitanimationstart onwebkittransitionend onwheel open openDatabase openDialog opener origin outerHeight outerWidth pageXOffset pageYOffset parent performance personalbar pkcs11 postMessage print prompt releaseEvents removeEventListener requestAnimationFrame requestIdleCallback resizeBy resizeTo routeEvent screen screenLeft screenTop screenX screenY scroll scrollBy scrollByLines scrollByPages scrollMaxX scrollMaxY scrollTo scrollX scrollY scrollbars self sessionStorage setInterval setResizable setTimeout showModalDialog sizeToContent speechSynthesis status statusbar stop styleMedia toolbar top updateCommands v8Locale visualViewport webkitAudioContext webkitAudioPannerNode webkitCancelAnimationFrame webkitCancelRequestAnimationFrame webkitConvertPointFromNodeToPage webkitConvertPointFromPageToNode webkitIDBCursor webkitIDBDatabase webkitIDBDatabaseError webkitIDBDatabaseException webkitIDBFactory webkitIDBIndex webkitIDBKeyRange webkitIDBObjectStore webkitIDBRequest webkitIDBTransaction webkitIndexedDB webkitNotifications webkitPostMessage webkitRequestAnimationFrame webkitRequestFileSystem webkitResolveLocalFileSystemURL webkitStorageInfo webkitURL window".split(" "),
  la={},bb=0;bb<vb.length;bb++)la[vb[bb]]=null;var cb=["$"],ra,p=function(){if(!ib)return k&&c.logInfo("blueconic stopped running because the hostname is not defined"),null};p.prototype.createEvent=function(a,b,d,e,f){var g=-1<c.indexOfArray(v.dynamicTypes,a),q=-1<c.indexOfArray(v.types,a),r=!0===b,n=null!==b&&"object"===typeof b;r&&(ya=!0);if(q||g)if(q&&"PAGEVIEW"!=a&&!b)c.logWarning("An interaction is required for event type ["+a+"]");else{"PAGEVIEW"!==a||r||x.getProfile();"PAGEVIEW"!==a||qa&&!r||
  (ea&&0<ea.length&&x.updateProfile(),r||h.handleRevisions());var q={type:a,referrer:document.referrer,profile:null!==t?t.getId():c.getBcSessionId()},y;for(y in f)f.hasOwnProperty(y)&&(q[y]=f[y]);n?(f=db.getParams(a,{timestamp:new Date,data:b,profile:q.profile,referrer:q.referrer},d),q.timelineContext=f.data,q.timestamp=f.timestamp,q.eventSource=f.eventSource):q.interaction=b;v.create(q,this,function(f){"VIEW"===a&&f&&Ra(f,!1);g&&Ra(f,!1);c.doCallback(d,e,f);v.publish(a,b)});"VIEW"===a?h.submitBatchTimeout(200,
  "VIEW"):g?h.submitBatchTimeout(0,"DYNAMIC"):h.submitBatch()}else v.publish(a,b)};p.prototype.setEditableNode=function(a,b){this.functions.setEditableNode(a,b)};p.prototype.getHostname=function(){return Y};p.prototype.getIPAddress=function(){return qb};p.prototype.getInteractions=function(){return K};p.prototype.getInteractionNamesById=function(a){var b=null;if(K&&0<K.length)for(var c=0;c<K.length;c++)K[c].id===a&&(b=K[c]);return b};p.prototype.getSegments=function(){return ja};p.prototype.getTemplate=
  function(a,b){if(a){p.prototype._templateCallbacks||(p.prototype._templateCallbacks={});var d=(new Date).getTime()+Math.random();p.prototype._templateCallbacks[d]&&(d=(new Date).getTime()+Math.random());p.prototype._templateCallbacks[d]={onSuccess:b,templateId:a};var e=function(){for(var a=c.getPropertiesFromObject(p.prototype._templateCallbacks),b=0;b<a.length;b++){var d=p.prototype._templateCallbacks[a[b]];if(d){delete p.prototype._templateCallbacks[a[b]];var e=rb[d.templateId];if(!e){c.logWarning("Template with ID ["+
  d.templateId+"] is not found.");break}c.doCallback(this,d.onSuccess,e)}}};p.prototype.isInEditMode()&&!p.prototype._isTemplateDownloading&&(za=!1,Oa=null,k&&c.logInfo("download templates again for edit mode"));za||p.prototype._isTemplateDownloading?p.prototype._isTemplateDownloading||e():(p.prototype._isTemplateDownloading=!0,a=(I?BC_URL:Q())+"/templates",c.loadScript(Oa?a+"/"+Oa:a,this,function(){delete p.prototype._isTemplateDownloading;k&&c.logInfo("finished template download");e()}))}else c.logWarning("A templateID is required for loading a template")};
  p.prototype.getChannelId=function(){return pb};p.prototype.isInEditMode=function(){return m.name&&"bc_dialogues"===m.name.substring(0,12)||m.bcEditModeInstanceName&&-1<m.bcEditModeInstanceName.indexOf("bc_dialogues")?!0:!1};p.prototype.setHostname=function(a){c.logDeprecated("blueConicClient.setHostName","Use setChannelIdentifier instead.");J=a};p.prototype.setChannelIdentifier=function(a){J=a};p.prototype.getStaticUrlPrefix=function(a){c.logDeprecated("blueConicClient.getStaticUrlPrefix","Use getBaseURL instead");
  return c.getBaseURL(a)};p.prototype.getBaseURL=function(a){return c.getBaseURL(a)};p.prototype.getRestEndpoint=function(a){var b=Q()+"/rest/custom/frontend/",d=c.getZoneId();d&&(b+=d+"/");a&&(b+=a);return b};p.prototype.isInSimulatorMode=function(){return m.name&&-1<m.name.indexOf("bc_simulator")};p.prototype.getCurrentDate=function(){return p.prototype.isInSimulatorMode()&&Va?Va:new Date};p.prototype.doNotShowAgain=function(a,b,c){if(a&&!this.isInEditMode()){var d=this.profile.getProfile();d&&(d.addValue("dialogues_do_not_show_again",
  a),this.profile.updateProfile(b,c))}};p.prototype.getProfileProperties=function(a,b){var d=(new Date).getTime()+ ++h.requestId;h.addBatchRequest(h.GET_PROFILE_PROPERTIES,null,d,this,function(d){var e={};if(d&&d.result){d=d.result;if(d.properties){var e=d.properties,g;for(g in e)e[g].permissionLevel&&(e[g].permissionLevel=l[e[g].permissionLevel])}c.doCallback(a,b,e)}});h.submitBatch()};p.prototype.handlePageView=function(a){Wa&&clearTimeout(Wa);Wa=setTimeout(function(){k&&c.logInfo("handling asynchronous navigation for new url ["+
  document.location.href+"], creating new PAGEVIEW event to retrieve interactions for this url.");h.resetThrottlingCounter(!0);a&&!0===a.hidePositions&&B.hideAllPositions();var b=document.getElementById(Qa);b&&b.parentNode.removeChild(b);u._pendingInteractions=[];B.checkPreListeners();Ta=!1;u.createEvent("PAGEVIEW",!0,this,function(a){v.publish(v.ON_URL_CHANGE,{url:document.location.href});Ra(a,!1)})},10)};p.prototype.mail={sendEmail:function(a,b,d,e){var f=u._handledInteractions;if(f){for(var g=null,
  q=0,r=f.length;q<r&&!g;q++)f[q]&&f[q].context&&f[q].context.getInteractionId()===a&&(g=f[q].context);g&&(locale=g._usedLocale,f=(new Date).getTime()+ ++h.requestId,a={interactionId:[a],onlyOnce:[b],langId:[locale]},x.updateProfile(),h.addBatchRequest(h.SEND_MAIL,a,f,this,function(a){a&&c.doCallback(d,e,a)}),h.submitBatch())}}};p.prototype.util={loadScript:function(a,b,d){c.loadScript(a,b,d)},loadJSON:function(a,b,d){h.JSONP.get(a,null,function(a){c.doCallback(b,d,a)})},loadCSS:function(a){c.loadCSS(a)},
  load:function(a,b,d,e,f){c.logDeprecated("blueConicClient.util.load (libname, libversion, liboptions, caller, onSuccess)","blueConicClient.util.loadScript (url, caller, onSuccess)");"function"!=typeof f?c.logError('blueConicClient.util.load "onSuccess" is not a function'):c.loadScript(a,e,f)},loadLabels:function(a,b){c.logDeprecated("blueConicClient.util.loadLabels(caller, onSuccess)","blueConicClient.getProfileProperties(caller, onSuccess)");var d=(new Date).getTime()+ ++h.requestId;h.addBatchRequest(h.GET_PROPERTY_LABELS,
  null,d,this,function(d){var e={};if(d&&d.result){d=d.result;if(d.properties)for(var g in d.properties){e[g]={};var q=d.properties[g],r;for(r in q)e[g][r]=q[r]}c.doCallback(a,b,e)}});h.submitBatch()},log:function(a){c.log(a)}};p.prototype.util.cookie={setCookie:function(a,b,d){return c.setCookie(a,b,d)},getCookie:function(a){return c.getCookie(a)}};p.prototype.util.array={ensureArray:function(a){return c.ensureArray(a)},isArray:function(a){return c.isArray(a)},diffArrays:function(a,b){return c.diffArrays(a,
  b)},removeItemFromArray:function(a,b){c.removeItemFromArray(a,b)},indexOfArray:function(a,b){return c.indexOfArray(a,b)},mergeArrays:function(a,b){c.mergeArrays(a,b)}};var wb=function(a){return{updateProfile:function(a,d){var b=a,f=d;"function"==typeof a&&(c.logDeprecated("blueConicClient.profile.updateProfile (onSuccess, caller)","blueConicClient.profile.updateProfile (caller, onSuccess)"),f=a,b=d);x.updateProfile(b,f);h.submitBatch()},createProfile:function(a,c){x.createProfile(a,c);h.submitBatch()},
  deleteProfile:function(a,d){var b=a,f=d;"function"==typeof a&&(c.logDeprecated("blueConicClient.profile.deleteProfile (onSuccess, caller)","blueConicClient.profile.deleteProfile (caller, onSuccess)"),f=a,b=d);x.deleteProfile(b,f);h.submitBatch()},getProfile:function(){return t?new Z(a):null}}};p.prototype.functions={setLocaleFunction:function(a){a&&"function"==typeof a?(R=a.call(null),k&&c.logInfo("runned locale function, the locale is now ["+R+"]")):R=jb.call(this)},setEditableNode:function(a,b){if(u.fn.postMessage&&
  u.fn.getSelectorForElement){var c=null;"string"==typeof a?c=a:null!=a&&(c=u.fn.getSelectorForElement(a));u.fn.postMessage("editableNodeUpdate",{selector:c,options:b})}},sendMessage:function(a){u.fn.postMessage&&u.fn.postMessage("onInteractionMessage",a)}};p.prototype.json={parse:function(a){try{return c.checkNativeJsonLib(),Ba?m.JSON.parse(a):wa.parse(a)}catch(b){return c.logError("Could not parse json ["+b.message+"]"),null}},stringify:function(a,b,d){try{c.checkNativeJsonLib();var e=!1,f=null;Array.prototype.toJSON&&
  (e=!0,f=Array.prototype.toJSON,delete Array.prototype.toJSON);var g;if(Ba)return g=m.JSON.stringify(a,b,d),e&&(Array.prototype.toJSON=f),g;g=wa.stringify(a,b,d);e&&(Array.prototype.toJSON=f);return g}catch(q){return c.logError("Could not stringify object ["+q.message+"]"),null}}};p.prototype.fn={createInteraction:function(a){if(a){var b=c.getInteractionParameters(a);return new Db(a,b)}},postMessage:function(a,b){(m.opener&&m.opener!=m?m.opener:m.parent).postMessage({event:a,message:b,instanceName:m.bcEditModeInstanceName||
  u.instanceName},"*")},stringify:function(a,b,d){return c.stringifyObject(a,b,d)},addGlobalVarToBlacklist:function(a){la[a]=null},addImplicitGlobalList:function(a){z.call(cb,a)},handlePreListeners:function(a){if(a)for(var b=0,d=a.length;b<d;b++){var e=a[b],f=e.getInteractionTypeId();k&&c.logInfo("start handling pre listener ["+f+"]");var g=Za[f];if(g&&"function"===typeof g){var q=e.getBlueConicClient(),e=g.call(this,q,e);if(e.onPrepare&&"function"===typeof e.onPrepare){k&&c.logInfo("call method [onPrepare] for listener ["+
  f+"]");try{e.onPrepare()}catch(r){c.logError("an error occured in interactiontype: ["+f+"]\x3cbr\x3ecalled method: [onPrepare]\x3cbr\x3eerror: "+r.message),k&&console.error&&console.error(r)}}}}},updateParams:function(a,b,c){for(var d=u._handledInteractions,f=0,g=d.length;f<g;f++){var q=d[f];a&&null===q.id&&(q.id=a);if(q.id==a){q.context.setParameters(b,c);var r="function"==typeof q.interaction.onUpdate?q.interaction.onUpdate:null;r&&r.call(q.interaction)}}},handleInteractions:function(a,b){a=B.handleLocalEditModeInteractions(a);
  var d=B.prepareInteractions(a,b);(a=document.getElementById(sb))&&a.parentNode.removeChild(a);a=[];for(var e=0,f=d.length;e<f;e++){var g=d[e];if(g.getPreloadProperties)try{var q=g.getPreloadProperties();c.mergeArrays(a,q)}catch(n){c.logError("an error occured in interactiontype: ["+g.ctx.getInteractionTypeId()+"]\x3cbr\x3ecalled method: [getPreloadProperties]\x3cbr\x3eerror: "+n.message),k&&console.error&&console.error(n)}}if(t&&0<a.length){k&&c.logInfo("start preloading "+a.length+" profile properties");
  var r=0,q=function(){r++;2===r&&B.executeInteractionsOnDocReady(d,b)};B.downloadLibraries(q);t.loadValues(a,this,q)}else k&&c.logInfo("skip preloading "+a.length+" profile properties"),B.executeInteractionsOnDocReady(d,b)},getBCHostnameAwarePluginsRepositoryUrl:function(a,b){var c=pa();return c?c+b:a},getBCHostnameAwareLocalPluginsUrl:function(){return pa()||BC_URL},getBCUrl:function(){return BC_URL},registerInteractionType:function(a,b,d,e){var f=[];if(b){for(var g=0;d&&g<d.length;g++)z.call(f,d[g].url+
  " - "+d[g].sharing);k&&c.logInfo("register plugin ["+a+"] with libraries \x3cbr\x3e"+f.join("\x3cbr\x3e"))}else return c.logInfo("did not register interactionype with id : ["+a+"]. InteractionTypeImpl is undefined."),null;var q;(function(){q=function(d,e){try{return new b(d,e)}catch(y){c.logError("an error occured in interactiontype: ["+a+"]\x3cbr\x3ecalled method: [init]\x3cbr\x3eerror: "+y.message),k&&console.error&&console.error(y)}}})();if(e)for(f=0;f<e.length;f++)(g=e[f])&&g.id&&g.baseUrl&&!Fa[g.id]&&
  (Fa[g.id]=g.baseUrl);Za[a]=q;$a[a]=d},registerLibrary:function(a,b,d){k&&c.logInfo("register library ["+a+"]");da[a]={libraryFunction:b,libraryName:d}},registerTemplates:function(a){if(a&&!za){var b=c.getPropertiesFromObject(a);k&&c.logInfo("registering templates with the following IDs ["+b+"]");for(var d=0;d<b.length;d++){var e=a[b[d]];e.css!==E&&e.js!==E&&e.html!==E&&(rb[b[d]]=new Fb(b[d],e.html,e.css,e.js,e.precompiled?e.precompiled:null))}za=!0}},saveGlobalVariables:function(){var a={},b=[],d=
  null;for(d in m)la[d]===E&&(a[d]=m[d],z.call(b,d));for(var e=cb.length,f=0;f<e;f++)d=cb[f],-1===c.indexOfArray(b,d)&&m[d]&&(a[d]=m[d],z.call(b,d));return function(){for(var d=[],e=b.length,f=0;f<e;f++){var n=b[f];if(la[n]===E&&m[n]!==a[n]){k&&c.logInfo(typeof m[n]+" ["+n+"] moved to private space");this[n]=m[n];z.call(d,n);try{m[n]=a[n]}catch(Na){}}}var e=[],y;for(y in m)la[y]===E&&e.push(y);y=c.diffArrays(e,b);e=0;for(f=y.length;e<f;e++){var n=y[e],h=typeof m[n];if(la[n]===E&&(this[n]=m[n],z.call(d,
  n),"jQuery"===n))try{m[n]=E,delete m[n]}catch(Na){}k&&c.logInfo(h+" ["+n+"] added to private space")}return d}},importLibraries:function(a){a=c.ensureArray(a);var b=a.length;if(0!==b){for(var d=xb(),e=0;e<b;e++)yb.call(this,a[e]);d.call(this)}},importAndCacheLibraries:function(a){a=c.ensureArray(a);var b=a.length,d=this.ctx.getInteractionTypeId();if(0!==b)if(d)for(var e=0;e<b;e++){var f=a[e],g=da[f];if(g===E)k&&c.logError("unexisting library ["+f+"] for interactiontype ["+d+"]");else{var h=g.libraryName;
  Pa[h]?(function(a){for(var b,d=0;d<a.length;d++)b=a[d],k&&c.logInfo("added ["+b.key+"] from cache to private space"),this[b.key]=b.object}.call(this,Pa[h]),k&&c.logInfo("retrieved library ["+f+"] from cache with key ["+h+"] for interactiontype ["+d+"]")):(Pa[h]=[],function(a,b){var e=xb();yb(a);for(var e=e.call(this),f=0;f<e.length;f++){var g={key:null,object:null};g.key=e[f];g.object=this[e[f]];z.call(b,g)}k&&c.logInfo("added library ["+a+"] to cache with key ["+h+"] for interactiontype ["+d+"]")}.call(this,
  f,Pa[h]))}}else k&&c.logInfo("Could not determine the interactiontype during library import")},parseLibrary:function(a){if(da)if(da[a]){var b=da[a].libraryFunction;if(b&&"function"==typeof b){k&&c.logInfo("start import library ["+a+"]");var d=null,e=null;m.define&&(k&&c.logInfo('moving "window.define" out of the way, to make sure library ['+a+"] is parsed properly"),d=m.define,m.define=null);"object"===typeof module&&"object"===typeof module.exports&&(k&&c.logInfo('moving "module.exports" out of the way, to make sure library ['+
  a+"] is parsed properly"),e=module.exports,module.exports=E);b.call(this);d&&(k&&c.logInfo("resetting window.define to original state."),m.define=d);e&&(k&&c.logInfo("resetting module.exports to original state."),module.exports=e)}else c.logError("library with url ["+a+"] not found")}else c.logError("the external library ["+a+"] is declared in the plugin XML but not present.");else c.logError("the external libraries are not loaded")},getDomainGroup:function(a){a=c.hash(a);for(var b in ua){var d=ua[b],
  e;for(e in d)if(d[e]==a)return b}return"DEFAULT"},setRequestInfo:function(a){},getDOMElement:function(a){return c.getDOMElement(a)},version:"2.4.0"};var zb=p.prototype.fn.createInteraction,Ra=p.prototype.fn.handleInteractions,Wb=p.prototype.fn.registerInteractionType,Xb=p.prototype.fn.handlePreListeners,xb=p.prototype.fn.saveGlobalVariables,yb=p.prototype.fn.parseLibrary,B={getBlueConicClient:function(a){var b=u,c=a&&-1<a.getInteractionTypeId().indexOf("editmode_")&&("GLOBALLISTENER"===a.getType()||
  "ACTION"===a.getType());a&&!c&&(a.getInteractionId()===a.getInteractionTypeId()&&"TOOLBAR"!==a.getType()||"GLOBALLISTENER"===a.getType())?(b=new p,b.profile=new wb(a.getInteractionTypeId())):b||(b=new p,b.profile=new wb);return b},publishPlainEventAndCallHook:function(a){if(Qb)try{var b;document.createEvent?(b=document.createEvent("Event"),b.initEvent(a,!0,!0),m.dispatchEvent(b)):(b=document.createEventObject(),m.fireEvent(a,b))}catch(d){}try{if(m[a]&&"function"===typeof m[a])m[a]()}catch(d){}},hideAllPositions:function(){var a=
  J?J:document.location.hostname;k&&c.logInfo("start hide all positions for hostname ["+a+"]");var b=O[c.hash(a)];b&&0<b.length&&c.addCSSToDOM(b,ab,1250);k&&c.logInfo("finished hide all positions for hostname ["+a+"]")},checkPreListeners:function(){var a=[];if(ea.length&&0<ea.length){for(var b=0,c=ea.length;b<c;b++){var e=ea[b];Wb(e.id,e.interactionType);e=zb({id:e.id,name:e.id,interactionType:{myId:e.id}});z.call(a,e)}Xb(a)}tb=!0},observeDOMChanges:function(){var a=u,b=document.getElementsByTagName("body")[0];
  b&&!a._observer&&(m.MutationObserver||m.WebKitMutationObserver||m.MozMutationObserver?(a._observer=new MutationObserver(function(a,b){B.handleDOMMutation()}),a._observer.observe(b,{childList:!0,subtree:!0,characterData:!0})):m.addEventListener&&b.addEventListener("DOMNodeInserted",function(){B.handleDOMMutation()},!1))},handleDOMMutation:function(){u._handleMutationTO&&clearTimeout(u._handleMutationTO);u._handleMutationTO=setTimeout(function(){var a=u._pendingInteractions.length;u.isPaused!==E&&u.isPaused||
  k&&c.logInfo("dom mutation detected, #pending interactions: ["+a+"]");0<a&&(a=B.handleOnLoad(u._pendingInteractions.slice(),!1),k&&c.logInfo("dom mutation detected, #handled: ["+a.length+"]"),0<a.length&&((a=document.getElementById(Qa))&&a.parentNode.removeChild(a),B.hidePendingPositions()));if((a=P.getSelectors().concat())&&0<a.length){k&&c.logInfo("listener subscribers found for the following selectors: ["+a+"]. Callbacks will be called now.");for(var b=0;b<a.length;b++){var d=a[b];try{d&&c.getDOMElement(d)&&
  P.publish(d)}catch(e){k&&console.error(e)}}}delete u._handleMutationTO},100)},isNative:function(a,b){(a=/\{\s*\[native code\]\s*\}/.test(""+a))||c.logWarning("function: ["+b+"] is not native any more, the target website overruled it.");return a},handleLocalEditModeInteractions:function(a){if(!p.prototype.isInEditMode())return a;for(var b=[],d=[],e=0;e<a.length;e++){var f=a[e],g=f.getInteractionTypeId();z.call(b,g);f.isLocalEditMode()?k&&c.logInfo("skipping local edit mode interaction ["+g+"]"):z.call(d,
  f)}for(a=0;a<ra.length;a++)e=ra[a],f=e.getInteractionTypeId(),e.isLocalEditMode()&&(g=f.substring(11),-1!==b.indexOf(g)&&(k&&c.logInfo("adding local edit mode interaction ["+f+"] for interaction type ["+g+"]"),Sb.call(d,e)));return d},shouldExecute:function(a,b){for(var d=0,e=u._handledInteractions.length;d<e;d++){var f=u._handledInteractions[d],f=-1<c.indexOfArray(Pb,b)&&a===f.id,g=!1;f||(g=a&&-1<a.indexOf("editmode_"));if(f||g)return!1}return!0},executeInteractionsOnDocReady:function(a,b){b?B.downloadLibraries(function(){B.injectLibraries(a);
  ga?B.callInteractionMethods(a,b):c.bindDocumentReady(this,function(){B.callInteractionMethods(a,b)})}):(B.injectLibraries(a),ga?B.callInteractionMethods(a,b):c.bindDocumentReady(this,function(){B.callInteractionMethods(a,b)}))},downloadLibraries:function(a){kb?c.doCallback(this,a):Ua?ha.push(a):(ha.push(a),Ua=!0,k&&c.logInfo("start library download from url [/plugin/library] with version ["+Ka+"]"),a=I?BC_URL:Q(),a=Ka?a+"/plugin/library/"+Ka:a+"/plugin/library",I&&(a+="_e"),c.loadScript(a,this,function(){kb=
  !0;Ua=!1;k&&c.logInfo("finished library download");if(ha&&0<ha.length){for(var a=0;a<ha.length;a++)ha[a]&&c.doCallback(this,ha[a]);ha=[]}}))},injectLibraries:function(a){for(var b=0,d=a.length;b<d;b++){var e=a[b].ctx.getInteractionTypeId(),f=a[b].ctx.getName()?a[b].ctx.getName():a[b].ctx.getInteractionId();k&&c.logInfo("start import libraries for interaction ["+f+"]");$a[e]&&a[b].importLibraries($a[e]);k&&c.logInfo("finished import libraries for interaction ["+f+"]")}},prepareInteractions:function(a,
  b){for(var d=[],e=0,f=a.length;e<f;e++){var g=a[e],h=g.getInteractionTypeId(),r=g.getName()?g.getName():g.getInteractionId();if(b||!u._handledInteractions||B.shouldExecute(g.getInteractionId(),g.getType())){k&&c.logInfo("start initializing interaction ["+r+"], interaction type ["+h+"]");var n=Za[h];if(n&&"function"===typeof n){var y=g.getBlueConicClient();if(n=n.call(this,y,g)){n.ctx=g;if(n.getContent&&"function"==typeof n.getContent&&"function"==typeof n.ctx.getPosition&&n.ctx.getPosition()){y=g=
  null;try{g=n.getContent()}catch(Ma){c.logError("an error occured in interactiontype: ["+n.ctx.getInteractionTypeId()+"]\x3cbr\x3ecalled method: [getContent]\x3cbr\x3eerror: "+Ma.message),k&&console.error&&console.error(Ma)}y=n.ctx.getPosition();p.prototype.isInSimulatorMode()&&!g&&y&&n.ctx.getDOMElement();g&&y&&(k&&c.logInfo("start set content mechanism for interaction ["+r+"] with position ["+y+"]"),function(a,b,d){function e(){g++;(f=d.ctx.getDOMElement())?d.ctx.isOnLoadExecuted()?k&&c.logInfo('"onLoad" already executed for interaction ['+
  r+'], skipping "getContent"'):(d.ctx.setGetContentExecuted(!0),c.setContent(f,a),k&&c.logInfo("[+] set content on position ["+b+"] was successful, recursion ["+g+"]")):50<=g?k&&c.logInfo("failed to set content on position ["+b+"] max recursion reached"):qa?k&&c.logInfo("failed to set content on position ["+b+"] onEvent started"):m.setTimeout(e,100)}var f=null,g=0;e.call(this)}(g,y,n))}z.call(d,n)}}else k&&c.logInfo("InteractionType with id ["+h+"] not found");k&&c.logInfo("finished initializing interaction ["+
  r+"], interaction type ["+h+"]")}else k&&c.logInfo("skipping interaction, already executed ["+r+"], interaction type ["+h+"]")}return d},handleOnLoad:function(a,b){for(var d=[],e=0,f=a.length;e<f;e++){var g=a[e];if(g){var h="function"==typeof g.onLoad?g.onLoad:g.onEvent,r=g.ctx.getName()?g.ctx.getName():g.ctx.getInteractionId(),n=g.ctx;if(b||!u._handledInteractions||B.shouldExecute(n.getInteractionId(),n.getType()))if(n.getPosition()&&n.getDOMElement()||!n.getPosition()&&!n.isPositionTypePlugin()||
  n.getPosition()&&n.isGetContentExecuted()){c.removeItemFromArray(u._pendingInteractions,g);k&&c.logInfo("[+] start onEvent for interaction ["+r+"]");d.push({id:n.getInteractionId(),name:n.getName(),position:n.getPosition(),type:n.getInteractionTypeId(),isPositionFound:n.isPositionFound()});u._handledInteractions.push({id:n.getInteractionId(),interaction:g,context:n});try{n.setOnLoadExecuted(!0);var y=n.getBlueConicClient(),Ma=I?BC_URL:Q();h.call(g,y.profile.getProfile(),n.getParameters(),n.getPosition(),
  y,n.getInteractionId(),Ma)}catch(Na){c.logError("an error occured in interactiontype: ["+n.getInteractionTypeId()+"]\x3cbr\x3ecalled method: [onEvent]\x3cbr\x3eerror: "+Na.message),k&&console.error&&console.error(Na)}k&&c.logInfo("finished onEvent for interaction ["+r+"]")}else if(n.getPosition()){h=!0;for(r=0;r<blueConicClient._pendingInteractions.length;r++)h&&blueConicClient._pendingInteractions[r]&&blueConicClient._pendingInteractions[r].ctx.getInteractionId()===n.getInteractionId()&&(h=!1);h&&
  u._pendingInteractions.push(g)}}}0<d.length&&!b&&v.publish("onHandledInteractions",{handledInteractions:d});return d},callInteractionMethods:function(a,b){ga?(ya=qa=!0,u._pendingInteractions||(u._pendingInteractions=[]),u._handledInteractions||(u._handledInteractions=[]),k&&c.logInfo("start running interactions"),b&&v.publish(v.ON_BEFORE_INTERACTIONS),a=B.handleOnLoad(a,b),k&&c.logInfo("finished running interactions"),v.publish(v.ON_EVENT_READY,{blueConicClient:u,handledInteractions:a,isFirstLoad:b}),
  b&&(0<u._pendingInteractions.length&&B.hidePendingPositions(),B.observeDOMChanges()),ya=qa=!1,u.profile.updateProfile()):k&&c.logInfo("cannot run onLoad: document ready ["+ga+"]")},hidePendingPositions:function(){if(0<u._pendingInteractions.length){for(var a=O[c.hash(J?J:document.location.hostname)],b=[],d=0;d<u._pendingInteractions.length;d++){var e=u._pendingInteractions[d];-1<c.indexOfArray(a,e.ctx.getPosition())&&b.push(e.ctx.getPosition())}0<b.length&&(k&&c.logInfo("hiding interactions: ["+b+
  "]"),(a=document.getElementById(Qa))&&a.parentNode.removeChild(a),c.addCSSToDOM(b,Qa))}}};Z.prototype.permission={getLevel:function(){return l.getLevel()},setLevel:function(a,b){return l.setLevel(a,b)}};Z.prototype.timeline={createEventById:function(a,b,d,e,f,g){if(a&&b){if(!d)d=new Date;else if(!(d instanceof Date)){k&&c.logInfo("Timestamp must be of type 'Date'.");return}a={profile:null!==t?t.getId():c.getBcSessionId(),data:e,timestamp:d,eventId:a};db.createEvent(b,a,f,g)}else k&&c.logInfo("Timeline event must contain an ID and a type")},
  createEvent:function(a,b,d,e,f){if(a){if(!b)b=new Date;else if(!(b instanceof Date)){k&&c.logInfo("Timestamp must be of type 'Date'.");return}b={profile:null!==t?t.getId():c.getBcSessionId(),data:d,timestamp:b};db.createEvent(a,b,e,f)}else k&&c.logInfo("Timeline event must contain a type")}};Z.prototype.permission.optin={};Z.prototype.permission.optout={};var l={DO_NOT_TRACK:"DO_NOT_TRACK",ANONYMOUS:"ANONYMOUS",PERSONAL:"PERSONAL",propertyOptOutHandler:null,propertyOptInHandler:null,pluginOptInHandler:null,
  pluginOptOutHandler:null,permissionLevel:null,previousPermissionLevel:null,isPermissionLevelChanged:!1,PermissionHandler:function(){this.itemList=[];this.removeList=[];this.addList=[];this.getAll=function(){return this.itemList};this.add=function(a){-1===c.indexOfArray(this.itemList,a)&&(z.call(this.itemList,a),z.call(this.addList,a),c.removeItemFromArray(this.removeList,a))};this.remove=function(a){c.removeItemFromArray(this.itemList,a);z.call(this.removeList,a);c.removeItemFromArray(this.addList,
  a)};this.getRemoveList=function(){return this.removeList};this.getAddList=function(){return this.addList};this.set=function(a){this.itemList=a};this.clear=function(){this.addList=[];this.removeList=[]}},setLevel:function(a,b){if(a!==l.DO_NOT_TRACK&&a!==l.ANONYMOUS&&a!==l.PERSONAL)return c.logInfo("invalid permission level ["+a+"]. Use one of \x3cbr\x3eblueConicClient.permission.level.DO_NOT_TRACK\x3cbr\x3eblueConicClient.permission.level.ANONYMOUS\x3cbr\x3eblueConicClient.permission.level.PERSONAL"),
  !1;l.previousPermissionLevel=l.permissionLevel;l.isPermissionLevelChanged=!0;l.message=b;l.permissionLevel=a;k&&c.logInfo("setPermissionLevel from ["+l.previousPermissionLevel+"] to ["+l.permissionLevel+"]");return!0},getLevel:function(){return l.permissionLevel},createAPI:function(){function a(a){var b=new l.PermissionHandler;a.getProfileProperties=function(){return b.getAll()};a.addProfileProperty=function(a){return b.add(a)};a.removeProfileProperty=function(a){return b.remove(a)};return b}function b(a){var b=
  new l.PermissionHandler;a.getPlugins=function(){return b.getAll()};a.addPlugin=function(a){return b.add(a)};a.removePlugin=function(a){return b.remove(a)};return b}l.propertyOptOutHandler=a(Z.prototype.permission.optout);l.propertyOptInHandler=a(Z.prototype.permission.optin);l.pluginOptInHandler=b(Z.prototype.permission.optin);l.pluginOptOutHandler=b(Z.prototype.permission.optout);p.prototype.permission={};p.prototype.permission.level={DO_NOT_TRACK:l.DO_NOT_TRACK,ANONYMOUS:l.ANONYMOUS,PERSONAL:l.PERSONAL}}};
  l.createAPI();var x={addQueue:{},setQueue:{},callbackQueue:[],addSources:{},setSources:{},replaySources:{},getProfile:function(a,b){var d=(new Date).getTime()+ ++h.requestId;h.addBatchRequest(h.GET_PROFILE,null,d,this,function(d){this._handleProfileResponse(d,!0);c.doCallback(a,b,t)})},_handleProfileResponse:function(a,b){if(a&&a.result){var d=function(a,d){var e=l[a.result.permissionlevel];l.permissionLevel=e;var f=c.ensureArray(a.result.optinproperties);l.propertyOptInHandler.set(f);var g=c.ensureArray(a.result.optoutproperties);
  l.propertyOptOutHandler.set(g);var h=c.ensureArray(a.result.optinplugins);l.pluginOptInHandler.set(h);a=c.ensureArray(a.result.optoutplugins);l.pluginOptOutHandler.set(a);k&&(d="Profile object initialized"+("\x3cbr\x3e-id : ["+d+"]")+("\x3cbr\x3e-permission level : ["+e+"]")+("\x3cbr\x3e-optin properties : ["+f+"]"),d+="\x3cbr\x3e-optout properties : ["+g+"]",d+="\x3cbr\x3e-optin plugins : ["+h+"]",d+="\x3cbr\x3e-optout plugins : ["+a+"]",c.logInfo(d));b&&v.publish(v.ON_READY,{blueConicClient:u})},
  e=a.profileId?a.profileId:a.tempId?a.tempId:a.result.id;t?(function(a){this._id=a}.call(t,e),t.getId()&&l.getLevel()||d.call(this,a,e)):(t=new Ia(e),d.call(this,a,e));l.getLevel()!==l.DO_NOT_TRACK&&t.deleteDntRefusedObjectives()}},deleteProfile:function(a,b){var d=t.getPrivacyLegislation(),e=(new Date).getTime()+ ++h.requestId;h.addBatchRequest(h.DELETE_PROFILE,null,e,this,function(){c.setBcSessionId(null);t=new Ia;l.permissionLevel=l.DO_NOT_TRACK;t._properties.privacy_legislation=d;k&&c.logInfo("profile is deleted");
  c.doCallback(a,b)})},createProfile:function(a,b){var d=(new Date).getTime()+ ++h.requestId;h.addBatchRequest(h.CREATE_PROFILE,null,d,this,function(d){t=null;x.clearQueue();this._handleProfileResponse(d,!1);k&&c.logInfo("new profile is created");c.doCallback(a,b,t)})},clearQueue:function(){x.addQueue={};x.setQueue={};x.addSources={};x.setSources={}},updateProfile:function(a,b){if(ya)b&&x.callbackQueue.push({caller:a,onSuccessCallback:b});else{var d=function(a){for(var b in a)return!1;return!0},e=function(a,
  b){a===l.DO_NOT_TRACK&&c.setBcSessionId(b.profileId)};l.isPermissionLevelChanged&&l.previousPermissionLevel===l.DO_NOT_TRACK?function(){l.isPermissionLevelChanged=!1;var d=(new Date).getTime()+ ++h.requestId,g={};g.level=c.ensureArray(l.permissionLevel);g.message=c.ensureArray(l.message);t&&(t.getConsentedObjectives()&&(g.consented_objectives=c.ensureArray(t.getConsentedObjectives())),t.getRefusedObjectives()&&(g.refused_objectives=c.ensureArray(t.getRefusedObjectives())));c.setBcSessionId(null);
  h.addBatchRequest(h.SET_PERMISSION_LEVEL,g,d,this,function(d){e(l.getLevel()+"",d);x.getProfile(this,function(){if(t)for(var d=t.getPropertyNames(),e=0;e<d.length;e++){var f=d[e],g=x.replaySources[f];t.setValues(f,t.getValues(f),g)}x.updateProfile(this,function(){u.createEvent("PAGEVIEW",!1,this,function(d){v.publish(v.ON_PERMISSION_LEVEL_CHANGE,{permissionLevel:l.permissionLevel,previousPermissionLevel:l.previousPermissionLevel});c.doCallback(a,b)})});h.submitBatch()});h.submitBatch()});h.submitBatch()}():
  function(){function f(d){p--;if(0===p){if(x.callbackQueue&&0<x.callbackQueue.length){for(var e=0;e<x.callbackQueue.length;e++)c.doCallback(x.callbackQueue[e].caller,x.callbackQueue[e].onSuccessCallback);x.callbackQueue=[]}d&&d.result&&(d.result.permissionlevel&&"No profile present and will not be created."!==c.getBcSessionId(Da)&&(l.permissionLevel=l[d.result.permissionlevel]),tb&&t&&t.getPrivacyLegislation()&&(d.result.consentedobjectives&&(t._properties.consented_objectives=d.result.consentedobjectives),
  d.result.refusedobjectives&&(t._properties.refused_objectives=d.result.refusedobjectives)));c.doCallback(a,b)}}var g=x.addQueue,q=x.setQueue,r=x.addSources,n=x.setSources;x.clearQueue();for(var y=c.getPropertiesFromObject(q),k=0,m=y.length;k<m;k++)delete g[y[k]];var Mb=c.getPropertiesFromObject(g),p=1;(new Date).getTime();(function(){if(l.isPermissionLevelChanged){var a={};p++;var b=l.getLevel()+"";a.level=c.ensureArray(b);a.message=c.ensureArray(l.message);l.isPermissionLevelChanged=!1;var d=(new Date).getTime()+
  ++h.requestId;h.addBatchRequest(h.SET_PERMISSION_LEVEL,a,d,this,function(a){f.call(this);e(b,a);v.publish(v.ON_PERMISSION_LEVEL_CHANGE,{permissionLevel:l.permissionLevel,previousPermissionLevel:l.previousPermissionLevel})})}})();(function(){var a=l.pluginOptInHandler&&l.pluginOptInHandler.getAddList(),b=l.propertyOptInHandler&&l.propertyOptInHandler.getAddList(),c={};if(0<a.length||0<b.length)p++,c.properties=b,c.plugins=a,a=(new Date).getTime()+ ++h.requestId,h.addBatchRequest(h.ADD_OPTIN,c,a,this,
  f)})();(function(){var a=l.pluginOptInHandler&&l.pluginOptInHandler.getRemoveList(),b=l.propertyOptInHandler&&l.propertyOptInHandler.getRemoveList(),c={};if(0<a.length||0<b.length)p++,c.properties=b,c.plugins=a,a=(new Date).getTime()+ ++h.requestId,h.addBatchRequest(h.REMOVE_OPTIN,c,a,this,f)})();(function(){var a=l.pluginOptOutHandler&&l.pluginOptOutHandler.getAddList(),b=l.propertyOptOutHandler&&l.propertyOptOutHandler.getAddList(),c={};if(0<a.length||0<b.length)p++,c.properties=b,c.plugins=a,a=
  (new Date).getTime()+ ++h.requestId,h.addBatchRequest(h.ADD_OPTOUT,c,a,this,f)})();(function(){var a=l.pluginOptOutHandler&&l.pluginOptOutHandler.getRemoveList(),b=l.propertyOptOutHandler&&l.propertyOptOutHandler.getRemoveList(),c={};if(0<a.length||0<b.length)p++,c.properties=b,c.plugins=a,a=(new Date).getTime()+ ++h.requestId,h.addBatchRequest(h.REMOVE_OPTOUT,c,a,this,f)})();(function(){if(0<y.length){var a={};a.properties=q;d(n)||(a.sources=n);p++;var b=(new Date).getTime()+ ++h.requestId;h.addBatchRequest(h.SET_PROPERTIES,
  a,b,this,f)}})();(function(){if(0<Mb.length){var a={};a.properties=g;d(r)||(a.sources=r);p++;var b=(new Date).getTime()+ ++h.requestId;h.addBatchRequest(h.ADD_PROPERTIES,a,b,this,f)}})();f();l.propertyOptOutHandler&&l.propertyOptOutHandler.clear();l.propertyOptInHandler&&l.propertyOptInHandler.clear();l.pluginOptInHandler&&l.pluginOptInHandler.clear();l.pluginOptOutHandler&&l.pluginOptOutHandler.clear()}()}},getProperties:function(a,b,d){a={property:a};var e=(new Date).getTime()+ ++h.requestId;h.addBatchRequest(h.GET_PROPERTIES,
  a,e,this,function(a){function e(a,b){b=c.ensureArray(b);this._properties[a]=b}if(a&&a.result&&a.result.properties){a=a.result.properties;for(var f in a){var h=a[f];h&&"function"!=typeof h&&e.call(t,f,h)}}c.doCallback(b,d)})},unsavedLog:function(a,b,d,e,f){var g=d?x.addQueue:x.setQueue;d||(delete x.addQueue[a],delete x.setQueue[a]);g[a]||(g[a]=[]);var g=g[a],h=function(){if(e&&f){var b=null;d?d&&(b=x.addSources):b=x.setSources;b&&(b[f]||(b[f]=[]),-1===u.util.array.indexOfArray(b[f],a)&&b[f].push(a));
  x.replaySources[a]=f}};if(c.isArray(b)){for(var r=b.length,n=0;n<r;n++)z.call(g,b[n]);h()}else null!==b&&b!==E?(z.call(g,b),h()):g=null}},db={createEvent:function(a,b,d,e){var f=(new Date).getTime()+ ++h.requestId;a=this.getParams(a,b,d);h.addBatchRequest(h.CREATE_TIMELINE_EVENT,a,f,d,function(a){a&&a.result?c.doCallback(d,e,"true"===a.error?new TypeError("Event is not added due to validation errors or invalid event type."):a.result):c.doCallback(d,e,null)});h.submitBatch()},getParams:function(a,
  b,d){for(var e=c.getPropertiesFromObject(b.data),f=0;f<e.length;f++){var g=e[f];b.data[g]=c.ensureArray(b.data[g]);if(0<b.data[g].length&&b.data[g][0]instanceof Object&&!c.isDate(b.data[g][0]))for(var h=0;h<b.data[g].length;h++){var r=b.data[g][h];if(r)for(var n=c.getPropertiesFromObject(r),y=0;y<n.length;y++){var k=n[y];r[k]=c.ensureArray(r[k])}}}e=null;d&&d.context&&d.context.getInteractionId&&(e=d.context.getInteractionId());d=null;b.data&&b.data instanceof Object&&!c.isArray(b.data)&&(d=c.ensureArray(u.json.stringify(b.data)));
  a={referrer:c.ensureArray(b.referrer),profile:c.ensureArray(b.profile),type:c.ensureArray(a),eventSource:c.ensureArray(e),data:d};b.eventId&&(a.eventId=c.ensureArray(b.eventId));b.timestamp&&(a.timestamp=c.ensureArray(b.timestamp.getTime()));return a}},v={types:["PAGEVIEW","VIEW","CLICK","CONVERSION"],dynamicTypes:[],eventQueue:[],handlersByEvent:{},ON_PERMISSION_LEVEL_CHANGE:"onpermissionlevelchange",ON_READY:"onready",ON_EVENT_READY:"oneventready",ON_URL_CHANGE:"onurlchange",ON_BEFORE_PRELISTENERS:"onbeforeprelisteners",
  ON_BEFORE_INTERACTIONS:"onbeforeinteractions",ON_SEGMENT_CHANGE:"onsegmentchange",ON_LIFECYCLE_STAGE_CHANGE:"onlifecyclestagechange",publish:function(a,b){if(a&&"string"==typeof a){var d={};d.name=a.toLowerCase();d.context=b;v.eventQueue.push(d);k&&c.logInfo("published event : ["+a+"]");v.handleEvent(d)}},unsubscribe:function(a){for(var b=c.getPropertiesFromObject(v.handlersByEvent),d=0;d<b.length;d++){var e=v.handlersByEvent[b[d]],e=e?e:[];v.handlersByEvent[b[d]]=e;for(var f=e.length-1;0<=f;f--){var g=
  e[f].handlerObject.ctx;(g.isLocalEditMode()?g.getInteractionTypeId().substring(11):g.getInteractionTypeId())===a&&c.removeItemFromArray(e,e[f])}}},subscribe:function(a,b,d){if(a&&"string"==typeof a&&d&&"function"==typeof d){a=a.toLowerCase();var e=v.handlersByEvent[a],e=e?e:[];v.handlersByEvent[a]=e;var f={};f.handlerObject=b;f.handlerFunction=d;e.push(f);k&&c.logInfo("subscribing to event: ["+a+"]");v.handleQueuedEvents(a,f)}},handleQueuedEvents:function(a,b){for(var d=[],e=0;e<v.eventQueue.length;e++){var f=
  v.eventQueue[e];f.name==a&&(c.doCallback(b.handlerObject,b.handlerFunction,a,f.context),d.push(f))}for(a=0;a<d.length;a++)c.removeItemFromArray(v.eventQueue,d[a])},handleEvent:function(a){if(a&&a.name)for(var b=a.name.toLowerCase(),d=v.handlersByEvent[b],d=d?d:[],e=0;e<d.length;e++){var f=d[e];c.doCallback(f.handlerObject,f.handlerFunction,b,a.context)}},create:function(a,b,d){var e=(new Date).getTime()+ ++h.requestId,f={type:c.ensureArray(a.type),referrer:c.ensureArray(a.referrer),profile:c.ensureArray(a.profile)};
  a.interaction?f.interaction=c.ensureArray(a.interaction):a.timelineContext&&(f.timelineContext=a.timelineContext,f.timestamp=a.timestamp,f.eventSource=a.eventSource);a.losingInteractions&&(f.losingInteractions=c.ensureArray(a.losingInteractions));h.addBatchRequest(h.CREATE_EVENT,f,e,this,function(a){function e(a){a=c.ensureArray(a);for(var b=a.length,d=0;d<b;d++){var e=a[d];e&&(e=zb(e),z.call(f,e))}}if(a&&a.result){a=a.result;var f=[];a.interactions&&e(a.interactions);a.loggedIn&&"true"===a.loggedIn&&
  (k=!0);a.channelId&&(pb=a.channelId);a.ipaddress&&(qb=a.ipaddress);if(a.interactionnames){for(var g=[],h=0;h<K.length;h++)g.push(K[h].id);for(h=0;h<a.interactionnames.length;h++)-1===c.indexOfArray(g,a.interactionnames[h].id)&&K.push(a.interactionnames[h])}if(a.objectives)for(null===ka&&(ka={}),g=0;g<a.objectives.length;g++)-1===c.indexOfArray(ka,a.objectives[g].id)&&(h=a.objectives[g].myId,ka[h]=new Gb(h,a.objectives[g].myName,a.objectives[g].myDescription));if(a.connections){g=[];for(h=0;h<W.length;h++)g.push(W[h].id);
  for(h=0;h<a.connections.length;h++){var m=a.connections[h],l=c.indexOfArray(g,m.id);-1===l?W.push(m):W[l]=m}}if(a.goals)for(null===va&&(va={}),g=c.getPropertiesFromObject(a.goals),h=0;h<g.length;h++)m=g[h],a.goals[m]&&(l=c.ensureArray(a.goals[m]),va[m]=l.map(function(a){return new Hb(a)}));if(a.lifecycleStages){g=[];X&&0<X.length&&X.map&&(g=X.map(function(a){return a.getLifecycle().getId()+"_"+a.getStage().getId()}));X=[];if(0<a.lifecycleStages.length)for(h=0;h<a.lifecycleStages.length;h++)l=a.lifecycleStages[h],
  m=new Ib(l.myLifecycleId,l.myLifecycleName?l.myLifecycleName:""),l=new Jb(l.myStageId,l.myStageName?l.myStageName:""),X.push(new Kb(m,l));null!==g&&(h=X.map(function(a){return a.getLifecycle().getId()+"_"+a.getStage().getId()}),h.sort().join(",")!==g.sort().join(",")&&v.publish(v.ON_LIFECYCLE_STAGE_CHANGE,{old:g,new:h}))}a.segments&&(g=null,ja&&0<ja.length&&ja.map&&(g=ja.map(function(a){return a.id})),ja=a.segments,null!==g&&(h=ja.map(function(a){return a.id}),h.sort().join(",")!==g.sort().join(",")&&
  v.publish(v.ON_SEGMENT_CHANGE,{old:g,new:h})));a.pluginversion&&(Ja=a.pluginversion);a.libraryversion&&(Ka=a.libraryversion);a.templatesversion&&(Oa=a.templatesversion);a.simulatordate&&(Va=new Date(a.simulatordate));a.eventtypes&&(g=c.ensureArray(a.eventtypes),v.dynamicTypes=v.dynamicTypes.concat(g));a.selectedlegislations&&(gb=a.selectedlegislations);a.legislation&&(t._properties.privacy_legislation=a.legislation);a.consentedobjectives&&(t._properties.consented_objectives=a.consentedobjectives);
  a.refusedobjectives&&(t._properties.refused_objectives=a.refusedobjectives);c.doCallback(b,d,f)}else c.doCallback(b,d,null)})}};p.prototype.event={publish:function(a,b){v.publish(a,b)},subscribe:function(a,b,c){v.subscribe(a,b,c)},unsubscribe:function(a){v.unsubscribe(a)},onProfilePermissionChange:v.ON_PERMISSION_LEVEL_CHANGE,onReady:v.ON_READY,onEventReady:v.ON_EVENT_READY,onUrlChange:v.ON_URL_CHANGE,onBeforePreListeners:v.ON_BEFORE_PRELISTENERS,onBeforeInteractions:v.ON_BEFORE_INTERACTIONS,onSegmentChange:v.ON_SEGMENT_CHANGE,
  onLifecycleStageChange:v.ON_LIFECYCLE_STAGE_CHANGE};var Ab={getRecommendationsEndpoint:function(a,b){var d=Q()+"/rest/recommendations",e=c.getZoneId();e&&(d+="/"+e);d+=b?"/"+b:"";a=a||{};b=c.getPropertiesFromObject(a);for(e=0;e<b.length;e++)"request"===b[e]&&"object"===typeof a[b[e]]&&(a[b[e]]=u.json.stringify(a[b[e]]));a=c.objectToUrl(a);return d+(a?"?"+a:"")},createEvent:function(a,b){h.JSONP.get(this.getRecommendationsEndpoint(a,"stats"),null,function(a){b&&c.doCallback(this,b,a)})},getRecommendations:function(a,
  b){h.JSONP.get(this.getRecommendationsEndpoint(a),null,function(a){a=new Eb(a);b&&c.doCallback(this,b,a)})}};p.prototype.recommendation={getRecommendations:function(a,b){Ab.getRecommendations(a,b)},createEvent:function(a,b){Ab.createEvent(a,b)}};var P={selectors:[],handlersBySelector:{},handlerId:0,publish:function(a){a&&"string"===typeof a&&(k&&c.logInfo("published position update event for selector : ["+a+"]"),P.handlePositionUpdateEvent(a))},subscribe:function(a,b,d){if(!a||"string"!==typeof a)throw Error("Selector is empty or not of type string");
  if(!d||"function"!=typeof d)throw Error("No callback function defined or not a function.");-1===c.indexOfArray(this.selectors,a)&&(c.isArray(a)?this.selectors=this.selectors.concat(a):this.selectors.push(a));var e=this.handlersBySelector[a],e=e?e:[];P.handlersBySelector[a]=e;var f={};f.id=++this.handlerId;f.handlerObject=b;f.handlerFunction=d;e.push(f);k&&c.logInfo("subscribing to position update event for selector: ["+a+"] with id ["+f.id+"]");return f.id},unsubscribe:function(a){if(!a||"number"!==
  typeof a)throw Error("Subscription id is empty or not of type number");for(var b=c.getPropertiesFromObject(this.handlersBySelector),d=0;d<b.length;d++){var e=b[d],f=this.handlersBySelector[e],f=f.filter(function(b){b.id===a&&k&&c.logInfo("found handler with id: ["+a+"]");return b.id!==a});0===f.length?(delete this.handlersBySelector[e],c.removeItemFromArray(this.selectors,e)):this.handlersBySelector[e]=f}k&&c.logInfo("unsubscribing to position update event for id ["+a+"]")},handlePositionUpdateEvent:function(a){if(a){var b=
  P.handlersBySelector[a],b=b?b:[];delete P.handlersBySelector[a];c.removeItemFromArray(this.selectors,a);for(var d=0,e=b.length;d<e;d++){var f=b[d];c.doCallback(f.handlerObject,f.handlerFunction,a)}}},getSelectors:function(){return this.selectors}};p.prototype.position={publish:function(a){P.publish(a)},subscribe:function(a,b,c){return P.subscribe(a,b,c)},unsubscribe:function(a){P.unsubscribe(a)}};p.prototype.objective={getObjectives:function(){return ka},getObjectiveById:function(a){return ka[a]?
  ka[a]:null}};var c={docReadyCallbacks:[],rxhtmlTag:/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,hash:function(a){for(var b=0,c,e=0;e<a.length;e++)c=a.charCodeAt(e),b=31*b+c,b&=b;for(e=a.length-1;0<=e;e--)c=a.charCodeAt(e),b=31*b+c,b&=b;return b},doCallback:function(){for(var a=arguments[0],b=arguments[1],d=[],e=2,f=arguments.length;e<f;e++)z.call(d,arguments[e]);if(b&&"function"==typeof b)if(k)b.apply(a,d);else try{b.apply(a,d)}catch(g){c.logError("an error occured in callback function: ["+
  b+"], error: ["+g+"]")}},trimLeft:function(a){if(a)return a.replace(/^\s+/,"")},trimRight:function(a){if(a)return a.replace(/\s+$/,"")},map:function(a,b,c){if(Vb)return a.map(function(a){return b.call(c,a)});for(var d=0,f=a.length,g=[];d<f;d++)d in a&&(g[d]=b.call(c,a[d]));return g},setContent:function(a,b){if(a&&b!==E&&null!==b){b=b.replace(c.rxhtmlTag,"\x3c$1\x3e\x3c/$2\x3e");var d=a.nodeName?a.nodeName.toLowerCase():a.nodeName;if(-1!==c.indexOfArray("area base br col command embed hr img input keygen link meta param source track wbr".split(" "),
  d)){var e=a.parentNode?a.parentNode.innerHTML:null;if(e){var f=document.createElement("div");f.appendChild(a.cloneNode(!0));b=e.replace(f.innerHTML,b);if(a.parentNode.innerHTML!==b)try{a.parentNode.innerHTML=b,k&&c.logInfo("setContent replaced void element ["+d+"] with given html")}catch(g){k&&c.logInfo("setContent failed to replace void element ["+d+"] with given html")}}else k&&c.logInfo("could not set inner html for void element ["+d+"] because container was not ready")}else{for(;a.firstChild;)a.removeChild(a.firstChild);
  try{a.innerHTML=b}catch(g){d=document.createElement(),d.innerHTML=b,a.appendChild(d)}}}},getBcTempId:function(a){return c.getBcId("BCTempID",a)},setBcTempId:function(a,b,d){c.setBcId("BCTempID",a,b,d)},getBcSessionId:function(a){return c.getBcId("BCSessionID",a)},getBcId:function(a,b){return b?b[a]:c.getCookie(a)},setBcSessionId:function(a,b){c.setBcId("BCSessionID",a,b)},setBcId:function(a,b,d,e){var f="BCSessionID"===a;f?lb?(c.setCookie(a,b,0),c.setCookie(a,null,null,Ya)):(c.setCookie(a,null,null),
  c.setCookie(a,b,e,Ya)):c.setCookie(a,b,e);d&&(b?d[a]=b:delete d[a]);U&&f&&h.lastSyncedCookieId!==b&&h.thirdPartyCookieId!==b&&(h.lastSyncedCookieId=b,h.cookieSyncTimeoutHandle&&clearTimeout(h.cookieSyncTimeoutHandle),h.cookieSyncTimeoutHandle=setTimeout(function(){h.JSONP.get(h.resourceURL_CST,{bcsessionid:b||""},function(){k&&c.logInfo("CS update success: "+b)},null,function(){h.lastSyncedCookieId=E;c.logWarning("CS request failed...")},!1,!1)},0))},bcSessionIdChanged:function(a){var b=c.getCookie("BCSessionID");
  return a!==b},setCookie:function(a,b,d,e){if(Ea&&a)if(null===b||b===E)document.cookie=a+"\x3d;expires\x3dThu, 01 Jan 1970 00:00:00 GMT; path\x3d/"+(e?";domain\x3d"+e:"")+(I?";SameSite\x3dNone;Secure":"");else{var f=new Date;null===d||d===E||isNaN(d)?f.setDate(f.getDate()+365):f=0<d?new Date(f.getTime()+parseInt(d)):null;b&&"string"==typeof b&&(b=b.replace(/[\n\r]/g,""));b=a+"\x3d"+encodeURIComponent(b);f&&(b+=";expires\x3d"+f.toUTCString());e&&(b+=";domain\x3d"+e);b+=";path\x3d/";I&&(b+=";SameSite\x3dNone;Secure");
  e=document.cookie+b;-1<a.indexOf("BCRevision")&&3E3<e.length?k&&c.logInfo("could not set cookie ["+a+"] with size ["+b.length+"] because it would exceed the total cookie length of 3kb"):document.cookie=b}},getCookies:function(){var a=null,b=0,d={};if(!Ea)return d;a=null!==ia&&null===Da?ia:document.cookie;if(ia!==a)ia=a;else if(null!==Da)return Da;a&&-1<a.indexOf("$Version\x3d")&&document.cookie.match(/^\s*\$Version=(?:"1"|1);\s*(.*)/)&&(a=RegExp.$1,b=1);0===b?c.map(a.split(/[,;]/),function(a){a=a.split(/=/);
  var b=decodeURIComponent(c.trimLeft(a[0])),e=null;try{if(1<a.length)for(var h=1;h<a.length;h++)e=e?e+a[h]:a[h],h<a.length-1&&(e+=encodeURIComponent("\x3d"));d[b]=e?decodeURIComponent(c.trimRight(e)):null}catch(r){}}):c.map(a.match(/(?:^|\s+)([!#$%&'*+\-.0-9A-Z^`a-z|~]+)=([!#$%&'*+\-.0-9A-Z^`a-z|~]*|"(?:[\x20-\x7E\x80\xFF]|\\[\x00-\x7F])*")(?=\s*[,;]|$)/g),function(a,b){b='"'===b.charAt(0)?b.substr(1,-1).replace(/\\(.)/g,"$1"):b;d[a]=b});return Da=d},getCookie:function(a){return c.getCookies()[a]},
  ensureArray:function(a){if(c.isArray(a))return a;var b=[];null!==a&&a!==E&&z.call(b,a);return b},isArray:function(a){return a?Tb?Array.isArray(a):-1==mb.call(a).indexOf("Array")?!1:!0:!1},isDate:function(a){return a&&-1!=mb.call(a).indexOf("Date")&&a.getTime?!0:!1},diffArrays:function(a,b){if(Ub&&nb)return a.filter(function(a){return 0>b.indexOf(a)});var c,e=a.slice();for(a=0;a<e.length;a++)for(c=0;c<b.length;c++)if(e[a]===b[c]){e.splice(a,1);a--;break}return e},removeItemFromArray:function(a,b){if(c.isArray(a))for(var d;-1!==
  (d=c.indexOfArray(a,b));)a.splice(d,1)},indexOfArray:function(a,b){if(!a||!c.isArray(a))return-1;if(nb)return a.indexOf(b);for(var d=0,e=a.length;d<e;d++)if(a[d]===b)return d;return-1},mergeArrays:function(a,b){if(c.isArray(a)&&b)if(c.isArray(b)||-1==c.indexOfArray(a,b))for(var d=0,e=b.length;d<e;d++){var f=b[d];-1===c.indexOfArray(a,f)&&z.call(a,f)}else z.call(a,b)},loadScript:function(a,b,d){var e=document.createElement("script"),f=!1,g;e.src=a;e.async=!0;e.onload=e.onreadystatechange=function(){f||
  this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(f=!0,e.onload=e.onreadystatechange=null,e&&e.parentNode&&e.parentNode.removeChild(e),c.doCallback(b,d))};g||(g=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]);g.appendChild(e)},loadCSS:function(a){c.loadCSS.urlMap||(c.loadCSS.urlMap={});c.loadCSS.counter||(c.loadCSS.counter=0);var b=c.loadCSS.urlMap,d=b[a];d||(b[a]="id_"+ ++c.loadCSS.counter);d=b[a];if(document.getElementById(d))k&&c.logInfo("skip loading css ["+
  a+"]");else{k&&c.logInfo("start loading css ["+a+"]");var b=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0],e=document.createElement("link");e.id=d;e.rel="stylesheet";e.type="text/css";e.href=a;b.appendChild(e)}},bindDocumentReady:function(a,b){b&&"function"==typeof b&&(ga?c.doCallback(a,b):z.call(c.docReadyCallbacks,function(){c.doCallback(a,b)}))},docReady:function(){if(!ga){ga=!0;k&&c.logInfo("[+] document ready event thrown by browser");for(var a=c.docReadyCallbacks,
  b=a.length,d=0;d<b;d++)a[d].apply()}},getInteractionParameters:function(a){var b={};if(a){a=c.ensureArray(a.parameters);for(var d=0,e=a.length;d<e;d++){var f=a[d];if(f){for(var g={},h=0,r=f.parameter.length;h<r;h++){var n=f.parameter[h];n&&(g[n.id]=n.value)}b[f.locale]=g}}}return b},getPropertiesFromObject:function(a){if(!a)return[];var b=[],c;for(c in a)fa.call(a,c)&&"function"!=typeof a[c]&&z.call(b,c);return b},getDOMElement:function(a,b){if(!a)return null;"undefined"==typeof b&&(b=c.isCSSSelector(a));
  return b?(a=Yb(a))&&0<a.length?a[0]:null:((b=document.getElementById(a))||(b=document.getElementsByTagName(a)),b&&b.length&&0<b.length?b[0]:b instanceof HTMLCollection&&0===b.length?null:b)},isCSSSelector:function(a){if(!a)return!1;var b=!1;-1!==a.indexOf("[")&&-1!==a.indexOf("]")&&-1!==a.indexOf("\x3d")&&(b=!0);var c=!1;if(-1!==a.indexOf("#")||-1!==a.indexOf(".")||-1!==a.indexOf(" ")||-1!==a.indexOf(":")||b)c=!0;return c},normalizePosition:function(a){if(!a)return null;c.isCSSSelector(a)||(a="#"+
  a);return a},addCSSToDOM:function(a,b,d){if(a&&0!==a.length){k&&c.logInfo("hide positions  ["+a+"]");for(var e="",f=0,g=a.length;f<g;f++){var h=c.normalizePosition(a[f]);h&&(e=e+h+" {opacity:0.0;filter:alpha(opacity\x3d0);}\n")}a=document.createElement("style");a.setAttribute("type","text/css");a.setAttribute("id",b);a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e));(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(a);d&&0<
  d&&m.setTimeout(function(){var a=document.getElementById(b);a&&(a.parentNode.removeChild(a),k&&c.logInfo("timeout ["+d+"] expired; CSS ["+b+"] removed"))},d)}},getBaseURL:function(a){var b=null;Fa&&Fa[a]&&(b=Fa[a]);return b?0==b.indexOf("/blueconic/static/plugins/")?BC_URL+b:b:null},parseJSON:function(a){return a?u.json.parse(a):null},stringifyObject:function(a,b,c){return u.json.stringify(a,b,c)},checkNativeJsonLib:function(){Ba&&(!Xa||(new Date).getTime()-100)>Xa&&(Ba=B.isNative(m.JSON.parse,"window.JSON.parse")&&
  B.isNative(m.JSON.stringify,"window.JSON.stringify"),Xa=(new Date).getTime());Ba||null!==wa||Lb()},handleProfileId:function(a,b){l.getLevel()!==l.DO_NOT_TRACK&&(c.bcSessionIdChanged(a)?(k&&c.logInfo("update cookie [BCSessionID] with profile id ["+a+"]"),c.setBcSessionId(a,b)):ob||(c.setBcSessionId(a,b),ob=!0),a&&c.getBcTempId(b)&&(c.setBcTempId(null,b),t&&!t.getId()&&function(a){this._id=a}.call(t,a)))},handleTempProfileId:function(a,b){a&&c.getBcTempId(b)!==a&&c.setBcTempId(a,b&&c.getBcTempId()?
  b:null,6E5)},log:function(a){T&&console.log("[BC]"+a)},logError:function(a){for(;-1!==a.indexOf("\x3cbr\x3e");)a=a.replace("\x3cbr\x3e","\n            ");c.log("[ERROR] "+a);T&&console.trace&&(c.log("[ERROR] --stacktrace--"),console.trace(),c.log("[ERROR] --end stacktrace--"))},logWarning:function(a){k&&c.log("[WARNING] "+a)},logInfo:function(a){if(k){for(var b=(new Date).getTime()-Ob;-1!==a.indexOf("\x3cbr\x3e");)a=a.replace("\x3cbr\x3e","\n           ");c.log("[INFO] "+a+" +"+b+" ms")}},logDeprecated:function(a,
  b){k&&c.log("[DEPRECATED] function ["+a+"] is deprecated. \n                 Please use : "+b)},formatLocalDate:function(){var a=new Date,b=-a.getTimezoneOffset(),c=0<=b?"+":"-",e=function(a){a=Math.abs(Math.floor(a));return(10>a?"0":"")+a};return a.getFullYear()+"-"+e(a.getMonth()+1)+"-"+e(a.getDate())+"T"+e(a.getHours())+":"+e(a.getMinutes())+":"+e(a.getSeconds())+c+e(b/60)+":"+e(b%60)},getCurrentTime:function(){var a=new Date;return("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)},
  objectToUrl:function(a){var b="",d;for(d in a){var e=a[d];if(c.isArray(e))for(var f=0;f<e.length;f++)""!==b&&(b+="\x26"),b+=d+"\x3d"+encodeURIComponent(e[f]);else""!==b&&(b+="\x26"),b+=d+"\x3d"+encodeURIComponent(e)}return b},getZoneId:function(){return S?sessionStorage.getItem("BCZoneID"):c.getCookie("BCZoneID")},handleZoneId:function(a){S?a?sessionStorage.setItem("BCZoneID",a):sessionStorage.removeItem("BCZoneID"):a?c.setCookie("BCZoneID",a,3E5):c.setCookie("BCZoneID",null)}};B.hideAllPositions();
  var Sa;Sa=J?p.prototype.fn.getDomainGroup(J):p.prototype.fn.getDomainGroup(document.location.hostname);var Bb=Math.floor(1E3*Math.random())+100,h={GET_PROFILE:"getProfile",CREATE_PROFILE:"createProfile",DELETE_PROFILE:"deleteProfile",SET_PROPERTIES:"setProperties",ADD_PROPERTIES:"addProperties",GET_PROPERTIES:"getProperties",GET_LOGIN_STATUS:"getLoginStatus",GET_ALL:"getAll",CREATE_EVENT:"createEvent",GET_PROPERTY_LABELS:"getPropertyLabels",GET_PROFILE_PROPERTIES:"getProfileProperties",SEND_MAIL:"sendMail",
  ADD_OPTIN:"addOptin",REMOVE_OPTIN:"removeOptin",ADD_OPTOUT:"addOptout",REMOVE_OPTOUT:"removeOptout",SET_PERMISSION_LEVEL:"setPermissionLevel",SET_OBJECTIVES:"setObjectives",ADD_OBJECTIVES:"addObjectives",CREATE_TIMELINE_EVENT:"createTimelineEvent",resourceURL_GET:(I?BC_URL:Q())+"/DG/"+Sa+"/rest/rpc/",resourceURL_POST:(I?BC_URL:Q())+"/DG/"+Sa+"/rest/rpc/"+ ++Bb,resourceURL_CST:BC_URL+"/DG/"+Sa+"/cs",batchRequests:[],requestId:0,openRequests:0,lastSyncedCookieId:E,thirdPartyCookieId:null,cookieSyncTimeoutHandle:!1,
  _csRequestDone:U&&null!==pa()?!1:!0,_rpcThrottlingRequestCount:0,_rpcThrottlingTimeoutHandle:null,_batchTimeoutHandlers:{},JSONP:function(){function a(a,b,d){var f=document.createElement("script"),g=!1;f.src=a;f.async=!0;f.onload=f.onreadystatechange=function(){g||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(g=!0,f.onload=f.onreadystatechange=null,f&&f.parentNode&&f.parentNode.removeChild(f))};f.onerror=function(a){d&&c.handleZoneId();b&&b(a)};e||(e=document.getElementsByTagName("head")[0]);
  e.appendChild(f)}function b(a,b){a="";!U&&b&&(b=null);var d=c.getCookies();b=b||c.getBcSessionId(d)||"";var d=c.getBcTempId(d)||"",e=J?encodeURIComponent(J):"";a+="referer\x3d"+encodeURIComponent(f.location)+"\x26";if(f.name&&-1<f.name.indexOf("bc_")){var g=f.name;if(g){for(var h=!1,r=g,k=0;k<ub.length;k++){var l=ub[k];-1<g.indexOf(l)&&(r=l,h=!0)}g=h?r:g.substring(g.indexOf("bc_"));a+="mode\x3d"+g+"\x26"}}else if(I||f.opener)a+="checkCookie\x3dtrue\x26isopener\x3d"+("undefined"!=typeof f.opener&&
  null!=f.opener)+"\x26";a+="bcsessionid\x3d"+b+"\x26bctempid\x3d"+d+"\x26overruleReferrer\x3d"+e+"\x26time\x3d"+encodeURIComponent(c.formatLocalDate());if(t)for(b=t.getDntRefusedObjectives(),d=0;d<b.length;d++)a+="\x26bcro\x3d"+encodeURIComponent(b[d]);return a}function d(a,e,f,g,h,k){k=(-1===a.indexOf("?")?"?":"")+b(a,k);var n=function(a,b){var c=new XMLHttpRequest;"withCredentials"in c?(c.open(a,b,!0),c.setRequestHeader("Content-Type","text/plain"),c.withCredentials=!0,c.timeout=3E4):c=null;return c}("POST",
  a+k+"\x26ts\x3d"+(new Date).getTime());if(!n)return c.logWarning("CORS POST request failed, is XMLHttpRequest overruled? Fallback to GET."),g(),!1;n.onload=function(){if(n.responseText){var a=u.json.parse(n.responseText);!h&&a.location?d(a.location,e,f,g,!0):f(a)}};n.onerror=function(){0<n.status?(c.logWarning("CORS POST request failed."),usePostMethod()&&c.handleZoneId()):c.log("[WARNING] BlueConic request failed, please make sure '"+(J?J:document.location.hostname)+"' is added as a channel (or alias) in BlueConic.");
  g&&g()};n.onabort=function(a){T&&console.log("CORS request is aborted.",a)};n.ontimeout=function(a){T&&console.log("CORS request has timed-out, 30s exceeded.")};n.send(e);return!0}var e,f=this,g={};return{get:function(c,d,e,h,k,l,m,p){var n=-1===(c||"").indexOf("?")?"?":"\x26";d=d||{};for(var r in d)fa.call(d,r)&&(n+=r+"\x3d"+d[r]+"\x26");m&&(n+=b(c,p));var q="bc_json"+ ++Bb;f[q]=function(a){e(a);try{delete f[q]}catch(Zb){}f[q]=null};a(c+n+"\x26"+(h||g.callbackName||"callback")+"\x3d"+q,k,l);return q},
  post:d,init:function(a){g=a}}}(),resetThrottlingCounter:function(a){h._rpcThrottlingRequestCount=0;a&&h._rpcThrottlingTimeoutHandle&&(clearInterval(h._rpcThrottlingTimeoutHandle),h._rpcThrottlingTimeoutHandle=null)},handleRevisions:function(){var a=null,b;if(S){b=[];for(var d=0;d<localStorage.length;d++)b.push(localStorage.key(d))}else a=c.getCookies(),b=c.getPropertiesFromObject(a);for(var d=0,e=b.length;d<e;d++){var f=b[d];if(f&&-1!==f.indexOf("BCRevision")){var g;S?g=localStorage.getItem(f):a&&
  (g=a[f]);var l=c.parseJSON(g);if(l){var r=l.method,n=l.param,l=l.requestId;r&&n&&l&&(k&&c.logInfo("scheduled revision RPC for requestId ["+l+"] with method : ["+r+"]"),n.source=["backlog"],h.addBatchRequest(r,n,l,null,null),S&&localStorage.getItem(f)?localStorage.removeItem(f):c.setCookie(f,null))}}}},RPCTask:function(a,b,d,e,f){this._id=a+"";this._param=b;this._method=d;this._caller=e;this._callBack=f;this._isFinished=this._isQueued=!1;this._revCookie=this._rpc=null;this.getContentLength=function(){return encodeURIComponent(c.stringifyObject(this.getRPC())).length};
  this.getId=function(){return this._id.replace("rev_","")};this.isQueued=function(){return this._isQueued};this.getMethod=function(){return this._method};this.queued=function(){this._isQueued=!0};this.isFinished=function(){return this._isFinished};this.setParameter=function(a){this._param=a;this._rpc=null};this.getParameter=function(){return this._param};this.finished=function(a){this._isFinished=!0;c.handleZoneId(a.zoneId);this.removeRevisionCookie();c.doCallback(this._caller,this._callBack,a)};this.getRPC=
  function(){this._rpc||(this._rpc={method:encodeURIComponent(this._method),params:c.stringifyObject(this._param),id:encodeURIComponent(this.getId())});return this._rpc};this.setRevisionCookie=function(){if(!(0===this._id.indexOf("rev")||l.getLevel()===l.DO_NOT_TRACK||this.getContentLength()>Ca||this._method!==h.SET_PROPERTIES&&this._method!==h.ADD_PROPERTIES&&this._method!==h.SEND_MAIL&&this._method!==h.CREATE_EVENT&&this._method!==h.CREATE_TIMELINE_EVENT||this._method===h.CREATE_EVENT&&this._param&&
  this._param.type&&"PAGEVIEW"===this._param.type[0])){var a="rev_"+this._id,b=c.stringifyObject({method:this._method,param:this._param,requestId:a}),d="BCRevision_"+this._id,e=function(){c.setCookie(d,b,0);var e=c.getCookie(d);if(!e){for(var e=c.getCookies(),e=c.getPropertiesFromObject(e),f=0,g=e.length;f<g;f++){var h=e[f];0===h.indexOf("BCRevision")&&c.setCookie(h,null)}c.setCookie(d,b,0);e=c.getCookie(d);if(!e){k&&c.logInfo("could not store revision cookie ["+d+"]");return}}k&&c.logInfo("revision cookie with name ["+
  d+"] with revision ["+a+"] stored")};if(S){try{localStorage.setItem(d,b)}catch(y){k&&c.logInfo("adding item ["+d+"] to localStorage failed, fallback to cookie.")}localStorage.getItem(d)?k&&c.logInfo("revision with name ["+d+"] with revision ["+a+"] is stored in localStorage."):e()}else e();this._revCookie=d}};this.removeRevisionCookie=function(){this._revCookie&&(S&&localStorage.getItem(this._revCookie)?(k&&c.logInfo("revision with name ["+this._revCookie+"] removed from localStorage"),localStorage.removeItem(this._revCookie)):
  (k&&c.logInfo("revision cookie with name ["+this._revCookie+"] removed"),c.setCookie(this._revCookie,null)))}},RemoteRequest:function(a,b,d,e,f){this._caller=b;this._onSuccess=d;this._isFinished=!1;this._parameter=e;this._requestId=f;this._method=a;this._tasks=[];this.getTasks=function(){return this._tasks};this.isFinished=function(){return this._isFinished};this.toString=function(){for(var a=(new h.RPCTask(this._requestId,this._parameter,this._method,null,null)).getContentLength(),a="RemoteRequest ["+
  this._requestId+"] - method : ["+this._method+"], Tasks : ["+this._tasks.length+"], contentLength : ["+a+"]",b=0,d=this._tasks.length;b<d;b++){var e=this._tasks[b],f=e.getContentLength(),a=a+("\x3cbr\x3eTask ["+e.getId()+"] - Content length : ["+f+"]. Is finished ["+e.isFinished()+"]."),e=e.getParameter();if(!e)break;var e=e.properties?e.properties:e,g;for(g in e)if(fa.call(e,g))if(a+="\x3cbr\x3e  -"+g,(f=e[g])&&0!==f.length)if(c.isArray(f))for(var k=0,l=f.length;k<l;k++){var m=f[k];if(""===m)m="(empty string)";
  else if(null==m||m==E)m="(null or undefined)";a+="\x3cbr\x3e    "+m}else f&&(a+="\x3cbr\x3e    "+f);else a+="\x3cbr\x3e    (null or undefined)"}return a};b=function(a){for(var b=this._tasks,d=0,e=b.length;d<e;d++)if(!b[d].isFinished())return;this._isFinished=!0;k&&c.logInfo(this.toString());c.doCallback(this._caller,this._onSuccess,a)};d=new h.RPCTask(this._requestId,this._parameter,this._method,this,b);if(d.getContentLength()<=Ca)z.call(this._tasks,d);else switch(a){case h.ADD_PROPERTIES:case h.SET_PROPERTIES:d=
  function(a,b,d){for(var e=[],f=function(a,b){this.properties[a]=c.ensureArray(b)},g=function(a){try{delete this.properties[a]}catch(F){}},k=function(){return 1===c.getPropertiesFromObject(this.properties).length||(new h.RPCTask(a,this,b,null,null)).getContentLength()<=Ca?!0:!1},n=c.getPropertiesFromObject(d.properties),l={properties:{}},m=0,r=n.length;m<r;m++){var q=n[m],p=d.properties[q];f.call(l,q,p);k.call(l)||(g.call(l,q),z.call(e,l),l={properties:{}},f.call(l,q,p))}z.call(e,l);return e}(this._requestId,
  this._method,this._parameter);e=0;for(var g=d.length;e<g;e++){var l=new h.RPCTask(f+"-"+e,d[e],a,this,b);z.call(this._tasks,l)}break;default:z.call(this._tasks,d)}},addBatchRequest:function(a,b,c,e,f){a=new h.RemoteRequest(a,e,f,b,c);z.call(h.batchRequests,a)},submitBatchTimeout:function(a,b){h._batchTimeoutHandlers[b]&&clearTimeout(h._batchTimeoutHandlers[b]);h._batchTimeoutHandlers[b]=setTimeout(function(){delete h._batchTimeoutHandlers[b];h.batchRequests&&0!==h.batchRequests.length&&h.submitBatch()},
  a)},submitBatch:function(){var a=function(){var a=Rb;if(a)switch(Nb){case "FORCE_GET":a=!1;break;case "POST_NATIVE_ONLY":a=XMLHttpRequest.prototype&&B.isNative(XMLHttpRequest.prototype.send,"XMLHttpRequest.prototype.send")}return a}(),b=function(a){for(var d=[],e=0,g=0,h=a.length;g<h;g++)for(var l=a[g].getTasks(),m=0,r=l.length;m<r;m++){var q=l[m];if(!q.isQueued()){var p=parseInt(q.getContentLength());if(e+p<=Ca)q.queued(),e+=p,z.call(d,q);else{0===d.length&&(q.queued(),e+=p,z.call(d,q),k&&c.logInfo("RPC task with id ["+
  q.getId()+"] method ["+q.getMethod()+" ] contains a profile property value which could be too large too handle.\x3cbr\x3e The size of the RPC is ["+p+"] while the max size is ["+Ca+"]"));f.call(this,d,function(){b.call(this,a)});return}}}0<d.length&&f.call(this,d,null)},d=function(a,b,d){if(a){a=c.ensureArray(a);for(var e=c.getCookies(),f=0;f<a.length;f++){var g=a[f];if(g){e.BCTempID&&g.profileId&&(Ta=!0);g.secondAndTopLevelDomain&&(Ya=g.secondAndTopLevelDomain);c.handleTempProfileId(g.tempId,e);
  c.handleProfileId(g.profileId,e);for(var k=0;k<b.length;k++){var l=b[k];l.getId()===g.id&&l.finished(g)}}}}else for(a=0;a<b.length;a++)b[a].finished();d&&"function"===typeof d&&d.call(this);h.openRequests--},e=function(a){if(!c.getZoneId())return a;a&&"/"!==a[a.length-1]&&(a+="/");return a+=c.getZoneId()},f=function(b,f){if(20<=h.openRequests)c.logWarning("Too many open RPC requests (20), task will not be processed");else if(100<=h._rpcThrottlingRequestCount)c.logWarning("Too many RPC requests (100) done in this timeframe (1 minute), task will not be processed.");
  else{null===h._rpcThrottlingTimeoutHandle&&(h._rpcThrottlingTimeoutHandle=setInterval(function(){h.resetThrottlingCounter(!1)},6E4));h._rpcThrottlingRequestCount++;var g=function(a,g,k){var l={requests:encodeURIComponent(c.stringifyObject(a))};l.requests&&"null"!==l.requests&&(h.openRequests++,h.JSONP.get(e(h.resourceURL_GET),l,function(a){d(a,b,f)},null,function(){h.JSONP.get(e(h.resourceURL_GET),l,function(a){d(a,b,f)},null,function(){h.openRequests--},g,!0,k)},g,!0,k))};if(t&&t.getId()&&!c.getBcSessionId()&&
  !c.getBcTempId()){t=new Ia;x.clearQueue();for(var l=[],n=0;n<b.length;n++){var m=b[n];-1<[h.ADD_PROPERTIES,h.SET_PROPERTIES].indexOf(m.getMethod())&&(m.finished({}),l.push(m))}for(n=0;n<l.length;n++)c.removeItemFromArray(b,l[n]);if(0===b.length){f&&"function"===typeof f&&f.call(this);return}}for(var q=[],l=0;l<b.length;l++)z.call(q,b[l].getRPC()),b[l].setRevisionCookie();var p=function(k){a?(h.openRequests++,h.JSONP.post(e(h.resourceURL_POST),c.stringifyObject(q),function(a){d(a,b,f)},function(){h.openRequests--;
  c.logWarning("CORS POST request failed, fallback on JSONP GET request.");g(q,!1,k)},!1,k)):g(q,!0,k)};h._csRequestDone?p():h.JSONP.get(h.resourceURL_CST,{},function(a){var b=null;a&&a[0]&&a[0].profileId&&(b=a[0].profileId,k&&c.logInfo("CS callback success; third-party cookie:"+b));h.thirdPartyCookieId=b;h._csRequestDone=!0;p(b)},null,function(){h._csRequestDone=!0;p()},!1,!1)}},g=function(a){for(var b=[],c=0,d=a.length;c<d;c++)for(var e=a[c].getTasks(),f=0,g=e.length;f<g;f++)e[f].isQueued()||(e[f].queued(),
  z.call(b,e[f]));return b},l=h.batchRequests;a?(g=g.call(this,l),0<g.length&&f.call(this,g)):b.call(this,l);h.batchRequests=[]}};(function(){if("undefined"!==typeof bcSubscriptions&&c.isArray(bcSubscriptions)){for(var a=0,b=bcSubscriptions.length;a<b;a++){var d=bcSubscriptions[a];if(!c.isArray(d)||2!==d.length)return;v.subscribe(d[0],null,d[1])}bcSubscriptions={push:function(a){c.isArray(a)&&2===a.length&&v.subscribe(a[0],null,a[1])}}}})();(function(){if("complete"===document.readyState||"interactive"===
  document.readyState)c.docReady();else if(document.addEventListener)document.addEventListener("readystatechange",function(){c.docReady()},!1),document.addEventListener("DOMContentLoaded",function(){c.docReady()},!1),m.addEventListener("load",function(){c.docReady()},!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){c.docReady()});m.attachEvent("onload",function(){c.docReady()});var a=!1;try{a=null==m.frameElement}catch(b){}document.documentElement.doScroll&&a&&
  c.docReady()}})();m.Sizzle&&(m.bcTempSizzle=m.Sizzle);(function(a){function b(a,b,c,d){var e,f,w,g,G,h=b&&b.ownerDocument,A=b?b.nodeType:9;c=c||[];if("string"!==typeof a||!a||1!==A&&9!==A&&11!==A)return c;if(!d&&((b?b.ownerDocument||b:aa)!==D&&L(b),b=b||D,ba)){if(11!==A&&(g=Ia.exec(a)))if(e=g[1])if(9===A)if(f=b.getElementById(e)){if(f.id===e)return c.push(f),c}else return c;else{if(h&&(f=h.getElementById(e))&&T(b,f)&&f.id===e)return c.push(f),c}else{if(g[2])return sa.apply(c,b.getElementsByTagName(a)),
  c;if((e=g[3])&&F.getElementsByClassName&&b.getElementsByClassName)return sa.apply(c,b.getElementsByClassName(e)),c}if(!(!F.qsa||ea[a+" "]||M&&M.test(a))){if(1!==A)h=b,G=a;else if("object"!==b.nodeName.toLowerCase()){(w=b.getAttribute("id"))?w=w.replace(ya,za):b.setAttribute("id",w=H);f=R(a);for(e=f.length;e--;)f[e]="#"+w+" "+u(f[e]);G=f.join(",");h=qa.test(a)&&t(b.parentNode)||b}if(G)try{return sa.apply(c,h.querySelectorAll(G)),c}catch($b){ea(a)}finally{w===H&&b.removeAttribute("id")}}}return Z(a.replace(fa,
  "$1"),b,c,d)}function c(){function a(c,d){b.push(c+" ")>C.cacheLength&&delete a[b.shift()];return a[c+" "]=d}var b=[];return a}function e(a){a[H]=!0;return a}function f(a){var b=D.createElement("fieldset");try{return!!a(b)}catch(G){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function g(a,b){a=a.split("|");for(var c=a.length;c--;)C.attrHandle[a[c]]=b}function h(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===
  b)return-1;return a?1:-1}function k(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function l(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function m(a){return function(b){return"form"in b?b.parentNode&&!1===b.disabled?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&Ja(b)===a:b.disabled===a:"label"in b?b.disabled===a:!1}}function p(a){return e(function(b){b=
  +b;return e(function(c,d){for(var e,f=a([],c.length,b),w=f.length;w--;)c[e=f[w]]&&(c[e]=!(d[e]=c[e]))})})}function t(a){return a&&"undefined"!==typeof a.getElementsByTagName&&a}function v(){}function u(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function x(a,b,c){var d=b.dir,e=b.next,f=e||d,w=c&&"parentNode"===f,g=ha++;return b.first?function(b,c,e){for(;b=b[d];)if(1===b.nodeType||w)return a(b,c,e);return!1}:function(b,c,h){var G,A,k=[ma,g];if(h)for(;b=b[d];){if((1===b.nodeType||
  w)&&a(b,c,h))return!0}else for(;b=b[d];)if(1===b.nodeType||w)if(A=b[H]||(b[H]={}),A=A[b.uniqueID]||(A[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((G=A[f])&&G[0]===ma&&G[1]===g)return k[2]=G[2];A[f]=k;if(k[2]=a(b,c,h))return!0}return!1}}function z(a){return 1<a.length?function(b,c,d){for(var e=a.length;e--;)if(!a[e](b,c,d))return!1;return!0}:a[0]}function B(a,b,c,d,e){for(var f,w=[],g=0,h=a.length,G=null!=b;g<h;g++)if(f=a[g])if(!c||c(f,d,e))w.push(f),G&&b.push(g);return w}function I(a,
  c,d,f,g,h){f&&!f[H]&&(f=I(f));g&&!g[H]&&(g=I(g,h));return e(function(e,w,h,G){var A,k,l=[],V=[],n=w.length,m;if(!(m=e)){m=c||"*";for(var p=h.nodeType?[h]:h,q=[],La=0,r=p.length;La<r;La++)b(m,p[La],q);m=q}m=!a||!e&&c?m:B(m,l,a,h,G);p=d?g||(e?a:n||f)?[]:w:m;d&&d(m,p,h,G);if(f)for(A=B(p,V),f(A,[],h,G),h=A.length;h--;)if(k=A[h])p[V[h]]=!(m[V[h]]=k);if(e){if(g||a){if(g){A=[];for(h=p.length;h--;)(k=p[h])&&A.push(m[h]=k);g(null,p=[],A,G)}for(h=p.length;h--;)(k=p[h])&&-1<(A=g?Ga(e,k):l[h])&&(e[A]=!(w[A]=
  k))}}else p=B(p===w?p.splice(n,p.length):p),g?g(null,w,p,G):sa.apply(w,p)})}function O(a){var b,c,d,e=a.length,f=C.relative[a[0].type];c=f||C.relative[" "];for(var g=f?1:0,h=x(function(a){return a===b},c,!0),w=x(function(a){return-1<Ga(b,a)},c,!0),k=[function(a,c,d){a=!f&&(d||c!==U)||((b=c).nodeType?h(a,c,d):w(a,c,d));b=null;return a}];g<e;g++)if(c=C.relative[a[g].type])k=[x(z(k),c)];else{c=C.filter[a[g].type].apply(null,a[g].matches);if(c[H]){for(d=++g;d<e&&!C.relative[a[d].type];d++);return I(1<
  g&&z(k),1<g&&u(a.slice(0,g-1).concat({value:" "===a[g-2].type?"*":""})).replace(fa,"$1"),c,g<d&&O(a.slice(g,d)),d<e&&O(a=a.slice(d)),d<e&&u(a))}k.push(c)}return z(k)}function S(a,c){var d=0<c.length,f=0<a.length,g=function(e,g,h,w,G){var A,k,l,m=0,V="0",n=e&&[],p=[],q=U,r=e||f&&C.find.TAG("*",G),La=ma+=null==q?1:Math.random()||.1,t=r.length;for(G&&(U=g===D||g||G);V!==t&&null!=(A=r[V]);V++){if(f&&A){k=0;g||A.ownerDocument===D||(L(A),h=!ba);for(;l=a[k++];)if(l(A,g||D,h)){w.push(A);break}G&&(ma=La)}d&&
  ((A=!l&&A)&&m--,e&&n.push(A))}m+=V;if(d&&V!==m){for(k=0;l=c[k++];)l(n,p,g,h);if(e){if(0<m)for(;V--;)n[V]||p[V]||(p[V]=ta.call(w));p=B(p)}sa.apply(w,p);G&&!e&&0<p.length&&1<m+c.length&&b.uniqueSort(w)}G&&(ma=La,U=q);return n};return d?e(g):g}var J,F,C,Q,Y,R,W,Z,U,K,P,L,D,ca,ba,M,N,X,T,H="sizzle"+1*new Date,aa=a.document,ma=0,ha=0,ga=c(),ja=c(),ka=c(),ea=c(),la=function(a,b){a===b&&(P=!0);return 0},ra={}.hasOwnProperty,Ha=[],ta=Ha.pop,ua=Ha.push,sa=Ha.push,pa=Ha.slice,Ga=function(a,b){for(var c=0,d=
  a.length;c<d;c++)if(a[c]===b)return c;return-1},va=/[\x20\t\r\n\f]+/g,fa=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,wa=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,xa=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,Aa=/=[\x20\t\r\n\f]*([^\]'"]*?)[\x20\t\r\n\f]*\]/g,Ba=/:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
  Ca=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,ia={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\]/,PSEUDO:/^:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
  CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},Da=/^(?:input|select|textarea|button)$/i,Fa=/^h\d$/i,da=
  /^[^{]+\{\s*\[native \w/,Ia=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,qa=/[+~]/,na=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,oa=function(a,b,c){a="0x"+b-65536;return a!==a||c?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)},ya=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,za=function(a,b){return b?"\x00"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},Ea=function(){L()},Ja=x(function(a){return!0===a.disabled&&"fieldset"===
  a.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{sa.apply(Ha=pa.call(aa.childNodes),aa.childNodes),Ha[aa.childNodes.length].nodeType}catch(w){sa={apply:Ha.length?function(a,b){ua.apply(a,pa.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}F=b.support={};Y=b.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};L=b.setDocument=function(a){var b;a=a?a.ownerDocument||a:aa;if(a===D||9!==a.nodeType||!a.documentElement)return D;
  D=a;ca=D.documentElement;ba=!Y(D);aa!==D&&(b=D.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener("unload",Ea,!1):b.attachEvent&&b.attachEvent("onunload",Ea));F.attributes=f(function(a){a.className="i";return!a.getAttribute("className")});F.getElementsByTagName=f(function(a){a.appendChild(D.createComment(""));return!a.getElementsByTagName("*").length});F.getElementsByClassName=da.test(D.getElementsByClassName);F.getById=f(function(a){ca.appendChild(a).id=H;return!D.getElementsByName||
  !D.getElementsByName(H).length});F.getById?(C.filter.ID=function(a){var b=a.replace(na,oa);return function(a){return a.getAttribute("id")===b}},C.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&ba)return(a=b.getElementById(a))?[a]:[]}):(C.filter.ID=function(a){var b=a.replace(na,oa);return function(a){return(a="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===b}},C.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&ba){var c,d,e=b.getElementById(a);
  if(e){if((c=e.getAttributeNode("id"))&&c.value===a)return[e];d=b.getElementsByName(a);for(b=0;e=d[b++];)if((c=e.getAttributeNode("id"))&&c.value===a)return[e]}return[]}});C.find.TAG=F.getElementsByTagName?function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a);if(F.qsa)return b.querySelectorAll(a)}:function(a,b){var c=[],d=0;b=b.getElementsByTagName(a);if("*"===a){for(;a=b[d++];)1===a.nodeType&&c.push(a);return c}return b};C.find.CLASS=F.getElementsByClassName&&
  function(a,b){if("undefined"!==typeof b.getElementsByClassName&&ba)return b.getElementsByClassName(a)};N=[];M=[];if(F.qsa=da.test(D.querySelectorAll))f(function(a){ca.appendChild(a).innerHTML="\x3ca id\x3d'"+H+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+H+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";a.querySelectorAll("[msallowcapture^\x3d'']").length&&M.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||M.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");
  a.querySelectorAll("[id~\x3d"+H+"-]").length||M.push("~\x3d");a.querySelectorAll(":checked").length||M.push(":checked");a.querySelectorAll("a#"+H+"+*").length||M.push(".#.+[+~]")}),f(function(a){a.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";var b=D.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name\x3dd]").length&&M.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");
  2!==a.querySelectorAll(":enabled").length&&M.push(":enabled",":disabled");ca.appendChild(a).disabled=!0;2!==a.querySelectorAll(":disabled").length&&M.push(":enabled",":disabled");a.querySelectorAll("*,:x");M.push(",.*:")});(F.matchesSelector=da.test(X=ca.matches||ca.webkitMatchesSelector||ca.mozMatchesSelector||ca.oMatchesSelector||ca.msMatchesSelector))&&f(function(a){F.disconnectedMatch=X.call(a,"*");X.call(a,"[s!\x3d'']:x");N.push("!\x3d",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")});
  M=M.length&&new RegExp(M.join("|"));N=N.length&&new RegExp(N.join("|"));T=(b=da.test(ca.compareDocumentPosition))||da.test(ca.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a;b=b&&b.parentNode;return a===b||!!(b&&1===b.nodeType&&(c.contains?c.contains(b):a.compareDocumentPosition&&a.compareDocumentPosition(b)&16))}:function(a,b){if(b)for(;b=b.parentNode;)if(b===a)return!0;return!1};la=b?function(a,b){if(a===b)return P=!0,0;var c=!a.compareDocumentPosition-!b.compareDocumentPosition;
  if(c)return c;c=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1;return c&1||!F.sortDetached&&b.compareDocumentPosition(a)===c?a===D||a.ownerDocument===aa&&T(aa,a)?-1:b===D||b.ownerDocument===aa&&T(aa,b)?1:K?Ga(K,a)-Ga(K,b):0:c&4?-1:1}:function(a,b){if(a===b)return P=!0,0;var c=0,d=a.parentNode,e=b.parentNode,f=[a],g=[b];if(!d||!e)return a===D?-1:b===D?1:d?-1:e?1:K?Ga(K,a)-Ga(K,b):0;if(d===e)return h(a,b);for(;a=a.parentNode;)f.unshift(a);for(a=b;a=a.parentNode;)g.unshift(a);
  for(;f[c]===g[c];)c++;return c?h(f[c],g[c]):f[c]===aa?-1:g[c]===aa?1:0};return D};b.matches=function(a,c){return b(a,null,null,c)};b.matchesSelector=function(a,c){(a.ownerDocument||a)!==D&&L(a);c=c.replace(Aa,"\x3d'$1']");if(!(!F.matchesSelector||!ba||ea[c+" "]||N&&N.test(c)||M&&M.test(c)))try{var d=X.call(a,c);if(d||F.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(V){ea(c)}return 0<b(c,D,null,[a]).length};b.contains=function(a,b){(a.ownerDocument||a)!==D&&L(a);return T(a,
  b)};b.attr=function(a,b){(a.ownerDocument||a)!==D&&L(a);var c=C.attrHandle[b.toLowerCase()],c=c&&ra.call(C.attrHandle,b.toLowerCase())?c(a,b,!ba):E;return c!==E?c:F.attributes||!ba?a.getAttribute(b):(c=a.getAttributeNode(b))&&c.specified?c.value:null};b.escape=function(a){return(a+"").replace(ya,za)};b.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};b.uniqueSort=function(a){var b,c=[],d=0,e=0;P=!F.detectDuplicates;K=!F.sortStable&&a.slice(0);a.sort(la);if(P){for(;b=a[e++];)b===
  a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}K=null;return a};Q=b.getText=function(a){var b,c="",d=0;b=a.nodeType;if(!b)for(;b=a[d++];)c+=Q(b);else if(1===b||9===b||11===b){if("string"===typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=Q(a)}else if(3===b||4===b)return a.nodeValue;return c};C=b.selectors={cacheLength:50,createPseudo:e,match:ia,attrHandle:{},find:{},relative:{"\x3e":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},
  "~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){a[1]=a[1].replace(na,oa);a[3]=(a[3]||a[4]||a[5]||"").replace(na,oa);"~\x3d"===a[2]&&(a[3]=" "+a[3]+" ");return a.slice(0,4)},CHILD:function(a){a[1]=a[1].toLowerCase();"nth"===a[1].slice(0,3)?(a[3]||b.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&b.error(a[0]);return a},PSEUDO:function(a){var b,c=!a[6]&&a[2];if(ia.CHILD.test(a[0]))return null;a[3]?a[2]=a[4]||a[5]||"":c&&Ba.test(c)&&
  (b=R(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b));return a.slice(0,3)}},filter:{TAG:function(a){var b=a.replace(na,oa).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=ga[a+" "];return b||(b=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"),ga(a,function(a){return b.test("string"===typeof a.className&&a.className||"undefined"!==typeof a.getAttribute&&a.getAttribute("class")||
  "")}))},ATTR:function(a,c,d){return function(e){e=b.attr(e,a);if(null==e)return"!\x3d"===c;if(!c)return!0;e+="";return"\x3d"===c?e===d:"!\x3d"===c?e!==d:"^\x3d"===c?d&&0===e.indexOf(d):"*\x3d"===c?d&&-1<e.indexOf(d):"$\x3d"===c?d&&e.slice(-d.length)===d:"~\x3d"===c?-1<(" "+e.replace(va," ")+" ").indexOf(d):"|\x3d"===c?e===d||e.slice(0,d.length+1)===d+"-":!1}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:
  function(b,c,k){var l,w,m,n,p;c=f!==g?"nextSibling":"previousSibling";var A=b.parentNode,q=h&&b.nodeName.toLowerCase();k=!k&&!h;l=!1;if(A){if(f){for(;c;){for(m=b;m=m[c];)if(h?m.nodeName.toLowerCase()===q:1===m.nodeType)return!1;p=c="only"===a&&!p&&"nextSibling"}return!0}p=[g?A.firstChild:A.lastChild];if(g&&k)for(m=A,w=m[H]||(m[H]={}),w=w[m.uniqueID]||(w[m.uniqueID]={}),l=w[a]||[],l=(n=l[0]===ma&&l[1])&&l[2],m=n&&A.childNodes[n];m=++n&&m&&m[c]||(l=n=0)||p.pop();){if(1===m.nodeType&&++l&&m===b){w[a]=
  [ma,n,l];break}}else if(k&&(m=b,w=m[H]||(m[H]={}),w=w[m.uniqueID]||(w[m.uniqueID]={}),l=w[a]||[],l=n=l[0]===ma&&l[1]),!1===l)for(;(m=++n&&m&&m[c]||(l=n=0)||p.pop())&&((h?m.nodeName.toLowerCase()!==q:1!==m.nodeType)||!++l||(k&&(w=m[H]||(m[H]={}),w=w[m.uniqueID]||(w[m.uniqueID]={}),w[a]=[ma,l]),m!==b)););l-=e;return l===d||0===l%d&&0<=l/d}}},PSEUDO:function(a,c){var d,f=C.pseudos[a]||C.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[H]?f(c):1<f.length?(d=[a,a,"",c],C.setFilters.hasOwnProperty(a.toLowerCase())?
  e(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=Ga(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,d)}):f}},pseudos:{not:e(function(a){var b=[],c=[],d=W(a.replace(fa,"$1"));return d[H]?e(function(a,b,c,e){e=d(a,null,e,[]);for(var f=a.length;f--;)if(c=e[f])a[f]=!(b[f]=c)}):function(a,e,f){b[0]=a;d(b,null,f,c);b[0]=null;return!c.pop()}}),has:e(function(a){return function(c){return 0<b(a,c).length}}),contains:e(function(a){a=a.replace(na,oa);return function(b){return-1<(b.textContent||b.innerText||
  Q(b)).indexOf(a)}}),lang:e(function(a){Ca.test(a||"")||b.error("unsupported lang: "+a);a=a.replace(na,oa).toLowerCase();return function(b){var c;do if(c=ba?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===ca},focus:function(a){return a===D.activeElement&&(!D.hasFocus||D.hasFocus())&&
  !!(a.type||a.href||~a.tabIndex)},enabled:m(!1),disabled:m(!0),checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(6>a.nodeType)return!1;return!0},parent:function(a){return!C.pseudos.empty(a)},header:function(a){return Fa.test(a.nodeName)},input:function(a){return Da.test(a.nodeName)},button:function(a){var b=
  a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:p(function(){return[0]}),last:p(function(a,b){return[b-1]}),eq:p(function(a,b,c){return[0>c?c+b:c]}),even:p(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:p(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:p(function(a,b,c){for(b=0>c?c+b:c;0<=--b;)a.push(b);
  return a}),gt:p(function(a,b,c){for(c=0>c?c+b:c;++c<b;)a.push(c);return a})}};C.pseudos.nth=C.pseudos.eq;for(J in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})C.pseudos[J]=k(J);for(J in{submit:!0,reset:!0})C.pseudos[J]=l(J);v.prototype=C.filters=C.pseudos;C.setFilters=new v;R=b.tokenize=function(a,c){var d,e,f,g,h,k,l;if(h=ja[a+" "])return c?0:h.slice(0);h=a;k=[];for(l=C.preFilter;h;){if(!d||(e=wa.exec(h)))e&&(h=h.slice(e[0].length)||h),k.push(f=[]);d=!1;if(e=xa.exec(h))d=e.shift(),f.push({value:d,
  type:e[0].replace(fa," ")}),h=h.slice(d.length);for(g in C.filter)!(e=ia[g].exec(h))||l[g]&&!(e=l[g](e))||(d=e.shift(),f.push({value:d,type:g,matches:e}),h=h.slice(d.length));if(!d)break}return c?h.length:h?b.error(a):ja(a,k).slice(0)};W=b.compile=function(a,b){var c,d=[],e=[],f=ka[a+" "];if(!f){b||(b=R(a));for(c=b.length;c--;)f=O(b[c]),f[H]?d.push(f):e.push(f);f=ka(a,S(e,d));f.selector=a}return f};Z=b.select=function(a,b,c,d){var e,f,g,h,k="function"===typeof a&&a,l=!d&&R(a=k.selector||a);c=c||[];
  if(1===l.length){f=l[0]=l[0].slice(0);if(2<f.length&&"ID"===(g=f[0]).type&&9===b.nodeType&&ba&&C.relative[f[1].type]){b=(C.find.ID(g.matches[0].replace(na,oa),b)||[])[0];if(!b)return c;k&&(b=b.parentNode);a=a.slice(f.shift().value.length)}for(e=ia.needsContext.test(a)?0:f.length;e--;){g=f[e];if(C.relative[h=g.type])break;if(h=C.find[h])if(d=h(g.matches[0].replace(na,oa),qa.test(f[0].type)&&t(b.parentNode)||b)){f.splice(e,1);a=d.length&&u(f);if(!a)return sa.apply(c,d),c;break}}}(k||W(a,l))(d,b,!ba,
  c,!b||qa.test(a)&&t(b.parentNode)||b);return c};F.sortStable=H.split("").sort(la).join("")===H;F.detectDuplicates=!!P;L();F.sortDetached=f(function(a){return a.compareDocumentPosition(D.createElement("fieldset"))&1});f(function(a){a.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e";return"#"===a.firstChild.getAttribute("href")})||g("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)});F.attributes&&f(function(a){a.innerHTML="\x3cinput/\x3e";a.firstChild.setAttribute("value",
  "");return""===a.firstChild.getAttribute("value")})||g("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue});f(function(a){return null==a.getAttribute("disabled")})||g("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null});var Ka=a.Sizzle;b.noConflict=function(){a.Sizzle===b&&(a.Sizzle=
  Ka);return b};a.Sizzle=b})(m);var Yb=m.Sizzle;try{m.bcTempSizzle?(m.Sizzle=m.bcTempSizzle,delete m.bcTempSizzle):delete m.Sizzle}catch(a){}var u=m.blueConicClient=B.getBlueConicClient();u.fn.setRequestInfo({});(function(){var a=function(){B.publishPlainEventAndCallHook("onBlueConicLoaded");v.publish(v.ON_BEFORE_PRELISTENERS);B.checkPreListeners();var a=!1,b=!1;k&&c.logInfo("start pageview event");u.createEvent("PAGEVIEW",null,this,function(d){if(!d||0==d.length){k&&c.logInfo("the pageview event did not return any interaction, check if the channel is configured");
  var e=document.getElementById(ab);e&&(e.parentNode.removeChild(e),k&&c.logInfo("removed css for phase 1"))}k&&c.logInfo("[+] finished pageview event ["+d.length+" interactions to run]");ra=d;a=!0;k&&c.logInfo("start hide positions mechanism for positions claimed by the configured interactions");d=[];for(var e=0,f=ra.length;e<f;e++){var h=ra[e].getPosition();h&&z.call(d,h)}c.addCSSToDOM(d,sb,2E3);m.setTimeout(function(){var a=document.getElementById(ab);a&&a.parentNode.removeChild(a)},1);b=!1;k&&c.logInfo("start plugin download from url [/plugin/plugin] with version ["+
  Ja+"]");d=I?BC_URL:Q();d=Ja?d+"/plugin/plugin/"+Ja:d+"/plugin/plugin";I&&(d+="_e");c.loadScript(d,this,function(){k&&c.logInfo("finished plugin download");b=!0;b&&a&&(t||c.log("Profile is not initialized"),Ra(ra,!0))})})};lb=null!==pa();var b=c.getBcSessionId();b||(b=null);t=new Ia(b);I?h.JSONP.get(BC_URL+"/frontend/e",null,function(b){b||(I=!1,ib=hb());I&&m.name&&-1<m.name.indexOf("bc_simulator")?c.loadScript(BC_URL+"/simulatordevice",null,function(){a()}):a()}):a()})()}})(window,this.bcVerbose,
  this.bcChannelIdentifier,this.bcRpcMode,this.bcCSEnabled,this.bcHostname,getDG()||{},getP()||{},window.blueConicPreListeners);
  })();
  