2dcea3949be97fe2522be4717fe36a9d2c1c413bb14a112e0ad7758e324a096e

Source Code:

(function(){var getDG=function(){var x={};return x;};var getP=function(){var x={};try{x['1373579680']=['#contents-mod-filtered-story-list-MOD-BETA-STORY-MORE-STORIES-MG > ul'];x['41260096']=x['1373579680'];x['89205248']=['div.alert-banner--closings', 'div.site-header__branding'];x['215958240']=x['89205248'];x['1565300576']=['div.site-footer__network-branding', 'div.site-header__branding'];x['-1711922688']=x['1565300576'];x['649118752']=['div.site-footer__network-branding', 'footer[id=\'footer\']'];x['-607040224']=x['649118752'];x['-1937085920']=['section[id=\'ns-article-bin-2\'] > section.article-list', 'section[id=\'ns-article-bin-4\'] > section.article-list', 'section[id=\'ns-video-bin-15\'] > section.article-list', 'section[id=\'ns-video-bin-15\'] > section.article-list > div.article-list__content > div.slick-list > div.slick-track > div.slick-current > div > article.article-list__article'];x['-203499392']=x['-1937085920'];}catch(err){}return x;};(function(k){window.blueConicPreListeners=[];(function(){var k=!1,fa=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.BCClass=function(){};BCClass.extend=function(M){function I(){!k&&this.init&&this.init.apply(this,arguments)}var ra=this.prototype;k=!0;var sa=new this;k=!1;for(var J in M)sa[J]="function"==typeof M[J]&&"function"==typeof ra[J]&&fa.test(M[J])?function(k,I){return function(){var F=this._super;this._super=ra[k];var J=I.apply(this,arguments);this._super=F;return J}}(J,M[J]):M[J];I.prototype=
sa;I.constructor=I;I.extend=arguments.callee;return I}})();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({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",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.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._setHostAverageTimeProperty(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{}}},_setHostAverageTimeProperty: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(),r=this._profile.getValue(this.PROFILE_PROPERTIES.LASTREFERRERAVERAGE),E=0,R=0;Object.keys(i).map(function(e){return e.toString()}).forEach(function(_){var I=i[_];this._isSessionExpired(I.enddate)?this._addVisit(I,I.enddate-I.startdate):_===e?I.enddate=s:_===t&&r!==t&&(I.enddate=s,this._profile.setValue(this.PROFILE_PROPERTIES.LASTREFERRERAVERAGE,t)),0!==I.averageTime&&(R++,E+=I.averageTime)},this),this._profile.setValue(this.PROFILE_PROPERTIES.HOSTAVERAGETIME,JSON.stringify(i));var _=R>0?Math.round(E/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 r=1===t.length?t[0]:this.CONSTANTS.UNKNOWN,E=1===s.length?s[0]:this.CONSTANTS.UNKNOWN;this._setOriginProfileProperties(e,r,E)},_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 r=e.match(t);if(r){var E;if(E=isNaN(s[1])?this._getParameterByName(e,s[1]):r[s[1]+1])return E=decodeURIComponent(E),s.length>2&&s[2]&&(E=decodeURIComponent(E)),E=(E=(E=E.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(k,ab,fa,M,I,ra,sa,J,F){function sb(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,V&&a&&0===a.indexOf(V))return h&&d.logInfo("Use locale ["+a+"] for connection ["+this.getId()+"]."),this._parameters[a];return null!==b?(h&&d.logInfo("Use locale ["+b+"] for connection ["+this.getId()+"]."),this._parameters[b]):null}}function tb(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=d.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(V&&a&&0===a.indexOf(V))return this._usedLocale=a,h&&d.logInfo("use locale ["+a+"] for interaction ["+b+"]."),this._parameters[a];h&&
d.logInfo("no parameters found for locale ["+V+"] 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 V};this.getUrlPrefix=function(){d.logDeprecated("context.getUrlPrefix","profile.getBaseURL");return d.getBaseURL(this._interactionTypeId)};this.getBaseURL=function(){return d.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=C.getBlueConicClient(this));return this._bcClient};this.getConnection=function(a){if(!a||!Y||!d.isArray(Y)||0===Y.length)return null;for(var b=0,c=Y.length;b<
c;b++){var g=Y[b];if(g&&g.id&&g.parameters&&g.id===a)return b=d.getInteractionParameters(g),new sb(a,b)}return null}}function Ea(a){function b(a){a=d.ensureArray(a).join(",");N?a?localStorage.setItem("BCRefusedObjectives",a):localStorage.removeItem("BCRefusedObjectives"):d.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)y.call(a,b);return a};this.getValue=function(a){if(!ta.call(this._properties,
a))return F;a=this._properties[a];return d.isArray(a)?a[0]:a};this.getValues=function(a){return ta.call(this._properties,a)?d.ensureArray(this._properties[a]):[]};this.setValue=function(a,b,f){"consented_objectives"===a?(b=d.isArray(b)?0<b.length?[b[0]]:[]:[b],this.setConsentedObjectives(b,f)):this._setValue(a,b,f)};this._setValue=function(a,b,f){var c=this.profileIsPrivacyAware();a?null===b||b===F?h&&d.logInfo("value cannot be undefined or null"):(z.unsavedLog(a,null),d.isArray(b)?b=0<b.length?b[0]:
null:d.isDate(b)&&(b=b.getTime()),z.unsavedLog(a,b,!1,c,f),this._properties[a]=d.ensureArray(b)):h&&d.logInfo("could not set value for undefined property")};this.setValues=function(a,b,d){"consented_objectives"===a?this.setConsentedObjectives(b,d):this._setValues(a,b,d)};this._setValues=function(a,b,f){var c=this.profileIsPrivacyAware();if(a)if(d.isArray(a))h&&d.logInfo("property cannot be an array");else{z.unsavedLog(a,null);b=d.ensureArray(b);for(var e=0;e<b.length;e++)d.isDate(b[e])&&(b[e]=b[e].getTime());
d.removeItemFromArray(b,null);d.removeItemFromArray(b,F);this._properties[a]=b;z.unsavedLog(a,b,!1,c,f)}else h&&d.logInfo("could not set values for undefined property")};this.addValue=function(a,b,d){"consented_objectives"===a?this.addConsentedObjective(b,d):this._addValue(a,b,d)};this._addValue=function(a,b,f){var c=this.profileIsPrivacyAware();if(a)if(d.isArray(a))h&&d.logInfo("property cannot be an array");else if(null===b||b===F)h&&d.logInfo("value cannot be undefined or null");else{d.isDate(b)&&
(b=b.getTime());this._properties[a]||(this._properties[a]=[]);var e=this._properties[a];-1===d.indexOfArray(e,b)&&(y.call(e,b),z.unsavedLog(a,b,!0,c,f));this._properties[a]=e}else h&&d.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 c=this.getConsentedObjectives();-1===d.indexOfArray(c,a)&&(y.call(c,a),this._setValues("consented_objectives",c,b));var c=this.getRefusedObjectives(),e=c.length;d.removeItemFromArray(c,a);e!==c.length&&this.setValues("refused_objectives",c,b);this._privacyAwareAndDoNotTrack()&&(this.setValues("refused_objectives",c,b),this.deleteDntRefusedObjectives(),
h&&d.logInfo("Set permission level because of added consented objective: "+a),n.setLevel(n.PERSONAL,"Added consented objective: "+a))};this.addRefusedObjective=function(a,e){if(this._privacyAwareAndDoNotTrack())e=this.getDntRefusedObjectives(),-1===d.indexOfArray(e,a)&&y.call(e,a),b(e);else{var c=this.getRefusedObjectives();-1===d.indexOfArray(c,a)&&(y.call(c,a),this.setValues("refused_objectives",c,e));var c=this.getConsentedObjectives(),g=c.length;d.removeItemFromArray(c,a);g!==c.length&&this._setValues("consented_objectives",
c,e)}};this.setConsentedObjectives=function(a,b){this._setValues("consented_objectives",a,b);if(0!==a.length){for(var c=this.getRefusedObjectives(),e=c.length,p=0;p<a.length;p++)d.removeItemFromArray(c,a[p]);e!==c.length&&this.setValues("refused_objectives",c,b);this._privacyAwareAndDoNotTrack()&&(this.setValues("refused_objectives",c,b),this.deleteDntRefusedObjectives(),h&&d.logInfo("Set permission level because of consented objectives: "+a),n.setLevel(n.PERSONAL,"Set consented objectives: "+a))}};
this.setRefusedObjectives=function(a,e){if(this._privacyAwareAndDoNotTrack())b(a);else{this.setValues("refused_objectives",a,e);for(var c=this.getConsentedObjectives(),g=c.length,p=0;p<a.length;p++)d.removeItemFromArray(c,a[p]);g!==c.length&&this._setValues("consented_objectives",c,e)}};this.loadValues=function(a,b,f){a=d.ensureArray(a);z.getProperties(a,this,function(){d.doCallback(b,f)});l.submitBatch()};this.addProperty=function(a,b){d.logDeprecated("profile.addProperty(property, value)","profile.addValue(property, value)");
this.addValue(a,b)};this.getDntRefusedObjectives=function(){var a;return(a=N?localStorage.getItem("BCRefusedObjectives"):d.getCookie("BCRefusedObjectives"))?d.ensureArray(a.split(",")):[]};this.deleteDntRefusedObjectives=function(){N?localStorage.removeItem("BCRefusedObjectives"):d.setCookie("BCRefusedObjectives",null)};this._privacyAwareAndDoNotTrack=function(){return this.hasSupportedLegislation()&&n.getLevel()===n.DO_NOT_TRACK};this.hasSupportedLegislation=function(){var a=this.getPrivacyLegislation();
return 0<=d.indexOfArray(bb,a)};this.profileIsPrivacyAware=function(){return!this.getPrivacyLegislation()||this.hasSupportedLegislation()}}function U(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,d){t.loadValues(a,c,d)};this.addProperty=function(a,c){t.addProperty(a,c)};this.isNew=function(){return Na}}function ub(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=w.util.array.ensureArray(a.recommendationBlock),c=0;c<b.length;c++)for(var d=w.util.array.ensureArray(b[c].recommendations),
f=0;f<d.length;f++){var g=b[c].id;d[f].recommendationId=this._id;d[f].setId=g;this._groupedItems[g]||(this._groupedItems[g]=[],this._setsOrder.push(g));this._groupedItems[g].push(d[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 vb(a,b,c,d,f){this._id=a;this._html=b;this._css=c;this._javascript=d;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 wb(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 xb(){h&&d.logInfo("The browser has no JSON support; the json2 [http://www.JSON.org/js.html] is used for handling JSON");oa={};(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=m[a];return"string"===typeof b?b:"\\u"+
("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function d(a,b){var e,f,g=p,m,h=b[a];h&&"object"===typeof h&&"function"===typeof h.bcToJSON&&(h=h.bcToJSON(a));"function"===typeof r&&(h=r.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";p+=q;m=[];if("[object Array]"===Object.prototype.toString.apply(h)){f=h.length;for(a=0;a<f;a+=1)m[a]=d(a,h)||"null";
b=0===m.length?"[]":p?"[\n"+p+m.join(",\n"+p)+"\n"+g+"]":"["+m.join(",")+"]";p=g;return b}if(r&&"object"===typeof r)for(f=r.length,a=0;a<f;a+=1)"string"===typeof r[a]&&(e=r[a],(b=d(e,h))&&m.push(c(e)+(p?": ":":")+b));else for(e in h)Object.prototype.hasOwnProperty.call(h,e)&&(b=d(e,h))&&m.push(c(e)+(p?": ":":")+b);b=0===m.length?"{}":p?"{\n"+p+m.join(",\n"+p)+"\n"+g+"}":"{"+m.join(",")+"}";p=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,
p,q,m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},r;"function"!==typeof a.stringify&&(a.stringify=function(a,b,c){var e;q=p="";if("number"===typeof c)for(e=0;e<c;e+=1)q+=" ";else"string"===typeof c&&(q=c);if((r=b)&&"function"!==typeof b&&("object"!==typeof b||"number"!==typeof b.length))throw Error("JSON.stringify");return d("",{"":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!==F?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");})})(oa)}var zb=M?M:"FORCE_POST";
var BC_URL='https://nexstar.blueconic.net';var ua=document.createElement("a");ua.href=BC_URL;I=-1===ua.href.substring(ua.protocol.length).indexOf(":")?ua.hostname:ua.host;var Q=!1;if(k.name&&0==k.name.indexOf("bc_")||top.window!=k||document.cookie&&-1!=document.cookie.indexOf("BC_e\x3dtrue"))if(k.top!=k||k.opener){Q=!0;try{top.location.host!=document.location.host||k.opener||(Q=!1)}catch(a){Q=!0}}if(!k.blueConicClient||-1==BC_URL.indexOf(I)){var cb=function(){if(Q)return BC_URL;var a="undefined"!=typeof I?"https://"+I:null;
a&&-1!=BC_URL.indexOf(I.split(":")[0].replace("http://",""))||(a=BC_URL);if(!a)a:{var b;b=document.getElementsByTagName("script");for(var c=0,d=b.length;c<d;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},O=cb(),T="undefined"!=typeof fa&&fa?fa:null,db=function(){var a=k.navigator.userLanguage||navigator.systemLanguage||k.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()},V=db.call(this),Ab=(new Date).getTime(),h="undefined"!=typeof ab&&ab,W="undefined"!=typeof console&&console&&console.log,R=!1,eb=!1,Oa=!1,X=[],Bb=["LISTENER","TOOLBAR"],ha=!1,Fa=!1,Ga=!1,Pa=null,bb=[],Qa=null,Ra;Ra=k.navigator&&k.navigator.userAgent?navigator.userAgent.toLowerCase():"unknown";var Cb=function(){try{var a;document.createEvent?(a=document.createEvent("Event"),a.initEvent("onBlueConicEventCheck",!0,!0),
k.dispatchEvent(a)):(a=document.createEventObject(),k.fireEvent("onBlueConicEventCheck",a));return!0}catch(b){return!1}}(),Db=function(){if("undefined"!=typeof XMLHttpRequest&&XMLHttpRequest){if("withCredentials"in new XMLHttpRequest)return h&&W&&console.log("CORS is fully supported. Chrome/Firefox/Opera/Safari/IE10+"),!0;if("undefined"!=typeof XDomainRequest)return h&&W&&console.log("CORS is not fully supported in IE8/9, fallback to old GET mechanism."),!1}h&&W&&console.log("CORS is not supported.");
return!1}(),N;try{localStorage.setItem("bc_local_storage_check","bc_local_storage_check"),localStorage.removeItem("bc_local_storage_check"),N=!0}catch(a){N=!1}var da=!0,Sa=null,va=-1!==Ra.indexOf("firefox")?7168:-1!==Ra.indexOf("chrome")?7168:3072,oa=null,fb=Object.prototype.toString,ta=Object.prototype.hasOwnProperty,y=Array.prototype.push,Eb=Array.prototype.unshift,gb=Array.prototype.indexOf,Fb=Array.prototype.isArray,Gb=Array.prototype.filter,Hb=Array.prototype.map,wa=null,Ha=null,pa;try{wa=document.cookie,
pa=!0}catch(a){pa=!1}for(var hb=null,ib=null,K=[],ia=[],Y=[],ea=null,t=null,Na=!1,xa=null,ya=null,za=null,Aa=[],Ta={},Ua={},Ia={},Ba={},jb={},Va="bc_pre_"+(new Date).getTime(),kb="bc_post_"+(new Date).getTime(),Ja="bc_async_"+(new Date).getTime(),ja=J?J:[],lb=["bc_simulator","bc_dialogues","bc_visualpicker"],mb="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(" "),
ka={},Wa=0;Wa<mb.length;Wa++)ka[mb[Wa]]=null;var Xa=["$"],ca,u=function(){if(!O)return h&&d.logInfo("blueconic stopped running because the hostname is not defined"),null};u.prototype.createEvent=function(a,b,c,e,f){var g=-1<d.indexOfArray(x.dynamicTypes,a),p=-1<d.indexOfArray(x.types,a),q=!0===b,m=null!==b&&"object"===typeof b;q&&(Fa=!0);if(p||g)if(p&&"PAGEVIEW"!=a&&!b)d.logWarning("An interaction is required for event type ["+a+"]");else{"PAGEVIEW"!==a||q||z.getProfile();"PAGEVIEW"!==a||ha&&!q||
(ja&&0<ja.length&&z.updateProfile(),q||l.handleRevisions());var p={type:a,referrer:document.referrer,profile:null!==t?t.getId():d.getBcSessionId()},r;for(r in f)f.hasOwnProperty(r)&&(p[r]=f[r]);m?(f=Ya.getParams(a,{timestamp:new Date,data:b,profile:p.profile,referrer:p.referrer},c),p.timelineContext=f.data,p.timestamp=f.timestamp,p.eventSource=f.eventSource):p.interaction=b;x.create(p,this,function(f){"VIEW"===a&&f&&Ma(f,!1);g&&Ma(f,!1);d.doCallback(c,e,f);x.publish(a,b)});"VIEW"===a?l.submitBatchTimeout(200):
l.submitBatch()}else x.publish(a,b)};u.prototype.setEditableNode=function(a,b){this.functions.setEditableNode(a,b)};u.prototype.getHostname=function(){return I};u.prototype.getIPAddress=function(){return ib};u.prototype.getInteractions=function(){return K};u.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};u.prototype.getSegments=function(){return ia};u.prototype.getTemplate=function(a,b){if(a){u.prototype._templateCallbacks||
(u.prototype._templateCallbacks={});var c=(new Date).getTime()+Math.random();u.prototype._templateCallbacks[c]&&(c=(new Date).getTime()+Math.random());u.prototype._templateCallbacks[c]={onSuccess:b,templateId:a};var e=function(){for(var a=d.getPropertiesFromObject(u.prototype._templateCallbacks),b=0;b<a.length;b++){var c=u.prototype._templateCallbacks[a[b]];if(c){delete u.prototype._templateCallbacks[a[b]];var e=jb[c.templateId];if(!e){d.logWarning("Template with ID ["+c.templateId+"] is not found.");
break}d.doCallback(this,c.onSuccess,e)}}};u.prototype.isInEditMode()&&!u.prototype._isTemplateDownloading&&(Ga=!1,za=null,h&&d.logInfo("download templates again for edit mode"));Ga||u.prototype._isTemplateDownloading?u.prototype._isTemplateDownloading||e():(u.prototype._isTemplateDownloading=!0,d.loadScript(za?O+"/templates/"+za:O+"/templates",this,function(){delete u.prototype._isTemplateDownloading;h&&d.logInfo("finished template download");e()}))}else d.logWarning("A templateID is required for loading a template")};
u.prototype.getChannelId=function(){return hb};u.prototype.isInEditMode=function(){return k.name&&"bc_dialogues"===k.name.substring(0,12)||k.bcEditModeInstanceName&&-1<k.bcEditModeInstanceName.indexOf("bc_dialogues")?!0:!1};u.prototype.setHostname=function(a){d.logDeprecated("blueConicClient.setHostName","Use setChannelIdentifier instead.");T=a};u.prototype.setChannelIdentifier=function(a){T=a};u.prototype.getStaticUrlPrefix=function(a){d.logDeprecated("blueConicClient.getStaticUrlPrefix","Use getBaseURL instead");
return d.getBaseURL(a)};u.prototype.getBaseURL=function(a){return d.getBaseURL(a)};u.prototype.getRestEndpoint=function(a){var b="https://"+this.getHostname()+"/rest/custom/frontend/",c=d.getZoneId();c&&(b+=c+"/");a&&(b+=a);return b};u.prototype.isInSimulatorMode=function(){return k.name&&-1<k.name.indexOf("bc_simulator")};u.prototype.getCurrentDate=function(){return u.prototype.isInSimulatorMode()&&Pa?Pa:new Date};u.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))}};u.prototype.getProfileProperties=function(a,b){var c=(new Date).getTime()+ ++l.requestId;l.addBatchRequest(l.GET_PROFILE_PROPERTIES,null,c,this,function(c){var e={};if(c&&c.result){c=c.result;if(c.properties){var e=c.properties,g;for(g in e)e[g].permissionLevel&&(e[g].permissionLevel=n[e[g].permissionLevel])}d.doCallback(a,b,e)}});l.submitBatch()};u.prototype.handlePageView=function(a){Qa&&clearTimeout(Qa);Qa=setTimeout(function(){h&&
d.logInfo("handling asynchronous navigation for new url ["+document.location.href+"], creating new PAGEVIEW event to retrieve interactions for this url.");l.resetThrottlingCounter(!0);a&&!0===a.hidePositions&&C.hideAllPositions();var b=document.getElementById(Ja);b&&b.parentNode.removeChild(b);w._pendingInteractions=[];C.checkPreListeners();Na=!1;w.createEvent("PAGEVIEW",!0,this,function(a){x.publish(x.ON_URL_CHANGE,{url:document.location.href});Ma(a,!1)})},10)};u.prototype.mail={sendEmail:function(a,
b,c,e){var f=w._handledInteractions;if(f){for(var g=null,p=0,q=f.length;p<q&&!g;p++)f[p]&&f[p].context&&f[p].context.getInteractionId()===a&&(g=f[p].context);g&&(locale=g._usedLocale,f=(new Date).getTime()+ ++l.requestId,a={interactionId:[a],onlyOnce:[b],langId:[locale]},z.updateProfile(),l.addBatchRequest(l.SEND_MAIL,a,f,this,function(a){a&&d.doCallback(c,e,a)}),l.submitBatch())}}};u.prototype.util={loadScript:function(a,b,c){d.loadScript(a,b,c)},loadJSON:function(a,b,c){l.JSONP.get(a,null,function(a){d.doCallback(b,
c,a)})},loadCSS:function(a){d.loadCSS(a)},load:function(a,b,c,e,f){d.logDeprecated("blueConicClient.util.load (libname, libversion, liboptions, caller, onSuccess)","blueConicClient.util.loadScript (url, caller, onSuccess)");"function"!=typeof f?d.logError('blueConicClient.util.load "onSuccess" is not a function'):d.loadScript(a,e,f)},loadLabels:function(a,b){d.logDeprecated("blueConicClient.util.loadLabels(caller, onSuccess)","blueConicClient.getProfileProperties(caller, onSuccess)");var c=(new Date).getTime()+
++l.requestId;l.addBatchRequest(l.GET_PROPERTY_LABELS,null,c,this,function(c){var e={};if(c&&c.result){c=c.result;if(c.properties)for(var g in c.properties){e[g]={};var p=c.properties[g],q;for(q in p)e[g][q]=p[q]}d.doCallback(a,b,e)}});l.submitBatch()},log:function(a){d.log(a)}};u.prototype.util.cookie={setCookie:function(a,b,c){return d.setCookie(a,b,c)},getCookie:function(a){return d.getCookie(a)}};u.prototype.util.array={ensureArray:function(a){return d.ensureArray(a)},isArray:function(a){return d.isArray(a)},
diffArrays:function(a,b){return d.diffArrays(a,b)},removeItemFromArray:function(a,b){d.removeItemFromArray(a,b)},indexOfArray:function(a,b){return d.indexOfArray(a,b)},mergeArrays:function(a,b){d.mergeArrays(a,b)}};var nb=function(a){return{updateProfile:function(a,c){var b=a,f=c;"function"==typeof a&&(d.logDeprecated("blueConicClient.profile.updateProfile (onSuccess, caller)","blueConicClient.profile.updateProfile (caller, onSuccess)"),f=a,b=c);z.updateProfile(b,f);l.submitBatch()},createProfile:function(a,
c){z.createProfile(a,c);l.submitBatch()},deleteProfile:function(a,c){var b=a,f=c;"function"==typeof a&&(d.logDeprecated("blueConicClient.profile.deleteProfile (onSuccess, caller)","blueConicClient.profile.deleteProfile (caller, onSuccess)"),f=a,b=c);z.deleteProfile(b,f);l.submitBatch()},getProfile:function(){return t?new U(a):null}}};u.prototype.functions={setLocaleFunction:function(a){a&&"function"==typeof a?(V=a.call(null),h&&d.logInfo("runned locale function, the locale is now ["+V+"]")):V=db.call(this)},
setEditableNode:function(a,b){if(w.fn.postMessage&&w.fn.getSelectorForElement){var c=null;"string"==typeof a?c=a:null!=a&&(c=w.fn.getSelectorForElement(a));w.fn.postMessage("editableNodeUpdate",{selector:c,options:b})}},sendMessage:function(a){w.fn.postMessage&&w.fn.postMessage("onInteractionMessage",a)}};u.prototype.json={parse:function(a){try{return d.checkNativeJsonLib(),da?k.JSON.parse(a):oa.parse(a)}catch(b){return d.logError("Could not parse json ["+b.message+"]"),null}},stringify:function(a,
b,c){try{d.checkNativeJsonLib();var e=!1,f=null;Array.prototype.toJSON&&(e=!0,f=Array.prototype.toJSON,delete Array.prototype.toJSON);var g;if(da)return g=k.JSON.stringify(a,b,c),e&&(Array.prototype.toJSON=f),g;g=oa.stringify(a,b,c);e&&(Array.prototype.toJSON=f);return g}catch(p){return d.logError("Could not stringify object ["+p.message+"]"),null}}};u.prototype.fn={createInteraction:function(a){if(a){var b=d.getInteractionParameters(a);return new tb(a,b)}},postMessage:function(a,b){(k.opener&&k.opener!=
k?k.opener:k.parent).postMessage({event:a,message:b,instanceName:k.bcEditModeInstanceName||w.instanceName},"*")},stringify:function(a,b,c){return d.stringifyObject(a,b,c)},addGlobalVarToBlacklist:function(a){ka[a]=null},addImplicitGlobalList:function(a){y.call(Xa,a)},handlePreListeners:function(a){if(a)for(var b=0,c=a.length;b<c;b++){var e=a[b],f=e.getInteractionTypeId();h&&d.logInfo("start handling pre listener ["+f+"]");var g=Ta[f];if(g&&"function"===typeof g){var p=e.getBlueConicClient(),e=g.call(this,
p,e);if(e.onPrepare&&"function"===typeof e.onPrepare){h&&d.logInfo("call method [onPrepare] for listener ["+f+"]");try{e.onPrepare()}catch(q){d.logError("an error occured in interactiontype: ["+f+"]\x3cbr\x3ecalled method: [onPrepare]\x3cbr\x3eerror: "+q.message),h&&console.error&&console.error(q)}}}}},updateParams:function(a,b,c){for(var d=w._handledInteractions,f=0,g=d.length;f<g;f++){var p=d[f];a&&null===p.id&&(p.id=a);if(p.id==a){p.context.setParameters(b,c);var q="function"==typeof p.interaction.onUpdate?
p.interaction.onUpdate:null;q&&q.call(p.interaction)}}},handleInteractions:function(a,b){a=C.handleLocalEditModeInteractions(a);var c=C.prepareInteractions(a,b);(a=document.getElementById(kb))&&a.parentNode.removeChild(a);a=[];for(var e=0,f=c.length;e<f;e++){var g=c[e];if(g.getPreloadProperties)try{var p=g.getPreloadProperties();d.mergeArrays(a,p)}catch(m){d.logError("an error occured in interactiontype: ["+g.ctx.getInteractionTypeId()+"]\x3cbr\x3ecalled method: [getPreloadProperties]\x3cbr\x3eerror: "+
m.message),h&&console.error&&console.error(m)}}if(t&&0<a.length){h&&d.logInfo("start preloading "+a.length+" profile properties");var q=0,p=function(){q++;2===q&&C.executeInteractionsOnDocReady(c,b)};C.downloadLibraries(p);t.loadValues(a,this,p)}else h&&d.logInfo("skip preloading "+a.length+" profile properties"),C.executeInteractionsOnDocReady(c,b)},registerInteractionType:function(a,b,c,e){var f=[];if(b){for(var g=0;c&&g<c.length;g++)y.call(f,c[g].url+" - "+c[g].sharing);h&&d.logInfo("register plugin ["+
a+"] with libraries \x3cbr\x3e"+f.join("\x3cbr\x3e"))}else return d.logInfo("did not register interactionype with id : ["+a+"]. InteractionTypeImpl is undefined."),null;var p;(function(){p=function(c,e){try{return new b(c,e)}catch(r){d.logError("an error occured in interactiontype: ["+a+"]\x3cbr\x3ecalled method: [init]\x3cbr\x3eerror: "+r.message),h&&console.error&&console.error(r)}}})();if(e)for(f=0;f<e.length;f++)(g=e[f])&&g.id&&g.baseUrl&&!Aa[g.id]&&(Aa[g.id]=g.baseUrl);Ta[a]=p;Ua[a]=c},registerLibrary:function(a,
b,c){h&&d.logInfo("register library ["+a+"]");Ba[a]={libraryFunction:b,libraryName:c}},registerTemplates:function(a){if(a&&!Ga){var b=d.getPropertiesFromObject(a);h&&d.logInfo("registering templates with the following IDs ["+b+"]");for(var c=0;c<b.length;c++){var e=a[b[c]];e.css!==F&&e.js!==F&&e.html!==F&&(jb[b[c]]=new vb(b[c],e.html,e.css,e.js,e.precompiled?e.precompiled:null))}Ga=!0}},saveGlobalVariables:function(){var a={},b=[],c=null;for(c in k)ka[c]===F&&(a[c]=k[c],y.call(b,c));for(var e=Xa.length,
f=0;f<e;f++)c=Xa[f],-1===d.indexOfArray(b,c)&&k[c]&&(a[c]=k[c],y.call(b,c));return function(){for(var c=[],e=b.length,f=0;f<e;f++){var m=b[f];if(ka[m]===F&&k[m]!==a[m]){h&&d.logInfo(typeof k[m]+" ["+m+"] moved to private space");this[m]=k[m];y.call(c,m);try{k[m]=a[m]}catch(yb){}}}var e=[],r;for(r in k)ka[r]===F&&e.push(r);r=d.diffArrays(e,b);e=0;for(f=r.length;e<f;e++){var m=r[e],l=typeof k[m];if(ka[m]===F&&(this[m]=k[m],y.call(c,m),"jQuery"===m))try{k[m]=F,delete k[m]}catch(yb){}h&&d.logInfo(l+" ["+
m+"] added to private space")}return c}},importLibraries:function(a){a=d.ensureArray(a);var b=a.length;if(0!==b){for(var c=ob(),e=0;e<b;e++)pb.call(this,a[e]);c.call(this)}},importAndCacheLibraries:function(a){a=d.ensureArray(a);var b=a.length,c=this.ctx.getInteractionTypeId();if(0!==b)if(c)for(var e=0;e<b;e++){var f=a[e],g=Ba[f];if(g===F)h&&d.logError("unexisting library ["+f+"] for interactiontype ["+c+"]");else{var p=g.libraryName;Ia[p]?(function(a){for(var b,c=0;c<a.length;c++)b=a[c],h&&d.logInfo("added ["+
b.key+"] from cache to private space"),this[b.key]=b.object}.call(this,Ia[p]),h&&d.logInfo("retrieved library ["+f+"] from cache with key ["+p+"] for interactiontype ["+c+"]")):(Ia[p]=[],function(a,b){var e=ob();pb(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]];y.call(b,g)}h&&d.logInfo("added library ["+a+"] to cache with key ["+p+"] for interactiontype ["+c+"]")}.call(this,f,Ia[p]))}}else h&&d.logInfo("Could not determine the interactiontype during library import")},
parseLibrary:function(a){if(Ba)if(Ba[a]){var b=Ba[a].libraryFunction;if(b&&"function"==typeof b){h&&d.logInfo("start import library ["+a+"]");var c=null,e=null;k.define&&(h&&d.logInfo('moving "window.define" out of the way, to make sure library ['+a+"] is parsed properly"),c=k.define,k.define=null);"object"===typeof module&&"object"===typeof module.exports&&(h&&d.logInfo('moving "module.exports" out of the way, to make sure library ['+a+"] is parsed properly"),e=module.exports,module.exports=F);b.call(this);
c&&(h&&d.logInfo("resetting window.define to original state."),k.define=c);e&&(h&&d.logInfo("resetting module.exports to original state."),module.exports=e)}else d.logError("library with url ["+a+"] not found")}else d.logError("the external library ["+a+"] is declared in the plugin XML but not present.");else d.logError("the external libraries are not loaded")},getDomainGroup:function(a){a=d.hash(a);for(var b in ra){var c=ra[b],e;for(e in c)if(c[e]==a)return b}return"DEFAULT"},setRequestInfo:function(a){},
getDOMElement:function(a){return d.getDOMElement(a)},version:"2.4.0"};var qb=u.prototype.fn.createInteraction,Ma=u.prototype.fn.handleInteractions,Ib=u.prototype.fn.registerInteractionType,Jb=u.prototype.fn.handlePreListeners,ob=u.prototype.fn.saveGlobalVariables,pb=u.prototype.fn.parseLibrary,C={getBlueConicClient:function(a){var b=w,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 u,b.profile=new nb(a.getInteractionTypeId())):b||(b=new u,b.profile=new nb);return b},publishPlainEventAndCallHook:function(a){if(Cb)try{var b;document.createEvent?(b=document.createEvent("Event"),b.initEvent(a,!0,!0),k.dispatchEvent(b)):(b=document.createEventObject(),k.fireEvent(a,b))}catch(c){}try{if(k[a]&&"function"===typeof k[a])k[a]()}catch(c){}},hideAllPositions:function(){var a=T?T:document.location.hostname;h&&d.logInfo("start hide all positions for hostname ["+
a+"]");var b=sa[d.hash(a)];b&&0<b.length&&d.addCSSToDOM(b,Va,1250);h&&d.logInfo("finished hide all positions for hostname ["+a+"]")},checkPreListeners:function(){var a=[];if(ja.length&&0<ja.length){for(var b=0,c=ja.length;b<c;b++){var d=ja[b];Ib(d.id,d.interactionType);d=qb({id:d.id,name:d.id,interactionType:{myId:d.id}});y.call(a,d)}Jb(a)}},observeDOMChanges:function(){var a=w,b=document.getElementsByTagName("body")[0];b&&!a._observer&&(k.MutationObserver||k.WebKitMutationObserver||k.MozMutationObserver?
(a._observer=new MutationObserver(function(a,b){C.handleDOMMutation()}),a._observer.observe(b,{childList:!0,subtree:!0,characterData:!0})):k.addEventListener&&b.addEventListener("DOMNodeInserted",function(){C.handleDOMMutation()},!1))},handleDOMMutation:function(){w._handleMutationTO&&clearTimeout(w._handleMutationTO);w._handleMutationTO=setTimeout(function(){var a=w._pendingInteractions.length;w.isPaused!==F&&w.isPaused||h&&d.logInfo("dom mutation detected, #pending interactions: ["+a+"]");0<a&&
(a=C.handleOnLoad(w._pendingInteractions.slice(),!1),h&&d.logInfo("dom mutation detected, #handled: ["+a.length+"]"),0<a.length&&((a=document.getElementById(Ja))&&a.parentNode.removeChild(a),C.hidePendingPositions()));if((a=S.getSelectors().concat())&&0<a.length){h&&d.logInfo("listener subscribers found for the following selectors: ["+a+"]. Callbacks will be called now.");for(var b=0;b<a.length;b++){var c=a[b];try{c&&d.getDOMElement(c)&&S.publish(c)}catch(e){h&&console.error(e)}}}delete w._handleMutationTO},
100)},isNative:function(a,b){(a=/\{\s*\[native code\]\s*\}/.test(""+a))||d.logWarning("function: ["+b+"] is not native any more, the target website overruled it.");return a},handleLocalEditModeInteractions:function(a){if(!u.prototype.isInEditMode())return a;for(var b=[],c=[],e=0;e<a.length;e++){var f=a[e],g=f.getInteractionTypeId();y.call(b,g);f.isLocalEditMode()?h&&d.logInfo("skipping local edit mode interaction ["+g+"]"):y.call(c,f)}for(a=0;a<ca.length;a++)e=ca[a],f=e.getInteractionTypeId(),e.isLocalEditMode()&&
(g=f.substring(11),-1!==b.indexOf(g)&&(h&&d.logInfo("adding local edit mode interaction ["+f+"] for interaction type ["+g+"]"),Eb.call(c,e)));return c},shouldExecute:function(a,b){for(var c=0,e=w._handledInteractions.length;c<e;c++){var f=w._handledInteractions[c],f=-1<d.indexOfArray(Bb,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?C.downloadLibraries(function(){C.injectLibraries(a);R?C.callInteractionMethods(a,b):d.bindDocumentReady(this,
function(){C.callInteractionMethods(a,b)})}):(C.injectLibraries(a),R?C.callInteractionMethods(a,b):d.bindDocumentReady(this,function(){C.callInteractionMethods(a,b)}))},downloadLibraries:function(a){eb?d.doCallback(this,a):Oa?X.push(a):(X.push(a),Oa=!0,h&&d.logInfo("start library download from url [/plugin/library] with version ["+ya+"]"),a=ya?O+"/plugin/library/"+ya:O+"/plugin/library",Q&&(a+="_e"),d.loadScript(a,this,function(){eb=!0;Oa=!1;h&&d.logInfo("finished library download");if(X&&0<X.length){for(var a=
0;a<X.length;a++)X[a]&&d.doCallback(this,X[a]);X=[]}}))},injectLibraries:function(a){for(var b=0,c=a.length;b<c;b++){var e=a[b].ctx.getInteractionTypeId(),f=a[b].ctx.getName()?a[b].ctx.getName():a[b].ctx.getInteractionId();h&&d.logInfo("start import libraries for interaction ["+f+"]");Ua[e]&&a[b].importLibraries(Ua[e]);h&&d.logInfo("finished import libraries for interaction ["+f+"]")}},prepareInteractions:function(a,b){for(var c=[],e=0,f=a.length;e<f;e++){var g=a[e],p=g.getInteractionTypeId(),q=g.getName()?
g.getName():g.getInteractionId();if(b||!w._handledInteractions||C.shouldExecute(g.getInteractionId(),g.getType())){h&&d.logInfo("start initializing interaction ["+q+"], interaction type ["+p+"]");var m=Ta[p];if(m&&"function"===typeof m){var r=g.getBlueConicClient();if(m=m.call(this,r,g)){m.ctx=g;if(m.getContent&&"function"==typeof m.getContent&&"function"==typeof m.ctx.getPosition&&m.ctx.getPosition()){r=g=null;try{g=m.getContent()}catch(Ka){d.logError("an error occured in interactiontype: ["+m.ctx.getInteractionTypeId()+
"]\x3cbr\x3ecalled method: [getContent]\x3cbr\x3eerror: "+Ka.message),h&&console.error&&console.error(Ka)}r=m.ctx.getPosition();u.prototype.isInSimulatorMode()&&!g&&r&&m.ctx.getDOMElement();g&&r&&(h&&d.logInfo("start set content mechanism for interaction ["+q+"] with position ["+r+"]"),function(a,b,c){function e(){g++;(f=c.ctx.getDOMElement())?c.ctx.isOnLoadExecuted()?h&&d.logInfo('"onLoad" already executed for interaction ['+q+'], skipping "getContent"'):(c.ctx.setGetContentExecuted(!0),d.setContent(f,
a),h&&d.logInfo("[+] set content on position ["+b+"] was successful, recursion ["+g+"]")):50<=g?h&&d.logInfo("failed to set content on position ["+b+"] max recursion reached"):ha?h&&d.logInfo("failed to set content on position ["+b+"] onEvent started"):k.setTimeout(e,100)}var f=null,g=0;e.call(this)}(g,r,m))}y.call(c,m)}}else h&&d.logInfo("InteractionType with id ["+p+"] not found");h&&d.logInfo("finished initializing interaction ["+q+"], interaction type ["+p+"]")}else h&&d.logInfo("skipping interaction, already executed ["+
q+"], interaction type ["+p+"]")}return c},handleOnLoad:function(a,b){for(var c=[],e=0,f=a.length;e<f;e++){var g=a[e];if(g){var p="function"==typeof g.onLoad?g.onLoad:g.onEvent,q=g.ctx.getName()?g.ctx.getName():g.ctx.getInteractionId(),m=g.ctx;if(b||!w._handledInteractions||C.shouldExecute(m.getInteractionId(),m.getType()))if(m.getPosition()&&m.getDOMElement()||!m.getPosition()&&!m.isPositionTypePlugin()||m.getPosition()&&m.isGetContentExecuted()){d.removeItemFromArray(w._pendingInteractions,g);h&&
d.logInfo("[+] start onEvent for interaction ["+q+"]");c.push({id:m.getInteractionId(),name:m.getName(),position:m.getPosition(),type:m.getInteractionTypeId(),isPositionFound:m.isPositionFound()});w._handledInteractions.push({id:m.getInteractionId(),interaction:g,context:m});try{m.setOnLoadExecuted(!0);var r=m.getBlueConicClient();p.call(g,r.profile.getProfile(),m.getParameters(),m.getPosition(),r,m.getInteractionId(),O)}catch(Ka){d.logError("an error occured in interactiontype: ["+m.getInteractionTypeId()+
"]\x3cbr\x3ecalled method: [onEvent]\x3cbr\x3eerror: "+Ka.message),h&&console.error&&console.error(Ka)}h&&d.logInfo("finished onEvent for interaction ["+q+"]")}else if(m.getPosition()){p=!0;for(q=0;q<blueConicClient._pendingInteractions.length;q++)p&&blueConicClient._pendingInteractions[q]&&blueConicClient._pendingInteractions[q].ctx.getInteractionId()===m.getInteractionId()&&(p=!1);p&&w._pendingInteractions.push(g)}}}0<c.length&&!b&&x.publish("onHandledInteractions",{handledInteractions:c});return c},
callInteractionMethods:function(a,b){R?(Fa=ha=!0,w._pendingInteractions||(w._pendingInteractions=[]),w._handledInteractions||(w._handledInteractions=[]),h&&d.logInfo("start running interactions"),b&&x.publish(x.ON_BEFORE_INTERACTIONS),a=C.handleOnLoad(a,b),h&&d.logInfo("finished running interactions"),x.publish(x.ON_EVENT_READY,{blueConicClient:w,handledInteractions:a,isFirstLoad:b}),b&&(0<w._pendingInteractions.length&&C.hidePendingPositions(),C.observeDOMChanges()),Fa=ha=!1,w.profile.updateProfile()):
h&&d.logInfo("cannot run onLoad: document ready ["+R+"]")},hidePendingPositions:function(){if(0<w._pendingInteractions.length){for(var a=sa[d.hash(T?T:document.location.hostname)],b=[],c=0;c<w._pendingInteractions.length;c++){var e=w._pendingInteractions[c];-1<d.indexOfArray(a,e.ctx.getPosition())&&b.push(e.ctx.getPosition())}0<b.length&&(h&&d.logInfo("hiding interactions: ["+b+"]"),(a=document.getElementById(Ja))&&a.parentNode.removeChild(a),d.addCSSToDOM(b,Ja))}}};U.prototype.permission={getLevel:function(){return n.getLevel()},
setLevel:function(a,b){return n.setLevel(a,b)}};U.prototype.timeline={createEventById:function(a,b,c,e,f,g){if(a&&b){if(!c)c=new Date;else if(!(c instanceof Date)){h&&d.logInfo("Timestamp must be of type 'Date'.");return}a={profile:null!==t?t.getId():d.getBcSessionId(),data:e,timestamp:c,eventId:a};Ya.createEvent(b,a,f,g)}else h&&d.logInfo("Timeline event must contain an ID and a type")},createEvent:function(a,b,c,e,f){if(a){if(!b)b=new Date;else if(!(b instanceof Date)){h&&d.logInfo("Timestamp must be of type 'Date'.");
return}b={profile:null!==t?t.getId():d.getBcSessionId(),data:c,timestamp:b};Ya.createEvent(a,b,e,f)}else h&&d.logInfo("Timeline event must contain a type")}};U.prototype.permission.optin={};U.prototype.permission.optout={};var n={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===d.indexOfArray(this.itemList,a)&&(y.call(this.itemList,a),y.call(this.addList,a),d.removeItemFromArray(this.removeList,a))};this.remove=function(a){d.removeItemFromArray(this.itemList,a);y.call(this.removeList,a);d.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!==n.DO_NOT_TRACK&&a!==n.ANONYMOUS&&a!==n.PERSONAL)return d.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;n.previousPermissionLevel=n.permissionLevel;n.isPermissionLevelChanged=!0;n.message=b;n.permissionLevel=a;h&&d.logInfo("setPermissionLevel from ["+
n.previousPermissionLevel+"] to ["+n.permissionLevel+"]");return!0},getLevel:function(){return n.permissionLevel},createAPI:function(){function a(a){var b=new n.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 n.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}n.propertyOptOutHandler=a(U.prototype.permission.optout);n.propertyOptInHandler=a(U.prototype.permission.optin);n.pluginOptInHandler=b(U.prototype.permission.optin);n.pluginOptOutHandler=b(U.prototype.permission.optout);u.prototype.permission={};u.prototype.permission.level={DO_NOT_TRACK:n.DO_NOT_TRACK,ANONYMOUS:n.ANONYMOUS,PERSONAL:n.PERSONAL}}};n.createAPI();var z={addQueue:{},setQueue:{},callbackQueue:[],addSources:{},setSources:{},replaySources:{},getProfile:function(a,b){var c=(new Date).getTime()+
++l.requestId;l.addBatchRequest(l.GET_PROFILE,null,c,this,function(c){this._handleProfileResponse(c,!0);d.doCallback(a,b,t)})},_handleProfileResponse:function(a,b){if(a&&a.result){var c=function(a,c){var e=n[a.result.permissionlevel];n.permissionLevel=e;var f=d.ensureArray(a.result.optinproperties);n.propertyOptInHandler.set(f);var g=d.ensureArray(a.result.optoutproperties);n.propertyOptOutHandler.set(g);var r=d.ensureArray(a.result.optinplugins);n.pluginOptInHandler.set(r);a=d.ensureArray(a.result.optoutplugins);
n.pluginOptOutHandler.set(a);h&&(c="Profile object initialized"+("\x3cbr\x3e-id : ["+c+"]")+("\x3cbr\x3e-permission level : ["+e+"]")+("\x3cbr\x3e-optin properties : ["+f+"]"),c+="\x3cbr\x3e-optout properties : ["+g+"]",c+="\x3cbr\x3e-optin plugins : ["+r+"]",c+="\x3cbr\x3e-optout plugins : ["+a+"]",d.logInfo(c));b&&x.publish(x.ON_READY,{blueConicClient:w})},e=a.profileId?a.profileId:a.tempId?a.tempId:a.result.id;t?(function(a){this._id=a}.call(t,e),t.getId()&&n.getLevel()||c.call(this,a,e)):(t=new Ea(e),
c.call(this,a,e));n.getLevel()!==n.DO_NOT_TRACK&&t.deleteDntRefusedObjectives()}},deleteProfile:function(a,b){var c=t.getPrivacyLegislation(),e=(new Date).getTime()+ ++l.requestId;l.addBatchRequest(l.DELETE_PROFILE,null,e,this,function(){d.setBcSessionId(null);t=new Ea;n.permissionLevel=n.DO_NOT_TRACK;t._properties.privacy_legislation=c;h&&d.logInfo("profile is deleted");d.doCallback(a,b)})},createProfile:function(a,b){var c=(new Date).getTime()+ ++l.requestId;l.addBatchRequest(l.CREATE_PROFILE,null,
c,this,function(c){t=null;z.clearQueue();this._handleProfileResponse(c,!1);h&&d.logInfo("new profile is created");d.doCallback(a,b,t)})},clearQueue:function(){z.addQueue={};z.setQueue={};z.addSources={};z.setSources={}},updateProfile:function(a,b){if(Fa)b&&z.callbackQueue.push({caller:a,onSuccessCallback:b});else{var c=function(a){for(var b in a)return!1;return!0},e=function(a,b){a===n.DO_NOT_TRACK&&d.setBcSessionId(b.profileId)};n.isPermissionLevelChanged&&n.previousPermissionLevel===n.DO_NOT_TRACK?
function(){n.isPermissionLevelChanged=!1;var c=(new Date).getTime()+ ++l.requestId,g={};g.level=d.ensureArray(n.permissionLevel);g.message=d.ensureArray(n.message);t&&(t.getConsentedObjectives()&&(g.consented_objectives=d.ensureArray(t.getConsentedObjectives())),t.getRefusedObjectives()&&(g.refused_objectives=d.ensureArray(t.getRefusedObjectives())));d.setBcSessionId(null);l.addBatchRequest(l.SET_PERMISSION_LEVEL,g,c,this,function(c){e(n.getLevel()+"",c);z.getProfile(this,function(){if(t)for(var c=
t.getPropertyNames(),e=0;e<c.length;e++){var f=c[e],g=z.replaySources[f];t.setValues(f,t.getValues(f),g)}z.updateProfile(this,function(){w.createEvent("PAGEVIEW",!1,this,function(c){x.publish(x.ON_PERMISSION_LEVEL_CHANGE,{permissionLevel:n.permissionLevel,previousPermissionLevel:n.previousPermissionLevel});d.doCallback(a,b)})});l.submitBatch()});l.submitBatch()});l.submitBatch()}():function(){function f(){ga--;if(0===ga){if(z.callbackQueue&&0<z.callbackQueue.length){for(var c=0;c<z.callbackQueue.length;c++)d.doCallback(z.callbackQueue[c].caller,
z.callbackQueue[c].onSuccessCallback);z.callbackQueue=[]}d.doCallback(a,b)}}var g=z.addQueue,h=z.setQueue,q=z.addSources,m=z.setSources;z.clearQueue();for(var r=d.getPropertiesFromObject(h),k=0,t=r.length;k<t;k++)delete g[r[k]];var u=d.getPropertiesFromObject(g),ga=1;(new Date).getTime();(function(){if(n.isPermissionLevelChanged){var a={};ga++;var b=n.getLevel()+"";a.level=d.ensureArray(b);a.message=d.ensureArray(n.message);n.isPermissionLevelChanged=!1;var c=(new Date).getTime()+ ++l.requestId;l.addBatchRequest(l.SET_PERMISSION_LEVEL,
a,c,this,function(a){f.call(this);e(b,a);x.publish(x.ON_PERMISSION_LEVEL_CHANGE,{permissionLevel:n.permissionLevel,previousPermissionLevel:n.previousPermissionLevel})})}})();(function(){var a=n.pluginOptInHandler&&n.pluginOptInHandler.getAddList(),b=n.propertyOptInHandler&&n.propertyOptInHandler.getAddList(),c={};if(0<a.length||0<b.length)ga++,c.properties=b,c.plugins=a,a=(new Date).getTime()+ ++l.requestId,l.addBatchRequest(l.ADD_OPTIN,c,a,this,f)})();(function(){var a=n.pluginOptInHandler&&n.pluginOptInHandler.getRemoveList(),
b=n.propertyOptInHandler&&n.propertyOptInHandler.getRemoveList(),c={};if(0<a.length||0<b.length)ga++,c.properties=b,c.plugins=a,a=(new Date).getTime()+ ++l.requestId,l.addBatchRequest(l.REMOVE_OPTIN,c,a,this,f)})();(function(){var a=n.pluginOptOutHandler&&n.pluginOptOutHandler.getAddList(),b=n.propertyOptOutHandler&&n.propertyOptOutHandler.getAddList(),c={};if(0<a.length||0<b.length)ga++,c.properties=b,c.plugins=a,a=(new Date).getTime()+ ++l.requestId,l.addBatchRequest(l.ADD_OPTOUT,c,a,this,f)})();
(function(){var a=n.pluginOptOutHandler&&n.pluginOptOutHandler.getRemoveList(),b=n.propertyOptOutHandler&&n.propertyOptOutHandler.getRemoveList(),c={};if(0<a.length||0<b.length)ga++,c.properties=b,c.plugins=a,a=(new Date).getTime()+ ++l.requestId,l.addBatchRequest(l.REMOVE_OPTOUT,c,a,this,f)})();(function(){if(0<r.length){var a={};a.properties=h;c(m)||(a.sources=m);ga++;var b=(new Date).getTime()+ ++l.requestId;l.addBatchRequest(l.SET_PROPERTIES,a,b,this,f)}})();(function(){if(0<u.length){var a={};
a.properties=g;c(q)||(a.sources=q);ga++;var b=(new Date).getTime()+ ++l.requestId;l.addBatchRequest(l.ADD_PROPERTIES,a,b,this,f)}})();f();n.propertyOptOutHandler&&n.propertyOptOutHandler.clear();n.propertyOptInHandler&&n.propertyOptInHandler.clear();n.pluginOptInHandler&&n.pluginOptInHandler.clear();n.pluginOptOutHandler&&n.pluginOptOutHandler.clear()}()}},getProperties:function(a,b,c){a={property:a};var e=(new Date).getTime()+ ++l.requestId;l.addBatchRequest(l.GET_PROPERTIES,a,e,this,function(a){function e(a,
b){b=d.ensureArray(b);this._properties[a]=b}if(a&&a.result&&a.result.properties){a=a.result.properties;for(var f in a){var q=a[f];q&&"function"!=typeof q&&e.call(t,f,q)}}d.doCallback(b,c)})},unsavedLog:function(a,b,c,e,f){var g=c?z.addQueue:z.setQueue;c||(delete z.addQueue[a],delete z.setQueue[a]);g[a]||(g[a]=[]);var g=g[a],h=function(){if(e&&f){var b=null;c?c&&(b=z.addSources):b=z.setSources;b&&(b[f]||(b[f]=[]),-1===w.util.array.indexOfArray(b[f],a)&&b[f].push(a));z.replaySources[a]=f}};if(d.isArray(b)){for(var q=
b.length,m=0;m<q;m++)y.call(g,b[m]);h()}else null!==b&&b!==F?(y.call(g,b),h()):g=null}},Ya={createEvent:function(a,b,c,e){var f=(new Date).getTime()+ ++l.requestId;a=this.getParams(a,b,c);l.addBatchRequest(l.CREATE_TIMELINE_EVENT,a,f,c,function(a){a&&a.result?d.doCallback(c,e,"true"===a.error?new TypeError("Event is not added due to validation errors or invalid event type."):a.result):d.doCallback(c,e,null)});l.submitBatch()},getParams:function(a,b,c){for(var e=d.getPropertiesFromObject(b.data),f=
0;f<e.length;f++){var g=e[f];b.data[g]=d.ensureArray(b.data[g]);if(0<b.data[g].length&&b.data[g][0]instanceof Object&&!d.isDate(b.data[g][0]))for(var h=0;h<b.data[g].length;h++){var q=b.data[g][h];if(q)for(var m=d.getPropertiesFromObject(q),r=0;r<m.length;r++){var l=m[r];q[l]=d.ensureArray(q[l])}}}e=null;c&&c.context&&c.context.getInteractionId&&(e=c.context.getInteractionId());c=null;b.data&&b.data instanceof Object&&!d.isArray(b.data)&&(c=d.ensureArray(w.json.stringify(b.data)));a={referrer:d.ensureArray(b.referrer),
profile:d.ensureArray(b.profile),type:d.ensureArray(a),eventSource:d.ensureArray(e),data:c};b.eventId&&(a.eventId=d.ensureArray(b.eventId));b.timestamp&&(a.timestamp=d.ensureArray(b.timestamp.getTime()));return a}},x={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",publish:function(a,b){if(a&&"string"==typeof a){var c={};c.name=a.toLowerCase();c.context=b;x.eventQueue.push(c);h&&d.logInfo("published event : ["+a+"]");x.handleEvent(c)}},unsubscribe:function(a){for(var b=d.getPropertiesFromObject(x.handlersByEvent),c=0;c<b.length;c++){var e=x.handlersByEvent[b[c]],e=e?e:[];x.handlersByEvent[b[c]]=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&&d.removeItemFromArray(e,e[f])}}},subscribe:function(a,b,c){if(a&&"string"==typeof a&&c&&"function"==typeof c){a=a.toLowerCase();var e=x.handlersByEvent[a],e=e?e:[];x.handlersByEvent[a]=e;var f={};f.handlerObject=b;f.handlerFunction=c;e.push(f);h&&d.logInfo("subscribing to event: ["+a+"]");x.handleQueuedEvents(a,f)}},handleQueuedEvents:function(a,b){for(var c=[],e=0;e<x.eventQueue.length;e++){var f=x.eventQueue[e];f.name==a&&(d.doCallback(b.handlerObject,b.handlerFunction,a,f.context),c.push(f))}for(a=
0;a<c.length;a++)d.removeItemFromArray(x.eventQueue,c[a])},handleEvent:function(a){if(a&&a.name)for(var b=a.name.toLowerCase(),c=x.handlersByEvent[b],c=c?c:[],e=0;e<c.length;e++){var f=c[e];d.doCallback(f.handlerObject,f.handlerFunction,b,a.context)}},create:function(a,b,c){var e=(new Date).getTime()+ ++l.requestId,f={type:d.ensureArray(a.type),referrer:d.ensureArray(a.referrer),profile:d.ensureArray(a.profile)};a.interaction?f.interaction=d.ensureArray(a.interaction):a.timelineContext&&(f.timelineContext=
a.timelineContext,f.timestamp=a.timestamp,f.eventSource=a.eventSource);a.losingInteractions&&(f.losingInteractions=d.ensureArray(a.losingInteractions));l.addBatchRequest(l.CREATE_EVENT,f,e,this,function(a){function e(a){a=d.ensureArray(a);for(var b=a.length,c=0;c<b;c++){var e=a[c];e&&(e=qb(e),y.call(f,e))}}if(a&&a.result){a=a.result;var f=[];a.interactions&&e(a.interactions);a.loggedIn&&"true"===a.loggedIn&&(h=!0);a.channelId&&(hb=a.channelId);a.ipaddress&&(ib=a.ipaddress);if(a.interactionnames){for(var g=
[],r=0;r<K.length;r++)g.push(K[r].id);for(r=0;r<a.interactionnames.length;r++)-1===d.indexOfArray(g,a.interactionnames[r].id)&&K.push(a.interactionnames[r])}if(a.objectives)for(null===ea&&(ea={}),g=0;g<a.objectives.length;g++)-1===d.indexOfArray(ea,a.objectives[g].id)&&(r=a.objectives[g].myId,ea[r]=new wb(r,a.objectives[g].myName,a.objectives[g].myDescription));if(a.connections){g=[];for(r=0;r<Y.length;r++)g.push(Y[r].id);for(r=0;r<a.connections.length;r++){var l=a.connections[r],k=d.indexOfArray(g,
l.id);-1===k?Y.push(l):Y[k]=l}}a.segments&&(g=null,ia&&0<ia.length&&ia.map&&(g=ia.map(function(a){return a.id})),ia=a.segments,null!==g&&(r=ia.map(function(a){return a.id}),r.sort().join(",")!==g.sort().join(",")&&x.publish(x.ON_SEGMENT_CHANGE,{old:g,new:r})));a.pluginversion&&(xa=a.pluginversion);a.libraryversion&&(ya=a.libraryversion);a.templatesversion&&(za=a.templatesversion);a.simulatordate&&(Pa=new Date(a.simulatordate));a.eventtypes&&(g=d.ensureArray(a.eventtypes),x.dynamicTypes=x.dynamicTypes.concat(g));
a.selectedlegislations&&(bb=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);d.doCallback(b,c,f)}else d.doCallback(b,c,null)})}};u.prototype.event={publish:function(a,b){x.publish(a,b)},subscribe:function(a,b,c){x.subscribe(a,b,c)},unsubscribe:function(a){x.unsubscribe(a)},onProfilePermissionChange:x.ON_PERMISSION_LEVEL_CHANGE,
onReady:x.ON_READY,onEventReady:x.ON_EVENT_READY,onUrlChange:x.ON_URL_CHANGE,onBeforePreListeners:x.ON_BEFORE_PRELISTENERS,onBeforeInteractions:x.ON_BEFORE_INTERACTIONS,onSegmentChange:x.ON_SEGMENT_CHANGE};var rb={getRecommendationsEndpoint:function(a,b){var c="https://"+I+"/rest/recommendations",e=d.getZoneId();e&&(c+="/"+e);c+=b?"/"+b:"";a=a||{};b=d.getPropertiesFromObject(a);for(e=0;e<b.length;e++)"request"===b[e]&&"object"===typeof a[b[e]]&&(a[b[e]]=w.json.stringify(a[b[e]]));a=d.objectToUrl(a);
return c+(a?"?"+a:"")},createEvent:function(a,b){l.JSONP.get(this.getRecommendationsEndpoint(a,"stats"),null,function(a){b&&d.doCallback(this,b,a)})},getRecommendations:function(a,b){l.JSONP.get(this.getRecommendationsEndpoint(a),null,function(a){a=new ub(a);b&&d.doCallback(this,b,a)})}};u.prototype.recommendation={getRecommendations:function(a,b){rb.getRecommendations(a,b)},createEvent:function(a,b){rb.createEvent(a,b)}};var S={selectors:[],handlersBySelector:{},handlerId:0,publish:function(a){a&&
"string"===typeof a&&(h&&d.logInfo("published position update event for selector : ["+a+"]"),S.handlePositionUpdateEvent(a))},subscribe:function(a,b,c){if(!a||"string"!==typeof a)throw Error("Selector is empty or not of type string");if(!c||"function"!=typeof c)throw Error("No callback function defined or not a function.");-1===d.indexOfArray(this.selectors,a)&&(d.isArray(a)?this.selectors=this.selectors.concat(a):this.selectors.push(a));var e=this.handlersBySelector[a],e=e?e:[];S.handlersBySelector[a]=
e;var f={};f.id=++this.handlerId;f.handlerObject=b;f.handlerFunction=c;e.push(f);h&&d.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=d.getPropertiesFromObject(this.handlersBySelector),c=0;c<b.length;c++){var e=b[c],f=this.handlersBySelector[e],f=f.filter(function(b){b.id===a&&h&&d.logInfo("found handler with id: ["+a+"]");
return b.id!==a});0===f.length?(delete this.handlersBySelector[e],d.removeItemFromArray(this.selectors,e)):this.handlersBySelector[e]=f}h&&d.logInfo("unsubscribing to position update event for id ["+a+"]")},handlePositionUpdateEvent:function(a){if(a){var b=S.handlersBySelector[a],b=b?b:[];delete S.handlersBySelector[a];d.removeItemFromArray(this.selectors,a);for(var c=0,e=b.length;c<e;c++){var f=b[c];d.doCallback(f.handlerObject,f.handlerFunction,a)}}},getSelectors:function(){return this.selectors}};
u.prototype.position={publish:function(a){S.publish(a)},subscribe:function(a,b,c){return S.subscribe(a,b,c)},unsubscribe:function(a){S.unsubscribe(a)}};u.prototype.objective={getObjectives:function(){return ea},getObjectiveById:function(a){return ea[a]?ea[a]:null}};var d={docReadyCallbacks:[],rxhtmlTag:/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,hash:function(a){for(var b=0,c,d=0;d<a.length;d++)c=a.charCodeAt(d),b=31*b+c,b&=b;for(d=a.length-1;0<=d;d--)c=a.charCodeAt(d),
b=31*b+c,b&=b;return b},doCallback:function(){for(var a=arguments[0],b=arguments[1],c=[],e=2,f=arguments.length;e<f;e++)y.call(c,arguments[e]);if(b&&"function"==typeof b)if(h)b.apply(a,c);else try{b.apply(a,c)}catch(g){d.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(Hb)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!==F&&null!==b){b=b.replace(d.rxhtmlTag,"\x3c$1\x3e\x3c/$2\x3e");var c=a.nodeName?a.nodeName.toLowerCase():a.nodeName;if(-1!==d.indexOfArray("area base br col command embed hr img input keygen link meta param source track wbr".split(" "),c)){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,h&&d.logInfo("setContent replaced void element ["+c+"] with given html")}catch(g){h&&d.logInfo("setContent failed to replace void element ["+c+"] with given html")}}else h&&d.logInfo("could not set inner html for void element ["+c+"] because container was not ready")}else{for(;a.firstChild;)a.removeChild(a.firstChild);try{a.innerHTML=b}catch(g){c=document.createElement(),c.innerHTML=b,a.appendChild(c)}}}},getBcTempId:function(a){return d.getBcId("BCTempID",a)},setBcTempId:function(a,
b,c){d.setBcId("BCTempID",a,b,c)},getBcSessionId:function(a){return d.getBcId("BCSessionID",a)},getBcId:function(a,b){if(N){var c=localStorage.getItem(a);if(c)return c}return b?b[a]:d.getCookie(a)},setBcSessionId:function(a,b){d.setBcId("BCSessionID",a,b)},setBcId:function(a,b,c,e){N&&(b?localStorage.setItem(a,b):localStorage.removeItem(a));d.setCookie(a,b,e);c&&(b?c[a]=b:delete c[a])},bcSessionIdChanged:function(a){if(N){var b=localStorage.getItem("BCSessionID");if(a!==b)return!0}b=d.getCookie("BCSessionID");
return a!==b},setCookie:function(a,b,c){if(pa&&a)if(null===b||b===F)document.cookie=a+"\x3d;expires\x3dThu, 01 Jan 1970 00:00:00 GMT; path\x3d/";else{var e=new Date;null===c||c===F||isNaN(c)?e.setDate(e.getDate()+365):e=0<c?new Date(e.getTime()+parseInt(c)):null;b&&"string"==typeof b&&(b=b.replace(/[\n\r]/g,""));b=a+"\x3d"+encodeURIComponent(b);e&&(b+=";expires\x3d"+e.toUTCString());b+=";path\x3d/";e=document.cookie+b;-1<a.indexOf("BCRevision")&&3E3<e.length?h&&d.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,c={};if(!pa)return c;a=null!==wa&&null===Ha?wa:document.cookie;if(wa!==a)wa=a;else if(null!==Ha)return Ha;a&&-1<a.indexOf("$Version\x3d")&&document.cookie.match(/^\s*\$Version=(?:"1"|1);\s*(.*)/)&&(a=RegExp.$1,b=1);0===b?d.map(a.split(/[,;]/),function(a){a=a.split(/=/);var b=decodeURIComponent(d.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"));c[b]=e?decodeURIComponent(d.trimRight(e)):null}catch(q){}}):d.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;c[a]=b});return Ha=c},getCookie:function(a){return d.getCookies()[a]},ensureArray:function(a){if(d.isArray(a))return a;var b=[];null!==a&&a!==F&&y.call(b,a);return b},
isArray:function(a){return a?Fb?Array.isArray(a):-1==fb.call(a).indexOf("Array")?!1:!0:!1},isDate:function(a){return a&&-1!=fb.call(a).indexOf("Date")&&a.getTime?!0:!1},diffArrays:function(a,b){if(Gb&&gb)return a.filter(function(a){return 0>b.indexOf(a)});var c,d=a.slice();for(a=0;a<d.length;a++)for(c=0;c<b.length;c++)if(d[a]===b[c]){d.splice(a,1);a--;break}return d},removeItemFromArray:function(a,b){if(d.isArray(a))for(var c;-1!==(c=d.indexOfArray(a,b));)a.splice(c,1)},indexOfArray:function(a,b){if(!a||
!d.isArray(a))return-1;if(gb)return a.indexOf(b);for(var c=0,e=a.length;c<e;c++)if(a[c]===b)return c;return-1},mergeArrays:function(a,b){if(d.isArray(a)&&b)if(d.isArray(b)||-1==d.indexOfArray(a,b))for(var c=0,e=b.length;c<e;c++){var f=b[c];-1===d.indexOfArray(a,f)&&y.call(a,f)}else y.call(a,b)},loadScript:function(a,b,c){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),d.doCallback(b,c))};g||(g=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]);g.appendChild(e)},loadCSS:function(a){d.loadCSS.urlMap||(d.loadCSS.urlMap={});d.loadCSS.counter||(d.loadCSS.counter=0);var b=d.loadCSS.urlMap,c=b[a];c||(b[a]="id_"+ ++d.loadCSS.counter);c=b[a];if(document.getElementById(c))h&&d.logInfo("skip loading css ["+a+"]");else{h&&d.logInfo("start loading css ["+a+
"]");var b=document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0],e=document.createElement("link");e.id=c;e.rel="stylesheet";e.type="text/css";e.href=a;b.appendChild(e)}},bindDocumentReady:function(a,b){b&&"function"==typeof b&&(R?d.doCallback(a,b):y.call(d.docReadyCallbacks,function(){d.doCallback(a,b)}))},docReady:function(){if(!R){R=!0;k.blueconicProxy&&l.submitBatch();h&&d.logInfo("[+] document ready event thrown by browser");for(var a=d.docReadyCallbacks,b=a.length,
c=0;c<b;c++)a[c].apply()}},getInteractionParameters:function(a){var b={};if(a){a=d.ensureArray(a.parameters);for(var c=0,e=a.length;c<e;c++){var f=a[c];if(f){for(var g={},h=0,q=f.parameter.length;h<q;h++){var m=f.parameter[h];m&&(g[m.id]=m.value)}b[f.locale]=g}}}return b},getPropertiesFromObject:function(a){if(!a)return[];var b=[],c;for(c in a)ta.call(a,c)&&"function"!=typeof a[c]&&y.call(b,c);return b},getDOMElement:function(a,b){if(!a)return null;"undefined"==typeof b&&(b=d.isCSSSelector(a));return b?
(a=Kb(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;d.isCSSSelector(a)||(a="#"+a);return a},
addCSSToDOM:function(a,b,c){if(a&&0!==a.length){h&&d.logInfo("hide positions  ["+a+"]");for(var e="",f=0,g=a.length;f<g;f++){var l=d.normalizePosition(a[f]);l&&(e=e+l+" {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);c&&0<c&&k.setTimeout(function(){var a=
document.getElementById(b);a&&(a.parentNode.removeChild(a),h&&d.logInfo("timeout ["+c+"] expired; CSS ["+b+"] removed"))},c)}},getBaseURL:function(a){var b=null;Aa&&Aa[a]&&(b=Aa[a]);return b?0==b.indexOf("/blueconic/static/plugins/")?BC_URL+b:b:null},parseJSON:function(a){return a?w.json.parse(a):null},stringifyObject:function(a,b,c){return w.json.stringify(a,b,c)},checkNativeJsonLib:function(){da&&(!Sa||(new Date).getTime()-100)>Sa&&(da=C.isNative(k.JSON.parse,"window.JSON.parse")&&C.isNative(k.JSON.stringify,
"window.JSON.stringify"),Sa=(new Date).getTime());da||null!==oa||xb()},handleProfileId:function(a,b){n.getLevel()!==n.DO_NOT_TRACK&&(d.bcSessionIdChanged(a)&&(h&&d.logInfo("update cookie [BCSessionID] with profile id ["+a+"]"),d.setBcSessionId(a,b)),a&&d.getBcTempId(b)&&(d.setBcTempId(null,b),t&&!t.getId()&&function(a){this._id=a}.call(t,a)))},handleTempProfileId:function(a,b){a&&d.getBcTempId(b)!==a&&d.setBcTempId(a,b&&d.getBcTempId()?b:null,6E5)},log:function(a){W&&console.log("[BC]"+a)},logError:function(a){for(;-1!==
a.indexOf("\x3cbr\x3e");)a=a.replace("\x3cbr\x3e","\n            ");d.log("[ERROR] "+a);W&&console.trace&&(d.log("[ERROR] --stacktrace--"),console.trace(),d.log("[ERROR] --end stacktrace--"))},logWarning:function(a){h&&d.log("[WARNING] "+a)},logInfo:function(a){if(h){for(var b=(new Date).getTime()-Ab;-1!==a.indexOf("\x3cbr\x3e");)a=a.replace("\x3cbr\x3e","\n           ");d.log("[INFO] "+a+" +"+b+" ms")}},logDeprecated:function(a,b){h&&d.log("[DEPRECATED] function ["+a+"] is deprecated. \n                 Please use : "+
b)},formatLocalDate:function(){var a=new Date,b=-a.getTimezoneOffset(),c=0<=b?"+":"-",d=function(a){a=Math.abs(Math.floor(a));return(10>a?"0":"")+a};return a.getFullYear()+"-"+d(a.getMonth()+1)+"-"+d(a.getDate())+"T"+d(a.getHours())+":"+d(a.getMinutes())+":"+d(a.getSeconds())+c+d(b/60)+":"+d(b%60)},getCurrentTime:function(){var a=new Date;return("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)},objectToUrl:function(a){var b="",c;for(c in a){var e=a[c];if(d.isArray(e))for(var f=0;f<e.length;f++)""!==
b&&(b+="\x26"),b+=c+"\x3d"+encodeURIComponent(e[f]);else""!==b&&(b+="\x26"),b+=c+"\x3d"+encodeURIComponent(e)}return b},getZoneId:function(){return N?sessionStorage.getItem("BCZoneID"):d.getCookie("BCZoneID")},handleZoneId:function(a){N?a?sessionStorage.setItem("BCZoneID",a):sessionStorage.removeItem("BCZoneID"):a?d.setCookie("BCZoneID",a,3E5):d.setCookie("BCZoneID",null)}};C.hideAllPositions();var Za;Za=T?u.prototype.fn.getDomainGroup(T):k.blueconicProxy?u.prototype.fn.getDomainGroup(k.websiteHost):
u.prototype.fn.getDomainGroup(document.location.hostname);var l={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:O+"/DG/"+Za+"/rest/rpc/",resourceURL_POST:O+"/DG/"+Za+"/rest/rpc/json",batchRequests:[],_batchTimeoutHandle:null,requestId:0,openRequests:0,_rpcThrottlingRequestCount:0,_rpcThrottlingTimeoutHandle:null,JSONP:function(){function a(a,b){var c=document.createElement("script"),e=!1;c.src=a;c.async=!0;c.onload=c.onreadystatechange=
function(){e||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(e=!0,c.onload=c.onreadystatechange=null,c&&c.parentNode&&c.parentNode.removeChild(c))};c.onerror=function(a){d.handleZoneId();b&&b(a)};f||(f=document.getElementsByTagName("head")[0]);f.appendChild(c)}function b(a){a="";var b=d.getCookies(),c=d.getBcSessionId(b)||"",b=d.getBcTempId(b)||"",e=T?encodeURIComponent(T):"";g.blueconicProxy&&g.bcChannelIdentifier?e=encodeURIComponent(g.bcChannelIdentifier):a+="referer\x3d"+
encodeURIComponent(g.location)+"\x26";if(g.name&&-1<g.name.indexOf("bc_")){var f=g.name;if(f){for(var h=!1,q=f,l=0;l<lb.length;l++){var p=lb[l];-1<f.indexOf(p)&&(q=p,h=!0)}f=h?q:f.substring(f.indexOf("bc_"));a+="mode\x3d"+f+"\x26"}}else if(Q||g.opener)a+="checkCookie\x3dtrue\x26isopener\x3d"+("undefined"!=typeof g.opener&&null!=g.opener)+"\x26";a+="bcsessionid\x3d"+c+"\x26bctempid\x3d"+b+"\x26overruleReferrer\x3d"+e+"\x26time\x3d"+encodeURIComponent(d.formatLocalDate());if(t)for(c=t.getDntRefusedObjectives(),
b=0;b<c.length;b++)a+="\x26bcro\x3d"+encodeURIComponent(c[b]);return a}function c(a,e,f,g,h){var m=(-1===a.indexOf("?")?"?":"")+b(a),q=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+m+"\x26ts\x3d"+(new Date).getTime());if(!q)return d.logWarning("CORS POST request failed, is XMLHttpRequest overruled? Fallback to GET."),g(),!1;q.onload=function(){if(q.responseText){var a=
w.json.parse(q.responseText);!h&&a.location?c(a.location,e,f,g,!0):f(a)}};q.onerror=function(){0<q.status?(d.logWarning("CORS POST request failed."),usePostMethod()&&d.handleZoneId()):d.log("[WARNING] BlueConic request failed, please make sure '"+(T?T:document.location.hostname)+"' is added as a channel (or alias) in BlueConic.");g&&g()};q.onabort=function(a){W&&console.log("CORS request is aborted.",a)};q.ontimeout=function(a){W&&console.log("CORS request has timed-out, 30s exceeded.")};q.send(e);
return!0}var e=Math.floor(1E3*Math.random())+100,f,g=this,h={};return{get:function(c,d,f,l,p){var q=-1===(c||"").indexOf("?")?"?":"\x26";d=d||{};for(var m in d)ta.call(d,m)&&(q+=m+"\x3d"+d[m]+"\x26");var q=q+b(c),r="bc_json"+ ++e;g[r]=function(a){f(a);try{delete g[r]}catch(Lb){}g[r]=null};a(c+q+"\x26"+(l||h.callbackName||"callback")+"\x3d"+r,p);return r},post:c,init:function(a){h=a}}}(),resetThrottlingCounter:function(a){l._rpcThrottlingRequestCount=0;a&&l._rpcThrottlingTimeoutHandle&&(clearInterval(l._rpcThrottlingTimeoutHandle),
l._rpcThrottlingTimeoutHandle=null)},handleRevisions:function(){var a=null,b;if(N){b=[];for(var c=0;c<localStorage.length;c++)b.push(localStorage.key(c))}else a=d.getCookies(),b=d.getPropertiesFromObject(a);for(var c=0,e=b.length;c<e;c++){var f=b[c];if(f&&-1!==f.indexOf("BCRevision")){var g;N?g=localStorage.getItem(f):a&&(g=a[f]);var p=d.parseJSON(g);if(p){var q=p.method,m=p.param,p=p.requestId;q&&m&&p&&(h&&d.logInfo("scheduled revision RPC for requestId ["+p+"] with method : ["+q+"]"),m.source=["backlog"],
l.addBatchRequest(q,m,p,null,null),N&&localStorage.getItem(f)?localStorage.removeItem(f):d.setCookie(f,null))}}}},RPCTask:function(a,b,c,e,f){this._id=a+"";this._param=b;this._method=c;this._caller=e;this._callBack=f;this._isFinished=this._isQueued=!1;this._revCookie=this._rpc=null;this.getContentLength=function(){return encodeURIComponent(d.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;d.handleZoneId(a.zoneId);this.removeRevisionCookie();d.doCallback(this._caller,this._callBack,a)};this.getRPC=function(){this._rpc||(this._rpc={method:encodeURIComponent(this._method),params:d.stringifyObject(this._param),
id:encodeURIComponent(this.getId())});return this._rpc};this.setRevisionCookie=function(){if(!(0===this._id.indexOf("rev")||n.getLevel()===n.DO_NOT_TRACK||this.getContentLength()>va||this._method!==l.SET_PROPERTIES&&this._method!==l.ADD_PROPERTIES&&this._method!==l.SEND_MAIL&&this._method!==l.CREATE_EVENT&&this._method!==l.CREATE_TIMELINE_EVENT||this._method===l.CREATE_EVENT&&this._param&&this._param.type&&"PAGEVIEW"===this._param.type[0])){var a="rev_"+this._id,b=d.stringifyObject({method:this._method,
param:this._param,requestId:a}),c="BCRevision_"+this._id,e=function(){d.setCookie(c,b,0);var e=d.getCookie(c);if(!e){for(var e=d.getCookies(),e=d.getPropertiesFromObject(e),f=0,g=e.length;f<g;f++){var m=e[f];0===m.indexOf("BCRevision")&&d.setCookie(m,null)}d.setCookie(c,b,0);e=d.getCookie(c);if(!e){h&&d.logInfo("could not store revision cookie ["+c+"]");return}}h&&d.logInfo("revision cookie with name ["+c+"] with revision ["+a+"] stored")};if(N){try{localStorage.setItem(c,b)}catch(r){h&&d.logInfo("adding item ["+
c+"] to localStorage failed, fallback to cookie.")}localStorage.getItem(c)?h&&d.logInfo("revision with name ["+c+"] with revision ["+a+"] is stored in localStorage."):e()}else e();this._revCookie=c}};this.removeRevisionCookie=function(){this._revCookie&&(N&&localStorage.getItem(this._revCookie)?(h&&d.logInfo("revision with name ["+this._revCookie+"] removed from localStorage"),localStorage.removeItem(this._revCookie)):(h&&d.logInfo("revision cookie with name ["+this._revCookie+"] removed"),d.setCookie(this._revCookie,
null)))}},RemoteRequest:function(a,b,c,e,f){this._caller=b;this._onSuccess=c;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 l.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,c=this._tasks.length;b<c;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(ta.call(e,g))if(a+="\x3cbr\x3e  -"+g,(f=e[g])&&0!==f.length)if(d.isArray(f))for(var h=0,p=f.length;h<p;h++){var k=f[h];if(""===k)k="(empty string)";else if(null==k||k==F)k="(null or undefined)";a+="\x3cbr\x3e    "+k}else f&&(a+="\x3cbr\x3e    "+
f);else a+="\x3cbr\x3e    (null or undefined)"}return a};b=function(a){for(var b=this._tasks,c=0,e=b.length;c<e;c++)if(!b[c].isFinished())return;this._isFinished=!0;h&&d.logInfo(this.toString());d.doCallback(this._caller,this._onSuccess,a)};c=new l.RPCTask(this._requestId,this._parameter,this._method,this,b);if(c.getContentLength()<=va)y.call(this._tasks,c);else switch(a){case l.ADD_PROPERTIES:case l.SET_PROPERTIES:c=function(a,b,c){for(var e=[],f=function(a,b){this.properties[a]=d.ensureArray(b)},
g=function(a){try{delete this.properties[a]}catch(G){}},h=function(){return 1===d.getPropertiesFromObject(this.properties).length||(new l.RPCTask(a,this,b,null,null)).getContentLength()<=va?!0:!1},m=d.getPropertiesFromObject(c.properties),q={properties:{}},p=0,k=m.length;p<k;p++){var r=m[p],n=c.properties[r];f.call(q,r,n);h.call(q)||(g.call(q,r),y.call(e,q),q={properties:{}},f.call(q,r,n))}y.call(e,q);return e}(this._requestId,this._method,this._parameter);e=0;for(var g=c.length;e<g;e++){var p=new l.RPCTask(f+
"-"+e,c[e],a,this,b);y.call(this._tasks,p)}break;default:y.call(this._tasks,c)}},addBatchRequest:function(a,b,c,d,f){a=new l.RemoteRequest(a,d,f,b,c);y.call(l.batchRequests,a)},submitBatchTimeout:function(a){l._batchTimeoutHandle&&clearTimeout(l._batchTimeoutHandle);l._batchTimeoutHandle=setTimeout(function(){l._batchTimeoutHandle=null;l.batchRequests&&0!==l.batchRequests.length&&l.submitBatch()},a)},submitBatch:function(){if(!k.blueconicProxy||R){var a=function(){var a=Db;if(a)switch(zb){case "FORCE_GET":a=
!1;break;case "POST_NATIVE_ONLY":a=XMLHttpRequest.prototype&&C.isNative(XMLHttpRequest.prototype.send,"XMLHttpRequest.prototype.send")}return a}(),b=function(a){for(var c=[],e=0,g=0,l=a.length;g<l;g++)for(var q=a[g].getTasks(),p=0,k=q.length;p<k;p++){var n=q[p];if(!n.isQueued()){var t=parseInt(n.getContentLength());if(e+t<=va)n.queued(),e+=t,y.call(c,n);else{0===c.length&&(n.queued(),e+=t,y.call(c,n),h&&d.logInfo("RPC task with id ["+n.getId()+"] method ["+n.getMethod()+" ] contains a profile property value which could be too large too handle.\x3cbr\x3e The size of the RPC is ["+
t+"] while the max size is ["+va+"]"));f.call(this,c,function(){b.call(this,a)});return}}}0<c.length&&f.call(this,c,null)},c=function(a,b,c){if(a){a=d.ensureArray(a);for(var e=d.getCookies(),f=0;f<a.length;f++){var g=a[f];if(g){e.BCTempID&&g.profileId&&(Na=!0);d.handleTempProfileId(g.tempId,e);d.handleProfileId(g.profileId,e);for(var h=0;h<b.length;h++){var m=b[h];m.getId()===g.id&&m.finished(g)}}}}else for(a=0;a<b.length;a++)b[a].finished();c&&"function"===typeof c&&c.call(this);l.openRequests--},
e=function(a){if(!d.getZoneId())return a;a&&"/"!==a[a.length-1]&&(a+="/");return a+=d.getZoneId()},f=function(b,f){if(20<=l.openRequests)d.logWarning("Too many open RPC requests (20), task will not be processed");else if(100<=l._rpcThrottlingRequestCount)d.logWarning("Too many RPC requests (100) done in this timeframe (1 minute), task will not be processed.");else{null===l._rpcThrottlingTimeoutHandle&&(l._rpcThrottlingTimeoutHandle=setInterval(function(){l.resetThrottlingCounter(!1)},6E4));l._rpcThrottlingRequestCount++;
var g=function(a){var g={requests:encodeURIComponent(d.stringifyObject(a))};g.requests&&"null"!==g.requests&&(l.openRequests++,l.JSONP.get(e(l.resourceURL_GET),g,function(a){c(a,b,f)},null,function(){l.JSONP.get(e(l.resourceURL_GET),g,function(a){c(a,b,f)},null,function(){l.openRequests--})}))};if(t&&t.getId()&&!d.getBcSessionId()&&!d.getBcTempId()){t=new Ea;z.clearQueue();for(var h=[],m=0;m<b.length;m++){var p=b[m];-1<[l.ADD_PROPERTIES,l.SET_PROPERTIES].indexOf(p.getMethod())&&(p.finished({}),h.push(p))}for(m=
0;m<h.length;m++)d.removeItemFromArray(b,h[m]);if(0===b.length){f&&"function"===typeof f&&f.call(this);return}}for(var k=[],h=0;h<b.length;h++)y.call(k,b[h].getRPC()),b[h].setRevisionCookie();a?(l.openRequests++,l.JSONP.post(e(l.resourceURL_POST),d.stringifyObject(k),function(a){c(a,b,f)},function(){l.openRequests--;d.logWarning("CORS POST request failed, fallback on JSONP GET request.");g(k)})):g(k)}},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(),y.call(b,e[f]));return b},p=l.batchRequests;a?(g=g.call(this,p),0<g.length&&f.call(this,g)):b.call(this,p);l.batchRequests=[]}}};(function(){if("undefined"!==typeof bcSubscriptions&&d.isArray(bcSubscriptions)){for(var a=0,b=bcSubscriptions.length;a<b;a++){var c=bcSubscriptions[a];if(!d.isArray(c)||2!==c.length)return;x.subscribe(c[0],null,c[1])}bcSubscriptions={push:function(a){d.isArray(a)&&2===a.length&&x.subscribe(a[0],null,a[1])}}}})();(function(){if("complete"===document.readyState||
"interactive"===document.readyState)d.docReady();else if(document.addEventListener)document.addEventListener("readystatechange",function(){d.docReady()},!1),document.addEventListener("DOMContentLoaded",function(){d.docReady()},!1),k.addEventListener("load",function(){d.docReady()},!1);else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){d.docReady()});k.attachEvent("onload",function(){d.docReady()});var a=!1;try{a=null==k.frameElement}catch(b){}document.documentElement.doScroll&&
a&&d.docReady()}})();k.Sizzle&&(k.bcTempSizzle=k.Sizzle);(function(a){function b(a,b,c,d){var e,v,f,g,B,A=b&&b.ownerDocument,h=b?b.nodeType:9;c=c||[];if("string"!==typeof a||!a||1!==h&&9!==h&&11!==h)return c;if(!d&&((b?b.ownerDocument||b:Z)!==E&&M(b),b=b||E,aa)){if(11!==h&&(g=Ha.exec(a)))if(e=g[1])if(9===h)if(v=b.getElementById(e)){if(v.id===e)return c.push(v),c}else return c;else{if(A&&(v=A.getElementById(e))&&W(b,v)&&v.id===e)return c.push(v),c}else{if(g[2])return qa.apply(c,b.getElementsByTagName(a)),
c;if((e=g[3])&&G.getElementsByClassName&&b.getElementsByClassName)return qa.apply(c,b.getElementsByClassName(e)),c}if(!(!G.qsa||ca[a+" "]||P&&P.test(a))){if(1!==h)A=b,B=a;else if("object"!==b.nodeName.toLowerCase()){(f=b.getAttribute("id"))?f=f.replace(xa,ya):b.setAttribute("id",f=H);v=Q(a);for(e=v.length;e--;)v[e]="#"+f+" "+w(v[e]);B=v.join(",");A=pa.test(a)&&t(b.parentNode)||b}if(B)try{return qa.apply(c,A.querySelectorAll(B)),c}catch(Mb){ca(a)}finally{f===H&&b.removeAttribute("id")}}}return Y(a.replace(da,
"$1"),b,c,d)}function c(){function a(c,d){b.push(c+" ")>D.cacheLength&&delete a[b.shift()];return a[c+" "]=d}var b=[];return a}function d(a){a[H]=!0;return a}function f(a){var b=E.createElement("fieldset");try{return!!a(b)}catch(B){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function g(a,b){a=a.split("|");for(var c=a.length;c--;)D.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 l(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function m(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function k(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&&Ia(b)===a:b.disabled===a:"label"in b?b.disabled===a:!1}}function n(a){return d(function(b){b=
+b;return d(function(c,d){for(var e,f=a([],c.length,b),v=f.length;v--;)c[e=f[v]]&&(c[e]=!(d[e]=c[e]))})})}function t(a){return a&&"undefined"!==typeof a.getElementsByTagName&&a}function u(){}function w(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,v=c&&"parentNode"===f,g=ia++;return b.first?function(b,c,e){for(;b=b[d];)if(1===b.nodeType||v)return a(b,c,e);return!1}:function(b,c,B){var h,A,L=[la,g];if(B)for(;b=b[d];){if((1===b.nodeType||
v)&&a(b,c,B))return!0}else for(;b=b[d];)if(1===b.nodeType||v)if(A=b[H]||(b[H]={}),A=A[b.uniqueID]||(A[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((h=A[f])&&h[0]===la&&h[1]===g)return L[2]=h[2];A[f]=L;if(L[2]=a(b,c,B))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 y(a,b,c,d,e){for(var f,v=[],g=0,B=a.length,h=null!=b;g<B;g++)if(f=a[g])if(!c||c(f,d,e))v.push(f),h&&b.push(g);return v}function C(a,
c,e,f,g,h){f&&!f[H]&&(f=C(f));g&&!g[H]&&(g=C(g,h));return d(function(d,v,B,h){var A,L,l=[],m=[],p=v.length,k;if(!(k=d)){k=c||"*";for(var n=B.nodeType?[B]:B,q=[],r=0,$a=n.length;r<$a;r++)b(k,n[r],q);k=q}k=!a||!d&&c?k:y(k,l,a,B,h);n=e?g||(d?a:p||f)?[]:v:k;e&&e(k,n,B,h);if(f)for(A=y(n,m),f(A,[],B,h),B=A.length;B--;)if(L=A[B])n[m[B]]=!(k[m[B]]=L);if(d){if(g||a){if(g){A=[];for(B=n.length;B--;)(L=n[B])&&A.push(k[B]=L);g(null,n=[],A,h)}for(B=n.length;B--;)(L=n[B])&&-1<(A=g?Ca(d,L):l[B])&&(d[A]=!(v[A]=L))}}else n=
y(n===v?n.splice(p,n.length):n),g?g(null,v,n,h):qa.apply(v,n)})}function I(a){var b,c,d,e=a.length,f=D.relative[a[0].type];c=f||D.relative[" "];for(var g=f?1:0,v=x(function(a){return a===b},c,!0),h=x(function(a){return-1<Ca(b,a)},c,!0),l=[function(a,c,d){a=!f&&(d||c!==U)||((b=c).nodeType?v(a,c,d):h(a,c,d));b=null;return a}];g<e;g++)if(c=D.relative[a[g].type])l=[x(z(l),c)];else{c=D.filter[a[g].type].apply(null,a[g].matches);if(c[H]){for(d=++g;d<e&&!D.relative[a[d].type];d++);return C(1<g&&z(l),1<g&&
w(a.slice(0,g-1).concat({value:" "===a[g-2].type?"*":""})).replace(da,"$1"),c,g<d&&I(a.slice(g,d)),d<e&&I(a=a.slice(d)),d<e&&w(a))}l.push(c)}return z(l)}function N(a,c){var e=0<c.length,f=0<a.length,g=function(d,g,v,B,h){var A,l,L,m=0,k="0",n=d&&[],p=[],q=U,r=d||f&&D.find.TAG("*",h),t=la+=null==q?1:Math.random()||.1,$a=r.length;for(h&&(U=g===E||g||h);k!==$a&&null!=(A=r[k]);k++){if(f&&A){l=0;g||A.ownerDocument===E||(M(A),v=!aa);for(;L=a[l++];)if(L(A,g||E,v)){B.push(A);break}h&&(la=t)}e&&((A=!L&&A)&&
m--,d&&n.push(A))}m+=k;if(e&&k!==m){for(l=0;L=c[l++];)L(n,p,g,v);if(d){if(0<m)for(;k--;)n[k]||p[k]||(p[k]=sa.call(B));p=y(p)}qa.apply(B,p);h&&!d&&0<p.length&&1<m+c.length&&b.uniqueSort(B)}h&&(la=t,U=q);return n};return e?d(g):g}var J,G,D,O,T,Q,V,Y,U,K,S,M,E,ba,aa,P,R,X,W,H="sizzle"+1*new Date,Z=a.document,la=0,ia=0,ea=c(),ja=c(),ka=c(),ca=c(),fa=function(a,b){a===b&&(S=!0);return 0},ra={}.hasOwnProperty,Da=[],sa=Da.pop,ta=Da.push,qa=Da.push,oa=Da.slice,Ca=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===
b)return c;return-1},ua=/[\x20\t\r\n\f]+/g,da=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,va=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,wa=/^[\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]*\])*)|.*)\)|)/,
Ea=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,ha={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},Fa=/^(?:input|select|textarea|button)$/i,Ga=/^h\d$/i,La=
/^[^{]+\{\s*\[native \w/,Ha=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,pa=/[+~]/,ma=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,na=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)},xa=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ya=function(a,b){return b?"\x00"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},za=function(){M()},Ia=x(function(a){return!0===a.disabled&&"fieldset"===
a.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{qa.apply(Da=oa.call(Z.childNodes),Z.childNodes),Da[Z.childNodes.length].nodeType}catch(v){qa={apply:Da.length?function(a,b){ta.apply(a,oa.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}G=b.support={};T=b.isXML=function(a){return(a=a&&(a.ownerDocument||a).documentElement)?"HTML"!==a.nodeName:!1};M=b.setDocument=function(a){var b;a=a?a.ownerDocument||a:Z;if(a===E||9!==a.nodeType||!a.documentElement)return E;
E=a;ba=E.documentElement;aa=!T(E);Z!==E&&(b=E.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener("unload",za,!1):b.attachEvent&&b.attachEvent("onunload",za));G.attributes=f(function(a){a.className="i";return!a.getAttribute("className")});G.getElementsByTagName=f(function(a){a.appendChild(E.createComment(""));return!a.getElementsByTagName("*").length});G.getElementsByClassName=La.test(E.getElementsByClassName);G.getById=f(function(a){ba.appendChild(a).id=H;return!E.getElementsByName||
!E.getElementsByName(H).length});G.getById?(D.filter.ID=function(a){var b=a.replace(ma,na);return function(a){return a.getAttribute("id")===b}},D.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&aa)return(a=b.getElementById(a))?[a]:[]}):(D.filter.ID=function(a){var b=a.replace(ma,na);return function(a){return(a="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===b}},D.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&aa){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[]}});D.find.TAG=G.getElementsByTagName?function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a);if(G.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};D.find.CLASS=G.getElementsByClassName&&
function(a,b){if("undefined"!==typeof b.getElementsByClassName&&aa)return b.getElementsByClassName(a)};R=[];P=[];if(G.qsa=La.test(E.querySelectorAll))f(function(a){ba.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&&P.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll("[selected]").length||P.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||P.push("~\x3d");a.querySelectorAll(":checked").length||P.push(":checked");a.querySelectorAll("a#"+H+"+*").length||P.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=E.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name\x3dd]").length&&P.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");
2!==a.querySelectorAll(":enabled").length&&P.push(":enabled",":disabled");ba.appendChild(a).disabled=!0;2!==a.querySelectorAll(":disabled").length&&P.push(":enabled",":disabled");a.querySelectorAll("*,:x");P.push(",.*:")});(G.matchesSelector=La.test(X=ba.matches||ba.webkitMatchesSelector||ba.mozMatchesSelector||ba.oMatchesSelector||ba.msMatchesSelector))&&f(function(a){G.disconnectedMatch=X.call(a,"*");X.call(a,"[s!\x3d'']:x");R.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]*\\])*)|.*)\\)|)")});
P=P.length&&new RegExp(P.join("|"));R=R.length&&new RegExp(R.join("|"));W=(b=La.test(ba.compareDocumentPosition))||La.test(ba.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};fa=b?function(a,b){if(a===b)return S=!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||!G.sortDetached&&b.compareDocumentPosition(a)===c?a===E||a.ownerDocument===Z&&W(Z,a)?-1:b===E||b.ownerDocument===Z&&W(Z,b)?1:K?Ca(K,a)-Ca(K,b):0:c&4?-1:1}:function(a,b){if(a===b)return S=!0,0;var c=0,d=a.parentNode,e=b.parentNode,f=[a],g=[b];if(!d||!e)return a===E?-1:b===E?1:d?-1:e?1:K?Ca(K,a)-Ca(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]===Z?-1:g[c]===Z?1:0};return E};b.matches=function(a,c){return b(a,null,null,c)};b.matchesSelector=function(a,c){(a.ownerDocument||a)!==E&&M(a);c=c.replace(Aa,"\x3d'$1']");if(!(!G.matchesSelector||!aa||ca[c+" "]||R&&R.test(c)||P&&P.test(c)))try{var d=X.call(a,c);if(d||G.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(L){ca(c)}return 0<b(c,E,null,[a]).length};b.contains=function(a,b){(a.ownerDocument||a)!==E&&M(a);return W(a,b)};
b.attr=function(a,b){(a.ownerDocument||a)!==E&&M(a);var c=D.attrHandle[b.toLowerCase()],c=c&&ra.call(D.attrHandle,b.toLowerCase())?c(a,b,!aa):F;return c!==F?c:G.attributes||!aa?a.getAttribute(b):(c=a.getAttributeNode(b))&&c.specified?c.value:null};b.escape=function(a){return(a+"").replace(xa,ya)};b.error=function(a){throw Error("Syntax error, unrecognized expression: "+a);};b.uniqueSort=function(a){var b,c=[],d=0,e=0;S=!G.detectDuplicates;K=!G.sortStable&&a.slice(0);a.sort(fa);if(S){for(;b=a[e++];)b===
a[e]&&(d=c.push(e));for(;d--;)a.splice(c[d],1)}K=null;return a};O=b.getText=function(a){var b,c="",d=0;b=a.nodeType;if(!b)for(;b=a[d++];)c+=O(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+=O(a)}else if(3===b||4===b)return a.nodeValue;return c};D=b.selectors={cacheLength:50,createPseudo:d,match:ha,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(ma,na);a[3]=(a[3]||a[4]||a[5]||"").replace(ma,na);"~\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(ha.CHILD.test(a[0]))return null;a[3]?a[2]=a[4]||a[5]||"":c&&Ba.test(c)&&
(b=Q(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(ma,na).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=ea[a+" "];return b||(b=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+a+"([\\x20\\t\\r\\n\\f]|$)"),ea(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(ua," ")+" ").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,l){var v,m,k,n,p;c=f!==g?"nextSibling":"previousSibling";var A=b.parentNode,B=h&&b.nodeName.toLowerCase();l=!l&&!h;v=!1;if(A){if(f){for(;c;){for(k=b;k=k[c];)if(h?k.nodeName.toLowerCase()===B:1===k.nodeType)return!1;p=c="only"===a&&!p&&"nextSibling"}return!0}p=[g?A.firstChild:A.lastChild];if(g&&l)for(k=A,m=k[H]||(k[H]={}),m=m[k.uniqueID]||(m[k.uniqueID]={}),v=m[a]||[],v=(n=v[0]===la&&v[1])&&v[2],k=n&&A.childNodes[n];k=++n&&k&&k[c]||(v=n=0)||p.pop();){if(1===k.nodeType&&++v&&k===b){m[a]=
[la,n,v];break}}else if(l&&(k=b,m=k[H]||(k[H]={}),m=m[k.uniqueID]||(m[k.uniqueID]={}),v=m[a]||[],v=n=v[0]===la&&v[1]),!1===v)for(;(k=++n&&k&&k[c]||(v=n=0)||p.pop())&&((h?k.nodeName.toLowerCase()!==B:1!==k.nodeType)||!++v||(l&&(m=k[H]||(k[H]={}),m=m[k.uniqueID]||(m[k.uniqueID]={}),m[a]=[la,v]),k!==b)););v-=e;return v===d||0===v%d&&0<=v/d}}},PSEUDO:function(a,c){var e,f=D.pseudos[a]||D.setFilters[a.toLowerCase()]||b.error("unsupported pseudo: "+a);return f[H]?f(c):1<f.length?(e=[a,a,"",c],D.setFilters.hasOwnProperty(a.toLowerCase())?
d(function(a,b){for(var d,e=f(a,c),g=e.length;g--;)d=Ca(a,e[g]),a[d]=!(b[d]=e[g])}):function(a){return f(a,0,e)}):f}},pseudos:{not:d(function(a){var b=[],c=[],e=V(a.replace(da,"$1"));return e[H]?d(function(a,b,c,d){d=e(a,null,d,[]);for(var f=a.length;f--;)if(c=d[f])a[f]=!(b[f]=c)}):function(a,d,f){b[0]=a;e(b,null,f,c);b[0]=null;return!c.pop()}}),has:d(function(a){return function(c){return 0<b(a,c).length}}),contains:d(function(a){a=a.replace(ma,na);return function(b){return-1<(b.textContent||b.innerText||
O(b)).indexOf(a)}}),lang:d(function(a){Ea.test(a||"")||b.error("unsupported lang: "+a);a=a.replace(ma,na).toLowerCase();return function(b){var c;do if(c=aa?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===ba},focus:function(a){return a===E.activeElement&&(!E.hasFocus||E.hasFocus())&&
!!(a.type||a.href||~a.tabIndex)},enabled:k(!1),disabled:k(!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!D.pseudos.empty(a)},header:function(a){return Ga.test(a.nodeName)},input:function(a){return Fa.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:n(function(){return[0]}),last:n(function(a,b){return[b-1]}),eq:n(function(a,b,c){return[0>c?c+b:c]}),even:n(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:n(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:n(function(a,b,c){for(b=0>c?c+b:c;0<=--b;)a.push(b);
return a}),gt:n(function(a,b,c){for(c=0>c?c+b:c;++c<b;)a.push(c);return a})}};D.pseudos.nth=D.pseudos.eq;for(J in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})D.pseudos[J]=l(J);for(J in{submit:!0,reset:!0})D.pseudos[J]=m(J);u.prototype=D.filters=D.pseudos;D.setFilters=new u;Q=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=D.preFilter;h;){if(!d||(e=va.exec(h)))e&&(h=h.slice(e[0].length)||h),k.push(f=[]);d=!1;if(e=wa.exec(h))d=e.shift(),f.push({value:d,
type:e[0].replace(da," ")}),h=h.slice(d.length);for(g in D.filter)!(e=ha[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)};V=b.compile=function(a,b){var c,d=[],e=[],f=ka[a+" "];if(!f){b||(b=Q(a));for(c=b.length;c--;)f=I(b[c]),f[H]?d.push(f):e.push(f);f=ka(a,N(e,d));f.selector=a}return f};Y=b.select=function(a,b,c,d){var e,f,g,h,k="function"===typeof a&&a,l=!d&&Q(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&&aa&&D.relative[f[1].type]){b=(D.find.ID(g.matches[0].replace(ma,na),b)||[])[0];if(!b)return c;k&&(b=b.parentNode);a=a.slice(f.shift().value.length)}for(e=ha.needsContext.test(a)?0:f.length;e--;){g=f[e];if(D.relative[h=g.type])break;if(h=D.find[h])if(d=h(g.matches[0].replace(ma,na),pa.test(f[0].type)&&t(b.parentNode)||b)){f.splice(e,1);a=d.length&&w(f);if(!a)return qa.apply(c,d),c;break}}}(k||V(a,l))(d,b,!aa,
c,!b||pa.test(a)&&t(b.parentNode)||b);return c};G.sortStable=H.split("").sort(fa).join("")===H;G.detectDuplicates=!!S;M();G.sortDetached=f(function(a){return a.compareDocumentPosition(E.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)});G.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 Ja=a.Sizzle;b.noConflict=function(){a.Sizzle===b&&(a.Sizzle=
Ja);return b};a.Sizzle=b})(k);var Kb=k.Sizzle;try{k.bcTempSizzle?(k.Sizzle=k.bcTempSizzle,delete k.bcTempSizzle):delete k.Sizzle}catch(a){}var w=k.blueConicClient=C.getBlueConicClient();w.fn.setRequestInfo({});(function(){var a=function(){C.publishPlainEventAndCallHook("onBlueConicLoaded");x.publish(x.ON_BEFORE_PRELISTENERS);C.checkPreListeners();var a=!1,b=!1;h&&d.logInfo("start pageview event");w.createEvent("PAGEVIEW",null,this,function(c){if(!c||0==c.length){h&&d.logInfo("the pageview event did not return any interacion, check if the channel is configured");
var e=document.getElementById(Va);e&&(e.parentNode.removeChild(e),h&&d.logInfo("removed css for phase 1"))}h&&d.logInfo("[+] finished pageview event ["+c.length+" interactions to run]");ca=c;a=!0;h&&d.logInfo("start hide positions mechanism for positions claimed by the configured interactions");c=[];for(var e=0,f=ca.length;e<f;e++){var l=ca[e].getPosition();l&&y.call(c,l)}d.addCSSToDOM(c,kb,2E3);k.setTimeout(function(){var a=document.getElementById(Va);a&&a.parentNode.removeChild(a)},1);b=!1;h&&d.logInfo("start plugin download from url [/plugin/plugin] with version ["+
xa+"]");c=xa?O+"/plugin/plugin/"+xa:O+"/plugin/plugin";Q&&(c+="_e");d.loadScript(c,this,function(){h&&d.logInfo("finished plugin download");b=!0;b&&a&&(t||d.log("Profile is not initialized"),Ma(ca,!0))})})},b=d.getBcSessionId();b||(b=null);t=new Ea(b);Q?l.JSONP.get(BC_URL+"/frontend/e",null,function(b){b||(Q=!1,O=cb());Q&&k.name&&-1<k.name.indexOf("bc_simulator")?d.loadScript(O+"/simulatordevice",null,function(){a()}):a()}):a()})()}})(window,this.bcVerbose,this.bcChannelIdentifier,this.bcRpcMode,
window.blueconicProxy?window.blueconicProxyHost:this.bcHostname,getDG()||{},getP()||{},window.blueConicPreListeners);})();