(function(p,q,v,t,l){p[q]=p[q]||{};for(p[q].q=p[q].q||[];lk.attachEvent.toString().indexOf("[native code"))&&!d}function c(){v(f,function(d){d._fetched?d._defined||d.define():d.fetch()})}function a(d,k,m,u,x){if("$config"!=d){var C=p(d),z=C||new g;C||(C= l(d),f[C]=z);d&&k&&(z._fetched=!0);z.start=z.start||(new Date).getTime();z.url=z.url||d;z.dependencies=z.dependencies||k;z.config=z.config||u;z.definedCallback=z.definedCallback||m;z.isRequire=z.isRequire||x}}function b(d,k,m,u){d instanceof Array&&(u=m,m=k,k=d,d=void 0);n.addDefine({url:d,dependencies:k,definedCallback:m,config:u})}var f={};g.prototype={getUnresolvedDependencies:function(){var d=[];v(this.dependencies,function(k){"$config"!=k&&(k=p(k),(!k||k&&!k._defined)&&d.push(k))});return d}, getDependencies:function(){var d=this,k=[];v(d.dependencies,function(m){m="$config"==m?d.config||null:p(m).definition||null;k.push(m)});return k},define:function(){function d(x){k.definedCallback=void 0;k.definition=x;k.end=(new Date).getTime();k.timeToDefine=k.end-k.start;k._defining=!1;k._defined=!0;setTimeout(c,1)}var k=this;k.defineStartTime=k.defineStartTime||(new Date).getTime();if(!k._defining&&!k._defined&&k.dependencies)if(k._defining=!0,0 element not found on trying to load "+d,void 0);this.currentlyAddingScript=void 0}};var n=new e;b.getModule=function(d){return p(d)};var r=0;extole.define=b;extole.require=function(d,k){var m=n,u=m.addDefine;r++;u.call(m,{url:"anonymous_"+r,dependencies:d,definedCallback:k,isRequire:!0})};extole.define("extole-require",[],function(){return{resolveUrl:h}}); setTimeout(function(){var d=!1,k=[];v(f,function(m){m._defined||(d=!0);k.push({defineStartTime:m.defineStartTime,dependencies:m.dependencies,end:m.end,start:m.start,isRequire:m.isRequire,timeToDefine:m.timeToDefine,url:m.url,_defined:m._defined,_defining:m._defining,_fetched:m._fetched})});d&&extole.DUMP_REQUIRE_MODULES_ON_ERROR&&extole.log("error","After 7000ms there are unresolved extole-require modules. ###"+JSON.stringify(k)+"###")},7E3)}(); (function(){try{(function(p,q,v,t,l){p[q]=p[q]||{};for(p[q].q=p[q].q||[];lw.indexOf(g)||0<=h.indexOf(g)||h.push(g)});return h},difference:function(l,w){var h=[];v(l,function(g){0<=w.indexOf(g)||0<=h.indexOf(g)||h.push(g)});return h}}}); extole.define("https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/cookie.js",["https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/logger.js"],function(p){function q(h){try{return decodeURIComponent(h.replace(t," "))}catch(g){return p.info("** cookie.decode ** Cookie error for: "+h,{error:g,message:g.message,stack:g.stack,cookiePart:h}),""}}function v(h){h=q(h);return 0===h.indexOf('"')?h.slice(1,-1).replace(l,'"').replace(w,"\\"):h}var t= /\+/g,l=/\\"/g,w=/\\\\/g;return function(h,g,e){if(void 0!==g){e=e||{};var c=document;h=encodeURIComponent(h);g=encodeURIComponent(g);if(e.expires){var a=e.expires;if(!a||!a.toUTCString){var b=new Date;b.setDate(b.getDate()+("number"===typeof a?a:0));a=b}a="; expires="+a.toUTCString()}else a="";return c.cookie=[h,"=",g,a,e.path?"; path="+e.path:"",e.domain?"; domain="+e.domain:"",e.samesite?"; samesite="+e.samesite:"","; secure"].join("")}a:{e=document.cookie?document.cookie.split("; "):[];c=h?null: {};g=0;for(a=e.length;g=k.length?p.info("events.remove - Couldn't find exiting event listener for type \""+d+'" listener on element '+r):l.each(k,function(m){var u=m.index;m=m.eventListener;r.removeEventListener?r.removeEventListener(d,m.listenerWrapper,!1):r.detachEvent("on"+d,m.listenerWrapper);n.splice(u,1)})}var n=[];b.prototype={preventDefault:function(){var r=this.originalEvent;r.preventDefault? r.preventDefault():r.returnValue=!1},stopPropagation:function(){var r=this.originalEvent;r.stopPropagation&&r.stopPropagation();r.cancelBubble=!0}};return{addListener:function(r,d,k){function m(x){u&&(x=window.event);return k.call(r,new b(x))}if(0=e[extole.LOG_LEVEL_CONSOLE]&&(f=b+" "+d,window.console))if(window.console[b.toLowerCase()])window.console[b.toLowerCase()](f);else window.console.log(f);e[b]>=e[extole.LOG_LEVEL_REMOTE]&&(f=a[d],c[f]&&v(b,d+(1{var I=H.split(": ");H=I.shift();I=I.join(": ");G[H]=I});return G}catch(H){return t.error("Error parsing response headers: ",H),{}}}function r(D){F||(F=!0,t.error("Error with url "+C+"= "+m.join(","),d(D)),y.call(a,a.statusText,a.status))}function d(D){return{eventType:D&&D.type||null,options:b,readyState:a.readyState,response:a.response,responseText:a.responseText, responseType:a.responseType,responseURL:a.responseURL,responseXML:a.responseXML,status:a.status,statusText:a.statusText,timeout:a.timeout,responseHeaders:a.getAllResponseHeaders()}}function k(D){0>C.indexOf(t.LOGGING_ENDPOINT)&&t.debug("ajax request complete",d(D))}var m=Array.prototype.slice.call(arguments),u=b.headers||{},x=b.xhrFields||{},C=b.url||"",z=b.data||"",E=(b.type||"get").toUpperCase(),B=b.complete||function(){},y=b.error||function(){},A=l.get();C.includes("/api/")&&A&&!b.noAuthorizationHeader? u.Authorization=A:C.includes("/zones/")&&(A&&!b.noAuthorizationHeader&&(u.Authorization="Bearer+"+A),"GET"!==E&&"HEAD"!==E&&(z=h(u,z)));v.isPlainObject(z)&&("GET"===E?(C+=q.serialize(z),z=null):z=JSON.stringify(z));a.open(E,C,!0);p.merge(a,x);p.each(u,function(D,G){try{a.setRequestHeader(G,D)}catch(H){t.error("AJAX ERROR: Couldn't set request header "+G+" to "+D)}});var F=!1;a.onload=f;a.onreadystatechange=f;a.onerror=r;a.ontimeout=r;a.onabort=k;a.send(z)}function h(a,b){function f(r){var d={};p.each(r, function(k,m){m=0<=m.indexOf(".")?'"'+m+'"':m;v.isPlainObject(k)&&(k=f(k));d[m]=k});return d}var n=[];g(a);a["content-type"]="application/x-www-form-urlencoded";b=f(b);b=p.flatten(b);p.each(a,function(r,d){"content-type"!==d.toLowerCase()&&(n.push("::headers."+d+"="+r),delete a[d])});p.each(b,function(r,d){v.isUndefined(r)||n.push(encodeURIComponent(d)+"="+(v.isNull(r)?"":encodeURIComponent(r)))});return n.join("&")}function g(a){p.each(a,function(b,f){"content-type"===f.toLowerCase()&&delete a[f]})} function e(a){a=a||{};var b=!1;for(var f=0;fy.indexOf(A)&&A.remove()})}function x(){var y= [c.MEMORY];Object.prototype.hasOwnProperty.call(B,c.COOKIE)&&y.push(c.COOKIE);(extole.LOCAL_STORAGE_ENABLED_WHEN_CONSENTED||extole.LOCAL_STORAGE_ALWAYS_ENABLED)&&y.push(c.LOCAL_STORAGE);return y.map(function(A){return B[A]})}function C(){var y=[c.MEMORY];extole.CORE_CONFIG.cookieConsentPolicy===g.COOKIE_CONSENT_OR_SESSION_COOKIE&&Object.prototype.hasOwnProperty.call(B,c.COOKIE)&&y.push(c.COOKIE);(extole.LOCAL_STORAGE_ENABLED_WHEN_UNCONSENTED||extole.LOCAL_STORAGE_ALWAYS_ENABLED)&&y.push(c.LOCAL_STORAGE); return y.map(function(A){return B[A]})}var z,E=l.create(),B={};b();(function(){var y=v.deserialize(window.location.search);y.extole_access_token&&n(y.extole_access_token,y.extole_access_token_type)})();this.getCurrentTokenDuration=function(){return z};this.get=f;this.set=n;this.remove=function(){z=m();q.each(B,function(y){y.remove()})};this.setConsented=function(){z="YEAR";n()};this.setUnconsented=function(){z=m();n()};this.initializeStores=b;this.events=E}var g={COOKIE_CONSENT_DISABLED:"COOKIE_CONSENT_DISABLED", COOKIE_CONSENT_OR_SESSION_COOKIE:"COOKIE_CONSENT_OR_SESSION_COOKIE",COOKIE_CONSENT_OR_NO_COOKIE:"COOKIE_CONSENT_OR_NO_COOKIE"},e={NO_COOKIE:"NO_COOKIE",SESSION:"SESSION",YEAR:"YEAR"},c={MEMORY:"MEMORY",COOKIE:"COOKIE",LOCAL_STORAGE:"LOCAL_STORAGE"},a={YEAR:365,SESSION:null};extole.tokenStore=extole.tokenStore?extole.tokenStore:new h;return extole.tokenStore}); extole.define("https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/client/metric-registry.js",["https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/client/program.js","https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/ajax.js","https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/logger.js"],function(p,q,v){function t(h,g,e){v.info("Sending metric from metric registry: "+h+ " "+g+" "+e);e={metric_type:h,key:g,value:e};h={"Content-Type":"application/x-www-form-urlencoded","X-Extole-App":"javascript_sdk"};g=[p.getProtocol(),p.getProgramDomain(),"/api/v4/debug/metrics"].join("");e=q.convertToFormUrlEncoded(h,e);q({url:g,type:"POST",headers:h,data:e,xhrFields:{withCredentials:!0}})}function l(h){this.increment=function(g){t("COUNTER",h,g?g:1)}}function w(h){this.update=function(g){t("HISTOGRAM",h,g)}}return{histogram:function(h){return new w(h)},counter:function(h){return new l(h)}}}); extole.define("ZoneBrowserContext",["https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/uri.js","https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/collection.js"],function(p,q){function v(w,h,g){this.getElement=function(){return g};this.getName=function(){return w};this.getData=function(){return h};this.getParameters=function(){return h}}function t(){this.getName=function(){return extole.PROGRAM.name};this.getProgramDomain=function(){return extole.PROGRAM.programDomain}; this.getSitePatterns=function(){return extole.PROGRAM.sitePatterns};this.getSiteRegexPatterns=function(){return extole.PROGRAM.siteRegexPatterns}}function l(){this.backendTargetingEnabled=function(){return!0};this.cookieConsentEnabled=function(){return extole.CORE_CONFIG.isCookieConsentEnabled}}return function(w,h,g,e,c){var a=new v(w,h,g),b=new t,f=new l;this.getZone=function(){return a};this.getProgram=function(){return b};this.getCreativeData=function(){var n=p.dotNotationToObject(p.deserialize(location.search)), r=p.dotNotationToObject(a.getParameters());return q.merge(n.extole_creative,r.creative)};this.getCoreConfig=function(){return f};this.getLocale=function(){return e||null};this.getContainer=function(){return c}}}); extole.define("find-element-by-id",["https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/logger.js"],function(p){function q(v,t,l){function w(){if(t())l();else{v();var g=setTimeout;h||(h=10);var e=500=h?p.debug("EXTOLE_ELEMENT_FOUND_SLOW: Scan duration: "+c+"ms, element id: "+v):!extole.isFindElementBeforeZoneRequest&&!g&&c>=w&&(g=!0,p.debug("EXTOLE_ELEMENT_NOT_YET_FOUND: Scan duration: "+c+"ms, element id: "+v));return a},function(){t(e)})}}); extole.define("ensure-element",["find-element-by-id"],function(p){function q(v){document.body?v(document.body.appendChild(document.createElement("div"))):addEventListener("DOMContentLoaded",function(){v(document.body.appendChild(document.createElement("div")))})}return function(v,t){v.element?t(v.element):v.element_id?p(v.element_id,t):q(t)}}); extole.define("pending-zone-service","https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/dom.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/type.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/logger.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/collection.js ZoneBrowserContext ensure-element".split(" "),function(p,q,v,t,l,w){function h(a,b){b=b||function(){}; var f=a.name,n=g(a.data);c(f);this.resolve=function(r,d,k,m,u){w(a,function(x){a.element=x;p.clearEventListeners(a.element);x=new l(f,n,a.element,m,u);r(x);b(null,x.getZone())})}}function g(a){a=t.merge({},a);delete a.campaign_id;delete a.extole_campaign_id;return a}var e={},c=function(){var a={};return function(b){q.isUndefined(a[b])&&(a[b]=0);a[b]++;if(5===a[b]){b="duplicate_zone_requests : "+b;var f=t.filter(extole.q.history,function(n){return n.name&&"createZone"===n.name});f=t.map(f,function(n){delete (n.args[0]|| {}).element;return n});v.warn(b,f)}}}();return{get:function(a){if(!e[a])throw Error("Pending zone does not exist for id: "+a);return e[a]},create:function(){var a=Math.floor(1E9*Math.random()),b=0;return function(f,n){b++;var r=a+"."+b;e[r]=new h(f,n);return r}}()}}); extole.define("create-zone","extole-uri-parser https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/uri.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/collection.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/dom.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/client/program.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/ajax.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/ExtoleError.js https://origin.xtlo.net/type=core:clientId=1061279001:coreAssetsVersion=312/common/logger.js pending-zone-service".split(" "),function(p, q,v,t,l,w,h,g,e){var c=[];return function(a,b,f){function n(){var E={"Content-Type":"application/x-www-form-urlencoded",Accept:"text/javascript","X-Extole-App":"javascript_sdk"};k=C+"/zones/"+a.name;x&&(E["X-Extole-Jwt"]=x,delete u.jwt);z&&(E["X-Extole-Debug"]="true");w({url:k,type:"POST",headers:E,data:u,complete:function(B,y){var A=/^text\/html(;|$)/,F=/^text\/plain(;|$)/;y=y.getResponseHeader("Content-Type");if(/^text\/javascript(;|$)/.test(y))var D=B;else A.test(y)?(A=document.createElement("div"), A.innerHTML=B,D=t.queryFirst("script",A).innerHTML):F.test(y)&&!B?g.info("No content to render"):r(new h("Received invalid content type: '"+y+"'","invalid_content_type",null,"warn"));if(D)try{(new Function(D))()}catch(G){r(new h("Error in zone script - MESSAGE: "+G.message+" STACK: "+G.stack,"zone_script_error"))}d()},error:function(B,y){try{var A=JSON.parse(this.responseText)}catch(F){A={status:y||null,statusText:B||null}}r(new h(A.message||"Ajax zone request failed",A.code||null,A))},xhrFields:{withCredentials:!0}})} function r(E){var B=v.merge({originalMessage:E.message,zoneRequestUrl:k||null,zoneDefinition:a},E.data);b(new h("Problem creating zone",E.code||"zone_request_failed",B,E.logLevel||"error"));d()}function d(){"function"===typeof f&&setTimeout(f,500)}b=b||function(){};var k,m=q.deserialize(location.search),u=v.merge({},a.data||a.parameters),x=a.jwt||u.jwt||m.extole_jwt,C=[l.getProtocol(),l.getProgramDomain()].join(""),z=u.debug&&"false"!==u.debug||extole.IS_DEBUG_ENABLED;extole.isPassRefererInZoneData&& (u.referer=location.href);extole.CORE_CONFIG.isGlobalZoneParametersEnabled&&(m=p.parseGlobalZoneParameters(m),u=v.merge(u,m));if(extole.createZonePrehandler&&(m=extole.createZonePrehandler(a,u),!1===m)){g.info("Zone request cancelled");return}a.element_id&&(u.element_id=a.element_id);(function(){var E=Date.now(),B=E-6E4;c=c.filter(function(y){return y>B});60b?k():(v[d.logLevel||"error"](d.toString()),a(d))}var r;h.push(function(d){r=w(d);p(c,f,r);g&&r()})}function l(c,a,b){function f(){var n=!!c.element;extole.isFindElementBeforeZoneRequest&&!n|| t(c,a,b)}b=Number(b)||0;extole.isFindElementBeforeZoneRequest?q(c,function(n){c.element=n;f()}):f()}function w(c){var a=!1;return function(){var b=Array.prototype.slice.call(arguments);a||(a=!0,c.apply(null,b))}}var h=new function(){var c=0,a=[],b=this,f=!1;this.push=function(n){a.push(n);this.next()};this.next=function(){function n(){c--;g=!0;b.next()}if(!f)for(;1>c&&a.length;)e||g||this.next(),e=!1,a.shift()(n),c++};this.start=function(){f=!1;this.next()};this.stop=function(){f=!0}},g=!1,e=!0;return{initiateExecution:l}});