if (undefined === window.Kameleoon){(function(){!function(e,t){e.kbowser=t()}(this,(function(){return function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(i,n,function(t){return e[t]}.bind(null,n));return i},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var i=r(18),n=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.map=function(e,t){var r,i=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(r=0;r1?n-1:0),a=1;a=3},describe:function(){return{type:s.PLATFORMS_MAP.t}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.m}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.d}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.d}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.d}}}];t.default=a,e.exports=t.default}})}));class APIConfiguration{constructor(e){this.generationTime=e.scriptProduceTime;this.goals=e.goals.map((e=>new APIGoal(e)));this.singlePageSupport=Kameleoon.Internals.runtime?Kameleoon.Internals.runtime.singlePageSupport:e.singlePageSupport;this.siteCode=e.siteCode}}class APIAction{constructor(i,e){const t=0===e;const a=Kameleoon.Internals.runtime.Visitor.currentVisit;const n=Kameleoon.Internals.runtime.storedData.obtainField("Gatherer",t?"experimentsTriggered":"personalizationsTriggered",{});this.dateLaunched=i.dateStatusModified;this.dateModified=i.dateModified;this.id=i.id;this.name=i.name;this.targetSegment=new APISegment(i.targetingSegment);this.active=i.targeting&&!i.disabled&&i.displayedVariation&&null!=i.displayedVariation.id;this.triggered=i.targeting||!1;this.untrackedTrafficReallocationTime=i.untrackedRespoolTime||null;this.triggeredInVisit=n[this.id]?!0:!1;const r=i=>Kameleoon.Internals.runtime.variations.find((e=>e.id==i));if(i.targetingTrigger)this.targetTrigger=new APISegment(i.targetingTrigger);if(t){let e=r(i.registeredVariationId);this.associatedVariation=e?new APIVariation(e,i):null;this.trafficDeviation={};this.variations=[];this.redirectProcessed=i.redirectProcessed||!1;for(let e in i.deviation){const t=r(parseInt(e));if(t){this.trafficDeviation[e]=100*i.deviation[e];this.variations.push(new APIVariation(t,i))}}this.activatedInVisit=a.ExperimentActivations[this.id]?!0:!1;this.trackingPerformed=i.trackingPerformed}else{this.associatedVariation=new APIVariation(r(i.associatedVariation.id),i);this.activatedInVisit=this.triggeredInVisit&&a.PersonalizationActivations[this.id]?!0:!1}Object.defineProperty(this,"goals",{enumerable:!0,configurable:!0,get:()=>Kameleoon.Internals.configuration.goals.filter((e=>-1!=(i.goals||[]).indexOf(e.id))).map((i=>new APIGoal(i)))});Object.defineProperty(this,"mainGoal",{enumerable:!0,configurable:!0,get:()=>{const e=t?i.kameleoonTracking?.mainGoalId:i.mainGoalId;const a=e&&Kameleoon.Internals.configuration.goals.find((i=>i.id==e));return a?new APIGoal(a):null}})}}class APIActionActivation{constructor(i,n,t){const a=0===i;const o=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(n,a);const s=a?"ExperimentActivations":"PersonalizationActivations";const e=t[s][n].associatedVariationID;const c=Kameleoon.Internals.configuration.variations.find((i=>i.id==e));if(a){this.experimentID=n;this.experiment=o?new APIAction(o,0):null}else{this.personalizationID=n;this.personalization=o?new APIAction(o,1):null}this.times=t[s][n].times;this.associatedVariationID=e;this.associatedVariation=c?new APIVariation(c,o):null}}class APIActions{constructor(e){const n=0===e;const i=()=>{if(Kameleoon.Internals.runtime)return Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList(e);else return[]};const t=n=>new APIAction(n,e);const a=e=>i().map(t).filter(e);this.getAll=()=>i().map(t);this.getActive=()=>i().filter((e=>(!0===e.targeting||e.trackingPerformed)&&1!=e.disabled&&(null!=e.displayedVariation?.id||e.featureFlag&&null!=e.associatedVariation?.id))).map(t);this.getTriggeredInVisit=()=>a((e=>e.triggeredInVisit));this.getActivatedInVisit=()=>a((e=>e.activatedInVisit));const s=(e,n)=>{const a=i().find((i=>i[e]==n));return a?t(a):null};this.getById=e=>s("id",e);this.getByName=e=>s("name",e);if(n){this.assignVariation=(e,n,t)=>{const a=i().find((n=>n.id==e));if(a&&(void 0===a.registeredVariationId||t)){a.registeredVariationId=n;a.assignmentTime=(new Date).getTime();a.writeLocalData()}else if(!a){if(!Kameleoon.Internals.runtime.notUsedCampaigns)Kameleoon.Internals.runtime.notUsedCampaigns={};Kameleoon.Internals.runtime.notUsedCampaigns[e]=n}};this.block=(e,i=!1)=>{const t=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(e,n);if(t){if(i){const n=Kameleoon.Internals.runtime.storedData.obtainField("Runtime","blockedExperiments",[]);n.push(e);Kameleoon.Internals.runtime.storedData.saveField("Runtime","blockedExperiments",n)}t.setBlocked("API")}};this.trigger=(e,i)=>{const t=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(e,n);if(t)if(i){if(t){t.performVariationAssignment(!0);Kameleoon.Analyst.Actions.performActionsTracking([t])}}else{t.trigger();Kameleoon.Analyst.Actions.process([t])}else if(i&&null!=Kameleoon.Internals.runtime.notUsedCampaigns?.[e])Kameleoon.Gatherer.track(VisitEvent_Experiment,{id:e,variationId:Kameleoon.Internals.runtime.notUsedCampaigns[e],notTrack:!1,notSave:!0});};this.triggerExperiment=(e,n)=>{this.trigger(e,n);}}else{this.block=(e,i=!1)=>{const t=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(e,n);if(t){if(i){const n=Kameleoon.Internals.runtime.storedData.obtainField("Runtime","blockedPersonalizations",[]);n.push(e);Kameleoon.Internals.runtime.storedData.saveField("Runtime","blockedPersonalizations",n)}t.blocked=!0}};this.disable=e=>{const i=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(e,n);if(i)i.disabled=!0;};this.trigger=(e,i)=>{const t=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(e,n);if(t){t.exposition=!0;if(i){if(t)Kameleoon.Analyst.Actions.performActionsTracking([t])}else{t.trigger();Kameleoon.Analyst.Actions.process([t])}}}}}}class APIGoal{constructor(t){if(t){this.id=t.id;this.name=t.name;this.type=t.type}}}class APIProduct{constructor(e,a){this.productID=e;const t=new Set(["accessories","auto","available","brand","description","fashion","gender","groupId","isChild","isFashion","isNew","leftovers","merchantID","model","name","params","rating","seasonality","sku","tags","typePrefix","url"]);for(let e in a)switch(e){case"imageURL":case"mainImageURL":this.imageURL=a.mainImageURL||a.imageURL;break;case"price":case"oldPrice":case"availableQuantity":case"priceMargin":this[e]=parseFloat(a[e])||null;break;case"categories":if(a.categories.length>0)this.categories=a.categories.map((e=>{if(e.parent)e.parent=e.parent.toString();e.id=e.id.toString();return e}));break;default:if(t.has(e))this[e]=a[e]}}getTrackingParameters(){let e={};e.url=encodeURIComponent(Kameleoon.Utils.computeCurrentPageCleanAbsoluteURL());for(let a in this)switch(a){case"productID":break;default:switch(typeof this[a]){case"object":e[a]=encodeURIComponent(JSON.stringify(this[a]));break;case"string":e[a]=encodeURIComponent(this[a]);break;case"number":case"boolean":case"symbol":e[a]=this[a]}}return Kameleoon.Utils.parseObjectToUrlParams(e)}}class APITargeting{constructor(e){const n=1===e?"targetingTriggers":"targetingSegments";const t=e=>{const t=Kameleoon.Internals.runtime[n].find(e);return t?new APISegment(t):null};this.getAll=()=>Kameleoon.Internals.runtime[n].map((e=>new APISegment(e)));this.getById=e=>t((n=>n.id==e));this.getByName=e=>t((n=>n.name===e));this.reevaluate=t=>{const a=Kameleoon.Internals.runtime[n].findIndex((e=>e.id==t));if(a>-1){const i=Kameleoon.Internals.runtime.simulationMode?Kameleoon.Internals.runtime.simulationModeData[n]:Kameleoon.Internals.configuration[n];const r=i.find((e=>e.id==t));if(r){Kameleoon.Internals.runtime[n].splice(a,1);const i=Kameleoon.Utils.clone(r);Kameleoon.Internals.runtime[n].push(i);Kameleoon.Targeting.checkTargetingSegmentsTargeting([i]);Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList(0).concat(Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList(1)).forEach((n=>{if(1===e){n.setTargetingTrigger?.(t);if(n.targetingTriggerId==t)n.forceTargeting=!1}else{n.setTargetingSegment(t);if(n.targetingSegmentId==t)n.forceTargeting=!1}}));Kameleoon.Analyst.Actions.processAllActions();return i.targeting}}return;};this.trigger=t=>{const a=Kameleoon.Internals.runtime[n].find((e=>e.id==t));if(a){a.targeting=!0;const n=1===e?"targetingTriggerId":"targetingSegmentId";Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList("experiments").concat(Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList("personalizations")).forEach((e=>{if(e[n]==t){e.targeting=void 0;e.rescheduleTargeting=!0;e.forceTargeting=!0}}));Kameleoon.Analyst.Actions.processAllActions();Kameleoon.Targeting.processTargetingSegments([a])}}}}class APISegment{constructor(t){if(t){this.id=t.id;this.name=t.name;this.targeting=t.targeting}}}class APITemplate{constructor(s,t){this.name=s;this.customFields=t}}class APIVariation{constructor(e,t={}){if(e){this.id=e.id;this.name=e.name;if(t.experimentAction){const i=t.variations.find((t=>t.id==e.id));this.reallocationTime=i?i.respoolTime:null}else this.reallocationTime=null;this.instantiatedTemplate=e.widgetTemplateInputData?new APITemplate(e.widgetTemplateName,e.widgetTemplateInputData):null}}}class APIVisit{constructor(t){this.pageViews=t.obtainPageNumberViews();this.duration=t.lastEventDate-t.startDate;this.locale=Kameleoon.Utils.getLocale();this.startDate=t.startDate;this.index=t.visitNumber;this.currentProduct=null;this.products=[];this.clicks=t.clicks||0;this.pageURLsVisited=t.pageURLsVisited;this.activatedSegments=t.activatedSegments;this.lastEventDate=t.lastEventDate;this.activatedExperiments=Object.keys(t.ExperimentActivations).map((e=>new APIActionActivation(0,parseInt(e),t)));this.activatedPersonalizations=Object.keys(t.PersonalizationActivations).map((e=>new APIActionActivation(1,parseInt(e),t)));if(t==Kameleoon.Internals.runtime.Visitor.currentVisit){this.device=new Device;this.geolocation=t.Geolocation;}this.conversions=Kameleoon.Utils.clone(t.conversions);this.customData={};const e=Kameleoon.Internals.runtime.Gatherer.configuration.customData;for(const i in t.customData){const n=e[i];if(null!=n)this.customData[n.name]=Kameleoon.Gatherer.CustomData.obtainParsedValue(i,t.customData[i])}let i="";let n=[];let a=Kameleoon.Internals.runtime.storedData.obtainField("Runtime","firstReferrersIndices",[]);for(let t=0,e=a.length;t";else{let t=Kameleoon.Internals.runtime.Gatherer.configuration.referrers[e-1];s=null==t?i:t.name}n.push(s)}this.acquisitionChannel=n[0];this.landingPageURL=t.landingPageURL;this.weather=t.Weather}}class APIVisitor{constructor(){this.getCustomDataVisitor=()=>{const t={};const i=Kameleoon.Internals.runtime.Visitor.customData;const s=Kameleoon.Internals.runtime.Gatherer.configuration.customData;for(const e in i)if(s[e])t[s[e].name]=Kameleoon.Gatherer.CustomData.obtainParsedValue(e,i[e]);return t};this.setVisitorCode=t=>{Kameleoon.Internals.runtime.Visitor.setVisitorCode(t)};const{Visitor:t,personalizationsActive:i,Consent:s}=Kameleoon.Internals.runtime;this.numberOfVisits=t.totalVisits;this.timeStartedEldestVisit=t.timeStartedEldestVisit;this.customData=this.getCustomDataVisitor();this.personalizationsActive=i;this.code=t.currentVisit.visitorCode;this.currentVisit=new APIVisit(t.currentVisit);this.visits=t.visits.map((t=>new APIVisit(t)));this.previousVisit=t.visits.length>1?new APIVisit(t.visits.slice(-2)[0]):null;this.experimentLegalConsent=s.AB_TESTING;this.personalizationLegalConsent=s.PERSONALIZATION;this.productRecommendationLegalConsent=Kameleoon.Internals.runtime.storedData.obtainField("Gatherer","productRecommendation")?!0:!1;this.firstVisitStartDate=t.timeStartedEldestVisit}}class Analyst{constructor(){this.initialize=e=>{this.isTimeout=!1;if(window.kameleoonDisplayPage){if(null==Kameleoon.Internals.configuration.behaviorWhenTimeout||document.getElementById("kameleoonLoadingStyleSheet"))window.clearTimeout(window.kameleoonDisplayPageTimeOut);else if(null==window.kameleoonEndLoadTime)this.isTimeout=!0;try{window.kameleoonDisplayPage(!0)}catch(e){}window.kameleoonDisplayPage=null}window.kameleoonEndLoadTime=(new Date).getTime();e()};this.load=()=>{Kameleoon.Utils.sendKameleoonCustomEvent("Internals",{type:"load",time:(new Date).getTime()});Kameleoon.Utils.runProtectedFunction((function(){if(window.kameleoonQueue)window.kameleoonQueue=new CommandQueue(window.kameleoonQueue,"IMMEDIATE");window.addEventListener("error",(e=>{if(e.error&&e.error.stack&&e.error.stack.match(/kameleoon/gi)){Kameleoon.Utils.Logger.send(e.error.stack,"kameleoon.js");return!1}}));Kameleoon.Analyst.initialize((()=>{const e=Kameleoon.Analyst.checkBlockingElements();const o=window.kameleoonEndLoadTime-(window.kameleoonStartLoadTime||window.kameleoonEndLoadTime)-25;Kameleoon.Utils.sendKameleoonCustomEvent.call(window,"Loaded",{timeout:"TIMEOUT"==e,loadTime:o});const n=Kameleoon.Internals.runtime;let a=!1;let t=null;if(n){a=!0;t=n.localDataMap;n.clear()}if(0==e.length){Kameleoon.Internals.runtime=new Runtime(a,{localDataMap:t});Kameleoon.Analyst.loadKameleoonFull((()=>{Kameleoon.Internals.runtime.run()}))}else{Kameleoon.Utils.sendKameleoonCustomEvent("Internals",{type:"abort",blockingReason:e});Kameleoon.Utils.sendKameleoonCustomEvent.call(window,"Aborted",{reason:e})}}))}))};this.loadKameleoonFull=(e,o)=>{if(!Kameleoon.Internals.runtime.kameleoonFull&&(this.kameleoonFullNeeded()||o)){const o="kameleoonFullApplicationCode";const n=o=>{Kameleoon.Utils.runProtectedScript(o+"\n;"+"("+e.toString()+")()","kameleoonFull.js")};const a=sessionStorage.getItem(o);if(null!=a)n(a);else{const{ENGINE_FULL_URL:e,staticURL:a}=Kameleoon.Internals.configuration;Kameleoon.Utils.performBeaconServerCall((e||a)+"kameleoon-full.js?cache="+Kameleoon.Utils.obtainRandomString(16),(e=>{if(void 0===e.readyState||4==e.readyState&&200==e.status){sessionStorage.setItem(o,e.responseText);n(e.responseText)}}))}}else e()};this.Actions=new Actions;this.Goals=new Goals}checkBlockingElements(){let e=!1;try{const e="kameleoonPrivateMode";localStorage.getItem(e);sessionStorage.getItem(e)}catch(o){e=!0}if(e)return"STORAGE";if(this.isTimeout){return"TIMEOUT"}document.removeEventListener("visibilitychange",Kameleoon.Analyst.load);if("prerender"==document.visibilityState){document.addEventListener("visibilitychange",Kameleoon.Analyst.load);return"PRERENDER"}if(-1!=location.href.indexOf("kameleoonDisabled"))return"PARAMETER";return""}kameleoonFullNeeded(){const{parameters:e,simulationMode:o}=Kameleoon.Internals.runtime;if(sessionStorage.getItem("kameleoonFullApplicationCode")||sessionStorage.getItem("kameleoonLightExtension")||e.kameleoon||e.kameleoonVariationId||e["kameleoon-simulation"]||e.kameleoonLightExtension||o||window===window.top&&(e.kameleoonBuilder||sessionStorage.getItem("kameleoonPBXParams"))||Kameleoon.Utils.readLocalData("kameleoonSimulationParameters","COOKIE"))return!0;return!1}loadSimulation(e){if(!Kameleoon.Internals.runtime.parameters.kameleoonVariationId)Object.keys(localStorage).forEach((e=>{if(-1!==e.indexOf("kameleoonVariation-"))localStorage.removeItem(e)}))}loadVariationFromServer(e,o){}processSimulations(){}}Analyst.CODE_ALPHABET="abcdefghijklmnopqrstuvwxyz0123456789";Analyst.HEXADECIMAL_ALPHABET="0123456789ABCDEF";class API{constructor(){this.Core={enableLegalConsent:function(e="BOTH"){Kameleoon.Internals.runtime.Consent.enable(e)},disableLegalConsent:function(e="BOTH"){Kameleoon.Internals.runtime.Consent.disable(e)},enableSinglePageSupport:function(){Kameleoon.Internals.runtime.enableSinglePageSupport.apply(Kameleoon.Internals.runtime,arguments)},enableDynamicRefresh:function(){Kameleoon.Internals.runtime.enableDynamicRefresh.apply(Kameleoon.Internals.runtime,arguments)},getConfiguration:()=>new APIConfiguration(Kameleoon.Internals.configuration),load:function(){Kameleoon.Analyst.load.apply(Kameleoon.Analyst,arguments)},processRedirect:function(){Kameleoon.Utils.processRedirect.apply(Kameleoon.Utils,arguments)},runWhenConditionTrue:(e,n,t=200)=>{if(e())Kameleoon.Utils.runProtectedFunction(n,!0);else{const o=Kameleoon.Utils.setInterval((()=>{if(e()){Kameleoon.Utils.clearInterval(o);Kameleoon.Utils.runProtectedFunction(n,!0)}}),t,!0)}},runWhenElementPresent:(e,n,t,o)=>{const a=null==t;Kameleoon.Internals.runtime.processSelectorPresence({selector:e,useAntiFlicker:a,pollingInterval:t,isDynamicElement:o,callback:n})},runWhenShadowRootElementPresent:(e,n,t,o)=>{this.Core.runWhenElementPresent(e,(a=>{const r=a.filter((e=>e.shadowRoot));if(0===r.length){const a=Kameleoon.Utils.setTimeout((()=>{Kameleoon.Utils.clearInterval(a);this.Core.runWhenShadowRootElementPresent.apply(Kameleoon,[e,n,t,o])}),150);return}const i=`data-kameleoon-shadow-class-${Kameleoon.Utils.obtainRandomString(4)}`;const l=()=>{let e=[];r.forEach((t=>{if(t.shadowRoot)e=e.concat(Kameleoon.Utils.querySelectorAll(n,t.shadowRoot))}));if(o)e=e.filter((e=>!e.getAttribute(i))).map((e=>{e.setAttribute(i,"true");return e}));return e};const s=l();if(s.length)t(s);if(!s.length||o){const e=Kameleoon.Utils.setInterval((()=>{const n=l();if(n.length){t(n);!o&&Kameleoon.Utils.clearInterval(e)}}),150)}}))}};this.Goals={cancelConversion:(e,n)=>{try{this.Goals.processConversions(e,n,!0)}catch(e){}},processConversion:(e,n,t)=>{try{this.Goals.processConversions(e,n,!1,t)}catch(e){}},processConversions:(e,n,t,o)=>{const a=Kameleoon.Analyst.Goals.get(e)??Kameleoon.Analyst.Goals.getList().find((n=>e==n.id||e===n.name));if(a)Kameleoon.Analyst.Goals.processConversions([{goal:a,revenue:n,negative:t,metadata:o}])}};this.Data={readLocalData:e=>Kameleoon.Internals.runtime.storedData.Vars[e]?Kameleoon.Internals.runtime.storedData.Vars[e].value:null,resetCustomData:e=>{this.Data.setCustomData(e,[],!0)},retrieveDataFromRemoteSource:(e,n)=>{const t=Kameleoon.Internals.configuration.siteCode;const o=100;const a=e=>{const n=[];for(let t=0;tnew Promise((n=>{Kameleoon.Utils.performBeaconServerCall(e,(e=>{if(4!==e.readyState)return;if(200!==e.status)return n({});try{n(JSON.parse(e.responseText))}catch{n({})}}),null)}));if(!Array.isArray(e)){const o=Kameleoon.Utils.addParameterToURL(`${Kameleoon.Internals.runtime.DATA_URL}/map/map`,Kameleoon.Utils.parseObjectToUrlParams({siteCode:t,key:encodeURIComponent(String(e))}),!1);return r(o).then((e=>n?.(e)))}if(!e.length)return n?.({});Promise.all(a(e).map((e=>{const n=Kameleoon.Utils.addParameterToURL(`${Kameleoon.Internals.runtime.DATA_URL}/map/maps`,Kameleoon.Utils.parseObjectToUrlParams({siteCode:t,keys:encodeURIComponent(JSON.stringify(e))}),!1);return r(n)}))).then((e=>{const t=Object.assign({},...e);n?.(t)}))},setCustomData:(e,n,t)=>{if(Kameleoon.Internals.runtime&&Kameleoon.Internals.runtime.gathererRun){let o=null;for(const n in Kameleoon.Internals.runtime.Gatherer.configuration.customData){const t=Kameleoon.Internals.runtime.Gatherer.configuration.customData[n];if(null!=t&&(t.name===e||n==e)){o=parseInt(n);break}}if(null!=o)Kameleoon.Gatherer.CustomData.register(o,{value:n,overwrite:t})}},writeLocalData:(e,n,t)=>{Kameleoon.Internals.runtime.storedData.Vars[e]={value:n,date:(new Date).getTime()+24*60*60*1e3*(t?30:1/24)}},performRemoteSynchronization:(e,n,t)=>{}};this.Events={triggered:[],trigger:e=>{this.Core.runWhenConditionTrue((()=>!0===Kameleoon.Internals.runtime.setupAfterLocalDataRetrieval),(()=>{this.Events.triggered.push(e);if(Kameleoon.Analyst.Actions)Kameleoon.Analyst.Actions.processAllActions();if(Kameleoon.Targeting)Kameleoon.Targeting.processAllTargetings();}),100)}};this.Tracking={processOmniture:e=>{Kameleoon.Tracking.processOmniture&&Kameleoon.Tracking.processOmniture(e)}};this.Products={obtainFullSearchProducts:(e,n,t)=>{},obtainInstantSearchProducts:(e,n,t)=>{},obtainProductInteractions:(e,n,t,o)=>{const a={};null!=t&&(a.timeBegin=t);null!=o&&(a.timeEnd=o);Kameleoon.Internals.runtime.Visitor.obtainProductData("productCounters",e,a,(e=>{for(const n in e){e[n].views=e[n].v||0;e[n].cartQuantities=e[n].atcq||0;e[n].boughtQuantities=e[n].bq||0;delete e[n].v;delete e[n].atcq;delete e[n].bq}n(e)}))},obtainProductData:(e,n,t={all:!0})=>{Kameleoon.Internals.runtime.Visitor.obtainProductData("productData",e,t,n)},obtainRecommendedProducts:(e,n,t,o)=>{},obtainRecommendedCollections:(e,n,t)=>{},trackAddToCart:(e,n,t=1,o={})=>{e=e.toString();if(null!=e&&e.length>0)if(t>0){Kameleoon.Internals.runtime.RequestManager.sendProduct(e,`eventType=productAddToCart&quantity=${t}`);}},trackAddToWishList:(e,n=1)=>{},trackCategoryView:e=>{},trackSearchQuery:e=>{},trackProductView:(e,n)=>{e=e.toString();if(null!=e&&e.length>0){const t=new APIProduct(e,n);Kameleoon.Internals.runtime.RequestManager.sendProduct(e,`eventType=productPage&${t.getTrackingParameters()}`);if(Kameleoon.Internals.runtime.gathererRun)Kameleoon.Gatherer.track(VisitEvent_Product,{ean:e});Kameleoon.Internals.runtime.product=t}},trackTransaction:(e,n={})=>{for(let n=0;n0){o.quantity=parseInt(o.quantity)||1;if(o.quantity>0)Kameleoon.Internals.runtime.RequestManager.sendProduct(o.productID,`eventType=productBuy&quantity=${o.quantity}`)}}}};this.Experiments=new APIActions(0);this.Personalizations=new APIActions(1);this.Segments=new APITargeting(0);this.Triggers=new APITargeting(1);this.Variations={execute:e=>{let n=Kameleoon.Internals.runtime.variations.find((n=>n.id==e));if(n){n=new Variation(n);Kameleoon.Utils.addCSSStyleSheet(n.cssCode);return n.applyJavascriptCode(!0)}return null}};this.Utils={addEventListener:function(e,n,t,o){Kameleoon.Utils.addEventListener(e,n,t,o,!0)},addUniversalClickListener:function(e,n,t){const o=Kameleoon.Internals.runtime.mouseDownEvent;this.addEventListener(e,o,(function(e){if(!Kameleoon.Internals.runtime.touchMoveEvent&&("mousedown"==o||!e.target||!e.target.closest||!e.target.closest("[disabled]")))n&&n(e)}))},clearInterval:function(){Kameleoon.Utils.clearInterval.apply(Kameleoon.Utils,arguments)},clearTimeout:function(){Kameleoon.Utils.clearTimeout.apply(Kameleoon.Utils,arguments)},createHash:function(e){return Kameleoon.Utils.computeStringHash.apply(Kameleoon.Utils,arguments)},getURLParameters:function(){return Kameleoon.Utils.parseParameters.apply(Kameleoon.Utils,arguments)},performRequest:(e,n,t,o=5e3)=>Kameleoon.Utils.performBeaconServerCall(e,n,t,o),querySelectorAll:function(e){return Kameleoon.Utils.querySelectorAll.apply(Kameleoon.Utils,arguments)},setInterval:(e,n=200)=>Kameleoon.Utils.setInterval(e,n,!1,!0),setTimeout:(e,n=200)=>Kameleoon.Utils.setTimeout(e,n,!0)};Object.defineProperty(this.Utils,"mouseDownEvent",{enumerable:!0,get:function(){return Kameleoon.Internals.runtime.mouseDownEvent}});Object.defineProperty(this.Utils,"touchMoveEvent",{enumerable:!0,get:function(){return Kameleoon.Internals.runtime.touchMoveEvent}});Object.defineProperty(this,"Visitor",{enumerable:!0,get:function(){try{if(!Kameleoon.Internals.runtime)return{setVisitorCode:e=>{Kameleoon.Internals.configuration.predefinedVisitorCode=e}};else return new APIVisitor}catch(e){return null}}});Object.defineProperty(this,"CurrentVisit",{enumerable:!0,get:function(){try{return new APIVisit(Kameleoon.Internals.runtime.Visitor.currentVisit)}catch(e){return null}}})}}class Gatherer{constructor(){this.MAX_HREF_LENGTH_IN_A_REQUEST=200;this.MAX_PAGE_TITLE_LENGTH_IN_A_REQUEST=200}run(){let e=Kameleoon.Utils.clone(Kameleoon.Internals.configuration.Gatherer);if("string"==typeof e)e=JSON.parse(Kameleoon.Utils.decodeString(e));Kameleoon.Internals.runtime.Gatherer={configuration:e,active:!0,clicks:0};this.Browser=new Browser(e.browsers);this.CustomData=new CustomData(e.customData);this.KeyPage=new KeyPage(e.keyPages);this.Language=new Language;this.OperatingSystem=new OperatingSystem(e.oss);this.Referrer=new Referrer(e.referrers);Kameleoon.Internals.runtime.storedData.saveField("Gatherer","startsOfVisitForCurrentPage",0);Kameleoon.Internals.runtime.Visitor=new Visitor;Kameleoon.Internals.runtime.RequestManager=new RequestManager;Kameleoon.Internals.runtime.Visitor.performRemoteVisitorSynchronization();this.track(VisitEvent_Page);this.track(VisitEvent_StaticData);VisitEvent_Activity.initialize();this.CustomData.run();Kameleoon.Internals.runtime.gathererRun=!0}startNewVisit(e,t){Kameleoon.Internals.runtime.Visitor.updateFromStoredData(!0,!0,t);this.CustomData.run();}track(e,t){new VisitEvent(e).track(t)}}class KameleoonEngine{constructor(){this.Analyst=new Analyst;this.API=new API;this.Gatherer=new Gatherer;this.Loader=new Loader;this.Targeting=new Targeting;this.Tracking=new Tracking;this.Utils=new Utils}}class Loader{constructor(){this.enableKameleoonEditorListener=()=>{if(!Kameleoon.Internals.runtime.editorListenerEnabled){Kameleoon.Internals.runtime.editorListenerEnabled=!0;const t=t=>{if(!t)t=window.event;Kameleoon.Loader.listenKeys.call(Kameleoon.Loader,t)};Kameleoon.Utils.addEventListener(document,"keyup",t,!1)}};this.listenKeys=t=>{if(t.shiftKey){if(113==t.keyCode&&Kameleoon.Internals.configuration.webExperimentationSetup){Kameleoon.Internals.runtime.editorMode=!0;Kameleoon.Analyst.loadKameleoonFull((()=>{Kameleoon.Loader.enableKameleoonEditor.apply(Kameleoon.Loader)}),!0)}if(115==t.keyCode&&(Kameleoon.Internals.runtime.simulationMode||Kameleoon.Internals.runtime.parameters.kameleoonVariationSelection))Kameleoon.Analyst.loadKameleoonFull((()=>{Kameleoon.Loader.enableSimulationPanel()}),!0)}};}}class Runtime{constructor(e,t){this.isReloaded=e;this.DATA_URL=Kameleoon.Internals.configuration.DATA_URL;this.PAGE_LOADED_POLL_DELAY=250;this.PAGE_LOADING_POLL_DELAY=75;this.enableSinglePageSupport=()=>{this.singlePageSupport=!0;this.href=window.location.href;KMutationObserver.setMutationObserverSPA();Kameleoon.Utils.setInterval((()=>{const e=this.href;this.href=window.location.href;if(e!=this.href){Kameleoon.Gatherer.Referrer.update(e);Kameleoon.Analyst.load.apply(this,[])}}),100)};this.enableDynamicRefresh=()=>{this.dynamicRefresh=!0;KMutationObserver.setMutationObserverSPA()};this.executeGlobalScript=()=>{if(!this.editorMode&&!this.kameleoonSelectionIframeMode){if(Kameleoon.Internals.configuration.globalScript&&!this.globalScriptProcessed){Kameleoon.Utils.sendKameleoonCustomEvent("Internals",{type:"globalScript"});this.globalScriptProcessed=!0;Kameleoon.Utils.runProtectedScript(Kameleoon.Internals.configuration.globalScript,"kameleoonGlobalScript.js")}this.Campaigns.obtainCampaignsList(0).forEach((e=>e.executeGlobalScript()));}};this.initializePredefinedVisitorCode=()=>{const{predefinedVisitorCode:e,experiments:t,personalizations:o}=Kameleoon.Internals.configuration;if(e){const n=Kameleoon.Utils.readLocalData("kameleoonVisitorCode","COOKIE")||Kameleoon.Utils.readLocalData("kameleoonVisitorCode","LS");if(n==e)return;const i=this.storedData.Visitor.visits;if(i)i.slice(-1)[0].visitorCode=e;if(this.incomingStoredData)this.incomingStoredData["kameleoonVisitorCode"]=e;Kameleoon.Utils.saveVisitorCode(e);t.forEach((e=>{Kameleoon.Utils.eraseLocalData("kameleoonExperiment-"+e.id,null,"LS")}));o.forEach((e=>{Kameleoon.Utils.eraseLocalData("kameleoonPersonalization-"+e.id,null,"LS")}));}};this.initializeActions=()=>{if(Kameleoon.Internals.configuration.webExperimentationSetup){this.targetingSegments=Kameleoon.Utils.clone(Kameleoon.Internals.configuration.targetingSegments);this.targetingTriggers=Kameleoon.Utils.clone(Kameleoon.Internals.configuration.targetingTriggers||[]);this.variations=Kameleoon.Utils.clone(Kameleoon.Internals.configuration.variations);Kameleoon.Internals.configuration.experiments.forEach((e=>{this.Campaigns.addCampaign(new Experiment(e,this.incomingStoredData))}));Kameleoon.Internals.configuration.personalizations.forEach((e=>{this.Campaigns.addCampaign(new Personalization(e,this.incomingStoredData))}));}};this.initializeActionsAfterGatherer=()=>{if(Kameleoon.Internals.configuration.webExperimentationSetup)Personalization.setGlobalPersonalizationDeviation();};this.initializeIdleTimeListener=()=>{};this.initializeListeners=()=>{Kameleoon.Utils.domReady((()=>{this.domReady=!0;if(!0!==Kameleoon.Internals.configuration.disableEditorLaunchViaKeys)Kameleoon.Loader.enableKameleoonEditorListener();if(this.kameleoonSelectionIframeMode){const e=document.createElement("script");e.setAttribute("type","text/javascript");e.setAttribute("charset","utf-8");e.setAttribute("src","https://back-office-redesign."+Kameleoon.Internals.configuration.DOMAIN+"/get-script?type=selection");this.headNode.appendChild(e)}if(0==window.kameleoonLightIframe&&window.kameleoonIframeURL)if(this.Gatherer.startOfVisit)Kameleoon.Utils.setTimeout((()=>{const e=document.createElement("iframe");e.src=window.kameleoonIframeURL;e.id="kameleoonExternalIframe";e.style.cssFloat="left !important";e.style.opacity="0.0 !important";e.width="0px";e.height="0px";e.onload=()=>{e.parentNode.removeChild(e)};document.head.appendChild(e)}),5e3)}));if("touchend"==this.mouseDownEvent){Kameleoon.Utils.addEventListener(document,"touchmove",(e=>{this.touchMoveEvent=!0}));Kameleoon.Utils.addEventListener(document,"touchstart",(e=>{this.touchMoveEvent=!1}))}if(!this.iframeLocalStorage)window.addEventListener("storage",(e=>{const t=e.key?.split("-")??[""];let o=t[0];if(!o.startsWith("kameleoon"))return;let n;try{n=null==e.newValue?null:JSON.parse(e.newValue).value}catch(e){return}try{if(e.oldValue&&JSON.parse(e.oldValue).value===n)return}catch(e){}if("kameleoonData"===o&&t[1])o+="-"+t[1];const i={};switch(o){case"kameleoonExperiment":i.type=o;const e=t[1];i.experimentId=parseInt(e);let a;if(null==n)a=null;else{const e=n.split("/")[0];a=isNaN(e)?e:parseInt(e)}i.registeredVariationId=a;break;case"kameleoonGlobalPersonalizationExposition":i.type=o;i.active=null==n?null:"true"==n.split("/")[0];break;case this.dataKeyName:case"kameleoonSimulationVisitorData":i.type=o;i.value=null==n?null:n;break;case"kameleoonLegalConsent":i.type=o;i.saveLegalConsent=null==n?null:n;break}if(null!=i.type)Kameleoon.Utils.processStorageData(i)}),!1);if(Kameleoon.Internals.configuration.singlePageSupport)this.enableSinglePageSupport();};this.loadExternalRequests=()=>{this.Geolocation="function"===typeof KGeolocation?new KGeolocation:null;this.Weather="function"===typeof KWeather?new KWeather:null;this.IP="function"===typeof KIP?new KIP:null;};this.initProductRecommendation=()=>{};this.processPageLoaded=()=>{Kameleoon.Utils.removeBlockingStyleSheet();for(let e=0,t=this.variations.length;e{const e="adBlockerCheck";const t=Kameleoon.Utils.setInterval((()=>{let o=document.getElementById(e);if(null==o&&document.body){o=document.createElement("div");o.id=e;o.className="ad-placement";document.body.appendChild(o)}if(null!=o&&0==o.clientWidth){this.adBlocker=!0;Kameleoon.Utils.clearInterval(t)}}),250);const o=Kameleoon.Utils.setTimeout((()=>{Kameleoon.Utils.clearTimeout(o);const n=document.getElementById(e);if(null!=n)n.parentNode.removeChild(n);if(null==this.adBlocker){Kameleoon.Utils.clearInterval(t);this.adBlocker=!1}else Kameleoon.Gatherer.track(VisitEvent_AdBlocker)}),2e3);Kameleoon.Utils.addEventListener(window,"pageshow",(e=>{if(e.persisted)this.updateAfterPageCached()}));this.Visitor.updateFromStoredData(!1,!1,!1);if(!Kameleoon.Internals.configuration.requestsAfterConsent)this.loadExternalRequests();KMutationObserver.setMutationObserver();Kameleoon.Analyst.loadKameleoonFull((()=>{Kameleoon.Analyst.loadSimulation()}));Kameleoon.Analyst.Actions.processAllActions();Kameleoon.Targeting.processAllTargetings();Kameleoon.Analyst.Goals.run()};this.setupLocalData=e=>{Kameleoon.Utils.addEventListener(window,"message",Kameleoon.Utils.processMessageEvent,!1);if(this.iframeLocalStorage){this.immediateSaveActive=!0;this.externalIframe=document.getElementById("kameleoonExternalIframe")||window.kameleoonExternalIframe;this.postMessageOrigin=window.kameleoonIframeOrigin||"";this.postMessageCallbacks={};if(null==Kameleoon.Internals.configuration.externalIframeData)Kameleoon.Utils.postMessageToExternalIframe("retrieve",null,null,(t=>{this.incomingStoredData=t;e()}));else{this.incomingStoredData=Kameleoon.Internals.configuration.externalIframeData;e();delete Kameleoon.Internals.configuration.externalIframeData}}else{this.incomingStoredData=null;this.clearOutdatedStorage();e()}};this.updateAfterPageCached=()=>{this.pageCached=!0;if(this.iframeLocalStorage)Kameleoon.Utils.postMessageToExternalIframe("retrieve",null,null,(()=>{}));else{const e=Kameleoon.Utils.readLocalData(this.simulationMode?"kameleoonSimulationVisitorData":this.dataKeyName,"LS",!0);this.storedData.update(e);this.Visitor.updateFromStoredData(!1,!1,!1);Kameleoon.Gatherer.track(VisitEvent_Page);Kameleoon.Gatherer.track(VisitEvent_StaticData)}};this.clearOutdatedStorage=()=>{try{for(let e=0,t=localStorage.length;e(e.date||e.expirationDate))localStorage.removeItem(t)}}}catch(e){}};this.getSimulationMode=()=>{const e=null!=this.readFromStorageOrExternal("kameleoonSimulation","LS")||this.parameters["kameleoon-simulation"];return e?!0:!1};this.processSelectorPresence=({selector:e,slowQueue:t,pollingInterval:o,isDynamicElement:n,useAntiFlicker:i,callback:a})=>{const s=Kameleoon.Utils.querySelectorAll(e);const r=a;if(Kameleoon.Internals.runtime.querySelectorAllHasError)return;const l=t?Kameleoon.Internals.runtime.waitingSlowElementPresentObjects:Kameleoon.Internals.runtime.waitingElementPresentObjects;const m=t?Kameleoon.Internals.runtime.waitingSlowDynamicElements:Kameleoon.Internals.runtime.waitingDynamicElements;if(n)a=t=>{KMutationObserver.setMutationObserverSPA();const o=`data-kameleoon-dynamic-class-${Kameleoon.Utils.obtainRandomString(4)}`;const n=e=>{e.forEach((e=>e.setAttribute(o,"true")))};n(t);r(t);m.push({selector:e,attribute:o,callback:e=>{n(e);r(e)}})};if(s.length>0){Kameleoon.Utils.runProtectedFunction((()=>{a(s)}),!0);return}if(Kameleoon.Internals.runtime.cantUseMutationObserver||!i){const t=Kameleoon.Utils.setInterval((()=>{const o=Kameleoon.Utils.querySelectorAll(e);if(o.length>0){Kameleoon.Utils.clearInterval(t);Kameleoon.Utils.runProtectedFunction((()=>{a(o)}),!0)}}),o||250,!0);return}else{l.push({selector:e,callback:a,useAntiFlicker:i})}};this.pageStartTime=Date.now();this.dataKeyName="kameleoonData";if(Kameleoon.Internals.configuration.useMultipleSiteCodes){this.dataKeyName=this.dataKeyName+"-"+Kameleoon.Internals.configuration.siteCode;Utils.LOCAL_STORAGE_OBFUSCATED_KEYS[this.dataKeyName]=!0}this.Device=new Device;this.deviceType=this.Device.type;this.parameters=Kameleoon.Utils.parseParameters();this.beforeUnloadEvent="Phone"===this.deviceType&&"Safari"===this.Device.browser?"pagehide":"beforeunload";this.headNode=document.getElementsByTagName("head")[0];this.editorMode="true"==this.parameters.kameleoon;this.proxyMode="proxy."+Kameleoon.Internals.configuration.DOMAIN===window.location.hostname;this.disableCache="true"==this.parameters.kameleoonDisableCache||this.parameters.kameleoonVariationId;this.kameleoonSelectionIframeMode="true"==this.parameters.kameleoonSelectionIframeMode;this.useBroadcastChannel="function"===typeof window.BroadcastChannel;this.iframeLocalStorage=Kameleoon.Internals.configuration.useWideDomainSupport;this.useWideDomainSupport=Kameleoon.Internals.configuration.useWideDomainSupport||null!=window.kameleoonLightIframe;if(!window.kameleoonLightIframe)this.iframeLocalStorage=!1;if(!this.useBroadcastChannel)this.immediateSaveActive=!0;this.tabId=Kameleoon.Utils.secureSessionStorage("getItem","kameleoonTabId");if(!this.tabId){this.tabId=Kameleoon.Utils.obtainRandomString(8,Analyst.HEXADECIMAL_ALPHABET);this.tabIdCreated=!0}this.mouseDownEvent="ontouchend"in document.documentElement?"touchend":"mousedown";this.addedClasses={};this.addedIDs={};this.eventListeners=[];this.listenVariations=[];this.listenSpaCallbacks=[];this.waitingElementPresentObjects=[];this.waitingSlowElementPresentObjects=[];this.waitingDynamicElements=[];this.waitingSlowDynamicElements=[];this.variations=[];this.intervalIds={};this.targetingSegments=[];this.targetingTriggers=[];this.timeoutIds={};this.cantUseMutationObserver="undefined"==typeof MutationObserver;this.Campaigns=new Campaigns;this.Consent=new Consent;Kameleoon.Analyst.Goals.addList(Kameleoon.Internals.configuration.goals);if(e&&Kameleoon.Gatherer.Referrer&&Kameleoon.Gatherer.Referrer.isUpdated)this.prevSpaPage=Kameleoon.Gatherer.Referrer.obtain();try{if(window.self!==window.top)this.isIframe=!0}catch(e){}this.singlePageSupport=Kameleoon.Internals.configuration.singlePageSupport;this.enableRemoteVisitorSynchronization=Kameleoon.Internals.configuration.enableRemoteVisitorSynchronization&&(!Kameleoon.Internals.configuration.enableRemoteVisitorSynchronizationItpOnly||"Safari"===this.Device.browser);if(t?.localDataMap)this.localDataMap=t.localDataMap;Object.defineProperty(this,"experiments",{get(){return this.Campaigns.obtainCampaignsList(0)}});Object.defineProperty(this,"personalizations",{get(){return this.Campaigns.obtainCampaignsList(1)}});Object.defineProperty(this,"goals",{get:()=>Kameleoon.Analyst.Goals.getList()})}clear(){this.eventListeners.forEach((e=>{let t;if("window"==e.elementKey||"document"==e.elementKey)t="window"==e.elementKey?window:document;else{t=document.querySelector(`[kameleoonListener-${e.elementKey}=true]`);if(t)t.removeAttribute(`kameleoonListener-${e.elementKey}`)}if(t)t.removeEventListener(e.eventType,e.actionFunction,e.useCapture)}));this.waitingDynamicElements.forEach((e=>{Kameleoon.Utils.querySelectorAll(`[${e.attribute}=true]`).forEach((t=>{t.removeAttribute(e.attribute)}))}));for(const e in this.timeoutIds)Kameleoon.Utils.clearTimeout(parseInt(e));for(const e in this.intervalIds)Kameleoon.Utils.clearInterval(parseInt(e));this.RequestManager?.processRequests();this.storedData?.save(2);this.mutationObserver?.disconnect();this.mutationObserverSpa?.disconnect();try{this.broadcastSynchranization?.close()}catch{}if(Kameleoon.Targeting)Kameleoon.Targeting.clear?.();Kameleoon.Tracking?.clear?.();Kameleoon.Analyst.Actions?.clear?.();let e=Kameleoon.Utils.querySelectorAll("[id^='kameleoonElement'], [id*='kameleoonScenarioLayerBase'], [id^='kameleoonStyleSheet'], [class*='kameleoonWidget'], [class*='kameleoonInsert']");for(let t=0;t{this.simulationMode=this.getSimulationMode();this.storedData=new StoredData(this.incomingStoredData);this.Consent.setup();this.initializePredefinedVisitorCode();this.initializeActions();Kameleoon.Gatherer.run();this.initializeActionsAfterGatherer();this.executeGlobalScript();window.kameleoonQueue=new CommandQueue(window.kameleoonQueue);Kameleoon.Utils.sendKameleoonCustomEvent.call(window,"Started",{newVisitorCode:1===this.Visitor.visits.length});this.initializeListeners();this.setup();this.setupAfterLocalDataRetrieval=!0}))}}class Utils{constructor(){this.events=[];this.addParameterToURL=(e,t,n)=>{if(n)return e+(-1==e.indexOf("#")?"#":"&")+t;let a="";if(-1!=e.indexOf("#")){a=e.substr(e.indexOf("#"));e=e.substr(0,e.indexOf("#"))}e+=(-1==e.indexOf("?")?"?":"&")+t+a;return e};this.computeCurrentPageAbsoluteURLNoProxyMode=function(){let e=Kameleoon.Internals.runtime;if(null==e.currentPageAbsoluteURLNoProxyMode){if(e.proxyMode){let t=e.parameters.kameleoonExperimentId||e.parameters["kameleoon-experiment-id"];if(null!=t){let n=e.Campaigns.obtainCampaign(t,!0);if(n)e.currentPageAbsoluteURLNoProxyMode=n.baseURL}}if(null==e.currentPageAbsoluteURLNoProxyMode)e.currentPageAbsoluteURLNoProxyMode=window.location.href}return e.currentPageAbsoluteURLNoProxyMode};this.computeCurrentPageCanonicalURL=()=>{if(null==Kameleoon.Internals.runtime.currentPageCanonicalURL){let e=this.querySelectorAll('link[rel="canonical"]');if(e.length>0)Kameleoon.Internals.runtime.currentPageCanonicalURL=e[0].href}return Kameleoon.Internals.runtime.currentPageCanonicalURL};this.computeCurrentPageCleanRelativeURL=()=>{if(null==Kameleoon.Internals.runtime.currentPageCleanRelativeURL)Kameleoon.Internals.runtime.currentPageCleanRelativeURL=this.computeRelativeURL(this.computeCurrentPageCleanAbsoluteURL());return Kameleoon.Internals.runtime.currentPageCleanRelativeURL};this.computeIfSuffix=(e,t)=>{let n=e.length-t.length;let a=e.lastIndexOf(t,n);return a>=0&&a==n};this.computeRelativeURL=e=>{let t=document.createElement("a");t.href=e;return t.pathname+t.search+t.hash};this.computeStringSha256=e=>{let t=1,n,a=[],o=[];while(++t<18)for(n=t*t;n<312;n+=t)a[n]=1;function r(e,t){return Math.pow(e,1/t)%1*4294967296|0}for(t=1,n=0;t<313;)if(!a[++t]){o[n]=r(t,2);a[n++]=r(t,3)}function l(e,t){return e>>>t|e<<32-t}let i=o.slice(t=0),s=this.encodeUTF8(e),m=[],u=s.length,c=[],d,f,h;for(;t>2]|=(255&s.charCodeAt(t))<<8*(3-t++%4);u*=8;c[u>>5]|=128<<24-u%32;c[h=u+64>>5|15]=u;for(t=0;t>>10)+(0|m[n-7])+(l(f=m[n-15],7)^l(f,18)^f>>>3)+(0|m[n-16]);let e;d.unshift((f=(d.pop()+(l(e=d[4],6)^l(e,11)^l(e,25))+((e&d[5]^~e&d[6])+a[n])|0)+(0|m[n++]))+(l(u=d[0],2)^l(u,13)^l(u,22))+(u&d[1]^d[1]&d[2]^d[2]&u))}for(n=8;n--;)i[n]=d[n]+i[n]}for(s="";n<63;)s+=(i[++n>>3]>>4*(7-n%8)&15).toString(16);return s};this.computeURLNoKameleoonParameters=e=>{let t=!1;for(let n in Kameleoon.Internals.runtime.parameters)if(-1!=n.indexOf("kameleoon")){t=!0;e=e.replace(new RegExp(n+"="+Kameleoon.Internals.runtime.parameters[n]+"&?"),"")}return t?e.replace(/\?$/,""):e};this.computeURLRegExpNoKameleoonParameters=e=>e?e.replace(/(\\\?|&|#)kameleoon[^&#()]*/g,""):null;this.decodeString=e=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="";let a,o,r;let l,i,s,m;let u=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(u>4;o=(15&i)<<4|s>>2;r=(3&s)<<6|m;n+=String.fromCharCode(a);if(64!=s)n+=String.fromCharCode(o);if(64!=m)n+=String.fromCharCode(r)}n=this.decodeUTF8(n);return n};this.decodeUTF8=e=>{let t="";let n=0;let a=0,o=0,r;while(n191&&a<224){o=e.charCodeAt(n+1);t+=String.fromCharCode((31&a)<<6|63&o);n+=2}else{o=e.charCodeAt(n+1);r=e.charCodeAt(n+2);t+=String.fromCharCode((15&a)<<12|(63&o)<<6|63&r);n+=3}}return t};this.domReady=e=>{if("complete"==document.readyState||"interactive"==document.readyState)return e();else{let t=!1;this.addEventListener(document,"DOMContentLoaded",(()=>{if(t)return;t=!0;e()}),!1);this.addEventListener(window,"load",(()=>{if(t)return;t=!0;e()}),!1)}};this.encodeString=e=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let n="";let a,o,r,l,i,s,m;let u=0;e=this.encodeUTF8(e);while(u>2;i=(3&a)<<4|o>>4;s=(15&o)<<2|r>>6;m=63&r;if(isNaN(o))s=m=64;else if(isNaN(r))m=64;n=n+t.charAt(l)+t.charAt(i)+t.charAt(s)+t.charAt(m)}return n};this.encodeUTF8=e=>{e=e.replace(/\r\n/g,"\n");let t="";for(let n=0;n127&&a<2048){t+=String.fromCharCode(a>>6|192);t+=String.fromCharCode(63&a|128)}else{t+=String.fromCharCode(a>>12|224);t+=String.fromCharCode(a>>6&63|128);t+=String.fromCharCode(63&a|128)}}return t};this.forceNoFlicker=e=>{let t=document.createElement("style");t.setAttribute("id","kameleoonPageLoading");t.setAttribute("rel","stylesheet");t.setAttribute("type","text/css");t.setAttribute("media","screen");let n="";if("*"===e)n="html::after { content: ''; position: fixed; inset: 0; background: #fff; z-index: 2147483647; }";else n=e+" { visibility: hidden !important; background-image: none !important; }";t.appendChild(document.createTextNode(n));Kameleoon.Internals.runtime.headNode.appendChild(t)};this.getLocale=e=>{let t=Kameleoon.Gatherer.Language.obtainLocaleTag().substring(0,2);if(e&&"fr"!=t)t="en";return t};this.obtainComputedStyle=e=>window.getComputedStyle?.(e,"");this.obtainCurrentRootDomain=()=>{if(null==Kameleoon.Internals.runtime.currentRootDomain){const e=window.location.hostname.split(".");const t=e.length-1;const n="testRootDomain";const a="_detectRootDomain";let o=e[t];for(let r=t-1;r>=0;r--){o=e[r]+"."+o;this.createLocalData(a,n,1,o,"COOKIE",!1,void 0,!0);const t=this.readLocalData(a,"COOKIE",!1);if(t){this.eraseLocalData(a,o,"COOKIE");Kameleoon.Internals.runtime.currentRootDomain=o;break}}}return Kameleoon.Internals.runtime.currentRootDomain};this.obtainRandomString=(e,t=Analyst.CODE_ALPHABET)=>{let n=t.length;let a="";for(let o=0;o{let t=document.createElement("a");t.href=e;return t.hostname};this.processRedirect=(e,t,n)=>{if(window.location.href!=e){t=t||Kameleoon.Analyst.Actions.currentAction;let a=document.createElement("a");a.href=e;if(!Kameleoon.Internals.runtime.useWideDomainSupport&&-1==window.location.href.indexOf(a.protocol+"//"+a.hostname)){if(t)e=this.addParameterToURL(e,"kameleoonRedirect-"+t.id+"="+t.associatedVariation.id,!0)}else if(t)this.createLocalData("kameleoonRedirect-"+t.id,t.associatedVariation.id,1,null,null,!1,null,!0);if(window.location.href!=e){this.forceNoFlicker("*");this.createLocalData("kameleoonReferrer",Kameleoon.Gatherer.Referrer.obtain(),1/24,null,"COOKIE",!1);if(n)Kameleoon.Internals.runtime.redirectInProcess=!0;window.location.replace(e)}}};this.processStorageData=e=>{if(Kameleoon.Internals.runtime.setupAfterLocalDataRetrieval)switch(e.type){case"kameleoonExperiment":const t=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(e.experimentId,!0);if(t)t.registeredVariationId=e.registeredVariationId;break;case"kameleoonGlobalPersonalizationExposition":Kameleoon.Internals.runtime.personalizationsActive=e.active;break;case Kameleoon.Internals.runtime.dataKeyName:case"kameleoonSimulationVisitorData":if(e.type==Kameleoon.Internals.runtime.dataKeyName&&!Kameleoon.Internals.runtime.simulationMode||"kameleoonSimulationVisitorData"==e.type&&Kameleoon.Internals.runtime.simulationMode){if(Kameleoon.Internals.runtime.pageCached)Kameleoon.Internals.runtime.storedData.update(this.readLocalData(e.type,"LS",!0));else Kameleoon.Internals.runtime.storedData.update(JSON.parse(this.unobfuscateString(e.value)));Kameleoon.Internals.runtime.Visitor.updateFromStoredData(!1,!1,!1)}break;case"kameleoonLegalConsent":if(e.saveLegalConsent){let t=e=>e?"enable":"disable";if(null!=e.saveLegalConsent.AB_TESTING){let n=t(e.saveLegalConsent.AB_TESTING);Kameleoon.Internals.runtime.Consent[n]("AB_TESTING",!0)}if(null!=e.saveLegalConsent.PERSONALIZATION){let n=t(e.saveLegalConsent.PERSONALIZATION);Kameleoon.Internals.runtime.Consent[n]("PERSONALIZATION",!0)}}break}};this.querySelectorAll=(e,t)=>{Kameleoon.Internals.runtime.querySelectorAllHasError=!1;let n=!1,a,o=[],r=[];if(null==t)t=document;let l=e.match(/#([0-9]+.*)(?: |$)/);if(l){let t=e.charAt(1);e=e.replace("#"+t,"#\\3"+t+" ")}if(""!==e){if(-1!==e.indexOf("[")&&-1===e.indexOf("']")&&-1===e.indexOf('"]')){let t=e.split(/(?=\.)|(?=#)|(?=\[)/),n,a,o;t.forEach((function(t){if("["===t[0]&&-1===t.indexOf("']")&&-1===e.indexOf('"]')&&-1!==e.indexOf("=")){n=t.split(/=(.+)?/);a=n[1];a=a.substring(0,a.length-1);o=n[0]+"='"+a+"']";e=e.replace(t,o)}}))}if(-1!==e.indexOf(":contains")){n=!0;a=this.treatContainsSelector(e);e=a.newSelector}if(t&&t.querySelectorAll)if(-1!==e.indexOf(":eq"))o=this.treatEqSelector(e,t);else try{o=t.querySelectorAll(e)}catch(e){Kameleoon.Internals.runtime.querySelectorAllHasError=!0;o=[]}for(let e=0,t=o.length;e{try{e()}catch(e){if(t)console.log(e);else this.Logger.send(e,"kameleoon.js");if(Kameleoon.Internals.runtime&&t)Kameleoon.Internals.runtime.processPageLoaded()}};this.runProtectedScript=(e,t,n)=>{if(n)return n();if(e){let n=null;try{let a=t?"//# sourceURL="+t:"";n=eval.call(window,"(function () {\n"+e+"\n})();"+a)}catch(e){n=null;console.log(e)}return n}return null};this.saveVisitorCode=(e,t=!0)=>{if(Kameleoon.Internals.configuration.useWideDomainSupport||Kameleoon.Internals.configuration.useVisitorCodeInLocalStorage)this.createLocalData("kameleoonVisitorCode",e,Utils.MAX_STORAGE_DAYS,null,"LS");if(t)this.createLocalData("kameleoonVisitorCode",e,Utils.MAX_STORAGE_DAYS,null,"COOKIE")};this.seededRandom=(e,t)=>{let n;if(t){n=this.computeStringSha256(e);return parseInt(n,16)/Math.pow(2,256)}n=this.computeStringHash(e);n=(9301*Math.abs(n)+49297)%233280;return n/233280};this.treatEqSelector=(e,t)=>{if(void 0===e)return null;let n=e.split(/\:eq\([0-9]+\)/g);let a=e.match(/(?!\:eq\()[0-9]+/g)||[];let o=null==t?document:t;for(let t=0;t"===n[t].charAt(0))n[t]=n[t].substring(1,e.length).trim();if(null==o||""==n[t].trim())break;if(t>a.length-1)o=o.querySelectorAll(n[t]);else o=o.querySelectorAll(n[t])[a[t]]}if(null==o)return[];if(void 0==o.length)o=[o];let r=Kameleoon.Utils.querySelectorAll(e.replace(/\:eq\([0-9]+\)/g,""));let l=[];for(let e=0;e{let n=t.split("=");try{e[decodeURIComponent(n[0])]=n[1]?decodeURIComponent(n[1]):null}catch(t){e[unescape(n[0])]=n[1]?unescape(n[1]):null}}))}return e}performBeaconServerCall(e,t,n,a){let o=new XMLHttpRequest;o.open("GET",e,!0);if(t)o.onreadystatechange=function(e){t.bind(o)(e.target)};if(n){o.onerror=function(e){n.bind(o)(e.target)};o.ontimeout=function(e){n.bind(o)(e.target)}}o.timeout=a||15*60*1e3;o.send()}postMessageToExternalIframe(e,t,n,a){const o=JSON.stringify({type:e,key:t??void 0,data:n??void 0,callbackId:this.addPostMessageCallback(a)});if(!Kameleoon.Internals.runtime.externalIframe||!Kameleoon.Internals.runtime.externalIframe.contentWindow){if(window.kameleoonIframeURL){let e=document.createElement("iframe");e.src=window.kameleoonIframeURL;e.id="kameleoonExternalIframe";e.style.cssFloat="left !important";e.style.height="0px !important";e.style.opacity="0.0 !important";e.style.width="0px !important";e.onload=()=>{Kameleoon.Internals.runtime.externalIframe=e;Kameleoon.Internals.runtime.externalIframe.contentWindow.postMessage("kameleoon"+o,"*")};document.head.appendChild(e)}}else Kameleoon.Internals.runtime.externalIframe.contentWindow.postMessage("kameleoon"+o,"*")}processMessageEvent(e){if("string"!==typeof e.data)return;if("obtainTagCommanderVariableNames"==e.data){let t=[];if(window.tc_vars)for(let e in window.tc_vars)t.push(e);if(!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker))e.source.postMessage("tagCommanderVariableNames"+JSON.stringify(t),e.origin);return}if(0==e.data.indexOf("checkKameleoonScriptPresent")){if("https://back-office."+Kameleoon.Internals.configuration.DOMAIN==e.origin){let t="";let n=e.data.replace("checkKameleoonScriptPresent","");Kameleoon.Utils.runProtectedScript(n);if(!(e.source instanceof MessagePort)&&!(e.source instanceof ServiceWorker))e.source.postMessage(t,e.origin)}return}if(Kameleoon.Internals.runtime.iframeLocalStorage&&Kameleoon.Internals.runtime.postMessageOrigin==e.origin)try{let t=JSON.parse(e.data);if(t.kameleoonMessage){if(t.callbackId){let e=Kameleoon.Internals.runtime.postMessageCallbacks[t.callbackId];delete Kameleoon.Internals.runtime.postMessageCallbacks[t.callbackId];e&&e(t.data)}if(null!=t.type)Kameleoon.Utils.processStorageData(t)}}catch(e){}}readLocalData(e,t,n){let a="COOKIE"!=t;let o=(new Date).getTime();try{if(!Kameleoon.Internals.runtime.Consent.hasGlobalConsent()){let t=Kameleoon.Internals.runtime.localDataMap;let n=a?"LS":"COOKIE";if(null!=t&&null!=t[n]&&null!=t[n][e]){let a=t[n][e];if(o-24*a.days*60*60*1e3>=a.creationTime)delete t[n][e];else return a.value}}if(a){let t=localStorage.getItem(e);if(!t)return null;t=JSON.parse(t);if(Utils.LOCAL_STORAGE_OBFUSCATED_KEYS[e])t.value=JSON.parse(this.unobfuscateString(t.value));if(o>(t.date||t.expirationDate)){localStorage.removeItem(e);return null}return t.value}else{let t=null;let a=document.cookie.split(";");for(let o=0,r=a.length;oe[0]+"="+e[1])).join("&")}treatContainsSelector(e){let t={},n;function a(e,t){let n=!1;if(t.textContent&&-1!==t.textContent.indexOf(e))n=!0;return n}n=e.match(/:contains\(['"]([\s\S]+)['"]\)/);t.containText=n[1];t.newSelector=e.replace(n[0],"");if(""===t.newSelector)t.newSelector="*";t.check=a;return t}unobfuscateString(e){let t="";for(let n=0,a=e.length;n{a=null;e()}),t)}}}Utils.LOCAL_STORAGE_OBFUSCATED_KEYS={kameleoonData:!0,kameleoonSimulationVisitorData:!0};Utils.MAX_STORAGE_DAYS=365;class Browser{constructor(e){this.browsers=e}obtain(){let e=Kameleoon.Internals.runtime.Device.browser;if("Internet Explorer"==e||"Microsoft Edge"==e)e="Explorer";return e}obtainIndex(){let e=this.obtain()||"";let r=e.toUpperCase();for(let e in this.browsers)if(this.browsers[e].name.toUpperCase()==r)return parseInt(e);return null}}class CustomData{constructor(e){this.inheritVisitorScopeAndTrackVisitorDataFromServer=()=>{if(Kameleoon.Internals.runtime.Visitor.visits.length>1){const e=Kameleoon.Internals.runtime.Visitor.currentVisit.customData;const t=Kameleoon.Internals.runtime.Visitor.visits[Kameleoon.Internals.runtime.Visitor.visits.length-2].customData;for(const a in this.customData){const i=this.customData[a].scope;if("VISITOR"==i&&null==e[a]){const e=t[a];if(null!=e)this.register(parseInt(a),{value:e,overwrite:!0},!0)}}Kameleoon.Internals.runtime.Visitor.saveToStoredData()}};this.register=(e,t,a)=>{const i=this.customData[e];if(i){let n={};const s=t.value;if(null==s)return;const r=this.getOverwriteValue(i,t.overwrite);if(a)n=s;else{const e=Array.isArray(s)?s:[s];for(const t of e)if(null!=t&&(t.toString().length<=VisitEvent_CustomData.MAX_SUM_CUSTOM_DATA_VALUES_LENGTHES_IN_A_REQUEST||i.localOnly))n[t]=1}if(r||!Kameleoon.Utils.testEmptyMap(n)){Kameleoon.Utils.sendKameleoonCustomEvent.call(window,"CustomDataSet",{name:i.name,value:s});Kameleoon.Utils.sendKameleoonCustomEvent("Internals",{type:"customData/set",name:i.name,value:s});Kameleoon.Gatherer.track(VisitEvent_CustomData,{index:e,customData:i,overwrite:r,valueToAdd:n,value:s})}}};this.customDataVisitsRequest=e=>{};this.run=()=>{Kameleoon.Internals.runtime.Visitor.currentVisit.clearCustomDataPage();Kameleoon.Utils.clearInterval(this.intervalId);if(Kameleoon.Internals.runtime.Gatherer.startOfVisit)this.inheritVisitorScopeAndTrackVisitorDataFromServer();this.firstTimeCheck=(new Date).getTime();this.intervalId=Kameleoon.Utils.setInterval(this.obtain.bind(this),200,!0);Kameleoon.Utils.setTimeout((()=>{Kameleoon.Utils.clearInterval(this.intervalId)}),3e3);Kameleoon.Utils.setInterval(this.obtain.bind(this),3e3,!1)};this.customData=e}parseNumberValue(e,t){switch(e){case-2:return"true"===t;case-1:return t;default:return parseFloat(t)}}getOverwriteValue(e,t){if(null!=t)return t;return"COUNT_LIST"===e.type||"LIST"===e.type||"PAGE"===e.scope?!1:!0}obtainParsedValue(e,t){const a=this.customData[e];switch(a.type){case"COUNT_LIST":const e=[];for(const a in t)e.push({value:a,count:t[a]});return e;case"LIST":const i=[];for(const e in t)i.push(e);return i;default:return this.parseNumberValue(a.format,Object.keys(t)[0])}}obtain(){for(const e in this.customData)if(!this.customData[e].treated){const t=parseInt(e);const a=this.obtainValueMap(t,this.customData[e]);if(a)this.register(t,a)}}obtainValueFromPath(e,t){return e.match(/[^'\]\[\.\"]+/gi).reduce(((e,t)=>e&&e[t]),t)}obtainValueMap(e,t){let a=null;if(null!=t&&!t.disabled){const i=this.getOverwriteValue(t,null);switch(t.method){case"GTM":if(window.dataLayer&&t.variableName)for(let e=window.dataLayer.length-1;e>=0;--e){const n=this.obtainValueFromPath(t.variableName,window.dataLayer[e]);if(null!=n){a={value:n,overwrite:i};break}}break;case"TC":if(window.tc_vars&&t.variableName){let e=this.obtainValueFromPath(t.variableName,window.tc_vars);if("string"==typeof e&&0==e.length)e=null;if(null!=e){a={value:e,overwrite:i};break}}break;case"ADOBE_ANALYTICS":if(window._satellite&&window._satellite.getVar&&t.variableName){const e=window._satellite.getVar(t.variableName);if(null!=e){a={value:e,overwrite:i};break}}break;case"CUSTOM_CODE":a=Kameleoon.Utils.runProtectedScript(t.customEvalCode,"kameleoonCustomDataScript-"+e+".js");break;default:break}}if(null!=a){t.treated=!0;const i=Kameleoon.Internals.runtime.Visitor.currentVisit.customData[e];const n=a.value;if(null!=n){const e=t.type;if("LIST"==e||"COUNT_LIST"==e||null==i||Object.keys(i)[0]!=n.toString()||Kameleoon.Internals.configuration.enableHistoryReconciliation&&t.mappingIdentifier&&null==Kameleoon.Internals.runtime.storedData.obtainField("Gatherer","visitsRequestSuccess"))return a}}return null}}class KeyPage{constructor(e){this.keyPages=e}obtainIndexes(){const e=[];if(0==e.length)e.push(null);return e}}class Language{constructor(){this.DEFAULT_LOCALE_LANGUAGE_TAG="en"}obtainLocaleTag(){return navigator&&navigator.language||this.DEFAULT_LOCALE_LANGUAGE_TAG}}class OperatingSystem{constructor(e){this.oss=e}obtainIndex(){const e=this.obtain().toUpperCase();for(const s in this.oss)if(this.oss[s].name.toUpperCase()==e)return parseInt(s);return null}obtain(){const e=(Kameleoon.Utils.bowser.parsedResult||Kameleoon.Utils.bowser.parse(navigator.userAgent)).os.name;switch(e){case"Windows Phone":case"iOS":case"Android":case"Linux":case"Windows":return e;case"macOS":return"Tablet"==Kameleoon.Internals.runtime.Device.type?"iOS":"Mac";default:return"Other"}}}class Referrer{constructor(e){this.referrers=e;this.referrer=Kameleoon.Internals.runtime.prevSpaPage||document.referrer;const t="kameleoonReferrer";const r=Kameleoon.Utils.readLocalData(t,"COOKIE");if(r){this.referrer=r;Kameleoon.Utils.eraseLocalData(t,null,"COOKIE")}}obtainCorrected(e){switch(this.obtainType(e)){case 0:case 1:return null;default:return this.obtain()}}update(e){this.isUpdated=!0;this.referrer=e}obtain(){return this.referrer}obtainDetectionMatches(e){let t=this.obtainDetectionPartMatches(e.method,e.parameters);if(e.and)t=t&&this.obtainDetectionPartMatches(e.andMethod,e.andParameters);return t}obtainDetectionPartMatches(e,t){try{switch(e){case 0:return new RegExp(t).test(this.obtain());case 1:const e=new RegExp(t);return e.test(Kameleoon.Utils.computeCurrentPageCleanAbsoluteURL())||e.test(Kameleoon.Utils.computeCurrentPageCleanRelativeURL());default:return!0===Kameleoon.Utils.runProtectedScript(t)}}catch(e){console.log(e);return!1}}obtainIndexes(e){switch(this.obtainType(e)){case 0:case 1:return[0];default:let e=[];let t=Number.NEGATIVE_INFINITY;for(const r in Kameleoon.Internals.runtime.Gatherer.configuration.referrers){const n=Kameleoon.Internals.runtime.Gatherer.configuration.referrers[r];if(this.obtainMatches(n)){let a=n.priority;if(null==a)a=Number.NEGATIVE_INFINITY;if(a>=t){if(a>t){e=[];t=a}e.push(parseInt(r)+1)}}}if(0==e.length)e.push(null);return e}}obtainIsIgnored(e){return!1}obtainMatches(e){const t=e.detections;for(let e=0;e1)return 1;return 3}}class StoredData{constructor(e){this.Gatherer={};this.Runtime={};this.Vars=Kameleoon.Utils.readLocalData("kameleoonVars","LS")||{};this.Visitor={};this.canSave=!1;if(e){let a="";if(e[Kameleoon.Internals.runtime.dataKeyName]){a=e[Kameleoon.Internals.runtime.dataKeyName];if(e.Kameleoon)Kameleoon.Utils.eraseLocalData("kameleoonData",null,"LS")}else if(e["kameleoonData"])a=e["kameleoonData"];if(Kameleoon.Internals.runtime.simulationMode){const t=e["kameleoonDataSimulation"]||e["kameleoonSimulationVisitorData"];a=t??""}let t=Kameleoon.Utils.unobfuscateString(a);let n=t&&JSON.parse(t)||{};this.Gatherer=n.Gatherer||{};this.Runtime=n.Runtime||{};this.Vars=n.Vars||e["kameleoonVars"]||{};this.Visitor=n.Visitor||{}}else{let e=Kameleoon.Utils.readLocalData("kameleoonData","LS");if(Kameleoon.Internals.configuration.useMultipleSiteCodes){let a=Kameleoon.Utils.readLocalData(Kameleoon.Internals.runtime.dataKeyName,"LS",!0);if(a)e=a;Kameleoon.Utils.eraseLocalData("kameleoonData",null,"LS")}if(Kameleoon.Internals.runtime.simulationMode){const a=Kameleoon.Utils.readLocalData("kameleoonDataSimulation","LS",!0);const t=Kameleoon.Utils.readLocalData("kameleoonSimulationVisitorData","LS",!0);e=a||t}if(e){this.Gatherer=e.Gatherer||{};this.Runtime=e.Runtime||{};this.Vars=e.Vars||this.Vars||{};this.Visitor=e.Visitor||{}}}Kameleoon.Utils.eraseLocalData("kameleoonVars",null,"LS");for(let e in this.Vars)if(Kameleoon.Internals.runtime.pageStartTime>this.Vars[e].date)delete this.Vars[e];Kameleoon.Utils.setInterval((()=>{if(this.canSave){this.save(2);this.canSave=!1}}),1e3);this.processTabSynchronization();let a=0;const t=e=>{const t=Date.now();if(e||t-a>100){a=t;this.save(2)}};Kameleoon.Utils.addEventListener(window,"pagehide",(()=>{let e=!1;if(Kameleoon.Internals.runtime.isIframe){const a=Kameleoon.Utils.readLocalData(Kameleoon.Internals.runtime.simulationMode?"kameleoonSimulationVisitorData":Kameleoon.Internals.runtime.dataKeyName,"LS");if(a){e=!0;this.update(a)}}t(e)}));Kameleoon.Utils.addEventListener(document,"visibilitychange",(()=>{if("hidden"===document.visibilityState&&!Kameleoon.Internals.runtime.isIframe)t()}))}processTabSynchronization(){if(!Kameleoon.Internals.runtime.useBroadcastChannel)return;try{const e=Kameleoon.Internals.runtime.broadcastSynchranization=new BroadcastChannel("kameleoon_tab_sync");const a=Kameleoon.Internals.runtime.tabId;const t=t=>{e.postMessage({type:t,from:a})};e.onmessage=e=>{const{type:n,from:i}=e.data||{};if(i===a&&2!==n)return;switch(n){case 0:Kameleoon.Internals.runtime.immediateSaveActive=!0;t(1);break;case 1:if(!Kameleoon.Internals.runtime.immediateSaveActive){Kameleoon.Internals.runtime.immediateSaveActive=!0;if(!Kameleoon.Internals.runtime.isReloaded)this.save(1)}break;case 2:Kameleoon.Internals.runtime.immediateSaveActive=!0;break}};if(Kameleoon.Internals.runtime.isIframe){Kameleoon.Internals.runtime.immediateSaveActive=!0;t(2)}t(0);Kameleoon.Utils.addEventListener(window,"pagehide",(e=>{if(e.persisted&&Kameleoon.Internals.runtime?.broadcastSynchranization){Kameleoon.Internals.runtime.broadcastSynchranization?.close();Kameleoon.Internals.runtime.broadcastSynchranization=null}}));Kameleoon.Utils.addEventListener(window,"pageshow",(e=>{if(e.persisted)Kameleoon?.Internals?.runtime?.storedData?.processTabSynchronization?.()}))}catch(e){}}obtainField(e,a,t){return this[e][a]??t??null}resetForStartOfVisit(){this.Runtime={}}saveField(e,a,t){this[e][a]=t;this.save(0)}save(e){const a=2===e||Kameleoon.Internals.runtime.immediateSaveActive&&1===e;if(a)Kameleoon.Utils.createLocalData(Kameleoon.Internals.runtime.simulationMode?"kameleoonSimulationVisitorData":Kameleoon.Internals.runtime.dataKeyName,this,Kameleoon.Internals.runtime.simulationMode?1/24:Utils.MAX_STORAGE_DAYS,null,"LS",!0);else this.canSave=!0}update(e){this.Gatherer=e.Gatherer||this.Gatherer;this.Runtime=e.Runtime||this.Runtime;this.Vars=e.Vars||this.Vars;this.Visitor=e.Visitor||this.Visitor}}class VisitEvent{constructor(e){this.visitEvent=e}track(e){const t=()=>{const t=new this.visitEvent(e);Kameleoon.Internals.runtime.Visitor.saveToStoredData();if((!e||!e.notTrack&&!t.notTrack)&&Kameleoon.Internals.configuration.track)Kameleoon.Internals.runtime.RequestManager.addRequest(t);Kameleoon.Internals.runtime.storedData.save(this.visitEvent.save)};if(!Kameleoon.Internals.runtime.Visitor.currentVisit.isVisitFinished())t();else{Kameleoon.Internals.runtime.Visitor=new Visitor;Kameleoon.Gatherer.track(VisitEvent_Page);Kameleoon.Gatherer.track(VisitEvent_StaticData);Kameleoon.Gatherer.CustomData.run();Kameleoon.Internals.runtime.gathererRun=!0;t()}}}class VisitEvent_Main{constructor(t){this.obtainRequestData=()=>{let t="eventType="+this.eventType;for(const e in this){if("function"==typeof this[e]||VisitEvent_Main.NOT_TRACK_FIELD.has(e))continue;t+=`&${e}=${this.addValueParameter(this[e])}`}return t};this.addValueParameter=t=>{const e=t=>{try{return encodeURIComponent(t)}catch(e){return t}};if("object"==typeof t)return e(JSON.stringify(t));else if("string"==typeof t)return e(t);return t};this.time=(new Date).getTime();this.nonce=Kameleoon.Utils.obtainRandomString(VisitEvent_Main.NONCE_LENGTH,Analyst.HEXADECIMAL_ALPHABET);Kameleoon.Internals.runtime.Visitor.currentVisit.addEvent(this.time)}}VisitEvent_Main.NONCE_LENGTH=16;VisitEvent_Main.NOT_TRACK_FIELD=new Set(["eventType","time","notTrack","type","save"]);class VisitEvent_Activity extends VisitEvent_Main{constructor(){super();this.eventType="activity";this.clicks=Kameleoon.Internals.runtime.Gatherer.clicks;Kameleoon.Internals.runtime.Visitor.currentVisit.addClicks(this.clicks);Kameleoon.Internals.runtime.Gatherer.active=!1;Kameleoon.Internals.runtime.Gatherer.clicks=0}static initialize(){let e=()=>{Kameleoon.Internals.runtime.Gatherer.active=!0};let t=()=>{e();Kameleoon.Internals.runtime.Gatherer.clicks++};Kameleoon.Utils.addEventListener(document,"mousemove",e,!1);Kameleoon.Utils.addEventListener(document,"scroll",e,!1);Kameleoon.Utils.addEventListener(document,"click",t,!1);Kameleoon.Utils.setInterval((()=>{if(Kameleoon.Internals.runtime.Gatherer.active)Kameleoon.Gatherer.track(this)}),this.ACTIVITY_TRACKING_INTERVAL,!0)}}VisitEvent_Activity.ACTIVITY_TRACKING_INTERVAL=15*1e3;VisitEvent_Activity.save=0;class VisitEvent_AdBlocker extends VisitEvent_Main{constructor(){super();this.eventType="adBlocker";Kameleoon.Internals.runtime.Visitor.currentVisit.addAdBlocker()}}VisitEvent_AdBlocker.save=0;class VisitEvent_Experiment extends VisitEvent_Main{constructor(i){super();this.eventType="experiment";this.id=i.id;this.variationId=i.variationId;this.notTrack=i.notTrack;if(null==this.variationId)this.notTrack=!0;if(i.notSave)return;Kameleoon.Internals.runtime.Visitor.currentVisit.addExperiment(this.time,this.id,this.variationId)}}VisitEvent_Experiment.save=1;class VisitEvent_Personalization extends VisitEvent_Main{constructor(i){super();this.eventType="personalization";this.id=i.id;this.variationId=i.variationId;this.notTrack=i.notTrack;if(0==this.variationId&&i.unexpositionCause)this.unexpositionCause=i.unexpositionCause;Kameleoon.Internals.runtime.Visitor.currentVisit.addPersonalization(this.time,this.id,i.originalVariationId)}}VisitEvent_Personalization.save=1;class VisitEvent_Conversions extends VisitEvent_Main{constructor(e){super();this.eventType="conversion";this.goalId=e.goalId;this.negative=!0===e.negative;let t,i=!1;let n=Kameleoon.Internals.runtime.storedData.obtainField("Gatherer","revenuesByGoalId",{});let s=n[this.goalId];if(this.negative)if(s&&s.length>0){t=s.splice(-1)[0];if(0==s.length)delete n[this.goalId]}else i=!0;else{t=e.revenue;if(isNaN(t))t=0;if(!s)s=[];s.push(t);n[this.goalId]=s.splice(-10)}this.revenue=t;if(!i){Kameleoon.Internals.runtime.storedData.saveField("Gatherer","revenuesByGoalId",n);Kameleoon.Internals.runtime.Visitor.currentVisit.addConversions(this.goalId,1,this.revenue,this.negative);}if(e.metadata){const t={};for(const i in e.metadata){const n=e.metadata[i];const s=Array.isArray(n)?n:[n];t[i]=s.map((e=>e.toString()))}this.metadata=t}}}VisitEvent_Conversions.save=1;class VisitEvent_CustomData extends VisitEvent_Main{constructor(t){super();this.eventType="customData";this.index=t.index;this.overwrite=t.overwrite||!1;this.notTrack=t.value.length>VisitEvent_CustomData.MAX_SUM_CUSTOM_DATA_VALUES_LENGTHES_IN_A_REQUEST||t.customData.localOnly;this.valuesCountMap=t.valueToAdd;this.mappingIdentifier=1==t.customData.mappingIdentifier?"true":"false";Kameleoon.Internals.runtime.Visitor.currentVisit.addCustomData(this.index,this.valuesCountMap,this.overwrite)}}VisitEvent_CustomData.MAX_SUM_CUSTOM_DATA_VALUES_LENGTHES_IN_A_REQUEST=1e3;VisitEvent_CustomData.save=1;class VisitEvent_Geolocation extends VisitEvent_Main{constructor({city:t,country:i,latitude:o,longitude:e,postalCode:n,region:s}){super();this.eventType="geolocation";this.city=t;this.country=i;this.latitude=o;this.longitude=e;this.postalCode=n;this.region=s;Kameleoon.Internals.runtime.Visitor.currentVisit.addGeolocation({city:t,country:i,latitude:o,longitude:e,postalCode:n,region:s})}}VisitEvent_Geolocation.save=0;class VisitEvent_Page extends VisitEvent_Main{constructor(){super();this.eventType="page";const e=Kameleoon.Utils.computeCurrentPageCleanAbsoluteURL();const r=document.title;const t=Kameleoon.Utils.computeCurrentPageCanonicalURL();const i=Kameleoon.Gatherer.Referrer.obtainCorrected(Kameleoon.Internals.runtime.Gatherer.startOfVisit);this.href=e&&e.slice(0,Kameleoon.Gatherer.MAX_HREF_LENGTH_IN_A_REQUEST);this.title=r.slice(0,Kameleoon.Gatherer.MAX_PAGE_TITLE_LENGTH_IN_A_REQUEST);this.keyPagesIndices=Kameleoon.Gatherer.KeyPage.obtainIndexes();this.referrersIndices=Kameleoon.Gatherer.Referrer.obtainIndexes(Kameleoon.Internals.runtime.Gatherer.startOfVisit);if(t)this.canonicalHref=t;if(null!=i)this.referrerHref=i;Kameleoon.Internals.runtime.Visitor.currentVisit.addPage(this.time,e,this.keyPagesIndices,this.referrersIndices)}}VisitEvent_Page.save=2;class VisitEvent_Product extends VisitEvent_Main{constructor(t){super();this.eventType="product";this.ean=t.ean;Kameleoon.Internals.runtime.Visitor.currentVisit.addProduct(this.ean)}}VisitEvent_Product.save=0;class VisitEvent_StaticData extends VisitEvent_Main{constructor(){super();this.eventType="staticData";this.obtainInfluences=(e,i)=>{let t={experiments:{},personalizations:{}};let n=e=>{for(let i in e)if(e[i][1]<0||"-1"==i||null==e[i][0]||"null"==e[i][0])delete e[i];return e};e.forEach((({ExperimentActivations:e,PersonalizationActivations:n})=>{for(let n in e){let s=e[n];if(s.influence){let e=s.influence-(i-s.times.slice(-1)[0]);t.experiments[n]=[parseInt(s.associatedVariationID),e]}}for(let e in n){let s=n[e];if(s.influence){let n=s.influence-(i-s.times.slice(-1)[0]);t.personalizations[e]=[1,n]}}}));this.experimentInfluences=n(t.experiments);this.personalizationInfluences=n(t.personalizations)};const{Visitor:e,Device:i}=Kameleoon.Internals.runtime;const{Browser:t,OperatingSystem:n,Language:s}=Kameleoon.Gatherer;this.timeSincePreviousVisit=e.obtainTimeSincePreviousVisit();this.browser=t.obtain();this.browserIndex=t.obtainIndex();this.browserVersion=i.browserVersion;this.os=n.obtain();this.osIndex=n.obtainIndex();this.screenWidth=i.screenWidth;this.screenHeight=i.screenHeight;this.localeLanguageTag=s.obtainLocaleTag();this.deviceType=i.type.toLocaleUpperCase();this.visitNumber=e.currentVisit.visitNumber;this.obtainInfluences(e.visits,e.currentVisit.startDate)}}VisitEvent_StaticData.save=0;class VisitEvent_TargetingSegments extends VisitEvent_Main{constructor(t){super();this.eventType="targetingSegment";this.id=t.id;Kameleoon.Internals.runtime.Visitor.currentVisit.addTargetingSegment(this.time,this.id)}}VisitEvent_TargetingSegments.save=0;class CommandQueue{constructor(e,s){this.executeCommand=e=>{try{if(e.command)e=e.command;if("function"===typeof e)e();else{const s=e[0];const o=s.split(".");let t;let m;if("Kameleoon"!=o[0]){t=Kameleoon.API;m=Kameleoon.API[o[0]]}else m=Kameleoon.API[o[2]];o.forEach((e=>{if(null==t)t=window[e];else t=t[e]}));t.apply(m,Array.prototype.slice.call(e,1))}}catch(e){console.log(e)}};const o="IMMEDIATE";this.commands=e&&e.forEach?e:[];this.commands.push=e=>{if(s==o)e.level==s?this.executeCommand(e):this.commands.unshift(e);else this.executeCommand(e)};const t=[];if(s==o)for(let e=this.commands.length-1;e>=0;e--){const s=this.commands[e];if(s.level===o){t.push(s);this.commands.splice(e,1)}}else{this.commands.forEach((e=>{t.push(e)}));this.commands.splice(0,this.commands.length)}t.forEach(this.executeCommand);return this.commands}}class Actions{constructor(){this.campaignsListenerQueue=[];this.associateActionAndVariation=(e,n,i)=>{let t=!0;let o=!0;if(0===i)o=!1;else if(1===i)t=!1;if(null===n)e.trackingPerformed=!0;const a=Kameleoon.Internals.runtime.variations.filter((e=>e.id==n))[0];let s="Reference";if(e&&e.variations)e.variations.forEach((function(e,i){if(e.id&&e.name&&e.id==n)s=e.name}));const r=e.associatedVariation;if(e&&r&&n==r.id)s=r.name;if(e&&t)e.associatedVariation={id:n,name:s};if(e&&o&&!e.displayedVariation)e.associationMade=!1;if(a){if(e&&(Kameleoon.Internals.runtime.simulationMode&&-1==e.id||!e.associationMade)){if(t){e.associatedVariation=a;e.associationMade=!0}a.actionId=e.id;if(o)e.displayedVariation=new Variation(a)}}else{e.displayedVariation={id:n,name:s};}};this.stopCampaignListener=()=>{if(null!=this.campaignsListenerIntervalId){Kameleoon.Utils.clearInterval(this.campaignsListenerIntervalId);this.campaignsListenerIntervalId=null}};this.tickCampaignListener=()=>{const e=this.campaignsListenerQueue;if(0===e.length){this.stopCampaignListener();return}this.campaignsListenerQueue=[];this.process(e)};this.startCampaignListenerIfNeeded=()=>{if(null!=this.campaignsListenerIntervalId)return;this.campaignsListenerIntervalId=Kameleoon.Utils.setInterval(this.tickCampaignListener,Kameleoon.Internals.runtime.PAGE_LOADING_POLL_DELAY)};this.clear=()=>{this.campaignsListenerQueue=[];this.campaignsListenerIntervalId=null};this.initCampaignListener=()=>{if(0===this.campaignsListenerQueue.length){this.stopCampaignListener();return}this.startCampaignListenerIfNeeded()}}checkCapping(e,n,i,t,o){if(null!=t.expositionFrequencySameVisit&&Kameleoon.Internals.runtime.Visitor.obtainActionNumberActivations(n,i,null,o,!0,!1,!1,e)>=t.expositionFrequencySameVisit||null!=t.expositionFrequencySameVisitor&&null!=t.expositionFrequencySameVisitorDelaySeconds&&Kameleoon.Internals.runtime.Visitor.obtainActionNumberActivations(n,i,o-1e3*t.expositionFrequencySameVisitorDelaySeconds,o,!0,!0,!1,e)>=t.expositionFrequencySameVisitor||t.cappingPerVisitorNumberExpositions&&Kameleoon.Internals.runtime.Visitor.obtainActionNumberActivations(n,i,null,o,!0,!0,!1,e)>=t.expositionFrequencySameVisitorMax||t.cappingPerVisitorNumberExposedVisits&&Kameleoon.Internals.runtime.Visitor.obtainActionNumberActivations(n,i,null,null,!0,!0,!0,e)>=t.exposedVisitsSameVisitorMax||t.cappingPerVisitorConvertGoal&&Kameleoon.Internals.runtime.Visitor.obtainNumberConversions(t.cappingPerVisitorGoalId)>0||null!=t.expositionFrequencyDelaySecondsBetweenTwoExpositions&&Kameleoon.Internals.runtime.Visitor.obtainActionNumberActivations(n,i,o-1e3*t.expositionFrequencyDelaySecondsBetweenTwoExpositions,o,!0,!0,!1,e)>=1)return!1;return!0}checkActionConsent(e){if(e.experimentAction){if(!Kameleoon.Internals.runtime.Consent.AB_TESTING){if(null==Kameleoon.Internals.runtime.Consent.AB_TESTING){if("ALL"==Kameleoon.Internals.configuration.beforeAbtestConsent)return!0;if("PARTIALLY"==Kameleoon.Internals.configuration.beforeAbtestConsent&&e.technical)return!0}else if(e.technical&&"RUN"==Kameleoon.Internals.configuration.abtestConsentOptout)return!0;return!1}}else if(!Kameleoon.Internals.runtime.Consent.PERSONALIZATION){if(null==Kameleoon.Internals.runtime.Consent.PERSONALIZATION){if("ALL"==Kameleoon.Internals.configuration.beforePersonalizationConsent)return!0;if("PARTIALLY"==Kameleoon.Internals.configuration.beforePersonalizationConsent&&e.technical)return!0}else if(e.technical&&"RUN"==Kameleoon.Internals.configuration.personalizationConsentOptout)return!0;return!1}return!0}checkActionsTargeting(e){Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList(1).forEach((e=>{e.previousExposition=e.exposition}));const n=[];for(let i=0,t=e.length;i=n.maxNumberVisitorsExposed){n.exposition=!1;n.notExposedReason="PERSONALIZATION_CAPPING"}if(!0===n.exposition&&!Kameleoon.Internals.runtime.simulationMode){n.exposition=n.checkCustomExpositionRate();if(!1===n.exposition)n.notExposedReason="PERSONALIZATION_EXCLUSION"}if(!0===n.exposition&&!this.checkCapping(!1,n.id,1,n,o)){n.exposition=!1;n.notExposedReason="VISITOR_CAPPING"}}}let a={};Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList(1).forEach((function(e){if(e.exposition){const n=e.configuration;const i=a[n];const t=e.priority;if(null==i||t>i)a[n]=t}}));let s={};for(let n=0,i=e.length;n=n){if(null==s[e]||t>n)s[e]=[];s[e].push(i.id)}}}a=null;for(let e=0,n=i.length;e0)this.initCampaignListener();if(e.length>0&&Kameleoon.Internals.runtime.targetingsEvent)Kameleoon.Internals.runtime.targetingsEvent.emit(e)}performActionsTracking(e){const n=[];for(let i=0,t=e.length;iKameleoon.Tracking.processClarity(i)));if(e.length)Kameleoon.Internals.runtime.RequestManager.addCallback((()=>{e.forEach((e=>e()))}))}i.trackingPerformed=!0}}performDeferredVariations(e,n,i){}process(e,n){const i=(new Date).getTime();this.checkActionsTargeting(e);const t=[];for(let o=0,a=e.length;o{e.handleSpecialCase()}));}}class Campaigns{constructor(){this.experiments={};this.personalizations={};this.experimentsList=[];this.personalizationsList=[]}addCampaign(i){const t=i.id.toString();const s=i.experimentAction;const n=s?this.experiments:this.personalizations;const e=s?this.experimentsList:this.personalizationsList;if(n[t]){const s=e.findIndex((i=>i.id.toString()==t));if(-1!==s)e[s]=i}else e.push(i);n[t]=i}obtainCampaign(i,t){if(null==i)return;const s=i.toString();if(null!=t)return t?this.experiments[s]:this.personalizations[s];return this.experiments[s]||this.personalizations[s]}obtainCampaignsList(i){const t="experiments"===i||0===i?"experiments":"personalizations";return"experiments"===t?this.experimentsList:this.personalizationsList}}class Consent{constructor(){this.disable=(e,n)=>{Kameleoon.Utils.sendKameleoonCustomEvent("Internals",{type:"consent/disable",consentType:e});if(e&&"BOTH"!=e)this[e]=!1;else{this.AB_TESTING=!1;this.PERSONALIZATION=!1}if(1!=n)this.write();Kameleoon.Utils.sendKameleoonCustomEvent.call(window,"LegalConsentUpdated",{legalConsentUpdate:this.getConsent()})};this.enable=(e,n)=>{Kameleoon.Utils.sendKameleoonCustomEvent("Internals",{type:"consent/enable",consentType:e});if(e&&"BOTH"!=e)this[e]=!0;else{this.AB_TESTING=!0;this.PERSONALIZATION=!0}if(Kameleoon.Internals.runtime?.RequestManager){Kameleoon.Internals.runtime.RequestManager.processRequests();this.purge()}if(1!=n)this.write();Kameleoon.Utils.sendKameleoonCustomEvent.call(window,"LegalConsentUpdated",{legalConsentUpdate:this.getConsent()})};this.getConfiguredConsent=()=>({AB_TESTING:Kameleoon.Internals.configuration.abtestConsent,PERSONALIZATION:Kameleoon.Internals.configuration.personalizationConsent});this.getConsent=()=>({AB_TESTING:this.AB_TESTING,PERSONALIZATION:this.PERSONALIZATION});this.hasGlobalConsent=()=>{return this.AB_TESTING||this.PERSONALIZATION};this.initialize=e=>{Kameleoon.Utils.sendKameleoonCustomEvent("Internals",{type:"consent/initialize",consent:e});this.AB_TESTING=e.AB_TESTING;this.PERSONALIZATION=e.PERSONALIZATION;this.initializeSdk()};this.initializeSdk=()=>{if(this.AB_TESTING)return;const e=e=>{if("boolean"===typeof e)return e;if(!e||"object"!==typeof e)return;const{consent:n}=e;if("boolean"===typeof n)return n;if("number"===typeof n){if(1===n)return!0;if(2===n)return!1}};try{const n=localStorage.getItem("kameleoonConsentData");if(!n)return;const t=JSON.parse(n);const o=Kameleoon.Utils.readLocalData("kameleoonVisitorCode","COOKIE");const s=e(t?.[o]);if("boolean"===typeof s)this.AB_TESTING=s}catch(e){}};this.purge=()=>{if(Kameleoon.Internals.runtime){const e=e=>{if(null!=e)for(const n in e)Kameleoon.Utils.createLocalData(e[n].name,e[n].value,e[n].days,e[n].domain,e[n].forceLocalAccess,e[n].jsonFormat,null,!0)};e(Kameleoon.Internals.runtime.localDataMap?.["LS"]);e(Kameleoon.Internals.runtime.localDataMap?.["COOKIE"]);Kameleoon.Internals.runtime.localDataMap=null;Kameleoon.Analyst.Actions.processAllActions();}};this.setup=()=>{let e={AB_TESTING:!1,PERSONALIZATION:!1};const n=Kameleoon.Internals.runtime.readFromStorageOrExternal("kameleoonLegalConsent","LS");if(null!=n)if(1==n)e={AB_TESTING:!0,PERSONALIZATION:!0};else e=n;else{e={AB_TESTING:"OFF"==Kameleoon.Internals.configuration.abtestConsent?!0:null,PERSONALIZATION:"OFF"==Kameleoon.Internals.configuration.personalizationConsent?!0:null};}this.initialize(e)};this.write=()=>{Kameleoon.Utils.createLocalData("kameleoonLegalConsent",this.getConsent(),Utils.MAX_STORAGE_DAYS,null,"LS",!0,null,!0)};this.AB_TESTING=!1;this.PERSONALIZATION=!1}}class Device{get adBlocker(){return Kameleoon.Internals.runtime.adBlocker}get os(){return Kameleoon.Gatherer.OperatingSystem.obtain()}get screenHeight(){return window.screen.height}get screenWidth(){return window.screen.width}get windowHeight(){return window.innerHeight}get windowWidth(){return window.innerWidth}constructor(){const e=Kameleoon.Utils.bowser.parsedResult=Kameleoon.Utils.bowser.parsedResult||Kameleoon.Utils.bowser.parse(navigator.userAgent);this.browser=e.browser.name||"Other";this.type="tablet"===e.platform.type?"Tablet":"mobile"===e.platform.type?"Phone":"Desktop";if("Safari"===this.browser&&"Desktop"===this.type&&"ontouchend"in document.documentElement)this.type="Tablet";let t=e.browser.version||"Safari"===this.browser&&e.os.version;try{if(t&&t.split(".").length>1)t=t.split(".")[0]+"."+t.split(".")[1]}catch(e){}this.browserVersion=t?parseFloat(t):null}}class Experiment{constructor(i,t){this.executeGlobalScript=()=>{if(this.globalScript&&!this.globalScriptEvaluated){Kameleoon.Utils.sendKameleoonCustomEvent("Internals",{type:"experimentGlobalScript",id:this.id,name:this.name});this.globalScriptEvaluated=!0;Kameleoon.Utils.runProtectedScript(this.globalScript,"kameleoonActionGlobalJavaScriptCode-"+this.id+".js")}};this.handleSpecialCase=()=>{if(!0!==this.targeting&&this.redirectProcessed){this.performVariationAssignment(!0);Kameleoon.Analyst.Actions.performActionsTracking([this])}else if(this.preAssignVariation)this.performVariationAssignment(!0)};this.obtainVariationAssignmentRandomNumber=()=>{let i="";this.variations.forEach((function(t){if(t.respoolTime)i+=t.respoolTime}));const t=Kameleoon.Internals.runtime.Visitor.obtainIdentifierValue();return Kameleoon.Utils.seededRandom(t+this.id+i,!0)};this.performVariationAssignment=i=>{if(this.displayedVariation&&!i&&!this.deferredLoading)return;if(void 0!==this.registeredVariationId&&this.assignmentTime)this.variations.forEach((i=>{if(this.registeredVariationId==i.id&&i.respoolTime>this.assignmentTime||null===this.registeredVariationId&&this.untrackedRespoolTime>this.assignmentTime)this.registeredVariationId=void 0}));if(void 0===this.registeredVariationId&&!Kameleoon.Internals.runtime.simulationMode&&0==this.variations.filter((i=>i.id==this.registeredVariationId)).length)this.registeredVariationId=void 0;if(this.mentalistEnabled&&this.mentalistVariationReassignationPermission)this.registeredVariationId=void 0;if(void 0===this.registeredVariationId){if(this.mentalistEnabled){}else if(Kameleoon.Internals.runtime.customVariationSelectionFunction){this.registeredVariationId=Kameleoon.Internals.runtime.customVariationSelectionFunction(this);if(null!=this.registeredVariationId)if("reference"==this.registeredVariationId.toString())this.registeredVariationId=0;else if("none"==this.registeredVariationId.toString())this.registeredVariationId=null}else{const i=this.obtainVariationAssignmentRandomNumber();let t=0;this.registeredVariationId=null;for(let e=0,n=this.variations.length;e{this.blockingReason=i;this.blocked=!0};this.setTargetingObject=(i,t,e,n)=>{if(!e)this[i]=null;else this[i]=Kameleoon.Targeting.obtainTargeting(e)||t.find((i=>i.id==e))||null;if(!n||n==e){this.targeting=void 0;this.rescheduleTargeting=null;this.numberTargetingCheckings=0;this.displayedVariation=null}};this.setTargetingSegment=i=>{this.setTargetingObject("targetingSegment",Kameleoon.Internals.runtime.targetingSegments,this.targetingSegmentId,i)};this.setTargetingTrigger=i=>{this.setTargetingObject("targetingTrigger",Kameleoon.Internals.runtime.targetingTriggers,this.targetingTriggerId,i)};this.trigger=()=>{if(!this.targeting){this.targeting=!0;this.displayedVariation=null}};this.writeLocalData=()=>{const i=this.registeredVariationId+(this.mentalistEnabled?"-mentalist":"")+"/"+this.assignmentTime;if(!this.simulationMode)Kameleoon.Utils.createLocalData("kameleoonExperiment-"+this.id,i,this.cookieDuration||30,this.cookieDomain,"LS",!1)};for(const t in i)this[t]=i[t];const e="kameleoonRedirect-"+this.id;const n=(t&&t[e])??Kameleoon.Utils.readLocalData(e,"LS",!1)??Kameleoon.Internals.runtime.parameters[e];if(null!=n){this.registeredVariationId=n;this.assignmentTime=Date.now();this.redirectProcessed=!0;Kameleoon.Utils.eraseLocalData(e,null,null)}const a="kameleoonExperiment-"+this.id;let s=t?t[a]:Kameleoon.Utils.readLocalData(a,"LS",!1);for(const i in Kameleoon.Internals.runtime.parameters)if(0==i.indexOf("kameleoonRedirect-"+this.id)){s=Kameleoon.Internals.runtime.parameters[i]+"/"+(new Date).getTime()+"/"+!1;this.writeLocalData()}if(s&&-1!=this.id){const i=s.split("/");this.registeredVariationId="null"==i[0]?null:i[0];this.assignmentTime=parseInt(i[1]);if(this.registeredVariationId){if("reference"==this.registeredVariationId.toString()){this.registeredVariationId=0;this.writeLocalData()}if("none"==this.registeredVariationId.toString()){this.registeredVariationId=null;this.writeLocalData()}}}if(this.registeredVariationId&&-1!=this.registeredVariationId.toString().indexOf("-mentalist")){this.registeredVariationId=parseInt(this.registeredVariationId.toString().replace("-mentalist",""));this.mentalistEnabled=!0}if(this.registeredVariationId&&s&&null==this.deviation[this.registeredVariationId])this.registeredVariationId=void 0;this.setTargetingSegment();this.setTargetingTrigger();if(this.redirectProcessed&&null!=this.registeredVariationId)this.writeLocalData();const r=Kameleoon.Internals.runtime.storedData.obtainField("Runtime","blockedExperiments",[]);if(r.length>0&&-1!=r.indexOf(this.id))this.setBlocked("API");}static performMutualExclusiveGroup(){}}class Goals{constructor(){this.goals={};this.goalsList=[];this.run=()=>{const e=[];const n=[];const o=[];const s=[];const t={};this.getList().forEach((i=>{switch(i.type){case"ENGAGEMENT":n.push({goal:i});break;case"URL":{const n=new RegExp(i.url);if(n.test(Kameleoon.Utils.computeCurrentPageCleanAbsoluteURL()))e.push({goal:i});break}case"CUSTOM":if(i.jsCode)Kameleoon.Utils.runProtectedScript(i.jsCode,`kameleoonCustomGoal-${i.id}.js`);break;}}));if(e.length>0)this.processConversions(e);Kameleoon.Utils.addEventListener(document,Kameleoon.Internals.runtime.mouseDownEvent,(e=>{this.processConversions(n)}),!0);};this.processConversions=e=>{if(Kameleoon.Internals.runtime.gathererRun)for(let n=0,o=e.length;nthis.add(e)))}get(e){if(null!=e)return this.goals[String(e)]}getList(){return this.goalsList}runClickGoals(e){}}class KGeolocation{constructor(){let e=Kameleoon.Internals.runtime.storedData.obtainField("Runtime","geolocation");if(null==e)Kameleoon.Internals.runtime.RequestManager.addCallback((()=>{Kameleoon.Utils.performBeaconServerCall(Kameleoon.Internals.runtime.RequestManager.obtainGeolocationUrl(),(e=>{if(4==e.readyState&&(200==e.status||204==e.status)){let t=e.getResponseHeader("geoip_country_name");let o=e.getResponseHeader("geoip_region_name");let i=e.getResponseHeader("geoip_city");this.country=t?Kameleoon.Utils.decodeUTF8(t):null;this.city=i?Kameleoon.Utils.decodeUTF8(i):null;this.latitude=e.getResponseHeader("geoip_latitude");this.longitude=e.getResponseHeader("geoip_longitude");this.postalCode=e.getResponseHeader("geoip_postal_code");this.region=o?Kameleoon.Utils.decodeUTF8(o):null;this.loaded=!0;Kameleoon.Gatherer.track(VisitEvent_Geolocation,this);Kameleoon.Internals.runtime.storedData.saveField("Runtime","geolocation",this)}}),null)}));else{this.loaded=!0;this.country=e.country;this.city=e.city;this.latitude=e.latitude;this.longitude=e.longitude;this.postalCode=e.postalCode;this.region=e.region}}}const IGNORED_TAGS={SCRIPT:!0,META:!0,LINK:!0,STYLE:!0,TITLE:!0,BASE:!0,NOSCRIPT:!0};class KMutationObserver{static addMutationElementsToInternalObjects(e){for(let t=0;t{if(-1!==e.indexOf(".")||-1!==e.indexOf("#")){let r;let a;let l=e;if(-1!==l.indexOf(":")){let t=0;let n=!1;let o=!1;let r="";for(let i=0;i~\[]/.test(s)){o=!1;r+=s}continue}r+=s}l=r}if(-1!==l.indexOf("\\"))l=l.replace(/\\/g,"");if(-1!==l.indexOf("[")){const e=KMutationObserver.parseSelectorAttributes(l);if(e.length)o.push(...e);l=l.replace(/(\-)?(\[.*?\])/g,((e,t)=>t?e:""))}r=l.match(/\.([^\s.#>~]+)/g);a=l.match(/#([^\s.>~]+)/g);if(!i&&r)i=!0;if(!s&&a)s=!0;n.push(r||[]);t.push(a||[])}else if(-1!==e.indexOf("[")){const t=KMutationObserver.parseSelectorAttributes(e);if(t.length)o.push(...t)}}));if(0===n.length&&0===t.length&&0===o.length)e.childListOnly=!0;e.selectors=r;e.selectorClasses=n;e.selectorIDs=t;e.attributes=o;e.hasSelectorAttributes=o.length>0;e.hasClass=i;e.hasId=s;return e}static checkClassesForSelector(e,t){if(null==e)return!0;for(let t=0,n=e.length;t=0;e-=1){const o=n[e];KMutationObserver.filterWaitingQueue(o,t);if(!o||!o.useAntiFlicker||o.skip)continue;if(Kameleoon.Internals.runtime.domMutationThrottling&&null!=KMutationObserver.asyncMutationsTimeoutId||KMutationObserver.checkSelectorInDomTree(o)){const t=Kameleoon.Utils.querySelectorAll(o.selector);o.domSearching=!0;if(t.length){Kameleoon.Utils.runProtectedFunction((function(){o.callback(t)}),!0);n.splice(e,1)}}}}static performVariationsElementSet(e){}static performAsyncMutations(){Kameleoon.Internals.runtime.domMutationThrottling=!0;if(!KMutationObserver.asyncMutationsTimeoutId)KMutationObserver.asyncMutationsTimeoutId=Kameleoon.Utils.setTimeout((()=>{if(KMutationObserver.mutationList.length>=5e3)KMutationObserver.fillInternalObjectsForMutationObserver();else KMutationObserver.mutationList.forEach((e=>KMutationObserver.performChildListMutation(e)));KMutationObserver.mutationList=[];KMutationObserver.performWaitingElementPresentObject(0);Kameleoon.Utils.clearTimeout(KMutationObserver.asyncMutationsTimeoutId);KMutationObserver.asyncMutationsTimeoutId=null}),250)}static setMutationObserver(){if(Kameleoon.Internals.runtime.cantUseMutationObserver||Kameleoon.Internals.runtime.mutationObserver)return;KMutationObserver.fillInternalObjectsForMutationObserver();const e={attributes:!0,attributeOldValue:!0,childList:!0,characterData:!0,subtree:!0};let t=[];let n=!1;const o=Kameleoon.Utils.throttle((()=>{const e=t;const o=n;t=[];n=!1;if(o){KMutationObserver.performWaitingElementPresentObject(1);return}const r=KMutationObserver.createMutationBatchState();for(let t=0;t=3e3){KMutationObserver.mutationList=KMutationObserver.mutationList.concat(e);KMutationObserver.performAsyncMutations();return}let i=null;if(Kameleoon.Internals.runtime.waitingElementPresentObjects.length||Kameleoon.Internals.runtime.waitingSlowElementPresentObjects.length)i=KMutationObserver.createMutationBatchState();e.forEach((e=>{if("attributes"===e.type){if(i)i.attributes[e.attributeName]=!0;if("id"!==e.attributeName&&"class"!==e.attributeName)return;const t=e.target;if(!t)return;const n="id"===e.attributeName?t.id:t.className;if(e.oldValue===n)return;if("id"===e.attributeName)KMutationObserver.fillIdForOptimization(t);else KMutationObserver.fillClassesForOptimization(t,i)}else if("childList"===e.type){KMutationObserver.performChildListMutation(e,i);}}));KMutationObserver.performWaitingElementPresentObject(0,i);if(Kameleoon.Internals.runtime.waitingSlowElementPresentObjects.length){if(i.shouldCheckChildList)n=!0;if(!n)t.push(i);o()}}));if("function"===typeof Kameleoon.Internals.runtime.mutationObserver.observe)Kameleoon.Internals.runtime.mutationObserver.observe(document.documentElement,e);if(Kameleoon.Internals.runtime.singlePageSupport)KMutationObserver.setMutationObserverSPA()}static performChildListMutation(e,t){if("childList"!==e.type||!e.addedNodes.length)return;const n=e.addedNodes;for(let e=0;e{KMutationObserver.checkDynamicElements(1)}),400);Kameleoon.API.Core.runWhenElementPresent("body",(t=>{const n={childList:!0,subtree:!0};Kameleoon.Internals.runtime.mutationObserverSpa=new MutationObserver((function(t){Kameleoon.Internals.runtime.listenVariations=[];Kameleoon.Internals.runtime.mutationObserverSpa.disconnect();KMutationObserver.executeCallbacks(t);KMutationObserver.checkDynamicElements(0);if(Kameleoon.Internals.runtime.waitingSlowDynamicElements.length)e();o()}));const o=()=>{n.characterData=Kameleoon.ElementSet&&Kameleoon.ElementSet.pageElementSetsSpa.length>0||Kameleoon.Internals.runtime.listenSpaCallbacks.length>0;Kameleoon.Internals.runtime.mutationObserverSpa.observe(t[0],n)};o()}))}static performReplaceData(e){}static isIgnoredTagName(e){return!0===IGNORED_TAGS[e]}static parseSelectorAttributes(e){const t=[];const n=e.match(/\[[^\]]+\]/g);if(!n)return t;for(let e=0;e{Kameleoon.Internals.runtime.listenSpaCallbacks.forEach((e=>Kameleoon.Utils.runProtectedFunction(e,!0)))};KMutationObserver.checkDynamicElements=e=>{const t=1===e?Kameleoon.Internals.runtime.waitingSlowDynamicElements:Kameleoon.Internals.runtime.waitingDynamicElements;t.forEach((e=>{const t=Kameleoon.Utils.querySelectorAll(e.selector).filter((t=>null==t.getAttribute(e.attribute)));t.length>0&&e.callback(t)}))};KMutationObserver.checkElementSetIntegrity=()=>{};KMutationObserver.resetElementSet=(e,t,n)=>{};KMutationObserver.containsDomOperationElements=e=>{};class Logger{constructor(){this.send=(e,o,n)=>{if(Kameleoon.Internals.runtime?.parameters?.kameleoonDebug)console.log(e)}}}class Personalization{constructor(t,e){this.checkCustomExpositionRate=()=>{let t=!0;switch(this.customExpositionRate){case 1:break;case 0:t=!1;break;default:const e="kameleoonPersonalization-"+this.id;const i=Kameleoon.Internals.runtime.incomingStoredData&&Kameleoon.Internals.runtime.incomingStoredData[e]||Kameleoon.Utils.readLocalData(e,"LS",!1);if(null!=i){const e=i.split("/");t="true"==e[0]}else{t=Kameleoon.Utils.seededRandom(this.id+Kameleoon.Internals.runtime.Visitor.currentVisit.visitorCode,!0){this.blockingReason=t;this.blocked=!0};this.setTargetingSegment=t=>{this.setTargetingObject("targetingSegment",Kameleoon.Internals.runtime.targetingSegments,this.targetingSegmentId,t)};this.setTargetingTrigger=t=>{this.setTargetingObject("targetingTrigger",Kameleoon.Internals.runtime.targetingTriggers,this.targetingTriggerId,t)};this.setTargetingObject=(t,e,i,n)=>{if(!i)this[t]=null;else this[t]=Kameleoon.Targeting.obtainTargeting(i)||e.find((t=>t.id==i))||null;if(!n||n==i){this.targeting=void 0;this.rescheduleTargeting=null;this.numberTargetingCheckings=0;this.displayedVariation=null}};this.trigger=()=>{if(!this.targeting){this.blocked=!1;this.targeting=!0;this.displayedVariation=null}};for(const e in t)this[e]=t[e];if(t.autopromo&&Kameleoon.Internals.configuration.forceAutopromoTargetingToFalse)this.setBlocked("AUTOPROMO");const i=Kameleoon.Internals.runtime.storedData.obtainField("Runtime","blockedPersonalizations",[]);if(i.length>0&&-1!=i.indexOf(this.id))this.setBlocked("API");Kameleoon.Analyst.Actions.associateActionAndVariation(this,0,1);this.setTargetingSegment();this.setTargetingTrigger()}static executeEmailingScript(){}static setGlobalPersonalizationDeviation(){const t="kameleoonGlobalPersonalizationExposition";const e=Kameleoon.Internals.configuration.personalizationsDeviation;let i=Kameleoon.Internals.runtime.readFromStorageOrExternal(t,"LS");const n=i&&i.split("/");let o;if(null!=i&&n[2]!=e)i=null;if(i)o="true"==n[0];else{o=1==e||Kameleoon.Utils.seededRandom(Kameleoon.Internals.runtime.Visitor.currentVisit.visitorCode,!0){if(Kameleoon.Internals.runtime.Consent.hasGlobalConsent()){if(Kameleoon.Internals.runtime.tabIdCreated){delete Kameleoon.Internals.runtime.tabIdCreated;Kameleoon.Utils.secureSessionStorage("setItem","kameleoonTabId",Kameleoon.Internals.runtime.tabId)}if(this.callbacksToExecute.length>0){const e=this.callbacksToExecute.splice(0,1e3);e.forEach((e=>e()))}if(this.eventsToSend.length>0&&this.validateTrackingRequest()){const e=this.eventsToSend.splice(0,1e3);const t=this.obtainVisitUrl();const n=this.obtainRequestBody(e);this.send(t,"POST",n,(()=>{}),(()=>{this.createErrorEventsQueue(n)}));if(this.eventsToSend.length>0)this.processRequests()}}};this.obtainRequestBody=e=>{const t=Kameleoon.Internals.runtime.Consent.getConsent();const n=sessionStorage.getItem(this.errorKey);let s="";s+=e.reduce(((e,n)=>{if(!n.notTrack&&this.validateTrackingConsent(n.eventType,t))e+=n.obtainRequestData()+"\n";return e}),"");if(n){s+=n;sessionStorage.removeItem(this.errorKey)}return s};this.obtainVisitUrl=()=>{const e=Kameleoon.Internals.runtime.Visitor.currentVisit.visitorCode;const t=Kameleoon.Internals.runtime.tabId;return`${this.url}/visit/events?engine=true&siteCode=${this.siteCode}&visitorCode=${e}&itp=${"Safari"===Kameleoon.Internals.runtime.Device.browser}${t?`&tabId=${t}`:""}`};this.obtainIpUrl=()=>this.url+"/ip";this.obtainGeolocationUrl=()=>this.url+"/geolocation";this.obtainWeatherUrl=e=>this.url+"/weather"+(e?"/forecast":"/weather");this.send=(e,t,n,s,i,o)=>{const r=new XMLHttpRequest;r.open(t,e,!0);if(s)r.onreadystatechange=function(e){s.bind(r)(e.target)};if(i){r.onabort=function(e){i.bind(r)(e.target)};r.onerror=function(e){i.bind(r)(e.target)};r.ontimeout=function(e){i.bind(r)(e.target)}}r.timeout=o||15*60*1e3;r.send("POST"==t&&n?n:null);};this.sendActiveScript=()=>{};this.obtainRemoteSynchronizationData=(e,t)=>{this.send(`${Kameleoon.Internals.runtime.DATA_URL}/visit/visitor?${e}`,"GET",null,t)};this.sendProduct=(e,t)=>{this.send(`${this.url}/product/events?engine=true&siteCode=${this.siteCode}&ean=${encodeURIComponent(e.toString())}`,"POST",t);};this.eventsToSend=[];this.callbacksToExecute=[];this.url=Kameleoon.Internals.runtime.DATA_URL;this.siteCode=Kameleoon.Internals.configuration.siteCode;Kameleoon.Utils.setInterval(this.processRequests.bind(this),500);Kameleoon.Utils.addEventListener(window,Kameleoon.Internals.runtime.beforeUnloadEvent,"Safari"===Kameleoon.Internals.runtime.Device.browser?()=>this.eventsToSend.length&&this.createErrorEventsQueue(this.obtainRequestBody(this.eventsToSend)):this.processRequests.bind(this))}addCallback(e){if(Kameleoon.Internals.runtime.Consent.hasGlobalConsent())e();else this.callbacksToExecute.push(e)}addRequest(e){this.eventsToSend.push(e)}createErrorEventsQueue(e){if(e)sessionStorage.setItem(this.errorKey,(sessionStorage.getItem(this.errorKey)||"")+e)}validateTrackingConsent(e,t){return"experiment"!==e&&"personalization"!==e||t.AB_TESTING&&"experiment"===e||t.PERSONALIZATION&&"personalization"===e}validateTrackingRequest(){const n=(!Kameleoon.Internals.runtime.simulationMode||Kameleoon.Internals.runtime.enableRemoteVisitorSynchronization||Kameleoon.Internals.runtime.parameters["kameleoon-qa-mode"])&&!Kameleoon.Internals.runtime.proxyMode&&!Kameleoon.Internals.runtime.kameleoonSelectionIframeMode;return n}}class Targeting{constructor(){this.targetings={};this.targetingListenerQueue=[];this.obtainTargeting=e=>e&&this.targetings[e];this.checkTargetingCondition=(e,t,i)=>{let n;if(null==t.numberTargetingCheckings)t.numberTargetingCheckings=0;if(!this.checkIfTargetingMustBeComputed(t.targeting,t.rescheduleTargeting||0==t.numberTargetingCheckings,void 0))n={targeting:t.targeting,rescheduleTargeting:!1};else{let r=Kameleoon.Targeting["evaluate_"+t.type];let g;if(null!=r)g=r.bind(this)(t,e,i);else g=null;if(null==g)g={targeting:void 0,rescheduleTargeting:!1};let s=g.targeting;if(!0!==t.include)if(void 0===s){if(!0===g.excludedUndefinedIsTargeted)s=!0}else s=!s;n={targeting:s,rescheduleTargeting:this.checkIfTargetingMustBeComputed(s,g.rescheduleTargeting,void 0)};t.targeting=n.targeting;t.rescheduleTargeting=n.rescheduleTargeting;t.numberTargetingCheckings++}if(!0===n.targeting)n.weight=t.weight;else n.weight=0;return n};this.checkTargetingSegmentsTargeting=e=>{for(let t=0;t0)this.ensureTargetingListeners()};this.flushTargetingSegments=()=>{const e=this.targetingListenerQueue;if(0===e.length){if(null!=this.targetingListenerIntervalId){Kameleoon.Utils.clearInterval(this.targetingListenerIntervalId);this.targetingListenerIntervalId=null}return}this.targetingListenerQueue=[];this.processTargetingSegments(e)};this.ensureTargetingListeners=()=>{if(Kameleoon.Internals.runtime.domReady){if(null!=this.targetingListenerTimeoutId){Kameleoon.Utils.clearTimeout(this.targetingListenerTimeoutId);this.targetingListenerTimeoutId=null}if(null==this.targetingListenerIntervalId)this.targetingListenerIntervalId=Kameleoon.Utils.setInterval((()=>{this.flushTargetingSegments()}),Kameleoon.Internals.runtime.PAGE_LOADED_POLL_DELAY);return}if(null==this.targetingListenerTimeoutId)this.targetingListenerTimeoutId=Kameleoon.Utils.setTimeout((()=>{this.targetingListenerTimeoutId=null;this.flushTargetingSegments()}),Kameleoon.Internals.runtime.PAGE_LOADING_POLL_DELAY)};this.clear=()=>{this.targetings={};this.targetingListenerQueue=[];this.targetingListenerTimeoutId=null;this.targetingListenerIntervalId=null};this.checkTree=(e,t,i,n)=>{let r;if(null==t){r={targeting:!0,rescheduleTargeting:!1};if(i)r.weight=0}else{if(null==t.numberTargetingCheckings)t.numberTargetingCheckings=0;if(!this.checkIfTargetingMustBeComputed(t.targeting,t.rescheduleTargeting||0==t.numberTargetingCheckings,i)){r={targeting:t.targeting,rescheduleTargeting:!1};if(i)r.weight=t.weight}else{if(null!=t.targetingCondition)r=this.checkTargetingCondition(e,t.targetingCondition,n);else{let g=this.checkTree(e,t.leftChild,i,n);let s=Kameleoon.Internals.runtime.simulationMode||i;if(!s)switch(g.targeting){case!0:if(!t.orOperator)s=!0;break;case!1:if(t.orOperator)s=!0;break;case void 0:default:s=!0;break}let a=null;if(s)a=this.checkTree(e,t.rightChild,i,n);let l;switch(g.targeting){case!0:if(t.orOperator)l=!0;else switch(a.targeting){case!0:l=!0;break;case!1:l=!1;break;case void 0:default:l=void 0;break}break;case!1:if(t.orOperator)switch(a.targeting){case!0:l=!0;break;case!1:l=!1;break;case void 0:default:l=void 0;break}else l=!1;break;case void 0:default:if(t.orOperator)switch(a.targeting){case!0:l=!0;break;case!1:l=void 0;break;case void 0:default:l=void 0;break}else switch(a.targeting){case!0:l=void 0;break;case!1:l=!1;break;case void 0:default:l=void 0;break}break}r={targeting:l,rescheduleTargeting:this.checkIfTargetingMustBeComputed(l,g.rescheduleTargeting||s&&a.rescheduleTargeting,i)};if(i){let e;if(t.orOperator)e=Math.max(g.weight,a.weight);else e=g.weight+a.weight;r.weight=e}}t.targeting=r.targeting;t.rescheduleTargeting=r.rescheduleTargeting;if(i)t.weight=r.weight;t.numberTargetingCheckings++;r.computed=!0}}return r};this.computeDisplayableTree=e=>{let t=[];let i=[];this.computeDisplayableTreeFirstLevelAddIn(e,t,i);if(i.length>0){let e=[];let n=[];let r=this.createIterator(t);let g=this.createIterator(i);while(g.hasNext()){let t=g.next();if(Kameleoon.Utils.testEmptyMap(t.conditions)){if(g.hasNext())r.next()}else{n.push(t);if(g.hasNext())e.push(r.next())}}t=n.length>0?e.slice(0,n.length-1):e;i=n}return{firstLevelOrOperators:t,secondLevel:i}};this.computeDisplayableTreeFirstLevelAddIn=(e,t,i)=>{if(null!=e)if(null==e.targetingCondition)if(0==e.orGuiLevel){this.computeDisplayableTreeFirstLevelAddIn(e.leftChild,t,i);t.push(e.orOperator);this.computeDisplayableTreeFirstLevelAddIn(e.rightChild,t,i)}else i.push(this.computeDisplayableTreeSecondLevel(e));else i.push(this.computeDisplayableTreeSecondLevel(e))};this.computeDisplayableTreeSecondLevel=e=>{let t=[];let i=[];this.computeDisplayableTreeSecondLevelAddIn(e,t,i);if(i.length>0){let e=[];let n=[];let r=this.createIterator(t);let g=this.createIterator(i);while(g.hasNext()){let t=g.next();if(t.disabled){if(g.hasNext())r.next()}else{n.push(t);if(g.hasNext())e.push(r.next())}}t=n.length>0?e.slice(0,n.length-1):e;i=n}return{orOperators:t,conditions:i}};this.computeDisplayableTreeSecondLevelAddIn=(e,t,i)=>{if(null!=e)if(null==e.targetingCondition){this.computeDisplayableTreeSecondLevelAddIn(e.leftChild,t,i);t.push(e.orOperator);this.computeDisplayableTreeSecondLevelAddIn(e.rightChild,t,i)}else i.push(e.targetingCondition)};this.flattenTree=e=>{let t=(e,i)=>{if(null!=e)if(null!=e.targetingCondition)return!1===e.targetingCondition.targeting?["!",e.targetingCondition]:e.targetingCondition;else{let n=e.orOperator?"OR":"AND";let r=[t(e.leftChild,n),n,t(e.rightChild,n)];return"AND"==i&&"OR"==n?["(",r,")"]:r}};return Kameleoon.Utils.flatten(t(e,"OR"))};this.processAllTargetings=()=>{let e=Kameleoon.Internals.runtime.targetingSegments||[];e=e.concat(Kameleoon.Internals.runtime.targetingTriggers||[]);e.forEach((e=>{this.targetings[e.id]=e}));this.processTargetingSegments(e.filter(this.isTrackingSegment))};this.processTargetingSegments=e=>{this.checkTargetingSegmentsTargeting(e);let t=[];for(let i=0,n=e.length;i0)return e.slice(-t);return e}return[Kameleoon.Internals.runtime.Visitor.currentVisit]}checkIfTargetingMustBeComputed(e,t,i){let n=!0===t&&(void 0===e||!1===e&&!0===i);return n}createIterator(e){let t=0;return{hasNext:function(){return ti=>{const g=n&&Kameleoon.Internals.runtime.Campaigns.obtainCampaign(n);let a=null;const o=t=>{if(t&&t.targetingCondition&&t.targetingCondition.uniq===e)return t.targetingCondition;if(t&&t.leftChild){const n=o(t.leftChild);if(n)return n}if(t&&t.rightChild){const n=o(t.rightChild);if(n)return n}};if(g)a=o(g.targetingTrigger?.tree)||o(g.targetingSegment?.tree);else{const n=Kameleoon.Targeting.obtainTargeting(t)||Kameleoon.Internals.runtime.targetingSegments.find((n=>n.id==t))||Kameleoon.Internals.runtime.targetingTriggers.find((n=>n.id==t));a=n&&o(n.tree)}if(a)a.targeting=i};Targeting.prototype.evaluate_JS_CODE=function(targetingCondition,campaign,segment){let targeting;try{if(targetingCondition.timeout)if(targetingCondition.start){if(Date.now()-targetingCondition.start>=1e3*targetingCondition.timeout)return{targeting:!1,rescheduleTargeting:!1}}else targetingCondition.start=Date.now();if(!targetingCondition.valueGeneratedCode)if(targetingCondition.async){targetingCondition.uniq=targetingCondition.uniq??Kameleoon.Utils.obtainRandomString(4);targetingCondition.valueGeneratedCode="(function(setTargeting) {\n"+targetingCondition.value+`\n})(Kameleoon.Targeting.evaluate_FIND_UNIQ_CONDITION(${segment.id}, ${campaign?.id??null}, '${targetingCondition.uniq}'));`;Kameleoon.Utils.runProtectedScript(targetingCondition.valueGeneratedCode,"")}else targetingCondition.valueGeneratedCode="(function() {\n"+targetingCondition.value+"\n})();";if(targetingCondition.async)targeting=targetingCondition.targeting||void 0;else if(!targetingCondition.domReady||Kameleoon.Internals.runtime.domReady){const value=Kameleoon.Utils.runProtectedScript(targetingCondition.valueGeneratedCode,"",(()=>eval(targetingCondition.valueGeneratedCode)));targeting="boolean"==typeof value?value:void 0}}catch(t){targeting=!1;const n=segment?segment.name:null;console.log(t,n)}return{targeting:targeting,rescheduleTargeting:void 0===targeting}};class Tracking{constructor(){this.timeBeforeSendTracking=20*60*1e3;this.checkAndSetKameleoonTrackingTime=(t,e)=>{const n=Kameleoon.Utils.secureSessionStorage("getItem","kameleoonAnalyticsTrackingTimes");const i=null==n?{}:JSON.parse(n);const a="Experiment-"+t;if(null==i[e]||null==i[e][a]||(new Date).getTime()>=i[e][a]+this.timeBeforeSendTracking){if(null==i[e])i[e]={};i[e][a]=(new Date).getTime();Kameleoon.Utils.secureSessionStorage("setItem","kameleoonAnalyticsTrackingTimes",JSON.stringify(i));return!0}return!1};this.obtainTealiumData=()=>{};this.initIntegrationListener=t=>{if(!this.integrationListenerQueue)this.integrationListenerQueue=[];this.integrationListenerQueue.push(t);if(!this.integrationListenerIntervalId)this.integrationListenerIntervalId=Kameleoon.Utils.setInterval((()=>{const t=this.integrationListenerQueue;if(!t||0===t.length){Kameleoon.Utils.clearInterval(this.integrationListenerIntervalId);this.integrationListenerIntervalId=null;return}const e=t.splice(0,200);e.forEach((t=>{try{t()}catch(t){}}))}),500);};this.processCustomIntegration=t=>{}}clear(){this.integrationListenerQueue=null;if(null!=this.integrationListenerIntervalId){Kameleoon.Utils.clearInterval(this.integrationListenerIntervalId);this.integrationListenerIntervalId=null}}}Tracking.prototype.processClarity=function(a){if(window.clarity){window.clarity("set","KameleoonCampaignID",a.id);window.clarity("set","KameleoonCampaignName",a.name);window.clarity("set","KameleoonVariationID",a.associatedVariation.id);window.clarity("set","KameleoonVariationName",a.associatedVariation.name)}else Kameleoon.Tracking.initIntegrationListener((()=>{Kameleoon.Tracking.processClarity.apply(Kameleoon.Tracking,[a])}))};class Variation{constructor(e){this.getAction=()=>Kameleoon.Internals.runtime.Campaigns.obtainCampaign(this.actionId);for(const t in e)this[t]=e[t]}applyJavascriptCode(e){if(this.javaScriptCode&&this.javaScriptCode.code&&(null==this.javaScriptCode.evaluated||e)){this.javaScriptCode.evaluated=!0;return Kameleoon.Utils.runProtectedScript(this.javaScriptCode.code,"kameleoonVariationJavaScriptCode-"+this.id+".js")}return null}preProcessRedirect(e){}process(){const e=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(this.actionId);if(!this.styleSheetAdded){this.styleSheetAdded=!0;Kameleoon.Utils.addCSSStyleSheet(this.css,e,null)}if(this.javaScriptCode&&!this.permanentRefreshActive)if(!this.javaScriptCode.afterDOMReady)this.applyJavascriptCode(!1);else if(!this.permanentRefreshActive)Kameleoon.Utils.domReady((()=>{this.applyJavascriptCode(!1)}));const t="enginePollerForVariation"+this.id;if(Kameleoon.Internals.runtime[t]&&!this.permanentRefreshActive){if(Kameleoon.Internals.runtime.cantUseMutationObserver)Kameleoon.Utils.clearInterval(Kameleoon.Internals.runtime[t]);Kameleoon.Internals.runtime[t]=null}if(!Kameleoon.Internals.runtime[t]&&!Kameleoon.Internals.runtime.editorMode&&!Kameleoon.Internals.runtime.kameleoonSelectionIframeMode){this.permanentRefreshActive=!0;Kameleoon.Internals.runtime.listenVariations.push(this);Kameleoon.Internals.runtime[t]=!0;if(Kameleoon.Internals.runtime.cantUseMutationObserver)Kameleoon.Internals.runtime[t]=Kameleoon.Utils.setInterval((()=>{this.process()}),10)}}processReplaceData(e){}}class Visit{constructor(t){this.addActionTriggered=(t,e)=>{const i=e?"experimentsTriggered":"personalizationsTriggered";const s=Kameleoon.Internals.runtime.storedData.obtainField("Gatherer",i,{});s[t.toString()]=!0;Kameleoon.Internals.runtime.storedData.saveField("Gatherer",i,s);};this.addEvent=t=>{this.lastEventDate=t};this.addAdBlocker=()=>{this.Device.adBlocker=!0};this.addConversions=(t,e,i,s)=>{let n=s?-1:1;e*=n;i*=n;let a=this.conversions[t];let o=a?a.count:0;let r=a?a.revenue:0;let l=o+e;let u=r+i;if(l>0)if(u>=0)this.conversions[t]={count:l,revenue:u};else delete this.conversions[t];else delete this.conversions[t]};this.addCustomData=(t,e,i)=>{if(Kameleoon.Utils.testEmptyMap(e)){if(i)delete this.customData[t]}else{if(i||null==this.customData[t])this.customData[t]={};for(let i in e)this.customData[t][i]=(this.customData[t][i]||0)+e[i]}};this.addExperiment=(t,e,i)=>{if(null===i)return;if(void 0===this.ExperimentActivations[e])this.ExperimentActivations[e]={associatedVariationID:i,times:[]};this.ExperimentActivations[e].times.push(t);if(-1!=e){let t=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(e,!0);let i=t?t.attributionWindow:Visitor.INFLUENCE_DELAY;if(i>0)this.ExperimentActivations[e].influence=i}};this.addGeolocation=t=>{this.Geolocation=t};this.addClicks=t=>{if(t>0)this.clicks+=t};this.addPage=(t,e,i,s)=>{let n=s.filter((t=>null!=t));this.pages.push({timestamp:t,keyPagesMatched:i,referrersMatched:n.length>0?n:[]});let a=this.pageURLsVisited[e];if(null==a){a=[];this.pageURLsVisited[e]=a}a.push(t);for(let t in this.productEansLastPage)this.productEansAllButLastPages[t]=!0;this.productEansLastPage={}};this.addPersonalization=(t,e,i)=>{if(0==i)return null;if(void 0===this.PersonalizationActivations[e]||null!=i&&null==this.PersonalizationActivations[e].associatedVariationID)this.PersonalizationActivations[e]={associatedVariationID:i,times:[]};this.PersonalizationActivations[e].times.push(t);if(-1!=e){let t=Kameleoon.Internals.runtime.Campaigns.obtainCampaign(e,!1);let i=t?t.attributionWindow:Visitor.INFLUENCE_DELAY;if(i>0)this.PersonalizationActivations[e].influence=i}};this.addProduct=t=>{this.productEansLastPage[t]=!0};this.addTargetingSegment=(t,e)=>{let i=this.activatedSegments[e];if(null==i){i=[];this.activatedSegments[e]=i}i.push(t);};this.addWeather=t=>{this.Weather=t};this.clearCustomDataPage=()=>{for(let t in Kameleoon.Internals.runtime.Gatherer.configuration.customData){let e=Kameleoon.Internals.runtime.Gatherer.configuration.customData[t];if("PAGE"==e.scope)delete this.customData[t]}};this.computeActionNumberActivations=(t,e,i,s)=>{if(null==s[t])return 0;return this.computeObjectNumberPresence(e,i,s[t].times)};this.computeObjectNumberPresence=(t,e,i)=>{let s=0;for(let n=0,a=i.length;n=t)&&(null==e||a<=e))s++}return s};this.isVisitFinished=()=>this.lastEventDate<(new Date).getTime()-Kameleoon.Internals.runtime.Gatherer.configuration.maxVisitIdleDuration;this.obtainKeyPageIsVisited=t=>{let e=this.pages.filter((e=>-1!=e.keyPagesMatched.indexOf(t)));return e.length>0};this.obtainMeanPageDuration=()=>{};this.obtainNumberConversions=t=>{let e=this.conversions[t];return null==e?0:e.count};this.obtainPageNumberViews=(t,e,i,s)=>{let n=0;for(let a in this.pageURLsVisited)if(null!=a){let o=Kameleoon.Utils.computeRelativeURL(a);if((null==t||t.test(a)||t.test(o))&&(null==e||!e.test(a)&&!e.test(o)))n+=this.computeObjectNumberPresence(i,s,this.pageURLsVisited[a])}return n};this.obtainTimesStartedPages=()=>{let t=[];for(let e in this.pageURLsVisited)t.concat(this.pageURLsVisited[e]);return t.sort()};this.obtainPersonalizationNumberActivations=(t,e,i)=>this.computeActionNumberActivations(t,e,i,this.PersonalizationActivations);this.obtainReferrerIsPresent=t=>{let e=null==t?null:t+1;let i=this.pages.filter((t=>-1!=t.referrersMatched.indexOf(e)));return i.length>0};this.visitNumber=t.visitNumber||0;this.landingPageURL=t.landingPageURL||null;this.productEansAllButLastPages=t.productEansAllButLastPages||{};this.productEansLastPage=t.productEansLastPage||{};this.startDate=t.startDate||0;this.pageURLsVisited=t.pageURLsVisited||{};this.activatedSegments=t.activatedSegments||{};this.visitorCode=t.visitorCode||"";this.customData=t.customData||{};this.clicks=t.clicks||0;this.lastEventDate=t.lastEventDate||t.lastActivityDate||this.startDate;let e=t.Device||{};this.Device={adBlocker:e.adBlocker||!1,browser:e.browser||"Other",browserVersion:e.browserVersion||null,os:e.os||"Other",screenHeight:e.screenHeight||null,screenWidth:e.screenWidth||null,type:e.type?e.type.toLocaleUpperCase():null};let i=t.Geolocation||{};this.Geolocation={city:i.city||null,country:i.country||null,latitude:i.latitude||null,longitude:i.longitude||null,postalCode:i.postalCode||null,region:i.region||null};let s=t.Weather||{};this.Weather={conditionCode:s.conditionCode||null,conditionDescription:s.conditionDescription||null,cloudiness:s.cloudiness||null,humidity:s.humidity||null,pressure:s.pressure||null,sunrise:s.sunrise||null,sunset:s.sunset||null,temperature:s.temperature||null,windSpeed:s.windSpeed||null};this.conversions=t.conversions||{};this.ExperimentActivations=t.ExperimentActivations||{};this.PersonalizationActivations=t.PersonalizationActivations||{};this.pages=t.pages||[]}obtainExperimentNumberActivations(t,e,i){return this.computeActionNumberActivations(t,e,i,this.ExperimentActivations)}}class Visitor{constructor(){this.addVisit=t=>{this.visits.push(t);this.currentVisit=t;this.totalVisits++;if(null==this.timeStartedEldestVisit)this.timeStartedEldestVisit=t.startDate;const e=this.visits.length;const i=Math.max(1,Kameleoon.Internals.configuration.maxNumberLocalVisits);if(e>i)this.visits=this.visits.slice(e-i)};this.obtainKeyPageIsVisited=t=>{for(let e=0,i=this.visits.length;e{for(let e=0,i=this.visits.length;e{let e=0;for(let i=this.visits.length-1;i>=0;--i)e+=this.visits[i].obtainNumberConversions(t);return e};this.obtainActionNumberActivations=(t,e,i,s,o,n,r,a)=>{const l=a?"obtainExperimentNumberActivations":"obtainPersonalizationNumberActivations";const m=this.visits.length;let c=0;if(m>0&&(o||n)){let e=0;let a=m;if(!n&&o)e=m-1;else if(n&&!o)a=m-1;for(let o=e;o0):e}}return c};this.obtainPageNumberViews=(t,e,i,s,o,n)=>{const r=this.visits.length;let a=0;if(r>0&&(o||n)){let l=0;let m=r;if(!n&&o)l=r-1;else if(n&&!o)m=r-1;for(let o=l;o{let t=0;if(this.visits.length>1){t=this.currentVisit.startDate-this.visits.slice(-2)[0].lastEventDate;t=Math.max(t,Kameleoon.Internals.runtime.Gatherer.configuration.maxVisitIdleDuration)}return t};this.obtainVisitorCode=t=>{let e=!1;let i=Kameleoon.Utils.readLocalData("kameleoonVisitorCode","COOKIE");const s=Kameleoon.Internals.runtime.storedData.obtainField("Gatherer","timeNextSynchronization",null);if(Kameleoon.Internals.configuration.useWideDomainSupport||Kameleoon.Internals.configuration.useVisitorCodeInLocalStorage){const t=Kameleoon.Internals.runtime.incomingStoredData?.["kameleoonVisitorCode"]??Kameleoon.Utils.readLocalData("kameleoonVisitorCode","LS");if(t)i=t}if(t||null==i){i=Kameleoon.Utils.obtainRandomString(Visitor.VISITOR_CODE_LENGTH,Analyst.CODE_ALPHABET);e=!0}Kameleoon.Utils.saveVisitorCode(i,null==s);this.visitorCode=i;return e};this.obtainVisitorFromStoredData=()=>Kameleoon.Internals.runtime.storedData.Visitor;this.saveToStoredData=()=>{this.saveFieldToStoredData("visits",this.visits);this.saveFieldToStoredData("totalVisits",this.totalVisits);this.saveFieldToStoredData("timeStartedEldestVisit",this.timeStartedEldestVisit)};this.setVisitorCode=t=>{if(this.visitorCode!=t){Kameleoon.Internals.runtime.newVisitorCode=!0;Kameleoon.Utils.saveVisitorCode(t);this.visitorCode=t;Kameleoon.Internals.runtime.Visitor.currentVisit.visitorCode=t;if(this.visits)this.visits.forEach((e=>{e.visitorCode=t}));Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList(0).forEach((t=>{if(void 0!==t.registeredVariationId){t.registeredVariationId=void 0;t.performVariationAssignment(!0)}}));Kameleoon.Internals.runtime.Campaigns.obtainCampaignsList(1).forEach((t=>{if(t.customExpositionRate){if(Kameleoon.Internals.runtime.incomingStoredData)delete Kameleoon.Internals.runtime.incomingStoredData["kameleoonPersonalization-"+t.id];Kameleoon.Utils.eraseLocalData("kameleoonPersonalization-"+t.id,null,"LS")}}));this.saveToStoredData();Kameleoon.Gatherer.track(VisitEvent_Page);Kameleoon.Gatherer.track(VisitEvent_StaticData)}};this.updateFromStoredData=(t,e,i)=>{const s=this.obtainVisitorFromStoredData();const o=s.visits;if(!this.visitorCode){const t=this.obtainVisitorCode(i);if(t)i=!0}if(o){const t=o.slice(-1)[0].visitorCode;if(t!=this.visitorCode){const e=Kameleoon.Utils.readLocalData("kameleoonVisitorCode","LS")||Kameleoon.Utils.readLocalData("kameleoonVisitorCode","COOKIE");if(e==t||!Kameleoon.Internals.runtime.Consent.hasGlobalConsent()){this.visitorCode=t;try{delete Kameleoon.Internals.runtime.localDataMap.COOKIE["kameleoonVisitorCode"];delete Kameleoon.Internals.runtime.localDataMap.LS["kameleoonVisitorCode"]}catch(t){}}else if(e==this.visitorCode)i=!0}}if(i||t){e=!0;if(i)this.totalVisits=0}this.visits=[];if(!i&&o){o.forEach((t=>{this.addVisit(new Visit(t))}));this.totalVisits=s.totalVisits;this.timeStartedEldestVisit=s.timeStartedEldestVisit}let n=0;if(e||!this.currentVisit||this.currentVisit.isVisitFinished()){const{Device:t,storedData:e}=Kameleoon.Internals.runtime;const s=e.obtainField("Gatherer","startsOfVisitForCurrentPage");e.saveField("Gatherer","startsOfVisitForCurrentPage",s+1);Kameleoon.Internals.runtime.Gatherer.startOfVisit=!0;e.resetForStartOfVisit();e.saveField("Runtime","firstReferrerHref",Kameleoon.Gatherer.Referrer.obtainCorrected(!0)||null);e.saveField("Runtime","firstReferrersIndices",Kameleoon.Gatherer.Referrer.obtainIndexes(!0)||[null]);e.saveField("Runtime","landingKeyPagesIndices",Kameleoon.Gatherer.KeyPage.obtainIndexes()||[null]);let o;if(!this.currentVisit||i)o=0;else o=this.currentVisit.visitNumber+1;this.addVisit(new Visit({visitorCode:this.visitorCode,startDate:(new Date).getTime(),visitNumber:o,landingPageURL:Kameleoon.Utils.computeCurrentPageCleanAbsoluteURL(),Device:{browser:Kameleoon.Gatherer.Browser.obtain(),browserVersion:t.browserVersion,os:Kameleoon.Gatherer.OperatingSystem.obtain(),screenHeight:t.screenHeight,screenWidth:t.screenWidth,type:t.type}}));n=2}this.saveToStoredData();Kameleoon.Internals.runtime.storedData.save(n)};this.getCustomDataVisitor=()=>{const t={};const e=Kameleoon.Internals.runtime.Gatherer.configuration.customData;for(const i in Kameleoon.Internals.runtime.Visitor.currentVisit.customData){const s=e[i];if(null!=s&&!s.disabled)if("VISITOR"==s.scope){const e=Kameleoon.Internals.runtime.Visitor.currentVisit.customData[i];t[i]=e}}return t};this.registerVisitsRequestSuccess=t=>{const e=[];for(let i=0,s=t.previousVisits.length;i0){const t=t=>{if(null!=this.currentVisit){const e=this.currentVisit;const i=[];for(let t=0,e=this.visits.length-1;tt.startDate-e.startDate));this.visits=[];let s=null;let o=null;for(let t=0,e=i.length;t1)Kameleoon.Gatherer.track(VisitEvent_StaticData);this.saveToStoredData()}return e;};this.compareCurrentVisitFromServer=t=>{try{const e=new Set(["Device","Geolocation","Weather"]);const i=new Set(["firstReferrerHref","landingKeyPagesIndices","firstReferrersIndices"]);const s=t=>null!==t&&"object"===typeof t&&!Array.isArray(t);for(const o in t){if(e.has(o))continue;const n=this.currentVisit[o];const r=t[o];if(s(n)&&s(r))for(const t in r)if(null==n[t])n[t]=r[t];if(i.has(o)&&t[o])Kameleoon.Internals.runtime.storedData.saveField("Runtime",o,t[o])}}catch(t){}};this.performRemoteVisitorSynchronization=()=>{if(Kameleoon.Internals.runtime.enableRemoteVisitorSynchronization&&!Kameleoon.Internals.runtime.isReloaded){const t=Kameleoon.Gatherer.Referrer.obtain()&&new URL(Kameleoon.Gatherer.Referrer.obtain()).origin;const e=t!=window.location.origin;if(e||Kameleoon.Internals.configuration.useFeatureFlagCondition){const t=t=>{if(t.previousVisits&&t.previousVisits.length)this.registerVisitsRequestSuccess(t);if(t.currentVisit)this.compareCurrentVisitFromServer(t.currentVisit)};const i=Kameleoon.Internals.configuration.enableHistoryReconciliation?0:e?Kameleoon.Internals.configuration.maxNumberLocalVisits:0;this.remoteSynchronisation("visitorCode",this.visitorCode,t,i)}}};this.obtainProductData=(t,e,i,s)=>{const o=`${Kameleoon.Internals.runtime.DATA_URL}/product/${t}`;i.siteCode=Kameleoon.Internals.configuration.siteCode;i.eans=encodeURIComponent(JSON.stringify((e instanceof Array?e:[e]).map((t=>t.toString()))));Kameleoon.Utils.performBeaconServerCall(Kameleoon.Utils.addParameterToURL(o,Kameleoon.Utils.parseObjectToUrlParams(i),!1),(function(t){if(4===t.readyState&&200===t.status)s(JSON.parse(t.response||"{}"))}),(function(t){console.error(t)}));};this.obtainIdentifierValue=()=>{let t=null;return t||this.visitorCode};this.visits=[];this.currentVisit=null;this.totalVisits=0;this.updateFromStoredData(!1);Object.defineProperty(this,"customData",{enumerable:!0,get:()=>this.getCustomDataVisitor()})}saveFieldToStoredData(t,e){Kameleoon.Internals.runtime.storedData.Visitor[t]=e}remoteSynchronisation(t,e,i,s){if("string"==typeof e&&e.length>0){const o={siteCode:Kameleoon.Internals.configuration.siteCode,currentVisit:"customData"!==t,format:"ENGINE",maxNumberPreviousVisits:"number"==typeof s?s:Kameleoon.Internals.configuration.maxNumberLocalVisits,version:3};"customData"==t&&(o.mappingValue=e);"visitorCode"==t&&(o.visitorCode=e);Kameleoon.Internals.runtime.remoteSynchronisationProcess=!0;Kameleoon.Internals.runtime.RequestManager.addCallback((()=>{Kameleoon.Internals.runtime.RequestManager.obtainRemoteSynchronizationData(Kameleoon.Utils.parseObjectToUrlParams(o),(t=>{if(4==t.readyState&&200==t.status){const e=JSON.parse(t.responseText);i&&i(e);Kameleoon.Utils.sendKameleoonCustomEvent.call(window,"RemoteSynchronizationPerformed",{visitsFromServer:e});delete Kameleoon.Internals.runtime.remoteSynchronisationProcess}}))}))}}}Visitor.VISITOR_CODE_LENGTH=16;Visitor.INFLUENCE_DELAY=1e3*60*60*24*7;try{window.Kameleoon=new KameleoonEngine}catch(o){console.log(o)} Kameleoon.Internals = {"configuration":{"API_HOST_NAME":"api","APP_HOST_NAME":"app","BACK_OFFICE_HOST_NAME":"old","STATIC_IMAGES_URL":"//static.experimentation.dev/js/editor/source/images/","STATIC_HOST_NAME":"static","EDITOR_HOST_NAME":"editor","DOMAIN":"kameleoon.com","SITE_RESOURCES_DOMAIN":"kameleoon.eu","GUI_ESTIMATED_LOADING_TIME":3000,"IMAGE_PATH":"https://hhe897ty9a.kameleoon.eu/images/","PROXY_HOST_NAME":"proxy","QOOXDOO_ESTIMATED_LOADING_TIME":2000,"SERVER_CALL_ESTIMATED_LOADING_TIME":500,"environment":"PRODUCTION","staticURL":"https://static.experimentation.dev/","maxNumberLocalVisits":25,"memberCode":"0","siteCode":"hhe897ty9a","abtestConsent":"OFF","abtestConsentOptout":"RUN","beforeAbtestConsent":"ALL","beforePersonalizationConsent":"ALL","personalizationConsent":"OFF","personalizationConsentOptout":"RUN","personalizationsDeviation":1,"experiments":[{"id":327835,"name":"Show chat button","baseURL":"https://instantfunding.com/","experimentAction":true,"javaScriptCode":"const goals={clickChat247Button:389874},CUSTOM_DATA_INDEX=\"Click chat button place\",fireGoal=e=>{window.kameleoonQueue=window.kameleoonQueue||[],window.kameleoonQueue.push([\"Kameleoon.API.Goals.processConversion\",e])},setCustomData=(e,o)=>{window.kameleoonQueue=window.kameleoonQueue||[],window.kameleoonQueue.push([\"Kameleoon.API.Data.setCustomData\",e,o])},initializeGoalTracking=()=>{Kameleoon.API.Core.runWhenElementPresent('[href^=\"#my_custom_link\"]',(e=>{e.forEach((e=>{if(e.dataset.kameleoonClickHandler)return;const o=\"my_custom_link\"===e.id?\"banner\":\"my_custom_link2\"===e.id?\"footer\":null;if(o){const n=()=>{setCustomData(CUSTOM_DATA_INDEX,o),fireGoal(goals.clickChat247Button)};e.addEventListener(\"click\",n),e.dataset.kameleoonClickHandler=\"true\"}}))}),null,!0)};window.kameleoonQueue=window.kameleoonQueue||[],window.kameleoonQueue.push({level:\"IMMEDIATE\",command:initializeGoalTracking});","executeCodeForReference":true,"forcedTechnical":true,"dateModified":1756995886000,"dateStatusModified":1756995886000,"goals":[381221,389874],"deviation":{"0":0.5,"1157635":0.5},"variations":[{"name":"Reference","id":0,"deviation":0.5},{"name":"Variation 1","id":1157635,"deviation":0.5}],"targetingSegmentId":359416,"attributionWindow":"604800000","kameleoonTracking":{"mainGoalId":381221}},{"id":388682,"name":"NEW Program list reduction / Hide-Show more","baseURL":"https://instantfunding.com","experimentAction":true,"globalScript":"const goals={\"Program selection\":414155},PAGES={order:/^https?:\\/\\/instantfunding\\.com\\/checkout\\/order-received\\//},fireGoal=(e,o=null,r=null)=>{r?Kameleoon.API.Goals.processConversion(goals[e],o,r):Kameleoon.API.Goals.processConversion(goals[e],o)},setCustomData=(e,o)=>{Kameleoon.API.Data.setCustomData(e,o)};function getProgramFromDataLayer(){if(!window.dataLayer||!Array.isArray(window.dataLayer))return\"unknown\";const e=window.dataLayer.find((e=>e&&\"purchase\"===e.event));if(!e||!e.ecommerce)return\"unknown\";const o=e.ecommerce.items;if(!o||!Array.isArray(o)||0===o.length)return\"unknown\";return o[0].item_name||\"unknown\"}function trackProgramSelection(){PAGES.order.test(window.location.href)&&Kameleoon.API.Core.runWhenConditionTrue((()=>!(!window.dataLayer||!Array.isArray(window.dataLayer))&&window.dataLayer.some((e=>e&&\"purchase\"===e.event))),(()=>{const e=getProgramFromDataLayer();setCustomData(\"Program selection\",e),fireGoal(\"Program selection\",null,{83:e})}))}Kameleoon.API.Core.runWhenElementPresent(\"body\",(()=>{trackProgramSelection()}),200,!0);","executeCodeForReference":true,"forcedTechnical":true,"dateModified":1779093330000,"dateStatusModified":1779093330000,"goals":[381221,414155,414151,414152,414154],"deviation":{"0":0.5,"1304594":0.5},"variations":[{"name":"Reference","id":0,"deviation":0.5},{"name":"Variation 1","id":1304594,"deviation":0.5}],"targetingTriggerId":473570,"targetingSegmentConfiguration":"ALL_VISITORS","attributionWindow":"604800000","kameleoonTracking":{"mainGoalId":381221}}],"personalizations":[{"dateCreated":1743447867000,"dateModified":1762352189000,"dateStatusModified":1753386657000,"id":193485,"forcedTechnical":true,"goals":[372368,373041,382828,385943,381133,385369,396871,381221],"name":"Post-purchase survey \"How did you learn about us?\"","mainGoalId":381221,"configuration":"CUSTOM","priority":1,"customExpositionRate":1,"personalizationCheckConditionsRule":"ALL_CONDITIONS","scheduleItem":[],"targetingSegment":null,"attributionWindow":"604800000","associatedVariation":{"id":1142183,"name":"Variation 1"},"targetingSegmentId":315122,"cappingPerVisitorGoalId":0,"expositionFrequencySameVisit":1,"expositionFrequencySameVisitorDelaySeconds":21600,"kameleoonTracking":{"mainGoalId":null}},{"dateCreated":1770030617000,"dateModified":1773756846000,"dateStatusModified":1770115486000,"id":213268,"forcedTechnical":true,"goals":[343342,343340,343361,343360,343343,343339,343341],"name":"NPS API","mainGoalId":343361,"configuration":"CUSTOM","priority":1,"customExpositionRate":1,"personalizationCheckConditionsRule":"ALL_CONDITIONS","scheduleItem":[],"targetingSegment":null,"attributionWindow":"604800000","associatedVariation":{"id":1243043,"name":"Variation 1"},"targetingSegmentId":268009,"cappingPerVisitorGoalId":343342,"cappingPerVisitorConvertGoal":true,"expositionFrequencySameVisit":1,"expositionFrequencySameVisitorDelaySeconds":86400,"expositionFrequencySameVisitor":1,"kameleoonTracking":{"mainGoalId":null}}],"targetingSegments":[{"id":268009,"name":"NPS new","tree":{"orOperator":false,"orGuiLevel":0,"leftChild":{"orOperator":false,"orGuiLevel":1,"leftChild":{"targetingCondition":{"type":"PAGE_URL","disabled":false,"weight":1,"include":true,"value":"hub\\.instantfunding\\.com\\/home"}},"rightChild":{"targetingCondition":{"type":"PAGE_URL","disabled":false,"weight":1,"include":false,"value":"sign-in|sign-up|challenges|login"}}},"rightChild":{"targetingCondition":{"type":"COOKIE","disabled":false,"weight":1,"include":false,"name":"kam_finish_survey_NPS","value":"true","nameOperator":"EXACT","valueOperator":"CONTAINS"}}}},{"id":315122,"name":"Post-purchase survey","tree":{"orOperator":false,"orGuiLevel":0,"leftChild":{"targetingCondition":{"type":"PAGE_URL","disabled":false,"weight":1,"include":true,"value":"(.*)/checkout/order-received/(.*)"}},"rightChild":{"targetingCondition":{"type":"JS_CODE","disabled":false,"weight":1,"include":true,"value":"if (!document.cookie.includes('user_email=')) return true;\r\nelse return undefined;"}}}},{"id":359416,"name":"Show chat button","tree":{"targetingCondition":{"type":"PAGE_URL","disabled":false,"weight":1,"include":false,"value":"(.*)hub\\.(.*)"}}}],"targetingTriggers":[{"id":473570,"name":"MAIN PAGE (NEW USERS) - converted","tree":{"orOperator":false,"orGuiLevel":0,"leftChild":{"targetingCondition":{"type":"PAGE_URL","disabled":false,"weight":1,"include":true,"value":"\\/instantfunding\\.com\\/(?:\\?|#|$)"}},"rightChild":{"targetingCondition":{"type":"JS_CODE","disabled":false,"weight":1,"include":true,"value":"if (!document.cookie.includes('user_email=')) return true;\r\nelse return undefined;"}}},"trigger":true}],"variations":[{"name":"Variation 1","id":1142183,"css":".survey-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.5);z-index:9999}.survey-popup{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#fff;padding:32px;border-radius:16px;box-shadow:0 4px 20px rgba(0,0,0,.15);z-index:10000;max-width:600px;width:90%;box-sizing:border-box}.survey-title{font-family:Robontov2,sans-serif;font-weight:400;font-size:40px;line-height:130%;letter-spacing:0;color:#132239;margin-top:0;margin-bottom:24px;text-align:center}.survey-options{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}.survey-option{font-family:Onest;font-weight:500;font-size:16px;line-height:120%;letter-spacing:0;color:#132239;display:flex;align-items:center;width:calc(50% - 6px);vertical-align:middle;cursor:pointer}.survey-option input[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-right:8px;width:16px;height:16px;border:1px solid #132239;border-radius:50%;outline:0;cursor:pointer;position:relative}.survey-option input[type=radio]:checked{border-color:#7270ff}.survey-option input[type=radio]:checked::before{content:'';display:block;width:10px;height:10px;background-color:#7270ff;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.survey-option input[type=radio]:hover{border-color:#7270ff}.survey-submit{width:240px;height:48px;border-radius:38px;padding:16px 24px;gap:12px;background-color:#7270ff;color:#fff;font-family:Onest;font-weight:500;font-size:14px;line-height:120%;letter-spacing:0;border:none;cursor:pointer;display:block;margin:0 auto;transition:background-color .2s}.survey-submit:hover{background-color:#1a2c4a}.survey-submit:disabled{background-color:#ccc;cursor:not-allowed}.survey-close{position:absolute;top:40px;right:40px;width:40px;height:40px;cursor:pointer}@media (max-width:580px){.survey-title{font-size:32px;line-height:130%;letter-spacing:0;text-align:start}.survey-options{gap:8px;flex-direction:column}.survey-close svg{width:24px;height:24px}.survey-close{top:16px;right:16px;width:16px;height:16px}.survey-option{width:100%}}@media (max-height:760px){.survey-popup{max-height:550px;overflow-y:auto}}","elementSets":[],"javaScriptCode":{"code":"const goals={'Click \"Submit\" (Post-purchase survey)':372368,\"Close popup without answer (Post-purchase survey)\":373041},fireGoal=e=>{Kameleoon.API.Goals.processConversion(goals[e])},sources=[\"Influencer or blogger\",\"Telegram\",\"YouTube ads\",\"Review website\",\"Google or Bing\",\"Sponsored event or athlete\",\"Friend or family\",\"Email or newsletter\",\"X\",\"Community or forum\",\"Discord\",\"Trading school or course\",\"Instagram\",\"Podcast\",\"Facebook\",\"Other\",\"TikTok\"],generateOptionsHTML=e=>e.map((e=>`\\n \\n `)).join(\"\"),popupHTML=`\\n
\\n
\\n \\n \\n \\n \\n
\\n
\\n
\\n

How did you learn about us?

\\n
\\n ${generateOptionsHTML(sources)}\\n
\\n \\n
\\n`,userId=window.Kameleoon&&window.Kameleoon.API?window.Kameleoon.API.Visitor.code:\"unknown\",url=\"https://ifrestapi-dev.instantfunding.com/api/post_survey_data/\",getCookie=e=>{const o=`; ${document.cookie}`.split(`; ${e}=`);return 2===o.length?o.pop().split(\";\").shift():null},sendData=async(e,o)=>{const t={user_id:userId,survey:\"self-attribution\",key:e||\"\",value:o||\"\"};try{const e=await fetch(url,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(t)});if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);return!0}catch(e){return console.error(\"Error sending data:\",e),!1}};function closeSurveyPopup(){const e=document.querySelector(\".survey-overlay\"),o=document.querySelector(\".survey-popup\");e&&e.remove(),o&&o.remove(),document.body.style.overflow=\"\"}async function initSurveyPopup(){const e=getCookie(\"user_email\");e&&await sendData(\"cookie_email\",e),document.body.insertAdjacentHTML(\"beforeend\",popupHTML),document.body.style.overflow=\"hidden\";const o=document.querySelector(\".survey-close\"),t=document.querySelector(\".survey-submit\"),n=document.querySelectorAll('input[name=\"source\"]');o.addEventListener(\"click\",(async()=>{fireGoal(\"Close popup without answer (Post-purchase survey)\"),closeSurveyPopup()})),t.addEventListener(\"click\",(async()=>{const e=document.querySelector('input[name=\"source\"]:checked');if(e){const o=e.value;fireGoal('Click \"Submit\" (Post-purchase survey)'),closeSurveyPopup(),await sendData(\"selected_attribution\",o)}})),n.forEach((e=>{e.addEventListener(\"change\",(()=>{t.disabled=!1}))})),t.disabled=!0}Kameleoon.API.Core.runWhenElementPresent(\"body\",(()=>{setTimeout((()=>{initSurveyPopup()}),1e3)}));","afterDOMReady":false}},{"name":"Variation 1","id":1157635,"css":".intercom-launcher{display:none!important}.intercom-launcher-frame.show{display:block!important}","elementSets":[],"javaScriptCode":{"code":"const initializeChatButtonDisplay=()=>{Kameleoon.API.Core.runWhenElementPresent('[href^=\"#my_custom_link\"]',(e=>{e.forEach((e=>{Kameleoon.API.Utils.addUniversalClickListener(e,(()=>{Kameleoon.API.Core.runWhenElementPresent(\".intercom-launcher-frame\",(e=>{e[0].classList.add(\"show\")}))}))}))}),null,!0)};window.kameleoonQueue=window.kameleoonQueue||[],window.kameleoonQueue.push({level:\"IMMEDIATE\",command:initializeChatButtonDisplay});","afterDOMReady":false}},{"name":"Variation 1","id":1243043,"css":"#kameleoonElement-213268.banner{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:100%;max-width:343px;height:fit-content;padding:24px;border-radius:24px;background:#fff;box-shadow:0 17px 30px rgba(0,0,0,.12);overflow:hidden;z-index:1000001}.overflow-213268{position:fixed;inset:0;background:#1e1E1E66;z-index:1000000}#kameleoonElement-213268 p{margin:0}#kameleoonElement-213268 .close{position:absolute;top:24px;right:24px;z-index:1000002}#kameleoonElement-213268 .close__cross{position:relative;width:16px;height:16px;cursor:pointer}#kameleoonElement-213268 .close__cross::after,#kameleoonElement-213268 .close__cross::before{content:\"\";position:absolute;inset:0;width:100%;height:2px;background:#132239;transform:translateY(-50%);top:50%;left:0}#kameleoonElement-213268 .close__cross::before{transform:translateY(-50%) rotate(45deg)}#kameleoonElement-213268 .close__cross::after{transform:translateY(-50%) rotate(-45deg)}#kameleoonElement-213268 .banner__content{width:100%}#kameleoonElement-213268 .wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;width:100%}#kameleoonElement-213268 .icon-svg{align-self:flex-start;margin:0;flex-shrink:0}#kameleoonElement-213268 .text{color:#132239;font-family:Onest,sans-serif;font-size:16px;font-weight:500}#kameleoonElement-213268 .text__title{align-self:flex-start;text-align:left;margin-bottom:16px}#kameleoonElement-213268 .wrapper_first .text__title,#kameleoonElement-213268 .wrapper_info .text__title:first-child{width:85%}#kameleoonElement-213268 .wrapper_info .text__title:first-child{margin-bottom:16px}#kameleoonElement-213268 .wrapper_first .text__title,#kameleoonElement-213268 .wrapper_info .text__title:last-child{margin-bottom:0}#kameleoonElement-213268 .wrapper_start .text__title,#kameleoonElement-213268 .wrapper_start .text_container{text-align:start;align-self:start}#kameleoonElement-213268 .text__button{color:#fff}#kameleoonElement-213268 .wrapper_info{gap:16px}#kameleoonElement-213268 .wrapper_third .text__title,#kameleoonElement-213268 .wrapper_trustpilot .text__title{text-align:start;align-self:start}#kameleoonElement-213268 .wrapper_trustpilot .text__title{margin-bottom:16px;font-size:18px}#kameleoonElement-213268 .wrapper_trustpilot .text__description a:hover{color:#7270ff}#kameleoonElement-213268 .fields{display:flex;flex-direction:column;gap:16px;width:100%;align-self:stretch}#kameleoonElement-213268 .field_item{height:44px;width:100%;padding:0 12px;border:1px solid #1e1E1E29;border-radius:8px;background:#fff;font-family:Onest,sans-serif;font-size:16px;font-weight:500;line-height:20px;color:#1e1e1e;transition:border-color .2s ease}#kameleoonElement-213268 .field_item:focus{outline:0;border-color:#7270ff}#kameleoonElement-213268 .field_item.invalid{border-color:#ff4d4f!important}#kameleoonElement-213268 .field_item:focus,#kameleoonElement-213268 .field_item:not(:placeholder-shown):not(.invalid){border-color:#7270ff!important}#kameleoonElement-213268 .field_item:focus:valid,#kameleoonElement-213268 .field_item:not(:placeholder-shown):valid{border-color:#7270ff!important}#kameleoonElement-213268 .field_item:-webkit-autofill{background-color:#fff!important;color:#1e1e1e!important;border-color:#7270ff!important}#kameleoonElement-213268 .field_item.textarea{height:142px;padding:12px 16px;resize:none}#kameleoonElement-213268 .field:nth-child(2){max-height:142px}#kameleoonElement-213268 .field_item::placeholder,#kameleoonElement-213268 .textarea::placeholder{color:#1e1E1E80;opacity:1;font-weight:500}#kameleoonElement-213268 .rating{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;width:100%}#kameleoonElement-213268 .rating__item{display:flex;align-items:center;justify-content:center;padding:16px 24px;border:1px solid #1e1E1E29;font-family:Onest,sans-serif;font-size:16px;font-weight:500;line-height:22px;color:#132239;cursor:pointer;transition:all .15s ease;border-radius:64px;opacity:1;height:52px;width:52px;background-color:#f5f5f5}#kameleoonElement-213268 .rating__item.active,#kameleoonElement-213268 .rating__item:hover{background:#7270ff;border-color:#1e1E1E29;color:#fff}#kameleoonElement-213268 .button{display:flex;align-items:center;justify-content:center;height:40px;padding:0 24px;border:none;border-radius:52px;background:#d9d9d9;cursor:default;transition:all .15s ease;text-decoration:none;margin-top:16px}#kameleoonElement-213268 .button.active{background:#1e1e1e;border-color:#1e1e1e;color:#fff;cursor:pointer}#kameleoonElement-213268 .button:focus-visible,#kameleoonElement-213268 input.field_item:focus-visible,#kameleoonElement-213268 textarea.field_item:focus-visible{outline:0}@media (max-width:768px){#kameleoonElement-213268.banner{top:auto;bottom:135px;left:0;right:0;transform:none;margin:0 auto}#kameleoonElement-213268 .button{width:100%}.overflow-213268{position:fixed;inset:0;background:#1e1E1E66;z-index:1000000}}@media (max-width:595px){#kameleoonElement-213268 .text__title{width:100%}#kameleoonElement-213268 .rating__item{padding:0}}","elementSets":[],"javaScriptCode":{"code":"Kameleoon.API.Core.enableSinglePageSupport();const PERSONALIZATION_ID=213268,COOKIE_PREFIX=\"kam-213268\",COOKIE_SHOWN=\"kam-213268_showed_popup\",COOKIE_FINISHED=\"kam_finish_survey_NPS\",API_URL=\"https://ifrestapi-dev.instantfunding.com/api/post_survey_data/\",TRUSTPILOT_URL=\"https://propfirmmatch.com/prop-firms/instant-funding\",GOALS={\"Start take survey (NPS New)\":343360,\"Submit rate (NPS New)\":343341,\"Close rating banner (NPS New)\":343340,'Click \"Trustpilot\" (NPS New)':343342,\"Submit comment (NPS New)\":343343,\"Submit contacts (NPS New)\":343339,\"See last step (NPS new)\":343361};function trackGoal(e){Kameleoon.API.Goals.processConversion(GOALS[e])}function sendSurveyData(e=\"\",t=\"\"){const n={user_id:Kameleoon.API.Visitor.code,survey:\"nps\",key:e,value:t};fetch(API_URL,{method:\"POST\",headers:{\"Content-Type\":\"application/json\"},body:JSON.stringify(n),credentials:\"same-origin\"}).then((e=>{if(!e.ok)throw new Error(`HTTP ${e.status}`)})).catch((e=>{console.error(\"Failed to send survey data:\",e)}))}function getCookie(e){const t=document.cookie.match(`(^|;)\\\\s*${e}\\\\s*=\\\\s*([^;]+)`);return t?decodeURIComponent(t[2]):null}function setCookie(e,t,n){const a=new Date;a.setTime(a.getTime()+864e5*n),document.cookie=`${e}=${t};expires=${a.toUTCString()};path=/;SameSite=Lax`}const HEART_ICON_SVG='\\n\\n \\n',SMILE_ICON_SVG='\\n\\n \\n';function createBanner(e){return`\\n
\\n
\\n
\\n
${e}
\\n
\\n `}const START_STEP=`\\n
\\n ${HEART_ICON_SVG}\\n
\\n

Please take our survey, your opinion is very important to us

\\n

It will take less than a minute

\\n
\\n \\n
\\n`,RATING_STEP=`\\n
\\n

Rate your experience on a scale of 1 (poor) to 10 (excellent)

\\n
\\n ${Array.from({length:10},((e,t)=>`${t+1}`)).join(\"\")}\\n
\\n \\n
\\n`;function createTrustpilotStep(e){return`\\n
\\n ${SMILE_ICON_SVG}\\n
\\n

WOW!

\\n

A ${e} from you is fantastic!
\\n Share your insights with others on\\n Prop Firm Match\\n by leaving a review.\\n

\\n
\\n \\n

Share

\\n
\\n
\\n `}const INFO_STEP='\\n
\\n
\\n

Please share your experience with Instant Funding\\'s support team today.

\\n

To allow us to reach out to you in the future, fill optional fields below. Thank you!

\\n
\\n
\\n
\\n
\\n
\\n
\\n \\n
\\n',THANK_YOU_STEP=`\\n
\\n ${HEART_ICON_SVG}\\n
\\n

Your input means a lot to us

\\n

Thank you for participating in the survey

\\n
\\n \\n
\\n`;function initBanner(){Kameleoon.API.Core.runWhenElementPresent(\"#kameleoonElement-213268:not([data-initialized])\",(e=>{const t=e[0];t.dataset.initialized=\"true\";const n=t.querySelector(\".banner__content\"),a=t.querySelector(\".close\"),r=document.querySelector(\".overflow-213268\");let s=0,o=!1,i=-1*parseInt(document.body.style.top||\"0\",10);function l(){t.remove(),r&&r.remove(),document.body.style.position=\"\",document.body.style.top=\"\",document.body.style.width=\"\",window.scrollTo(0,i),o&&Kameleoon.API.Data.writeLocalData(COOKIE_SHOWN,\"true\",!1)}a&&a.addEventListener(\"click\",(()=>{t.classList.contains(\"banner_rating\")&&trackGoal(\"Close rating banner (NPS New)\"),l()})),Kameleoon.API.Core.runWhenElementPresent(\".wrapper_start\",(e=>{const a=e[0];t.classList.add(\"banner_start\");const r=a.querySelector(\".button\");r&&r.addEventListener(\"click\",(()=>{trackGoal(\"Start take survey (NPS New)\"),a.remove(),n&&n.insertAdjacentHTML(\"afterbegin\",RATING_STEP)}))})),Kameleoon.API.Core.runWhenElementPresent(\".wrapper_first\",(e=>{const a=e[0];t.classList.remove(\"banner_start\"),t.classList.add(\"banner_rating\");const r=a.querySelector(\".rating\"),i=a.querySelector(\".button\"),l=i?.querySelector(\".text__button\"),c=a.querySelectorAll(\".rating__item\");i&&i.classList.add(\"active\"),r&&r.addEventListener(\"click\",(e=>{const t=e.target.closest(\".rating__item\");t&&(c.forEach((e=>e.classList.remove(\"active\"))),t.classList.add(\"active\"),s=Number(t.textContent),l&&(l.textContent=\"Submit\"))})),i&&i.addEventListener(\"click\",(()=>{trackGoal(\"Submit rate (NPS New)\"),sendSurveyData(\"rate\",s?String(s):\"not_selected\"),sendSurveyData(\"cookie_email\",getCookie(\"user_email\")),setCookie(COOKIE_FINISHED,\"true\",14),a.remove(),s>=9?(o=!0,n&&n.insertAdjacentHTML(\"afterbegin\",createTrustpilotStep(s))):n&&n.insertAdjacentHTML(\"afterbegin\",INFO_STEP)}))})),Kameleoon.API.Core.runWhenElementPresent(\".wrapper_trustpilot\",(e=>{const n=e[0];t.classList.remove(\"banner_rating\"),t.classList.add(\"banner_trustpilot\"),trackGoal(\"See last step (NPS new)\");n.querySelectorAll(\"a.link\").forEach((e=>{e.addEventListener(\"click\",(()=>{trackGoal('Click \"Trustpilot\" (NPS New)'),sendSurveyData(\"clicked_tp\",\"true\"),l()}))}))})),Kameleoon.API.Core.runWhenElementPresent(\".wrapper_info\",(e=>{const a=e[0];t.classList.remove(\"banner_rating\"),t.classList.add(\"banner_info\");const r=a.querySelector(\".button\"),s=a.querySelector(\".email\"),o=a.querySelector(\".name\"),i=a.querySelector(\".textarea\"),l=e=>/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$/.test(e);function c(){const e=s?.value.trim()||\"\",t=o?.value.trim()||\"\",n=i?.value.trim()||\"\",a=\"\"!==e&&\"\"!==t&&\"\"!==n&&l(e);r&&(a?r.classList.add(\"active\"):r.classList.remove(\"active\"))}s&&(s.addEventListener(\"input\",(()=>{const e=s.value.trim();s.classList.remove(\"invalid\"),\"\"!==e&&(l(e)||s.classList.add(\"invalid\")),c()})),s.addEventListener(\"blur\",(()=>{const e=s.value.trim();\"\"===e||l(e)||s.classList.add(\"invalid\")}))),o&&o.addEventListener(\"input\",(e=>{const t=e.currentTarget;t.value=t.value.replace(/[^A-Za-z\\s\\u0400-\\u04FF]/g,\"\"),c()})),i&&i.addEventListener(\"input\",c),r&&r.addEventListener(\"click\",(()=>{if(!r.classList.contains(\"active\"))return;if(s){const e=s.value.trim();if(\"\"!==e&&!l(e))return void s.classList.add(\"invalid\")}const e=i?.value.trim()??\"\";e&&(sendSurveyData(\"comment\",e),trackGoal(\"Submit Comment (NPS New)\"));let t=!1;s?.value.trim()&&l(s.value.trim())&&(t=!0,sendSurveyData(\"email\",s.value.trim())),o?.value.trim()&&(t=!0,sendSurveyData(\"name\",o.value.trim())),t&&trackGoal(\"Submit contacts (NPS New)\"),a.remove(),n&&n.insertAdjacentHTML(\"afterbegin\",THANK_YOU_STEP)})),c()})),Kameleoon.API.Core.runWhenElementPresent(\".wrapper_third\",(()=>{t.classList.remove(\"banner_info\"),t.classList.add(\"banner_close\"),trackGoal(\"See last step (NPS new)\");const e=t.querySelector(\".button__close\");e&&e.addEventListener(\"click\",l)}))}))}Kameleoon.API.Core.runWhenElementPresent(\"body\",(()=>{if(Kameleoon.API.Data.readLocalData(COOKIE_SHOWN))return;const e=document.querySelector(\"#kameleoonElement-213268\");e&&e.remove();const t=document.querySelector(\".overflow-213268\");t&&t.remove(),setTimeout((()=>{const e=window.pageYOffset;document.body.style.position=\"fixed\",document.body.style.top=`-${e}px`,document.body.style.width=\"100%\",document.body.insertAdjacentHTML(\"afterbegin\",createBanner(START_STEP)),initBanner()}),3e3)}));","afterDOMReady":false}},{"name":"Variation 1","id":1304594,"css":".upw-modelhead{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.programs-toggle-btn{display:inline-flex;align-items:center;gap:8px;background:0 0;border:none;padding:8px 12px;font-family:Onest,sans-serif;font-size:14px;font-weight:500;line-height:1;color:#7270ff;cursor:pointer}.programs-toggle-btn:active,.programs-toggle-btn:focus,.programs-toggle-btn:hover{color:#7270ff!important;background-color:unset!important}.programs-toggle-btn .toggle-arrow{display:inline-block;width:8px;height:8px;border-left:2px solid #7270ff;border-bottom:2px solid #7270ff;transition:transform .25s ease;transform:rotate(-45deg)}.programs-toggle-btn.expanded .toggle-arrow{transform:rotate(135deg)}.programs-collapsible-wrapper{overflow:hidden;transition:max-height .25s cubic-bezier(.4, 0, .2, 1);max-height:0}.programs-collapsible-wrapper.expanded{max-height:1200px}.program-hidden{display:none!important}.program-info-hidden{opacity:0;transform:translateY(8px);visibility:hidden;height:0;margin:0!important;padding:0!important;overflow:hidden;transition:opacity .25s ease,transform .25s ease,visibility .25s ease,height .25s ease,padding .25s ease,margin .25s ease}.programs-collapsible-wrapper .modeltbnonetwowrap{flex-flow:row;width:unset}@media (max-width:767px){.upw-mainouter .upw-modelblock .upw-modelhead{flex-direction:row;justify-content:space-between}.programs-toggle-btn{justify-content:center;padding:0 12px}}","elementSets":[],"javaScriptCode":{"code":"const CONFIG={CONTAINER_ID:\"programs-container\"};let isExpanded=!1,toggleButton=null,collapsibleWrapper=null,isAnimating=!1;const goals={\"Show more click\":414152,\"Show less click\":414154};function fireGoal(e){Kameleoon.API.Goals.processConversion(goals[e])}function swapPrograms(){const e=document.getElementById(CONFIG.CONTAINER_ID);if(!e)return;const t=e.querySelectorAll(\".modeltbnonetwowrap\");if(t.length<2)return;const o=t[0],n=t[1],r=o.querySelector('.upw-modelbtn[data-product-id=\"956788\"]'),a=n.querySelector('.upw-modelbtn[data-product-id=\"821028\"]'),i=o.querySelector('.upw-modelbtn[data-product-id=\"866986\"]'),l=n.querySelector('.upw-modelbtn[data-product-id=\"976739\"]');if(r&&a){document.createElement(\"div\");const e=r.cloneNode(!0),t=a.cloneNode(!0);r.parentNode.replaceChild(t,r),a.parentNode.replaceChild(e,a)}if(i&&l){document.createElement(\"div\");const e=i.cloneNode(!0),t=l.cloneNode(!0);i.parentNode.replaceChild(t,i),l.parentNode.replaceChild(e,l)}}function wrapSecondWrapper(){const e=document.getElementById(CONFIG.CONTAINER_ID);if(!e)return;const t=e.querySelectorAll(\".modeltbnonetwowrap\");if(t.length<=1)return;const o=t[0],n=t[1];collapsibleWrapper||(collapsibleWrapper=document.createElement(\"div\"),collapsibleWrapper.className=\"programs-collapsible-wrapper\",o.insertAdjacentElement(\"afterend\",collapsibleWrapper),collapsibleWrapper.appendChild(n)),isExpanded?collapsibleWrapper.classList.add(\"expanded\"):collapsibleWrapper.classList.remove(\"expanded\")}function isInFirstWrapper(e){const t=document.getElementById(CONFIG.CONTAINER_ID);if(!t)return!1;const o=t.querySelector(\".modeltbnonetwowrap\");return!!o&&o===e.closest(\".modeltbnonetwowrap\")}function isInCollapsibleWrapper(e){return!!collapsibleWrapper&&collapsibleWrapper.contains(e)}function updateInfoVisibilityImmediate(){const e=document.getElementById(\"program-info-dynamic\");if(!e)return;const t=document.querySelector(\"#programs-container .upw-modelbtn.active\");if(!t)return;t.getAttribute(\"data-product-id\");const o=isInFirstWrapper(t),n=isInCollapsibleWrapper(t),r=collapsibleWrapper&&collapsibleWrapper.classList.contains(\"expanded\");o||n&&r?e.classList.remove(\"program-info-hidden\"):e.classList.add(\"program-info-hidden\")}function updateInfoVisibility(){isAnimating?setTimeout(updateInfoVisibility,50):updateInfoVisibilityImmediate()}function addToggleButton(){const e=document.querySelector(\".upw-programsec\");if(!e)return;const t=e.querySelector(\".upw-modelhead\");if(!t)return;if(t.querySelector(\".programs-toggle-btn\"))return void(toggleButton=t.querySelector(\".programs-toggle-btn\"));const o=document.createElement(\"button\");o.className=\"programs-toggle-btn\",o.setAttribute(\"aria-label\",\"Show more programs\");const n=document.createElement(\"span\");n.className=\"toggle-text\",n.textContent=\"Show more programs\";const r=document.createElement(\"span\");r.className=\"toggle-arrow\",o.appendChild(n),o.appendChild(r),o.addEventListener(\"click\",(function(){if(isAnimating)return;const e=isExpanded;if(isExpanded=!isExpanded,!e&&isExpanded?fireGoal(\"Show more click\"):e&&!isExpanded&&fireGoal(\"Show less click\"),collapsibleWrapper){const e=document.getElementById(\"program-info-dynamic\"),t=document.querySelector(\"#programs-container .upw-modelbtn.active\"),o=t&&isInCollapsibleWrapper(t);isExpanded?(collapsibleWrapper.classList.add(\"expanded\"),e&&o&&setTimeout((()=>{e.classList.remove(\"program-info-hidden\")}),50)):(e&&o&&e.classList.add(\"program-info-hidden\"),collapsibleWrapper.classList.remove(\"expanded\"))}const t=this.querySelector(\".toggle-text\"),o=this.querySelector(\".toggle-arrow\");t&&(t.textContent=isExpanded?\"Show less programs\":\"Show more programs\"),o&&(isExpanded?this.classList.add(\"expanded\"):this.classList.remove(\"expanded\")),setTimeout(updateInfoVisibilityImmediate,150)})),t.appendChild(o),toggleButton=o}function init(){Kameleoon.API.Core.runWhenElementPresent(\"#\"+CONFIG.CONTAINER_ID,(()=>{swapPrograms(),wrapSecondWrapper(),addToggleButton(),updateInfoVisibilityImmediate();const e=document.getElementById(CONFIG.CONTAINER_ID),t=new MutationObserver((e=>{let t=!1;e.forEach((e=>{\"attributes\"===e.type&&\"class\"===e.attributeName&&e.target.classList&&e.target.classList.contains(\"upw-modelbtn\")&&(t=!0),\"childList\"===e.type&&e.addedNodes.length>0&&(t=!0)})),t&&updateInfoVisibility()}));e&&t.observe(e,{attributes:!0,attributeFilter:[\"class\"],childList:!0,subtree:!0}),document.addEventListener(\"click\",(function(e){e.target.closest(\".upw-modelbtn\")&&setTimeout(updateInfoVisibility,50)}))}),500)}\"loading\"===document.readyState?document.addEventListener(\"DOMContentLoaded\",init):init();","afterDOMReady":false}},{"id":0,"name":"Reference","css":"","elementSets":[]},{"id":null,"name":"Excluded"}],"goals":[{"id":343339,"name":"Submit contacts (NPS New)","type":"CUSTOM"},{"id":343340,"name":"Close rating banner (NPS New)","type":"CUSTOM"},{"id":343341,"name":"Submit rate (NPS New)","type":"CUSTOM"},{"id":343342,"name":"Click \"Trustpilot\" (NPS New)","type":"CUSTOM"},{"id":343343,"name":"Submit comment (NPS New)","type":"CUSTOM"},{"id":343360,"name":"Start take survey (NPS New)","type":"CUSTOM"},{"id":343361,"name":"See last step (NPS new)","type":"CUSTOM"},{"id":346680,"name":"Model (Redesign purchase page)","type":"CUSTOM"},{"id":346682,"name":"Balance (Redesign purchase page)","type":"CUSTOM"},{"id":346683,"name":"Type (Redesign purchase page)","type":"CUSTOM"},{"id":346684,"name":"Platform (Redesign purchase page)","type":"CUSTOM"},{"id":346685,"name":"Add-Ons (Redesign purchase page)","type":"CUSTOM"},{"id":346686,"name":"Click Promocode Verify (Redesign purchase page)","type":"CUSTOM"},{"id":346687,"name":"Click login (Redesign purchase page)","type":"CUSTOM"},{"id":346692,"name":"Click Create order (Redesign purchase page)","type":"CUSTOM"},{"id":346770,"name":"Click \"Start now\" (Text under start button)","type":"CUSTOM"},{"id":350770,"name":"Click \"Popular\" sticker","type":"CUSTOM"},{"id":350841,"name":"Start take survey (Support Quality Survey)","type":"CUSTOM"},{"id":350842,"name":"Close rating banner (Support Quality Survey)","type":"CUSTOM"},{"id":350843,"name":"Submit manager name (Support Quality Survey)","type":"CUSTOM"},{"id":350844,"name":"Submit rate (Support Quality Survey)","type":"CUSTOM"},{"id":350845,"name":"Submit comment (Support Quality Survey)","type":"CUSTOM"},{"id":350846,"name":"See last step (Support Quality Survey)","type":"CUSTOM"},{"id":351316,"name":"Click Trustpilot (Support Quality Survey)","type":"CUSTOM"},{"id":351451,"name":"Submit name (Support Quality Survey)","type":"CUSTOM"},{"id":351452,"name":"Submit email (Support Quality Survey)","type":"CUSTOM"},{"id":353380,"name":"Click \"Join now\" (Add competition banner)","type":"CUSTOM"},{"id":363771,"name":"Click ring (Discord Notification)","type":"CUSTOM"},{"id":363773,"name":"Click discord link (Discord Notification)","type":"CUSTOM"},{"id":363774,"name":"Click discord link on notification page (Discord Notification)","type":"CUSTOM"},{"id":363827,"name":"Get on notification page (Discord Notification)","type":"CUSTOM"},{"id":364023,"name":"Click notification link (Discord Notification)","type":"CUSTOM"},{"id":364064,"name":"Close notification with discord (Discord Notification)","type":"CUSTOM"},{"id":366640,"name":"Click \"Works in USA\" sticker","type":"CUSTOM"},{"id":367660,"name":"Click on \"Claim button\" (Sale banner)","type":"CUSTOM"},{"id":372368,"name":"Click \"Submit\" (Post-purchase survey)","type":"CUSTOM"},{"id":373041,"name":"Close popup without answer (Post-purchase survey)","type":"CUSTOM"},{"id":381133,"name":"Click “Start now”","type":"CUSTOM"},{"id":381221,"name":"Purchase CR","type":"CUSTOM"},{"id":382827,"name":"[NEW GLOBAL] Click on \"Place order\"","type":"CUSTOM"},{"id":382828,"name":"[NEW GLOBAL] Click on \"Register\"","type":"CUSTOM"},{"id":383147,"name":"User use calculator on main page (\"Calculator on main page\")","type":"CUSTOM"},{"id":385369,"name":"[NEW GLOBAL] Click on \"Start a challenge\"","type":"CUSTOM"},{"id":385942,"name":"User use calculator on buy page (\"Calculator on main page\")","type":"CUSTOM"},{"id":385943,"name":"[NEW GLOBAL] Click on \"Start Now\" on buy page","type":"CUSTOM"},{"id":389874,"name":"Click on \"Chat 24/7\" button (\"Show chat button\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(389874, (...args) => Kameleoon.API.Goals.processConversion(389874, ...args));"},{"id":395021,"name":"Click on \"Pay now/Place order\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395021, (...args) => Kameleoon.API.Goals.processConversion(395021, ...args));"},{"id":395022,"name":"Using a promocode (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395022, (...args) => Kameleoon.API.Goals.processConversion(395022, ...args));"},{"id":395023,"name":"Currency change (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395023, (...args) => Kameleoon.API.Goals.processConversion(395023, ...args));"},{"id":395024,"name":"Click on \"Change info\" button (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395024, (...args) => Kameleoon.API.Goals.processConversion(395024, ...args));"},{"id":395026,"name":"Click on \"Back\" button (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395026, (...args) => Kameleoon.API.Goals.processConversion(395026, ...args));"},{"id":395027,"name":"Start filling in the field \"First Name\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395027, (...args) => Kameleoon.API.Goals.processConversion(395027, ...args));"},{"id":395050,"name":"Start filling in the field \"Last Name\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395050, (...args) => Kameleoon.API.Goals.processConversion(395050, ...args));"},{"id":395051,"name":"Start filling in the field \"Email\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395051, (...args) => Kameleoon.API.Goals.processConversion(395051, ...args));"},{"id":395054,"name":"Start filling in the field \"House/street\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395054, (...args) => Kameleoon.API.Goals.processConversion(395054, ...args));"},{"id":395055,"name":"Start filling in the field \"City\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395055, (...args) => Kameleoon.API.Goals.processConversion(395055, ...args));"},{"id":395056,"name":"Start filling in the field \"State\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395056, (...args) => Kameleoon.API.Goals.processConversion(395056, ...args));"},{"id":395057,"name":"Start filling in the field \"ZIP\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395057, (...args) => Kameleoon.API.Goals.processConversion(395057, ...args));"},{"id":395058,"name":"Start filling in the field \"Phone number\" (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(395058, (...args) => Kameleoon.API.Goals.processConversion(395058, ...args));"},{"id":396760,"name":"User saw \"Pay now/Place order\" button (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(396760, (...args) => Kameleoon.API.Goals.processConversion(396760, ...args));"},{"id":396761,"name":"Click on \"Pay now/Place order\" with empty field (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(396761, (...args) => Kameleoon.API.Goals.processConversion(396761, ...args));"},{"id":396762,"name":"All fields are filled in (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(396762, (...args) => Kameleoon.API.Goals.processConversion(396762, ...args));"},{"id":396763,"name":"All fields are filled in, the order is placed (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(396763, (...args) => Kameleoon.API.Goals.processConversion(396763, ...args));"},{"id":396764,"name":"All fields are filled in, the order is not placed (\"Checkout redesign\"","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(396764, (...args) => Kameleoon.API.Goals.processConversion(396764, ...args));"},{"id":396871,"name":"[NEW GLOBAL] Click on \"Take the Challenge\"","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(396871, (...args) => Kameleoon.API.Goals.processConversion(396871, ...args));"},{"id":397422,"name":"Required fields are filled in (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(397422, (...args) => Kameleoon.API.Goals.processConversion(397422, ...args));"},{"id":397423,"name":"Button \"Pay now/Place order\" is enable (\"Checkout redesign\")","type":"CUSTOM","jsCode":"(function(ID, triggerGoal) {\n\t\t\t\t\t // Write your conversion code here. Find examples below:\n//\n// triggerGoal(); → No params\n// triggerGoal(49.99) ; → With revenue\n// triggerGoal(49.99, { 5: \"Gold\" }); → With revenue and metadata\n\t\t\t\t\t})(397423, (...args) => Kameleoon.API.Goals.processConversion(397423, ...args));"},{"id":410066,"name":"Users who saw Pay button","type":"CUSTOM"},{"id":410068,"name":"Click Pay with empty fields","type":"CUSTOM"},{"id":410069,"name":"[NEW GLOBAL] Click on \"Pay now\" button","type":"CUSTOM"},{"id":410070,"name":"Click Pay button","type":"CUSTOM"},{"id":410071,"name":"[NEW GLOBAL] Click on \"Apple Pay\" button","type":"CUSTOM"},{"id":410072,"name":"[NEW GLOBAL] Click on \"Google Pay\" button","type":"CUSTOM"},{"id":410073,"name":"[NEW GLOBAL] Purchase via \"Apple Pay\"","type":"CUSTOM"},{"id":410074,"name":"[NEW GLOBAL] Purchase via \"Google Pay\"","type":"CUSTOM"},{"id":410075,"name":"Time to purchase","type":"CUSTOM"},{"id":410343,"name":"Click on support contact button (\"Support contact button\")","type":"CUSTOM"},{"id":410466,"name":"[NEW GLOBAL] Purchase (payment method)","type":"CUSTOM"},{"id":410846,"name":"Click on program on main page","type":"CUSTOM"},{"id":410848,"name":"Program selection rate","type":"CUSTOM"},{"id":411077,"name":"User saw intercom button","type":"CUSTOM"},{"id":411078,"name":"User click on intercom button","type":"CUSTOM"},{"id":411163,"name":"Time to first interaction","type":"CUSTOM"},{"id":411164,"name":"Did not proceed to checkout","type":"CUSTOM"},{"id":411272,"name":"Start filling form","type":"CUSTOM"},{"id":411273,"name":"Time to first input","type":"CUSTOM"},{"id":412780,"name":"Header \"Start Trading\" clicks","type":"CUSTOM"},{"id":412781,"name":"Header account element clicks (\"Log in\" / \"Dashboard\")","type":"CUSTOM"},{"id":412782,"name":"Language switcher clicks","type":"CUSTOM"},{"id":412783,"name":"Mobile menu open clicks","type":"CUSTOM"},{"id":414151,"name":"Proceed to checkout","type":"URL","url":"(.*)/checkout/(.*)"},{"id":414152,"name":"Show more click","type":"CUSTOM"},{"id":414154,"name":"Show less click","type":"CUSTOM"},{"id":414155,"name":"Program selection","type":"CUSTOM"},{"id":414457,"name":"Proceeding to the Payment","type":"CUSTOM"},{"id":414458,"name":"Payment method selected","type":"CUSTOM"},{"id":414459,"name":"Drop-off at Billing","type":"CUSTOM"},{"id":414460,"name":"Drop-off at Payment","type":"CUSTOM"},{"id":414461,"name":"Checkout completion","type":"CUSTOM"},{"id":416303,"name":"Purchase by Card","type":"CUSTOM"},{"id":416304,"name":"Purchase by Apple Pay","type":"CUSTOM"},{"id":416305,"name":"Purchase by Google Pay","type":"CUSTOM"},{"id":416306,"name":"Purchase by Other","type":"CUSTOM"},{"id":417160,"name":"Purchase by Nuvei","type":"CUSTOM"}],"scriptProduceTime":1780567073249,"timeZone":"Europe/London","webExperimentationSetup":true,"boLocale":"ENGLISH","graphicalEditorVersion":"v1","isNewEditorEnabled":true,"DATA_URL":"https://eu-data.kameleoon.eu","useMultipleSiteCodes":true,"useWideDomainSupport":true,"geolocation":true,"globalScript":"const goals={'Click \"Start now\"':381133,'[NEW GLOBAL] Click on \"Start Now\" on buy page':385943,'[NEW GLOBAL] Click on \"Place order\"':382827,'[NEW GLOBAL] Click on \"Register\"':382828,'[NEW GLOBAL] Click on \"Start a challenge\"':385369,'[NEW GLOBAL] Click on \"Take the Challenge\"':396871,\"Purchase CR\":381221,\"Users who saw Pay button\":410066,\"[NEW GLOBAL] Click on pay button with empty field\":410068,\"Click Pay button\":410070,'[NEW GLOBAL] Click on \"Pay now\" button':410069,'[NEW GLOBAL] Click on \"Apple Pay\" button':410071,'[NEW GLOBAL] Click on \"Google Pay\" button':410072,'[NEW GLOBAL] Purchase via \"Apple Pay\"':410073,'[NEW GLOBAL] Purchase via \"Google Pay\"':410074,\"Time to purchase\":410075,\"[NEW GLOBAL] Purchase (payment method)\":410466},{href:href}=document.location,PAGES={order:/^https?:\\/\\/instantfunding\\.com\\/checkout\\/order-received\\//,main:/^https?:\\/\\/instantfunding\\.com(?:\\/[a-z]{2}\\/)?(?:\\/?)(?:[?#&]|$)/,login:/^https?:\\/\\/hub\\.instantfunding\\.com(?:\\/\\?_gl=[^\\/]*)?$/,dashboard_main:/^https:\\/\\/hub\\.instantfunding\\.com(?:\\/home)?(?:\\?.*)?$/,buy_page:/^https?:\\/\\/instantfunding\\.com\\/buy-challenge\\/(?:\\/[a-z]{2}\\/)?(?:\\/?)(?:[?#&]|$)/,checkout:/^https?:\\/\\/instantfunding\\.com\\/checkout\\/(?:\\/[a-z]{2}\\/)?(?:\\/?)(?:[?#&]|$)/},fireGoal=(e,t=null,o=null)=>{o?Kameleoon.API.Goals.processConversion(goals[e],t,o):Kameleoon.API.Goals.processConversion(goals[e],t)},setCustomData=(e,t)=>{Kameleoon.API.Data.setCustomData(e,t)};function trackClickGoals(){const e=({target:e})=>{PAGES.main.test(href)?e.closest(\"button.upw-mainpkgbtn\")&&fireGoal('Click \"Start now\"'):PAGES.buy_page.test(href)?e.closest(\"button.upw-mainpkgbtn\")&&fireGoal('[NEW GLOBAL] Click on \"Start Now\" on buy page'):PAGES.checkout.test(href)?e.closest(\"#place_order:not([disabled])\")&&fireGoal('[NEW GLOBAL] Click on \"Place order\"'):PAGES.login.test(href)?Kameleoon.API.Core.runWhenElementPresent('button.MuiButtonBase-root.MuiTab-root[aria-selected=\"true\"]',(([e])=>{new MutationObserver((t=>{t.forEach((t=>{\"aria-selected\"===t.attributeName&&\"true\"===e.getAttribute(\"aria-selected\")&&Kameleoon.API.Core.runWhenElementPresent('button.MuiButtonBase-root.MuiButton-root[type=\"submit\"]',(([e])=>{e.addEventListener(\"click\",(()=>{setTimeout((()=>{0===document.querySelectorAll(\".Mui-error\").length&&fireGoal('[NEW GLOBAL] Click on \"Register\"')}),500)}))}))}))})).observe(e,{attributes:!0,attributeFilter:[\"aria-selected\"]})})):PAGES.dashboard_main.test(href)&&(e.closest('a[href^=\"https://instantfunding.com/buy-challenge/\"]')?fireGoal('[NEW GLOBAL] Click on \"Start a challenge\"'):e.closest(\".MuiBox-root.css-1dqpc7h > div:nth-child(4)\")&&fireGoal('[NEW GLOBAL] Click on \"Take the Challenge\"'))};Kameleoon.API.Core.runWhenElementPresent(\"body\",(([t])=>{t.addEventListener(\"click\",e)}),!0)}function trackPurchaseGoals(){PAGES.order.test(href)&&Kameleoon.API.Core.runWhenConditionTrue((()=>dataLayer.some((e=>e.orderData))&&dataLayer.find((e=>e.ecommerce))),(()=>{const e=dataLayer.find((e=>e.orderData)),t=dataLayer.find((e=>e.ecommerce));let o=null;if(e?.orderData?.totals||t?.ecommerce?.value){const a=e.orderData.totals.total||t.ecommerce.value;o=parseFloat(a)}null===o||isNaN(o)||fireGoal(\"Purchase CR\",o)}))}function trackPayButtonVisibility(){if(!PAGES.checkout.test(href))return;const e=\"kameleoonPayButtonSeen2026\";if(\"true\"===sessionStorage.getItem(e))return;const t=\"#place_order, #ckocom_applePay, #ckocom_googlePay\";let o=!1;const a=()=>{if(o)return;const a=document.querySelectorAll(t);Array.from(a).find((e=>(e=>{if(!e)return!1;const t=window.getComputedStyle(e);return\"none\"!==t.display&&\"hidden\"!==t.visibility&&\"0\"!==t.opacity&&null!==e.offsetParent})(e)))&&(fireGoal(\"Users who saw Pay button\"),sessionStorage.setItem(e,\"true\"),o=!0)};Kameleoon.API.Core.runWhenElementPresent(t,(()=>{setTimeout(a,1500)}))}function trackPayButtonClicks(){if(!PAGES.checkout.test(href))return;document.addEventListener(\"click\",(e=>{const t=e.target.closest(\"#place_order, #ckocom_applePay, #ckocom_googlePay\");if(!t)return;const o=(()=>{const e=document.querySelector('input[name=\"payment_method\"]:checked');return e?e.value:\"none\"})();fireGoal(\"Click Pay button\"),setCustomData(\"Selected payment method (common)\",o),\"place_order\"===t.id&&fireGoal('[NEW GLOBAL] Click on \"Pay now\" button'),\"ckocom_applePay\"===t.id&&fireGoal('[NEW GLOBAL] Click on \"Apple Pay\" button'),\"ckocom_googlePay\"===t.id&&fireGoal('[NEW GLOBAL] Click on \"Google Pay\" button'),[\"#billing_email\",\"#billing_first_name\",\"#billing_last_name\",\"#billing_country\",\"#billing_address_1\",\"#billing_city\",\"#billing_postcode\"].every((e=>{const t=document.querySelector(e);return t&&\"\"!==t.value?.trim()}))||fireGoal(\"[NEW GLOBAL] Click on pay button with empty field\")}),!0)}trackClickGoals(),trackPurchaseGoals();const TIME_STORAGE_KEY=\"kameleoonCheckoutStartTime\";function startTimeToPurchaseTimer(){PAGES.checkout.test(href)&&(sessionStorage.getItem(TIME_STORAGE_KEY)||sessionStorage.setItem(TIME_STORAGE_KEY,Date.now().toString()))}function trackTimeToPurchase(){if(!PAGES.order.test(href))return;const e=sessionStorage.getItem(TIME_STORAGE_KEY);if(!e)return;const t=Math.round((Date.now()-parseInt(e,10))/1e3);fireGoal(\"Time to purchase\",t,{77:t}),setCustomData(\"Time to purchase\",t),sessionStorage.removeItem(TIME_STORAGE_KEY)}function detectPaymentMethodOnThankYou(){PAGES.order.test(href)&&Kameleoon.API.Core.runWhenConditionTrue((function(){if(!window.dataLayer||!window.dataLayer.length)return!1;for(let e=0;e{(PAGES.checkout.test(href)||PAGES.order.test(href))&&(startTimeToPurchaseTimer(),trackTimeToPurchase(),trackPayButtonVisibility(),trackPayButtonClicks(),detectPaymentMethodOnThankYou(),jQuery(document.body).on(\"updated_checkout updated_wc_div\",(()=>{setTimeout(trackPayButtonVisibility,800)}))),window.kameleoonQueue=window.kameleoonQueue||[],window.kameleoonQueue.push((()=>{let e=\"\";Kameleoon&&Kameleoon.API&&Kameleoon.API.CurrentVisit&&Kameleoon.API.CurrentVisit.geolocation&&(e=Kameleoon.API.CurrentVisit.geolocation.country),e&&\"string\"==typeof e&&(e=e.trim(),Kameleoon.API.Data.setCustomData(\"Country\",e))}))}),200,!0);","singlePageSupport":true,"enableRemoteVisitorSynchronization":true,"enableRemoteVisitorSynchronizationItpOnly":true,"track":true,"trackerExcludedIPRanges":[],"useProduct":true,"Gatherer":"eyJtYXhWaXNpdElkbGVEdXJhdGlvbiI6MTgwMDAwMCwiZGlyZWN0Tm9uZVJlZmVycmVyT25seUZpcnN0IjpmYWxzZSwiYnJvd3NlcnMiOnsiMCI6eyJuYW1lIjoiQ0hST01FIn0sIjEiOnsibmFtZSI6IkVYUExPUkVSIn0sIjIiOnsibmFtZSI6IkZJUkVGT1gifSwiMyI6eyJuYW1lIjoiU0FGQVJJIn0sIjQiOnsibmFtZSI6Ik9QRVJBIn19LCJvc3MiOnsiMCI6eyJuYW1lIjoiV0lORE9XUyJ9LCIxIjp7Im5hbWUiOiJNQUMifSwiMiI6eyJuYW1lIjoiSU9TIn0sIjMiOnsibmFtZSI6IkxJTlVYIn0sIjQiOnsibmFtZSI6IkFORFJPSUQifSwiNSI6eyJuYW1lIjoiV0lORE9XUyBQSE9ORSJ9fSwibm9SZWZlcnJlclBhZ2VzIjpbXSwicmVmZXJyZXJzIjp7IjAiOnsibmFtZSI6Ikdvb2dsZSBBZFdvcmRzIiwicHJpb3JpdHkiOjAsImRldGVjdGlvbnMiOlt7Im1ldGhvZCI6MCwiYW5kIjpmYWxzZSwicGFyYW1ldGVycyI6Il5odHRwcz86Ly8od3d3XFwuKT9nb29nbGUoXFwuW2Etel17Mix9KSsvYWNsayhbPyYjXS4qfCkkIn0seyJtZXRob2QiOjEsImFuZCI6ZmFsc2UsInBhcmFtZXRlcnMiOiJbPyYjXWdjbGlkPSJ9XX0sIjEiOnsibmFtZSI6Ikdvb2dsZSBPcmdhbmljIFNlYXJjaCIsInByaW9yaXR5IjowLCJkZXRlY3Rpb25zIjpbeyJtZXRob2QiOjAsImFuZCI6ZmFsc2UsInBhcmFtZXRlcnMiOiJeaHR0cHM/Oi8vKHd3d1xcLik/Z29vZ2xlKFxcLlthLXpdezIsfSkrLyg/IWFjbGt8aW1ncmVzKS4qP1s/JiNdcT0uKiQifSx7Im1ldGhvZCI6MCwiYW5kIjpmYWxzZSwicGFyYW1ldGVycyI6Il5odHRwcz86Ly8od3d3XFwuKT9nb29nbGUoXFwuW2Etel17Mix9KSsvPyQifV19LCIyIjp7Im5hbWUiOiJCaW5nIE9yZ2FuaWMgU2VhcmNoIiwicHJpb3JpdHkiOjAsImRldGVjdGlvbnMiOlt7Im1ldGhvZCI6MCwiYW5kIjpmYWxzZSwicGFyYW1ldGVycyI6Il5odHRwcz86Ly8oW2Etel17Mix9XFwuKSpiaW5nKFxcLlthLXpdezIsfSkrLy4qP1s/JiNdcT0uKiQifSx7Im1ldGhvZCI6MCwiYW5kIjpmYWxzZSwicGFyYW1ldGVycyI6Il5odHRwcz86Ly8oW2Etel17Mix9XFwuKSpiaW5nKFxcLlthLXpdezIsfSkrLz8kIn1dfSwiMyI6eyJuYW1lIjoiWWFob28gT3JnYW5pYyBTZWFyY2giLCJwcmlvcml0eSI6MCwiZGV0ZWN0aW9ucyI6W3sibWV0aG9kIjowLCJhbmQiOmZhbHNlLCJwYXJhbWV0ZXJzIjoiXmh0dHBzPzovLyhbYS16XXsyLH1cXC4pKnlhaG9vKFxcLlthLXpdezIsfSkrLy4qP1s/JiNdcD0uKiQifSx7Im1ldGhvZCI6MCwiYW5kIjpmYWxzZSwicGFyYW1ldGVycyI6Il5odHRwcz86Ly8oW2Etel17Mix9XFwuKSp5YWhvbyhcXC5bYS16XXsyLH0pKy8/JCJ9XX0sIjQiOnsibmFtZSI6IkJhaWR1IE9yZ2FuaWMgU2VhcmNoIiwicHJpb3JpdHkiOjAsImRldGVjdGlvbnMiOlt7Im1ldGhvZCI6MCwiYW5kIjpmYWxzZSwicGFyYW1ldGVycyI6Il5odHRwcz86Ly8oW2Etel17Mix9XFwuKSpiYWlkdShcXC5bYS16XXsyLH0pKy8uKj9bPyYjXXdkPS4qJCJ9LHsibWV0aG9kIjowLCJhbmQiOmZhbHNlLCJwYXJhbWV0ZXJzIjoiXmh0dHBzPzovLyhbYS16XXsyLH1cXC4pKmJhaWR1KFxcLlthLXpdezIsfSkrLz8kIn1dfX0sImtleVBhZ2VzIjp7fSwiY3VzdG9tRGF0YSI6eyI3MiI6eyJtZXRob2QiOiJDTElFTlQiLCJuYW1lIjoiQ2xpY2sgY2hhdCBidXR0b24gcGxhY2UiLCJmb3JtYXQiOi0xLCJzY29wZSI6IlZJU0lUIiwidHlwZSI6IkNPVU5UX0xJU1QifSwiNzMiOnsibWV0aG9kIjoiQ0xJRU5UIiwibmFtZSI6Ik9yZGVyIHBsYWNlbWVudCAoZGFzaGJvYXJkIG9yIG1haW4gcGFnZSkgKFwiQ2hlY2tvdXQgcmVkZXNpZ25cIikiLCJmb3JtYXQiOi0xLCJzY29wZSI6IlZJU0lUIiwidHlwZSI6IlVOSVFVRSJ9LCI3NCI6eyJtZXRob2QiOiJDTElFTlQiLCJuYW1lIjoiU2VsZWN0ZWQgcGF5bWVudCBtZXRob2QgKFwiQ2hlY2tvdXQgcmVkZXNpZ25cIikiLCJmb3JtYXQiOi0xLCJzY29wZSI6IlZJU0lUIiwidHlwZSI6IlVOSVFVRSJ9LCI3NSI6eyJtZXRob2QiOiJDTElFTlQiLCJuYW1lIjoiU2VsZWN0ZWQgcGF5bWVudCBjdXJyZW5jeSAoXCJDaGVja291dCByZWRlc2lnblwiKSIsImZvcm1hdCI6LTEsInNjb3BlIjoiVklTSVQiLCJ0eXBlIjoiVU5JUVVFIn0sIjc2Ijp7Im1ldGhvZCI6IkNMSUVOVCIsIm5hbWUiOiJTZWxlY3RlZCBwYXltZW50IG1ldGhvZCAoY29tbW9uKSIsImZvcm1hdCI6LTEsInNjb3BlIjoiVklTSVQiLCJ0eXBlIjoiVU5JUVVFIn0sIjc3Ijp7Im1ldGhvZCI6IkNMSUVOVCIsIm5hbWUiOiJUaW1lIHRvIHB1cmNoYXNlIiwiZm9ybWF0IjowLCJzY29wZSI6IlZJU0lUIiwidHlwZSI6IlVOSVFVRSJ9LCI3OCI6eyJtZXRob2QiOiJDTElFTlQiLCJuYW1lIjoiUGF5bWVudCBtZXRob2Qgb24gcHVyY2hhc2UgcGFnZSIsImZvcm1hdCI6LTEsInNjb3BlIjoiVklTSVQiLCJ0eXBlIjoiVU5JUVVFIn0sIjc5Ijp7Im1ldGhvZCI6IkNMSUVOVCIsIm5hbWUiOiJQcm9ncmFtIGRpc3RyaWJ1dGlvbiIsImZvcm1hdCI6LTEsInNjb3BlIjoiVklTSVQiLCJ0eXBlIjoiVU5JUVVFIn0sIjgwIjp7Im1ldGhvZCI6IkNMSUVOVCIsIm5hbWUiOiJJbnRlcmNvbSBWYXJpYW50IiwiZm9ybWF0IjotMSwic2NvcGUiOiJWSVNJVE9SIiwidHlwZSI6IlVOSVFVRSJ9LCI4MSI6eyJtZXRob2QiOiJDTElFTlQiLCJuYW1lIjoiVGltZSB0byBmaXJzdCBpbnRlcmFjdGlvbiIsImZvcm1hdCI6MCwic2NvcGUiOiJWSVNJVCIsInR5cGUiOiJVTklRVUUifSwiODIiOnsibWV0aG9kIjoiQ0xJRU5UIiwibmFtZSI6IlRpbWUgdG8gZmlyc3QgaW5wdXQiLCJmb3JtYXQiOjAsInNjb3BlIjoiVklTSVQiLCJ0eXBlIjoiVU5JUVVFIn0sIjgzIjp7Im1ldGhvZCI6IkNMSUVOVCIsIm5hbWUiOiJQcm9ncmFtIHNlbGVjdGlvbiIsImZvcm1hdCI6LTEsInNjb3BlIjoiVklTSVQiLCJ0eXBlIjoiVU5JUVVFIn0sIjg0Ijp7Im1ldGhvZCI6IkNMSUVOVCIsIm5hbWUiOiJDb3VudHJ5IiwiZm9ybWF0IjotMSwic2NvcGUiOiJWSVNJVE9SIiwidHlwZSI6IlVOSVFVRSJ9fX0="}}; })();if (window.kameleoonLightIframe){if (window.kameleoonExternalIFrameLoadedData) { window.kameleoonQueue = window.kameleoonQueue || [];window.kameleoonQueue.push({level: 'IMMEDIATE',command: function () {Kameleoon.Utils.runProtectedScript(window.kameleoonExternalIFrameLoadedData);}}); Kameleoon.Analyst.load();}}else{Kameleoon.Analyst.load();}}