(function () {(function(f,u){typeof exports=="object"&&typeof module!="undefined"?module.exports=u():typeof define=="function"&&define.amd?define(u):(f=typeof globalThis!="undefined"?globalThis:f||self,f._M_=u())})(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=(f,u,p)=>u in f?qt(f,u,{enumerable:!0,configurable:!0,writable:!0,value:p}):f[u]=p,T=(f,u)=>{for(var p in u||(u={}))Ht.call(u,p)&&we(f,p,u[p]);if(Be)for(var p of Be(u))Xt.call(u,p)&&we(f,p,u[p]);return f},ae=(f,u)=>Ft(f,Wt(u));var k=(f,u,p)=>(we(f,typeof u!="symbol"?u+"":u,p),p),ve=(f,u,p)=>{if(!u.has(f))throw TypeError("Cannot "+p)};var a=(f,u,p)=>(ve(f,u,"read from private field"),p?p.call(f):u.get(f)),y=(f,u,p)=>{if(u.has(f))throw TypeError("Cannot add the same private member more than once");u instanceof WeakSet?u.add(f):u.set(f,p)},_=(f,u,p,I)=>(ve(f,u,"write to private field"),I?I.call(f,p):u.set(f,p),p);var w=(f,u,p)=>(ve(f,u,"access private method"),p);var E=(f,u,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(f,u)).next())});var h,U,c,R,V,z,S,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 f(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! load-script2. MIT License. Feross Aboukhadijeh */var u=function(e,i,n){return new Promise((r,o)=>{const s=document.createElement("script");s.async=!0,s.src=e;for(const[l,g]of Object.entries(i||{}))s.setAttribute(l,g);s.onload=()=>{s.onerror=s.onload=null,r(s)},s.onerror=()=>{s.onerror=s.onload=null,o(new Error(`Failed to load ${e}`))},(n||document.head||document.getElementsByTagName("head")[0]).appendChild(s)})};const p=f(u),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,o)=>{const s=document.createElement("script");s.async=!0,s.src=e;for(const[l,g]of Object.entries(i||{}))s.setAttribute(l,g);s.onload=()=>{s.onerror=s.onload=null,r(s)},s.onerror=()=>{s.onerror=s.onload=null,o(new Error(`Failed to load ${e}`))},(n||document.head||document.getElementsByTagName("head")[0]).appendChild(s)})};const $e=f(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,o])=>{o===!0?n.searchParams.set(r,"1"):o&&n.searchParams.set(r,o)}),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,o,s,d;(r=t.log)==null||r.call(t,"renderSlot",e);const i=t.window.document,n=i.head||i.getElementsByTagName("head")[0];if(t.shownAds=(o=t.shownAds)!=null?o:[],e.meta.requestId=(s=e.meta.requestId)!=null?s:Fe(),e.settings=T(T({},Le[e.format]),e.settings),!t.shownAds.includes(e.meta.requestId)){if(typeof t.renderers[e.format]=="function"){(d=t.log)==null||d.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,o;return i||((o=(r=t.window[n])==null?void 0:r.installedModules)==null?void 0:o.includes("fledgeForGpt"))},!1)}catch(i){return!1}}const H=fe("%cmissena-capper:");function Ie(t,e,i,n=void 0){const o=F().document;function s(d){var g,D,J;(((D=(g=d==null?void 0:d.detail)==null?void 0:g.event)==null?void 0:D.name)||"").startsWith(e)&&(H("missena.event: ",(J=d==null?void 0:d.detail)==null?void 0:J.event),o.removeEventListener("missena.event",s),e.includes("postitial")?x(C(e,t),i):Z(C(e,t),i,n))}o.addEventListener("missena.event",s),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):o==O.STICKY&&!(Qe(i,e==null?void 0:e.display)&&Ge(i,e==null?void 0:e.close,r))?(H("sticky"),!1):o==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(),o=(l=r.response)==null?void 0:l.documents;if(!o)return Promise.resolve({error:new Error("undefined documents")});if(!o.count||!o.doc)return Promise.resolve({error:new Error(`${o.count}/${o.total_count} ${JSON.stringify(o.doc)}`)});const s=o.doc[0],d=(g=s.thumbnail)==null?void 0:g.url;return Promise.resolve({recommendation:{clickUrl:s.url,icon:d,image:d,impressionTrackers:s.impression_pixels||s.pixels||[],kind:A.NATIVE,onViewed:s["on-viewed"]||[],price:"0",privacyLink:"",sponsoredBy:s.source_display_name,title:s.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(s>=55296&&s<=56319&&o>18&7|240,e[r++]=s>>12&63|128,e[r++]=s>>6&63|128):(e[r++]=s>>12&15|224,e[r++]=s>>6&63|128)}else{e[r++]=s;continue}e[r++]=s&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 o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},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 o=e/4294967296,s=e&4294967295,n=new Uint8Array(8),r=new DataView(n.buffer);return r.setUint32(0,i<<2|o&3),r.setUint32(4,s),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),o=e.getUint32(4),i=(r&3)*4294967296+o,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 o=1+i;this.builtInEncoders[o]=n,this.builtInDecoders[o]=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,o=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(T({},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}`,o=new URLSearchParams(t.window.location.search).get("bidule_sample"),s={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:o,isInternal:!0}}],mediaTypes:Oe},[m.CriteoPrebidBanner]:{code:r,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:m.CriteoPrebidBanner},networkId:10593,publisherSubId:`${t.apiKey}:${m.CriteoPrebidBanner}`},n)}],mediaTypes:Oe,ortb2Imp:s},[m.CriteoPrebidNative]:{code:r,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:m.CriteoPrebidNative},networkId:10593,publisherSubId:`${t.apiKey}:${m.CriteoPrebidNative}`},n)}],mediaTypes:Pt,ortb2Imp:s},[m.CriteoPrebidVideo]:{code:r,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:m.CriteoPrebidVideo},publisherSubId:`${t.apiKey}:${m.CriteoPrebidVideo}`},n)}],mediaTypes:Vt,ortb2Imp:s}}[i]}function zt(t,e){const i=e.publisher.blockedProviders;return e.formats.reduce((n,r)=>{const o=r.name.split("-")[0],s=r.providers.reduce((d,l)=>{if(i.includes(l.name))return d;const g=Re(t,o,l.name,l.settings);return g?[...d,g]:d},[]);return[...n,...s]},[])}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 o=r.name.split("-")[0],s=r.providers.reduce((d,l)=>{if(!i.includes(l.name))return d;const g=Re(t,o,l.name,l.settings);return g?[...d,g]:d},[]);return[...n,...s]},[])}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,c,void 0);y(this,R,void 0);y(this,V,void 0);y(this,z,void 0);y(this,S,void 0);var r;const i=fe(),n=F();n.__MISSENA__=ae(T({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,c,n.__MISSENA__),_(this,R,i),_(this,V,n.document.head||n.document.getElementsByTagName("head")[0]),_(this,S,n),e.formats.push({mediaType:"banner",name:`${e.placement}-banner`,providers:[{name:m.Bidule}]}),i(e)}run(){a(this,S).__msna_loaded||(a(this,S).__msna_loaded==!0,_e(w(this,Y,ye).bind(this),w(this,Y,ye).bind(this)))}}h=new WeakMap,U=new WeakMap,c=new WeakMap,R=new WeakMap,V=new WeakMap,z=new WeakMap,S=new WeakMap,te=new WeakSet,De=function(){const e=new URLSearchParams(a(this,S).location.search).getAll("msna_provider");return e.length==0?me.except(a(this,c),a(this,h)):me.only(a(this,c),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:d}=yield xe(a(this,c));if(s){console.error("[missena] error while loading outbrain:",s.message),w(this,B,Q).call(this);return}if(!d){w(this,B,Q).call(this);return}w(this,M,de).call(this,d,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:T({storageAllowed:!0},a(this,h).publisher.isNet&&{bidCpmAdjustment:s=>s*.6}),missena:{storageAllowed:!0}},i.setConfig(ae(T({},nt),{floors:{data:{default:a(this,h).publisher.floor,currency:a(this,h).publisher.floorCurrency,schema:{fields:["mediaType"]}}}}));const n=!Ce(a(this,c))||i.getConfig().debug;let r={};a(this,h).publisher.apiKey==="PA-98473564"&&(r={s2sConfig:{accountId:"1",enabled:!0,bidders:["missena"],timeout:1e3,endpoint:"https://prebid.missena.io/openrtb2/auction"}}),i.setConfig(T({debug:n},r)),i.setBidderConfig({bidders:["criteo"],config:{fledgeEnabled:!0}});const o=w(this,te,De).call(this);i.removeAdUnit(a(this,U)),i.addAdUnits(o),a(this,R).call(this,"Added adUnits",o),i.enableAnalytics([{provider:"atsAnalytics",options:{pid:"13964"}}]),i.onEvent("bidTimeout",s=>{s.filter(d=>d.adUnitCode==a(this,U)).forEach(d=>w(this,N,K).call(this).timeout(d.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:o,recommendation:s}=yield xe(a(this,c),a(this,h).publisher.blockedProviders);if(o){console.error("[missena] error while loading outbrain:",o.message),w(this,B,Q).call(this);return}if(!s){w(this,B,Q).call(this);return}w(this,M,de).call(this,s,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 o=document.createElement("iframe");o.frameBorder="0",document.body.appendChild(o);const s=o.contentWindow.document;e.renderAd(s,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,c).settings.auctionRefresh&&setTimeout(()=>{a(this,c).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,S);if(i.msnaHandleHistory)return;i.msnaHandleHistory=!0;function n(r){return function(){var o=r.apply(this,arguments);return i.dispatchEvent(new Event("contentchange")),o}}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,c).settings.block)!=null?i:{};if(e.type==="domain"){const r=((n=kt("location"))==null?void 0:n.hostname)||"";return(e.domains||[]).some(o=>o==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,c).referer:void 0})){if(a(this,c).adServerUrl=a(this,h).adServerUrl,a(this,c).apiKey=a(this,h).publisher.apiKey,a(this,c).baseUrl=a(this,h).baseUrl,a(this,c).bidderUrl=a(this,h).bidderUrl,a(this,c).device=a(this,h).device,a(this,c).environment=a(this,h).environment,a(this,c).idempotencyKey=a(this,h).idempotencyKey,a(this,c).sentryEnabled=a(this,h).publisher.sentryEnabled,a(this,c).settings=a(this,h).settings,a(this,c).tcData=e,a(this,c).slots={},a(this,c).stopRefresh=()=>{delete a(this,c).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(o,s,d){return E(this,arguments,function*(e,i,n,r=[]){a(this,c).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,c),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,c),g)})},B=new WeakSet,Q=function(){a(this,S).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,c).window.msnaPbjs)return{pbjs:a(this,c).window.msnaPbjs};try{yield p(`${a(this,h).baseUrl}/prebid.js`,{},a(this,V))}catch(e){return{error:e}}return{pbjs:a(this,c).window.msnaPbjs}})},L=new WeakSet,ce=function(e,i={isClientSide:!1,minDuration:1e4}){var s;const n=a(this,c).slots[e];if(!((n==null?void 0:n.displayedAt)&&Date.now()-n.displayedAt>i.minDuration))return!1;delete n.displayedAt,delete a(this,S).__msna_loaded,delete n.data,(s=n.remove)==null||s.call(n);const o=new URL(a(this,c).adServerUrl);return o.searchParams.set("t",a(this,c).apiKey),i.isClientSide?(o.searchParams.set("cs","1"),o.searchParams.set("ik",Bt(a(this,c).idempotencyKey))):o.searchParams.set("ik",a(this,c).idempotencyKey),p(o.toString(),{},a(this,V)),!0},N=new WeakSet,K=function(){return a(this,z)||_(this,z,new Dt({appName:"mosquito",ctx:a(this,c)})),a(this,z)},oe=new WeakSet,Me=function(e,i,n,r,o=v.STICKY_NATIVE){var d,l;const s={adUnitCode:e,data:i,format:o,settings:(d=a(this,h).formats.find(g=>g.name==o))==null?void 0:d.settings,provider:n,meta:{requestId:r},reload:g=>{w(this,L,ce).call(this,e,g)},remove:()=>{},track:()=>{}};return(l=a(this,c).slots[e])==null||l.remove(),a(this,c).slots[e]=s,s};function $t(t){return E(this,null,function*(){new Kt(t).run()})}return $t}); _M_({adServerUrl:"https://ad.missena.io/?ik=20200619003229.JrueVBYdBkQ7PuuVX7AuhnYO1xfwQyQb&skip%5B%5D=00000000-0000-0000-0000-000000000000&t=PA-61125237",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":{"plugins":[{"a":15,"t":"SelfDestruct"}],"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"90px","right":"0px"}}},"providers":[{"name":"criteo-prebid-native","settings":{"zoneId":1628646}},{"name":"outbrain"}]},{"renderer":"sticky-video","mediaType":"video","name":"sticky-video","settings":{"position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"80px","right":"0px"}}},"providers":[{"name":"criteo-prebid-video","settings":{"zoneId":1628860}}]}],idempotencyKey:"20200619003229.JrueVBYdBkQ7PuuVX7AuhnYO1xfwQyQb",now:1732400506000,placement:"sticky",publisher:{"apiKey":"PA-61125237","blockedProviders":["wmg-google-video","wmg-pubmatic-video","wmg-pubmatic-native"],"floor":0,"floorCurrency":"EUR","passback":"","sentryEnabled":false},settings:{"auctionRefresh":15},syncopeUrl:"https://sync.missena.io"});})();