(function () {(function(u,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c():typeof define=="function"&&define.amd?define(c):(u=typeof globalThis!="undefined"?globalThis:u||self,u._M_=c())})(this,function(){"use strict";var qt=Object.defineProperty,Ft=Object.defineProperties;var Wt=Object.getOwnPropertyDescriptors;var Be=Object.getOwnPropertySymbols;var Ht=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable;var we=(u,c,p)=>c in u?qt(u,c,{enumerable:!0,configurable:!0,writable:!0,value:p}):u[c]=p,S=(u,c)=>{for(var p in c||(c={}))Ht.call(c,p)&&we(u,p,c[p]);if(Be)for(var p of Be(c))Xt.call(c,p)&&we(u,p,c[p]);return u},ae=(u,c)=>Ft(u,Wt(c));var k=(u,c,p)=>(we(u,typeof c!="symbol"?c+"":c,p),p),ve=(u,c,p)=>{if(!c.has(u))throw TypeError("Cannot "+p)};var a=(u,c,p)=>(ve(u,c,"read from private field"),p?p.call(u):c.get(u)),y=(u,c,p)=>{if(c.has(u))throw TypeError("Cannot add the same private member more than once");c instanceof WeakSet?c.add(u):c.set(u,p)},_=(u,c,p,I)=>(ve(u,c,"write to private field"),I?I.call(u,p):c.set(u,p),p);var w=(u,c,p)=>(ve(u,c,"access private method"),p);var E=(u,c,p)=>new Promise((I,Z)=>{var P=x=>{try{$(p.next(x))}catch(A){Z(A)}},C=x=>{try{$(p.throw(x))}catch(A){Z(A)}},$=x=>x.done?I(x.value):Promise.resolve(x.value).then(P,C);$((p=p.apply(u,c)).next())});var h,U,d,R,V,z,T,te,De,ie,ke,G,ge,ne,Pe,re,Ve,Y,ye,M,de,B,Q,se,ze,L,ce,N,K,oe,Me;function u(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! load-script2. MIT License. Feross Aboukhadijeh */var c=function(e,i,n){return new Promise((r,s)=>{const o=document.createElement("script");o.async=!0,o.src=e;for(const[l,g]of Object.entries(i||{}))o.setAttribute(l,g);o.onload=()=>{o.onerror=o.onload=null,r(o)},o.onerror=()=>{o.onerror=o.onload=null,s(new Error(`Failed to load ${e}`))},(n||document.head||document.getElementsByTagName("head")[0]).appendChild(o)})};const p=u(c),I=localStorage;function Z(t,e,i){$(t,P(t)+1,e,i)}function P(t,e){t=`missena.${t}`;const i=I.getItem(t);if(!i)return 0;const n=JSON.parse(i);return typeof n.expiry!="number"||new Date().getTime()>n.expiry||e&&e!=n.referer?(I.removeItem(t),0):typeof n.value=="number"?n.value:0}function C(...t){return["missena","capper"].concat(t).join(".")}function $(t,e,i,n){t=`missena.${t}`;const r=new Date().getTime()+i*1e3;I.setItem(t,JSON.stringify({value:e,expiry:r,referer:n}))}function x(t,e){t=`missena.${t}`;const i=I.getItem(t);let n=new Date().getTime()+e*1e3,r=JSON.parse(i!=null?i:JSON.stringify({value:0,expiry:n}));(typeof r.expiry!="number"||typeof r.value!="number"||new Date().getTime()>r.expiry)&&(I.removeItem(t),r={value:0,expiry:n}),r.value+=1,I.setItem(t,JSON.stringify(r))}var A=(t=>(t.BANNER="BANNER",t.NATIVE="NATIVE",t.VIDEO="VIDEO",t))(A||{}),O=(t=>(t.STICKY="sticky",t.PRESTITIAL="prestitial",t.POSTITIAL="postitial",t.HEADER="header",t.FOOTER="footer",t.SKINCORNER="skincorner",t))(O||{}),v=(t=>(t.STICKY_BANNER="sticky-banner",t.STICKY_NATIVE="sticky-native",t.STICKY_VIDEO="sticky-video",t.PRESTITIAL_BANNER="prestitial-banner",t.PRESTITIAL_NATIVE="prestitial-native",t.PRESTITIAL_VIDEO="prestitial-video",t.POSTITIAL_BANNER="postitial-banner",t.POSTITIAL_NATIVE="postitial-native",t.POSTITIAL_VIDEO="postitial-video",t.HEADER_BANNER="header-banner",t.HEADER_NATIVE="header-native",t.HEADER_VIDEO="header-video",t.FOOTER_BANNER="footer-banner",t.FOOTER_NATIVE="footer-native",t.FOOTER_VIDEO="footer-video",t.SKINCORNER_BANNER="skincorner-banner",t.SKINCORNER_NATIVE="skincorner-native",t))(v||{}),q=(t=>(t.LOCAL="local",t.STAGING="staging",t.PRODUCTION="production",t.EDGE="edge",t))(q||{}),be=(t=>(t.AMP="amp",t.Bot="bot",t.Desktop="desktop",t.Mobile="mobile",t.Tablet="tablet",t.Webview="webview",t))(be||{}),m=(t=>(t.Adyoulike="adyoulike",t.Bidule="bidule",t.CriteoCDB="criteo-cdb",t.CriteoPrebidBanner="criteo-prebid-banner",t.CriteoPrebidNative="criteo-prebid-native",t.CriteoPrebidVideo="criteo-prebid-video",t.ImproveDigitalNative="improvedigital-native",t.MagniteBanner="magnite-banner",t.MagniteNative="magnite-native",t.MagniteVideo="magnite-video",t.Outbrain="outbrain",t.PubmaticNative="pubmatic-native",t.RichAudienceBanner="richaudience-banner",t.RichAudienceVideo="richaudience-video",t.SmartBanner="smart-banner",t.SmartNative="smart-native",t.SmartVideo="smart-video",t.SmilewantedBanner="smilewanted-banner",t.SmilewantedVideo="smilewanted-video",t.WmgPubmaticNative="wmg-pubmatic-native",t.XandrBanner="xandr-banner",t.XandrNative="xandr-native",t.XandrVideo="xandr-video",t))(m||{});const Le={[v.STICKY_BANNER]:{zoomAreaMin:100*85,zoomAreaDefault:150*125,zoomAreaFull:300*250*.5625,position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[v.STICKY_NATIVE]:{behavior:{[m.Outbrain]:{onClick:"redirect",onSwipe:"popup",countdown:3},[m.Adyoulike]:{onClick:"redirect",onSwipe:"popup",countdown:3},[m.SmartNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[m.XandrNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[m.MagniteNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[m.PubmaticNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[m.CriteoPrebidNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[m.ImproveDigitalNative]:{onClick:"redirect",onSwipe:"popup",countdown:3}},position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}},bubbleBkgColor:"#fff",bubbleHitbox:90,bubbleSize:80,countdown:6.5,crossVariant:"bottom_left",headerBkgColor:"#1d242b",notification:1,previewBkgColor:"#0362E3",previewTimeout:8,showMenu:!0},[v.STICKY_VIDEO]:{position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}},bubbleSize:80,bubbleHitbox:90,crossVariant:"bottom_left",swipeToFullscreen:!0,behavior:{}},[v.PRESTITIAL_BANNER]:{zoomAreaMin:100*85,zoomAreaDefault:150*125,zoomAreaFull:300*250*.5625,countdown:5e3,hasCTA:!0,position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[v.PRESTITIAL_NATIVE]:{crossVariant:"top_right_big",minimizeIcon:"close_fullscreen",position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}},countdown:5,showCountdown:!1},[v.PRESTITIAL_VIDEO]:{bubbleSize:80,bubbleHitbox:90,swipeToFullscreen:!0,crossVariant:"top_right_big",position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}},behavior:{},variant:"rotated"},[v.POSTITIAL_BANNER]:{position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[v.POSTITIAL_NATIVE]:{position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[v.POSTITIAL_VIDEO]:{position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[v.HEADER_BANNER]:{width:320,height:121,offset:56,zIndex:2147483647},[v.HEADER_NATIVE]:{width:320,height:121,offset:56,zIndex:2147483647},[v.HEADER_VIDEO]:{width:320,height:121,offset:56,zIndex:2147483647},[v.FOOTER_BANNER]:{width:320,height:100,offset:0,zIndex:2147483647},[v.FOOTER_NATIVE]:{width:320,height:100,offset:0,bgColor:"#fff",zIndex:2147483647},[v.FOOTER_VIDEO]:{width:320,height:100,offset:0,zIndex:2147483647},[v.SKINCORNER_BANNER]:{adapter:"",selector:""},[v.SKINCORNER_NATIVE]:{adapter:"",selector:""}};v.STICKY_BANNER+"",v.PRESTITIAL_BANNER+"",v.POSTITIAL_BANNER+"",v.HEADER_BANNER+"",v.FOOTER_BANNER+"",v.SKINCORNER_BANNER+"";/*! load-script2. MIT License. Feross Aboukhadijeh */var Ke=function(e,i,n){return new Promise((r,s)=>{const o=document.createElement("script");o.async=!0,o.src=e;for(const[l,g]of Object.entries(i||{}))o.setAttribute(l,g);o.onload=()=>{o.onerror=o.onload=null,r(o)},o.onerror=()=>{o.onerror=o.onload=null,s(new Error(`Failed to load ${e}`))},(n||document.head||document.getElementsByTagName("head")[0]).appendChild(o)})};const $e=u(Ke),ue=()=>{};function qe(t,e){const i={amp:e.device===be.AMP,ik:e.idempotencyKey,t:e.apiKey};try{const n=new URL(t);return Object.entries(i).forEach(([r,s])=>{s===!0?n.searchParams.set(r,"1"):s&&n.searchParams.set(r,s)}),n.toString()}catch(n){return""}}function fe(t="%cmissena-debug:",e="color:#FFF; background-color:red; padding:3px;border-radius:3px;"){const i=F();try{const n=i.localStorage.getItem("__missena_debug")||i.hasOwnProperty("displayMissenaInfo"),r=i.displayMissenaInfo||ue;return n?function(){if(arguments.length==3){r(...arguments);return}console.log(t,e,...arguments)}:ue}catch(n){return ue}}function F(){try{return window.Cypress?window:(window.top.__doNotExist__,window.top)}catch(t){return window}}/*! * uuidv4 function posted by Rasmus Schultz (mindplay-dk) * on https://gist.github.com/jed/982883 */for(var b=[],W=0;W<256;W++)b[W]=(W<16?"0":"")+W.toString(16);function Fe(){var t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,b[t[0]]+b[t[1]]+b[t[2]]+b[t[3]]+"-"+b[t[4]]+b[t[5]]+"-"+b[t[6]]+b[t[7]]+"-"+b[t[8]]+b[t[9]]+"-"+b[t[10]]+b[t[11]]+b[t[12]]+b[t[13]]+b[t[14]]+b[t[15]]}function Ee(t,e){var i;typeof t.renderers[e.format]=="function"?((i=t.log)==null||i.call(t,"Renderer finished loading. Rendering: ",t,e),t.renderers[e.format](e),t.shownAds.push(e.meta.requestId||"undefined")):requestAnimationFrame(()=>Ee(t,e))}function We(t,e){return E(this,null,function*(){var r,s,o,f;(r=t.log)==null||r.call(t,"renderSlot",e);const i=t.window.document,n=i.head||i.getElementsByTagName("head")[0];if(t.shownAds=(s=t.shownAds)!=null?s:[],e.meta.requestId=(o=e.meta.requestId)!=null?o:Fe(),e.settings=S(S({},Le[e.format]),e.settings),!t.shownAds.includes(e.meta.requestId)){if(typeof t.renderers[e.format]=="function"){(f=t.log)==null||f.call(t,"Renderer already loaded. Rendering: ",t,e),t.renderers[e.format](e),t.shownAds.push(e.meta.requestId);return}$e(`${t.baseUrl}/renderer-${e.format}.js`,{},n).then(()=>{Ee(t,e)})}})}function He(t){var e;try{return((e=t.window._pbjsGlobals)!=null?e:[]).reduce((i,n)=>{var r,s;return i||((s=(r=t.window[n])==null?void 0:r.installedModules)==null?void 0:s.includes("fledgeForGpt"))},!1)}catch(i){return!1}}const H=fe("%cmissena-capper:");function Ie(t,e,i,n=void 0){const s=F().document;function o(f){var g,D,J;(((D=(g=f==null?void 0:f.detail)==null?void 0:g.event)==null?void 0:D.name)||"").startsWith(e)&&(H("missena.event: ",(J=f==null?void 0:f.detail)==null?void 0:J.event),s.removeEventListener("missena.event",o),e.includes("postitial")?x(C(e,t),i):Z(C(e,t),i,n))}s.addEventListener("missena.event",o),H("mounted listener for ",e)}const Xe="remove-bubble";function Ge(t,e,i){return e?P(C(Xe,t),i)==0:!0}const Te="display-bubble",Ye=500,Je=1;function Qe(t,e){return e?(e.duration=e.duration||Ye,e.max=e.max||Je,Ie(t,Te,e.duration),P(C(Te,t))!n.purpose.consents[l])?(H("gdprApplies, NOT ALLOWED!"),!0):s==O.STICKY&&!(Qe(i,e==null?void 0:e.display)&&Ge(i,e==null?void 0:e.close,r))?(H("sticky"),!1):s==O.POSTITIAL&&!je(i,e==null?void 0:e.postitial)?(H("postitial"),!1):!0:!0}function it(t){var n;const e=new URL("https://odb.outbrain.com/utils/platforms"),i=e.searchParams;return i.set("cnsntv2",(n=t==null?void 0:t.tcData)==null?void 0:n.tcString),i.set("contentUrl",t.window.location.origin),i.set("cors","true"),i.set("extid",`${t.apiKey}:${m.Outbrain}`),i.set("format","vjnc"),i.set("idx","0"),t.environment==="staging"?(i.set("key","MISSE2C64DIAP9G6IALM960BG"),i.set("testMode","true")):i.set("key","MISSE1B20F8DEDLL0I1F217OD"),i.set("secured","true"),i.set("va","true"),i.set("widgetJSId","APP_1"),e.toString()}function xe(i){return E(this,arguments,function*(t,e=[]){var l,g,D,J;if(e.includes(m.Outbrain))return Promise.resolve({});const r=yield(yield fetch(it(t))).json(),s=(l=r.response)==null?void 0:l.documents;if(!s)return Promise.resolve({error:new Error("undefined documents")});if(!s.count||!s.doc)return Promise.resolve({error:new Error(`${s.count}/${s.total_count} ${JSON.stringify(s.doc)}`)});const o=s.doc[0],f=(g=o.thumbnail)==null?void 0:g.url;return Promise.resolve({recommendation:{clickUrl:o.url,icon:f,image:f,impressionTrackers:o.impression_pixels||o.pixels||[],kind:A.NATIVE,onViewed:o["on-viewed"]||[],price:"0",privacyLink:"",sponsoredBy:o.source_display_name,title:o.content,requestId:(J=(D=r.response)==null?void 0:D.request)==null?void 0:J.req_id}})})}const nt={enableTIDs:!0,gvlMapping:{missena:687,smilewanted:639},consentManagement:{gdpr:{cmpApi:"iab",timeout:8e3,defaultGdprScope:!0},usp:{timeout:100}},bidderTimeout:2e3,fledgeForGpt:{enabled:!0},userSync:{userIds:[{name:"criteo"},{name:"sharedId",storage:{type:"cookie",name:"_sharedid",expires:365}},{name:"id5Id",params:{partner:1363},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:28800}},{name:"identityLink",params:{pid:"13964",notUse3P:!0},storage:{type:"cookie",name:"idl_env",expires:15,refreshInSeconds:1800}}],filterSettings:{iframe:{bidders:"*",filter:"include"},image:{bidders:"*",filter:"include"}},aliasSyncEnabled:!0}};var Ae=4294967295;function rt(t,e,i){var n=i/4294967296,r=i;t.setUint32(e,n),t.setUint32(e+4,r)}function Ue(t,e,i){var n=Math.floor(i/4294967296),r=i;t.setUint32(e,n),t.setUint32(e+4,r)}function st(t,e){var i=t.getInt32(e),n=t.getUint32(e+4);return i*4294967296+n}var pe,he,le,j=(typeof process=="undefined"||((pe=process==null?void 0:process.env)===null||pe===void 0?void 0:pe.TEXT_ENCODING)!=="never")&&typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined";function Ne(t){for(var e=t.length,i=0,n=0;n=55296&&r<=56319&&n>6&31|192;else{if(o>=55296&&o<=56319&&s>18&7|240,e[r++]=o>>12&63|128,e[r++]=o>>6&63|128):(e[r++]=o>>12&15|224,e[r++]=o>>6&63|128)}else{e[r++]=o;continue}e[r++]=o&63|128}}var X=j?new TextEncoder:void 0,at=j?typeof process!="undefined"&&((he=process==null?void 0:process.env)===null||he===void 0?void 0:he.TEXT_ENCODING)!=="force"?200:0:Ae;function dt(t,e,i){e.set(X.encode(t),i)}function ct(t,e,i){X.encodeInto(t,e.subarray(i))}var ut=X!=null&&X.encodeInto?ct:dt;j&&new TextDecoder,j&&typeof process!="undefined"&&((le=process==null?void 0:process.env)===null||le===void 0||le.TEXT_DECODER);var ee=function(){function t(e,i){this.type=e,this.data=i}return t}(),ft=function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(n[s]=r[s])},t(e,i)};return function(e,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}(),pt=function(t){ft(e,t);function e(i){var n=t.call(this,i)||this,r=Object.create(e.prototype);return Object.setPrototypeOf(n,r),Object.defineProperty(n,"name",{configurable:!0,enumerable:!1,value:e.name}),n}return e}(Error),ht=-1,lt=4294967296-1,mt=17179869184-1;function wt(t){var e=t.sec,i=t.nsec;if(e>=0&&i>=0&&e<=mt)if(i===0&&e<=lt){var n=new Uint8Array(4),r=new DataView(n.buffer);return r.setUint32(0,e),n}else{var s=e/4294967296,o=e&4294967295,n=new Uint8Array(8),r=new DataView(n.buffer);return r.setUint32(0,i<<2|s&3),r.setUint32(4,o),n}else{var n=new Uint8Array(12),r=new DataView(n.buffer);return r.setUint32(0,i),Ue(r,4,e),n}}function vt(t){var e=t.getTime(),i=Math.floor(e/1e3),n=(e-i*1e3)*1e6,r=Math.floor(n/1e9);return{sec:i+r,nsec:n-r*1e9}}function gt(t){if(t instanceof Date){var e=vt(t);return wt(e)}else return null}function yt(t){var e=new DataView(t.buffer,t.byteOffset,t.byteLength);switch(t.byteLength){case 4:{var i=e.getUint32(0),n=0;return{sec:i,nsec:n}}case 8:{var r=e.getUint32(0),s=e.getUint32(4),i=(r&3)*4294967296+s,n=r>>>2;return{sec:i,nsec:n}}case 12:{var i=st(e,4),n=e.getUint32(0);return{sec:i,nsec:n}}default:throw new pt("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function bt(t){var e=yt(t);return new Date(e.sec*1e3+e.nsec/1e6)}var Et={type:ht,encode:gt,decode:bt},It=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(Et)}return t.prototype.register=function(e){var i=e.type,n=e.encode,r=e.decode;if(i>=0)this.encoders[i]=n,this.decoders[i]=r;else{var s=1+i;this.builtInEncoders[s]=n,this.builtInDecoders[s]=r}},t.prototype.tryToEncode=function(e,i){for(var n=0;nthis.maxDepth)throw new Error("Too deep objects in depth ".concat(i));e==null?this.encodeNil():typeof e=="boolean"?this.encodeBoolean(e):typeof e=="number"?this.encodeNumber(e):typeof e=="string"?this.encodeString(e):this.encodeObject(e,i)},t.prototype.ensureBufferSizeToWrite=function(e){var i=this.pos+e;this.view.byteLength=0?e<128?this.writeU8(e):e<256?(this.writeU8(204),this.writeU8(e)):e<65536?(this.writeU8(205),this.writeU16(e)):e<4294967296?(this.writeU8(206),this.writeU32(e)):(this.writeU8(207),this.writeU64(e)):e>=-32?this.writeU8(224|e+32):e>=-128?(this.writeU8(208),this.writeI8(e)):e>=-32768?(this.writeU8(209),this.writeI16(e)):e>=-2147483648?(this.writeU8(210),this.writeI32(e)):(this.writeU8(211),this.writeI64(e)):this.forceFloat32?(this.writeU8(202),this.writeF32(e)):(this.writeU8(203),this.writeF64(e))},t.prototype.writeStringHeader=function(e){if(e<32)this.writeU8(160+e);else if(e<256)this.writeU8(217),this.writeU8(e);else if(e<65536)this.writeU8(218),this.writeU16(e);else if(e<4294967296)this.writeU8(219),this.writeU32(e);else throw new Error("Too long string: ".concat(e," bytes in UTF-8"))},t.prototype.encodeString=function(e){var i=5,n=e.length;if(n>at){var r=Ne(e);this.ensureBufferSizeToWrite(i+r),this.writeStringHeader(r),ut(e,this.bytes,this.pos),this.pos+=r}else{var r=Ne(e);this.ensureBufferSizeToWrite(i+r),this.writeStringHeader(r),ot(e,this.bytes,this.pos),this.pos+=r}},t.prototype.encodeObject=function(e,i){var n=this.extensionCodec.tryToEncode(e,this.context);if(n!=null)this.encodeExtension(n);else if(Array.isArray(e))this.encodeArray(e,i);else if(ArrayBuffer.isView(e))this.encodeBinary(e);else if(typeof e=="object")this.encodeMap(e,i);else throw new Error("Unrecognized object: ".concat(Object.prototype.toString.apply(e)))},t.prototype.encodeBinary=function(e){var i=e.byteLength;if(i<256)this.writeU8(196),this.writeU8(i);else if(i<65536)this.writeU8(197),this.writeU16(i);else if(i<4294967296)this.writeU8(198),this.writeU32(i);else throw new Error("Too large binary: ".concat(i));var n=Tt(e);this.writeU8a(n)},t.prototype.encodeArray=function(e,i){var n=e.length;if(n<16)this.writeU8(144+n);else if(n<65536)this.writeU8(220),this.writeU16(n);else if(n<4294967296)this.writeU8(221),this.writeU32(n);else throw new Error("Too large array: ".concat(n));for(var r=0,s=e;r1&&(i=1),i=Math.round(i*100)/100,!(Math.random()>i)&&(this.queue.push({event:yield this.enrich(e,i),url:qe(this.url,this.ctx)}),this.window.document.dispatchEvent(new CustomEvent(this.eventNameSpace,{detail:{event:e}})),this.next()))})}next(){const e=this.queue.shift();if(!e)return;const i=Nt(ae(S({},e.event),{from:this.application})),n=new Blob([i],{type:"application/msgpack"});navigator.sendBeacon(e.url,n)}}const Ct=fe("%cmissena-mosquito:");function Ot(t,e){var n;const i=t.native;return i.kind=A.NATIVE,i.commission={type:"cpm",currency:(n=t.currency)!=null?n:"EUR",value:t.cpm},i.ids=e,i}function Rt(t,e,i={}){var r;if(!("mediaType"in e))return e;const n={type:"cpm",currency:(r=e.currency)!=null?r:"EUR",value:e.cpm};switch(e.mediaType){case"video":return{commission:n,kind:A.VIDEO,vastImpUrl:e.vastImpUrl,vastUrl:e.vastUrl,vastXml:e.vastXml,ids:i};case"native":return Ot(e,i);case"banner":return{kind:A.BANNER,ad:e.ad,width:e.width,height:e.height,commission:n,ids:i}}}function Bt(t){return t.replace(/[^\.]+(\.*)/,`${new Date().getTime()}$1`)}function _e(t,e){const i=F();if(!i.__tcfapi){e();return}i.__tcfapi("addEventListener",2,function(n,r){!r||!["tcloaded","useractioncomplete"].includes(n==null?void 0:n.eventStatus)||(i.__tcfapi("removeEventListener",2,()=>{},n.listenerId),t(n))})}class Dt extends _t{adsuccess(e){this.log({name:"adsuccess",parameters:{provider:e}})}bidsuccess(e){this.log({name:"bidsuccess",parameters:e})}consent(){_e(e=>{Ct({missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor.consents[687],tcData:e}),this.log({name:"consent",parameters:{applies:e.gdprApplies,missing_purpose:!e.purpose.consents[1],missing_vendor:!e.vendor.consents[687],string:e.tcString}})},()=>{this.log({name:"consent",parameters:{applies:!1}})})}debug(e){this.log({name:"log",parameters:{label:e}})}timeout(e){e!="missena"&&Math.random()>=.99&&this.log({name:"timeout",parameters:{bidder:e}})}}function kt(t){try{return window.top[t]}catch(e){return window[t]}}function Ce(t){return t.environment==q.EDGE||t.environment==q.PRODUCTION}const Pt={native:{title:{required:!0,len:50},sponsoredBy:{required:!0},image:{required:!0,sendId:!0,sizes:[170,170]},icon:{required:!1,sendId:!0,sizes:[50,50]},price:{required:!1},privacyLink:{required:!1,sendId:!0},clickUrl:{required:!0,sendId:!0}}},Vt={video:{playerSize:[640,480],context:"outstream",mimes:["video/mp4"],maxduration:30,api:[1,2],protocols:[2,3],skip:0,playbackmethod:[1],placement:2}},Oe={banner:{sizes:[[300,250]]}};function Re(t,e,i,n={}){const r=`msna-${e}`,s=new URLSearchParams(t.window.location.search).get("bidule_sample"),o={ext:{ae:1}};return{[m.Bidule]:{code:r,bids:[{bidder:"missena",params:{placement:e,apiKey:t.apiKey,baseUrl:Ce(t)?"":t.bidderUrl,custom:{providerName:m.Bidule},sample:s,isInternal:!0}}],mediaTypes:Oe},[m.CriteoPrebidBanner]:{code:r,bids:[{bidder:"criteo",params:S({pubid:"IPB3NX",custom:{providerName:m.CriteoPrebidBanner},networkId:10593,publisherSubId:`${t.apiKey}:${m.CriteoPrebidBanner}`},n)}],mediaTypes:Oe,ortb2Imp:o},[m.CriteoPrebidNative]:{code:r,bids:[{bidder:"criteo",params:S({pubid:"IPB3NX",custom:{providerName:m.CriteoPrebidNative},networkId:10593,publisherSubId:`${t.apiKey}:${m.CriteoPrebidNative}`},n)}],mediaTypes:Pt,ortb2Imp:o},[m.CriteoPrebidVideo]:{code:r,bids:[{bidder:"criteo",params:S({pubid:"IPB3NX",custom:{providerName:m.CriteoPrebidVideo},publisherSubId:`${t.apiKey}:${m.CriteoPrebidVideo}`},n)}],mediaTypes:Vt,ortb2Imp:o}}[i]}function zt(t,e){const i=e.publisher.blockedProviders;return e.formats.reduce((n,r)=>{const s=r.name.split("-")[0],o=r.providers.reduce((f,l)=>{if(i.includes(l.name))return f;const g=Re(t,s,l.name,l.settings);return g?[...f,g]:f},[]);return[...n,...o]},[])}function Mt(t,e){return t.find(n=>{var r;return n.code==e.adUnitCode&&((r=n.bids[0])==null?void 0:r.bidder)==e.bidder&&n.mediaTypes.hasOwnProperty(e.mediaType)}).bids[0].params.custom}function Lt(t,e,i){return e.formats.reduce((n,r)=>{const s=r.name.split("-")[0],o=r.providers.reduce((f,l)=>{if(!i.includes(l.name))return f;const g=Re(t,s,l.name,l.settings);return g?[...f,g]:f},[]);return[...n,...o]},[])}const me={except:zt,findCustomData:Mt,only:Lt};class Kt{constructor(e){y(this,te);y(this,ie);y(this,G);y(this,ne);y(this,re);y(this,Y);y(this,M);y(this,B);y(this,se);y(this,L);y(this,N);y(this,oe);y(this,h,void 0);y(this,U,void 0);y(this,d,void 0);y(this,R,void 0);y(this,V,void 0);y(this,z,void 0);y(this,T,void 0);var r;const i=fe(),n=F();n.__MISSENA__=ae(S({renderers:{},referer:n.location.href},(r=n.__MISSENA__)!=null?r:{}),{log:i,window:n}),_(this,h,e),_(this,U,`msna-${a(this,h).placement}`),_(this,d,n.__MISSENA__),_(this,R,i),_(this,V,n.document.head||n.document.getElementsByTagName("head")[0]),_(this,T,n),e.formats.push({mediaType:"banner",name:`${e.placement}-banner`,providers:[{name:m.Bidule}]}),i(e)}run(){a(this,T).__msna_loaded||(a(this,T).__msna_loaded==!0,_e(w(this,Y,ye).bind(this),w(this,Y,ye).bind(this)))}}h=new WeakMap,U=new WeakMap,d=new WeakMap,R=new WeakMap,V=new WeakMap,z=new WeakMap,T=new WeakMap,te=new WeakSet,De=function(){const e=new URLSearchParams(a(this,T).location.search).getAll("msna_provider");return e.length==0?me.except(a(this,d),a(this,h)):me.only(a(this,d),a(this,h),e)},ie=new WeakSet,ke=function(){return E(this,null,function*(){const{error:e,pbjs:i}=yield w(this,se,ze).call(this);if(a(this,h).settings.disable_prebid){const{error:s,recommendation:o}=yield xe(a(this,d));if(s){console.error("[missena] error while loading outbrain:",s.message),w(this,B,Q).call(this);return}if(!o){w(this,B,Q).call(this);return}w(this,M,de).call(this,o,m.Outbrain,O.STICKY,i.getUserIdsAsEids());return}if(e){console.error("[missena] error while loading prebid:",e.message),w(this,N,K).call(this).debug("mosquito.pbjs.failed");return}i.processQueue(),i.bidderSettings={criteo:S({storageAllowed:!0},a(this,h).publisher.isNet&&{bidCpmAdjustment:s=>s*.6}),missena:{storageAllowed:!0}},i.setConfig(ae(S({},nt),{floors:{data:{default:a(this,h).publisher.floor,currency:a(this,h).publisher.floorCurrency,schema:{fields:["mediaType"]}}}}));const n=!Ce(a(this,d))||i.getConfig().debug;i.setConfig({debug:n}),i.setBidderConfig({bidders:["criteo"],config:{fledgeEnabled:!0}});const r=w(this,te,De).call(this);i.removeAdUnit(a(this,U)),i.addAdUnits(r),a(this,R).call(this,"Added adUnits",r),i.enableAnalytics([{provider:"atsAnalytics",options:{pid:"13964"}}]),i.onEvent("bidTimeout",s=>{s.filter(o=>o.adUnitCode==a(this,U)).forEach(o=>w(this,N,K).call(this).timeout(o.bidder))}),w(this,G,ge).call(this,i)})},G=new WeakSet,ge=function(e){return E(this,null,function*(){e.requestBids({adUnitCodes:[a(this,U)],bidsBackHandler:()=>E(this,null,function*(){const i=e.getUserIdsAsEids(),n=e.getHighestCpmBids(a(this,U))[0];if(!n){const{error:s,recommendation:o}=yield xe(a(this,d),a(this,h).publisher.blockedProviders);if(s){console.error("[missena] error while loading outbrain:",s.message),w(this,B,Q).call(this);return}if(!o){w(this,B,Q).call(this);return}w(this,M,de).call(this,o,m.Outbrain,a(this,h).placement,i);return}const r=me.findCustomData(e.adUnits,n);if(a(this,R).call(this,"winner, ids & provider",{ids:i,customData:r,winner:n}),r.providerName==m.Bidule){const s=document.createElement("iframe");s.frameBorder="0",document.body.appendChild(s);const o=s.contentWindow.document;e.renderAd(o,n.adId);return}w(this,M,de).call(this,n,r.providerName,n.adUnitCode.substring(5),i)})}),(a(this,h).placement==O.STICKY||a(this,h).placement==O.SKINCORNER)&&a(this,d).settings.auctionRefresh&&setTimeout(()=>{a(this,d).settings.auctionRefresh&&w(this,G,ge).call(this,e)},a(this,h).settings.auctionRefresh*1e3)})},ne=new WeakSet,Pe=function(){const e=w(this,L,ce).bind(this),i=a(this,T);if(i.msnaHandleHistory)return;i.msnaHandleHistory=!0;function n(r){return function(){var s=r.apply(this,arguments);return i.dispatchEvent(new Event("contentchange")),s}}i.history.pushState=n(i.history.pushState),i.history.replaceState=n(i.history.replaceState),i.addEventListener("popstate",()=>{i.dispatchEvent(new Event("contentchange"))}),i.addEventListener("contentchange",()=>{e({isClientSide:!0,minDuration:1e3})})},re=new WeakSet,Ve=function(){var i,n;const e=(i=a(this,d).settings.block)!=null?i:{};if(e.type==="domain"){const r=((n=kt("location"))==null?void 0:n.hostname)||"";return(e.domains||[]).some(s=>s==r)}return e.type==="device"},Y=new WeakSet,ye=function(e,i){return E(this,null,function*(){var n;if(tt({placement:a(this,h).placement,publisher:a(this,h).publisher.apiKey,capping:a(this,h).settings.capping,tcData:i?void 0:e,referer:(n=a(this,h).settings.capping)!=null&&n.closePerPage?a(this,d).referer:void 0})){if(a(this,d).adServerUrl=a(this,h).adServerUrl,a(this,d).apiKey=a(this,h).publisher.apiKey,a(this,d).baseUrl=a(this,h).baseUrl,a(this,d).bidderUrl=a(this,h).bidderUrl,a(this,d).device=a(this,h).device,a(this,d).environment=a(this,h).environment,a(this,d).idempotencyKey=a(this,h).idempotencyKey,a(this,d).sentryEnabled=a(this,h).publisher.sentryEnabled,a(this,d).settings=a(this,h).settings,a(this,d).tcData=e,a(this,d).slots={},a(this,d).stopRefresh=()=>{delete a(this,d).settings.auctionRefresh},w(this,ne,Pe).call(this),w(this,N,K).call(this).consent(),w(this,re,Ve).call(this)){a(this,R).call(this,"script blocked");return}w(this,ie,ke).call(this)}})},M=new WeakSet,de=function(s,o,f){return E(this,arguments,function*(e,i,n,r=[]){a(this,d).passback=w(this,L,ce).bind(this);const l=`${n}-${e.mediaType||"native"}`,g=w(this,oe,Me).call(this,e.adUnitCode||a(this,U),Rt(a(this,d),e,r),i,e.requestId,l);w(this,N,K).call(this).adsuccess(i),w(this,N,K).call(this).bidsuccess({provider:i,commission:{cpm:e.cpm,currency:e.currency},eids:r.map(D=>D.source)}),We(a(this,d),g)})},B=new WeakSet,Q=function(){a(this,T).document.dispatchEvent(new CustomEvent("missena.event",{detail:{event:{name:"passback"}}})),new Function(a(this,h).publisher.passback)()},se=new WeakSet,ze=function(){return E(this,null,function*(){if(a(this,d).window.msnaPbjs)return{pbjs:a(this,d).window.msnaPbjs};try{yield p(`${a(this,h).baseUrl}/prebid.js`,{},a(this,V))}catch(e){return{error:e}}return{pbjs:a(this,d).window.msnaPbjs}})},L=new WeakSet,ce=function(e,i={isClientSide:!1,minDuration:1e4}){var o;const n=a(this,d).slots[e];if(!((n==null?void 0:n.displayedAt)&&Date.now()-n.displayedAt>i.minDuration))return!1;delete n.displayedAt,delete a(this,T).__msna_loaded,delete n.data,(o=n.remove)==null||o.call(n);const s=new URL(a(this,d).adServerUrl);return s.searchParams.set("t",a(this,d).apiKey),i.isClientSide?(s.searchParams.set("cs","1"),s.searchParams.set("ik",Bt(a(this,d).idempotencyKey))):s.searchParams.set("ik",a(this,d).idempotencyKey),p(s.toString(),{},a(this,V)),!0},N=new WeakSet,K=function(){return a(this,z)||_(this,z,new Dt({appName:"mosquito",ctx:a(this,d)})),a(this,z)},oe=new WeakSet,Me=function(e,i,n,r,s=v.STICKY_NATIVE){var f,l;const o={adUnitCode:e,data:i,format:s,settings:(f=a(this,h).formats.find(g=>g.name==s))==null?void 0:f.settings,provider:n,meta:{requestId:r},reload:g=>{w(this,L,ce).call(this,e,g)},remove:()=>{},track:()=>{}};return(l=a(this,d).slots[e])==null||l.remove(),a(this,d).slots[e]=o,o};function $t(t){return E(this,null,function*(){new Kt(t).run()})}return $t}); _M_({adServerUrl:"https://ad.missena.io/?t=PA-26819573",baseUrl:"https://chat.missena.io",bidderUrl:"https://bid.missena.io",device:"bot",environment:"edge",formats:[{"renderer":"sticky-banner","mediaType":"banner","name":"sticky-banner","settings":{"afterDisplay":"","plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"triggers":{"desktop":[],"mobile":[],"webview":[]}},"providers":[{"name":"criteo-prebid-banner"}]},{"renderer":"sticky-native","mediaType":"native","name":"sticky-native","settings":{"afterDisplay":"","behavior":{"adyoulike":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"criteo-prebid-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"improvedigital-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"magnite-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"outbrain":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"pubmatic-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"smart-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"xandr-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"}},"bubbleBkgColor":"#fff","bubbleHitbox":90,"bubbleSize":80,"countdown":6.5,"crossVariant":"bottom_left","headerBkgColor":"#1d242b","notification":1,"plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"previewBkgColor":"#0362E3","previewTimeout":8,"showMenu":true,"triggers":{"desktop":[],"mobile":[],"webview":[]}},"providers":[{"name":"outbrain"},{"name":"criteo-prebid-native","settings":{"zoneId":1628646}}]},{"renderer":"sticky-video","mediaType":"video","name":"sticky-video","settings":{"afterDisplay":"","behavior":{},"bubbleBkgColor":"#fff","bubbleHitbox":90,"bubbleSize":80,"crossVariant":"bottom_left","notification":1,"plugins":[],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"148px","right":"0px"}},"previewBkgColor":"#0362E3","previewTimeout":8,"triggers":{"desktop":[],"mobile":[],"webview":[]}},"providers":[{"name":"criteo-prebid-video","settings":{"zoneId":1628860}}]}],idempotencyKey:"1730565163.csj58ao7nhsc738ru2ig",now:1730565163000,placement:"sticky",publisher:{"apiKey":"PA-26819573","blockedProviders":[],"floor":0,"floorCurrency":"EUR","passback":"","sentryEnabled":false},settings:{},syncopeUrl:"https://sync.missena.io"});})();