(function(){var getDG=function(){var x={};return x;};var getP=function(){var x={};return x;};(function(k){window.blueConicPreListeners=[];(function(){var k=!1,va=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.BCClass=function(){};BCClass.extend=function(M){function O(){!k&&this.init&&this.init.apply(this,arguments)}var Z=this.prototype;k=!0;var P=new this;k=!1;for(var N in M)P[N]="function"==typeof M[N]&&"function"==typeof Z[N]&&va.test(M[N])?function(k,N){return function(){var P=this._super;this._super=Z[k];var A=N.apply(this,arguments);this._super=P;return A}}(N,M[N]):M[N];O.prototype= P;O.constructor=O;O.extend=arguments.callee;return O}})();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",TOTALVISITTIME:"totalvisittime",RESOLUTION:"resolution",CURRENTRESOLUTION:"currentresolution",CURRENTSCREENWIDTH:"currentscreenwidth",CURRENTSCREENHEIGHT:"currentscreenheight",ORIGIN_TYPE:"origin_type",ORIGIN_SOURCE:"origin_source",ORIGIN_DETAIL:"origin_detail",DEVICETYPE:"devicetype",RECEIVED_FROM_SYSTEM:"received_from_system",RECEIVED_FROM_CONNECTION:"received_from_connection",MOBILE_APP_ID:"mobile_app_id",MOBILE_APP_NAMEVERSION:"mobile_app_nameversion",LANGUAGE:"language",KEYWORDS:"keywords",CURRENTKEYWORDS:"currentkeywords",CURRENT_UTM_SOURCE:"current_utm_source",CURRENT_UTM_MEDIUM:"current_utm_medium",CURRENT_UTM_TERM:"current_utm_term",CURRENT_UTM_CONTENT:"current_utm_content",CURRENT_UTM_CAMPAIGN:"current_utm_campaign",UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content",UTM_CAMPAIGN:"utm_campaign"},PROFILE_PROPERTIES_FOR_CHANNEL:{},init:function(e,t){this.blueConicClient=e,this.context=t,this._profile=e.profile.getProfile(),this._channelId=e.getChannelId(),this._referrer=document.referrer,this._hostName=window.location.hostname,this._currentUrl=window.location.href,this._domain=document.domain,this._userLanguage=window.navigator.userLanguage,this._systemLanguage=navigator.systemLanguage,this._language=window.navigator.language,this.PROFILE_PROPERTIES_FOR_CHANNEL={CLICKCOUNT:this.PROFILE_PROPERTIES.CLICKCOUNT+"_"+this._channelId,VISITS:this.PROFILE_PROPERTIES.VISITS+"_"+this._channelId,VISITCLICKS:this.PROFILE_PROPERTIES.VISITCLICKS+"_"+this._channelId,LASTVISITDATE:this.PROFILE_PROPERTIES.LASTVISITDATE+"_"+this._channelId}},onPrepare:function(){this._profile&&(this._setLanguageProperties(),this._setResolutionProperties(),this._setReferrerProperties(),this._setCampaignProperties())},onLoad:function(){this._profile&&(this._setReferrerHostOnLoad(),this._setVisitProperties(),this._setOriginProperties(),this.blueConicClient.profile.updateProfile())},getPreloadProperties:function(){return[this.PROFILE_PROPERTIES.CLICKCOUNT,this.PROFILE_PROPERTIES.VISITS,this.PROFILE_PROPERTIES.VISITCLICKS,this.PROFILE_PROPERTIES.LASTVISITDATE,this.PROFILE_PROPERTIES.VISITEDSITES,this.PROFILE_PROPERTIES.ENTRYPAGE,this.PROFILE_PROPERTIES.HOSTENTRYPAGE,this.PROFILE_PROPERTIES.HOSTAVERAGETIME,this.PROFILE_PROPERTIES.LASTREFERRERAVERAGE,this.PROFILE_PROPERTIES.AVERAGETIME,this.PROFILE_PROPERTIES.TOTALVISITTIME,this.PROFILE_PROPERTIES.RESOLUTION,this.PROFILE_PROPERTIES.DEVICETYPE,this.PROFILE_PROPERTIES.ORIGIN_TYPE,this.PROFILE_PROPERTIES.ORIGIN_SOURCE,this.PROFILE_PROPERTIES.ORIGIN_DETAIL,this.PROFILE_PROPERTIES.RECEIVED_FROM_SYSTEM,this.PROFILE_PROPERTIES.RECEIVED_FROM_CONNECTION,this.PROFILE_PROPERTIES.VISITEDDOMAIN,this.PROFILE_PROPERTIES.MOBILE_APP_ID,this.PROFILE_PROPERTIES.MOBILE_APP_NAMEVERSION,this.PROFILE_PROPERTIES_FOR_CHANNEL.CLICKCOUNT,this.PROFILE_PROPERTIES_FOR_CHANNEL.VISITS,this.PROFILE_PROPERTIES_FOR_CHANNEL.VISITCLICKS,this.PROFILE_PROPERTIES_FOR_CHANNEL.LASTVISITDATE]},_setLanguageProperties:function(){var e=this._userLanguage||this._systemLanguage||this._language,t=this._normalizeLocale(e).split("-")[0];t&&this._profile.setValue(this.PROFILE_PROPERTIES.LANGUAGE,t)},_normalizeLocale:function(e){return e&&e.replace("_","-").toLowerCase()},_setResolutionProperties:function(){var e=screen.width,t=screen.height;this._profile.setValue(this.PROFILE_PROPERTIES.CURRENTSCREENWIDTH,e),this._profile.setValue(this.PROFILE_PROPERTIES.CURRENTSCREENHEIGHT,t);var i=e+"x"+t;this._profile.setValue(this.PROFILE_PROPERTIES.CURRENTRESOLUTION,i),this._profile.addValue(this.PROFILE_PROPERTIES.RESOLUTION,i)},_setReferrerProperties:function(){this._setReferrerKeywords(),this._setReferrerHost()},_setReferrerKeywords:function(){var e=this.HELPER.decodeReferrer(this._referrer)||[];e.length>0&&(this._addProfileValues(this.PROFILE_PROPERTIES.KEYWORDS,e),this._profile.setValues(this.PROFILE_PROPERTIES.CURRENTKEYWORDS,e))},_addProfileValues:function(e,t){(Array.isArray(t)?t:[t]).forEach((function(t){this._profile.addValue(e,t)}),this)},_setReferrerHost:function(){var e=this._getReferrerHost();e!==this._hostName&&(this._profile.setValue(this.PROFILE_PROPERTIES.ENTRYPAGE,this._currentUrl),e&&(this._profile.setValue(this.PROFILE_PROPERTIES.REFERRERHOST,e),this._profile.addValue(this.PROFILE_PROPERTIES.REFERRERHOSTS,e)))},_setReferrerHostOnLoad:function(){var e=this._getReferrerHost();e!==this._hostName&&this._setHostEntryPageProperty(),this._setHostTotalAndAverageTimeProperty(this._hostName,e)},_getReferrerHost:function(){return this._referrer.replace(/http[s]?:\/\/(.*?)(:|\?|\/|$).*/,"$1")},_setCampaignProperties:function(){[this.PROFILE_PROPERTIES.UTM_SOURCE,this.PROFILE_PROPERTIES.UTM_MEDIUM,this.PROFILE_PROPERTIES.UTM_TERM,this.PROFILE_PROPERTIES.UTM_CONTENT,this.PROFILE_PROPERTIES.UTM_CAMPAIGN].forEach((function(e){var t=this._removeHashPart(this.HELPER._getParameterByName(this._currentUrl,e));t&&(this._profile.setValue("current_"+e,t),this._profile.addValue(e,t))}),this)},_setHostEntryPageProperty:function(){this._profile.setValue(this.PROFILE_PROPERTIES.ENTRYPAGE,this._currentUrl);var e=this._getHostEntryPageMapping();e[this._hostName]={entrypage:this._currentUrl},this._profile.setValue(this.PROFILE_PROPERTIES.HOSTENTRYPAGE,JSON.stringify(e))},_getHostEntryPageMapping:function(){return this._safeJSONParse(this._profile.getValue(this.PROFILE_PROPERTIES.HOSTENTRYPAGE))},_safeJSONParse:function(e){try{var t=e.replace(/'/g,'"');return JSON.parse(t)||{}}catch(i){return{}}},_setHostTotalAndAverageTimeProperty:function(e,t){var i=this._safeJSONParse(this._profile.getValue(this.PROFILE_PROPERTIES.HOSTAVERAGETIME));i[e]||(i[e]=this._createNewVisitData());var E=this.blueConicClient.getCurrentDate().getTime(),s=this._profile.getValue(this.PROFILE_PROPERTIES.LASTREFERRERAVERAGE),r=0,R=0,I=0;Object.keys(i).map((function(e){return e.toString()})).forEach((function(n){var _=i[n];this._isSessionExpired(_.enddate)?this._addVisit(_,_.enddate-_.startdate):n===e?_.enddate=E:n===t&&s!==t&&(_.enddate=E,this._profile.setValue(this.PROFILE_PROPERTIES.LASTREFERRERAVERAGE,t)),0!==_.averageTime&&(R++,r+=_.averageTime,I+=_.averageTime*_.visits)}),this),this._profile.setValue(this.PROFILE_PROPERTIES.HOSTAVERAGETIME,JSON.stringify(i)),this._profile.setValue(this.PROFILE_PROPERTIES.TOTALVISITTIME,I);var n=R>0?Math.round(r/R):0;this._profile.setValue(this.PROFILE_PROPERTIES.AVERAGETIME,n)},_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 E=this.blueConicClient.getCurrentDate().getTime();e.startdate=E,e.enddate=E},_createNewVisitData:function(){var e=this.blueConicClient.getCurrentDate().getTime();return{startdate:e,enddate:e,averageTime:0,visits:0}},_setPropertyIfEmpty:function(e,t,i){"undefined"==typeof 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(){this._profile.incrementValue(this.PROFILE_PROPERTIES.CLICKCOUNT,1),this._channelId&&this._profile.incrementValue(this.PROFILE_PROPERTIES_FOR_CHANNEL.CLICKCOUNT,1)},_isNewSession:function(e,t){e=e||this.PROFILE_PROPERTIES.VISITS,t=t||this.PROFILE_PROPERTIES.LASTVISITDATE;var i=this._getNumberProperty(e),E=this._getNumberProperty(t)||0;return 0===i||this._isSessionExpired(E)},_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,this._profile.incrementValue(e,1)},_increaseSessionCount:function(e){e=e||this.PROFILE_PROPERTIES.VISITS,this._profile.incrementValue(e,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)||"",E=this._profile.getValues(this.PROFILE_PROPERTIES.ENTRYPAGE)||[];i&&(e="PC"===i?this.ORIGIN_TYPES.WEB:this.ORIGIN_TYPES.MOBILE_WEB);var s=1===t.length?t[0]:this.CONSTANTS.UNKNOWN,r=1===E.length?E[0]:this.CONSTANTS.UNKNOWN;this._setOriginProfileProperties(e,s,r)},_resolveOriginForProfileComingFromConnection:function(){var e=this._profile.getValues(this.PROFILE_PROPERTIES.RECEIVED_FROM_SYSTEM)||[],t=this._profile.getValues(this.PROFILE_PROPERTIES.RECEIVED_FROM_CONNECTION)||[],i=1===e.length?e[0]:this.CONSTANTS.UNKNOWN,E=1===t.length?t[0]:this.CONSTANTS.UNKNOWN;this._setOriginProfileProperties(this.ORIGIN_TYPES.CONNECTION,i,E)},_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,E=1===t.length?t[0]:this.CONSTANTS.UNKNOWN;this._setOriginProfileProperties(this.ORIGIN_TYPES.MOBILE,i,E)},_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;i2&&E[2]&&(r=decodeURIComponent(r)),r=(r=(r=r.replace(/'|"/g,"")).split(/[\s,+.]+/)).filter((function(e){return e}));break}}return null},_getParameterByName:function(e,t){if(!t)return"";t=t.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var i=new RegExp("[\\?&#]"+t+"=([^&#]*)").exec(e);return null===i?"":decodeURIComponent(i[1].replace(/\+/g," "))}},_getNumberProperty:function(e){var t=this._profile.getValue(e);if(!t)return 0;try{t=parseInt(t),isNaN(t)&&(t=0)}catch(i){t=0}return t}});window.blueConicPreListeners.push({id: 'listenerinteractiontype', interactionType: InteractionTypeImpl });})();})(); (function(k,jb,va,M,O,Z,P,N,kb,lb,mb,A){function pa(){var a=c.hash(k.location.hostname).toString();return k.location.hostname&&a in BC_HOSTNAME_MAP?"https://"+BC_HOSTNAME_MAP[a]:null}function W(){return Jb?0===P.indexOf("http://")||0===P.indexOf("https://")?P:"https://"+P:pa()||BC_URL}function Kb(a,b){this._id=a;this._parameters=b;this.getId=function(){return this._id};this.getParameters=function(){var a=null,b=null;for(a in this._parameters)if(b=a,R&&a&&0===a.indexOf(R))return l&&c.logInfo("Use locale ["+ a+"] for connection ["+this.getId()+"]."),this._parameters[a];return null!==b?(l&&c.logInfo("Use locale ["+b+"] for connection ["+this.getId()+"]."),this._parameters[b]):null}}function Lb(a,b){this._id=a.id;this._dialogueId=a.dialogueId;this._name=a.name;this._position=a.position;this._positionHideContent=a.positionHideContent;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.getPositionHideContent=function(){return this._positionHideContent};this.getDOMElement=function(){var a=c.getDOMElement(this._position);a&&!this._isPositionFound&&(this._isPositionFound=!0);return a};this.isPositionFound=function(){return this._isPositionFound};this.isGetContentExecuted=function(){return this._isGetContentExecuted};this.setGetContentExecuted=function(a){this._isGetContentExecuted=a};this.isOnLoadExecuted=function(){return this._isOnLoadExecuted}; this.setOnLoadExecuted=function(a){this._isOnLoadExecuted=a};this.setParameters=function(a,b){this._parameters[a]=b};this.getParameters=function(){var a,b=this.getName()?this.getName():this.getInteractionId();for(a in this._parameters)if(R&&a&&0===a.indexOf(R))return this._usedLocale=a,l&&c.logInfo("use locale ["+a+"] for interaction ["+b+"]."),this._parameters[a];l&&c.logInfo("no parameters found for locale ["+R+"] with interaction ["+b+"].\x3cbr\x3eUsing the default locale ["+this._defaultLocale+ "] instead.");this._usedLocale=this._defaultLocale;return this._parameters[this._defaultLocale]};this.getDefaultLocale=function(){return this._defaultLocale};this.getLocale=function(){return R};this.getUrlPrefix=function(){c.logDeprecated("context.getUrlPrefix","profile.getBaseURL");return c.getBaseURL(this._interactionTypeId)};this.getBaseURL=function(){return c.getBaseURL(this._interactionTypeId)};this.getInteractionTypeId=function(){return this._interactionTypeId};this.isPositionTypePlugin=function(){return"position"=== this._positionType};this.getProfile=function(){return this._bcClient.profile.getProfile()};this.isLocalEditMode=function(){return this._isLocalEditMode};this.getBlueConicClient=function(){this._bcClient||(this._bcClient=B.getBlueConicClient(this));return this._bcClient};this.getConnection=function(a){if(!a||!X||!c.isArray(X)||0===X.length)return null;for(var b=0,d=X.length;ba?"0"+a:a}function c(a){g.lastIndex=0;return g.test(a)?'"'+a.replace(g,function(a){var b=n[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"': '"'+a+'"'}function e(a,b){var d,f,g=p,n,h=b[a];h&&"object"===typeof h&&"function"===typeof h.bcToJSON&&(h=h.bcToJSON(a));"function"===typeof z&&(h=z.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+=t;n=[];if("[object Array]"===Object.prototype.toString.apply(h)){f=h.length;for(a=0;a(new Date).getTime()-v._lastHandlePageView)){v._lastHandlePageView=(new Date).getTime();l&&c.logInfo("handling asynchronous navigation for new url ["+document.location.href+"], creating new PAGEVIEW event to retrieve interactions for this url.");h.resetThrottlingCounter(!0);a&&!0===a.hidePositions&&B.hideAllPositions();var b=document.getElementById(Sa);b&&b.parentNode.removeChild(b); v._pendingInteractions=[];B.checkPreListeners();Ya=!1;v.createEvent("PAGEVIEW",!0,this,function(a){w.publish(w.ON_URL_CHANGE,{url:document.location.href});Va(a,!1)})}},10)};u.prototype.mail={sendEmail:function(a,b,d,e){var f=v._handledInteractions;if(f){for(var g=null,p=0,t=f.length;p]*)\/>/ig, hash:function(a){for(var b=0,c,e=0;eb.indexOf(a)});var c,e=a.slice();for(a=0;abb&&(Ba=B.isNative(k.JSON.parse,"window.JSON.parse")&&B.isNative(k.JSON.stringify,"window.JSON.stringify"),bb=(new Date).getTime());Ba||null!==xa||Tb()},handleProfileId:function(a,b){m.getLevel()!==m.DO_NOT_TRACK&&(c.bcSessionIdChanged(a)?(l&&c.logInfo("update cookie [BCSessionID] with profile id ["+a+"]"), c.setBcSessionId(a,b),q&&q.getId()!==a&&(r.getProfile(),h.submitBatch())):vb||(c.setBcSessionId(a,b),vb=!0),a&&c.getBcTempId(b)&&(c.setBcTempId(null,b),q&&!q.getId()&&function(a){this._id=a}.call(q,a)))},handleTempProfileId:function(a,b){a&&c.getBcTempId(b)!==a&&c.setBcTempId(a,b&&c.getBcTempId()?b:null,6E5)},log:function(a){ha&&console.log("[BC]"+a)},logError:function(a){for(;-1!==a.indexOf("\x3cbr\x3e");)a=a.replace("\x3cbr\x3e","\n ");c.log("[ERROR] "+a);ha&&console.trace&&(c.log("[ERROR] --stacktrace--"), console.trace(),c.log("[ERROR] --end stacktrace--"))},logWarning:function(a){l&&c.log("[WARNING] "+a)},logInfo:function(a){if(l){for(var b=(new Date).getTime()-Wb;-1!==a.indexOf("\x3cbr\x3e");)a=a.replace("\x3cbr\x3e","\n ");c.log("[INFO] "+a+" +"+b+" ms")}},logDeprecated:function(a,b){l&&c.log("[DEPRECATED] function ["+a+"] is deprecated. \n Please use : "+b)},formatLocalDate:function(){var a=new Date,b=-a.getTimezoneOffset(),c=0<=b?"+":"-",e=function(a){a=Math.abs(Math.floor(a)); return(10>a?"0":"")+a};return a.getFullYear()+"-"+e(a.getMonth()+1)+"-"+e(a.getDate())+"T"+e(a.getHours())+":"+e(a.getMinutes())+":"+e(a.getSeconds())+c+e(b/60)+":"+e(b%60)},getCurrentTime:function(){var a=new Date;return("0"+a.getHours()).slice(-2)+":"+("0"+a.getMinutes()).slice(-2)},objectToUrl:function(a){var b="",d;for(d in a){var e=a[d];if(c.isArray(e))for(var f=0;fCa||this._method!==h.SET_PROPERTIES&&this._method!==h.ADD_PROPERTIES&&this._method!==h.SEND_MAIL&&this._method!==h.CREATE_EVENT&&this._method!==h.CREATE_TIMELINE_EVENT||this._method===h.CREATE_EVENT&&this._param&&this._param.type&&"PAGEVIEW"===this._param.type[0])){var a="rev_"+this._id,b=c.stringifyObject({method:this._method, param:this._param,requestId:a}),d="BCRevision_"+this._id,e=function(){c.setCookie(d,b,0);var e=c.getCookie(d);if(!e){for(var e=c.getCookies(),e=c.getPropertiesFromObject(e),f=0,g=e.length;fC.cacheLength&&delete a[b.shift()];return a[c+" "]=d}var b=[];return a}function e(a){a[G]= !0;return a}function f(a){var b=D.createElement("fieldset");try{return!!a(b)}catch(F){return!1}finally{b.parentNode&&b.parentNode.removeChild(b)}}function g(a,b){a=a.split("|");for(var c=a.length;c--;)C.attrHandle[a[c]]=b}function h(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)for(;c=c.nextSibling;)if(c===b)return-1;return a?1:-1}function k(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function l(a){return function(b){var c= b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function m(a){return function(b){return"form"in b?b.parentNode&&!1===b.disabled?"label"in b?"label"in b.parentNode?b.parentNode.disabled===a:b.disabled===a:b.isDisabled===a||b.isDisabled!==!a&&Ka(b)===a:b.disabled===a:"label"in b?b.disabled===a:!1}}function q(a){return e(function(b){b=+b;return e(function(c,d){for(var e,f=a([],c.length,b),g=f.length;g--;)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function r(a){return a&&"undefined"!== typeof a.getElementsByTagName&&a}function u(){}function v(a){for(var b=0,c=a.length,d="";b+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,Aa=/[\x20\t\r\n\f]|>/,Ba=/:((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, Ca=/^(?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+$/,ja={ID:/^#((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,CLASS:/^\.((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)/,TAG:/^((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\]/, PSEUDO:/^:((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\[^\r\n\f]|[\w-]|[^\x00-\x7f])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i, bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},Da=/HTML$/i,Fa=/^(?:input|select|textarea|button)$/i,Ga=/^h\d$/i,Na=/^[^{]+\{\s*\[native \w/,Ja=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ra=/[+~]/,na=/\\[\da-fA-F]{1,6}[\x20\t\r\n\f]?|\\([^\r\n\f])/g,oa=function(a,b){a="0x"+a.slice(1)- 65536;return b?b:0>a?String.fromCharCode(a+65536):String.fromCharCode(a>>10|55296,a&1023|56320)},ya=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,za=function(a,b){return b?"\x00"===a?"�":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},Ea=function(){M()},Ka=w(function(a){return!0===a.disabled&&"fieldset"===a.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{ua.apply(Ia=pa.call(ea.childNodes),ea.childNodes),Ia[ea.childNodes.length].nodeType}catch(x){ua={apply:Ia.length? function(a,b){va.apply(a,pa.call(b))}:function(a,b){for(var c=a.length,d=0;a[c++]=b[d++];);a.length=c-1}}}E=b.support={};Z=b.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!Da.test(a&&a.namespaceURI||b&&b.nodeName||"HTML")};M=b.setDocument=function(a){var b;a=a?a.ownerDocument||a:ea;if(a==D||9!==a.nodeType||!a.documentElement)return D;D=a;Y=D.documentElement;ca=!Z(D);ea!=D&&(b=D.defaultView)&&b.top!==b&&(b.addEventListener?b.addEventListener("unload",Ea,!1):b.attachEvent&&b.attachEvent("onunload", Ea));E.scope=f(function(a){Y.appendChild(a).appendChild(D.createElement("div"));return"undefined"!==typeof a.querySelectorAll&&!a.querySelectorAll(":scope fieldset div").length});E.cssHas=f(function(){try{return D.querySelector(":has(*,:jqfake)"),!1}catch(F){return!0}});E.attributes=f(function(a){a.className="i";return!a.getAttribute("className")});E.getElementsByTagName=f(function(a){a.appendChild(D.createComment(""));return!a.getElementsByTagName("*").length});E.getElementsByClassName=Na.test(D.getElementsByClassName); E.getById=f(function(a){Y.appendChild(a).id=G;return!D.getElementsByName||!D.getElementsByName(G).length});E.getById?(C.filter.ID=function(a){var b=a.replace(na,oa);return function(a){return a.getAttribute("id")===b}},C.find.ID=function(a,b){if("undefined"!==typeof b.getElementById&&ca)return(a=b.getElementById(a))?[a]:[]}):(C.filter.ID=function(a){var b=a.replace(na,oa);return function(a){return(a="undefined"!==typeof a.getAttributeNode&&a.getAttributeNode("id"))&&a.value===b}},C.find.ID=function(a, b){if("undefined"!==typeof b.getElementById&&ca){var c,d,e=b.getElementById(a);if(e){if((c=e.getAttributeNode("id"))&&c.value===a)return[e];d=b.getElementsByName(a);for(b=0;e=d[b++];)if((c=e.getAttributeNode("id"))&&c.value===a)return[e]}return[]}});C.find.TAG=E.getElementsByTagName?function(a,b){if("undefined"!==typeof b.getElementsByTagName)return b.getElementsByTagName(a);if(E.qsa)return b.querySelectorAll(a)}:function(a,b){var c=[],d=0;b=b.getElementsByTagName(a);if("*"===a){for(;a=b[d++];)1=== a.nodeType&&c.push(a);return c}return b};C.find.CLASS=E.getElementsByClassName&&function(a,b){if("undefined"!==typeof b.getElementsByClassName&&ca)return b.getElementsByClassName(a)};O=[];J=[];if(E.qsa=Na.test(D.querySelectorAll))f(function(a){var b;Y.appendChild(a).innerHTML="\x3ca id\x3d'"+G+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+G+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";a.querySelectorAll("[msallowcapture^\x3d'']").length&&J.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")"); a.querySelectorAll("[selected]").length||J.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"+G+"-]").length||J.push("~\x3d");b=D.createElement("input");b.setAttribute("name","");a.appendChild(b);a.querySelectorAll("[name\x3d'']").length||J.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");a.querySelectorAll(":checked").length|| J.push(":checked");a.querySelectorAll("a#"+G+"+*").length||J.push(".#.+[+~]");a.querySelectorAll("\\\f");J.push("[\\r\\n\\f]")}),f(function(a){a.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";var b=D.createElement("input");b.setAttribute("type","hidden");a.appendChild(b).setAttribute("name","D");a.querySelectorAll("[name\x3dd]").length&&J.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==a.querySelectorAll(":enabled").length&& J.push(":enabled",":disabled");Y.appendChild(a).disabled=!0;2!==a.querySelectorAll(":disabled").length&&J.push(":enabled",":disabled");a.querySelectorAll("*,:x");J.push(",.*:")});(E.matchesSelector=Na.test(W=Y.matches||Y.webkitMatchesSelector||Y.mozMatchesSelector||Y.oMatchesSelector||Y.msMatchesSelector))&&f(function(a){E.disconnectedMatch=W.call(a,"*");W.call(a,"[s!\x3d'']:x");O.push("!\x3d",":((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\x00-\\x7f])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}); E.cssHas||J.push(":has");J=J.length&&new RegExp(J.join("|"));O=O.length&&new RegExp(O.join("|"));T=(b=Na.test(Y.compareDocumentPosition))||Na.test(Y.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};ia=b?function(a,b){if(a===b)return Q=!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||!E.sortDetached&&b.compareDocumentPosition(a)===c?a==D||a.ownerDocument==ea&&T(ea,a)?-1:b==D||b.ownerDocument==ea&&T(ea,b)?1:L?Ha(L,a)-Ha(L,b):0:c&4?-1:1}:function(a,b){if(a===b)return Q=!0,0;var c=0,d=a.parentNode,e=b.parentNode,f=[a],g=[b];if(!d||!e)return a==D?-1:b==D?1:d?-1:e?1:L?Ha(L,a)-Ha(L,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]==ea?-1:g[c]==ea?1:0};return D};b.matches=function(a,c){return b(a,null,null,c)};b.matchesSelector=function(a,c){M(a);if(!(!E.matchesSelector||!ca||ba[c+" "]||O&&O.test(c)||J&&J.test(c)))try{var d=W.call(a,c);if(d||E.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(V){ba(c,!0)}return 0a.nodeType)return!1;return!0},parent:function(a){return!C.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:q(function(){return[0]}),last:q(function(a,b){return[b-1]}),eq:q(function(a,b,c){return[0>c?c+b:c]}),even:q(function(a,b){for(var c=0;cc?c+b:c>b?b:c;0<=--b;)a.push(b);return a}),gt:q(function(a,b, c){for(c=0>c?c+b:c;++c