(function () {(function(p,c){typeof exports=="object"&&typeof module!="undefined"?module.exports=c():typeof define=="function"&&define.amd?define(c):(p=typeof globalThis!="undefined"?globalThis:p||self,p._M_=c())})(this,function(){"use strict";var zt=Object.defineProperty,Lt=Object.defineProperties;var Kt=Object.getOwnPropertyDescriptors;var xe=Object.getOwnPropertySymbols;var $t=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var Ne=p=>{throw TypeError(p)};var ae=(p,c,l)=>c in p?zt(p,c,{enumerable:!0,configurable:!0,writable:!0,value:l}):p[c]=l,T=(p,c)=>{for(var l in c||(c={}))$t.call(c,l)&&ae(p,l,c[l]);if(xe)for(var l of xe(c))qt.call(c,l)&&ae(p,l,c[l]);return p},Q=(p,c)=>Lt(p,Kt(c));var B=(p,c,l)=>ae(p,typeof c!="symbol"?c+"":c,l),de=(p,c,l)=>c.has(p)||Ne("Cannot "+l);var a=(p,c,l)=>(de(p,c,"read from private field"),l?l.call(p):c.get(p)),U=(p,c,l)=>c.has(p)?Ne("Cannot add the same private member more than once"):c instanceof WeakSet?c.add(p):c.set(p,l),O=(p,c,l,D)=>(de(p,c,"write to private field"),D?D.call(p,l):c.set(p,l),l),g=(p,c,l)=>(de(p,c,"access private method"),l);var I=(p,c,l)=>new Promise((D,H)=>{var G=b=>{try{P(l.next(b))}catch(x){H(x)}},_=b=>{try{P(l.throw(b))}catch(x){H(x)}},P=b=>b.done?D(b.value):Promise.resolve(b.value).then(G,_);P((l=l.apply(p,c)).next())});var m,N,u,C,k,V,A,f,Ue,_e,ce,Oe,Ce,ue,Z,W,Re,j,M,Be;function p(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}/*! load-script2. MIT License. Feross Aboukhadijeh */var c,l;function D(){return l||(l=1,c=function(e,i,n){return new Promise((r,o)=>{const s=document.createElement("script");s.async=!0,s.src=e;for(const[h,E]of Object.entries(i||{}))s.setAttribute(h,E);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)})}),c}var H=D();const G=p(H),_=localStorage;function P(t,e,i){De(t,b(t)+1,e,i)}function b(t,e){t=`missena.${t}`;const 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?(_.removeItem(t),0):typeof n.value=="number"?n.value:0}function x(...t){return["missena","capper"].concat(t).join(".")}function De(t,e,i,n){t=`missena.${t}`;const r=new Date().getTime()+i*1e3;_.setItem(t,JSON.stringify({value:e,expiry:r,referer:n}))}function ke(t,e){t=`missena.${t}`;const 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)&&(_.removeItem(t),r={value:0,expiry:n}),r.value+=1,_.setItem(t,JSON.stringify(r))}var z=(t=>(t.BANNER="BANNER",t.NATIVE="NATIVE",t.VIDEO="VIDEO",t))(z||{}),S=(t=>(t.STICKY="sticky",t.PRESTITIAL="prestitial",t.POSTITIAL="postitial",t.HEADER="header",t.FOOTER="footer",t.SKINCORNER="skincorner",t.FOOTERMAX="footermax",t))(S||{}),w=(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.FOOTERMAX_BANNER="footermax-banner",t.FOOTERMAX_NATIVE="footermax-native",t.FOOTERMAX_VIDEO="footermax-video",t))(w||{}),L=(t=>(t.LOCAL="local",t.STAGING="staging",t.PRODUCTION="production",t.EDGE="edge",t))(L||{}),fe=(t=>(t.AMP="amp",t.Bot="bot",t.Desktop="desktop",t.Mobile="mobile",t.Tablet="tablet",t.Webview="webview",t))(fe||{}),v=(t=>(t.Adyoulike="adyoulike",t.Bidule="bidule",t.CriteoCDB="criteo-cdb",t.CriteoNative="criteo-native",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))(v||{});const Ve={[w.STICKY_BANNER]:{zoomAreaMin:100*85,zoomAreaDefault:150*125,zoomAreaFull:300*250*.5625,position:{mobile:{right:"0px",bottom:"148px"},desktop:{right:"0px",bottom:"0px"}}},[w.STICKY_NATIVE]:{behavior:{[v.Outbrain]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.Adyoulike]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.SmartNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.XandrNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.MagniteNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.PubmaticNative]:{onClick:"redirect",onSwipe:"popup",countdown:3},[v.CriteoNative]:{onClick:"popup",onSwipe:"popup",countdown:6.5},[v.CriteoPrebidNative]:{onClick:"popup",onSwipe:"popup",countdown:6.5},[v.ImproveDigitalNative]:{onClick:"redirect",onSwipe:"popup",countdown:3}},position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},bubbleBkgColor:"#fff",bubbleHitbox:90,bubbleSize:80,countdown:6.5,crossVariant:"bottom_left",headerBkgColor:"#1d242b",notification:1,previewBkgColor:"#0362E3",previewTimeout:8,showMenu:!0},[w.STICKY_VIDEO]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},bubbleSize:80,bubbleHitbox:90,crossVariant:"bottom_left",swipeToFullscreen:!0,behavior:{}},[w.PRESTITIAL_BANNER]:{zoomAreaMin:100*85,zoomAreaDefault:150*125,zoomAreaFull:300*250*.5625,countdown:5e3,hasCTA:!0,position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[w.PRESTITIAL_NATIVE]:{crossVariant:"top_right_big",minimizeIcon:"close_fullscreen",position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},countdown:5,showCountdown:!1},[w.PRESTITIAL_VIDEO]:{bubbleSize:80,bubbleHitbox:90,swipeToFullscreen:!0,crossVariant:"top_right_big",position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}},behavior:{},variant:"rotated"},[w.POSTITIAL_BANNER]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[w.POSTITIAL_NATIVE]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[w.POSTITIAL_VIDEO]:{position:{desktop:{bottom:"0px",right:"0px"},mobile:{bottom:"148px",right:"0px"}}},[w.HEADER_BANNER]:{width:320,height:121,offset:56,zIndex:2147483647},[w.HEADER_NATIVE]:{width:320,height:121,offset:56,zIndex:2147483647},[w.HEADER_VIDEO]:{width:320,height:121,offset:56,zIndex:2147483647},[w.FOOTER_BANNER]:{width:320,height:100,offset:0,zIndex:2147483647},[w.FOOTER_NATIVE]:{width:320,height:100,offset:0,bgColor:"#fff",zIndex:2147483647},[w.FOOTER_VIDEO]:{width:320,height:100,offset:0,zIndex:2147483647},[w.FOOTERMAX_BANNER]:{width:320,height:90,offset:0,zIndex:2147483647},[w.FOOTERMAX_NATIVE]:{width:320,height:90,offset:0,zIndex:2147483647},[w.FOOTERMAX_VIDEO]:{width:320,height:90,offset:0,zIndex:2147483647},[w.SKINCORNER_BANNER]:{adapter:"",selector:""},[w.SKINCORNER_NATIVE]:{adapter:"",selector:""}};w.STICKY_BANNER+"",w.PRESTITIAL_BANNER+"",w.POSTITIAL_BANNER+"",w.HEADER_BANNER+"",w.FOOTER_BANNER+"",w.SKINCORNER_BANNER+"";/*! load-script2. MIT License. Feross Aboukhadijeh */var ee,pe;function Me(){return pe||(pe=1,ee=function(e,i,n){return new Promise((r,o)=>{const s=document.createElement("script");s.async=!0,s.src=e;for(const[h,E]of Object.entries(i||{}))s.setAttribute(h,E);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)})}),ee}var Pe=Me();const ze=p(Pe),te=()=>{};function Le(t,e){const i={amp:e.device===fe.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 ie(t="%cmissena-debug:",e="color:#FFF; background-color:red; padding:3px;border-radius:3px;"){const i=K();try{const n=i.localStorage.getItem("__missena_debug")||i.hasOwnProperty("displayMissenaInfo"),r=i.displayMissenaInfo||te;return n?function(){if(arguments.length==3){r(...arguments);return}console.log(t,e,...arguments)}:te}catch(n){return te}}function K(){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 y=[],$=0;$<256;$++)y[$]=($<16?"0":"")+$.toString(16);function Ke(){var t=crypto.getRandomValues(new Uint8Array(16));return t[6]=t[6]&15|64,t[8]=t[8]&63|128,y[t[0]]+y[t[1]]+y[t[2]]+y[t[3]]+"-"+y[t[4]]+y[t[5]]+"-"+y[t[6]]+y[t[7]]+"-"+y[t[8]]+y[t[9]]+"-"+y[t[10]]+y[t[11]]+y[t[12]]+y[t[13]]+y[t[14]]+y[t[15]]}function he(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(()=>he(t,e))}function $e(t,e){return I(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:Ke(),e.settings=T(T({},Ve[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}ze(`${t.baseUrl}/renderer-${e.format}.js`,{},n).then(()=>{he(t,e)})}})}function qe(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 q=ie("%cmissena-capper:");function le(t,e,i,n=void 0){const o=K().document;function s(d){var E,R,X;(((R=(E=d==null?void 0:d.detail)==null?void 0:E.event)==null?void 0:R.name)||"").startsWith(e)&&(q("missena.event: ",(X=d==null?void 0:d.detail)==null?void 0:X.event),o.removeEventListener("missena.event",s),e.includes("postitial")?ke(x(e,t),i):P(x(e,t),i,n))}o.addEventListener("missena.event",s),q("mounted listener for ",e)}const Fe="remove-bubble";function Xe(t,e,i){return e?b(x(Fe,t),i)==0:!0}const me="display-bubble",We=500,He=1;function Ge(t,e){return e?(e.duration=e.duration||We,e.max=e.max||He,le(t,me,e.duration),b(x(me,t))!n.purpose.consents[h])?(q("gdprApplies, NOT ALLOWED!"),!0):o==S.STICKY&&!(Ge(i,e==null?void 0:e.display)&&Xe(i,e==null?void 0:e.close,r))?(q("sticky"),!1):o==S.POSTITIAL&&!Je(i,e==null?void 0:e.postitial)?(q("postitial"),!1):!0:!0}function je(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}:${v.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 ve(i){return I(this,arguments,function*(t,e=[]){var h,E,R,X;if(e.includes(v.Outbrain))return Promise.resolve({});const r=yield(yield fetch(je(t))).json(),o=(h=r.response)==null?void 0:h.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=(E=s.thumbnail)==null?void 0:E.url;return Promise.resolve({recommendation:{clickUrl:s.url,icon:d,image:d,impressionTrackers:s.impression_pixels||s.pixels||[],kind:z.NATIVE,onViewed:s["on-viewed"]||[],price:"0",privacyLink:"",sponsoredBy:s.source_display_name,title:s.content,requestId:(X=(R=r.response)==null?void 0:R.request)==null?void 0:X.req_id}})})}const ge={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 Ee=4294967295;function et(t,e,i){var n=i/4294967296,r=i;t.setUint32(e,n),t.setUint32(e+4,r)}function ye(t,e,i){var n=Math.floor(i/4294967296),r=i;t.setUint32(e,n),t.setUint32(e+4,r)}function tt(t,e){var i=t.getInt32(e),n=t.getUint32(e+4);return i*4294967296+n}var ne,re,se,Y=(typeof process=="undefined"||((ne=process==null?void 0:process.env)===null||ne===void 0?void 0:ne.TEXT_ENCODING)!=="never")&&typeof TextEncoder!="undefined"&&typeof TextDecoder!="undefined";function be(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 F=Y?new TextEncoder:void 0,nt=Y?typeof process!="undefined"&&((re=process==null?void 0:process.env)===null||re===void 0?void 0:re.TEXT_ENCODING)!=="force"?200:0:Ee;function rt(t,e,i){e.set(F.encode(t),i)}function st(t,e,i){F.encodeInto(t,e.subarray(i))}var ot=F!=null&&F.encodeInto?st:rt;Y&&new TextDecoder,Y&&typeof process!="undefined"&&((se=process==null?void 0:process.env)===null||se===void 0||se.TEXT_DECODER);var J=function(){function t(e,i){this.type=e,this.data=i}return t}(),at=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)}}(),dt=function(t){at(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),ct=-1,ut=4294967296-1,ft=17179869184-1;function pt(t){var e=t.sec,i=t.nsec;if(e>=0&&i>=0&&e<=ft)if(i===0&&e<=ut){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),ye(r,4,e),n}}function ht(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 lt(t){if(t instanceof Date){var e=ht(t);return pt(e)}else return null}function mt(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=tt(e,4),n=e.getUint32(0);return{sec:i,nsec:n}}default:throw new dt("Unrecognized data size for timestamp (expected 4, 8, or 12): ".concat(t.length))}}function wt(t){var e=mt(t);return new Date(e.sec*1e3+e.nsec/1e6)}var vt={type:ct,encode:lt,decode:wt},gt=function(){function t(){this.builtInEncoders=[],this.builtInDecoders=[],this.encoders=[],this.decoders=[],this.register(vt)}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>nt){var r=be(e);this.ensureBufferSizeToWrite(i+r),this.writeStringHeader(r),ot(e,this.bytes,this.pos),this.pos+=r}else{var r=be(e);this.ensureBufferSizeToWrite(i+r),this.writeStringHeader(r),it(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=Et(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:Le(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=St(Q(T({},e.event),{from:this.application})),n=new Blob([i],{type:"application/msgpack"});navigator.sendBeacon(e.url,n)}}const xt=ie("%cmissena-mosquito:");function Nt(t,e){var n;const i=t.native;return i.kind=z.NATIVE,i.commission={type:"cpm",currency:(n=t.currency)!=null?n:"EUR",value:t.cpm},i.ids=e,i}function Ut(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:z.VIDEO,vastImpUrl:e.vastImpUrl,vastUrl:e.vastUrl,vastXml:e.vastXml,ids:i};case"native":return Nt(e,i);case"banner":return{kind:z.BANNER,ad:e.ad,width:e.width,height:e.height,commission:n,ids:i}}}function _t(t){return t.replace(/[^\.]+(\.*)/,`${new Date().getTime()}$1`)}function Ie(t,e){const i=K();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 Ot extends At{adsuccess(e){this.log({name:"adsuccess",parameters:{provider:e}})}bidsuccess(e){this.log({name:"bidsuccess",parameters:e})}consent(){Ie(e=>{xt({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 Ct(t){try{return window.top[t]}catch(e){return window[t]}}function Te(t){return t.environment==L.EDGE||t.environment==L.PRODUCTION}const Rt={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}}},Bt={video:{playerSize:[640,480],context:"outstream",mimes:["video/mp4"],maxduration:30,api:[1,2],protocols:[2,3],skip:0,playbackmethod:[1],placement:2}},Se={banner:{sizes:[[300,250]]}};function Ae(t,e,i,n={}){const r=`msna-${e}`,o=new URLSearchParams(t.window.location.search).get("bidule_sample"),s={ext:{ae:1}};return{[v.Bidule]:{code:r,bids:[{bidder:"missena",params:{placement:e,apiKey:t.apiKey,baseUrl:Te(t)?"":t.bidderUrl,custom:{providerName:v.Bidule},sample:o,isInternal:!0}}],mediaTypes:Se},[v.CriteoPrebidBanner]:{code:r,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:v.CriteoPrebidBanner},networkId:10593,publisherSubId:`${t.apiKey}:${v.CriteoPrebidBanner}`},n)}],mediaTypes:Se,ortb2Imp:s},[v.CriteoPrebidNative]:{code:r,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:v.CriteoPrebidNative},networkId:10593,publisherSubId:`${t.apiKey}:${v.CriteoPrebidNative}`},n)}],mediaTypes:Rt,ortb2Imp:s},[v.CriteoPrebidVideo]:{code:r,bids:[{bidder:"criteo",params:T({pubid:"IPB3NX",custom:{providerName:v.CriteoPrebidVideo},publisherSubId:`${t.apiKey}:${v.CriteoPrebidVideo}`},n)}],mediaTypes:Bt,ortb2Imp:s}}[i]}function Dt(t,e){const i=e.publisher.blockedProviders;return e.formats.reduce((n,r)=>{const o=r.name.split("-")[0],s=r.providers.reduce((d,h)=>{if(i.includes(h.name))return d;const E=Ae(t,o,h.name,h.settings);return E?[...d,E]:d},[]);return[...n,...s]},[])}function kt(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 Vt(t,e,i){return e.formats.reduce((n,r)=>{const o=r.name.split("-")[0],s=r.providers.reduce((d,h)=>{if(!i.includes(h.name))return d;const E=Ae(t,o,h.name,h.settings);return E?[...d,E]:d},[]);return[...n,...s]},[])}const oe={except:Dt,findCustomData:kt,only:Vt};class Mt{constructor(e){U(this,f);U(this,m);U(this,N);U(this,u);U(this,C);U(this,k);U(this,V);U(this,A);var r;const i=ie(),n=K();n.__MISSENA__=Q(T({renderers:{},referer:n.location.href},(r=n.__MISSENA__)!=null?r:{}),{log:i,window:n}),O(this,m,e),O(this,N,`msna-${a(this,m).placement}`),O(this,u,n.__MISSENA__),O(this,C,i),O(this,k,n.document.head||n.document.getElementsByTagName("head")[0]),O(this,A,n),e.formats.push({mediaType:"banner",name:`${e.placement}-banner`,providers:[{name:v.Bidule}]}),i(e)}run(){a(this,A).__msna_loaded||(a(this,A).__msna_loaded==!0,Ie(g(this,f,ue).bind(this),g(this,f,ue).bind(this)))}}m=new WeakMap,N=new WeakMap,u=new WeakMap,C=new WeakMap,k=new WeakMap,V=new WeakMap,A=new WeakMap,f=new WeakSet,Ue=function(){const e=new URLSearchParams(a(this,A).location.search).getAll("msna_provider");return e.length==0?oe.except(a(this,u),a(this,m)):oe.only(a(this,u),a(this,m),e)},_e=function(e){return I(this,null,function*(){const{error:i,pbjs:n}=yield g(this,f,Re).call(this);if(a(this,m).settings.disable_prebid){const{error:d,recommendation:h}=yield ve(a(this,u));if(d){console.error("[missena] error while loading outbrain:",d.message),g(this,f,W).call(this);return}if(!h){g(this,f,W).call(this);return}g(this,f,Z).call(this,h,v.Outbrain,S.STICKY,n.getUserIdsAsEids());return}if(i){console.error("[missena] error while loading prebid:",i.message),g(this,f,M).call(this).debug("mosquito.pbjs.failed");return}n.processQueue(),n.bidderSettings={criteo:T({storageAllowed:!0},a(this,m).publisher.isNet&&{bidCpmAdjustment:d=>d*.6}),missena:{storageAllowed:!0}},e&&delete ge.consentManagement,n.setConfig(Q(T({},ge),{floors:{data:{default:a(this,m).publisher.floor,currency:a(this,m).publisher.floorCurrency,schema:{fields:["mediaType"]}}}}));const r=!Te(a(this,u))||n.getConfig().debug;let o={};a(this,m).publisher.apiKey==="PA-98473564"&&(o={s2sConfig:{accountId:"1",enabled:!1,bidders:[],timeout:1e3,endpoint:"https://prebid.missena.io/openrtb2/auction"}}),n.setConfig(T({debug:r},o)),n.setBidderConfig({bidders:["criteo"],config:{fledgeEnabled:!0}});const s=g(this,f,Ue).call(this);n.removeAdUnit(a(this,N)),n.addAdUnits(s),a(this,C).call(this,"Added adUnits",s),n.enableAnalytics([{provider:"atsAnalytics",options:{pid:"13964"}}]),n.onEvent("bidTimeout",d=>{d.filter(h=>h.adUnitCode==a(this,N)).forEach(h=>g(this,f,M).call(this).timeout(h.bidder))}),g(this,f,ce).call(this,n)})},ce=function(e){return I(this,null,function*(){e.requestBids({adUnitCodes:[a(this,N)],bidsBackHandler:()=>I(this,null,function*(){const i=e.getUserIdsAsEids(),n=e.getHighestCpmBids(a(this,N))[0];if(!n){const{error:o,recommendation:s}=yield ve(a(this,u),a(this,m).publisher.blockedProviders);if(o){console.error("[missena] error while loading outbrain:",o.message),g(this,f,W).call(this);return}if(!s){g(this,f,W).call(this);return}g(this,f,Z).call(this,s,v.Outbrain,a(this,m).placement,i);return}const r=oe.findCustomData(e.adUnits,n);if(a(this,C).call(this,"winner, ids & provider",{ids:i,customData:r,winner:n}),r.providerName==v.Bidule){const o=`msna_mosquito_${a(this,m).placement}`,s=document.createElement("iframe");s.frameBorder="0",s.name=o;const d=document.querySelector(`[name='${o}']`);d?d.replaceWith(s):document.body.appendChild(s);const h=s.contentWindow.document;e.renderAd(h,n.adId);return}g(this,f,Z).call(this,n,r.providerName,n.adUnitCode.substring(5),i)})}),a(this,u).settings.auctionRefresh&&[S.STICKY,S.SKINCORNER,S.HEADER,S.FOOTER,S.FOOTERMAX].includes(a(this,m).placement)&&setTimeout(()=>{a(this,u).settings.auctionRefresh&&g(this,f,ce).call(this,e)},a(this,m).settings.auctionRefresh*1e3)})},Oe=function(){const e=g(this,f,j).bind(this),i=a(this,A);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})})},Ce=function(){var i,n;const e=(i=a(this,u).settings.block)!=null?i:{};if(e.type==="domain"){const r=((n=Ct("location"))==null?void 0:n.hostname)||"";return(e.domains||[]).some(o=>o==r)}return e.type==="device"},ue=function(e,i){return I(this,null,function*(){var n;if(Ze({placement:a(this,m).placement,publisher:a(this,m).publisher.apiKey,capping:a(this,m).settings.capping,tcData:i?void 0:e,referer:(n=a(this,m).settings.capping)!=null&&n.closePerPage?a(this,u).referer:void 0})){if(a(this,u).adServerUrl=a(this,m).adServerUrl,a(this,u).apiKey=a(this,m).publisher.apiKey,a(this,u).baseUrl=a(this,m).baseUrl,a(this,u).bidderUrl=a(this,m).bidderUrl,a(this,u).device=a(this,m).device,a(this,u).environment=a(this,m).environment,a(this,u).idempotencyKey=a(this,m).idempotencyKey,a(this,u).sentryEnabled=a(this,m).publisher.sentryEnabled,a(this,u).settings=a(this,m).settings,a(this,u).tcData=e,a(this,u).slots={},a(this,u).stopRefresh=()=>{delete a(this,u).settings.auctionRefresh},g(this,f,Oe).call(this),g(this,f,M).call(this).consent(),g(this,f,Ce).call(this)){a(this,C).call(this,"script blocked");return}g(this,f,_e).call(this,!e)}})},Z=function(o,s,d){return I(this,arguments,function*(e,i,n,r=[]){a(this,u).passback=g(this,f,j).bind(this);const h=`${n}-${e.mediaType||"native"}`,E=g(this,f,Be).call(this,e.adUnitCode||a(this,N),Ut(a(this,u),e,r),i,e.requestId,h);g(this,f,M).call(this).adsuccess(i),g(this,f,M).call(this).bidsuccess({provider:i,commission:{cpm:e.cpm,currency:e.currency},eids:r.map(R=>R.source)}),$e(a(this,u),E)})},W=function(){a(this,A).document.dispatchEvent(new CustomEvent("missena.event",{detail:{event:{name:"passback"}}})),new Function(a(this,m).publisher.passback)()},Re=function(){return I(this,null,function*(){if(a(this,u).window.msnaPbjs)return{pbjs:a(this,u).window.msnaPbjs};try{yield G(`${a(this,m).baseUrl}/prebid.js`,{},a(this,k))}catch(e){return{error:e}}return{pbjs:a(this,u).window.msnaPbjs}})},j=function(e,i={isClientSide:!1,minDuration:1e4}){var s;const n=a(this,u).slots[e];if(!((n==null?void 0:n.displayedAt)&&Date.now()-n.displayedAt>i.minDuration))return!1;delete n.displayedAt,delete a(this,A).__msna_loaded,delete n.data,(s=n.remove)==null||s.call(n);const o=new URL(a(this,u).adServerUrl);return o.searchParams.set("t",a(this,u).apiKey),i.isClientSide?(o.searchParams.set("cs","1"),o.searchParams.set("ik",_t(a(this,u).idempotencyKey))):o.searchParams.set("ik",a(this,u).idempotencyKey),G(o.toString(),{},a(this,k)),!0},M=function(){return a(this,V)||O(this,V,new Ot({appName:"mosquito",ctx:a(this,u)})),a(this,V)},Be=function(e,i,n,r,o=w.STICKY_NATIVE){var d,h;const s={adUnitCode:e,data:i,format:o,settings:(d=a(this,m).formats.find(E=>E.name==o))==null?void 0:d.settings,provider:n,meta:{requestId:r},reload:E=>{g(this,f,j).call(this,e,E)},remove:()=>{},track:()=>{}};return(h=a(this,u).slots[e])==null||h.remove(),a(this,u).slots[e]=s,s};function Pt(t){return I(this,null,function*(){new Mt(t).run()})}return Pt}); _M_({adServerUrl:"https://ad.missena.io/?t=PA-68461779",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":"dmFyIHMsbyxmPWRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJyd2FkLWJhbm5lciIpO2YmJihzPWFyZ3VtZW50c1swXSxvPXMucmVtb3ZlLGYuc3R5bGUuc2V0UHJvcGVydHkoIm9wYWNpdHkiLDApLHMucmVtb3ZlPSgpPT57Zi5zdHlsZS5zZXRQcm9wZXJ0eSgib3BhY2l0eSIsMSksbygpfSk7","position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"5px","right":"0px"}}},"providers":[{"name":"criteo-prebid-banner"}]},{"renderer":"sticky-native","mediaType":"native","name":"sticky-native","settings":{"afterDisplay":"dmFyIHMsbyxmPWRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJyd2FkLWJhbm5lciIpO2YmJihzPWFyZ3VtZW50c1swXSxvPXMucmVtb3ZlLGYuc3R5bGUuc2V0UHJvcGVydHkoIm9wYWNpdHkiLDApLHMucmVtb3ZlPSgpPT57Zi5zdHlsZS5zZXRQcm9wZXJ0eSgib3BhY2l0eSIsMSksbygpfSk7","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"},"pubmatic-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"smart-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"},"xandr-native":{"countdown":3,"onClick":"redirect","onSwipe":"popup"}},"crossVariant":"top_right_big","position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"5px","right":"0px"}}},"providers":[{"name":"criteo-prebid-native","settings":{"zoneId":1628646}},{"name":"outbrain"}]},{"renderer":"sticky-video","mediaType":"video","name":"sticky-video","settings":{"afterDisplay":"dmFyIHMsbyxmPWRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJyd2FkLWJhbm5lciIpO2YmJihzPWFyZ3VtZW50c1swXSxvPXMucmVtb3ZlLGYuc3R5bGUuc2V0UHJvcGVydHkoIm9wYWNpdHkiLDApLHMucmVtb3ZlPSgpPT57Zi5zdHlsZS5zZXRQcm9wZXJ0eSgib3BhY2l0eSIsMSksbygpfSk7","crossVariant":"top_right_big","position":{"desktop":{"bottom":"0px","right":"0px"},"mobile":{"bottom":"5px","right":"0px"}}},"providers":[{"name":"criteo-prebid-video","settings":{"zoneId":1628860}}]}],idempotencyKey:"1735234091.ctmp4au8simc73evm0hg",now:1735234091000,placement:"sticky",publisher:{"apiKey":"PA-68461779","blockedProviders":["smilewanted-banner","wmg-pubmatic-video","wmg-pubmatic-native","smart-video"],"floor":0,"floorCurrency":"EUR","passback":"","sentryEnabled":false},settings:{"auctionRefresh":14,"provider":{"criteo-cdb":{"slotId":"missena_1","zoneId":1602325},"criteo-prebid-banner":{"zoneId":1628646},"criteo-prebid-native":{"zoneId":0}}},syncopeUrl:"https://sync.missena.io"});})();