(globalThis.webpackChunktag=globalThis.webpackChunktag||[]).push([[153],{2428:(e,t,n)=>{"use strict";n.d(t,{$k:()=>p});var a=n(648),r=n(5437),o=n(7471),i=n(1134),s=n(1873),c=n(7725);function l(e){const t=function(e){const t=(0,i.F5)().toleranceParams;if(!t||!t.length||!e)return e;try{const n=e,a=e.split("?")[0],o=(0,r.Uv)(e);return 0===Object.keys(o).length?n:(t.forEach(e=>{delete o[e]}),`${a}?${Object.keys(o).map(e=>void 0===o[e]?"":`${e}=${o[e]}`).join("&")}`)}catch(t){return(0,a.FF)("[ABTasty]: Sensitive data restriction can't be applied",t),e}}(e);return function(e){const t=(0,i.F5)().toleranceRegex,n=e;if(!t)return n;try{const e=new RegExp(t).exec(n);if(e)return e.shift(),e.join("")}catch(e){(0,a.FF)(`[ABTasty] The sensitive data regexp "${t}" can't be applied`,e)}return n}(t)}function p(e){const{campaignHistory:t,visitorId:n,currentSessionTimestamp:a,numberOfSessions:r}=e,p=new o.n;let d=p.getReferrer();!d&&p.isItNewSession()&&(d=document.referrer);const y={c:t?.()||{},cid:(0,i.pw)(),vid:n,dr:encodeURIComponent(l(d)),pt:encodeURIComponent(document.title),de:encodeURIComponent(document.characterSet),dl:encodeURIComponent(l(document.location.href)),cst:a,sn:r,lv:(0,s.D0)(),tsv:"4.23.0"};return(0,c.vm)()&&(y.qa=!0),y}},3144:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AT_HIT_LABEL:()=>te,aggregateActionTracking:()=>oe,dispatchBatch:()=>y,dispatchHit:()=>re,getCurrentScrollPercent:()=>ie,notifyHit:()=>ae,setGlobals:()=>se});var a=n(648),r=n(7761),o=n(1492),i=n(2428),s=n(7643),c=n(7707);let l,p=[];const d=e=>{p.push(e),function(){l&&"number"==typeof l&&clearTimeout(l);l=setTimeout(()=>{y()},500)}(),JSON.stringify(p).length>=40960&&y()};const y=(e=!1)=>{const t=s.n.getCommonDataRefresher();if(t){const n=t();if(!p||!p.length)return void(e&&(0,r.YZ)());p.map(e=>{e.qt=Date.now()-e.qt});const s={...(0,i.$k)(n),tv:"next",tch:(0,c.i)(),h:p,t:o.YQ.batch};(0,r.av)(s,e),(0,a.NI)("A batch hit has been sent. Data:",s),p=[]}else(0,a.FF)("[CollectFacade] common data refresher is not set")};var u=n(9578),g=n(4773),m=n(7765),h=n(3595);const b=e=>{const t={};(0,m.o9)()&&!(0,h.g)((0,m.kQ)().previousLogicalView)&&(t.pea="INVALIDATE",t.pev=(0,m.kQ)().previousLogicalView);const n={...e,...t,t:o.YQ.pageview},i=function(e){return(0,g.d)(e,{pea:{label:"PostEdit Action",required:!1,types:[{type:o.qz.String,allowEmpty:!1}]},pev:{label:"PostEdit LogicalView",required:!1,types:[{type:o.qz.String,allowEmpty:!1}]}})}(n);i.length?(0,r.u)(o.YQ.pageview,i,n):(d(n),(0,a.NI)("Pageview hit has been aggregated. Data:",n))};var f=n(7725),q=n(1134);const v=e=>{const t=window.ABTasty.results,n=e.caid&&t&&t[e.caid]&&Object.keys(t[e.caid].targetings.qaParameters).length>0||(0,f.vm)(),i={...e,t:o.YQ.campaign};n&&(i.qa=!0);const s=function(e){return(0,g.d)(e,{caid:{label:"Campaign ID",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},vaid:{label:"Variation ID",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]}})}(i);s.length?(0,r.u)(o.YQ.campaign,s,i):(d(i),(0,a.NI)("Campaign hit has been aggregated. Data:",i))};var w=n(6257),z=n(2492),E=n(2075);const S=e=>{const t={...e,t:o.YQ.segment},n=function(e){return(0,g.d)(e,{s:{label:"Segments",required:!0,types:[{type:o.qz.Object,model:{key:{type:o.qz.String},value:{type:o.qz.String}}}]},pa:{label:"Provider",required:!1,types:[{type:o.qz.String,required:!1}]}})}(t);n.length?(0,r.u)(o.YQ.segment,n,t):(Array.isArray(t.s)?t.s.forEach(t=>{const n={...e,t:o.YQ.segment};n.s=t,d(n)}):d(t),function(e){if(!e.s&&"object"!=typeof e.s)return;if(e.pa&&"string"!=typeof e.pa)return;const t=new w.x;let n=t.getSegments()||[];const a=e.pa?{...e.s,pa:e.pa}:e.s;n=(0,E.$)(n,a),t.setSegments([...n,{...a,qt:e.qt}])}(e),(new z.E).setCustomSegments(e),(0,a.fH)("Segment hit has been aggregated. Data:",t))};const T=e=>{const t={...e,t:o.YQ.event},n=function(e){return(0,g.d)(e,{ec:{label:"Event Category",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},ea:{label:"Event Action",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},el:{label:"Event Label",required:!1,types:[{type:o.qz.String,allowEmpty:!0}]},ev:{label:"Event Value",required:!1,types:[{type:o.qz.Integer,condition:e=>e>=0}]},caid:{label:"Campaign Id",required:!1,types:[{type:o.qz.String,allowEmpty:!1}]},vaid:{label:"Variation Id",required:!1,types:[{type:o.qz.String,allowEmpty:!1}]}})}(t);if(n.length)(0,r.u)(o.YQ.event,n,t);else{if(d(t),"csat"===t.ec&&t.ev){const e={...t.vaid?{vaid:`${t.vaid}`}:{},...t.caid?{caid:`${t.caid}`}:{},score:t.ev,maxScore:Number((t.cv&&t.cv[2]||"").replace(/\D/g,""))};(new w.x).addVote(e)}const e=t.ec===te;if(e){const e={name:t.ea,value:0,time:t.qt||Date.now()};(new w.x).addActionTracking(e)}e&&t.caid?(0,a.fH)(`Event of category "${t.ec}" has been aggregated for campaign ${t.caid} and variation ${t.vaid}. Data:`,t):(0,a.fH)(`Event of category "${t.ec}" has been aggregated. Data:`,t)}};const A=e=>{const t={...e,t:o.YQ.transaction},n=function(e){return(0,g.d)(e,{tid:{label:"Transaction ID",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},ta:{label:"Transaction Affiliation",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},tr:{label:"Transaction Revenue",required:!1,types:[{type:o.qz.Float,condition:e=>e>=0}]},ts:{label:"Transaction Shipping",required:!1,types:[{type:o.qz.Float,condition:e=>e>=0}]},tt:{label:"Transaction Tax",required:!1,types:[{type:o.qz.Float,condition:e=>e>=0}]},tc:{label:"Transaction Currency",required:!1,types:[{type:o.qz.String,allowEmpty:!0}],maxLength:10},tcc:{label:"Transaction Coupon Code",required:!1,types:[{type:o.qz.String,allowEmpty:!0}]},pm:{label:"Transaction Payment Method",required:!1,types:[{type:o.qz.String,allowEmpty:!0}]},sm:{label:"Transaction Shipping Method",required:!1,types:[{type:o.qz.String,allowEmpty:!0}]},icn:{label:"Transaction Number of Items",required:!1,types:[{type:o.qz.Integer,condition:e=>e>=0}]}})}(t);n.length?(0,r.u)(o.YQ.transaction,n,t):(d(t),function(e){const t={id:e.tid||e.id,value:e.tr,shipping:e.sm,payment:e.pm,coupon:e.tcc,tax:e.tt,shipping_cost:e.ts,currency:e.tc,name:e.name,quantity:e.quantity,affiliation:e.ta,time:e.time||(new Date).getTime()};(new w.x).addTransaction(t)}(e),(0,a.fH)(`Transaction "${t.ta}" has been aggregated. Data:`,t))};const C=e=>{const t={...e,t:o.YQ.item},n=function(e){return(0,g.d)(e,{tid:{label:"Transaction ID",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},in:{label:"Item Name",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},ip:{label:"Item Price",required:!1,types:[{type:"float"}]},iq:{label:"Item Quantity",required:!1,types:[{type:"integer"}]},ic:{label:"Item Code",required:!1,types:[{type:o.qz.String,allowEmpty:!0}],maxLength:500},iv:{label:"Item Category",required:!1,types:[{type:o.qz.String,allowEmpty:!0}],maxLength:500}})}(t);n.length?(0,r.u)(o.YQ.item,n,t):(d(t),function(e){const t={transactionId:e.tid,name:e.in,quantity:e.iq,revenue:e.iq&&e.ip?e.iq*e.ip:0,local_revenue:e.iq&&e.ip?e.iq*e.ip:0,sku:e.ic,category:e.iv,time:(new Date).getTime()};(new w.x).addItem(t)}(e),(0,a.fH)("Item hit has been aggregated. Data:",t))};var $=n(108),I=n(3663),k=n(642);const Q={[k.UT]:"==",[k.sz]:"=@",[k.Wm]:"=~"};const Y=e=>({qt:t,...n})=>{const{waitForConsent:s}=(0,q.F5)(),l=(({mode:e,data:t})=>{switch(e){case $.Ey.customJs:return"custom";case $.Ey.didomi:return"string"==typeof t&&t?t:I.M;case $.Ey.specificCookie:if("object"==typeof t){const{name:e,value:n,condition:a}=t;return`${e}${a&&Q[a]?Q[a]:Q[k.UT]}${n}`}return"";default:return""}})(s),p=(({campaignRestrictions:e})=>Object.keys(e).length>0&&0===Object.values(e).filter(e=>e).length?o.R1.strict:o.R1.permissive)(s),d=(({mode:e})=>Object.keys(o.aE).includes(e)?o.aE[e]:void 0)(s),y=(({campaignRestrictions:e})=>Object.keys(e).filter(t=>e[t]).reduce((e,t)=>e+$.gp[t],0))(s),u=Date.now(),m={...n,qt:u-t,me:l,om:p,sco:`${y}`,t:o.YQ.consent,ts:u};d&&(m.op=d);const h=function(e){return(0,g.d)(e,{co:{label:"Consent",required:!0,types:[{type:o.qz.Boolean,allowEmpty:!1}]}})}(m),b={...(0,i.$k)(e),tv:"next",tch:(0,c.i)(),h:[m],t:o.YQ.batch};h.length?(0,r.u)(o.YQ.consent,h,m):((0,r.av)(b),(0,a.NI)("Consent hit has been sent. Data:",m))},N={ps:{label:"Product SKU",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},pn:{label:"Product name",required:!1,types:[{type:o.qz.String,allowEmpty:!1}]},pq:{label:"Product quantity",required:!0,types:[{type:o.qz.Integer,allowEmpty:!1}]},pp:{label:"Product price",required:!0,types:[{type:o.qz.Float,allowEmpty:!1}]},pcid:{label:"Product cart Id",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]}},O={pq:{label:"Product quantity",required:!0,types:[{type:o.qz.Integer,allowEmpty:!1}]},pp:{label:"Product price",required:!0,types:[{type:o.qz.Float,allowEmpty:!1}]},pcid:{label:"Product cart Id",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]}},D={pp:{label:"Product price",required:!1,types:[{type:o.qz.Float,allowEmpty:!1}]},ps:{label:"Product SKU",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},pn:{label:"Product name",required:!1,types:[{type:o.qz.String,allowEmpty:!1}]}},x=[o.X8.CART_ITEM,o.X8.CART_TOTAL,o.X8.VIEW];const F=e=>{const t={...e,t:o.YQ.product},n=function(e){return(0,g.d)(e,{pit:{label:"Product interaction type",required:!0,types:[{type:"string",allowEmpty:!1,value:x,condition:e=>x.some(t=>t===e)}]},...e.pit===o.X8.CART_ITEM?N:{},...e.pit===o.X8.CART_TOTAL?O:{},...e.pit===o.X8.VIEW?D:{}})}(t);n.length>0?(0,r.u)(o.YQ.product,n,t):(d(t),(0,a.fH)("Product hit has been aggregated. Data:",t))};function P(e){if(!(e instanceof Element))return null;const t=[];let n=e;for(;n&&n.nodeType===Node.ELEMENT_NODE;){let e=n.nodeName.toLowerCase();if(n.id){e+="#"+n.id,t.unshift(e);break}{let t=n,a=1;for(;t=t.previousElementSibling;)t.nodeName.toLowerCase()===e&&a++;a>1&&(e+=":nth-of-type("+a+")")}t.unshift(e),n=n.parentNode}return t.join(" > ")}const j=Object.keys({click:"click",over:"over",scroll:"scroll"});function B(e,t){const n={};if(e&&e!==document){const a=t.elementsMap.get(e);n.tecp=encodeURIComponent(P(e)),e.id&&(n.teid=e.id),a&&a.enterTime&&(n.otbe=Date.now()-a.enterTime),n.tc=e.getAttribute("class")||"";const{left:r,top:o,width:i,height:s}=function(e){const t=e.getBoundingClientRect(),n=document.body,a=document.documentElement,r=window.pageYOffset||a.scrollTop||n.scrollTop,o=window.pageXOffset||a.scrollLeft||n.scrollLeft,i=a.clientTop||n.clientTop||0,s=a.clientLeft||n.clientLeft||0,c=t.top+r-i,l=t.left+o-s;return{top:Math.round(c),left:Math.round(l),width:Math.round(t.width),height:Math.round(t.height)}}(e);n.tes=`${i}x${s}`,n.tep=`${r}x${o}`,n.tcec=e.childElementCount||0,n.tet=e.tagName}return n}const V=(e,t,n)=>{const{pageX:a,pageY:i}=t.mouse,s=void 0!==n.pageX?`${n.pageX}x${n.pageY}`:`${a}x${i}`,c={...B(n.target,t),esp:ie(),cp:s,...e,t:o.YQ.visitorevent},l=function(e){return(0,g.d)(e,{et:{label:"Event Type",required:!0,types:[{type:o.qz.String}],allowedValues:j}})}(c);l.length?(0,r.u)(o.YQ.visitorevent,l,c):d(c)};const H=({caid:e,vaid:t,...n})=>{const i={...n,...e?{caid:`${e}`}:{},...t?{vaid:`${t}`}:{},t:o.YQ.nps},s=function(e){return(0,g.d)(e,{ns:{label:"The NPS score ranging from -100 to 100",required:!0,types:[{type:o.qz.Integer}]},nf:{label:"The NPS feedbacks from visitors",required:!1,types:[{type:o.qz.String,allowEmpty:!0}]}})}(i);if(s.length)(0,r.u)(o.YQ.nps,s,i);else{if(n.ns){const e={...i.vaid?{vaid:i.vaid}:{},...i.caid?{caid:i.caid}:{},score:n.ns};(new w.x).addVote(e)}d(i),(0,a.NI)("NPS hit has been aggregated. Data:",i)}};const L=e=>t=>{const n={...(0,i.$k)(e),...t,t:o.YQ.datalayer},s=function(e){return(0,g.d)(e,{dlr:{label:"Datalayer content",required:!0,types:[{type:o.qz.Object},{type:o.qz.Array}]}})}(n);s.length?(0,r.u)(o.YQ.datalayer,s,n):((0,r.av)(n,null,"https://ariane.abtasty.com/datalayer"),(0,a.NI)("Datalayer hit has been send. Data:",n))},R=e=>t=>{if(window.Cypress)return Promise.resolve();const n={...(0,i.$k)(e),...t,t:o.YQ.usage},a=(0,g.d)(n,{cv:{label:"Custom values",required:!0,types:[{type:o.qz.Object}]}});return a.length?((0,r.u)(o.YQ.usage,a,n),Promise.resolve()):(0,r.av)(n,!1,"https://ariane.abtasty.com/analytics")};var U=n(3476),_=n(6332);const M=e=>{(0,_.j3)({deprecate:"window._abtasty.push()",el:`push-${e}`,type:"function"})};const X=async(e=window._abtasty)=>{await Promise.all(e.map(async e=>{if(Array.isArray(e)&&Object.keys(e).length)switch(e[0].toString().toLowerCase()){case"transaction":await(async e=>{const t=e[1].toString(),n={tid:e[2],tr:(0,h.g)(e[3])?0:parseFloat(e[3].toString().replace(",",".")),icn:Number(e[4])||0,ta:t};await re(o.YQ.transaction,n)})(e),M("transaction");break;case"cv":await(async e=>{const t=e[1]||"",n=e[2]||"";if("string"!=typeof t||""===t||("string"!=typeof n||""===n)&&"number"!=typeof n)return void(0,a.FF)("CV informations are not valid, please, check that your second and third argument are not empty strings");const r={category:U.a.CV,action:t,value:"string"==typeof n?n.substring(0,65):n,time:Date.now()};(new w.x).addCustomVariable(r);const i={[t]:"string"==typeof n?n.substring(0,65):n};await re(o.YQ.segment,{s:i})})(e),M("cv");break;case"eco":await(async e=>{const t=e[1]||"",n=e[2]||"";if("string"!=typeof t||""===t||("string"!=typeof n||""===n)&&"number"!=typeof n)return void(0,a.FF)("ECO information are not valid, please, check that your second and third argument are not empty strings");const r={action:t,category:U.a.ECO,value:"string"==typeof n?n.substring(0,65):n,time:Date.now()};(new w.x).addCustomVariable(r);const i={ec:"eco",ea:t,el:n};await re(o.YQ.event,i)})(e),M("eco");break;default:(0,a.vV)("Wrong format to push (nothing was sent)",e)}else(0,a.vV)("Please give at least one parameter for the/these arrays !",e)})),window._abtasty=[],window._abtasty.push=function(){return X([arguments[0]]),Array.prototype.push.apply(this,arguments)}};var J=n(6381),W=n(5712);const K=e=>t=>{if(window.Cypress)return Promise.resolve();const n={cv:t.cv,t:o.YQ.troubleshooting,cid:(0,q.pw)(),vid:e.visitorId},a=(0,g.d)(n,{cv:{label:"Custom values",required:!0,types:[{type:o.qz.Object}]}});return a.length?((0,r.u)(o.YQ.troubleshooting,a,n),Promise.resolve()):(0,r.av)(n,!1,"https://ariane.abtasty.com/troubleshooting")};const Z=e=>{try{const t={...e,tv:"next",tch:(0,c.i)(),tsv:"4.23.0",t:o.YQ.performance},n=function(e){return(0,g.d)(e,{tv:{label:"Tag Version",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},tch:{label:"Tag commit hash",required:!0,types:[{type:o.qz.String,allowEmpty:!1}]},tsv:{label:"Tag Semantic Version",required:!0,types:[{type:o.qz.String,allowEmpty:!1,condition:e=>/^[0-9]+\.[0-9]+\.[0-9]+(\-[0-9a-z]+(\.[0-9]+)?)?$/.test(e)}]},ext:{label:"Execution Time",required:!0,types:[{type:o.qz.Integer,allowEmpty:!1}]}})}(t);n.length?(0,r.u)(o.YQ.performance,n,t):(d(t),(0,a.fH)("Performance hit has been aggregated. Data:",t))}catch(e){(0,a.vV)("Performance hit can't be aggregated. Error:",e.message)}};var G=n(2487),ee=n(3656);const te="Action Tracking",ne={elementsMap:new Map,mouse:{pageX:0,pageY:0}},ae=(e,t,a,r,o,i=!0)=>{if(Promise.resolve().then(n.bind(n,9906)).then(({recheckTargetingByHit:n})=>{n(e,t)}),window.frames?.ABTastyQaAssistant){const n={...t,qt:a,event:r,path:o,name:"ABTasty_event",type:e.toUpperCase()};window.postMessage(n,document.location.origin),window.frames.ABTastyQaAssistant.postMessage(n,"*")}W.g.getInstance().emit(e.toUpperCase(),t,a)},re=async(e,t,r=void 0,i=void 0,c=!0)=>{const l=s.n.getCommonDataRefresher();if(l){const a=t.qt||Date.now();Object.keys(G.s).includes(e)||ae(e,t,a,r,i,c);const s=(await(async e=>{let t={};return t=(await Promise.resolve().then(n.bind(n,9437))).getHits(e),{[o.YQ.consent]:Y(e),[o.YQ.campaign]:v,[o.YQ.event]:T,[o.YQ.item]:C,[o.YQ.pageview]:b,[o.YQ.segment]:S,[o.YQ.transaction]:A,[o.YQ.visitorevent]:V,[o.YQ.nps]:H,[o.YQ.datalayer]:L(e),[o.YQ.product]:F,[o.YQ.usage]:R(e),[o.YQ.troubleshooting]:K(e),[o.YQ.performance]:Z,...t}})(l()))[e.toUpperCase()];s?.({...t,qt:a},{...ne},r)}else(0,a.FF)("[CollectFacade] common data refresher is not set")},oe=(e,t,n,a,r,i,s,c=!0)=>{const l=P(a),p={ec:te,ea:e,qt:r};n&&(p.caid=n.toString()),i&&(p.el=i),s&&(p.ev=s),re(o.YQ.event,p,void 0,l,c)};function ie(){const e=100*(document.body.scrollTop||document.documentElement.scrollTop)/(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight);return Math.round(e)}const se=e=>{s.n.setCommonDataRefresher(e),(()=>{if(window.abtasty){const e=window.abtasty.send;window.abtasty.send=(t,n)=>{re(t,n),e&&e(t,n)}}else window.abtasty={send:(e,t)=>{re(e,t)}};if("function"==typeof window.ABTastyClickTracking){const e=window.ABTastyClickTracking;window.ABTastyClickTracking=(t,n,a)=>{oe(t,n,a,null),e(t,n,a)}}else window.ABTastyClickTracking=oe;if("function"==typeof window.ABTastyEvent){const e=window.ABTastyEvent;window.ABTastyEvent=(t,n,a)=>{oe(t,n,a,null),e(t,n,a)}}else window.ABTastyEvent=oe})(),async function(){window._abtasty=window._abtasty||[],await X(window._abtasty)}(),(0,ee.lV)(()=>y(!0)),s.n.getCollectHit().forEach(e=>{re(e.type,{qt:e.time,...e.args},void 0,void 0)}),s.n.getEventTracking().forEach(e=>{oe(e.name,e.data,e.campaignId,void 0,e.time)}),(new J.k).dispatchCustomEvent(u.u.Name.analyticsLoaded)}},4773:(e,t,n)=>{"use strict";n.d(t,{C:()=>s,d:()=>c});var a=n(1492),r=n(3595),o=n(8689);const i={t:{label:"Hit Type",required:!0,types:[{type:a.qz.String}],allowedValues:Object.values(a.YQ)},ib:{label:"Is a bot",required:!1,types:[{type:a.qz.Boolean}]}};function s(e,t){const{type:n,condition:o,model:i,allowEmpty:c=!0,strict:l}=t,p=typeof e;switch(n){case a.qz.Boolean:return p===n||!l&&["number","string"].some(e=>e===p)&&[0,1,"true","false","0","1"].includes(e);case a.qz.IntegerArray:return Array.isArray(e)&&(!c&&e.length>0||c)&&e.every(e=>s(e,{type:a.qz.Integer,condition:o}));case a.qz.Integer:return"boolean"!==p&&!isNaN(e)&&Number(e)%1==0&&(!o||o&&o(Number(e)));case a.qz.FloatArray:return Array.isArray(e)&&(!c&&e.length>0||c)&&e.every(e=>s(e,{type:a.qz.Float,condition:o}));case a.qz.Float:return"boolean"!==p&&!isNaN(e)&&(!o||o&&o(Number(e)));case a.qz.ArrayArray:return Array.isArray(e)&&(!c&&e.length>0||c)&&e.every(e=>s(e,{type:a.qz.Array,condition:o}));case a.qz.Array:return Array.isArray(e)&&(!c&&e.length>0||c)&&(!o||o?.(e));case a.qz.ObjectArray:return Array.isArray(e)&&(!c&&e.length>0||c)&&e.every(e=>s(e,{type:a.qz.Object,model:i,condition:o,allowEmpty:c}));case a.qz.Object:return p===n&&!Array.isArray(e)&&(!(!c&&Object.keys(e).length<=0)&&(!i||Object.entries(e).every(([e,t])=>s(e,i.key)&&s(t,i.value))));case a.qz.StringArray:return Array.isArray(e)&&(!c&&e.length>0||c)&&e.every(e=>s(e,{type:a.qz.String,condition:o}));case a.qz.String:return(p===n||!l&&["number","boolean"].some(e=>e===p)&&!isNaN(e))&&!(0,r.g)(e)&&(!c&&(""+e).length>0||c)&&(!o||o&&o(""+e));default:return p===n}}function c(e,t){const n={...i,...t};return Object.keys(n).reduce((t,a)=>{const i=n[a];if(i){const{label:n,required:c,types:l,maxLength:p,allowedValues:d}=i,y=e[a];if(c&&((0,r.g)(y)||(0,o.I)(y)))t.push(`Argument '${a}' (${n}) is missing`);else if(void 0!==y&&l&&l.length>0){const o=l.map(t=>{const o=e[a],i=typeof o;if(!s(o,t))return`Argument '${a}' (${n}) is of wrong type ${i} (expected ${JSON.stringify(t)})`;switch(t.type.toLowerCase()){case"boolean":e[a]=!["0","false",0,!1].includes(o)&&!!o;break;case"integer":case"float":e[a]=Number(o);break;case"string":!["number","boolean"].some(e=>e===i)||isNaN(o)||void 0===o||(0,r.g)(o)||(e[a]=""+o)}});o.every(e=>e&&e.length>0)&&o.forEach(e=>t.push(e))}if(null!=y&&d&&-1===d.indexOf(y)){const e=d.map(e=>`"${e}"`).join(", ");t.push(`Argument '${a}' (${n}) value is not allowed (expected one of ${e}, received ${y})`)}null!=y&&p&&y.length>p&&t.push(`Argument '${a}' (${n}) is too long (length of ${y.length}, expected ${p})`)}return t},[])}},5698:(e,t,n)=>{var a={"./integration-datalayer-3.js":6388};function r(e){return o(e).then(n)}function o(e){return Promise.resolve().then(()=>{if(!n.o(a,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return a[e]})}r.keys=()=>Object.keys(a),r.resolve=o,r.id=5698,e.exports=r},7761:(e,t,n)=>{"use strict";n.d(t,{YZ:()=>u,av:()=>y,u:()=>g});var a=n(9578),r=n(648),o=n(8009),i=n(1492);const s="https://ariane.abtasty.com",c="[Hit]";let l=null,p=null,d=[];async function y(e,t=!1,n=s){if((new o.NO).haveConsent([o.rv.collect])||function(e){const t=e.h;return!!Array.isArray(t)&&t.some(e=>e.t===i.YQ.consent&&"no"===e.co)}(e))!function(e,t){navigator.sendBeacon(e,JSON.stringify(t))}(n,e);else{if(0===d.length){const e=()=>{d.forEach(e=>{y(e.args,e.sync,e.endpoint)}),d=[]};window.addEventListener(`abtasty_${a.u.Name.consentValid}`,t=>{const{detail:n}=t;n&&n.consentFor.includes(o.rv.collect)&&e()})}d.push({args:e,sync:t,endpoint:n})}}function u(){p&&(p.abort(),l&&y(l.args,!0,l.endpoint))}function g(e,t,n){r.FF(`${c} incorrect format for '${e}' hit`,...t,n)}},9437:(e,t,n)=>{"use strict";n.d(t,{getHits:()=>I});var a=n(2487),r=n(648),o=n(7550),i=n(7761),s=n(4773),c=n(1492);const l={t:{label:"Hit Type",required:!0,types:[{type:c.qz.String}],allowedValues:Object.values(a.s)},dl:{label:"Current URL",required:!0,types:[{type:c.qz.String,strict:!0}]},cid:{label:"Client ID",required:!0,types:[{type:c.qz.String,strict:!0}]},vid:{label:"Visitor ID",required:!0,types:[{type:c.qz.String,strict:!0}]},sr:{label:"Window size",required:!0,types:[{type:c.qz.String,condition:e=>!e.length||d(e,2)}]},tv:{label:"Tag version",required:!0,types:[{type:c.qz.String,strict:!0}]},tch:{label:"Tag commit hash",required:!0,types:[{type:c.qz.String,strict:!0}]}};function p(e,t){return(0,s.d)(e,{...l,...t})}function d(e,t,n){const a=`\\d+(,\\d+)${t?`{${t-1}}`:"*"};`;return new RegExp(`^${`${a}(${a})${n?"*":"{0}"}`}$`).test(e)}var y=n(1134),u=n(3656),g=n(7707),m=n(2428);function h(){const[e,t]=(0,u.Qo)();return`${e},${t};`}function b(e){const{visitorId:t}=e,{dl:n}=(0,m.$k)(e);return{dl:decodeURIComponent(n||""),cid:(0,y.pw)(),vid:t,sr:h(),tv:"next",tch:(0,g.i)()}}var f=n(9404),q=n(5543);const v="https://ariane.abtasty.com/emotionsai";function w(e){return(0,f.IF)(q.Y),(0,i.av)(function(e){return{...e,t:e.t.substring(4)}}(e),!1,v)}const z=a.s.pageview,E={dr:{label:"URL referer",types:[{type:c.qz.String}]},ua:{label:"User agent",types:[{type:c.qz.String}]},vp:{label:"Window size",types:[{type:c.qz.String,allowEmpty:!1,condition:e=>{try{const t=JSON.parse(e);return 2===t.length&&t.every(e=>(0,s.C)(e,{type:c.qz.Integer}))}catch(e){}return!1}}]},ul:{label:"Browser language",types:[{type:c.qz.String}]},sd:{label:"Color depth",types:[{type:c.qz.String}]},pxr:{label:"Pixel ratio",types:[{type:c.qz.Float}]},dc:{label:"Device type",types:[{type:c.qz.String}]},dnt:{label:"Do not track",types:[{type:c.qz.String,allowEmpty:!1}]},hlb:{label:"Fake browser",types:[{type:c.qz.Boolean}]},hll:{label:"Fake language",types:[{type:c.qz.Boolean}]},hlo:{label:"Fake os",types:[{type:c.qz.Boolean}]},hlr:{label:"Fake resolution",types:[{type:c.qz.Boolean}]},tof:{label:"Timezone offset",types:[{type:c.qz.Integer}]},tsp:{label:"Touch support",types:[{type:c.qz.String,condition:e=>{const t=JSON.parse(e);return 3===t.length&&(0,s.C)(t[0],{type:c.qz.Integer})&&(0,s.C)(t[1],{type:c.qz.Boolean})&&(0,s.C)(t[2],{type:c.qz.Boolean})}}]},fnt:{label:"Font list",types:[{type:c.qz.String,allowEmpty:!1}]},tsr:{label:"Browser date",types:[{type:c.qz.String}]},de:{label:"Encoding preference",types:[{type:c.qz.String}]},adb:{label:"Has Adblock",types:[{type:c.qz.Boolean}]}};function S(){const[e=0,t=0]=(0,u.M5)();return JSON.stringify([e,t])}function T(e){return async()=>{(0,o.Q)(()=>{const{dr:t,de:n}=(0,m.$k)(e),a=window.navigator.userAgent||"",o=new Date,s={...b(e),dr:decodeURIComponent(t||""),de:n||"",ua:a,vp:S(),ul:(0,u.mf)()||"",sd:`${(0,u.t$)()||-1}`,pxr:(0,u.sJ)(),dc:(0,u.uo)()||"",dnt:(0,u.cm)()||"unknown",hlb:(0,u.Dm)(a),hll:(0,u.aW)(),hlo:(0,u.$0)(a),hlr:(0,u.$)(),tof:o.getTimezoneOffset(),tsp:`${JSON.stringify((0,u.Xb)())}`,fnt:JSON.stringify((0,u.VH)()),adb:(0,u.WE)(),tsr:o.toISOString(),t:z},c=function(e){return p(e,E)}(s);if(!c.length)return w(s).then(()=>(0,r.NI)("[EmotionsAI] Pageview hit has been sent. Data:",s));(0,i.u)(z,c,s)})}}const A=a.s.visitorevent,C={cpo:{label:"Click position",types:[{type:c.qz.String,allowEmpty:!0,condition:e=>!e.length||d(e,4)&&function(e,t,n){try{let a=e.split(",")[t];return a.endsWith(";")&&(a=a.substring(0,a.length-1)),a.length===n}catch(e){return!1}}(e,2,5)}]},cp:{label:"Cursor move positions",types:[{type:c.qz.String,allowEmpty:!0}]},spo:{label:"Scroll positions",types:[{type:c.qz.String,allowEmpty:!0}]}};function $(e){return({cpo:t,cp:n,spo:a})=>{const o={...b(e),cpo:t||"",cp:n||"",spo:a||"",t:A},s=function(e){const{cpo:t,cp:n,spo:a}=e;return[t,n,a].every(e=>!e?.length)?["No argument is defined where at least one is required"]:p(e,C)}(o);if(!s.length)return w(o).then(()=>(0,r.NI)("[EmotionsAI] VisitorEvent hit has been sent. Data:",o));(0,i.u)(A,s,o)}}function I(e){return{[a.s.pageview]:T(e),[a.s.visitorevent]:$(e)}}}}]);