!function(){"use strict";var e=(e,t,r)=>{e instanceof r&&t instanceof r&&(e.parent=t)};var t=()=>!(!window.navigator.msDoNotTrack||"1"!=window.navigator.msDoNotTrack)||!(!window.navigator.doNotTrack||"yes"!=window.navigator.doNotTrack&&"1"!=window.navigator.doNotTrack);var r=({origin:e,protocol:t,hostname:r,port:n}=location)=>e||`${t}//${r}${n?`:${n}`:""}`;var n=e=>new Promise(((t,r)=>{const n=document.createElement("iframe");n.style.position="absolute",n.style.left="-999px",n.style.top="-999px",n.height="1px",n.width="1px","referrerPolicy"in n&&(n.referrerPolicy=e.referrerPolicy||"origin"),"allow"in n&&e.allow&&(n.allow=e.allow),"sandbox"in n&&e.sandbox&&n.sandbox.add(...e.sandbox),n.onload=t,n.onerror=r,n.src=e.url,document.body.appendChild(n)}));var i=e=>new Promise(((t,r)=>{const n=document.createElement("img");n.style.position="absolute",n.style.left="-999px",n.style.top="-999px",n.height=1,n.width=1,n.onload=t,n.onerror=r,n.src=e.url,document.body.appendChild(n)}));var o=e=>new Promise(((t,r)=>{const n=document.createElement("script");n.setAttribute("type","text/javascript"),n.setAttribute("src",e.url),e.integrity&&n.setAttribute("integrity",e.integrity),e.async&&n.setAttribute("async",e.async.toString()),e.defer&&n.setAttribute("defer",e.defer.toString()),e.crossOrigin&&n.setAttribute("crossorigin",e.crossOrigin),n.onload=t,n.onerror=r,document.head.appendChild(n)}));var s=e=>Object.keys(e).reduce(((t,r)=>(t[e[r]]=r,t)),{});var a=e=>{const t=e.match(/^(https?:)\/\/(([^:/?#]*)(?::([0-9]+))?)([/]?[^?#]*)(\?[^#]*|)(#.*|)$/);return t?{href:e,origin:`${t[1]}//${t[3]}${t[4]?`:${t[4]}`:""}`,protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}:null};var c=()=>{const e=window.IOMmGlobalObject||"IOMm";return window[e]?window[e].version:"n.a."};var u=e=>Object.prototype.toString.call(e).slice(8,-1).toLowerCase();const l={navigate:1,reload:2,back_forward:3,prerender:4};var h=()=>{if(performance&&"function"===u(performance.getEntriesByType)){const e=performance.getEntriesByType("navigation").slice(-1).pop();return e?l[e.type]:0}return 0};var d=e=>{const{width:t,height:r,colorDepth:n}=e.screen;return`${t}x${r}x${n}`};var m=e=>"array"===u(e)?!!e.length:null!=e&&!Number.isNaN(e)&&(!1===e||(e instanceof Date?!Number.isNaN(e.getTime()):"object"===u(e)?!!Object.keys(e).length:!!String(e).length));var p=e=>{try{return JSON.parse(e),!0}catch(e){return!1}};const f="acadaeafagaialamaoaqarasatauawaxazbabbbdbebfbgbhbibjbmbnbobrbsbtbwbybzcacccdcfcgchcickclcmcncocrcucvcwcxcyczdjdkdmdodzeceeegereseteufifjfkfmfofrgagdgegfggghgiglgmgngpgqgrgsgtgugwgyhkhmhnhrhthuidieiliminioiqirisitjejmjojpkekgkhkikmknkpkrkwkykzlalblclilklrlsltlulvlymamcmdmemgmhmkmlmmmnmompmqmrmsmtmumvmwmxmymznancnenfngninlnonpnrnunzompapepfpgphpkplpmpnprpsptpwpyqarerorsrurwsasbscsdsesgshsiskslsmsnsosrssstsvsxsysztctdtftgthtjtktltmtntotrtttvtwtzuaugukusuyuzvavcvevgvivnvuwfwsyeytzazmzw".match(/.{1,2}(?=(.{2})+(?!.))|.{1,2}$/g);var g=e=>{const t=e?e.split("."):[],r=t[t.length-1];let n=[],i="";if(f.includes(r)){for(let e=t.length-1;e>=0;e-=1){if(!(e>=t.length-3&&t[e].length<=4)){n.push(t[e]);break}n.push(t[e])}n=n.reverse();for(let e=0,t=n.length;e{const t=[],r=Object.keys(e);for(let n=0,i=r.length;n{if("object"!==u(e))return e;const r={},n=Object.keys(e),i=Object.keys(t);for(let o=0,s=n.length;o-1?t[s]:s;if("object"===u(a))r[c]=E({...a},t);else if("array"===u(a)){r[c]=[...a];for(let e=0,n=a.length;e-1&&e%1==0&&e<=9007199254740991},J=z,H=W;var K=function(e){return null!=e&&H(e.length)&&!J(e)},q=/^(?:0|[1-9]\d*)$/;var B=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&q.test(e))&&e>-1&&e%1==0&&et){var n=e;e=t,t=n}if(r||e%1||t%1){var i=Se();return ye(e+i*(t-e+be("1e-"+((i+"").length-1))),t)}return ge(e,t)};var Te=(e=13)=>{let t="";for(let r=0;rthis._prefix?e.slice(1):e))),Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(this._listeners)))),e}get parent(){return this._parent}set parent(e){this._parent=e}constructor(){this._prefix=Ae,this._listeners=new _e,this._listenerCount=0,this._parent=void 0}has(e){if("symbol"==typeof e)return Object.getOwnPropertySymbols(this._listeners).includes(e);const t=this._prefix?`${this._prefix}${e}`:e;return Object.keys(this._listeners).includes(t)}on(e,t,r){return we(this,e,t,r)}once(e,t,r){return we(this,e,t,r,!0)}off(e,t,r,n=!1){const i=this._prefix?`${this._prefix}${e}`:e;if(!this.has(e))return this;const o=this._listeners[i];if(!t||o.length<=1)return Ne(this,i),this;const s=o.findIndex((e=>e.handler===t&&e.context===(r||this)&&e.once===n));return s>-1&&o.splice(s,1),this}clear(e){const t=this._prefix?`${this._prefix}${e}`:e;return this.has(e)?Ne(this,t):(this._listeners=new _e,this._listenerCount=0),this}emit(e,...t){const r=this._prefix?`${this._prefix}${e}`:e;if(this.has(e)||this.has(je.EVENT_CONFIG.ALL_EVENTS_KEY)){let n=this._listeners[r];if(this.has(je.EVENT_CONFIG.ALL_EVENTS_KEY)){const e=this._listeners[je.EVENT_CONFIG.ALL_EVENTS_KEY];n=[...n=n||[],...e]}for(let e=n.length;e>=0;e-=1){const i=n[e];if(i){const{handler:e,once:n,context:o}=i;n&&this.off(r,e,o,n),e.call(o,...t)}}return xe(this,e,...t),!0}return xe(this,e,...t),!1}all(e,t){return we(this,je.EVENT_CONFIG.ALL_EVENTS_KEY,e,t)}none(e,t){return this.off(je.EVENT_CONFIG.ALL_EVENTS_KEY,e,t)}}je.EVENT_CONFIG={ALL_EVENTS_KEY:"~ALL_EVENTS~"};var Pe=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r{const i=["namespace","module","method","message"][t],o=r[e[i]-1];return o&&(n[i]=o.text,o.children&&o.children.length)?fr(e,t+1,o.children,n):n};class gr{get level(){return Object.keys(gr.TYPES)[this.type-1].toLowerCase()}get plainData(){return{createdAt:new Date(this.createdAt).toJSON(),level:this.level,namespace:this.namespace,module:this.module,method:this.method,message:this.message,internalMessage:this.internalMessage}}constructor(e,t,r,n,i,o){this.type=e,this.namespace=t,this.module=r,this.method=n,this.message=i,this.internalMessage=o,this.createdAt=Date.now()}includes(e){return!!this.internalMessage&&this.internalMessage.includes(e)}toJSON(e=!1){const{plainData:t}=this;return JSON.stringify(e?b(t,gr.SHORTNAME_MAPPING):t)}prettify(e,t,r={abbreviate:!1,prefix:void 0,delimiter:" | "}){if(!0===pr(gr.FORMATS).includes(e)){const{plainData:n}=this,i={...n,...fr(n,0,t)};if(e===gr.FORMATS.JSON)return JSON.stringify(r.abbreviate?b(i,gr.SHORTNAME_MAPPING):i);let o=[];return o=o.concat(lr(i).map((([e,t])=>`${e.toUpperCase()}:${t}`))),r.prefix&&o.push(r.prefix),o.reverse().join(r.delimiter)}return""}}gr.TYPES=Object.defineProperties({},{INFO:{value:1,enumerable:!0},WARNING:{value:2,enumerable:!0},ERROR:{value:3,enumerable:!0},FATAL:{value:4,enumerable:!0}}),gr.FORMATS=Object.defineProperties({},{JSON:{value:1,enumerable:!0},LOG:{value:2,enumerable:!0}}),gr.fromJSON=e=>{const t=JSON.parse(e);if(t.level&&void 0===t.type){const[,e]=lr(gr.TYPES).find((([e])=>e.toLowerCase()===t.level));t.type=e}const{type:r,namespace:n,module:i,method:o,message:s,internalMessage:a}=t;return new gr(r,n,i,o,s,a)},gr.SHORTNAME_MAPPING={level:"lv",type:"tp",namespace:"ns",module:"md",method:"mt",message:"ms",internalMessage:"im",createdAt:"ca"};var vr=gr;const Er=Date.now().toString(16).length,br="___iom_lso_data___",yr=br.length,Sr="___iom_lso_exp___",Ir=Sr.length,Tr=["object","array"];class Ar extends je{constructor(e={},t=window){super(),this.moduleId=7,this.global=t,this.options={useExpireAttribute:!1,useDataMarker:!1,...e}}getItem(e){const t=this.global.localStorage.getItem(e);let{value:r,attributes:n}=(e=>{const t={};let r,n=0;return e&&(e.substring(0,Ir)===Sr&&(n+=Ir+Er,t.expire=new Date(parseInt(e.substring(Ir,n),16))),e.substring(n,yr)===br&&(n+=yr),r=e.substring(n,e.length),p(r)&&(r=JSON.parse(r))),{value:m(r)?r:void 0,attributes:m(t)?t:void 0}})(t);return this.options.useExpireAttribute&&n&&n.expire&&n.expire.getTime()(e.push(this.getItem(t)),e)),[])}setItem(e,t,r){const n=((e,t,r)=>{let n="";return r.useExpireAttribute&&t&&t.expire&&(n+=`___iom_lso_exp___${t.expire.getTime().toString(16)}`),r.useDataMarker&&(n+=br),Tr.includes(u(e))?n+=JSON.stringify(e):n+=e.toString(),n})(t,r,this.options);this.global.localStorage.setItem(e,n),this.emit(Ar.EVENTS.LOCAL_STORAGE_ITEM_SET,{key:e,value:t,attributes:r})}setItems(e){e.forEach((({key:e,value:t,attributes:r})=>this.setItem(e,t,r)))}removeItem(e){this.global.localStorage.removeItem(e),this.emit(Ar.EVENTS.LOCAL_STORAGE_ITEM_REMOVED,e)}removeItems(e){e.forEach((e=>{this.removeItem(e)}))}}Ar.EVENTS={LOCAL_STORAGE_ITEM_SET:"LOCAL_STORAGE_ITEM_SET",LOCAL_STORAGE_ITEM_REMOVED:"LOCAL_STORAGE_ITEM_REMOVED"};var _r=Ar;const Or=new Date("Thu, 01 Jan 1970 00:00:00 GMT"),wr={domain:"domain",path:"path",expires:"expires",maxAge:"max-age",sameSite:"samesite",secure:"secure"},Nr=s(wr),xr=e=>{const t=e.split(";");let r;try{r=decodeURIComponent(t[0])}catch(e){r=t[0]}const n={},i=t.slice(1,t.length);for(let e=0,t=i.length;e{const t=e.split("=");let r=t.slice(1).join("=");'"'===r.charAt(0)&&(r=r.slice(1,-1));const n=(e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent))(t[0]);return{name:n,...xr(r)}}))}get stats(){return{size:this.items.map((e=>`${e.name};${e.value}`)).join("; ").length,count:this.items.length}}constructor(e,t={},r={normalizeDomain:!0}){super(),this.moduleId=4,this.doc=e,this.testName="iom_cookie_check",this.attributes=t,r.normalizeDomain&&t.domain&&(this.attributes.domain=g(t.domain))}setItem(e,t,r={}){return void 0!==this.doc.cookie&&(this.doc.cookie=((e,t,r)=>{let n=`${e.replace(/[^#$&+^`|]/g,encodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")}=${encodeURIComponent(t)}`;const i=Object.keys(wr);for(let e=0,t=i.length;et.name===e))||{value:void 0,attributes:void 0}}getItems(e){const t=this.items.filter((t=>e.test(t.name))),r=[];for(let e=0,n=t.length;e{if(this.ready){const{url:r,type:s}=this.request,a=t=>{!1===this.options.removeElementAfterLoaded?this.elements[this.request.type]=t.target:t.target.parentNode.removeChild(t.target),e()},c=()=>{const e=new vr(vr.TYPES.FATAL,2,this.moduleId,1,1);t(e)};if(this.elements[s]){const e=this.elements[s];e.parentNode.removeChild(e)}if(s===Cr.TYPES.JSONP)o({url:r}).then(a).catch(c);else if(s===Cr.TYPES.IFRAME)n({url:r,...kr}).then(a).catch(c);else if(s===Cr.TYPES.IMAGE)i({url:r}).then(a).catch(c);else{const e=new vr(vr.TYPES.ERROR,2,this.moduleId,1,2);t(e)}}else{const e=new vr(vr.TYPES.FATAL,2,this.moduleId,1,3);t(e)}}))}}Cr.TYPES={JSONP:"JSONP",IFRAME:"IFRAME",IMAGE:"IMAGE"};var Mr=Cr;var Dr={data:{maxItemLength:2048},http:{hosts:{de:"de.ioam.de",at:"at.iocnt.net"},endpoints:{base:"tx.io",aid:"aid.io"}},privacy:{considerDoNotTrack:!1,truncateUrls:!1},storage:{cookie:{name:"ioam2018"},localStorage:{useExpireAttribute:!1,useDataMarker:!1}},hybrid:{checkSite:!1,apiKeys:e=>"at"===e?{ios:"IOMpOEWAHybridMessageHandler",android:"IOMpOEAWHybridBridge"}:{ios:"IOMpHybridMessageHandler",android:"IOMpHybridBridge"},globalObject:e=>"at"===e?"IOMpOEWAHybrid":"IOMpHybrid",legacy:{smiKey:"ioam_smi"},cleanupCode:!0}};const Rr={cooExpireValue:"21813248",cookieWhitelist:"[]",cube:"001c",geoValue:"DK/Capital Region",idValue:"001c6a56f4fa7a17a65e89b28",domainPrefix:"28be7d98"},$r=e=>!(!e||""===e.trim())&&0===(e.trim().match(/^%%(.+)%%$/)||[]).length;var Lr={cooExpireValue:$r(Rr.cooExpireValue)?parseInt(Rr.cooExpireValue,10):0,cookieWhitelist:$r(Rr.cookieWhitelist)?Rr.cookieWhitelist.match(/[A-Za-z0-9]+/g):[],cube:$r(Rr.cube)?Rr.cube:"0001",geoValue:$r(Rr.geoValue)?Rr.geoValue:"",idValue:$r(Rr.idValue)?Rr.idValue:"",domainPrefix:$r(Rr.domainPrefix)?`${Rr.domainPrefix}`:`${Te(8)}`};const Fr=e=>((e="")=>(/iPhone/.test(e)||/iPad/.test(e))&&/Safari/.test(e))(e)&&!((e="")=>/Chrome/.test(e)||/CriOS/.test(e))(e)||((e="")=>/Maple_201/.test(e)||/SMART-TV/.test(e)||/SmartTV201/.test(e))(e),Gr=(e,t=Math.random)=>{const r=999999999999,n=1e11;return(Math.floor(t()*(r-n+1))+n).toString(16)+(Math.floor(t()*(r-n+1))+n).toString(16)+((e="")=>{const t=[];for(let r=0,n=e.length;r{let t=0;for(let r=0;r>6;return t+=t<<3,t^=t>>11,t+=t<<15,t=Math.abs(t&t),t.toString(36)},Yr=(e=window)=>{const t=(e=>{const{navigator:t}=e;let r="";if(r+=t.userAgent,r+=d(e),t.plugins.length>0)for(let e=0;e0)for(let e=0;e300+Math.floor(65*e()))()*60*60*1e3,Wr=(e=zr)=>{let t=Date.now();return t+=e,new Date(t)},Jr=e=>{const{cubeData:t}=e.sensor;return{site:t.data.siteInformation.site,code:t.data.siteInformation.code,event:t.data.siteInformation.event||"noevent",id:Lr.idValue||Gr(Lr.cube)}},Hr=(e,t=!0)=>{const{id:r,expirationDate:n,createdAt:i,domain:o,eventCount:s,site:a,code:c,event:u,updatedAt:l}=e,h=[r,n?n.getTime():void 0,i?i.getTime():void 0,o,s,a,c,u,l?l.getTime():void 0].join(":");return t?(e=>[e,Ur(e)].join(":"))(h):h},Kr=e=>{const t=e.value?e.value.split(":"):[],[r,n,i,o,s,a,c,u,l,h]=t;return{code:c,checksum:h,createdAt:i?new Date(parseInt(i,10)):void 0,domain:o,expirationDate:n?new Date(parseInt(n,10)):void 0,event:u,eventCount:s?parseInt(s,10):0,id:r,site:a,updatedAt:l?new Date(parseInt(l,10)):void 0}},qr=(e,t)=>({domain:g(e.location.hostname),path:"/",expires:Wr(t)});var Br=class extends je{constructor(t,r=document,n={}){super(),this.doc=r,this.sensor=t,this.options={...Dr.storage.cookie,...n},this.cookie=new Vr(this.options.name,qr(this.doc),{normalizeDomain:!1},this.doc),e(this.cookie,this,je),this.load()}get isSet(){return this.cookie.isSet}get isValid(){const{checksum:e}=this.values,t=Hr(this.values,!1);return Ur(t)===e}load(){return this.cookie.load(),this.values=Kr(this.cookie),this}create(){const e=Hr(((e,t,r)=>{const{code:n,event:i,site:o,id:s}=Jr(e),a=new Date,c=Wr(r);return{code:n,createdAt:a,domain:t.domain,event:i,eventCount:1,expirationDate:c,id:s,site:o,updatedAt:a}})(this,qr(this.doc)));return this.cookie.create(e),this.values=Kr(this.cookie),this}update(){if(this.isSet){const e=Hr(((e,t)=>{const{code:r,event:n,site:i}=Jr(e),o=new Date,s=t.eventCount+1;return{...t,code:r,event:n,eventCount:s,site:i,updatedAt:o}})(this,this.values));return this.cookie.update(e),this.values=Kr(this.cookie),this}return this.create()}remove(){return this.cookie.remove(),this.values=Kr(this.cookie),this}toString(){return this.isSet?Hr(this.values):"nocookie"}length(){return this.isSet?this.toString().length:0}};class Xr extends je{constructor(e,t,r=Mr){super(),this.sensor=e,this.options={...Dr,...t},this.httpClient=new r}transmitData(){return new Promise(((e,t)=>{try{const{country:r}=this.sensor.globalParams,{domainPrefix:n}=Lr,i=!0===Fr(navigator.userAgent)?Mr.TYPES.IFRAME:Mr.TYPES.JSONP,o=i===Mr.TYPES.JSONP?1:3,s=((e,t)=>t.hosts[e])(this.data.siteInformation.country,this.options.http),a=((e,t)=>e===Mr.TYPES.IFRAME?t.endpoints.aid:t.endpoints.base)(i,this.options.http),c=((e,t,r,n,i,o)=>{let s=v(n);return s+=`&mo=${i}&`,s+=`cs=${Ur(s)}`,"de"===o?`//${e}.${t}/${r}?${s}`:`//${t}/${r}?${s}`})(n,s,a,this.serialized,o,r);this.httpClient.create(c,i).send().then((()=>{this.emit(Xr.EVENTS.TRANSMIT_DATA_SUCCESS,new vr(vr.TYPES.INFO,1,this.moduleId,3,1)),e()})).catch((e=>{const r=e instanceof vr?e:new vr(vr.TYPES.ERROR,1,this.moduleId,3,2,e.message);this.emit(Xr.EVENTS.TRANSMIT_DATA_FAILED,r),t(r)}))}catch(e){const r=new vr(vr.TYPES.ERROR,4,this.moduleId,1,3,e.message);this.emit(Xr.EVENTS.TRANSMIT_DATA_FAILED,r),t(r)}}))}}Xr.EVENTS={TRANSMIT_DATA_SUCCESS:"TRANSMIT_DATA_SUCCESS",TRANSMIT_DATA_FAILED:"TRANSMIT_DATA_FAILED"};var Zr=Xr;var Qr={amp:"ap",checksum:"cs",code:"cp",comment:"co",consentString:"ct",cookieExpireValue:"ep",cookieIdentifier:"i3",cookieIdentifierLength:"n1",country:"cn",cubeNumber:"cb",customUrl:"u4",distributionChannel:"dc",doNotTrack:"dntt",error:"er",event:"ev",fbia:"fb",fingerprint:"id",geoLocation:"lo",hashedIdentifier:"i2",hybridSite:"fs",integrationType:"it",localTime:"lt",locationHost:"ur",locationHref:"u2",mcvd:"sc",managerVersion:"mv",multiIdentifier:"mi",navigationType:"nt",panelIdentifier:"pid",panelVendorId:"pvd",pixelType:"pt",privacySettings:"ps",referrerHost:"rf",sanitizedReferrer:"r2",schemaVersion:"vs",screenResolution:"xy",site:"st",streamingMetadata:"ms",surveyType:"sv",tabbing:"tb",token:"to",version:"vr"};const en=e=>{let t="",r="";const n=a(document.referrer);return n&&(t=n.hostname,!1===e.truncateUrls&&(r=((e,t=255)=>((e,t=255,r="+")=>{const n=t-r.length>0?t-r.length:0;return e.length>t?`${e.substr(0,n)}${r}`:e})(e.replace(/[^a-zA-Z0-9,_/:-]+/g,"."),t))(n.href))),{referrerHost:t,sanitizedReferrer:r}},tn=(e,t=document.location)=>{const{host:n}=t;let i;return!0===Fr(navigator.userAgent)&&(i=`${t.href}`,!0===e.truncateUrls&&(i=r(t))),{locationHost:n,locationHref:i}};var rn=class extends Zr{constructor(e,t={},r=Mr){super(e,t.http,r),this.data={},this.sensor=e,this.options={...Dr,...t}}get serialized(){return e=(e=>{const t={...e.clientInformation,...e.deviceInformation,...e.panelInformation,schemaVersion:e.schemaVersion,...e.siteInformation,...e.technicalInformation};return b(t,Qr)})(this.data),t=this.options.data.maxItemLength,Object.keys(e).reduce(((r,n)=>{let i=e[n];return m(i)&&("string"==typeof i&&(i=i.slice(0,t)),r[n]=i),r}),{});var e,t}create(){const{firstPartyCookie:e,globalParams:r,measureParams:n}=this.sensor,{site:i,distributionChannel:o,country:s,consentString:a,panelIdentifier:c,panelVendorId:u}=r,{pixelType:l,code:m,comment:p,event:f,customUrl:g,surveyType:v}=n;return this.data.clientInformation={fingerprint:Yr(),hashedIdentifier:Lr.idValue,doNotTrack:this.options.privacy.considerDoNotTrack&&t()?1:0,privacySettings:"lin"},this.data.deviceInformation={localTime:Date.now(),screenResolution:d(window),geoLocation:Lr.geoValue},this.data.panelInformation={},c&&u&&(this.data.panelInformation.panelIdentifier=c,this.data.panelInformation.panelVendorId=u),this.data.schemaVersion="1.1.0",this.data.siteInformation={site:i,distributionChannel:o,consentString:a,country:s,pixelType:l.toUpperCase(),code:m,comment:p,event:f,...en(this.options.privacy),...tn(this.options.privacy),customUrl:g},e.update(),this.data.clientInformation.cookieIdentifier=e.toString(),this.data.technicalInformation={amp:0,cookieExpireValue:Lr.cooExpireValue,cookieIdentifierLength:e.length(),cubeNumber:Lr.cube,error:this.sensor.state.error,fbia:0,mcvd:"yes",navigationType:h(),surveyType:v,tabbing:0,version:"5.1.0"},this}reset(){return this.data={},this}};var nn=class extends rn{constructor(e,t={...Dr},r=Mr){super(e,t,r)}create(){return super.create(),this.data.technicalInformation.integrationType="mm",this.data.technicalInformation.managerVersion=c(),this}};class on extends je{constructor(e={...Dr},t=nn,r=Br,n=_r,i=Mr){super(),this.moduleId=1,this.options=e,this.globalParams={},this.measureParams={},this.state={},this.firstPartyCookie=new r(this),this.cubeData=new t(this,e,i),this.localStorage=new n(e.storage.localStorage),this.configured=!1}configure(e){this.globalParams={...e},this.configured=!0,this.emit(on.EVENTS.CONFIGURING_SUCCESS,new vr(vr.TYPES.INFO,3,this.moduleId,1,1))}pageview(e){return new Promise(((t,r)=>{try{if(!0===this.configured)this.measureParams={...e},this.cubeData.reset().create().transmitData().then((()=>{const e=new vr(vr.TYPES.INFO,3,this.moduleId,2,4);this.emit(on.EVENTS.PAGEVIEW_SUCCESS,e),t(e)})).catch((e=>{const t=e instanceof vr?e:new vr(vr.TYPES.ERROR,3,this.moduleId,2,3,e.message);this.emit(on.EVENTS.PAGEVIEW_FAILED,t),r(t)}));else{const e=new vr(vr.TYPES.FATAL,3,this.moduleId,2,2);this.emit(on.EVENTS.PAGEVIEW_FAILED,e),r(e)}}catch(e){const t=new vr(vr.TYPES.FATAL,3,this.moduleId,2,1,e.message);this.emit(on.EVENTS.PAGEVIEW_FAILED,t),r(t)}}))}event(e){return new Promise(((t,r)=>{try{if(!0===this.configured)this.measureParams.event=e.event,this.measureParams.streamingMetadata=e.streamingMetadata,this.cubeData.reset().create().transmitData().then((()=>{const e=new vr(vr.TYPES.INFO,3,this.moduleId,2,4);this.emit(on.EVENTS.PAGEVIEW_SUCCESS,e),t(e)})).catch((e=>{const t=e instanceof vr?e:new vr(vr.TYPES.ERROR,3,this.moduleId,2,3,e.message);this.emit(on.EVENTS.PAGEVIEW_FAILED,t),r(t)}));else{const e=new vr(vr.TYPES.FATAL,3,this.moduleId,2,2);this.emit(on.EVENTS.PAGEVIEW_FAILED,e),r(e)}}catch(e){const t=new vr(vr.TYPES.FATAL,3,this.moduleId,2,1,e.message);this.emit(on.EVENTS.PAGEVIEW_FAILED,t),r(t)}}))}}on.EVENTS={CONFIGURING_SUCCESS:"CONFIGURING_SUCCESS",PAGEVIEW_SUCCESS:"PAGEVIEW_SUCCESS",PAGEVIEW_FAILED:"PAGEVIEW_FAILED",EVENT_SUCCESS:"EVENT_SUCCESS",EVENT_FAILED:"EVENT_FAILED"};var sn=on;var an=()=>{const e=new sn;return{configure:(...t)=>e.configure(...t),pageview:(...t)=>e.pageview(...t),event:(...t)=>e.event(...t)}};window.IOMp=an}();