/* prebid.js v10.20.0
Updated: 2025-12-17
Modules: userId, adfBidAdapter, ads_interactiveBidAdapter, appnexusBidAdapter, criteoBidAdapter, digitalMatterBidAdapter, rubiconBidAdapter, teadsBidAdapter, consentManagementGpp, consentManagementTcf, gppControl_usnat, gppControl_usstates, gptPreAuction, storageControl, tcfControl, schain, criteoIdSystem, pubProvidedIdSystem, sharedIdSystem, teadsIdSystem, uid2IdSystem */
if(window.pbjs&&window.pbjs.libLoaded)try{window.pbjs.getConfig("debug")&&console.warn("Attempted to load a copy of Prebid.js that clashes with the existing 'pbjs' instance. Load aborted.")}catch(e){}else (function(){
(()=>{var t,r={23715:(t,r,e)=>{e.d(r,{A:()=>n});const n={pbGlobal:"pbjs",defineGlobal:!0,features:{NATIVE:!0,VIDEO:!0,UID2_CSTG:!0,GREEDY:!1,AUDIO:!0,LOG_NON_ERROR:!0,LOG_ERROR:!0},distUrlBase:"https://cdn.jsdelivr.net/npm/prebid.js@10.20.0/dist/chunks/",skipCalls:{}}},35481:t=>{
/*
* @license MIT
* Fun Hooks v1.1.0
* (c) @snapwich
*/
i.SYNC=1,i.ASYNC=2,i.QUEUE=4;var r="fun-hooks",e=Object.freeze({ready:0}),n=new WeakMap;function o(t,r){return Array.prototype.slice.call(t,r)}function i(t){var a,f={},c=[];function u(t,r){return"function"==typeof t?y.call(null,"sync",t,r):"string"==typeof t&&"function"==typeof r?y.apply(null,arguments):"object"==typeof t?l.apply(null,arguments):void 0}function l(t,r,e){var n=!0;void 0===r&&(r=Object.getOwnPropertyNames(t).filter(t=>!t.match(/^_/)),n=!1);var o={},i=["constructor"];do{r.forEach(function(r){var n=r.match(/(?:(sync|async):)?(.+)/),a=n[1]||"sync",f=n[2];if(!o[f]&&"function"==typeof t[f]&&-1===i.indexOf(f)){var c=t[f];o[f]=t[f]=y(a,c,e?[e,f]:void 0)}}),t=Object.getPrototypeOf(t)}while(n&&t);return o}function p(t){var e=Array.isArray(t)?t:t.split(".");return e.reduce(function(n,o,i){var f=n[o],u=!1;return f||(i===e.length-1?(a||c.push(function(){u||console.warn(r+": referenced '"+t+"' but it was never created")}),n[o]=s(function(t){n[o]=t,u=!0})):n[o]={})},f)}function s(t){var r=[],e=[],o=function(){},i={before:function(t,e){return f.call(this,r,"before",t,e)},after:function(t,r){return f.call(this,e,"after",t,r)},getHooks:function(t){var n=r.concat(e);"object"==typeof t&&(n=n.filter(function(r){return Object.keys(t).every(function(e){return r[e]===t[e]})}));try{Object.assign(n,{remove:function(){return n.forEach(function(t){t.remove()}),this}})}catch(t){console.error("error adding `remove` to array, did you modify Array.prototype?")}return n},removeAll:function(){return this.getHooks().remove()}},a={install:function(n,i,a){this.type=n,o=a,a(r,e),t&&t(i)}};return n.set(i.after,a),i;function f(t,n,i,a){var f={hook:i,type:n,priority:a||10,remove:function(){var n=t.indexOf(f);-1!==n&&(t.splice(n,1),o(r,e))}};return t.push(f),t.sort(function(t,r){return r.priority-t.priority}),o(r,e),this}}function y(e,f,u){var l=f.after&&n.get(f.after);if(l){if(l.type!==e)throw r+": recreated hookable with different type";return f}var y,v=u?p(u):s(),d={get:function(t,r){return v[r]||Reflect.get.apply(Reflect,arguments)}};a||c.push(b);var h=new Proxy(f,d);return n.get(h.after).install(e,h,function(t,r){var n,i=[];t.length||r.length?(t.forEach(a),n=i.push(void 0)-1,r.forEach(a),y=function(t,r,a){var f,c=i.slice(),u=0,l="async"===e&&"function"==typeof a[a.length-1]&&a.pop();function p(t){"sync"===e?f=t:l&&l.apply(null,arguments)}function s(t){if(c[u]){var n=o(arguments);return s.bail=p,n.unshift(s),c[u++].apply(r,n)}"sync"===e?f=t:l&&l.apply(null,arguments)}return c[n]=function(){var n=o(arguments,1);"async"===e&&l&&(delete s.bail,n.push(s));var i=t.apply(r,n);"sync"===e&&s(i)},s.apply(null,a),f}):y=void 0;function a(t){i.push(t.hook)}b()}),h;function b(){!a&&("sync"!==e||t.ready&i.SYNC)&&("async"!==e||t.ready&i.ASYNC)?"sync"!==e&&t.ready&i.QUEUE?d.apply=function(){var t=arguments;c.push(function(){h.apply(t[1],t[2])})}:d.apply=function(){throw r+": hooked function not ready"}:d.apply=y}}return(t=Object.assign({},e,t)).ready?u.ready=function(){a=!0,function(t){for(var r;r=t.shift();)r()}(c)}:a=!0,u.get=p,u}t.exports=i},58928:(t,r,e)=>{function n(t,r,e,n,o){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)t=t?t[r[n]]:o;return t===o?e:t}e.d(r,{A:()=>n})},83435:(t,r,e)=>{function n(t,r,e){r.split&&(r=r.split("."));for(var n,o,i=0,a=r.length,f=t;i<a&&"__proto__"!=(o=""+r[i++])&&"constructor"!==o&&"prototype"!==o;)f=f[o]=i===a?e:typeof(n=f[o])==typeof r?n:0*r[i]!=0||~(""+r[i]).indexOf(".")?{}:[]}e.d(r,{J:()=>n})},91490:(t,r,e)=>{function n(t){var r,e,o;if(Array.isArray(t)){for(e=Array(r=t.length);r--;)e[r]=(o=t[r])&&"object"==typeof o?n(o):o;return e}if("[object Object]"===Object.prototype.toString.call(t)){for(r in e={},t)"__proto__"===r?Object.defineProperty(e,r,{value:n(t[r]),configurable:!0,enumerable:!0,writable:!0}):e[r]=(o=t[r])&&"object"==typeof o?n(o):o;return e}return t}e.d(r,{Q:()=>n})}},e={};function n(t){var o=e[t];if(void 0!==o)return o.exports;var i=e[t]={exports:{}};return r[t].call(i.exports,i,i.exports,n),i.exports}n.m=r,t=[],n.O=(r,e,o,i)=>{if(!e){var a=1/0;for(l=0;l<t.length;l++){for(var[e,o,i]=t[l],f=!0,c=0;c<e.length;c++)(!1&i||a>=i)&&Object.keys(n.O).every(t=>n.O[t](e[c]))?e.splice(c--,1):(f=!1,i<a&&(a=i));if(f){t.splice(l--,1);var u=o();void 0!==u&&(r=u)}}return r}i=i||0;for(var l=t.length;l>0&&t[l-1][2]>i;l--)t[l]=t[l-1];t[l]=[e,o,i]},n.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return n.d(r,{a:r}),r},n.d=(t,r)=>{for(var e in r)n.o(r,e)&&!n.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:r[e]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={39673:0};n.O.j=r=>0===t[r];var r=(r,e)=>{var o,i,[a,f,c]=e,u=0;if(a.some(r=>0!==t[r])){for(o in f)n.o(f,o)&&(n.m[o]=f[o]);if(c)var l=c(n)}for(r&&r(e);u<a.length;u++)i=a[u],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(l)},e=self.pbjsChunk=self.pbjsChunk||[];e.forEach(r.bind(null,0)),e.push=r.bind(null,e.push.bind(e))})();var o=n.O(void 0,[60802,37769,40315,51085],()=>n(57215));o=n.O(o)})();
(self.pbjsChunk=self.pbjsChunk||[]).push([[60802],{765:(e,t,n)=>{n.d(t,{k:()=>i,rT:()=>s,uP:()=>o});var r=n(23715);function i(){return r.A.pbGlobal}function o(){return r.A.defineGlobal}function s(){return r.A.distUrlBase}},1124:(e,t,n)=>{n.d(t,{j:()=>u,q:()=>f});var r=n(10466),i=n(91933);const o=2,s={buckets:[{max:5,increment:.5}]},a={buckets:[{max:20,increment:.1}]},d={buckets:[{max:20,increment:.01}]},c={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},l={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":g(e,s,n),med:""===r?"":g(e,a,n),high:""===r?"":g(e,d,n),auto:""===r?"":g(e,l,n),dense:""===r?"":g(e,c,n),custom:""===r?"":g(e,t,n)}}function g(e,t,n){let s="";if(!f(t))return s;const a=t.buckets.reduce((e,t)=>e.max>t.max?e:t,{max:0});let d=0;const c=t.buckets.find(t=>{if(e>a.max*n){let e=t.precision;void 0===e&&(e=o),s=(t.max*n).toFixed(e)}else{if(e<=t.max*n&&e>=d*n)return t.min=d,t;d=t.max}});return c&&(s=function(e,t,n){const s=void 0!==t.precision?t.precision:o,a=t.increment*n,d=t.min*n;let c=Math.floor;const l=i.$W.getConfig("cpmRoundingFunction");"function"==typeof l&&(c=l);const u=Math.pow(10,s+2),g=(e*u-d*u)/(a*u);let f,p;try{f=c(g)*a+d}catch(e){p=!0}(p||"number"!=typeof f)&&((0,r.logWarn)("Invalid rounding function passed in config"),f=Math.floor(g)*a+d);return f=Number(f.toFixed(10)),f.toFixed(s)}(e,c,n)),s}function f(e){if((0,r.isEmpty)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;let t=!0;return e.buckets.forEach(e=>{e.max&&e.increment||(t=!1)}),t}},3129:(e,t,n)=>{n.d(t,{Q:()=>r});const r=(0,n(32592).A_)("sync",()=>{})},3516:(e,t,n)=>{n.d(t,{JN:()=>U,JS:()=>D,a$:()=>I,eI:()=>C,fn:()=>k,xb:()=>S});var r=n(5672),i=n(51409),o=n(91933),s=n(63320),a=n(73391),d=n(80356),c=n(36220),l=n(11418),u=n(18014),g=n(26665),f=n(10466),p=n(32592),m=n(63006),h=n(77156),b=n(37841),y=n(53202),v=n(77610),E=n(70736),A=n(45808);const w=["cpm","ttl","creativeId","netRevenue","currency"],T={auctionId:e=>e.ortb2?.source?.tid,transactionId:e=>e.ortb2Imp?.ext?.tid};function I(e){const t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){const n=S(e);i.Ay.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach(t=>{let r,o,s=t;(0,g.Qd)(t)&&(s=t.code,r=t.gvlid,o=t.skipPbsAliasing),i.Ay.aliasRegistry[s]=e.code,n(Object.assign({},e,{code:s,gvlid:r,skipPbsAliasing:o}))})}const C=(0,f.memoize)(e=>{let{bidderCode:t}=e;const n=(0,y.io)(A.VJ,(0,v.s)(E.tW,t));function r(e,t,r){return T.hasOwnProperty(t)?n?T[t](e):null:Reflect.get(e,t,r)}function i(e,t){const n=new Proxy(e,t);return Object.entries(e).filter(e=>{let[t,n]=e;return"function"==typeof n}).forEach(t=>{let[r,i]=t;n[r]=i.bind(e)}),n}const o=(0,f.memoize)(e=>i(e,{get:r}),e=>e.bidId);return{bidRequest:o,bidderRequest:e=>i(e,{get:(t,n,i)=>"bids"===n?e.bids.map(o):r(t,n,i)})}});function S(e){return Object.assign((0,r.A)(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(n,r,a,d,c,p){if(!Array.isArray(n.bids))return;const m=C(n),y={};const v=[];function E(){a(),o.$W.runWithBidder(e.code,()=>{u.emit(l.qY.BIDDER_DONE,n),t(v,n.gdprConsent,n.uspConsent,n.gppConsent)})}const A=D(n).measureTime("validate",()=>n.bids.filter(t=>function(t){if(!e.isBidRequestValid(t))return(0,f.logWarn)(`Invalid bid sent to bidder ${e.code}: ${JSON.stringify(t)}`),!1;return!0}(m.bidRequest(t))));if(0===A.length)return void E();const w={};A.forEach(e=>{w[e.bidId]=e}),B(e,A,n,d,p,{onRequest:e=>u.emit(l.qY.BEFORE_BIDDER_HTTP,n,e),onResponse:t=>{c(e.code),v.push(t)},onPaapi:e=>{const t=w[e.bidId];t?U(t,e):(0,f.logWarn)("Received fledge auction configuration for an unknown bidId",e)},onError:(t,r)=>{r.timedOut||c(e.code),i.Ay.callBidderError(e.code,r,n),u.emit(l.qY.BIDDER_ERROR,{error:r,bidderRequest:n}),(0,f.logError)(`Server call for ${e.code} failed: ${t} ${r.status}. Continuing without bids.`,{bidRequests:A})},onBid:t=>{const n=w[t.requestId],i=t;if(n){if(i.adapterCode=n.bidder,function(e,t){const n=h.u.get(t,"allowAlternateBidderCodes")||!1;let r=h.u.get(t,"allowedAlternateBidderCodes");if(e&&t&&t!==e&&(r=(0,g.cy)(r)?r.map(e=>e.trim().toLowerCase()).filter(e=>!!e).filter(f.uniques):r,!n||(0,g.cy)(r)&&"*"!==r[0]&&!r.includes(e)))return!0;return!1}(t.bidderCode,n.bidder))return(0,f.logWarn)(`${t.bidderCode} is not a registered partner or known bidder of ${n.bidder}, hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.`),void r.reject(n.adUnitCode,t,l.Tf.BIDDER_DISALLOWED);i.originalCpm=t.cpm,i.originalCurrency=t.currency,i.meta=t.meta||Object.assign({},t[n.bidder]),i.deferBilling=n.deferBilling,i.deferRendering=i.deferBilling&&(t.deferRendering??"function"!=typeof e.onBidBillable);const o=Object.assign((0,s.O)(n),i,(0,f.pick)(n,Object.keys(T)));!function(e,t){const n=(0,b.BO)(t.metrics);n.checkpoint("addBidResponse"),y[e]=!0,n.measureTime("addBidResponse.validate",()=>k(e,t))?r(e,t):r.reject(e,t,l.Tf.INVALID)}(n.adUnitCode,o)}else(0,f.logWarn)(`Bidder ${e.code} made bid for unknown request ID: ${t.requestId}. Ignoring.`),r.reject(null,t,l.Tf.INVALID_REQUEST_ID)},onCompletion:E})}});function t(t,n,r,i){R(e,t,n,r,i)}}const O=["bids","paapi"],B=(0,p.A_)("async",function(e,t,n,r,i,o){let{onRequest:s,onResponse:a,onPaapi:d,onError:c,onBid:u,onCompletion:p}=o;const m=D(n);p=m.startTiming("total").stopBefore(p);const b=C(n);let w=m.measureTime("buildRequests",()=>e.buildRequests(t.map(b.bidRequest),b.bidderRequest(n)));if(Array.isArray(w)||(w=[w]),!w||0===w.length)return void p();const T=(0,f.delayExecution)(p,w.length);w.forEach(t=>{const n=m.fork();function o(e){null!=e&&(e.metrics=n.fork().renameWith()),u(e)}const p=i(function(r,i){w();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:i.getResponseHeader.bind(i)}},a(r);try{r=n.measureTime("interpretResponse",()=>e.interpretResponse(r,t))}catch(t){return(0,f.logError)(`Bidder ${e.code} failed to interpret the server's response. Continuing without bids`,null,t),void T()}let s,c;r&&!Object.keys(r).some(e=>!O.includes(e))?(s=r.bids,c=r.paapi):s=r,(0,g.cy)(c)&&c.forEach(d),s&&((0,g.cy)(s)?s.forEach(o):o(s)),T()}),b=i(function(e,t){w(),c(e,t),T()});s(t);const w=n.startTiming("net"),I="TRUE"===(0,f.getParameterByName)(l.M).toUpperCase()||(0,f.debugTurnedOn)();function C(n){const r=t.options;return Object.assign(n,r,{browsingTopics:!(r?.hasOwnProperty("browsingTopics")&&!r.browsingTopics)&&((h.u.get(e.code,"topicsHeader")??!0)&&(0,y.io)(A.DL,(0,v.s)(E.tW,e.code))),suppressTopicsEnrollmentWarning:r?.hasOwnProperty("suppressTopicsEnrollmentWarning")?r.suppressTopicsEnrollmentWarning:!I})}switch(t.method){case"GET":r(`${t.url}${function(e){if(e)return`?${"object"==typeof e?(0,f.parseQueryStringParameters)(e):e}`;return""}(t.data)}`,{success:p,error:b},void 0,C({method:"GET",withCredentials:!0}));break;case"POST":const n=t.options?.endpointCompression,i=e=>{let{url:t,payload:n}=e;r(t,{success:p,error:b},n,C({method:"POST",contentType:"text/plain",withCredentials:!0}))};n&&I&&(0,f.logWarn)(`Skipping GZIP compression for ${e.code} as debug mode is enabled`),n&&!I&&(0,f.isGzipCompressionSupported)()?(0,f.compressDataWithGZip)(t.data).then(e=>{const n=new URL(t.url);n.searchParams.has("gzip")||n.searchParams.set("gzip","1"),i({url:n.href,payload:e})}):i({url:t.url,payload:"string"==typeof t.data?t.data:JSON.stringify(t.data)});break;default:(0,f.logWarn)(`Skipping invalid request from ${e.code}. Request type ${t.method} must be GET or POST`),T()}})},"processBidderRequests"),R=(0,p.A_)("async",function(e,t,n,r,s){const d=o.$W.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(d||!i.Ay.aliasRegistry[e.code])){let i=e.getUserSyncs({iframeEnabled:a.zt.canBidderRegisterSync("iframe",e.code),pixelEnabled:a.zt.canBidderRegisterSync("image",e.code)},t,n,r,s);i&&(Array.isArray(i)||(i=[i]),i.forEach(t=>{a.zt.registerSync(t.type,e.code,t.url)}),a.zt.bidderDone(e.code))}},"registerSyncs"),U=(0,p.A_)("sync",(e,t)=>{},"addPaapiConfig");function k(e,t){let{index:n=m.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function r(e){return`Invalid bid from ${t.bidderCode}. Ignoring bid: ${e}`}return e?t?function(){const e=Object.keys(t);return w.every(n=>e.includes(n)&&![void 0,null].includes(t[n]))}()?"native"!==t.mediaType||(0,d.Bm)(t,{index:n})?"video"!==t.mediaType||(0,c.vk)(t,{index:n})?!("banner"===t.mediaType&&!function(e,t){let{index:n=m.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),!0;if(null!=t.wratio&&null!=t.hratio)return t.wratio=parseInt(t.wratio,10),t.hratio=parseInt(t.hratio,10),!0;const r=n.getBidRequest(t),i=n.getMediaTypes(t),o=r&&r.sizes||i&&i.banner&&i.banner.sizes,s=(0,f.parseSizesInput)(o);if(1===s.length){const[e,n]=s[0].split("x");return t.width=parseInt(e,10),t.height=parseInt(n,10),!0}return!1}(e,t,{index:n}))||((0,f.logError)(r("Banner bids require a width and height")),!1):((0,f.logError)(r("Video bid does not have required vastUrl or renderer property")),!1):((0,f.logError)(r("Native bid missing some required properties.")),!1):((0,f.logError)(r(`Bidder ${t.bidderCode} is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params.`)),!1):((0,f.logWarn)(`Some adapter tried to add an undefined bid for ${e}.`),!1):((0,f.logWarn)("No adUnitCode was supplied to addBidResponse."),!1)}function D(e){return(0,b.BO)(e.metrics).renameWith(t=>[`adapter.client.${t}`,`adapters.client.${e.bidderCode}.${t}`])}},5672:(e,t,n)=>{function r(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}n.d(t,{A:()=>r})},10466:(e,t,n)=>{n.r(t),n.d(t,{_each:()=>Z,_map:()=>te,_setEventEmitter:()=>h,binarySearch:()=>et,buildUrl:()=>Ge,canAccessWindowTop:()=>N,checkCookieSupport:()=>Ue,cleanObj:()=>je,compareCodeAndSlot:()=>qe,compressDataWithGZip:()=>st,contains:()=>ee,convertObjectToArray:()=>Xe,createIframe:()=>Q,createInvisibleIframe:()=>J,createTrackPixelHtml:()=>ae,createTrackPixelIframeHtml:()=>ce,cyrb53Hash:()=>He,debugTurnedOn:()=>H,deepAccess:()=>s.A,deepClone:()=>a.Go,deepEqual:()=>Le,deepSetValue:()=>d.J,delayExecution:()=>ke,encodeMacroURI:()=>de,extractDomainFromHost:()=>rt,flatten:()=>ue,formatQS:()=>Me,generateUUID:()=>I,getBidIdParameter:()=>C,getBidRequest:()=>ge,getBidderCodes:()=>pe,getDefinedParams:()=>a.SH,getDocument:()=>j,getDomLoadingDuration:()=>Be,getParameterByName:()=>K,getPerformanceNow:()=>Oe,getPrebidInternal:()=>E,getSafeframeGeometry:()=>Ae,getScreenOrientation:()=>c.Vv,getUniqueIdentifierStr:()=>T,getUnixTimestampFromNow:()=>Ye,getUserConfiguredParams:()=>$e,getValue:()=>fe,getWinDimensions:()=>c.Ot,getWindowLocation:()=>W,getWindowSelf:()=>x,getWindowTop:()=>q,groupBy:()=>De,hasConsoleLogger:()=>V,hasDeviceAccess:()=>Re,hasNonSerializableProperty:()=>tt,inIframe:()=>ve,insertElement:()=>ne,insertHtmlIntoIframe:()=>oe,insertUserSyncIframe:()=>se,internal:()=>y,isA:()=>a.KG,isAdUnitCodeMatchingSlot:()=>xe,isApnGetTagDefined:()=>he,isArray:()=>a.cy,isArrayOfNums:()=>a.Uu,isBoolean:()=>a.Lm,isEmpty:()=>Y,isEmptyStr:()=>X,isFn:()=>a.fp,isGptPubadsDefined:()=>me,isGzipCompressionSupported:()=>ot,isInteger:()=>a.Fq,isNumber:()=>a.Et,isPlainObject:()=>a.Qd,isSafariBrowser:()=>we,isSafeFrameWindow:()=>Ee,isStr:()=>a.O8,isValidMediaTypes:()=>_e,logError:()=>G,logInfo:()=>M,logMessage:()=>P,logWarn:()=>F,memoize:()=>Ke,mergeDeep:()=>ze,parseGPTSingleSizeArray:()=>k,parseGPTSingleSizeArrayToRtbSize:()=>_,parseQS:()=>Pe,parseQueryStringParameters:()=>S,parseSizesInput:()=>R,parseUrl:()=>Fe,pick:()=>Ne,prefixLog:()=>L,replaceAuctionPrice:()=>Ie,replaceClickThrough:()=>Ce,replaceMacros:()=>Te,resetWinDimensions:()=>c.Bp,safeJSONEncode:()=>Je,safeJSONParse:()=>Qe,setOnAny:()=>nt,setScriptAttributes:()=>Ze,shuffle:()=>ye,sizeTupleToRtbSize:()=>D,sizeTupleToSizeString:()=>U,sizesToSizeTuples:()=>B,sortByHighestCpm:()=>be,timestamp:()=>Se,transformAdServerTargetingObj:()=>O,triggerNurlWithCpm:()=>it,triggerPixel:()=>ie,uniques:()=>le,unsupportedBidderMessage:()=>We,waitForElementToLoad:()=>re});var r=n(91933),i=n(11418),o=n(13064),s=n(58928),a=n(26665),d=n(83435),c=n(43958);const l=Boolean(window.console),u=Boolean(l&&window.console.log),g=Boolean(l&&window.console.info),f=Boolean(l&&window.console.warn),p=Boolean(l&&window.console.error);let m;function h(e){m=e}function b(){null!=m&&m(...arguments)}const y={checkCookieSupport:Ue,createTrackPixelIframeHtml:ce,getWindowSelf:x,getWindowTop:q,canAccessWindowTop:N,getWindowLocation:W,insertUserSyncIframe:se,insertElement:ne,isFn:a.fp,triggerPixel:ie,logError:G,logWarn:F,logMessage:P,logInfo:M,parseQS:Pe,formatQS:Me,deepEqual:Le},v={};function E(){return v}var A,w=(A=0,function(){return++A});function T(){return w()+Math.random().toString(16).substr(2)}function I(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,I)}function C(e,t){return t?.[e]||""}function S(e){let t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t=t.replace(/&$/,""),t}function O(e){return e&&Object.getOwnPropertyNames(e).length>0?Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t])}`).join("&"):""}function B(e){return"string"==typeof e?e.split(/\s*,\s*/).map(e=>e.match(/^(\d+)x(\d+)$/i)).filter(e=>e).map(e=>{let[t,n,r]=e;return[parseInt(n,10),parseInt(r,10)]}):Array.isArray(e)?$(e)?[e]:e.filter($):[]}function R(e){return B(e).map(U)}function U(e){return e[0]+"x"+e[1]}function k(e){if($(e))return U(e)}function D(e){return{w:e[0],h:e[1]}}function _(e){if($(e))return D(e)}function $(e){return(0,a.cy)(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function q(){return window.top}function x(){return window.self}function W(){return window.location}function j(){return document}function N(){try{if(y.getWindowTop().location.href)return!0}catch(e){return!1}}function P(){H()&&u&&console.log.apply(console,z(arguments,"MESSAGE:"))}function M(){H()&&g&&console.info.apply(console,z(arguments,"INFO:"))}function F(){H()&&f&&console.warn.apply(console,z(arguments,"WARNING:")),b(i.qY.AUCTION_DEBUG,{type:"WARNING",arguments})}function G(){H()&&p&&console.error.apply(console,z(arguments,"ERROR:")),b(i.qY.AUCTION_DEBUG,{type:"ERROR",arguments})}function L(e){function t(t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t(e,...r)}}return{logError:t(G),logWarn:t(F),logMessage:t(P),logInfo:t(M)}}function z(e,t){e=[].slice.call(e);const n=r.$W.getCurrentBidder();return t&&e.unshift(t),n&&e.unshift(i("#aaa")),e.unshift(i("#3b88c3")),e.unshift("%cPrebid"+(n?`%c${n}`:"")),e;function i(e){return`display: inline-block; color: #fff; background: ${e}; padding: 1px 4px; border-radius: 3px;`}}function V(){return u}function H(){return!!r.$W.getConfig("debug")}const Q=(()=>{const e={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"};return function(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t.createElement("iframe");return Object.assign(i,Object.assign({},e,n)),Object.assign(i.style,r),i}})();function J(){return Q(document,{id:T(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function K(e){return Pe(W().search)[e]||""}function Y(e){return!e||((0,a.cy)(e)||(0,a.O8)(e)?!(e.length>0):Object.keys(e).length<=0)}function X(e){return(0,a.O8)(e)&&(!e||0===e.length)}function Z(e,t){if((0,a.fp)(e?.forEach))return e.forEach(t,this);Object.entries(e||{}).forEach(e=>{let[n,r]=e;return t.call(this,r,n)})}function ee(e,t){return(0,a.fp)(e?.includes)&&e.includes(t)}function te(e,t){return(0,a.fp)(e?.map)?e.map(t):Object.entries(e||{}).map(n=>{let[r,i]=n;return t(i,r,e)})}function ne(e,t,n,r){let i;t=t||document,i=n?t.getElementsByTagName(n):t.getElementsByTagName("head");try{if(i=i.length?i:t.getElementsByTagName("body"),i.length){i=i[0];const t=r?null:i.firstChild;return i.insertBefore(e,t)}}catch(e){}}function re(e,t){let n=null;return new o.U9(r=>{const i=function(){e.removeEventListener("load",i),e.removeEventListener("error",i),null!=n&&window.clearTimeout(n),r()};e.addEventListener("load",i),e.addEventListener("error",i),null!=t&&(n=window.setTimeout(i,t))})}function ie(e,t,n){const r=new Image;t&&y.isFn(t)&&re(r,n).then(t),r.src=e}function oe(e){if(!e)return;const t=J();var n;y.insertElement(t,document,"body"),(n=t.contentWindow.document).open(),n.write(e),n.close()}function se(e,t,n){const r=y.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=r;const o=i.firstChild;t&&y.isFn(t)&&re(o,n).then(t),y.insertElement(o,document,"html",!0)}function ae(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:encodeURI;if(!e)return"";let n='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return n+='<img src="'+t(e)+'"></div>',n}function de(e){return Array.from(e.matchAll(/\$({[^}]+})/g)).map(e=>e[1]).reduce((e,t)=>e.replace("$"+encodeURIComponent(t),"$"+t),encodeURI(e))}function ce(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?((!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(e=encodeURI(e)),t&&(t=`sandbox="${t}"`),`<iframe ${t} id="${T()}"\n      frameborder="0"\n      allowtransparency="true"\n      marginheight="0" marginwidth="0"\n      width="0" hspace="0" vspace="0" height="0"\n      style="height:0px;width:0px;display:none;"\n      scrolling="no"\n      src="${e}">\n    </iframe>`):""}function le(e,t,n){return n.indexOf(e)===t}function ue(e,t){return e.concat(t)}function ge(e,t){if(e)return t.flatMap(e=>e.bids).find(t=>["bidId","adId","bid_id"].some(n=>t[n]===e))}function fe(e,t){return e[t]}function pe(e){return e.map(e=>e.bids.map(e=>e.bidder).reduce(ue,[])).reduce(ue,[]).filter(e=>void 0!==e).filter(le)}function me(){if(window.googletag&&(0,a.fp)(window.googletag.pubads)&&(0,a.fp)(window.googletag.pubads().getSlots))return!0}function he(){if(window.apntag&&(0,a.fp)(window.apntag.getTag))return!0}const be=(e,t)=>t.cpm-e.cpm;function ye(e){let t=e.length;for(;t>0;){const n=Math.floor(Math.random()*t);t--;const r=e[t];e[t]=e[n],e[n]=r}return e}function ve(){try{return y.getWindowSelf()!==y.getWindowTop()}catch(e){return!0}}function Ee(){if(!ve())return!1;const e=y.getWindowSelf();return!(!e.$sf||!e.$sf.ext)}function Ae(){try{const e=x();return"function"==typeof e.$sf.ext.geom?e.$sf.ext.geom():void 0}catch(e){return void G("Error getting SafeFrame geometry",e)}}function we(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function Te(e,t){if(e)return Object.entries(t).reduce((e,t)=>{let[n,r]=t;return e.replace(new RegExp("\\$\\{"+n+"\\}","g"),r||"")},e)}function Ie(e,t){return Te(e,{AUCTION_PRICE:t})}function Ce(e,t){if(e&&t&&"string"==typeof t)return e.replace(/\${CLICKTHROUGH}/g,t)}function Se(){return(new Date).getTime()}function Oe(){return window.performance&&window.performance.now&&window.performance.now()||0}function Be(e){let t=-1;const n=(e=e||x()).performance;if(e.performance?.timing&&e.performance.timing.navigationStart>0){const e=n.timing.domLoading-n.timing.navigationStart;e>0&&(t=e)}return t}function Re(){return!1!==r.$W.getConfig("deviceAccess")}function Ue(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function ke(e,t){if(t<1)throw new Error(`numRequiredCalls must be a positive number. Got ${t}`);let n=0;return function(){n++,n===t&&e.apply(this,arguments)}}function De(e,t){return e.reduce(function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e},{})}function _e(e){const t=["banner","native","video","audio"],n=["instream","outstream","adpod"];return!!Object.keys(e).every(e=>t.includes(e))&&(!e.video||!e.video.context||n.includes(e.video.context))}function $e(e,t,n){return e.filter(e=>e.code===t).flatMap(e=>e.bids).filter(e=>e.bidder===n).map(e=>e.params||{})}const qe=(e,t)=>e.getAdUnitPath()===t||e.getSlotElementId()===t;function xe(e){return t=>qe(e,t)}function We(e,t){const n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return`\n    ${e.code} is a ${n} ad unit\n    containing bidders that don't support ${n}: ${t}.\n    This bidder won't fetch demand.\n  `}function je(e){return Object.fromEntries(Object.entries(e).filter(e=>{let[t,n]=e;return void 0!==n}))}function Ne(e,t){return"object"!=typeof e?{}:t.reduce((n,r,i)=>{if("function"==typeof r)return n;let o=r;const s=r.match(/^(.+?)\sas\s(.+?)$/i);s&&(r=s[1],o=s[2]);let a=e[r];return"function"==typeof t[i+1]&&(a=t[i+1](a,n)),void 0!==a&&(n[o]=a),n},{})}function Pe(e){return e?e.replace(/^\?/,"").split("&").reduce((e,t)=>{let[n,r]=t.split("=");return/\[\]$/.test(n)?(n=n.replace("[]",""),e[n]=e[n]||[],e[n].push(r)):e[n]=r||"",e},{}):{}}function Me(e){return Object.keys(e).map(t=>Array.isArray(e[t])?e[t].map(e=>`${t}[]=${e}`).join("&"):`${t}=${e[t]}`).join("&")}function Fe(e,t){const n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);const r=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:r?n.search:y.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}}function Ge(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?`:${e.port}`:""))+(e.pathname||"")+(e.search?`?${y.formatQS(e.search||"")}`:"")+(e.hash?`#${e.hash}`:"")}function Le(e,t){let{checkTypes:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Array.isArray(e),i=Array.isArray(t);if(r&&i){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!Le(e[r],t[r],{checkTypes:n}))return!1;return!0}if(r||i)return!1;if(n&&e.constructor!==t.constructor)return!1;const o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(const r of o){if(!Object.prototype.hasOwnProperty.call(t,r))return!1;if(!Le(e[r],t[r],{checkTypes:n}))return!1}return!0}function ze(e){for(let t=0;t<(arguments.length<=1?0:arguments.length-1);t++){const n=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];(0,a.Qd)(n)&&Ve(e,n)}return e}function Ve(e,t){if(!(0,a.Qd)(e)||!(0,a.Qd)(t))return;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];if("__proto__"===i||"constructor"===i)continue;const o=t[i];(0,a.Qd)(o)?(e[i]||(e[i]={}),Ve(e[i],o)):Array.isArray(o)?Array.isArray(e[i])?o.forEach(t=>{e[i].some(e=>Le(e,t))||e[i].push(t)}):e[i]=[...o]:e[i]=o}}function He(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=function(e,t){if((0,a.fp)(Math.imul))return Math.imul(e,t);var n=(4194303&e)*(t|=0);return 4290772992&e&&(n+=(4290772992&e)*t|0),0|n};let r=3735928559^t,i=1103547991^t;for(let t,o=0;o<e.length;o++)t=e.charCodeAt(o),r=n(r^t,2654435761),i=n(i^t,1597334677);return r=n(r^r>>>16,2246822507)^n(i^i>>>13,3266489909),i=n(i^i>>>16,2246822507)^n(r^r>>>13,3266489909),(4294967296*(2097151&i)+(r>>>0)).toString()}function Qe(e){try{return JSON.parse(e)}catch(e){}}function Je(e){try{return JSON.stringify(e)}catch(e){return""}}function Ke(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};const n=new Map,r=function(){const r=t.apply(this,arguments);return n.has(r)||n.set(r,e.apply(this,arguments)),n.get(r)};return r.clear=n.clear.bind(n),r}function Ye(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"d";if(["m","d"].indexOf(t)<0)return Date.now();const n=e/("m"===t?1440:1);return Date.now()+(e&&e>0?864e5*n:0)}function Xe(e){return Object.keys(e).map(t=>({[t]:e[t]}))}function Ze(e,t){Object.entries(t).forEach(t=>{let[n,r]=t;return e.setAttribute(n,r)})}function et(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,r=0,i=e.length&&e.length-1;const o=n(t);for(;i-r>1;){const t=r+Math.round((i-r)/2);o>n(e[t])?r=t:i=t}for(;e.length>r&&o>n(e[r]);)r++;return r}function tt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;for(const n in e){const r=e[n],i=typeof r;if(void 0===r||"function"===i||"symbol"===i||r instanceof RegExp||r instanceof Map||r instanceof Set||r instanceof Date||null!==r&&"object"===i&&r.hasOwnProperty("toJSON"))return!0;if(null!==r&&"object"===i&&r.constructor===Object){if(t.has(r))return!0;if(t.add(r),tt(r,t))return!0}}return!1}function nt(e,t){for(let n,r=0;r<e.length;r++)if(n=(0,s.A)(e[r],t),n)return n}function rt(e){let t=null;try{const n=/[-\w]+\.([-\w]+|[-\w]{3,}|[-\w]{1,3}\.[-\w]{2})$/i.exec(e);if(null!=n&&n.length>0){t=n[0];for(let e=1;e<n.length;e++)n[e].length>t.length&&(t=n[e])}}catch(e){t=null}return t}function it(e,t){(0,a.O8)(e.nurl)&&""!==e.nurl&&(e.nurl=e.nurl.replace(/\${AUCTION_PRICE}/,t),ie(e.nurl))}const ot=function(){let e;return function(){if(void 0!==e)return e;try{void 0===window.CompressionStream?e=!1:(new window.CompressionStream("gzip"),e=!0)}catch(t){e=!1}return e}}();async function st(e){"string"!=typeof e&&(e=JSON.stringify(e));const t=(new TextEncoder).encode(e),n=new Blob([t]).stream().pipeThrough(new window.CompressionStream("gzip")),r=await new Response(n).blob(),i=await r.arrayBuffer();return new Uint8Array(i)}},10867:(e,t,n)=>{n.d(t,{EN:()=>d,gR:()=>s});var r=n(91933),i=n(10466);function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!e)return e;if(/\w+:\/\//.exec(e))return e;let n=t.location.protocol;try{n=t.top.location.protocol}catch(e){}return/^\/\//.exec(e)?n+e:`${n}//${e}`}function s(e){let t,{noLeadingWww:n=!1,noPort:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=new URL(o(e))}catch(e){return}return t=r?t.hostname:t.host,n&&t.startsWith("www.")&&(t=t.substring(4)),t}function a(e){try{const t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}const d=function(e){let t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return i.top!==i?e:function(){const o=a(i.document),s=i.location.href;return t===o&&s===n||(t=o,n=s,r=e()),r}}((c=window,function(){const e=[],t=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(c),n=r.$W.getConfig("maxNestedIframes");let d,l,u,g,f=!1,p=0,m=!1,h=!1,b=!1;do{const n=d,r=h;let o,s=!1,g=null;h=!1,d=d?d.parent:c;try{o=d.location.href||null}catch(e){s=!0}if(s)if(r){const e=n.context;try{g=e.sourceUrl,l=g,b=!0,m=!0,d===c.top&&(f=!0),e.canonicalUrl&&(u=e.canonicalUrl)}catch(e){}}else{(0,i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location");try{const e=n.document.referrer;e&&(g=e,d===c.top&&(f=!0))}catch(e){}!g&&t&&t[p-1]&&(g=t[p-1],d===c.top&&(b=!0)),g&&!m&&(l=g)}else{if(o&&(g=o,l=g,m=!1,d===c.top)){f=!0;const e=a(d.document);e&&(u=e)}d.context&&d.context.sourceUrl&&(h=!0)}e.push(g),p++}while(d!==c.top&&p<n);e.reverse();try{g=c.top.document.referrer}catch(e){}const y=f||b?l:null,v=r.$W.getConfig("pageUrl")||u||null;let E=r.$W.getConfig("pageUrl")||y||o(v,c);return y&&y.indexOf("?")>-1&&-1===E.indexOf("?")&&(E=`${E}${y.substring(y.indexOf("?"))}`),{reachedTop:f,isAmp:m,numIframes:p-1,stack:e,topmostLocation:l||null,location:y,canonicalUrl:v,page:E,domain:s(E)||null,ref:g||null,legacy:{reachedTop:f,isAmp:m,numIframes:p-1,stack:e,referer:l||null,canonicalUrl:v}}}));var c},10939:(e,t,n)=>{n.d(t,{H:()=>l});var r=n(13064),i=n(10466);let o=null,s=0,a=[];function d(){document.hidden?o=Date.now():(s+=Date.now()-(o??0),o=null,a.forEach(e=>{let{callback:t,startTime:n,setTimerId:r}=e;return r(c(t,s-n)())}),a=[])}function c(e,t){const n=s;let r=setTimeout(()=>{s===n&&null==o?e():null!=o?a.push({callback:e,startTime:n,setTimerId(e){r=e}}):r=c(e,s-n)()},t);return()=>r}function l(){let{startTime:e=i.timestamp,ttl:t=()=>null,monotonic:n=!1,slack:o=5e3}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const s=new Map,a=[],d=[],l=n?e=>d.push(e):e=>d.splice((0,i.binarySearch)(d,e,e=>e.expiry),0,e);let u,g;function f(){if(g&&clearTimeout(g),d.length>0){const e=(0,i.timestamp)();u=Math.max(e,d[0].expiry+o),g=c(()=>{const e=(0,i.timestamp)();let t=0;for(const n of d){if(n.expiry>e)break;a.forEach(e=>{try{e(n.item)}catch(e){(0,i.logError)(e)}}),s.delete(n.item),t++}d.splice(0,t),g=null,f()},u-e)}else g=null}function p(n){const i={},s=m;let a;const[d,c]=Object.entries({start:e,delta:t}).map(e=>{let t,[d,c]=e;return function(){const e=t={};r.U9.resolve(c(n)).then(n=>{e===t&&(i[d]=n,s===m&&null!=i.start&&null!=i.delta&&(a=i.start+i.delta,l(p),(null==g||u>a+o)&&f()))})}}),p={item:n,refresh:c,get expiry(){return a}};return d(),c(),p}let m={};return{[Symbol.iterator]:()=>s.keys(),add(e){!s.has(e)&&s.set(e,p(e))},has:e=>s.has(e),delete(e){const t=s.get(e);if(t)for(let e=0;e<d.length&&d[e].expiry<=t.expiry;e++)if(d[e]===t){d.splice(e,1);break}return s.delete(e)},clear(){d.length=0,f(),s.clear(),m={}},toArray:()=>Array.from(s.keys()),refresh(){d.length=0,f();for(const e of s.values())e.refresh()},onExpiry:e=>(a.push(e),()=>{const t=a.indexOf(e);t>=0&&a.splice(t,1)})}}document.addEventListener("visibilitychange",d)},11418:(e,t,n)=>{n.d(t,{IY:()=>A,M:()=>i,RW:()=>f,Tf:()=>m,UE:()=>c,XQ:()=>o,Zh:()=>u,_B:()=>v,as:()=>a,cA:()=>d,h0:()=>h,iD:()=>r,jO:()=>b,nl:()=>E,oA:()=>y,qY:()=>s,tl:()=>p,x5:()=>g,xS:()=>l});const r={PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},i="pbjs_debug",o={GOOD:1},s={AUCTION_INIT:"auctionInit",AUCTION_TIMEOUT:"auctionTimeout",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_REJECTED:"bidRejected",NO_BID:"noBid",SEAT_NON_BID:"seatNonBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",BIDDER_ERROR:"bidderError",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",BEFORE_BIDDER_HTTP:"beforeBidderHttp",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",AD_RENDER_SUCCEEDED:"adRenderSucceeded",TCF2_ENFORCEMENT:"tcf2Enforcement",AUCTION_DEBUG:"auctionDebug",BID_VIEWABLE:"bidViewable",STALE_RENDER:"staleRender",EXPIRED_RENDER:"expiredRender",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted",RUN_PAAPI_AUCTION:"paapiRunAuction",PBS_ANALYTICS:"pbsAnalytics",PAAPI_BID:"paapiBid",PAAPI_NO_BID:"paapiNoBid",PAAPI_ERROR:"paapiError",BEFORE_PBS_HTTP:"beforePBSHttp",BROWSI_INIT:"browsiInit",BROWSI_DATA:"browsiData",BROWSER_INTERVENTION:"browserIntervention"},a={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},d={bidWon:"adUnitCode"},c={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},l={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host",ADOMAIN:"hb_adomain",ACAT:"hb_acat",CRID:"hb_crid",DSP:"hb_dsp",VERSION:"hb_ver"},u={BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_HOST:"hb_cache_host",VERSION:"hb_ver"},g={title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice",rendererUrl:"hb_renderer_url",adTemplate:"hb_adTemplate"},f={SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},p={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},m={INVALID:"Bid has missing or invalid properties",INVALID_REQUEST_ID:"Invalid request ID",BIDDER_DISALLOWED:"Bidder code is not allowed by allowedAlternateBidderCodes / allowUnknownBidderCodes",FLOOR_NOT_MET:"Bid does not meet price floor",CANNOT_CONVERT_CURRENCY:"Unable to convert currency",DSA_REQUIRED:"Bid does not provide required DSA transparency info",DSA_MISMATCH:"Bid indicates inappropriate DSA rendering method",PRICE_TOO_HIGH:"Bid price exceeds maximum value"},h={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},b={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},y={ICON:1,MAIN:3},v=["privacyIcon","clickUrl","adTemplate","rendererUrl","type"],E={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event",INTERVENTION:"Prebid Intervention"},A="__pb_locator__"},13064:(e,t,n)=>{n.d(t,{U9:()=>o,cb:()=>s,v6:()=>a});var r=n(51748);const i=(0,r.m)().setTimeout??setTimeout,o=(0,r.m)().Promise??Promise;function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new o(t=>{i(t,e)})}function a(){let e,t,{promiseFactory:n=e=>new o(e)}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function r(e){return t=>e(t)}return{promise:n((n,r)=>{e=n,t=r}),resolve:r(e),reject:r(t)}}},15482:(e,t,n)=>{n.d(t,{S9:()=>l,cT:()=>c,lc:()=>u});var r=n(91933),i=n(10466);const o="minBidCacheTTL";let s=1,a=null;const d=[];function c(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:s)}function l(){return a}function u(e){d.push(e)}r.$W.getConfig("ttlBuffer",e=>{"number"==typeof e.ttlBuffer?s=e.ttlBuffer:(0,i.logError)("Invalid value for ttlBuffer",e.ttlBuffer)}),r.$W.getConfig(o,e=>{const t=a;a=e?.[o],a="number"==typeof a?a:null,t!==a&&d.forEach(e=>e(a))})},16169:(e,t,n)=>{n.d(t,{wU:()=>T});var r=n(32592),i=n(10867),o=n(91780),s=n(10466),a=n(58928),d=n(83435),c=n(26665),l=n(43958),u=n(83367),g=n(91933),f=n(42217),p=n(13064),m=n(51833),h=n(53202),b=n(77610),y=n(45808),v=n(70736),E=n(30183);const A={getRefererInfo:i.EN,findRootDomain:o.S,getWindowTop:s.getWindowTop,getWindowSelf:s.getWindowSelf,getHighEntropySUA:f.FD,getLowEntropySUA:f.zO,getDocument:s.getDocument},w=(0,m.i8)("FPD"),T=(0,r.A_)("sync",e=>{const t=[e,C().catch(()=>null),p.U9.resolve("cookieDeprecationLabel"in navigator&&(0,h.io)(y.Ue,(0,b.s)(v.tp,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch(()=>null)];return p.U9.all(t).then(e=>{let[t,n,r]=e;const i=A.getRefererInfo();if(Object.entries(O).forEach(e=>{let[n,r]=e;const o=r(t,i);o&&Object.keys(o).length>0&&(t[n]=(0,s.mergeDeep)({},o,t[n]))}),n&&(0,d.J)(t,"device.sua",Object.assign({},n,t.device.sua)),r){const e={cdep:r};(0,d.J)(t,"device.ext",Object.assign({},e,t.device.ext))}const o=A.getDocument().documentElement.lang;if(o&&((0,d.J)(t,"site.ext.data.documentLang",o),!(0,a.A)(t,"site.content.language"))){const e=o.split("-")[0];(0,d.J)(t,"site.content.language",e)}t=w(t);for(const e of m.Dy)if((0,m.O$)(t,e)){t[e]=(0,s.mergeDeep)({},U(t,i),t[e]);break}return t})});function I(e){try{return e(A.getWindowTop())}catch(t){return e(A.getWindowSelf())}}function C(){const e=g.$W.getConfig("firstPartyData.uaHints");return Array.isArray(e)&&0!==e.length?A.getHighEntropySUA(e):p.U9.resolve(A.getLowEntropySUA())}function S(e){return(0,c.SH)(e,Object.keys(e))}const O={site(e,t){if(!m.Dy.filter(e=>"site"!==e).some(m.O$.bind(null,e)))return S({page:t.page,ref:t.ref})},device:()=>I(e=>{const t=(0,l.Ot)().screen.width,n=(0,l.Ot)().screen.height,{width:r,height:i}=(0,E.M)();return{w:t,h:n,dnt:(0,u.l)()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift(),ext:{vpw:r,vph:i}}}),regs(){const e={};I(e=>e.navigator.globalPrivacyControl)&&(0,d.J)(e,"ext.gpc","1");const t=g.$W.getConfig("coppa");return"boolean"==typeof t&&(e.coppa=t?1:0),e}},B=(0,s.memoize)(()=>I(e=>{const t=e.document,n=Array.from(t.querySelectorAll('script[type="application/ld+json"]'));let r=[];for(const e of n)try{const t=JSON.parse(e.textContent),n=Array.isArray(t)?t:[t];for(const e of n)if("string"==typeof e.keywords){const t=e.keywords.split(",").map(e=>e.trim()).filter(e=>e.length>0);r.push(...t)}}catch(e){}return r})),R=(0,s.memoize)(()=>I(e=>e.document.querySelector('meta[name="keywords"]')?.content?.split(",").map(e=>e.trim())));function U(e,t){const n=(0,i.gR)(t.page,{noLeadingWww:!0}),r=new Set;return(g.$W.getConfig("firstPartyData.keywords.meta")??1)&&(R()??[]).forEach(e=>r.add(e)),(g.$W.getConfig("firstPartyData.keywords.json")??1)&&(B()??[]).forEach(e=>r.add(e)),S({domain:n,keywords:r.size>0?Array.from(r.keys()).join(","):void 0,publisher:S({domain:A.findRootDomain(n)})})}},18014:(e,t,n)=>{n.r(t),n.d(t,{addEvents:()=>y,clearEvents:()=>E,emit:()=>b,get:()=>m,getEvents:()=>h,has:()=>v,off:()=>p,on:()=>f});var r=n(10466),i=n(11418),o=n(10939),s=n(91933);const a="eventHistoryTTL";let d=null;const c=(0,o.H)({monotonic:!0,ttl:()=>d});s.$W.getConfig(a,e=>{const t=d,n=e?.[a];d="number"==typeof n?1e3*n:null,t!==d&&c.refresh()});let l=Object.values(i.qY);const u=i.cA,g=function(){const e={};function t(e){return l.includes(e)}return{has:t,on:function(n,i,o){if(t(n)){const t=e[n]||{que:[]};o?(t[o]=t[o]||{que:[]},t[o].que.push(i)):t.que.push(i),e[n]=t}else r.logError("Wrong event name : "+n+" Valid event names :"+l)},emit:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];!function(t,n){r.logMessage("Emitting event for: "+t);const i=n[0]||{},o=i[u[t]],s=e[t]||{que:[]};var a=Object.keys(s);const d=[];c.add({eventType:t,args:i,id:o,elapsedTime:r.getPerformanceNow()}),o&&a.includes(o)&&d.push(...s[o].que),d.push(...s.que),(d||[]).forEach(function(e){if(e)try{e(...n)}catch(e){r.logError("Error executing handler:","events.js",e,t)}})}(t,i)},off:function(t,n,i){const o=e[t];r.isEmpty(o)||r.isEmpty(o.que)&&r.isEmpty(o[i])||i&&(r.isEmpty(o[i])||r.isEmpty(o[i].que))||(i?(o[i].que||[]).forEach(function(e){const t=o[i].que;e===n&&t.splice(t.indexOf(e),1)}):(o.que||[]).forEach(function(e){const t=o.que;e===n&&t.splice(t.indexOf(e),1)}),e[t]=o)},get:function(){return e},addEvents:function(e){l=l.concat(e)},getEvents:function(){return c.toArray().map(e=>Object.assign({},e))}}}();r._setEventEmitter(g.emit.bind(g));const{on:f,off:p,get:m,getEvents:h,emit:b,addEvents:y,has:v}=g;function E(){c.clear()}},22517:(e,t,n)=>{n.d(t,{Cf:()=>a,S3:()=>i,Tb:()=>o,WR:()=>s,e4:()=>c,pS:()=>u,qN:()=>d,yB:()=>g,zt:()=>r});const r=["request","imp","bidResponse","response"],[i,o,s,a]=r,[d,c]=["default","pbs"],l=new Set(r);const{registerOrtbProcessor:u,getProcessors:g}=function(){const e={};return{registerOrtbProcessor(t){let{type:n,name:i,fn:o,priority:s=0,dialects:a=[d]}=t;if(!l.has(n))throw new Error(`ORTB processor type must be one of: ${r.join(", ")}`);a.forEach(t=>{e.hasOwnProperty(t)||(e[t]={}),e[t].hasOwnProperty(n)||(e[t][n]={}),e[t][n][i]={priority:s,fn:o}})},getProcessors:t=>e[t]||{}}}()},25291:(e,t,n)=>{n.d(t,{Dk:()=>s,Ez:()=>l,Ii:()=>o,OI:()=>u,TQ:()=>m,U3:()=>b,XG:()=>g,ZI:()=>h,Zw:()=>c,bt:()=>f,e3:()=>p,iK:()=>a,q7:()=>d});var r=n(70736),i=n(32592);const o="component",s=o+"Type",a=o+"Name",d="adapterCode",c="storageType",l="storageKey",u="write",g="configName",f="syncType",p="syncUrl",m="_config";function h(e){return function(t,n,i){const c={[s]:t,[a]:n,[o]:`${t}.${n}`};return t===r.tW&&(c[d]=e(n)),b(Object.assign(c,i))}}const b=(0,i.A_)("sync",e=>e)},26665:(e,t,n)=>{n.d(t,{Et:()=>h,Fq:()=>v,Go:()=>i,KG:()=>g,Lm:()=>y,O8:()=>p,Qd:()=>b,SH:()=>o,Uu:()=>E,cy:()=>m,fp:()=>f});var r=n(91490);function i(e){return(0,r.Q)(e)||{}}function o(e,t){return t.filter(t=>e[t]).reduce((t,n)=>Object.assign(t,{[n]:e[n]}),{})}const s="String",a="Function",d="Number",c="Object",l="Boolean",u=Object.prototype.toString;function g(e,t){return u.call(e)==="[object "+t+"]"}function f(e){return g(e,a)}function p(e){return g(e,s)}const m=Array.isArray.bind(Array);function h(e){return g(e,d)}function b(e){return g(e,c)}function y(e){return g(e,l)}const v=Number.isInteger.bind(Number);function E(e,t){return m(e)&&(!t||e.length===t)&&e.every(e=>v(e))}},32592:(e,t,n)=>{n.d(t,{A_:()=>s,Gc:()=>d,Y6:()=>p,Yn:()=>c,bz:()=>f,pT:()=>l,u2:()=>m,xG:()=>g});var r=n(35481),i=n.n(r),o=n(13064);const s=i()({ready:i().SYNC|i().ASYNC|i().QUEUE}),a=(0,o.v6)();s.ready=(()=>{const e=s.ready;return function(){try{return e.apply(s)}finally{a.resolve()}}})();const d=a.promise,c=s.get;function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:15;0===e.getHooks({hook:t}).length&&e.before(t,n)}const u={};function g(e,t){let{postInstallAllowed:n=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s("async",function(r){r.forEach(e=>t(...e)),n&&(u[e]=t)},e)([])}function f(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=u[e];if(i)return i(...n);c(e).before((e,t)=>{t.push(n),e(t)})}function p(e,t){return Object.defineProperties(t,Object.fromEntries(["before","after","getHooks","removeAll"].map(t=>[t,{get:()=>e[t]}]))),t}function m(e){return p(e,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.push(function(){}),e.apply(this,n)})}},36220:(e,t,n)=>{n.d(t,{E2:()=>m,H6:()=>c,V0:()=>f,Zy:()=>g,mn:()=>l,vk:()=>p});var r=n(26665),i=n(10466),o=n(91933),s=n(32592),a=n(63006),d=n(765);const c="outstream",l="instream",u=[["mimes",e=>Array.isArray(e)&&e.length>0&&e.every(e=>"string"==typeof e)],["minduration",r.Fq],["maxduration",r.Fq],["startdelay",r.Fq],["maxseq",r.Fq],["poddur",r.Fq],["protocols",r.Uu],["w",r.Fq],["h",r.Fq],["podid",r.O8],["podseq",r.Fq],["rqddurs",r.Uu],["placement",r.Fq],["plcmt",r.Fq],["linearity",r.Fq],["skip",e=>[1,0].includes(e)],["skipmin",r.Fq],["skipafter",r.Fq],["sequence",r.Fq],["slotinpod",r.Fq],["mincpmpersec",r.Et],["battr",r.Uu],["maxextended",r.Fq],["minbitrate",r.Fq],["maxbitrate",r.Fq],["boxingallowed",r.Fq],["playbackmethod",r.Uu],["playbackend",r.Fq],["delivery",r.Uu],["pos",r.Fq],["api",r.Uu],["companiontype",r.Uu],["poddedupe",r.Uu]],g=new Map(u);function f(e){const t=e?.mediaTypes?.video;if(null!=t){null==t.plcmt&&(t.context===c||[2,3,4].includes(t.placement)?t.plcmt=4:t.playbackmethod?.some?.(e=>[2,6].includes(e))&&(t.plcmt=2));const n=(0,r.Uu)(t.playerSize,2)?t.playerSize:Array.isArray(t.playerSize)&&(0,r.Uu)(t.playerSize[0])?t.playerSize[0]:null,o=(0,r.Et)(t.w)&&(0,r.Et)(t.h)?[t.w,t.h]:null;let s=!1;null==n?null!=o&&(null!=t.playerSize?s=!0:t.playerSize=[o]):["w","h"].forEach((e,r)=>{null!=t[e]&&t[e]!==n[r]?s=!0:t[e]=n[r]}),s&&(0,i.logWarn)(`Ad unit "${e.code} has conflicting playerSize and w/h`,e)}}function p(e){let{index:t=a.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.getMediaTypes(e)?.video,r=n&&n?.context,i=n&&n?.useCacheKey,o=t.getAdUnit(e);return m(e,o,n,r,i)}const m=(0,s.A_)("sync",function(e,t,n,r,s){if(n&&(s||r!==c)){const{url:t,useLocal:n}=o.$W.getConfig("cache")||{};return t||n||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)(`\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling either prebid cache with ${(0,d.k)()}.setConfig({ cache: {url: "..."} });\n        or local cache with ${(0,d.k)()}.setConfig({ cache: { useLocal: true }});\n      `),!1)}return!(r===c&&!s)||!!(e.renderer||t&&t.renderer||n.renderer)},"checkVideoBidSetup")},37841:(e,t,n)=>{n.d(t,{Ak:()=>h,BO:()=>f,K7:()=>p,NL:()=>b});var r=n(91933);const i="performanceMetrics",o=window.performance&&window.performance.now?()=>window.performance.now():()=>Date.now(),s=new WeakMap;function a(e,t,n){return function(){t&&t();try{for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e.apply(this,i)}finally{n&&n()}}}function d(){let{now:e=o,mkNode:t=l,mkTimer:n=c,mkRenamer:r=e=>e,nodes:i=s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return function o(s){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>({forEach(t){t(e)}});a=r(a);const d=(c="timestamps",function(e){return s.dfWalk({visit(t,n){const r=n[c];if(r.hasOwnProperty(e))return r[e]}})});var c;function l(e,t){const n=a(e);s.dfWalk({follow:(e,t)=>t.propagate&&(!e||!e.stopPropagation),visit(e,r){n.forEach(n=>{null==e?r.metrics[n]=t:(r.groups.hasOwnProperty(n)||(r.groups[n]=[]),r.groups[n].push(t))})}})}function u(t){return n(e,e=>l(t,e))}function g(){let e={};return s.dfWalk({visit(t,n){e=Object.assign({},!t||t.includeGroups?n.groups:null,n.metrics,e)}}),e}const f={startTiming:u,measureTime:function(e,t){return u(e).stopAfter(t)()},measureHookTime:function(e,t,n){const r=u(e);return n(function(e){const t=r.stopBefore(e);return t.bail=e.bail&&r.stopBefore(e.bail),t.stopTiming=r,t.untimed=e,t}(t))},checkpoint:function(t){s.timestamps[t]=e()},timeSince:function(t,n){const r=d(t),i=null!=r?e()-r:null;return null!=n&&l(n,i),i},timeBetween:function(e,t,n){const r=d(e),i=d(t),o=null!=r&&null!=i?i-r:null;return null!=n&&l(n,o),o},setMetric:l,getMetrics:g,fork:function(){let{propagate:e=!0,stopPropagation:n=!1,includeGroups:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(t([[s,{propagate:e,stopPropagation:n,includeGroups:r}]]),a)},join:function(e){let{propagate:t=!0,stopPropagation:n=!1,includeGroups:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=i.get(e);null!=o&&o.addParent(s,{propagate:t,stopPropagation:n,includeGroups:r})},newMetrics:function(){return o(s.newSibling(),a)},renameWith:function(e){return o(s,e)},toJSON:()=>g()};return i.set(f,s),f}(t([]))}}function c(e,t){const n=e();let r=!1;function i(){r||(t(e()-n),r=!0)}return i.stopBefore=e=>a(e,i),i.stopAfter=e=>a(e,null,i),i}function l(e){return{metrics:{},timestamps:{},groups:{},addParent(t,n){e.push([t,n])},newSibling:()=>l(e.slice()),dfWalk(){let t,{visit:n,follow:r=()=>!0,visited:i=new Set,inEdge:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!i.has(this)){if(i.add(this),t=n(o,this),null!=t)return t;for(const[s,a]of e)if(r(o,a)&&(t=s.dfWalk({visit:n,follow:r,visited:i,inEdge:a}),null!=t))return t}}}}const u=(()=>{const e=function(){},t=()=>({}),n={forEach:e},r=()=>null;r.stopBefore=e=>e,r.stopAfter=e=>e;const i=Object.defineProperties({dfWalk:e,newSibling:()=>i,addParent:e},Object.fromEntries(["metrics","timestamps","groups"].map(e=>[e,{get:t}])));return d({now:()=>0,mkNode:()=>i,mkRenamer:()=>()=>n,mkTimer:()=>r,nodes:{get:e,set:e}})()})();let g=!0;function f(e){return g&&e||u}r.$W.getConfig(i,e=>{g=!!e[i]});const p=(()=>{const e=d();return function(){return g?e():u}})();function m(e,t){return function(n,r){var i=this;return function(o){for(var s=arguments.length,a=new Array(s>1?s-1:0),d=1;d<s;d++)a[d-1]=arguments[d];return f(t.apply(i,a)).measureHookTime(e+n,o,e=>r.call(i,e,...a))}}}const h=m("requestBids.",e=>e.metrics),b=m("addBidResponse.",(e,t)=>t.metrics)},40069:(e,t,n)=>{n.d(t,{mZ:()=>o});var r=n(10466),i=n(83435);const o=(0,n(32592).A_)("sync",function(e){return[s,a].forEach(t=>function(e,t){t.global=e(t.global,"global FPD"),Object.entries(t.bidder).forEach(n=>{let[r,i]=n;t.bidder[r]=e(i,`bidder '${r}' FPD`)})}(t,e)),e});function s(e,t){if(!e)return e;const n=[],o=[...(e?.user?.eids??[]).map(e=>[0,e]),...(e?.user?.ext?.eids??[]).map(e=>[1,e])].filter(e=>{let[i,o]=e;return n.findIndex(e=>{let[t,n]=e;return i!==t&&(0,r.deepEqual)(n,o)})>-1?((0,r.logWarn)(`Found duplicate EID in user.eids and user.ext.eids (${t})`,o),!1):(n.push([i,o]),!0)});return o.length>0&&(0,i.J)(e,"user.ext.eids",o.map(e=>{let[t,n]=e;return n})),delete e?.user?.eids,e}function a(e,t){if(!e)return e;const n=e.source?.schain,o=e.source?.ext?.schain;return null==n||null==o||(0,r.deepEqual)(n,o)||(0,r.logWarn)(`Conflicting source.schain and source.ext.schain (${t}), preferring source.schain`,{"source.schain":n,"source.ext.schain":o}),null!=(n??o)&&(0,i.J)(e,"source.ext.schain",n??o),delete e.source?.schain,e}},41385:(e,t,n)=>{n.d(t,{B1:()=>a,SL:()=>v,ad:()=>m,et:()=>h,mW:()=>f,o2:()=>b,t6:()=>p});var r=n(10466),i=n(26665),o=n(13064),s=n(91933);const a=Object.freeze({}),d="gdpr",c="gpp",l="usp",u="coppa";class g{#e;#t;#n;#r;#i=!0;#o;constructor(){this.reset()}#s(e){this.#r=!0,this.#t=e,this.#n.resolve(e)}reset(){this.#n=(0,o.v6)(),this.#e=!1,this.#t=null,this.#r=!1,this.generatedTime=null}enable(){this.#e=!0}get enabled(){return this.#e}get ready(){return this.#r}get promise(){return this.#r?o.U9.resolve(this.#t):(this.#e||this.#s(null),this.#n.promise)}setConsentData(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.timestamp)();this.generatedTime=t,this.#i=!0,this.#s(e)}getConsentData(){return this.#e?this.#t:null}get hash(){return this.#i&&(this.#o=(0,r.cyrb53Hash)(JSON.stringify(this.#t&&this.hashFields?this.hashFields.map(e=>this.#t[e]):this.#t)),this.#i=!1),this.#o}}const f=new class extends g{hashFields=["gdprApplies","consentString"];getConsentMeta(){const e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,i.O8)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}},p=new class extends g{getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},m=new class extends g{hashFields=["applicableSections","gppString"];getConsentMeta(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}},h=(()=>{function e(){return!!s.$W.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset(){},get promise(){return o.U9.resolve(e())},get hash(){return e()?"1":"0"}}})(),b=function(){const e={},t={},n={};return{register(r,i,o){o&&((e[i]=e[i]||{})[r]=o,t.hasOwnProperty(i)?t[i]!==o&&(t[i]=n):t[i]=o)},get(r){const i={modules:e[r]||{}};return t.hasOwnProperty(r)&&t[r]!==n&&(i.gvlid=t[r]),i}}}(),y={[d]:f,[l]:p,[c]:m,[u]:h};const v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;const t=Object.entries(e);return Object.assign({get promise(){return o.U9.all(t.map(e=>{let[t,n]=e;return n.promise.then(e=>[t,e])})).then(e=>Object.fromEntries(e))},get hash(){return(0,r.cyrb53Hash)(t.map(e=>{let[t,n]=e;return n.hash}).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map(e=>{return[e,(n=e,function(){return Object.fromEntries(t.map(e=>{let[t,r]=e;return[t,r[n]()]}))})];var n})))}()},42217:(e,t,n)=>{n.d(t,{CP:()=>u,FD:()=>l,zO:()=>c});var r=n(10466),i=n(26665),o=n(13064);const s=2,a=["architecture","bitness","model","platformVersion","fullVersionList"],d=["brands","mobile","platform"],c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator?.userAgentData;const t=e&&d.some(t=>void 0!==e[t])?Object.freeze(g(1,e)):null;return function(){return t}}(),l=u();function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator?.userAgentData;const t={},n=new WeakMap;return function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;if(!n.has(i)){const e=Array.from(i);e.sort(),n.set(i,e.join("|"))}const d=n.get(i);if(!t.hasOwnProperty(d))try{t[d]=e.getHighEntropyValues(i).then(e=>(0,r.isEmpty)(e)?null:Object.freeze(g(s,e))).catch(()=>null)}catch(e){t[d]=o.U9.resolve(null)}return t[d]}}function g(e,t){function n(e,t){const n={brand:e};return(0,i.O8)(t)&&!(0,r.isEmptyStr)(t)&&(n.version=t.split(".")),n}const o={source:e};return t.platform&&(o.platform=n(t.platform,t.platformVersion)),(t.fullVersionList||t.brands)&&(o.browsers=(t.fullVersionList||t.brands).map(e=>{let{brand:t,version:r}=e;return n(t,r)})),void 0!==t.mobile&&(o.mobile=t.mobile?1:0),["model","bitness","architecture"].forEach(e=>{const n=t[e];(0,i.O8)(n)&&(o[e]=n)}),o}},43958:(e,t,n)=>{n.d(t,{Vv:()=>d,Ot:()=>s,Bp:()=>a});var r=n(10466);const i=new function e(t,n){const r={};let i={};const o=[];Object.entries(n).forEach(n=>{let[s,a]=n;if(null!=a&&"object"==typeof a){const n=new e(()=>t()?.[s],a);r[s]=n.obj,o.push(n.reset)}else!0===a&&Object.defineProperty(r,s,{get:()=>(i.hasOwnProperty(s)||(i[s]=t()?.[s]),i[s])})}),this.obj=r,this.reset=function(){o.forEach(e=>e()),i={}}}(()=>(0,r.canAccessWindowTop)()?r.internal.getWindowTop():r.internal.getWindowSelf(),{innerHeight:!0,innerWidth:!0,screen:{width:!0,height:!0},visualViewport:{width:!0,height:!0},document:{documentElement:{clientWidth:!0,clientHeight:!0,scrollTop:!0,scrollLeft:!0},body:{scrollTop:!0,scrollLeft:!0,clientWidth:!0,clientHeight:!0}}}),o={reset:i.reset},s=(()=>{let e;return function(){return(!e||Date.now()-e>20)&&(o.reset(),e=Date.now()),i.obj}})();function a(){o.reset()}function d(e){const t=e??((0,r.canAccessWindowTop)()?r.internal.getWindowTop():r.internal.getWindowSelf()),n=t?.screen??r.internal.getWindowSelf()?.screen??window?.screen,i=Number(n?.width),o=Number(n?.height);if(Number.isFinite(i)&&Number.isFinite(o))return o>=i?"portrait":"landscape"}},45144:(e,t,n)=>{n.d(t,{HH:()=>c,kj:()=>d,xh:()=>a});var r=n(13064),i=n(10466),o=n(63293),s=n(32592);const a=3,d=(0,s.A_)("sync",function(e){return o.G}),c=function(){const e={};return function(t){const n=d(t);return e.hasOwnProperty(n)||(e[n]=new r.U9(e=>{const t=(0,i.createInvisibleIframe)();t.srcdoc=`<script>${n}<\/script>`,t.onload=()=>e(t.contentWindow.render),document.body.appendChild(t)})),e[n]}}()},45808:(e,t,n)=>{n.d(t,{DL:()=>l,Ml:()=>i,Ue:()=>r,VJ:()=>g,hE:()=>u,hq:()=>c,mo:()=>d,pY:()=>f,qX:()=>o,uc:()=>a,yg:()=>p,yl:()=>s});const r="accessDevice",i="syncUser",o="enrichUfpd",s="enrichEids",a="fetchBids",d="reportAnalytics",c="transmitEids",l="transmitUfpd",u="transmitPreciseGeo",g="transmitTid",f="loadExternalScript",p="accessRequestCredentials"},51409:(e,t,n)=>{n.d(t,{S1:()=>N,Ay:()=>ie,tS:()=>K,pX:()=>X,Mf:()=>Z,K5:()=>H,Gs:()=>Y});var r=n(26665),i=n(10466),o=n(80356),s=n(3516),a=n(62201),d=n(91933),c=n(32592);const l="requests",u="wins",g="auctions";let f={};function p(e,t){const n=f[e]=f[e]||{bidders:{}};return t?(n.bidders[t]=n.bidders[t]||{},n.bidders[t]):n}function m(e,t){return function(n,r){const i=p(n,t&&r);return i[e]=(i[e]??0)+1,i[e]}}function h(e,t){return function(n,r){return p(n,t&&r)[e]??0}}const b=m(l,!1),y=m(l,!0),v=m(u,!0),E=m(g,!1),A=h(l,!1),w=h(l,!0),T=h(u,!0),I=h(g,!1);var C=n(10867),S=n(41385),O=n(18014),B=n(11418),R=n(37841),U=n(63006),k=n(70736),D=n(53202),_=n(45808),$=n(25291),q=n(53578),x=n(72122),W=n(51748);const j="pbsBidAdapter",N={CLIENT:"client",SERVER:"server"},P={isAllowed:D.io,redact:q.$p},M={},F={},G={};let L=[];d.$W.getConfig("s2sConfig",e=>{e&&e.s2sConfig&&(L=(0,r.cy)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])});const z=(0,$.ZI)(e=>ee.resolveAlias(e));function V(e){return e.configName??e.name}function H(e){return z(k.tp,j,{[$.XG]:V(e)})}const Q=["nativeParams","nativeOrtbRequest","renderer"];function J(e){let{bidderCode:t,auctionId:n,bidderRequestId:o,adUnits:s,src:a,metrics:d,getTid:c}=e;return s.reduce((e,s)=>{const l=s.bids.filter(e=>e.bidder===t);return null==t&&0===l.length&&null!=s.s2sBid&&l.push({bidder:null}),e.push(l.reduce((e,l)=>{const[u,g]=c(l.bidder,s.transactionId,l.ortb2Imp?.ext?.tid??s.ortb2Imp?.ext?.tid),f=null==(l=Object.assign({},l,{ortb2Imp:(0,i.mergeDeep)({},s.ortb2Imp,l.ortb2Imp,{ext:{tid:u,tidSource:g}})},(0,r.SH)(s,Q))).mediaTypes?s.mediaTypes:l.mediaTypes;return(0,i.isValidMediaTypes)(f)?l=Object.assign({},l,{mediaTypes:f}):(0,i.logError)(`mediaTypes is not correctly configured for adunit ${s.code}`),"client"===a&&y(s.code,t),e.push(Object.assign({},l,{adUnitCode:s.code,transactionId:s.transactionId,adUnitId:s.adUnitId,sizes:f?.banner?.sizes||f?.video?.playerSize||[],bidId:l.bid_id||(0,i.generateUUID)(),bidderRequestId:o,auctionId:n,src:a,metrics:d,auctionsCount:I(s.code),bidRequestsCount:A(s.code),bidderRequestsCount:w(s.code,l.bidder),bidderWinsCount:T(s.code,l.bidder),deferBilling:!!s.deferBilling})),e},[])),e},[]).reduce(i.flatten,[]).filter(e=>""!==e)}const K=(0,c.A_)("sync",function(e,t){let{getS2SBidders:n=X}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null==t)return e;{const r=n(t);return e.filter(e=>{if(!r.has(e.bidder))return!1;if(null==e.s2sConfigName)return!0;const n=V(t);return(Array.isArray(e.s2sConfigName)?e.s2sConfigName:[e.s2sConfigName]).includes(n)})}},"filterBidsForAdUnit");const Y=(0,c.A_)("sync",(e,t)=>e,"setupAdUnitMediaTypes");function X(e){(0,r.cy)(e)||(e=[e]);const t=new Set([null]);return e.filter(e=>e&&e.enabled).flatMap(e=>e.bidders).forEach(e=>t.add(e)),t}const Z=(0,c.A_)("sync",function(e,t){let{getS2SBidders:n=X}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n(t);return(0,i.getBidderCodes)(e).reduce((e,t)=>(e[r.has(t)?N.SERVER:N.CLIENT].push(t),e),{[N.CLIENT]:[],[N.SERVER]:[]})},"partitionBidders");const ee={bidderRegistry:M,analyticsRegistry:G,aliasRegistry:F,makeBidRequests:(0,c.A_)("sync",function(e,t,n,s,a){let c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=arguments.length>6?arguments[6]:void 0;l=(0,R.BO)(l),O.emit(B.qY.BEFORE_REQUEST_BIDS,e),(0,o.nk)(e),e.map(e=>e.code).filter(i.uniques).forEach(E),e.forEach(e=>{(0,r.Qd)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter(e=>!e.bidder||P.isAllowed(_.uc,z(k.tW,e.bidder))),b(e.code)}),e=Y(e,a);let{[N.CLIENT]:u,[N.SERVER]:g}=Z(e,L);d.$W.getConfig("bidderSequence")===d.Ov&&(u=(0,i.shuffle)(u));const f=(0,C.EN)(),p=[],m=c.global||{},h=c.bidder||{},y=function(){let e,t;return d.$W.getConfig("consistentTIDs")?(e="pbjsStable",t=e=>e):(e="pbjs",t=(()=>{const e={};return(t,n)=>(e.hasOwnProperty(n)||(e[n]={}),e[n].hasOwnProperty(t)||(e[n][t]=`u${(0,i.generateUUID)()}`),e[n][t])})()),function(n,r,i){return[i??t(r,n),null!=i?"pub":e]}}();function v(e,t){const n=P.redact(null!=t?t:z(k.tW,e.bidderCode)),[r,o]=y(e.bidderCode,e.auctionId,h[e.bidderCode]?.source?.tid??m.source?.tid),s=Object.freeze(n.ortb2((0,i.mergeDeep)({},m,h[e.bidderCode],{source:{tid:r,ext:{tidSource:o}}})));return e.ortb2=s,e.bids=e.bids.map(e=>(e.ortb2=s,n.bidRequest(e))),e}const A=(0,W.m)();function w(e){return A.pageViewIdPerBidder.has(e)||A.pageViewIdPerBidder.set(e,(0,i.generateUUID)()),A.pageViewIdPerBidder.get(e)}L.forEach(o=>{const s=H(o);if(o&&o.enabled&&P.isAllowed(_.uc,s)){const{adUnits:a,hasModuleBids:d}=function(e,t){let n=(0,r.Go)(e),o=!1;return n.forEach(e=>{const n=e.bids.filter(e=>e.module===j&&e.params?.configName===V(t));1===n.length?(e.s2sBid=n[0],o=!0,e.ortb2Imp=(0,i.mergeDeep)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&(0,i.logWarn)('Multiple "module" bids for the same s2s configuration; all will be ignored',n),e.bids=K(e.bids,t).map(e=>(e.bid_id=(0,i.getUniqueIdentifierStr)(),e))}),n=n.filter(e=>!(t.filterBidderlessCalls&&1===e.bids.length&&null==e.bids[0].bidder||0===e.bids.length&&null==e.s2sBid)),{adUnits:n,hasModuleBids:o}}(e,o),c=(0,i.generateUUID)();(0===g.length&&d?[null]:g).forEach(e=>{const d=(0,i.generateUUID)(),u=w(e),g=l.fork(),m=v({bidderCode:e,auctionId:n,bidderRequestId:d,pageViewId:u,uniquePbsTid:c,bids:J({bidderCode:e,auctionId:n,bidderRequestId:d,adUnits:(0,r.Go)(a),src:B.RW.SRC,metrics:g,getTid:y}),auctionStart:t,timeout:o.timeout,src:B.RW.SRC,refererInfo:f,metrics:g},s);0!==m.bids.length&&p.push(m)}),a.forEach(e=>{const t=e.bids.filter(e=>p.find(t=>t.bids.find(t=>t.bidId===e.bid_id)));e.bids=t}),p.forEach(e=>{void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=a.filter(e=>e.bids.length>0||null!=e.s2sBid))})}});const T=function(e){let t=(0,r.Go)(e);return t.forEach(e=>{e.bids=K(e.bids,null)}),t=t.filter(e=>0!==e.bids.length),t}(e);return u.forEach(e=>{const o=(0,i.generateUUID)(),a=w(e),d=l.fork(),c=v({bidderCode:e,auctionId:n,pageViewId:a,bidderRequestId:o,bids:J({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:(0,r.Go)(T),src:"client",metrics:d,getTid:y}),auctionStart:t,timeout:s,refererInfo:f,metrics:d}),u=M[e];u||(0,i.logError)(`Trying to make a request for bidder that does not exist: ${e}`),u&&c.bids&&0!==c.bids.length&&p.push(c)}),p.forEach(e=>{S.mW.getConsentData()&&(e.gdprConsent=S.mW.getConsentData()),S.t6.getConsentData()&&(e.uspConsent=S.t6.getConsentData()),S.ad.getConsentData()&&(e.gppConsent=S.ad.getConsentData())}),p},"makeBidRequests"),callBids(e,t,n,r,o,s,c){let l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(!t.length)return void(0,i.logWarn)("callBids executed with no bidRequests.  Were they filtered by labels or sizing?");const[u,g]=t.reduce((e,t)=>(e[Number(void 0!==t.src&&t.src===B.RW.SRC)].push(t),e),[[],[]]);var f=[];g.forEach(e=>{for(var t=-1,n=0;n<f.length;++n)if(e.uniquePbsTid===f[n].uniquePbsTid){t=n;break}t<=-1&&f.push(e)});let p=0;L.forEach(e=>{if(e&&f[p]&&X(e).has(f[p].bidderCode)){const t=(0,a.g4)(s,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),d=e.bidders,u=M[e.adapter],m=f[p].uniquePbsTid,h=f[p].adUnitsS2SCopy,b=g.filter(e=>e.uniquePbsTid===m);if(u){const o={ad_units:h,s2sConfig:e,ortb2Fragments:l,requestBidsTimeout:s};if(o.ad_units.length){const e=b.map(e=>(e.start=(0,i.timestamp)(),function(t){t||c(e.bidderRequestId);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r.apply(e,[t,...i])})),s=(0,i.getBidderCodes)(o.ad_units).filter(e=>d.includes(e));(0,i.logMessage)(`CALLING S2S HEADER BIDDERS ==== ${s.length>0?s.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only'}`),b.forEach(e=>{O.emit(B.qY.BID_REQUESTED,{...e,tid:e.auctionId})}),u.callBids(o,g,n,t=>e.forEach(e=>e(t)),t)}}else(0,i.logError)("missing "+e.adapter);p++}}),u.forEach(e=>{e.start=(0,i.timestamp)();const t=M[e.bidderCode];d.$W.runWithBidder(e.bidderCode,()=>{(0,i.logMessage)("CALLING BIDDER"),O.emit(B.qY.BID_REQUESTED,e)});const l=(0,a.g4)(s,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),u=r.bind(e);try{d.$W.runWithBidder(e.bidderCode,t.callBids.bind(t,e,n,u,l,()=>c(e.bidderRequestId),d.$W.callbackWithBidder(e.bidderCode)))}catch(t){(0,i.logError)(`${e.bidderCode} Bid Adapter emitted an uncaught error when parsing their bidRequest`,{e:t,bidRequest:e}),u()}})},videoAdapters:[],registerBidAdapter(e,t){let{supportedMediaTypes:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&t?"function"==typeof e.callBids?(M[t]=e,S.o2.register(k.tW,t,e.getSpec?.().gvlid),n.includes("video")&&ee.videoAdapters.push(t),n.includes("native")&&o.mT.push(t)):(0,i.logError)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):(0,i.logError)("bidAdapter or bidderCode not specified")},aliasBidAdapter(e,t,n){if(void 0===M[t]){const r=M[e];if(void 0===r){const n=[];L.forEach(r=>{if(r.bidders&&r.bidders.length){const i=r&&r.bidders;r&&i.includes(t)?F[t]=e:n.push(e)}}),n.forEach(e=>{(0,i.logError)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")})}else try{let a;const d=function(e){const t=[];ee.videoAdapters.includes(e)&&t.push("video");o.mT.includes(e)&&t.push("native");return t}(e);if(r.constructor.prototype!==Object.prototype)a=new r.constructor,a.setBidderCode(t);else{const{useBaseGvlid:o=!1}=n||{},d=r.getSpec(),c=o?d.gvlid:n?.gvlid;null==c&&null!=d.gvlid&&(0,i.logWarn)(`Alias '${t}' will NOT re-use the GVL ID of the original adapter ('${d.code}', gvlid: ${d.gvlid}). Functionality that requires TCF consent may not work as expected.`);const l=n&&n.skipPbsAliasing;a=(0,s.xb)(Object.assign({},d,{code:t,gvlid:c,skipPbsAliasing:l})),F[t]=e}ee.registerBidAdapter(a,t,{supportedMediaTypes:d})}catch(t){(0,i.logError)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,i.logMessage)('alias name "'+t+'" has been already specified.')},resolveAlias(e){let t,n=e;for(;F[n]&&(!t||!t.has(n));)n=F[n],(t=t||new Set).add(n);return n},registerAnalyticsAdapter(e){let{adapter:t,code:n,gvlid:r}=e;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,G[n]={adapter:t,gvlid:r},S.o2.register(k.Tn,n,r)):(0,i.logError)(`Prebid Error: Analytics adaptor error for analytics "${n}"\n        analytics adapter must implement an enableAnalytics() function`):(0,i.logError)("Prebid Error: analyticsAdapter or analyticsCode not specified")},enableAnalytics(e){(0,r.cy)(e)||(e=[e]),e.forEach(e=>{const t=G[e.provider];t&&t.adapter?P.isAllowed(_.mo,z(k.Tn,e.provider,{[$.TQ]:e}))&&t.adapter.enableAnalytics(e):(0,i.logError)(`Prebid Error: no analytics adapter found in registry for '${e.provider}'.`)})},getBidAdapter:e=>M[e],getAnalyticsAdapter:e=>G[e],callTimedOutBidders(e,t,n){t=t.map(t=>(t.params=(0,i.getUserConfiguredParams)(e,t.adUnitCode,t.bidder),t.timeout=n,t)),t=(0,i.groupBy)(t,"bidder"),Object.keys(t).forEach(e=>{re(e,"onTimeout",t[e])})},callBidWonBidder(e,t,n){t.params=(0,i.getUserConfiguredParams)(n,t.adUnitCode,t.bidder),v(t.adUnitCode,t.bidder),re(e,"onBidWon",t)},triggerBilling:(()=>{const e=new WeakSet;return t=>{e.has(t)||(e.add(t),((0,x.$T)(t.eventtrackers)[x.OA]?.[x.Ni]||[]).forEach(e=>i.internal.triggerPixel(e)),re(t.bidder,"onBidBillable",t))}})(),callSetTargetingBidder(e,t){re(e,"onSetTargeting",t)},callBidViewableBidder(e,t){re(e,"onBidViewable",t)},callBidderError(e,t,n){re(e,"onBidderError",{error:t,bidderRequest:n})},callAdRenderSucceededBidder(e,t){re(e,"onAdRenderSucceeded",t)},callOnInterventionBidder(e,t,n){re(e,"onIntervention",{bid:t,intervention:n})},callDataDeletionRequest:(0,c.A_)("sync",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r="onDataDeletionRequest";Object.keys(M).filter(e=>!F.hasOwnProperty(e)).forEach(e=>{const n=te(e,r);if(null!=n){const i=U.n.getBidsRequested().filter(t=>function(e){const t=new Set;for(;F.hasOwnProperty(e)&&!t.has(e);)t.add(e),e=F[e];return e}(t.bidderCode)===e);ne(e,r,...n,i,...t)}}),Object.entries(G).forEach(e=>{let[n,o]=e;const s=o?.adapter?.[r];if("function"==typeof s)try{s.apply(o.adapter,t)}catch(e){(0,i.logError)(`error calling ${r} of ${n}`,e)}})})};function te(e,t){const n=M[e],r=n?.getSpec&&n.getSpec();if(r&&r[t]&&"function"==typeof r[t])return[r,r[t]]}function ne(e,t,n,r){try{(0,i.logInfo)(`Invoking ${e}.${t}`);for(var o=arguments.length,s=new Array(o>4?o-4:0),a=4;a<o;a++)s[a-4]=arguments[a];d.$W.runWithBidder(e,r.bind(n,...s))}catch(n){(0,i.logWarn)(`Error calling ${t} of ${e}`)}}function re(e,t,n){if(n?.source!==B.RW.SRC){const r=te(e,t);null!=r&&ne(e,t,...r,n)}}const ie=ee},51640:(e,t,n)=>{n.d(t,{M_:()=>u,Sb:()=>g,X5:()=>v,kh:()=>c});var r=n(62201),i=n(91933),o=n(63006),s=n(10466),a=n(71186);const d=15,c=new Map;function l(e){return e.vastXml?e.vastXml:(t=e.vastUrl,n=e.vastImpUrl,`<VAST version="3.0">\n    <Ad>\n      <Wrapper>\n        <AdSystem>prebid.org wrapper</AdSystem>\n        <VASTAdTagURI><![CDATA[${t}]]></VASTAdTagURI>\n        ${(n=n&&(Array.isArray(n)?n:[n]))?n.map(e=>`<Impression><![CDATA[${e}]]></Impression>`).join(""):""}\n        <Creatives></Creatives>\n      </Wrapper>\n    </Ad>\n  </VAST>`);var t,n}function u(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.g4;const s={puts:e.map(e=>function(e){let{index:t=o.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=l(e),r=t.getAuction(e),s={type:"xml",value:n,ttlseconds:Number(e.ttl)+d};return i.$W.getConfig("cache.vasttrack")&&(s.bidder=e.bidder,s.bidid=e.requestId,s.aid=e.auctionId),null!=r&&(s.timestamp=r.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(s.key=e.customCacheKey),s}(e))};n(i.$W.getConfig("cache.timeout"))(i.$W.getConfig("cache.url"),function(e){return{success:function(t){let n;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,n){e(new Error(`Error storing video ad in the cache: ${t}: ${JSON.stringify(n)}`),[])}}}(t),JSON.stringify(s),{contentType:"text/plain",withCredentials:!0})}const g=e=>{const t=l(e),n=URL.createObjectURL(new Blob([t],{type:"text/xml"}));f(e,n),c.set(e.videoCacheKey,n)},f=(e,t,n)=>{e.videoCacheKey=n||(0,s.generateUUID)(),e.vastUrl||(e.vastUrl=t)},p={store:u};function m(e){const t=e.map(e=>e.bidResponse);p.store(t,function(n,r){var o;n?(o=n,(0,s.logError)(`Failed to save to the video cache: ${o}. Video bids will be discarded:`,t)):e.length!==r.length?(0,s.logError)(`expected ${e.length} cache IDs, got ${r.length} instead`):r.forEach((t,n)=>{const{auctionInstance:r,bidResponse:o,afterBidAdded:d}=e[n];var c;""===t.uuid?(0,s.logWarn)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(f(o,(c=t.uuid,`${i.$W.getConfig("cache.url")}?uuid=${c}`),t.uuid),(0,a.v8)(r,o),d())})})}let h,b,y;i.$W.getConfig("cache",e=>{let{cache:t}=e;h="number"==typeof t.batchSize&&t.batchSize>0?t.batchSize:1,b="number"==typeof t.batchTimeout&&t.batchTimeout>0?t.batchTimeout:0,t.useLocal&&!y&&(y=o.n.onExpiry(e=>{e.getBidsReceived().forEach(e=>{const t=c.get(e.videoCacheKey);t&&t.startsWith("blob")&&URL.revokeObjectURL(t),c.delete(e.videoCacheKey)})}))});const v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m,n=[[]],r=!1;const i=e=>e();return function(o,s,a){const d=b>0?e:i;n[n.length-1].length>=h&&n.push([]),n[n.length-1].push({auctionInstance:o,bidResponse:s,afterBidAdded:a}),r||(r=!0,d(()=>{n.forEach(t),n=[[]],r=!1},b))}}()},51748:(e,t,n)=>{n.d(t,{E:()=>a,m:()=>s});var r=n(765);const i=(0,r.uP)()?window:{},o=i[(0,r.k)()]=i[(0,r.k)()]||{};function s(){return o}function a(e){o.installedModules.push(e)}o.cmd=o.cmd||[],o.que=o.que||[],o.installedModules=o.installedModules||[],i===window&&(i._pbjsGlobals=i._pbjsGlobals||[],i._pbjsGlobals.push((0,r.k)()))},51833:(e,t,n)=>{n.d(t,{Dy:()=>i,O$:()=>s,i8:()=>o});var r=n(10466);const i=["dooh","app","site"];function o(e){return function(t){return i.reduce((n,i)=>(s(t,i)&&(null!=n?((0,r.logWarn)(`${e} specifies both '${n}' and '${i}'; dropping the latter.`),delete t[i]):n=i),n),null),t}}function s(e,t){return null!=e[t]&&Object.keys(e[t]).length>0}},53202:(e,t,n)=>{n.d(t,{io:()=>s,qB:()=>o});var r=n(10466),i=n(25291);const[o,s]=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,r.prefixLog)("Activity control:");const t={};function n(e){return t[e]=t[e]||[],t[e]}function o(t,n,r,o){let s;try{s=r(o)}catch(r){e.logError(`Exception in rule ${n} for '${t}'`,r),s={allow:!1,reason:r}}return s&&Object.assign({activity:t,name:n,component:o[i.Ii]},s)}const s={};function a(t){let{activity:n,name:r,allow:i,reason:o,component:a}=t;const d=`${r} ${i?"allowed":"denied"} '${n}' for '${a}'${o?":":""}`,c=s.hasOwnProperty(d);if(c&&clearTimeout(s[d]),s[d]=setTimeout(()=>delete s[d],1e3),!c){const t=[d];o&&t.push(o),(i?e.logInfo:e.logWarn).apply(e,t)}}return[function(e,t,r){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;const o=n(e),s=o.findIndex(e=>{let[t]=e;return i<t}),a=[i,t,r];return o.splice(s<0?o.length:s,0,a),function(){const e=o.indexOf(a);e>=0&&o.splice(e,1)}},function(e,t){let r,i;for(const[s,d,c]of n(e)){if(r!==s&&i)break;r=s;const n=o(e,d,c,t);if(n){if(!n.allow)return a(n),!1;i=n}}return i&&a(i),!0}]}()},53578:(e,t,n)=>{n.d(t,{Vx:()=>d,l7:()=>a,p4:()=>h,$V:()=>m,ZP:()=>b,$p:()=>y,uD:()=>p});var r=n(58928),i=n(91933),o=n(53202),s=n(45808);const a=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map(e=>`user.${e}`).concat("device.ext.cdep"),d=["user.eids","user.ext.eids"],c=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"],l=["device.ip"],u=["device.ipv6"];function g(e){return Object.assign({get(){},run(e,t,n,r,i){const o=n&&n[r];if(m(o)&&i()){const e=this.get(o);void 0===e?delete n[r]:n[r]=e}}},e)}function f(e){return e.forEach(e=>{e.paths=e.paths.map(e=>{const t=e.split("."),n=t.pop();return[t.length>0?t.join("."):null,n]})}),function(t,n){const i=[];for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];const d=p(t,...s);return e.forEach(e=>{if(!1!==t[e.name])for(const[o,s]of e.paths){const a=null==o?n:(0,r.A)(n,o);if(i.push(e.run(n,o,a,s,d.bind(null,e))),!1===t[e.name])return}}),i.filter(e=>null!=e)}}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(t){return e.hasOwnProperty(t.name)||(e[t.name]=!!t.applies(...n)),e[t.name]}}function m(e){return null!=e&&("object"!=typeof e||Object.keys(e).length>0)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.io;return function(n){return!t(e,n)}}function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;return[{name:s.DL,paths:a,applies:h(s.DL,e)},{name:s.hq,paths:d,applies:h(s.hq,e)},{name:s.hE,paths:c,applies:h(s.hE,e),get:e=>Math.round(100*(e+Number.EPSILON))/100},{name:s.hE,paths:l,applies:h(s.hE,e),get:e=>function(e){if(!e)return null;const t=e.split(".").map(Number);if(4!==t.length)return null;const n=[];for(let e=0;e<4;e++){const t=Math.max(0,Math.min(8,24-8*e));n.push(255<<8-t&255)}return t.map((e,t)=>e&n[t]).join(".")}(e)},{name:s.hE,paths:u,applies:h(s.hE,e),get:e=>function(e){if(!e)return null;let t=e.split(":").map(e=>parseInt(e,16));for(t=t.map(e=>isNaN(e)?0:e);t.length<8;)t.push(0);if(8!==t.length)return null;const n=[];for(let e=0;e<8;e++){const t=Math.max(0,Math.min(16,64-16*e));n.push(65535<<16-t&65535)}return t.map((e,t)=>e&n[t]).map(e=>e.toString(16)).join(":")}(e)},{name:s.VJ,paths:["source.tid","source.ext.tidSource"],applies:h(s.VJ,e)}].map(g)}const y=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;const t=f(b(e)),n=f(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.io;return[{name:s.hq,paths:["userId","userIdAsEids"],applies:h(s.hq,e)},{name:s.VJ,paths:["ortb2Imp.ext.tid","ortb2Imp.ext.tidSource"],applies:h(s.VJ,e)}].map(g)}(e));return function(e){const r={};return{ortb2:n=>(t(r,n,e),n),bidRequest:t=>(n(r,t,e),t)}}}();(0,o.qB)(s.VJ,"enableTIDs config",()=>{if(!i.$W.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}})},57215:(e,t,n)=>{n.d(t,{WH:()=>ie,xu:()=>ae,Z:()=>oe,gH:()=>fe,pq:()=>ee});var r=n(51748),i=n(10466),o=n(26665),s=n(58928),a=n(83435),d=n(80356),c=n(11418),l=n(71852),u=n(45144),g=n(13064);const{REQUEST:f,RESPONSE:p,NATIVE:m,EVENT:h}=c.nl,b={[f]:function(e,t,n){(0,l.bw)({renderFn(t){e(Object.assign({message:p,renderer:(0,u.kj)(n),rendererVersion:u.xh},t))},resizeFn:v(t.adId,n),options:t.options,adId:t.adId,bidResponse:n})},[h]:function(e,t,n){if(null==n)return void(0,i.logError)(`Cannot find ad '${t.adId}' for x-origin event request`);if(n.status!==c.tl.RENDERED)return void(0,i.logWarn)(`Received x-origin event request without corresponding render request for ad '${n.adId}'`);return(0,l.Uc)(t,n)}};function y(){window.addEventListener("message",function(e){!function(e){var t=e.message?"message":"data",n={};try{n=JSON.parse(e[t])}catch(e){return}if(n&&n.adId&&n.message&&b.hasOwnProperty(n.message))(0,l.$A)(n.adId,n.message===c.nl.REQUEST).then(t=>{var r,o;b[n.message]((r=n.adId,o=function(e){return null==e.origin&&0===e.ports.length?function(){const e="Cannot post message to a frame with null origin. Please update creatives to use MessageChannel, see https://github.com/prebid/Prebid.js/issues/7870";throw(0,i.logError)(e),new Error(e)}:e.ports.length>0?function(t){e.ports[0].postMessage(JSON.stringify(t))}:function(t){e.source.postMessage(JSON.stringify(t),e.origin)}}(e),function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return o(Object.assign({},e,{adId:r}),...n)}),n,t)})}(e)},!1)}function v(e,t){return function(n,r){!function(e){let{instl:t,adId:n,adUnitCode:r,width:o,height:s}=e;if(t)return;function a(e){if(e){const t=e.style;t.width=E(o),t.height=E(s)}else(0,i.logError)(`Unable to locate matching page element for adUnitCode ${r}.  Can't resize it to ad's dimensions.  Please review setup.`)}const d=l('iframe:not([style*="display: none"])');a(d);const c=d?.closest("ins[data-anchor-status]");function l(e){const t=u(n,r),i=document.getElementById(t);return i&&i.querySelector(e)}function u(e,t){if((0,i.isGptPubadsDefined)()){const t=f(e);if(t)return t}if((0,i.isApnGetTagDefined)()){const e=p(t);if(e)return e}return t}function f(e){const t=window.googletag.pubads().getSlots().find(t=>t.getTargetingKeys().find(n=>t.getTargeting(n).includes(e)));return t?t.getSlotElementId():null}function p(e){const t=window.apntag.getTag(e);return t&&t.targetId}c?function(e,t,n){new g.U9((r,i)=>{let o=10;const s=setInterval(()=>{let a=!1;Object.entries({width:t,height:n}).forEach(t=>{let[n,r]=t;/\d+px/.test(e.style[n])&&(e.style[n]=E(r),a=!0)}),(a||0===o--)&&(clearInterval(s),a?r():i(new Error("Could not resize anchor")))},50)})}(c,o,s):a(d?.parentElement)}({...t,width:n,height:r,adId:e})}}function E(e){return e?e+"px":"100%"}Object.assign(b,{[m]:function(e,t,n){if(null==n)return void(0,i.logError)(`Cannot find ad for x-origin event request: '${t.adId}'`);switch(t.action){case"assetRequest":(0,l.Hh)(n,()=>e((0,d.IX)(t,n)));break;case"allAssetRequest":(0,l.Hh)(n,()=>e((0,d.yl)(t,n)));break;default:(0,l.vW)(t,n,{resizeFn:v(t.adId,n)}),(0,l.Pk)(n)}}});var A=n(73391),w=n(91933),T=n(63006),I=n(80869),C=n(32592),S=n(87067),O=n(61443),B=n(51409),R=n(18014),U=n(37841);function k(){const e=(0,r.m)().scheduler??window.scheduler;return e?.yield?e.yield():g.U9.resolve()}var D=n(16169),_=n(41385),$=n(79236),q=n(36220);const x=[["format",e=>Array.isArray(e)&&e.length>0&&e.every(e=>"object"==typeof e)],["w",o.Fq],["h",o.Fq],["btype",o.Uu],["battr",o.Uu],["pos",o.Fq],["mimes",e=>Array.isArray(e)&&e.length>0&&e.every(e=>"string"==typeof e)],["topframe",e=>[1,0].includes(e)],["expdir",o.Uu],["api",o.Uu],["id",o.O8],["vcm",e=>[1,0].includes(e)]],W=new Map(x);var j=n(59794);function N(e,t){var n=this;return function(){for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return document.prerendering&&e()?new Promise(e=>{document.addEventListener("prerenderingchange",()=>{(0,i.logInfo)("Auctions were suspended while page was prerendering"),e(t.apply(n,o))},{once:!0})}):Promise.resolve(t.apply(n,o))}}var P=n(3516),M=n(40069),F=n(88417),G=n(765);const L=(0,r.m)(),{triggerUserSyncs:z}=A.zt,{ADD_AD_UNITS:V,REQUEST_BIDS:H,SET_TARGETING:Q}=c.qY;function J(e,t){let n=[];return(0,o.cy)(e)&&(t?e.length===t:e.length>0)&&(e.every(e=>(0,o.Uu)(e,2))?n=e:(0,o.Uu)(e,2)&&n.push(e)),n}function K(e,t){const n=(0,s.A)(e,`ortb2Imp.${t}`),r=(0,s.A)(e,`mediaTypes.${t}`);if(!n&&!r)return;const o={[j.G_]:q.Zy,[j.D4]:W}[t];o&&[...o].forEach(n=>{let[r,o]=n;const d=(0,s.A)(e,`mediaTypes.${t}.${r}`),c=(0,s.A)(e,`ortb2Imp.${t}.${r}`);void 0===d&&void 0===c||(void 0===d?(0,a.J)(e,`mediaTypes.${t}.${r}`,c):void 0===c?(0,a.J)(e,`ortb2Imp.${t}.${r}`,d):(0,i.deepEqual)(d,c)||((0,i.logWarn)(`adUnit ${e.code}: specifies conflicting ortb2Imp.${t}.${r} and mediaTypes.${t}.${r}, the latter will be ignored`,e),(0,a.J)(e,`mediaTypes.${t}.${r}`,c)))})}function Y(e){const t=(0,o.Go)(e),n=t.mediaTypes.banner,r=null==n.sizes?null:J(n.sizes),s=e.ortb2Imp?.banner?.format??n?.format;let d;if(null!=s){(0,a.J)(t,"ortb2Imp.banner.format",s),n.format=s;try{d=s.filter(t=>{let{w:n,h:r,wratio:o,hratio:s}=t;return null!=(n??r)&&null!=(o??s)?((0,i.logWarn)("Ad unit banner.format specifies both w/h and wratio/hratio",e),!1):null!=n&&null!=r||null!=o&&null!=s}).map(e=>{let{w:t,h:n,wratio:r,hratio:i}=e;return[t??r,n??i]})}catch(t){(0,i.logError)(`Invalid format definition on ad unit ${e.code}`,s)}null==d||null==r||(0,i.deepEqual)(r,d)||(0,i.logWarn)(`Ad unit ${e.code} has conflicting sizes and format definitions`,e)}const c=d??r??[],l=e.ortb2Imp?.banner?.expdir??n.expdir;return null!=l&&(n.expdir=l,(0,a.J)(t,"ortb2Imp.banner.expdir",l)),c.length>0?(n.sizes=c,t.sizes=c):((0,i.logError)("Detected a mediaTypes.banner object without a proper sizes field.  Please ensure the sizes are listed like: [[300, 250], ...].  Removing invalid mediaTypes.banner object from request."),delete t.mediaTypes.banner),ee(t,"banner"),K(t,"banner"),t}function X(e){const t=(0,o.Go)(e);return ee(t,"audio"),K(t,"audio"),t}function Z(e){const t=(0,o.Go)(e),n=t.mediaTypes.video;if(n.playerSize){const e="number"==typeof n.playerSize[0]?2:1,r=J(n.playerSize,e);r.length>0?(2===e&&(0,i.logInfo)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),n.playerSize=r,t.sizes=r):((0,i.logError)("Detected incorrect configuration of mediaTypes.video.playerSize.  Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request."),delete t.mediaTypes.video.playerSize)}return ee(t,"video"),K(t,"video"),t}function ee(e,t,n){const r=(e?.mediaTypes||{})[t],s={banner:W,audio:F.Ai,video:q.Zy}[t];(0,o.Qd)(r)?null!=r&&Object.entries(r).forEach(o=>{let[a,d]=o;if(!s.has(a))return;s.get(a)(d)||("function"==typeof n?n(a,d,e):(delete r[a],(0,i.logWarn)(`Invalid prop in adUnit "${e.code}": Invalid value for mediaTypes.${t}.${a} ORTB property. The property has been removed.`)))}):(0,i.logWarn)(`validateOrtb${t}Fields: ${t}Params must be an object.`)}function te(e){function t(t){return(0,i.logError)(`Error in adUnit "${e.code}": ${t}. Removing native request from ad unit`,e),delete r.mediaTypes.native,r}function n(e){for(const t of["types"])if(s.hasOwnProperty(t)){const n=e(t);if(n)return n}}const r=(0,o.Go)(e),s=r.mediaTypes.native;if(s.ortb){if(s.ortb.assets?.some(e=>!(0,o.Et)(e.id)||e.id<0||e.id%1!=0))return t("native asset ID must be a nonnegative integer");if(n(e=>t(`ORTB native requests cannot specify "${e}"`)))return r;const e=Object.keys(c.x5).filter(e=>c.x5[e].includes("hb_native_")),a=Object.keys(s).filter(t=>e.includes(t));a.length>0&&((0,i.logError)(`when using native OpenRTB format, you cannot use legacy native properties. Deleting ${a} keys from request.`),a.forEach(e=>delete r.mediaTypes.native[e]))}else n(t=>(0,i.logWarn)(`mediaTypes.native.${t} is deprecated, consider using native ORTB instead`,e));return s.image&&s.image.sizes&&!Array.isArray(s.image.sizes)&&((0,i.logError)("Please use an array of sizes for native.image.sizes field.  Removing invalid mediaTypes.native.image.sizes property from request."),delete r.mediaTypes.native.image.sizes),s.image&&s.image.aspect_ratios&&!Array.isArray(s.image.aspect_ratios)&&((0,i.logError)("Please use an array of sizes for native.image.aspect_ratios field.  Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete r.mediaTypes.native.image.aspect_ratios),s.icon&&s.icon.sizes&&!Array.isArray(s.icon.sizes)&&((0,i.logError)("Please use an array of sizes for native.icon.sizes field.  Removing invalid mediaTypes.native.icon.sizes property from request."),delete r.mediaTypes.native.icon.sizes),r}function ne(e,t){const n=e?.mediaTypes?.[t]?.pos;if(!(0,o.Et)(n)||isNaN(n)||!isFinite(n)){const n=`Value of property 'pos' on ad unit ${e.code} should be of type: Number`;(0,i.logWarn)(n),delete e.mediaTypes[t].pos}return e}function re(e){const t=e=>`adUnit.code '${n.code}' ${e}`,n=e,r=n.mediaTypes,s=n.bids;return null==s||(0,o.cy)(s)?null==s&&null==n.ortb2Imp?((0,i.logError)(t("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):r&&0!==Object.keys(r).length?(null==n.ortb2Imp||null!=s&&0!==s.length||(n.bids=[{bidder:null}],(0,i.logMessage)(t("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),n):((0,i.logError)(t("does not define a 'mediaTypes' object.  This is a required field for the auction, so this adUnit has been removed.")),null):((0,i.logError)(t("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}(0,S.L6)(),L.bidderSettings=L.bidderSettings||{},L.libLoaded=!0,L.version="v10.20.0",(0,i.logInfo)("Prebid.js v10.20.0 loaded"),L.adUnits=L.adUnits||[],L.pageViewIdPerBidder=L.pageViewIdPerBidder||new Map;const ie={validateAdUnit:re,validateBannerMediaType:Y,validateSizes:J};Object.assign(ie,{validateNativeMediaType:te}),Object.assign(ie,{validateVideoMediaType:Z}),Object.assign(ie,{validateAudioMediaType:X});const oe=(0,C.A_)("sync",function(e){const t=[];return e.forEach(e=>{const n=re(e);if(null==n)return;const r=n.mediaTypes;let i,o,s,a;r.banner&&(i=Y(n),r.banner.hasOwnProperty("pos")&&(i=ne(i,"banner"))),r.video&&(o=Z(i||n),r.video.hasOwnProperty("pos")&&(o=ne(o,"video"))),r.native&&(s=te(o||(i||n))),r.audio&&(a=X(s||n));const d=Object.assign({},i,o,s,a);t.push(d)}),t},"checkAdUnitSetup");function se(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(0,i.logInfo)(`Invoking ${(0,G.k)()}.${e}`,r),t.apply(this,r)}}function ae(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];(0,r.m)()[e]=n?se(e,t):t}function de(e){return ce(e)[e]}function ce(e){return I.iS.getAllTargeting(e)}function le(e){return(e=e.slice()).bids=e,e}function ue(e){const t=T.n[e]().filter(e=>T.n.getAdUnitCodes().includes(e.adUnitCode)),n=T.n.getLastAuctionId();return t.map(e=>e.adUnitCode).filter(i.uniques).map(e=>t.filter(t=>t.auctionId===n&&t.adUnitCode===e)).filter(e=>e&&e[0]&&e[0].adUnitCode).map(e=>({[e[0].adUnitCode]:le(e)})).reduce((e,t)=>Object.assign(e,t),{})}ae("triggerUserSyncs",z),ae("getAdserverTargetingForAdUnitCodeStr",function(e){if(e){const t=de(e);return(0,i.transformAdServerTargetingObj)(t)}(0,i.logMessage)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")}),ae("getHighestUnusedBidResponseForAdUnitCode",function(e){if(e){const t=T.n.getAllBidsForAdUnitCode(e).filter(I.Yl);return t.length?t.reduce($.Vk):null}(0,i.logMessage)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")}),ae("getAdserverTargetingForAdUnitCode",de),ae("getAdserverTargeting",ce),ae("getConsentMetadata",function(){return _.SL.getConsentMeta()}),ae("getNoBids",function(){return ue("getNoBids")}),ae("getNoBidsForAdUnitCode",function(e){return le(T.n.getNoBids().filter(t=>t.adUnitCode===e))}),ae("getBidResponses",function(){return ue("getBidsReceived")}),ae("getBidResponsesForAdUnitCode",function(e){return le(T.n.getBidsReceived().filter(t=>t.adUnitCode===e))}),ae("setTargetingForGPTAsync",function(e,t){(0,i.isGptPubadsDefined)()?I.iS.setTargetingForGPT(e,t):(0,i.logError)("window.googletag is not defined on the page")}),ae("setTargetingForAst",function(e){I.iS.isApntagDefined()?(I.iS.setTargetingForAst(e),R.emit(Q,I.iS.getAllTargeting())):(0,i.logError)("window.apntag is not defined on the page")}),ae("renderAd",async function(e,t,n){await k(),(0,l.BS)(e,t,n)}),ae("removeAdUnit",function(e){if(!e)return void(L.adUnits=[]);let t;t=(0,o.cy)(e)?e:[e],t.forEach(e=>{for(let t=L.adUnits.length-1;t>=0;t--)L.adUnits[t].code===e&&L.adUnits.splice(t,1)})});const ge=function(){const e=(0,C.A_)("async",function(e){let{bidsBackHandler:t,timeout:n,adUnits:r,adUnitCodes:s,labels:a,auctionId:d,ttlBuffer:c,ortb2:l,metrics:u,defer:f}=e??{};R.emit(H);const p=n||w.$W.getConfig("bidderTimeout");null==s||Array.isArray(s)||(s=[s]),s&&s.length?r=r.filter(e=>s.includes(e.code)):s=r&&r.map(e=>e.code),s=s.filter(i.uniques);let m={global:(0,i.mergeDeep)({},w.$W.getAnyConfig("ortb2")||{},l||{}),bidder:Object.fromEntries(Object.entries(w.$W.getBidderConfig()).map(e=>{let[t,n]=e;return[t,(0,o.Go)(n.ortb2)]}).filter(e=>{let[t,n]=e;return null!=n}))};m=(0,M.mZ)(m),(0,D.wU)(g.U9.resolve(m.global)).then(e=>(m.global=e,fe({bidsBackHandler:t,timeout:p,adUnits:r,adUnitCodes:s,labels:a,auctionId:d,ttlBuffer:c,ortb2Fragments:m,metrics:u,defer:f})))},"requestBids");return(0,C.Y6)(e,se("requestBids",N(()=>!w.$W.getConfig("allowPrerendering"),function(){const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.adUnits||L.adUnits;return t.adUnits=Array.isArray(n)?n.slice():[n],t.metrics=(0,U.K7)(),t.metrics.checkpoint("requestBids"),t.defer=(0,g.v6)({promiseFactory:e=>new Promise(e)}),e.call(this,t),t.defer.promise})))}();ae("requestBids",ge,!1);const fe=(0,C.A_)("async",function(){let{bidsBackHandler:e,timeout:t,adUnits:n,ttlBuffer:r,adUnitCodes:o,labels:s,auctionId:a,ortb2Fragments:d,metrics:c,defer:l}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=(0,B.pX)(w.$W.getConfig("s2sConfig")||[]);!function(e){e.forEach(e=>(0,q.V0)(e)),e.forEach(e=>(0,F.kl)(e))}(n);const g=(0,U.BO)(c).measureTime("requestBids.validate",()=>oe(n));function f(t,n,r){if("function"==typeof e)try{e(t,n,r)}catch(e){(0,i.logError)("Error executing bidsBackHandler",null,e)}l.resolve({bids:t,timedOut:n,auctionId:r})}const p={};if(g.forEach(e=>{const t=Object.keys(e.mediaTypes||{banner:"banner"}),n=e.bids.map(e=>e.bidder).filter(Boolean),o=B.Ay.bidderRegistry,s=n.filter(e=>!u.has(e));e.adUnitId=(0,i.generateUUID)();const a=e.ortb2Imp?.ext?.tid;a&&(p.hasOwnProperty(e.code)?(0,i.logWarn)(`Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '${e.code}'`):p[e.code]=a),null==r||e.hasOwnProperty("ttlBuffer")||(e.ttlBuffer=r),s.forEach(n=>{const r=o[n],s=r&&r.getSpec&&r.getSpec(),a=s&&s.supportedMediaTypes||["banner"];t.some(e=>a.includes(e))||((0,i.logWarn)((0,i.unsupportedBidderMessage)(e,n)),e.bids=e.bids.filter(e=>e.bidder!==n))})}),g&&0!==g.length){g.forEach(e=>{const t=e.ortb2Imp?.ext?.tid||p[e.code]||(0,i.generateUUID)();p.hasOwnProperty(e.code)||(p[e.code]=t),e.transactionId=t});const e=T.n.createAuction({adUnits:g,adUnitCodes:o,callback:f,cbTimeout:t,labels:s,auctionId:a,ortb2Fragments:d,metrics:c}),n=g.length;n>15&&(0,i.logInfo)(`Current auction ${e.getAuctionId()} contains ${n} adUnits.`,g),o.forEach(t=>I.iS.setLatestAuctionForAdUnit(t,e.getAuctionId())),e.callBids()}else(0,i.logMessage)("No adUnits configured. No bids requested."),f()},"startAuction");ge.before(function(e,t){function n(e){let t;for(;t=e.shift();)t()}n(O.s0),n(he),e.call(this,t)},49),ae("addAdUnits",function(e){L.adUnits.push(...Array.isArray(e)?e:[e]),R.emit(V)});const pe={bidWon(e){if(T.n.getBidsRequested().map(e=>e.bids.map(e=>e.adUnitCode)).reduce(i.flatten).filter(i.uniques).includes(e))return!0;(0,i.logError)('The "'+e+'" placement is not defined.')}};function me(e,t){return pe.hasOwnProperty(e)&&pe[e](t)}ae("onEvent",function(e,t,n){(0,o.fp)(t)?!n||me(e,n)?R.on(e,t,n):(0,i.logError)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,i.logError)('The event handler provided is not a function and was not set on event "'+e+'".')}),ae("offEvent",function(e,t,n){n&&!me(e,n)||R.off(e,t,n)}),ae("getEvents",function(){return R.getEvents()}),ae("registerBidAdapter",function(e,t,n){try{const r=n?(0,P.xb)(n):e();B.Ay.registerBidAdapter(r,t)}catch(e){(0,i.logError)("Error registering bidder adapter : "+e.message)}}),ae("registerAnalyticsAdapter",function(e){try{B.Ay.registerAnalyticsAdapter(e)}catch(e){(0,i.logError)("Error registering analytics adapter : "+e.message)}});const he=[],be=(0,C.A_)("async",function(e){e&&!(0,i.isEmpty)(e)?B.Ay.enableAnalytics(e):(0,i.logError)(`${(0,G.k)()}.enableAnalytics should be called with option {}`)},"enableAnalyticsCb");let ye;function ve(e){ye.promise.then(()=>{if("function"==typeof e)try{e.call()}catch(e){(0,i.logError)("Error processing command :",e.message,e.stack)}else(0,i.logError)(`Commands written into ${(0,G.k)()}.cmd.push must be wrapped in a function`)})}async function Ee(e){for(const t of e){if(void 0===t.called)try{t.call(),t.called=!0}catch(e){(0,i.logError)("Error processing command :","prebid.js",e)}await k()}}ae("enableAnalytics",function(e){he.push(be.bind(this,e))}),ae("aliasBidder",function(e,t,n){e&&t?B.Ay.aliasBidAdapter(e,t,n):(0,i.logError)("bidderCode and alias must be passed as arguments",`${(0,G.k)()}.aliasBidder`)}),L.aliasRegistry=B.Ay.aliasRegistry,w.$W.getConfig("aliasRegistry",e=>{"private"===e.aliasRegistry&&delete L.aliasRegistry}),ae("getAllWinningBids",function(){return T.n.getAllWinningBids()}),ae("getAllPrebidWinningBids",function(){return(0,i.logWarn)("getAllPrebidWinningBids may be removed or renamed in a future version. This function returns bids that have won in prebid and have had targeting set but have not (yet?) won in the ad server. It excludes bids that have been rendered."),T.n.getBidsReceived().filter(e=>e.status===c.tl.BID_TARGETING_SET)}),ae("getHighestCpmBids",function(e){return I.iS.getWinningBids(e)}),ae("clearAllAuctions",function(){T.n.clearAllAuctions()}),ae("markWinningBidAsUsed",function(e){let t,{adId:n,adUnitCode:r,analytics:o=!1,events:s=!1}=e;r&&null==n?t=I.iS.getWinningBids(r):n?t=T.n.getBidsReceived().filter(e=>e.adId===n):(0,i.logWarn)("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),t.length>0&&(o||s?(0,l.n6)(t[0]):T.n.addWinningBid(t[0]),(0,l.qn)(t[0]))}),ae("getConfig",w.$W.getAnyConfig),ae("readConfig",w.$W.readAnyConfig),ae("mergeConfig",w.$W.mergeConfig),ae("mergeBidderConfig",w.$W.mergeBidderConfig),ae("setConfig",w.$W.setConfig),ae("setBidderConfig",w.$W.setBidderConfig),L.que.push(()=>y()),ye=(0,g.v6)();ae("processQueue",N(()=>L.delayPrerendering,async function(){L.que.push=L.cmd.push=ve,(0,l.XO)(),C.A_.ready();try{await Ee(L.que),await Ee(L.cmd)}finally{ye.resolve()}}),!1),ae("triggerBilling",function(e){let{adId:t,adUnitCode:n}=e;T.n.getAllWinningBids().filter(e=>e.adId===t||null==t&&e.adUnitCode===n).forEach(e=>{B.Ay.triggerBilling(e),(0,l.vB)(e)})}),ae("refreshPageViewId",function(){for(const e of L.pageViewIdPerBidder.keys())L.pageViewIdPerBidder.set(e,(0,i.generateUUID)())})},59794:(e,t,n)=>{n.d(t,{D4:()=>o,FY:()=>a,GE:()=>d,G_:()=>i,LM:()=>s,s6:()=>r});const r="native",i="video",o="banner",s="adpod",a="audio",d=[r,i,o,a]},61443:(e,t,n)=>{n.d(t,{CK:()=>y,X0:()=>p,d_:()=>v,le:()=>h,p6:()=>A,qk:()=>f,s0:()=>m,vM:()=>b});var r=n(10466),i=n(77156),o=n(70736),s=n(53202),a=n(25291),d=n(45808),c=n(91933),l=n(32592),u=n(51409),g=n(77610);const f="html5",p="cookie";let m=[];function h(){let{moduleName:e,moduleType:t,advertiseKeys:n=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{isAllowed:i=s.io}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};function l(r,s,l,f){let p=e;const m=c.$W.getCurrentBidder();m&&t===o.tW&&u.Ay.aliasRegistry[m]===e&&(p=m);const h={[a.Zw]:s,[a.OI]:f};n&&null!=l&&(h[a.Ez]=l);return r({valid:i(d.Ue,(0,g.s)(t,p,h))})}function h(e,t,n,r,i){if(!i||"function"!=typeof i)return l(e,t,n,r);m.push(function(){let o=l(e,t,n,r);i(o)})}function b(e){const t=e.charAt(0).toUpperCase()+e.substring(1),n=()=>window[e],i=function(t){return h(function(t){if(t&&t.valid)try{return!!n()}catch(t){(0,r.logError)(`${e} api disabled`)}return!1},f,null,!1,t)};return{[`has${t}`]:i,[`${e}IsEnabled`]:e=>h(function(e){if(e&&e.valid)try{return n().setItem("prebid.cookieTest","1"),"1"===n().getItem("prebid.cookieTest")}catch(e){}finally{try{n().removeItem("prebid.cookieTest")}catch(e){}}return!1},f,null,!1,e),[`setDataIn${t}`]:(e,t,r)=>h(function(r){r&&r.valid&&i()&&n().setItem(e,t)},f,e,!0,r),[`getDataFrom${t}`]:(e,t)=>h(function(t){return t&&t.valid&&i()?n().getItem(e):null},f,e,!1,t),[`removeDataFrom${t}`]:(e,t)=>h(function(t){t&&t.valid&&i()&&n().removeItem(e)},f,e,!0,t)}}return{setCookie:function(e,t,n,r,i,o){return h(function(o){if(o&&o.valid){const o=i&&""!==i?` ;domain=${encodeURIComponent(i)}`:"",s=n&&""!==n?` ;expires=${n}`:"",a="none"===r?.toLowerCase()?"; Secure":"";document.cookie=`${e}=${encodeURIComponent(t)}${s}; path=/${o}${r?`; SameSite=${r}`:""}${a}`}},p,e,!0,o)},getCookie:function(e,t){return h(function(t){if(t&&t.valid){let t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null},p,e,!1,t)},cookiesAreEnabled:function(e){return h(function(e){return!(!e||!e.valid)&&((0,r.checkCookieSupport)()&&v())},p,null,!1,e)},...b("localStorage"),...b("sessionStorage"),findSimilarCookies:function(e,t){return h(function(t){if(t&&t.valid){const t=[];if((0,r.hasDeviceAccess)()){const n=document.cookie.split(";");for(;n.length;){const r=n.pop();let i=r.indexOf("=");i=i<0?r.length:i;decodeURIComponent(r.slice(0,i).replace(/^\s+/,"")).indexOf(e)>=0&&t.push(decodeURIComponent(r.slice(i+1)))}}return t}},p,e,!1,t)}}}function b(){let{moduleType:e,moduleName:t,bidderCode:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function r(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return n?((e&&e!==o.tW||t)&&r(),e=o.tW,t=n):t&&e||r(),h({moduleType:e,moduleName:t})}function y(e){return h({moduleName:e,moduleType:o.tp})}const v=(()=>{const e=y("storage");return(0,r.memoize)(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const i=new Date((0,r.timestamp)()+1e4).toUTCString(),o=`_rdc${Date.now()}`,s="writeable";n.setCookie(o,s,i,"Lax",t);return n.getCookie(o)===s&&(n.setCookie(o,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,t),!0)})})();function E(){if(!(0,r.hasDeviceAccess)())return{allow:!1}}(0,s.qB)(d.Ue,"deviceAccess config",E),(0,s.qB)(d.yg,"deviceAccess config",E),(0,s.qB)(d.Ue,"bidderSettings.*.storageAllowed",function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.u;if(e[a.Dk]!==o.tW)return;let n=t.get(e[a.q7],"storageAllowed");if(n&&!0!==n){const t=e[a.Zw];n=Array.isArray(n)?n.some(e=>e===t):n===t}else n=!!n;return n?void 0:{allow:n}});const A=(0,l.A_)("sync",(e,t)=>{})},62201:(e,t,n)=>{n.d(t,{RD:()=>y,Rz:()=>b,g4:()=>h,hd:()=>v,p3:()=>f});var r=n(45808),i=n(77610),o=n(53202),s=n(91933),a=n(32592),d=n(10466);const c={fetch:window.fetch.bind(window),makeRequest:(e,t)=>new Request(e,t),timeout(e,t){const n=new AbortController;let r=setTimeout(()=>{n.abort(),(0,d.logError)(`Request timeout after ${e}ms`,t),r=null},e);return{signal:n.signal,done(){r&&clearTimeout(r)}}}},l="GET",u="POST",g="Content-Type",f=(0,a.A_)("async",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return e.withCredentials&&(e.withCredentials=t&&n?(0,o.io)(r.yg,(0,i.s)(t,n)):(0,d.hasDeviceAccess)()),e},"processRequestOptions");function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=(t,n)=>{let o;null==e||null!=n?.signal||s.$W.getConfig("disableAjaxTimeout")||(o=c.timeout(e,t),n=Object.assign({signal:o.signal},n)),f(n,r,i);let a=c.fetch(t,n);return null!=o?.done&&(a=a.finally(o.done)),a};return null==t&&null==n||(o=(e=>function(r,i){const o=new URL(null==r?.url?r:r.url,document.location).origin;let s=e(r,i);return t&&t(o),n&&(s=s.finally(()=>n(o))),s})(o)),o}function m(e,t){let n,{status:r,statusText:i="",headers:o,url:s}=e;function a(e){if(void 0===n)try{n=(new DOMParser).parseFromString(t,o?.get(g)?.split(";")?.[0])}catch(t){n=null,e&&e(t)}return n}return{readyState:XMLHttpRequest.DONE,status:r,statusText:i,responseText:t,response:t,responseType:"",responseURL:s,get responseXML(){return a(d.logError)},getResponseHeader:e=>o?.has(e)?o.get(e):null,toJSON(){return Object.assign({responseXML:a()},this)},timedOut:!1}}function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:t,done:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=p(e,{request:t,done:n},arguments.length>2?arguments[2]:void 0,arguments.length>3?arguments[3]:void 0);return function(e,t,n){!function(e,t){const{success:n,error:r}="object"==typeof t&&null!=t?t:{success:"function"==typeof t?t:()=>null,error:(e,t)=>(0,d.logError)("Network error",e,t)};e.then(e=>e.text().then(t=>[e,t])).then(e=>{let[t,i]=e;const o=m(t,i);t.ok||304===t.status?n(i,o):r(t.statusText,o)},e=>r("",Object.assign(m({status:0},""),{reason:e,timedOut:"AbortError"===e?.name})))}(r(function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.method||(t?u:l);if(r===l&&t){const r=(0,d.parseUrl)(e,n);Object.assign(r.search,t),e=(0,d.buildUrl)(r)}const i=new Headers(n.customHeaders);i.set(g,n.contentType||"text/plain");const o={method:r,headers:i};return r!==l&&t&&(o.body=t),n.withCredentials&&(o.credentials="include"),isSecureContext&&(["browsingTopics","adAuctionHeaders"].forEach(e=>{n[e]&&(o[e]=!0)}),null!=n.suppressTopicsEnrollmentWarning&&(o.suppressTopicsEnrollmentWarning=n.suppressTopicsEnrollmentWarning)),n.keepalive&&(o.keepalive=!0),c.makeRequest(e,o)}(e,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),t)}}function b(e,t){return!(!window.navigator||!window.navigator.sendBeacon)&&window.navigator.sendBeacon(e,t)}const y=h(),v=p()},63006:(e,t,n)=>{n.d(t,{n:()=>l});var r=n(10466),i=n(71186);function o(e){Object.assign(this,{getAuction(t){let{auctionId:n}=t;if(null!=n)return e().find(e=>e.getAuctionId()===n)},getAdUnit(t){let{adUnitId:n}=t;if(null!=n)return e().flatMap(e=>e.getAdUnits()).find(e=>e.adUnitId===n)},getMediaTypes(e){let{adUnitId:t,requestId:n}=e;if(null!=n){const e=this.getBidRequest({requestId:n});if(null!=e&&(null==t||e.adUnitId===t))return e.mediaTypes}else if(null!=t){const e=this.getAdUnit({adUnitId:t});if(null!=e)return e.mediaTypes}},getBidderRequest(t){let{requestId:n,bidderRequestId:r}=t;if(null!=n||null!=r){let t=e().flatMap(e=>e.getBidRequests());return null!=r&&(t=t.filter(e=>e.bidderRequestId===r)),null==n?t[0]:t.find(e=>e.bids&&null!=e.bids.find(e=>e.bidId===n))}},getBidRequest(t){let{requestId:n}=t;if(null!=n)return e().flatMap(e=>e.getBidRequests()).flatMap(e=>e.bids).find(e=>e&&e.bidId===n)},getOrtb2(e){return this.getBidderRequest(e)?.ortb2||this.getAuction(e)?.getFPD()?.global?.ortb2}})}var s=n(11418),a=n(37841),d=n(10939),c=n(15482);const l=function(){const e=(0,d.H)({startTime:e=>e.end.then(()=>e.getAuctionEnd()),ttl:e=>null==(0,c.S9)()?null:e.end.then(()=>1e3*Math.max((0,c.S9)(),...e.getBidsReceived().map(e=>e.ttl)))});(0,c.lc)(()=>e.refresh());const t={onExpiry:e.onExpiry};function n(t){for(const n of e)if(n.getAuctionId()===t)return n}function l(){return e.toArray().flatMap(e=>e.getBidsReceived())}return t.addWinningBid=function(e){const t=(0,a.BO)(e.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","adserver.pending"),t.timeBetween("requestBids","bidWon","adserver.e2e");const i=n(e.auctionId);i?i.addWinningBid(e):(0,r.logWarn)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:e=>e.getAuctionStatus()===i.UZ},getAdUnitCodes:{post:r.uniques}}).forEach(n=>{let[r,{name:i=r,pre:o,post:s}]=n;const a=null==o?e=>e[i]():e=>o(e)?e[i]():[],d=null==s?e=>e:e=>e.filter(s);t[r]=()=>d(e.toArray().flatMap(a))}),t.getAllBidsForAdUnitCode=function(e){return l().filter(t=>t&&t.adUnitCode===e)},t.createAuction=function(t){const n=(0,i.mX)(t);return function(t){e.add(t)}(n),n},t.findBidByAdId=function(e){return l().find(t=>t.adId===e)},t.getStandardBidderAdServerTargeting=function(){return(0,i.HN)()[s.iD.ADSERVER_TARGETING]},t.setStatusForBids=function(e,r){const i=t.findBidByAdId(e);if(i&&(i.status=r),i&&r===s.tl.BID_TARGETING_SET){const e=n(i.auctionId);e&&e.setBidTargeting(i)}},t.getLastAuctionId=function(){const t=e.toArray();return t.length&&t[t.length-1].getAuctionId()},t.clearAllAuctions=function(){e.clear()},t.index=new o(()=>e.toArray()),t}()},63320:(e,t,n)=>{n.d(t,{O:()=>o});var r=n(10466);function i(){let{src:e="client",bidder:t="",bidId:n,transactionId:i,adUnitId:o,auctionId:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var a=e;Object.assign(this,{bidderCode:t,width:0,height:0,adId:(0,r.getUniqueIdentifierStr)(),requestId:n,transactionId:i,adUnitId:o,auctionId:s,mediaType:"banner",source:a}),this.getSize=function(){return this.width+"x"+this.height}}function o(e){return new i(e)}},67464:(e,t,n)=>{n.d(t,{A4:()=>c,J7:()=>l,Pg:()=>u});var r=n(75049),i=n(10466),o=n(51748),s=n(70736);const a=(0,o.m)(),d="outstream";function c(e){const{url:t,config:n,id:o,callback:c,loaded:l,adUnitCode:u,renderNow:g}=e;this.url=t,this.config=n,this.handlers={},this.id=o,this.renderNow=g,this.adUnitCode=u,this.loaded=l,this.cmd=[],this.push=e=>{"function"==typeof e?this.loaded?e.call():this.cmd.push(e):(0,i.logError)("Commands given to Renderer.push must be wrapped in a function")},this.callback=c||(()=>{this.loaded=!0,this.process()}),this.render=function(){const e=arguments,n=()=>{this._render?this._render.apply(this,e):(0,i.logWarn)("No render function was provided, please use .setRender on the renderer")};!function(e){const t=a.adUnits.find(t=>t.code===e);if(!t)return!1;const n=t?.renderer,r=!!(n&&n.url&&n.render),i=t?.mediaTypes?.video?.renderer,o=!!(i&&i.url&&i.render);return!!(r&&!0!==n.backupOnly||o&&!0!==i.backupOnly)}(u)?g?n():(this.cmd.unshift(n),(0,r.R)(t,s.tp,d,this.callback,this.documentContext)):((0,i.logWarn)(`External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ${u}`),n())}.bind(this)}function l(e){return!(!e||!e.url&&!e.renderNow)}function u(e,t,n){let r=null;e.config&&e.config.documentResolver&&(r=e.config.documentResolver(t,document,n)),r||(r=document),e.documentContext=r,e.render(t,e.documentContext)}c.install=function(e){let{url:t,config:n,id:r,callback:i,loaded:o,adUnitCode:s,renderNow:a}=e;return new c({url:t,config:n,id:r,callback:i,loaded:o,adUnitCode:s,renderNow:a})},c.prototype.getConfig=function(){return this.config},c.prototype.setRender=function(e){this._render=e},c.prototype.setEventHandlers=function(e){this.handlers=e},c.prototype.handleVideoEvent=function(e){let{id:t,eventName:n}=e;"function"==typeof this.handlers[n]&&this.handlers[n](),(0,i.logMessage)(`Prebid Renderer event for id ${t} type ${n}`)},c.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.logError)(`Error processing Renderer command on ad unit '${this.adUnitCode}':`,e)}}},70736:(e,t,n)=>{n.d(t,{Tn:()=>a,fW:()=>o,tW:()=>i,tp:()=>r,zu:()=>s});const r="prebid",i="bidder",o="userId",s="rtd",a="analytics"},71186:(e,t,n)=>{n.d(t,{AA:()=>O,BU:()=>M,HN:()=>Y,NE:()=>$,UZ:()=>B,ZV:()=>z,mO:()=>L,mX:()=>q,sR:()=>x,v8:()=>P,w1:()=>j});var r=n(10466),i=n(26665),o=n(1124),s=n(80356),a=n(51640),d=n(67464),c=n(91933),l=n(73391),u=n(32592),g=n(36220),f=n(59794),p=n(63006),m=n(77156),h=n(18014),b=n(51409),y=n(11418),v=n(13064),E=n(37841),A=n(77459),w=n(51748),T=n(10939),I=n(15482);const{syncUsers:C}=l.zt,S="started",O="inProgress",B="completed";h.on(y.qY.BID_ADJUSTMENT,function(e){!function(e){const t=(0,A.y)(e.cpm,e);t>=0&&(e.cpm=t)}(e)});const R=4,U={},k={},D=[],_=(0,w.m)();const $=(0,u.A_)("sync",e=>{});function q(e){let{adUnits:t,adUnitCodes:n,callback:i,cbTimeout:l,labels:u,auctionId:m,ortb2Fragments:A,metrics:w}=e;w=(0,E.BO)(w);const q=t,L=u,z=n,V=m||(0,r.generateUUID)(),H=l,Q=new Set,J=(0,v.v6)(),K=(0,v.v6)();let Y=[],X=i,ee=[];const te=(0,T.H)({startTime:e=>e.responseTimestamp,ttl:e=>null==(0,I.S9)()?null:1e3*Math.max((0,I.S9)(),e.ttl)});let ne,re,ie,oe,se=[],ae=[],de=[];function ce(){return{auctionId:V,timestamp:ne,auctionEnd:re,auctionStatus:oe,adUnits:q,adUnitCodes:z,labels:L,bidderRequests:ee,noBids:se,bidsReceived:te.toArray(),bidsRejected:Y,winningBids:ae,timeout:H,metrics:w,seatNonBids:de}}function le(e){if(e?h.emit(y.qY.AUCTION_TIMEOUT,ce()):clearTimeout(ie),void 0===re){let n=[];e&&((0,r.logMessage)(`Auction ${V} timedOut`),n=ee.filter(e=>!Q.has(e.bidderRequestId)).flatMap(e=>e.bids),n.length&&h.emit(y.qY.BID_TIMEOUT,n)),oe=B,re=Date.now(),w.checkpoint("auctionEnd"),w.timeBetween("requestBids","auctionEnd","requestBids.total"),w.timeBetween("callBids","auctionEnd","requestBids.callBids"),J.resolve(),h.emit(y.qY.AUCTION_END,ce()),N(q,function(){try{if(null!=X){const t=te.toArray().filter(e=>z.includes(e.adUnitCode)).reduce(Z,{});X.apply(_,[t,e,V]),X=null}}catch(e){(0,r.logError)("Error executing bidsBackHandler",null,e)}finally{n.length&&b.Ay.callTimedOutBidders(t,n,H);const e=c.$W.getConfig("userSync")??{};e.enableOverride||C(e.syncDelay)}})}}function ue(){c.$W.resetBidder(),(0,r.logInfo)(`Bids Received for Auction with id: ${V}`,te.toArray()),oe=B,le(!1)}function ge(e){Q.add(e)}function fe(e){e.forEach(e=>{var t;t=e,ee=ee.concat(t)});const t={},n={bidRequests:e,run:()=>{$(this),ie=setTimeout(()=>le(!0),H),oe=O,h.emit(y.qY.AUCTION_INIT,ce());const n=function(e,t){let{index:n=p.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=0,l=!1;const u=new Set,m={};function b(){i--,l&&0===i&&e()}function E(e,t,n){return m[t.requestId]=!0,function(e,t){let{index:n=p.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n.getAdUnit(e);F(e,{index:n}),Object.assign(e,{cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:t}),null!=r?.ttlBuffer&&(e.ttlBuffer=r.ttlBuffer)}(t,e),i++,n(b)}function A(e,i){E(e,i,e=>{const l=function(e){let{index:t=p.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h.emit(y.qY.BID_ADJUSTMENT,e);const n=t.getAdUnit(e);e.instl=1===n?.ortb2Imp?.instl;const r=t.getBidRequest(e)?.renderer||n.renderer,i=e.mediaType,s=t.getMediaTypes(e),a=s&&s[i];var l=a&&a.renderer,u=null;!l||!l.render||!0===l.backupOnly&&e.renderer?!r||!r.render||!0===r.backupOnly&&e.renderer||(u=r):u=l;u&&(e.renderer=d.A4.install({url:u.url,config:u.options,renderNow:null==u.url}),e.renderer.setRender(u.render));const g=G(e.mediaType,s,c.$W.getConfig("mediaTypePriceGranularity")),f=(0,o.j)(e.cpm,"object"==typeof g?g:c.$W.getConfig("customPriceBucket"),c.$W.getConfig("currency.granularityMultiplier"));return e.pbLg=f.low,e.pbMg=f.med,e.pbHg=f.high,e.pbAg=f.auto,e.pbDg=f.dense,e.pbCg=f.custom,e}(i);h.emit(y.qY.BID_ACCEPTED,l),l.mediaType===f.G_||l.mediaType===f.FY?function(e,t,n){let{index:i=p.n.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=!0;const s=i.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId})?.video,d=s&&s?.context,l=s&&s?.useCacheKey,{useLocal:u,url:f,ignoreBidderCacheKey:m}=c.$W.getConfig("cache")||{};u?(0,a.Sb)(t):f&&(l||d!==g.H6)&&(!t.videoCacheKey||m?(o=!1,M(e,t,n,s)):t.vastUrl||((0,r.logError)("videoCacheKey specified but not required vastUrl for video bid"),o=!1));o&&(P(e,t),n())}(t,l,e):((0,s.l6)(l)&&(0,s.gs)(l,n.getAdUnit(l)),P(t,l),e())})}function w(e,n,i){return E(e,n,e=>{n.rejectionReason=i,(0,r.logWarn)(`Bid from ${n.bidder||"unknown bidder"} was rejected: ${i}`,n),h.emit(y.qY.BID_REJECTED,n),t.addBidRejected(n),e()})}function T(){const n=this;let o=t.getBidRequests();const s=c.$W.getConfig("auctionOptions");if(u.add(n),s&&!(0,r.isEmpty)(s)){const e=s.secondaryBidders;e&&!o.every(t=>e.includes(t.bidderCode))&&(o=o.filter(t=>!e.includes(t.bidderCode)))}l=o.every(e=>u.has(e)),n.bids.forEach(e=>{m[e.bidId]||(F(e),t.addNoBid(e),h.emit(y.qY.NO_BID,e))}),l&&0===i&&e()}return{addBidResponse:function(){function e(e,t){x.call({dispatch:A},e,t,(()=>{let n=!1;return r=>{n||(w(e,t,r),n=!0)}})())}return e.reject=w,e}(),adapterDone:function(){W(v.U9.resolve()).finally(()=>T.call(this))}}}(ue,this);b.Ay.callBids(q,e,n.addBidResponse,n.adapterDone,{request(e,n){l(U,n),l(t,e),k[e]||(k[e]={SRA:!0,origin:n}),t[e]>1&&(k[e].SRA=!1)},done(e){U[e]--,D[0]&&i(D[0])&&D.shift()}},H,ge,A),K.resolve()}};function i(e){let t=!0;const n=c.$W.getConfig("maxRequestsPerOrigin")||R;return e.bidRequests.some(e=>{let r=1;const i=void 0!==e.src&&e.src===y.RW.SRC?"s2s":e.bidderCode;return k[i]&&(!1===k[i].SRA&&(r=Math.min(e.bids.length,n)),U[k[i].origin]+r>n&&(t=!1)),!t}),t&&e.run(),t}function l(e,t){void 0===e[t]?e[t]=1:e[t]++}i(n)||((0,r.logWarn)("queueing auction due to limited endpoint capacity"),D.push(n))}return(0,I.lc)(()=>te.refresh()),h.on(y.qY.SEAT_NON_BID,e=>{var t;e.auctionId===V&&(t=e.seatnonbid,de=de.concat(t))}),{addBidReceived:function(e){te.add(e)},addBidRejected:function(e){Y=Y.concat(e)},addNoBid:function(e){se=se.concat(e)},callBids:function(){oe=S,ne=Date.now();const e=w.measureTime("requestBids.makeRequests",()=>b.Ay.makeBidRequests(q,ne,V,H,L,A,w));(0,r.logInfo)(`Bids Requested for Auction with id: ${V}`,e),w.checkpoint("callBids"),e.length<1?((0,r.logWarn)("No valid bid requests returned for auction"),ue()):j.call({dispatch:fe,context:this},e)},addWinningBid:function(e){ae=ae.concat(e),b.Ay.callBidWonBidder(e.adapterCode||e.bidder,e,t),e.deferBilling||b.Ay.triggerBilling(e)},setBidTargeting:function(e){b.Ay.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:()=>ae,getAuctionStart:()=>ne,getAuctionEnd:()=>re,getTimeout:()=>H,getAuctionId:()=>V,getAuctionStatus:()=>oe,getAdUnits:()=>q,getAdUnitCodes:()=>z,getBidRequests:()=>ee,getBidsReceived:()=>te.toArray(),getNoBids:()=>se,getNonBids:()=>de,getFPD:()=>A,getMetrics:()=>w,end:J.promise,requestsDone:K.promise,getProperties:ce}}const x=(0,u.u2)((0,u.A_)("async",function(e,t,n){!function(e){const t=c.$W.getConfig("maxBid");return!t||!e.cpm||t>=Number(e.cpm)}(t)?n(y.Tf.PRICE_TOO_HIGH):this.dispatch.call(null,e,t)},"addBidResponse")),W=(0,u.A_)("sync",e=>e,"responsesReady"),j=(0,u.A_)("sync",function(e){this.dispatch.call(this.context,e)},"addBidderRequests"),N=(0,u.A_)("async",function(e,t){t&&t()},"bidsBackCallback");function P(e,t){!function(e){let t;const n=!0===m.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){let{index:n=p.n.index}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t)return{};const r=n.getBidRequest(t);var i={};const o=Y(t.mediaType,e);X(i,o,t,r),e&&m.u.getOwn(e,y.iD.ADSERVER_TARGETING)&&(X(i,m.u.ownSettingsFor(e),t,r),t.sendStandardTargeting=m.u.get(e,"sendStandardTargeting"));return i}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},t)}(t),(0,E.BO)(t.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(t),h.emit(y.qY.BID_RESPONSE,t)}const M=(0,u.A_)("async",function(e,t,n,r){(0,a.X5)(e,t,n)},"callPrebidCache");function F(e){let{index:t=p.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.getBidderRequest(e),i=n&&n.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,r.timestamp)(),requestTimestamp:e.requestTimestamp||i}),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}function G(e,t,n){if(e&&n){if(e===f.G_){const e=t?.[f.G_]?.context??"instream";if(n[`${f.G_}-${e}`])return n[`${f.G_}-${e}`]}return n[e]}}const L=function(e){let{index:t=p.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=G(e.mediaType,t.getMediaTypes(e),c.$W.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&n?"string"==typeof n?n:"custom":c.$W.getConfig("priceGranularity")},z=e=>t=>{const n=e||L(t);return n===y.UE.AUTO?t.pbAg:n===y.UE.DENSE?t.pbDg:n===y.UE.LOW?t.pbLg:n===y.UE.MEDIUM?t.pbMg:n===y.UE.HIGH?t.pbHg:n===y.UE.CUSTOM?t.pbCg:void 0},V=()=>e=>e.creativeId?e.creativeId:"",H=()=>e=>e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:"",Q=()=>e=>e.meta&&(e.meta.networkId||e.meta.networkName)?e?.meta?.networkName||e?.meta?.networkId:"",J=()=>e=>{const t=e?.meta?.primaryCatId;return Array.isArray(t)?t[0]||"":t||""};function K(e,t){return{key:e,val:"function"==typeof t?function(e,n){return t(e,n)}:function(e){return e[t]}}}function Y(e,t){const n=Object.assign({},m.u.settingsFor(null));if(n[y.iD.ADSERVER_TARGETING]||(n[y.iD.ADSERVER_TARGETING]=[K(y.xS.BIDDER,"bidderCode"),K(y.xS.AD_ID,"adId"),K(y.xS.PRICE_BUCKET,z()),K(y.xS.SIZE,"size"),K(y.xS.DEAL,"dealId"),K(y.xS.SOURCE,"source"),K(y.xS.FORMAT,"mediaType"),K(y.xS.ADOMAIN,H()),K(y.xS.ACAT,J()),K(y.xS.DSP,Q()),K(y.xS.CRID,V())]),"video"===e){const e=n[y.iD.ADSERVER_TARGETING].slice();if(n[y.iD.ADSERVER_TARGETING]=e,[y.xS.UUID,y.xS.CACHE_ID].forEach(t=>{void 0===e.find(e=>e.key===t)&&e.push(K(t,"videoCacheKey"))}),c.$W.getConfig("cache.url")&&(!t||!1!==m.u.get(t,"sendStandardTargeting"))){const t=(0,r.parseUrl)(c.$W.getConfig("cache.url"));void 0===e.find(e=>e.key===y.xS.CACHE_HOST)&&e.push(K(y.xS.CACHE_HOST,function(e){return e?.adserverTargeting?.[y.xS.CACHE_HOST]||t.hostname}))}}return n}function X(e,t,n,o){var s=t[y.iD.ADSERVER_TARGETING];return n.size=n.getSize(),(s||[]).forEach(function(s){var a=s.key,d=s.val;if(e[a]&&(0,r.logWarn)("The key: "+a+" is being overwritten"),(0,i.fp)(d))try{d=d(n,o)}catch(e){(0,r.logError)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&a!==y.xS.DEAL&&a!==y.xS.ACAT&&a!==y.xS.DSP&&a!==y.xS.CRID||!(0,r.isEmptyStr)(d)&&null!=d?e[a]=d:(0,r.logInfo)("suppressing empty key '"+a+"' from adserver targeting")}),e}function Z(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},71852:(e,t,n)=>{n.d(t,{$A:()=>I,BS:()=>P,Hh:()=>W,Pk:()=>j,Uc:()=>B,XO:()=>M,_0:()=>D,bw:()=>_,n6:()=>C,qn:()=>$,vB:()=>N,vW:()=>R,vd:()=>k});var r=n(10466),i=n(18014),o=n(11418),s=n(91933),a=n(67464),d=n(59794),c=n(63006),l=n(45144),u=n(32592),g=n(80356),f=n(13064),p=n(51409),m=n(37841),h=n(80869),b=n(72122);const{AD_RENDER_FAILED:y,AD_RENDER_SUCCEEDED:v,STALE_RENDER:E,BID_WON:A,EXPIRED_RENDER:w}=o.qY,{EXCEPTION:T}=o.as,I=(0,u.A_)("sync",function(e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.U9.resolve()).then(t=>t??c.n.findBidByAdId(e)).catch(()=>{})}),C=(0,u.A_)("sync",function(e){((0,b.$T)(e.eventtrackers)[b.RO]?.[b.Ni]||[]).forEach(e=>(0,r.triggerPixel)(e)),i.emit(A,e),c.n.addWinningBid(e)});function S(e){let{reason:t,message:n,bid:o,id:s}=e;const a={reason:t,message:n};o&&(a.bid=o,a.adId=o.adId),s&&(a.adId=s),(0,r.logError)(`Error rendering ad (id: ${s}): ${n}`),i.emit(y,a)}function O(e){let{doc:t,bid:n,id:r}=e;const o={doc:t,bid:n,adId:r};p.Ay.callAdRenderSucceededBidder(n.adapterCode||n.bidder,n),i.emit(v,o)}function B(e,t){switch(e.event){case o.qY.AD_RENDER_FAILED:S({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case o.qY.AD_RENDER_SUCCEEDED:O({doc:null,bid:t,id:t.adId});break;case o.qY.BROWSER_INTERVENTION:!function(e){const{bid:t,intervention:n}=e;p.Ay.callOnInterventionBidder(t.adapterCode||t.bidder,t,n),i.emit(o.qY.BROWSER_INTERVENTION,e)}({bid:t,adId:t.adId,intervention:e.intervention});break;default:(0,r.logError)(`Received event request for unsupported event: '${e.event}' (adId: '${t.adId}')`)}}function R(e,t,n){let{resizeFn:r,fireTrackers:i=g.vO}=n;if("resizeNativeHeight"===e.action)r(e.width,e.height);else i(e,t)}const U={[o.nl.EVENT]:B};U[o.nl.NATIVE]=R;const k=(0,u.A_)("sync",function(e,t){const{ad:n,adUrl:i,cpm:o,originalCpm:s,width:a,height:d,instl:c}=e,l={AUCTION_PRICE:s||o,CLICKTHROUGH:t?.clickUrl||""};return{ad:(0,r.replaceMacros)(n,l),adUrl:(0,r.replaceMacros)(i,l),width:a,height:d,instl:c}}),D=(0,u.A_)("sync",function(e){let{renderFn:t,resizeFn:n,bidResponse:i,options:s,doc:a,isMainDocument:c=a===document&&!(0,r.inIframe)()}=e;const l=i.mediaType===d.G_;if(c||l)return void S({reason:o.as.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:l?"Cannot render video ad without a renderer":"renderAd was prevented from writing to the main document.",bid:i,id:i.adId});const u=k(i,s);t(Object.assign({adId:i.adId},u));const{width:g,height:f}=u;null!=(g??f)&&n(g,f)});function _(e){let{renderFn:t,resizeFn:n,adId:a,options:d,bidResponse:c,doc:l}=e;W(c,()=>{if(null!=c){if((c.status!==o.tl.RENDERED||((0,r.logWarn)(`Ad id ${a} has been rendered before`),i.emit(E,c),!s.$W.getConfig("auctionOptions")?.suppressStaleRender))&&(h.uW.isBidNotExpired(c)||((0,r.logWarn)(`Ad id ${a} has been expired`),i.emit(w,c),!s.$W.getConfig("auctionOptions")?.suppressExpiredRender)))try{D({renderFn:t,resizeFn:n,bidResponse:c,options:d,doc:l})}catch(e){S({reason:o.as.EXCEPTION,message:e.message,id:a,bid:c})}}else S({reason:o.as.CANNOT_FIND_AD,message:`Cannot find ad '${a}'`,id:a})})}function $(e){const t=(0,m.BO)(e.metrics);t.checkpoint("bidRender"),t.timeBetween("bidWon","bidRender","render.deferred"),t.timeBetween("auctionEnd","bidRender","render.pending"),t.timeBetween("requestBids","bidRender","render.e2e"),e.status=o.tl.RENDERED}D.before(function(e,t){const{bidResponse:n,doc:r}=t;(0,a.J7)(n.renderer)?((0,a.Pg)(n.renderer,n,r),O({doc:r,bid:n,id:n.adId}),e.bail()):e(t)},100);const q=new WeakMap,x=new WeakSet;function W(e,t){null!=e?(q.set(e,t),e.deferRendering||N(e),j(e)):t()}function j(e){x.has(e)||(x.add(e),C(e))}function N(e){const t=q.get(e);t&&(t(),$(e),q.delete(e))}function P(e,t,n){let i;function s(e,n){S(Object.assign({id:t,bid:i},{reason:e,message:n}))}function a(t,n){const r=e.defaultView?.frameElement;r&&(t&&(r.width=t,r.style.width&&(r.style.width=`${t}px`)),n&&(r.height=n,r.style.height&&(r.style.height=`${n}px`)))}const d=(c={resizeFn:a},function(e,t,n){U.hasOwnProperty(e)&&U[e](t,n,c)});var c;function u(e){return new f.U9(t=>{"loading"===e.readyState?e.addEventListener("DOMContentLoaded",t):t()})}function g(t){f.U9.all([(0,l.HH)(i),u(e)]).then(n=>{let[o]=n;return o(t,{sendMessage:(e,t)=>d(e,t,i),mkFrame:r.createIframe},e.defaultView)}).then(()=>O({doc:e,bid:i,id:i.adId}),e=>{s(e?.reason||o.as.EXCEPTION,e?.message),e?.stack&&(0,r.logError)(e)});const n=document.createComment(`Creative ${i.creativeId} served by ${i.bidder} Prebid.js Header Bidding`);(0,r.insertElement)(n,e,"html")}try{t&&e?I(t).then(r=>{i=r,_({renderFn:g,resizeFn:a,adId:t,options:{clickUrl:n?.clickThrough},bidResponse:r,doc:e})}):s(o.as.MISSING_DOC_OR_ADID,"missing "+(t?"doc":"adId"))}catch(e){s(T,e.message)}}function M(){if(!window.frames[o.IY])if(document.body){const e=(0,r.createInvisibleIframe)();e.name=o.IY,document.body.appendChild(e)}else window.requestAnimationFrame(M)}},71958:(e,t,n)=>{n.d(t,{U:()=>s});var r=n(51748),i=n(10466);const o=(0,r.m)();function s(e,t){o.adServers=o.adServers||{},o.adServers[e]=o.adServers[e]||{},Object.keys(t).forEach(n=>{o.adServers[e][n]?(0,i.logWarn)(`Attempting to add an already registered function property ${n} for AdServer ${e}.`):o.adServers[e][n]=t[n]})}},72122:(e,t,n)=>{n.d(t,{$T:()=>a,Ni:()=>r,OA:()=>o,RO:()=>s,fR:()=>i});const r=1,i=2,o=1,s=500;function a(e){return(e??[]).reduce((e,t)=>{let{event:n,method:r,url:i}=t;const o=e[n]=e[n]??{};return(o[r]=o[r]??[]).push(i),e},{})}},73391:(e,t,n)=>{n.d(t,{qh:()=>g,zt:()=>p});var r=n(26665),i=n(10466),o=n(91933),s=n(61443),a=n(53202),d=n(45808),c=n(25291),l=n(70736),u=n(77610);const g={syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:500};o.$W.setDefaults({userSync:(0,r.Go)(g)});const f=(0,s.CK)("usersync");const p=function(e){const t={};let n={image:[],iframe:[]};const s=new Set;let a={};const g={image:!0,iframe:!1};let f=e.config;function p(){if(f.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!g.iframe)return;m(n.iframe,e=>{const[t,r]=e;(0,i.logMessage)(`Invoking iframe user sync for bidder: ${t}`),(0,i.insertUserSyncIframe)(r),function(e,t){e.image=e.image.filter(e=>e[0]!==t)}(n,t)})}(),function(){if(!g.image)return;m(n.image,e=>{const[t,n]=e;(0,i.logMessage)(`Invoking image pixel user sync for bidder: ${t}`),(0,i.triggerPixel)(n)})}()}catch(e){return(0,i.logError)("Error firing user syncs",e)}n={image:[],iframe:[]}}}function m(e,t){(0,i.shuffle)(e).forEach(t)}function h(e,t){const n=f.filterSettings;if(function(e,t){if(e.all&&e[t])return(0,i.logWarn)(`Detected presence of the "filterSettings.all" and "filterSettings.${t}" in userSync config.  You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.`),!1;const n=e.all?e.all:e[t],o=e.all?"all":t;if(!n)return!1;const s=n.filter,a=n.bidders;if(s&&"include"!==s&&"exclude"!==s)return(0,i.logWarn)(`UserSync "filterSettings.${o}.filter" setting '${s}' is not a valid option; use either 'include' or 'exclude'.`),!1;if("*"!==a&&!(Array.isArray(a)&&a.length>0&&a.every(e=>(0,r.O8)(e)&&"*"!==e)))return(0,i.logWarn)(`Detected an invalid setup in userSync "filterSettings.${o}.bidders"; use either '*' (to represent all bidders) or an array of bidders.`),!1;return!0}(n,e)){g[e]=!0;const r=n.all?n.all:n[e],i="*"===r.bidders?[t]:r.bidders,o={include:(e,t)=>!e.includes(t),exclude:(e,t)=>e.includes(t)};return o[r.filter||"include"](i,t)}return!g[e]}return o.$W.getConfig("userSync",e=>{if(e.userSync){const t=e.userSync.filterSettings;(0,r.Qd)(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}f=Object.assign(f,e.userSync)}),e.regRule(d.Ml,"userSync config",e=>{if(!f.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(e[c.Dk]===l.tW){const n=e[c.bt],r=e[c.iK];if(!t.canBidderRegisterSync(n,r))return{allow:!1,reason:`${n} syncs are not enabled for ${r}`}}}),t.registerSync=(t,o,g)=>s.has(o)?(0,i.logMessage)(`already fired syncs for "${o}", ignoring registerSync call`):f.syncEnabled&&(0,r.cy)(n[t])?o?0!==f.syncsPerBidder&&Number(a[o])>=f.syncsPerBidder?(0,i.logWarn)(`Number of user syncs exceeded for "${o}"`):void(e.isAllowed(d.Ml,(0,u.s)(l.tW,o,{[c.bt]:t,[c.e3]:g}))&&(n[t].push([o,g]),a=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(a,o))):(0,i.logWarn)("Bidder is required for registering sync"):(0,i.logWarn)(`User sync type "${t}" not supported`),t.bidderDone=s.add.bind(s),t.syncUsers=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(p,Number(e));p()},t.triggerUserSyncs=()=>{f.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=(e,t)=>!f.filterSettings||!h(e,t),t}(Object.defineProperties({config:o.$W.getConfig("userSync"),isAllowed:a.io,regRule:a.qB},{browserSupportsCookies:{get:function(){return!(0,i.isSafariBrowser)()&&f.cookiesAreEnabled()}}}))},75049:(e,t,n)=>{n.d(t,{R:()=>c});var r=n(45808),i=n(77610),o=n(53202),s=n(10466);const a=new WeakMap,d=["debugging","outstream","aaxBlockmeter","adagio","adloox","arcspan","airgrid","browsi","brandmetrics","clean.io","humansecurityMalvDefense","humansecurity","confiant","contxtful","hadron","mediafilter","medianet","azerionedge","a1Media","geoedge","qortex","dynamicAdBoost","51Degrees","symitridap","wurfl","nodalsAi","anonymised","optable","oftmedia","justtag","tncId","ftrackId","id5"];function c(e,t,n,c,l,u){if(!(0,o.io)(r.pY,(0,i.s)(t,n)))return;if(!n||!e)return void(0,s.logError)("cannot load external script without url and moduleCode");if(!d.includes(n))return void(0,s.logError)(`${n} not whitelisted for loading external JavaScript`);l||(l=document);const g=m(l,e);if(g)return c&&"function"==typeof c&&(g.loaded?c():g.callbacks.push(c)),g.tag;const f=a.get(l)||{},p={loaded:!1,tag:null,callbacks:[]};return f[e]=p,a.set(l,f),c&&"function"==typeof c&&p.callbacks.push(c),(0,s.logWarn)(`module ${n} is loading external JavaScript`),function(t,n,r,i){r||(r=document);var o=r.createElement("script");o.type="text/javascript",o.async=!0;const a=m(r,e);a&&(a.tag=o);o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,n())}:o.onload=function(){n()};o.src=t,i&&(0,s.setScriptAttributes)(o,i);return(0,s.insertElement)(o,r),o}(e,function(){p.loaded=!0;try{for(let e=0;e<p.callbacks.length;e++)p.callbacks[e]()}catch(e){(0,s.logError)("Error executing callback","adloader.js:loadExternalScript",e)}},l,u);function m(e,t){const n=a.get(e);return n&&n[t]?n[t]:null}}},77156:(e,t,n)=>{n.d(t,{u:()=>a});var r=n(58928),i=n(10466),o=n(51748),s=n(11418);const a=new class{constructor(e,t){this.getSettings=e,this.defaultScope=t}get(e,t){let n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}getOwn(e,t){return e=this.#a(e),(0,r.A)(this.getSettings(),`${e}.${t}`)}getScopes(){return Object.keys(this.getSettings()).filter(e=>e!==this.defaultScope)}settingsFor(e){return(0,i.mergeDeep)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}ownSettingsFor(e){return e=this.#a(e),this.getSettings()[e]||{}}#a(e){return null==e?this.defaultScope:e}}(()=>(0,o.m)().bidderSettings||{},s.iD.BD_SETTING_STANDARD)},77459:(e,t,n)=>{n.d(t,{y:()=>s});var r=n(63006),i=n(77156),o=n(10466);function s(e,t,n){let{index:s=r.n.index,bs:a=i.u}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n=n||s.getBidRequest(t);const d=t?.adapterCode,c=t?.bidderCode||n?.bidder,l=a.get(t?.adapterCode,"adjustAlternateBids"),u=a.getOwn(c,"bidCpmAdjustment")||a.get(l?d:c,"bidCpmAdjustment");if(u&&"function"==typeof u)try{return u(e,Object.assign({},t),n)}catch(e){(0,o.logError)("Error during bid adjustment",e)}return e}},77610:(e,t,n)=>{n.d(t,{s:()=>i});var r=n(51409);const i=(0,n(25291).ZI)(e=>r.Ay.resolveAlias(e))},79236:(e,t,n)=>{function r(e,t){return e===t?0:e<t?-1:1}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>e;return(t,n)=>r(e(t),e(n))}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return(t,n)=>-e(t,n)||0}function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){for(const r of t){const t=r(e,n);if(0!==t)return t}return 0}}function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r;return(t,n)=>e(n,t)<0?n:t}function d(){return a(o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:r))}n.d(t,{Bp:()=>a,Bq:()=>g,NV:()=>i,Ph:()=>d,Vk:()=>u});const c=i(e=>e.cpm),l=i(e=>e.responseTimestamp),u=d(s(c,o(i(e=>e.timeToRespond)))),g=d(s(c,o(l)));d(s(c,l))},80356:(e,t,n)=>{n.d(t,{Bm:()=>v,Ex:()=>q,Gg:()=>T,IX:()=>S,Xj:()=>D,gs:()=>A,l6:()=>m,mT:()=>u,nk:()=>b,rn:()=>R,vO:()=>E,yl:()=>O});var r=n(10466),i=n(26665),o=n(63006),s=n(11418),a=n(59794),d=n(71852),c=n(45144),l=n(72122);const u=[],g={image:{ortb:{ver:"1.2",assets:[{required:1,id:1,img:{type:3,wmin:100,hmin:100}},{required:1,id:2,title:{len:140}},{required:1,id:3,data:{type:1}},{required:0,id:4,data:{type:2}},{required:0,id:5,img:{type:1,wmin:20,hmin:20}}]},image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}},f=x(s.h0),p=x(s.jO);function m(e){return null!=e.native&&"object"==typeof e.native}function h(e){if(e&&e.type&&function(e){if(!e||!Object.keys(g).includes(e))return(0,r.logError)(`${e} nativeParam is not supported`),!1;return!0}(e.type)&&(e=g[e.type]),!e||!e.ortb||y(e.ortb))return e}function b(e){e.forEach(e=>{const t=e.nativeParams||e?.mediaTypes?.native;t&&(e.nativeParams=h(t)),e.nativeParams&&(e.nativeOrtbRequest=e.nativeParams.ortb||R(e.nativeParams))})}function y(e){const t=e.assets;if(!Array.isArray(t)||0===t.length)return(0,r.logError)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",t),!1;const n=t.map(e=>e.id);return t.length!==new Set(n).size||n.some(e=>e!==parseInt(e,10))?((0,r.logError)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):e.hasOwnProperty("eventtrackers")&&!Array.isArray(e.eventtrackers)?((0,r.logError)("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):t.every(e=>function(e){if(!(0,i.Qd)(e))return(0,r.logError)("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!(0,i.Et)(e.img.w)&&!(0,i.Et)(e.img.wmin))return(0,r.logError)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,i.Et)(e.img.h)&&!(0,i.Et)(e.img.hmin))return(0,r.logError)("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!(0,i.Et)(e.title.len))return(0,r.logError)("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!(0,i.Et)(e.data.type))return(0,r.logError)("for data asset 'type' property must be a number"),!1}else if(e.video&&!(Array.isArray(e.video.mimes)&&Array.isArray(e.video.protocols)&&(0,i.Et)(e.video.minduration)&&(0,i.Et)(e.video.maxduration)))return(0,r.logError)("video asset is not properly configured"),!1;return!0}(e))}function v(e){let{index:t=o.n.index}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=t.getAdUnit(e);if(!n)return!1;const i=n.nativeOrtbRequest;return function(e,t){if(!e?.link?.url)return(0,r.logError)("native response doesn't have 'link' property. Ortb response: ",e),!1;const n=t.assets.filter(e=>1===e.required).map(e=>e.id),i=e.assets.map(e=>e.id),o=n.every(e=>i.includes(e));o||(0,r.logError)(`didn't receive a bid with all required assets. Required ids: ${n}, but received ids in response: ${i}`);return o}(e.native?.ortb||$(e.native,i),i)}function E(e,t){const n=t.native.ortb||_(t.native);return"click"===e.action?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,{fetchURL:n=r.triggerPixel}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){const r=(e.assets||[]).filter(e=>e.link).reduce((e,t)=>(e[t.id]=t.link,e),{}),i=e.link?.clicktrackers||[],o=r[t];let s=i;o&&(s=o.clicktrackers||[]),s.forEach(e=>n(e))}else(e.link?.clicktrackers||[]).forEach(e=>n(e))}(n,e?.assetId):function(e){let{runMarkup:t=e=>(0,r.insertHtmlIntoIframe)(e),fetchURL:n=r.triggerPixel}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{[l.Ni]:i=[],[l.fR]:o=[]}=(0,l.$T)(e.eventtrackers||[])[l.OA]||{};e.imptrackers&&(i=i.concat(e.imptrackers));i.forEach(e=>n(e)),o=o.map(e=>`<script async src="${e}"><\/script>`),e.jstracker&&(o=o.concat([e.jstracker]));o.length&&t(o.join("\n"))}(n),e.action}function A(e,t){const n=t?.nativeOrtbRequest,r=e.native?.ortb;if(n&&r){const t=q(r,n);Object.assign(e.native,t)}["rendererUrl","adTemplate"].forEach(n=>{const r=t?.nativeParams?.[n];r&&(e.native[n]=B(r))})}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=[];return Object.entries(e).filter(e=>{let[r,i]=e;return i&&(!1===n&&"ext"===r||null==t||t.includes(r))}).forEach(e=>{let[i,o]=e;!1===n&&"ext"===i?r.push(...w(o,t,!0)):(n||s.x5.hasOwnProperty(i))&&r.push({key:i,value:B(o)})}),r}function T(e,t,n){const r={...(0,i.SH)(e.native,["rendererUrl","adTemplate"]),assets:w(e.native,n),nativeKeys:s.x5};return e.native.ortb?r.ortb=e.native.ortb:t.mediaTypes?.native?.ortb&&(r.ortb=$(e.native,t.nativeOrtbRequest)),r}function I(e,t,n){let{index:r=o.n.index}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i={message:"assetResponse",adId:e.adId};let s=(0,d.vd)(t).native;return s?(i.native=Object.assign({},s),i.renderer=(0,c.kj)(t),i.rendererVersion=c.xh,null!=n&&(s.assets=s.assets.filter(e=>{let{key:t}=e;return n.includes(t)}))):s=T(t,r.getAdUnit(t),n),Object.assign(i,s)}const C=Object.fromEntries(Object.entries(s.x5).map(e=>{let[t,n]=e;return[n,t]}));function S(e,t){const n=e.assets.map(e=>C[e]);return I(e,t,n)}function O(e,t){return I(e,t,null)}function B(e){return e?.url||e}function R(e){if(!e&&!(0,i.Qd)(e))return void(0,r.logError)("Native assets object is empty or not an object: ",e);const t={ver:"1.2",assets:[]};for(const n in e){if(s._B.includes(n))continue;if(!s.x5.hasOwnProperty(n)){(0,r.logError)(`Unrecognized native asset code: ${n}. Asset will be ignored.`);continue}if("privacyLink"===n){t.privacy=1;continue}const o=e[n];let a=0;o.required&&(0,i.Lm)(o.required)&&(a=Number(o.required));const d={id:t.assets.length,required:a};if(n in s.h0)d.data={type:s.jO[s.h0[n]]},o.len&&(d.data.len=o.len);else if("icon"===n||"image"===n){if(d.img={type:"icon"===n?s.oA.ICON:s.oA.MAIN},o.aspect_ratios)if((0,i.cy)(o.aspect_ratios))if(o.aspect_ratios.length){const{min_width:e,min_height:t}=o.aspect_ratios[0];(0,i.Fq)(e)&&(0,i.Fq)(t)?(d.img.wmin=e,d.img.hmin=t):(0,r.logError)("image.aspect_ratios min_width or min_height are invalid: ",e,t);const n=o.aspect_ratios.filter(e=>e.ratio_width&&e.ratio_height).map(e=>`${e.ratio_width}:${e.ratio_height}`);n.length>0&&(d.img.ext={aspectratios:n})}else(0,r.logError)("image.aspect_ratios was passed, but it's empty:",o.aspect_ratios);else(0,r.logError)("image.aspect_ratios was passed, but it's not a an array:",o.aspect_ratios);o.sizes&&(2===o.sizes.length&&(0,i.Fq)(o.sizes[0])&&(0,i.Fq)(o.sizes[1])?(d.img.w=o.sizes[0],d.img.h=o.sizes[1],delete d.img.hmin,delete d.img.wmin):(0,r.logError)("image.sizes was passed, but its value is not an array of integers:",o.sizes))}else"title"===n?d.title={len:o.len||140}:"ext"===n&&(d.ext=o,delete d.required);t.assets.push(d)}return t}function U(e,t){for(;e&&t&&e!==t;)e>t?e-=t:t-=e;return e||t}function k(e){if(!y(e))return;const t={};for(const n of e.assets){if(n.title){const e={required:!!n.required&&Boolean(n.required),len:n.title.len};t.title=e}else if(n.img){const e={required:!!n.required&&Boolean(n.required)};if(n.img.w&&n.img.h)e.sizes=[n.img.w,n.img.h];else if(n.img.wmin&&n.img.hmin){const t=U(n.img.wmin,n.img.hmin);e.aspect_ratios=[{min_width:n.img.wmin,min_height:n.img.hmin,ratio_width:n.img.wmin/t,ratio_height:n.img.hmin/t}]}n.img.type===s.oA.MAIN?t.image=e:t.icon=e}else if(n.data){const e=Object.keys(s.jO).find(e=>s.jO[e]===n.data.type),r=Object.keys(s.h0).find(t=>s.h0[t]===e);t[r]={required:!!n.required&&Boolean(n.required)},n.data.len&&(t[r].len=n.data.len)}e.privacy&&(t.privacyLink={required:!1})}return t}function D(e){{if(!e||!(0,i.cy)(e))return e;if(!e.some(e=>(e?.mediaTypes||{})[a.s6]?.ortb))return e;const t=(0,i.Go)(e);for(const e of t)e.mediaTypes&&e.mediaTypes[a.s6]&&e.mediaTypes[a.s6].ortb&&(e.mediaTypes[a.s6]=Object.assign((0,r.pick)(e.mediaTypes[a.s6],s._B),k(e.mediaTypes[a.s6].ortb)),e.nativeParams=h(e.mediaTypes[a.s6]));return t}}function _(e){const t={link:{},eventtrackers:[]};return Object.entries(e).forEach(e=>{let[n,r]=e;switch(n){case"clickUrl":t.link.url=r;break;case"clickTrackers":t.link.clicktrackers=Array.isArray(r)?r:[r];break;case"impressionTrackers":(Array.isArray(r)?r:[r]).forEach(e=>{t.eventtrackers.push({event:l.OA,method:l.Ni,url:e})});break;case"javascriptTrackers":t.jstracker=Array.isArray(r)?r.join(""):r;break;case"privacyLink":t.privacy=r}}),t}function $(e,t){const n={..._(e),assets:[]};function r(e,r){let o=t.assets.find(e);null!=o&&(o=(0,i.Go)(o),r(o),n.assets.push(o))}return Object.keys(e).filter(t=>!!e[t]).forEach(t=>{const n=B(e[t]);switch(t){case"title":r(e=>null!=e.title,e=>{e.title={text:n}});break;case"image":case"icon":const e="image"===t?s.oA.MAIN:s.oA.ICON;r(t=>null!=t.img&&t.img.type===e,e=>{e.img={url:n}});break;default:t in s.h0&&r(e=>null!=e.data&&e.data.type===s.jO[s.h0[t]],e=>{e.data={value:n}})}}),n}function q(e,t){const n={},r=t?.assets||[];n.clickUrl=e.link?.url,n.privacyLink=e.privacy;for(const t of e?.assets||[]){const e=r.find(e=>t.id===e.id);t.title?n.title=t.title.text:t.img?n[e?.img?.type===s.oA.MAIN?"image":"icon"]={url:t.img.url,width:t.img.w,height:t.img.h}:t.data&&(n[f[p[e?.data?.type]]]=t.data.value)}n.impressionTrackers=[];let i=[];e.imptrackers&&n.impressionTrackers.push(...e.imptrackers);for(const t of e?.eventtrackers||[])t.event===l.OA&&t.method===l.Ni&&n.impressionTrackers.push(t.url),t.event===l.OA&&t.method===l.fR&&i.push(t.url);return i=i.map(e=>`<script async src="${e}"><\/script>`),e?.jstracker&&i.push(e.jstracker),i.length&&(n.javascriptTrackers=i.join("\n")),n}function x(e){var t={};for(var n in e)t[e[n]]=n;return t}},80869:(e,t,n)=>{n.d(t,{uW:()=>I,m2:()=>B,ME:()=>S,Yl:()=>C,Jp:()=>O,iS:()=>k});var r=n(63006),i=n(15482),o=n(77156),s=n(91933),a=n(11418),d=n(18014),c=n(32592),l=n(59794),u=n(10466),g=n(26665),f=n(58928),p=n(79236),m=n(10939);const h=3e3;const b=function(){let e,t,n=(0,m.H)({monotonic:!0,ttl:()=>e,slack:0});s.$W.getConfig("targetingControls",r=>{({lock:t,lockTimeout:e=h}=r.targetingControls??{}),null==t||Array.isArray(t)?null==t&&i():t=[t],n.clear()});const[r,i]=(()=>{let e=!1;function r(e){let{slot:r}=e;t?.forEach(e=>r.getTargeting(e)?.forEach(n.delete))}return[()=>{null!=t&&!e&&(0,u.isGptPubadsDefined)()&&(googletag.pubads().addEventListener?.("slotRenderEnded",r),e=!0)},()=>{e&&(0,u.isGptPubadsDefined)()&&(googletag.pubads().removeEventListener?.("slotRenderEnded",r),e=!1)}]})();return{isLocked:e=>t?.some(t=>null!=e[t]&&n.has(e[t]))??!1,lock(e){r(),t?.forEach(t=>null!=e[t]&&n.add(e[t]))}}}();var y=[];const v=20,E="targetingControls.allowTargetingKeys",A="targetingControls.addTargetingKeys",w=`Only one of "${E}" or "${A}" can be set`,T=Object.keys(a.xS).map(e=>a.xS[e]),I={isBidNotExpired:e=>e.responseTimestamp+1e3*(0,i.cT)(e)>(0,u.timestamp)(),isUnusedBid:e=>e&&(e.status&&![a.tl.RENDERED].includes(e.status)||!e.status),isBidNotLocked:e=>!b.isLocked(e.adserverTargeting)};function C(e){return!Object.values(I).some(t=>!t(e))}const S=(0,c.A_)("sync",function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.sortByHighestCpm;if(!r){const r=[],o=s.$W.getConfig("sendBidsControl.dealPrioritization"),a=(0,u.groupBy)(e,"adUnitCode");return Object.keys(a).forEach(e=>{let s=[];const d=(0,u.groupBy)(a[e],"bidderCode");Object.keys(d).forEach(e=>{s.push(d[e].reduce(t))});const c="object"==typeof n?n[e]:n;c?(s=o?s.sort(O(!0)):s.sort((e,t)=>t.cpm-e.cpm),r.push(...s.slice(0,c))):(s=s.sort(i),r.push(...s))}),r}return e});function O(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n){return void 0!==t.adserverTargeting.hb_deal&&void 0===n.adserverTargeting.hb_deal?-1:void 0===t.adserverTargeting.hb_deal&&void 0!==n.adserverTargeting.hb_deal?1:e?n.cpm-t.cpm:n.adserverTargeting.hb_pb-t.adserverTargeting.hb_pb}}function B(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>window.googletag.pubads().getSlots())().reduce((e,n)=>{const r=(0,g.fp)(t)&&t(n);return Object.keys(e).filter((0,g.fp)(r)?r:(0,u.isAdUnitCodeMatchingSlot)(n)).forEach(t=>e[t].push(n)),e},Object.fromEntries(e.map(e=>[e,[]])))}function R(e,t){if(!s.$W.getConfig("enableSendAllBids"))return 0;const n=s.$W.getConfig("sendBidsControl.bidLimit"),i=new Set(e),o={};for(const e of r.n.getAdUnits())i.has(e.code)&&(o[e.code]=e?.bidLimit||t||n);return o}const U="1.17.2";const k=function(e){const t={},n={setLatestAuctionForAdUnit(e,n){t[e]=n},resetPresetTargetingAST(e){r(e).forEach(function(e){const t=window.apntag.getTag(e);if(t&&t.keywords){const n=Object.keys(t.keywords),r={};n.forEach(e=>{y.includes(e.toLowerCase())||(r[e]=t.keywords[e])}),window.apntag.modifyTag(e,{keywords:r})}})},getAllTargeting(t,n,d){let c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p.Vk,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:u.sortByHighestCpm;d||=i(c,l);const f=r(t),b=R(f,n),{customKeysByUnit:I,filteredBids:C}=function(e,t){const n=[],r={},i=s.$W.getConfig("targetingControls.alwaysIncludeDeals");return t.forEach(t=>{const s=e.includes(t.adUnitCode),a=!0===o.u.get(t.bidderCode,"allowZeroCpmBids")?t.cpm>=0:t.cpm>0,d=i&&t.dealId;s&&(d||a)&&(n.push(t),Object.keys(t.adserverTargeting).filter(function(){const e=h();return function(t){return-1===e.indexOf(t)}}()).forEach(e=>{const n=e.substring(0,20),i=r[t.adUnitCode]||{},o=[t.adserverTargeting[e]];i[n]?i[n]=i[n].concat(o).filter(u.uniques):i[n]=o,r[t.adUnitCode]=i}))}),{filteredBids:n,customKeysByUnit:r}}(f,d);let B=function(t,n,r){const i=!0===s.$W.getConfig("targetingControls.allBidsCustomTargeting"),o=m(t,r).concat(function(e){const t=s.$W.getConfig("targetingControls.alwaysIncludeDeals"),n=s.$W.getConfig("enableSendAllBids");return function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=T.slice(),i=s.$W.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),o=i?i.map(e=>a.xS[e]):r;return e.reduce((e,i)=>{if(t||n&&i.dealId){const t=function(e,t){return t.reduce((t,n)=>(e.adserverTargeting[n]&&t.push({[`${n}_${e.bidderCode}`.substring(0,v)]:[e.adserverTargeting[n]]}),t),[])}(i,r.filter(e=>void 0!==i.adserverTargeting[e]&&(n||-1!==o.indexOf(e))));t&&e.push({[i.adUnitCode]:t})}return e},[])}(e,n,t)}(t)).concat(function(t){function n(e){return e?.[a.iD.ADSERVER_TARGETING]}function r(e){const t=n(e);return Object.keys(t).map(function(e){return(0,g.O8)(t[e])&&(t[e]=t[e].split(",").map(e=>e.trim())),(0,g.cy)(t[e])||(t[e]=[t[e]]),{[e]:t[e]}})}return e.getAdUnits().filter(e=>t.includes(e.code)&&n(e)).reduce((e,t)=>{const n=r(t);return n&&e.push({[t.code]:n}),e},[])}(r)).concat(function(e){let t=s.$W.getConfig("targetingControls.version");return!1===t?[]:e.map(e=>({[e]:[{[a.xS.VERSION]:[t??U]}]}))}(r));i&&o.push(...function(e,t){return e.reduce((e,n)=>{const r=Object.assign({},n),i=t[r.adUnitCode],o=[];return i&&Object.keys(i).forEach(e=>{e&&i[e]&&o.push({[e]:i[e]})}),e.push({[r.adUnitCode]:o}),e},[])}(t,n));return o.forEach(e=>{!function(e){Object.keys(e).forEach(t=>{e[t].forEach(e=>{const t=Object.keys(e);-1===y.indexOf(t[0])&&(y=t.concat(y))})})}(e)}),o}(S(C,c,b,void 0,l),I,f);const k=Object.keys(Object.assign({},a.Zh));let D=s.$W.getConfig(E);const _=s.$W.getConfig(A);if(null!=_&&null!=D)throw new Error(w);D=null!=_?k.concat(_):D||k,Array.isArray(D)&&D.length>0&&(B=function(e,t){const n=Object.assign({},a.xS),r=Object.keys(a.xS),i={};(0,u.logInfo)(`allowTargetingKeys - allowed keys [ ${t.map(e=>n[e]).join(", ")} ]`),e.forEach(e=>{const o=Object.keys(e)[0],s=e[o].filter(e=>{const o=Object.keys(e)[0],s=0===r.filter(e=>0===o.indexOf(n[e])).length||t.find(e=>{const t=n[e];return 0===o.indexOf(t)});return i[o]=!s,s});e[o]=s});const o=Object.keys(i).filter(e=>i[e]);(0,u.logInfo)(`allowTargetingKeys - removed keys [ ${o.join(", ")} ]`);const s=e.filter(e=>e[Object.keys(e)[0]].length>0);return s}(B,D));let $=function(e){return e.map(e=>({[Object.keys(e)[0]]:e[Object.keys(e)[0]].map(e=>({[Object.keys(e)[0]]:e[Object.keys(e)[0]].join(",")})).reduce((e,t)=>Object.assign(t,e),{})})).reduce(function(e,t){var n=Object.keys(t)[0];return e[n]=Object.assign({},e[n],t[n]),e},{})}(B);const q=s.$W.getConfig("targetingControls.auctionKeyMaxChars");return q&&((0,u.logInfo)(`Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ${q} characters.  Running checks on auction keys...`),$=function(e,t){const n=(0,g.Go)(e),r=Object.keys(n).map(e=>({adUnitCode:e,adserverTargeting:n[e]})).sort(O());return r.reduce(function(e,r,i,o){let s=(a=r.adserverTargeting,Object.keys(a).reduce(function(e,t){return e+=`${t}%3d${encodeURIComponent(a[t])}%26`},""));var a;i+1===o.length&&(s=s.slice(0,-3));const d=r.adUnitCode,c=s.length;return c<=t?(t-=c,(0,u.logInfo)(`AdUnit '${d}' auction keys comprised of ${c} characters.  Deducted from running threshold; new limit is ${t}`,n[d]),e[d]=n[d]):(0,u.logWarn)(`The following keys for adUnitCode '${d}' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ${c}, the current allotted amount was ${t}.\n`,n[d]),i+1===o.length&&0===Object.keys(e).length&&(0,u.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars).  Please review setup and consider adjusting."),e},{})}($,q)),f.forEach(e=>{$[e]||($[e]={}),1===Object.keys($[e]).length&&null!=$[e][a.xS.VERSION]&&delete $[e][a.xS.VERSION]}),$},setTargetingForGPT:(0,c.A_)("sync",function(t,r){const i=n.getAllTargeting(t),o=Object.fromEntries(y.map(e=>[e,null]));Object.entries(B(Object.keys(i),r)).forEach(e=>{let[t,n]=e;n.forEach(e=>{Object.keys(i[t]).forEach(e=>{let n=i[t][e];"string"==typeof n&&-1!==n.indexOf(",")&&(n=n.split(",")),i[t][e]=n}),(0,u.logMessage)(`Attempting to set targeting-map for slot: ${e.getSlotElementId()} with targeting-map:`,i[t]),e.updateTargetingFromMap(Object.assign({},o,i[t])),b.lock(i[t])})}),Object.keys(i).forEach(t=>{Object.keys(i[t]).forEach(n=>{"hb_adid"===n&&e.setStatusForBids(i[t][n],a.tl.BID_TARGETING_SET)})}),n.targetingDone(i),d.emit(a.qY.SET_TARGETING,i)},"setTargetingForGPT"),targetingDone:(0,c.A_)("sync",function(e){return e},"targetingDone"),getWinningBids(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Vk,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u.sortByHighestCpm;const a=t||i(n,s),d=r(e);return a.filter(e=>d.includes(e.adUnitCode)).filter(e=>!0===o.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0).map(e=>e.adUnitCode).filter(u.uniques).map(e=>a.filter(t=>t.adUnitCode===e?t:null).reduce(p.Vk))},setTargetingForAst(e){const t=n.getAllTargeting(e);try{n.resetPresetTargetingAST(e)}catch(e){(0,u.logError)("unable to reset targeting for AST"+e)}Object.keys(t).forEach(e=>{b.lock(t[e]),Object.keys(t[e]).forEach(n=>{if((0,u.logMessage)(`Attempting to set targeting for targetId: ${e} key: ${n} value: ${t[e][n]}`),(0,g.O8)(t[e][n])||(0,g.cy)(t[e][n])){const r={},i=/pt[0-9]/;n.search(i)<0?r[n.toUpperCase()]=t[e][n]:r[n]=t[e][n],window.apntag.setKeywords(e,r,{overrideKeyValue:!0})}})})},isApntagDefined(){if(window.apntag&&(0,g.fp)(window.apntag.setKeywords))return!0}};function r(t){return"string"==typeof t?[t]:(0,g.cy)(t)?t:e.getAdUnitCodes()||[]}function i(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.Bq,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const i=e.getBidsReceived().reduce((e,n)=>{const r=s.$W.getConfig("useBidCache"),i=s.$W.getConfig("bidCacheFilterFunction"),o=t[n.adUnitCode]===n.auctionId,a=!(r&&!o&&"function"==typeof i)||!!i(n);return(r||o)&&a&&n?.video?.context!==l.LM&&C(n)&&(n.latestTargetedAuctionId=t[n.adUnitCode],e.push(n)),e},[]);return S(i,n,void 0,void 0,r)}function m(e,t){const r=n.getWinningBids(t,e),i=h();return r.map(e=>({[e.adUnitCode]:Object.keys(e.adserverTargeting).filter(t=>void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(t)).reduce((t,n)=>{const r=[e.adserverTargeting[n]],i={[n.substring(0,v)]:r};if(n===a.xS.DEAL){const o=`${n}_${e.bidderCode}`.substring(0,v),s={[o]:r};return[...t,i,s]}return[...t,i]},[])}))}function h(){return e.getStandardBidderAdServerTargeting().map(e=>e.key).concat(T).filter(u.uniques)}return s.$W.getConfig("targetingControls",function(e){null!=(0,f.A)(e,E)&&null!=(0,f.A)(e,A)&&(0,u.logError)(w)}),n}(r.n)},87067:(e,t,n)=>{n.d(t,{L6:()=>v,ey:()=>p});var r=n(91933),i=n(32592),o=n(51748),s=n(10466),a=n(63320),d=n(75049),c=n(13064),l=n(70736),u=n(59794),g=n(67464),f=n(765);const p=`__${(0,f.k)()}_debugging__`;function m(){return(0,o.m)().installedModules.includes("debugging")}function h(e){return new c.U9(t=>{(0,d.R)(e,l.tp,"debugging",t)})}function b(){let{alreadyInstalled:e=m,script:t=h}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null;return function(){return null==n&&(n=new c.U9((n,d)=>{setTimeout(()=>{if(e())n();else{const e=`${(0,f.rT)()}debugging-standalone.js`;(0,s.logMessage)(`Debugging module not installed, loading it from "${e}"...`),(0,o.m)()._installDebugging=!0,t(e).then(()=>{(0,o.m)()._installDebugging({DEBUG_KEY:p,hook:i.A_,config:r.$W,createBid:a.O,logger:(0,s.prefixLog)("DEBUG:"),utils:s,BANNER:u.D4,NATIVE:u.s6,VIDEO:u.G_,Renderer:g.A4})}).then(n,d)}})})),n}}const y=function(){let{load:e=b(),hook:t=(0,i.Yn)("requestBids")}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null,r=!1;function o(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];return(n||c.U9.resolve()).then(()=>e.apply(this,r))}function s(){t.getHooks({hook:o}).remove(),r=!1}return{enable:function(){r||(n=e(),t.before(o,99),r=!0)},disable:s,reset:function(){n=null,s()}}}();y.reset;function v(){let e=null;try{e=window.sessionStorage}catch(e){}if(null!==e){const t=y;let n=null;try{n=e.getItem(p)}catch(e){}null!==n&&t.enable()}}r.$W.getConfig("debugging",function(e){let{debugging:t}=e;t?.enabled?y.enable():y.disable()})},88417:(e,t,n)=>{n.d(t,{Ai:()=>l,kl:()=>u});var r=n(26665),i=n(10466),o=n(91933),s=n(32592),a=n(765);const d="outstream",c=[["mimes",e=>Array.isArray(e)&&e.length>0&&e.every(e=>"string"==typeof e)],["minduration",r.Fq],["maxduration",r.Fq],["startdelay",r.Fq],["maxseq",r.Fq],["poddur",r.Fq],["protocols",r.Uu],["battr",r.Uu],["maxextended",r.Fq],["minbitrate",r.Fq],["maxbitrate",r.Fq],["delivery",r.Uu],["api",r.Uu],["companiontype",r.Uu],["feed",r.Fq],["stitched",r.Fq],["nvol",r.Fq]],l=new Map(c);function u(e){}(0,s.A_)("sync",function(e,t,n,r,s){if(n&&(s||r!==d)){const{url:t,useLocal:n}=o.$W.getConfig("cache")||{};return t||n||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.logError)(`\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling either prebid cache with ${(0,a.k)()}.setConfig({ cache: {url: "..."} });\n        or local cache with ${(0,a.k)()}.setConfig({ cache: { useLocal: true }});\n      `),!1)}return!(r===d&&!s)||!!(e.renderer||t&&t.renderer||n.renderer)},"checkAudioBidSetup")},91780:(e,t,n)=>{n.d(t,{S:()=>s});var r=n(10466),i=n(61443);const o=(0,i.CK)("fpdEnrichment"),s=(0,r.memoize)(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!o.cookiesAreEnabled())return e;const t=e.split(".");if(2===t.length)return e;let n,r,s=-2;do{n=t.slice(s).join("."),(0,i.d_)(n,o)?r=!1:(s+=-1,r=Math.abs(s)<=t.length)}while(r);return n})},91933:(e,t,n)=>{n.d(t,{$W:()=>m,Ov:()=>l});var r=n(1124),i=n(10466),o=n(26665),s=n(58928),a=n(11418);const d="TRUE"===(0,i.getParameterByName)(a.M).toUpperCase(),c={},l="random",u={};u[l]=!0,u.fixed=!0;const g=l,f={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};function p(e){const t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?{priceGranularity:f.MEDIUM,customPriceBucket:{},mediaTypePriceGranularity:{},bidderSequence:g,auctionOptions:{}}:{};function n(e){return t[e]}function s(n,r){t.hasOwnProperty(n)||Object.defineProperty(e,n,{enumerable:!0}),t[n]=r}const a={publisherDomain:{set(e){null!=e&&(0,i.logWarn)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),s("publisherDomain",e)}},priceGranularity:{set(e){c(e)&&("string"==typeof e?s("priceGranularity",d(e)?e:f.MEDIUM):(0,o.Qd)(e)&&(s("customPriceBucket",e),s("priceGranularity",f.CUSTOM),(0,i.logMessage)("Using custom price granularity")))}},customPriceBucket:{},mediaTypePriceGranularity:{set(e){null!=e&&s("mediaTypePriceGranularity",Object.keys(e).reduce((t,r)=>(c(e[r])?"string"==typeof e?t[r]=d(e[r])?e[r]:n("priceGranularity"):(0,o.Qd)(e)&&(t[r]=e[r],(0,i.logMessage)(`Using custom price granularity for ${r}`)):(0,i.logWarn)(`Invalid price granularity for media type: ${r}`),t),{}))}},bidderSequence:{set(e){u[e]?s("bidderSequence",e):(0,i.logWarn)(`Invalid order: ${e}. Bidder Sequence was not set.`)}},auctionOptions:{set(e){(function(e){if(!(0,o.Qd)(e))return(0,i.logWarn)("Auction Options must be an object"),!1;for(const t of Object.keys(e)){if("secondaryBidders"!==t&&"suppressStaleRender"!==t&&"suppressExpiredRender"!==t)return(0,i.logWarn)(`Auction Options given an incorrect param: ${t}`),!1;if("secondaryBidders"===t){if(!(0,o.cy)(e[t]))return(0,i.logWarn)(`Auction Options ${t} must be of type Array`),!1;if(!e[t].every(o.O8))return(0,i.logWarn)(`Auction Options ${t} must be only string`),!1}else if(("suppressStaleRender"===t||"suppressExpiredRender"===t)&&!(0,o.Lm)(e[t]))return(0,i.logWarn)(`Auction Options ${t} must be of type boolean`),!1}return!0})(e)&&s("auctionOptions",e)}}};return Object.defineProperties(e,Object.fromEntries(Object.entries(a).map(e=>{let[r,i]=e;return[r,Object.assign({get:n.bind(null,r),set:s.bind(null,r),enumerable:t.hasOwnProperty(r),configurable:!t.hasOwnProperty(r)},i)]}))),e;function d(e){return Object.keys(f).find(t=>e===f[t])}function c(e){if(!e)return(0,i.logError)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)d(e)||(0,i.logWarn)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,o.Qd)(e)&&!(0,r.q)(e))return(0,i.logError)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}}const m=function(){const e=[];let t,n,r,a=null;function l(){t={};const e=p({debug:d,bidderTimeout:3e3,enableSendAllBids:true,useBidCache:false,deviceAccess:true,disableAjaxTimeout:false,maxNestedIframes:10,maxBid:5e3,userSync:{topics:c}});n&&v(Object.keys(n).reduce((t,r)=>(n[r]!==e[r]&&(t[r]=e[r]||{}),t),{})),n=e,r={}}function u(){if(a&&r&&(0,o.Qd)(r[a])){const e=r[a],t=new Set([...Object.keys(n),...Object.keys(e)]),s={};for(const r of t){const t=n[r],a=e[r];s[r]=void 0===a?t:void 0===t?a:(0,o.Qd)(a)?(0,i.mergeDeep)({},t,a):a}return s}return{...n}}const[g,f]=[u,function(){const e=u();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map(e=>function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){const t=arguments.length<=0?void 0:arguments[0];return t?(0,s.A)(e(),t):u()}return y(...arguments)}),[m,h]=[f,g].map(e=>function(){let t=e(...arguments);return t&&"object"==typeof t&&(t=(0,o.Go)(t)),t});function b(e){if(!(0,o.Qd)(e))return void(0,i.logError)("setConfig options must be an object");const r=Object.keys(e),s={};r.forEach(r=>{let a=e[r];(0,o.Qd)(t[r])&&(0,o.Qd)(a)&&(a=Object.assign({},t[r],a));try{s[r]=n[r]=a}catch(e){(0,i.logWarn)(`Cannot set config for property ${r} : `,e)}}),v(s)}function y(t,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n;if("string"!=typeof t&&(o=t,t="*",r=n||{}),"function"!=typeof o)return void(0,i.logError)("listener must be a function");const s={topic:t,callback:o};return e.push(s),r.init&&o("*"===t?f():{[t]:f(t)}),function(){e.splice(e.indexOf(s),1)}}function v(t){const n=Object.keys(t);e.filter(e=>n.includes(e.topic)).forEach(e=>{e.callback({[e.topic]:t[e.topic]})}),e.filter(e=>"*"===e.topic).forEach(e=>e.callback(t))}function E(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{!function(e){if(!(0,o.Qd)(e))throw new Error("setBidderConfig bidder options must be an object");if(!Array.isArray(e.bidders)||!e.bidders.length)throw new Error("setBidderConfig bidder options must contain a bidders list with at least 1 bidder");if(!(0,o.Qd)(e.config))throw new Error("setBidderConfig bidder options must contain a config object")}(e),e.bidders.forEach(n=>{r[n]||(r[n]=p({},!1)),Object.keys(e.config).forEach(s=>{const a=e.config[s],d=r[n][s];if((0,o.Qd)(a)&&(null==d||(0,o.Qd)(d))){const e=t?i.mergeDeep:Object.assign;r[n][s]=e({},d||{},a)}else r[n][s]=a})})}catch(e){(0,i.logError)(e)}}function A(e,t){a=e;try{return t()}finally{w()}}function w(){a=null}return l(),{getCurrentBidder:function(){return a},resetBidder:w,getConfig:f,getAnyConfig:g,readConfig:m,readAnyConfig:h,setConfig:b,mergeConfig:function(e){if(!(0,o.Qd)(e))return void(0,i.logError)("mergeConfig input must be an object");const t=(0,i.mergeDeep)(u(),e);return b({...t}),t},setDefaults:function(e){(0,o.Qd)(t)?(Object.assign(t,e),Object.assign(n,e)):(0,i.logError)("defaults must be an object")},resetConfig:l,runWithBidder:A,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return A(e,t.bind(this,...r))}(0,i.logWarn)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:E,getBidderConfig:function(){return r},mergeBidderConfig:function(e){return E(e,!0)}}}()},93448:(e,t,n)=>{function r(e){return!e?.gdprApplies||!0===e?.vendorData?.purpose?.consents?.[1]}n.d(t,{C:()=>r})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[37769],{30183:(t,n,e)=>{e.d(n,{M:()=>h,g:()=>o});var c=e(10466),i=e(43958);function o(){try{const t=(0,c.getWindowTop)(),{scrollY:n,scrollX:e}=t,{height:i,width:o}=h();return{top:n,right:e+o,bottom:n+i,left:e}}catch(t){return{}}}function h(){const t=(0,i.Ot)();try{const n=t.innerHeight||t.document.documentElement.clientHeight||t.document.body.clientHeight||0;return{width:t.innerWidth||t.document.documentElement.clientWidth||t.document.body.clientWidth||0,height:n}}catch(t){return{}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[40315],{83367:(o,t,r)=>{function n(o){return"1"===o.navigator.doNotTrack||"1"===o.doNotTrack||"1"===o.navigator.msDoNotTrack||"yes"===o.navigator.doNotTrack?.toLowerCase?.()}function a(){let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;try{return n(o)||o!==o.top&&n(o.top)}catch(o){return!1}}r.d(t,{l:()=>a})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[51085],{63293:(e,n,t)=>{t.d(n,{G:()=>r});const r='(()=>{"use strict";const e="Prebid Event",n="browserIntervention";window.render=function(t,r,i){let{ad:o,adUrl:s,width:d,height:c,instl:h}=t,{mkFrame:l,sendMessage:a}=r;if(function(){const t=window;if("ReportingObserver"in t)try{new t.ReportingObserver(t=>{var r;r=t[0],a(e,{event:n,intervention:r})},{buffered:!0,types:["intervention"]}).observe()}catch(e){}}(),!o&&!s){const e=new Error("Missing ad markup or URL");throw e.reason="noAd",e}{if(null==c){const e=i.document?.body;[e,e?.parentElement].filter(e=>null!=e?.style).forEach(e=>{e.style.height="100%"})}const e=i.document,n={width:d??"100%",height:c??"100%"};if(s&&!o?n.src=s:n.srcdoc=o,e.body.appendChild(l(e,n)),h&&i.frameElement){const e=i.frameElement.style;e.width=d?`${d}px`:"100vw",e.height=c?`${c}px`:"100vh"}}}})();'}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[19147],{32808:(e,r,n)=>{function u(e){return e?.ortb2?.ext?.prebid?.adServerCurrency}n.d(r,{b:()=>u})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[49136],{28753:(e,t,n)=>{n.d(t,{$d:()=>p,pq:()=>u,rz:()=>c,uM:()=>l,xO:()=>g,yS:()=>d,yY:()=>m});var r=n(59794),i=n(91933);const o=/^[a-z0-9.+-]+:/i,a=e=>{if(!(e.requestId&&e.cpm&&e.creativeId&&e.ttl&&e.currency))return!1;switch(e.mediaType){case r.D4:return Boolean(e.width&&e.height&&e.ad);case r.G_:return Boolean(e.vastUrl||e.vastXml);case r.s6:return Boolean(e.native&&e.native.impressionTrackers&&e.native.impressionTrackers.length);default:return!1}},s=(e,t,n)=>{const{placementId:r,endpointId:i}=e.params;r?(n.placementId=r,n.type="publisher"):i&&(n.endpointId=i,n.type="network")},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["placementId","endpointId"],t=arguments.length>1?arguments[1]:void 0;return function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{params:i,bidId:o,mediaTypes:a}=n;let s=Boolean(o&&i&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"some";for(let r=0;r<e.length;r++){const i=t[e[r]];if("some"===n&&i)return!0;if("every"===n&&!i)return!1}return"every"===n}(e,i,t));return s=a&&a[r.D4]?s&&Boolean(a[r.D4]&&a[r.D4].sizes):a&&a[r.G_]?s&&Boolean(a[r.G_]&&a[r.G_].playerSize):!(!a||!a[r.s6])&&(s&&Boolean(a[r.s6])),s}},d=e=>{const{adUrl:t,validBidRequests:n,bidderRequest:r}=e,i=e.placementProcessingFunction||u(),a=r?.ortb2?.device,s=r?.refererInfo?.page||"",p=o.exec(s),d=p?.[0],c=[],l={deviceWidth:a?.w||0,deviceHeight:a?.h||0,language:a?.language?.split("-")[0]||"",secure:"https:"===d?1:0,host:r?.refererInfo?.domain||"",page:s,placements:c,coppa:r?.ortb2?.regs?.coppa?1:0,tmax:r.timeout,bcat:r?.ortb2?.bcat,badv:r?.ortb2?.badv,bapp:r?.ortb2?.bapp,battr:r?.ortb2?.battr};r.uspConsent&&(l.ccpa=r.uspConsent),r.gdprConsent&&(l.gdpr={consentString:r.gdprConsent.consentString}),r.gppConsent?(l.gpp=r.gppConsent.gppString,l.gpp_sid=r.gppConsent.applicableSections):r.ortb2?.regs?.gpp&&(l.gpp=r.ortb2.regs.gpp,l.gpp_sid=r.ortb2.regs.gpp_sid),r?.ortb2?.device&&(l.device=r.ortb2.device);const g=n.length;for(let e=0;e<g;e++){const t=n[e];c.push(i(t,r))}return{method:"POST",url:t,data:l}},c=e=>function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=u();return d({adUrl:e,validBidRequests:t,bidderRequest:n,placementProcessingFunction:r})};function l(){let{addtlBidValidation:e=e=>!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){const n=[];for(let r=0;r<t.body.length;r++){const i=t.body[r];if(a(i)&&e(i)){const e=i.adomain&&i.adomain.length?i.adomain:[];i.meta={...i.meta,advertiserDomains:e},n.push(i)}}return n}}const g=l(),m=e=>(t,n,r,o,a)=>{const s=t.iframeEnabled?"iframe":"image";let p=e+`/${s}?pbjs=1`;r&&r.consentString&&("boolean"==typeof r.gdprApplies?p+=`&gdpr=${Number(r.gdprApplies)}&gdpr_consent=${r.consentString}`:p+=`&gdpr=0&gdpr_consent=${r.consentString}`),o&&o.consentString&&(p+=`&ccpa_consent=${o.consentString}`),a?.gppString&&a?.applicableSections?.length&&(p+="&gpp="+a.gppString,p+="&gpp_sid="+a.applicableSections.join(","));return p+=`&coppa=${i.$W.getConfig("coppa")?1:0}`,[{type:s,url:p}]},u=e=>(t,n)=>{const i=e?.addPlacementType??s,o=((e,t)=>{const{bidId:n,mediaTypes:i,transactionId:o,userIdAsEids:a,ortb2Imp:s}=e,p=t?.ortb2?.source?.ext?.schain||{},d=(e=>{try{const t=e.getFloor({currency:"USD",mediaType:"*",size:"*"});return t?.floor}catch(e){return 0}})(e),c={bidId:n,schain:p,bidfloor:d};return i&&i[r.D4]?(c.adFormat=r.D4,c.sizes=i[r.D4].sizes):i&&i[r.G_]?(c.adFormat=r.G_,c.playerSize=i[r.G_].playerSize,c.minduration=i[r.G_].minduration,c.maxduration=i[r.G_].maxduration,c.mimes=i[r.G_].mimes,c.protocols=i[r.G_].protocols,c.startdelay=i[r.G_].startdelay,c.placement=i[r.G_].placement,c.plcmt=i[r.G_].plcmt,c.skip=i[r.G_].skip,c.skipafter=i[r.G_].skipafter,c.minbitrate=i[r.G_].minbitrate,c.maxbitrate=i[r.G_].maxbitrate,c.delivery=i[r.G_].delivery,c.playbackmethod=i[r.G_].playbackmethod,c.api=i[r.G_].api,c.linearity=i[r.G_].linearity):i&&i[r.s6]&&(c.native=i[r.s6],c.adFormat=r.s6),o&&(c.ext=c.ext||{},c.ext.tid=o),a&&a.length&&(c.eids=a),s?.ext?.gpid&&(c.gpid=s.ext.gpid),c})(t,n);return i(t,n,o),e?.addCustomFieldsToPlacement&&e.addCustomFieldsToPlacement(t,n,o),o}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[44982],{38657:(s,n,e)=>{function t(s,n){const e=[];for(let t=0;t<Math.ceil(s.length/n);t++){const h=t*n,l=h+n;e.push(s.slice(h,l))}return e}e.d(n,{i:()=>t})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[97247],{93819:(r,e,a)=>{a.d(e,{D:()=>o});var n=a(51833),t=a(58928);const s=["user.keywords"].concat(n.Dy.flatMap(r=>["keywords","content.keywords"].map(e=>`${r}.${e}`)));function o(r){for(var e=arguments.length,a=new Array(e>1?e-1:0),n=1;n<e;n++)a[n-1]=arguments[n];return function(){const r=new Set;for(var e=arguments.length,a=new Array(e),n=0;n<e;n++)a[n]=arguments[n];return a.filter(r=>r).flatMap(r=>Array.isArray(r)?r:r.split(",")).map(r=>r.replace(/^\s*/,"").replace(/\s*$/,"")).filter(r=>r).forEach(e=>r.add(e)),Array.from(r.keys())}(...s.map(e=>(0,t.A)(r,e)),...a)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[95444],{38695:(e,t,n)=>{n.d(t,{QF:()=>p,T_:()=>g,gg:()=>l});var r=n(26665),o=n(10466),c=n(58928),i=n(93819),a=n(51833);const s={526:"1plusX",527:"1plusX",541:"captify_segments",540:"perid"},d=["user.data"].concat(a.Dy.map(e=>`${e}.content.data`));function u(e,t,n){return null==t?n:(0,r.O8)(t)?t:(0,r.Et)(t)?t.toString():void(0,o.logWarn)("Unsuported type for param: "+e+" required type: String")}function l(e){return(0,r.O8)(e)&&""!==e?f(e.split(/\s*(?:,)\s*/)):{}}function f(e){const t={};return e.forEach(e=>{if(-1!==e.indexOf("=")){const n=e.split("="),r=n[0],o=n[1];t.hasOwnProperty(r)?t[r].push(o):t[r]=[o]}else t.hasOwnProperty(e)||(t[e]=[])}),t}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords";const n=[];return(0,o._each)(e,(e,c)=>{if((0,r.cy)(e)){const n=[];(0,o._each)(e,e=>{((e=u(t+"."+c,e))||""===e)&&n.push(e)}),e=n}else{if(e=u(t+"."+c,e),!(0,r.O8)(e))return;e=[e]}e=e.filter(e=>""!==e);const i={key:c};e.length>0&&(i.value=e),n.push(i)}),n}((0,o.mergeDeep)(...t.map(e=>Object.fromEntries(Object.entries(e||{}).map(e=>{let[t,n]=e;return[t,(0,r.Et)(n)||(0,r.O8)(n)?[n]:n]})))))}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return g(function(e){return f((0,i.D)(e))}(e),function(e){const t=e?.site?.ext?.data?.["ias-brand-safety"];if(t&&"object"==typeof t&&Object.keys(t).length>0)return f(Object.entries(t).map(e=>{let[t,n]=e;return`${t}=${n}`}));return{}}(e),function(e){const t={};return d.forEach(n=>{((0,c.A)(e,n)||[]).forEach(e=>{const n=s[e?.ext?.segtax];n&&e.segment.forEach(e=>{t[n]?t[n].push(e.id):t[n]=[e.id]})})}),t}(e),...n)}},46614:(e,t,n)=>{n.d(t,{DX:()=>c,GS:()=>i,vk:()=>o});var r=n(26665);function o(e){return e.replace(/(?:^|\.?)([A-Z])/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,"")}const c=[{code:"appnexusAst",gvlid:32},{code:"emetriq",gvlid:213},{code:"pagescience",gvlid:32},{code:"gourmetads",gvlid:32},{code:"newdream",gvlid:32},{code:"matomy",gvlid:32},{code:"featureforward",gvlid:32},{code:"oftmedia",gvlid:32},{code:"adasta",gvlid:32},{code:"beintoo",gvlid:618},{code:"projectagora",gvlid:1032},{code:"stailamedia",gvlid:32},{code:"uol",gvlid:32},{code:"adzymic",gvlid:723}];function i(e,t){const n=[];for(let o=0;o<t;o++){const t=(0,r.Qd)(e)?(0,r.Go)(e):e;n.push(t)}return n}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[42698],{73468:(A,B,I)=>{I.d(B,{n:()=>s});const s={1:"IAB20-3",2:"IAB18-5",3:"IAB10-1",4:"IAB2-3",5:"IAB19-8",6:"IAB22-1",7:"IAB18-1",8:"IAB12-3",9:"IAB5-1",10:"IAB4-5",11:"IAB13-4",12:"IAB8-7",13:"IAB9-7",14:"IAB7-1",15:"IAB20-18",16:"IAB10-7",17:"IAB19-18",18:"IAB13-6",19:"IAB18-4",20:"IAB1-5",21:"IAB1-6",22:"IAB3-4",23:"IAB19-13",24:"IAB22-2",25:"IAB3-9",26:"IAB17-18",27:"IAB19-6",28:"IAB1-7",29:"IAB9-30",30:"IAB20-7",31:"IAB20-17",32:"IAB7-32",33:"IAB16-5",34:"IAB19-34",35:"IAB11-5",36:"IAB12-3",37:"IAB11-4",38:"IAB12-3",39:"IAB9-30",41:"IAB7-44",42:"IAB7-1",43:"IAB7-30",50:"IAB19-30",51:"IAB17-12",52:"IAB19-30",53:"IAB3-1",55:"IAB13-2",56:"IAB19-30",57:"IAB19-30",58:"IAB7-39",59:"IAB22-1",60:"IAB7-39",61:"IAB21-3",62:"IAB5-1",63:"IAB12-3",64:"IAB20-18",65:"IAB11-2",66:"IAB17-18",67:"IAB9-9",68:"IAB9-5",69:"IAB7-44",71:"IAB22-3",73:"IAB19-30",74:"IAB8-5",78:"IAB22-1",85:"IAB12-2",86:"IAB22-3",87:"IAB11-3",112:"IAB7-32",113:"IAB7-32",114:"IAB7-32",115:"IAB7-32",118:"IAB9-5",119:"IAB9-5",120:"IAB9-5",121:"IAB9-5",122:"IAB9-5",123:"IAB9-5",124:"IAB9-5",125:"IAB9-5",126:"IAB9-5",127:"IAB22-1",132:"IAB1-2",133:"IAB19-30",137:"IAB3-9",138:"IAB19-3",140:"IAB2-3",141:"IAB2-1",142:"IAB2-3",143:"IAB17-13",166:"IAB11-4",175:"IAB3-1",176:"IAB13-4",182:"IAB8-9",183:"IAB3-5"}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[12126],{23610:(e,r,n)=>{n.d(r,{$:()=>t});var s=n(26665);function t(e,r){return Object.keys(e).forEach(n=>{var t,u;r[n]&&((0,s.fp)(e[n])?r[n]=e[n](r[n]):r[n]=(t=e[n],u=r[n],"string"===t?u&&u.toString():"number"===t?Number(u):u),isNaN(r[n])&&delete r.key)}),r}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[57109],{29708:(e,t,n)=>{n.d(t,{Al:()=>l});var s=n(10466);class r{cmpApi=null;listenerId=void 0;setCmpApi(e){this.cmpApi=e}getCmpApi(){return this.cmpApi}setCmpListenerId(e){this.listenerId=e}getCmpListenerId(){return this.listenerId}resetCmpApis(){this.cmpApi=null,this.listenerId=void 0}getRemoveListenerParams(){const e=this.getCmpApi(),t=this.getCmpListenerId();return e&&"function"==typeof e&&null!=t?{command:"removeEventListener",callback:()=>this.resetCmpApis(),parameter:t}:null}}class i extends r{constructor(e){super(),this.getConsentData=e||(()=>null)}removeCmpEventListener(){const e=this.getRemoveListenerParams();if(e){const t=this.getConsentData();e.apiVersion=t?.apiVersion||2,(0,s.logInfo)("Removing TCF CMP event listener"),this.getCmpApi()(e)}}}class a extends r{removeCmpEventListener(){const e=this.getRemoveListenerParams();e&&((0,s.logInfo)("Removing GPP CMP event listener"),this.getCmpApi()(e))}}function l(e,t){switch(e){case"tcf":return new i(t);case"gpp":return new a;default:return(0,s.logError)(`Unknown CMP type: ${e}`),null}}},93254:(e,t,n)=>{n.d(t,{c5:()=>l,q4:()=>a});var s=n(13064);const r=0,i=1,a=2;function l(e){let{apiName:t,apiVersion:n,apiArgs:l=["command","callback","parameter","version"],callbackArgs:c=["returnValue","success"],mode:o=r}=e,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;const u={},m=`${t}Call`,d=`${t}Return`;function f(e){const t="string"==typeof e.data&&e.data.includes(d)?JSON.parse(e.data):e.data;if(t?.[d]?.callId){const e=t[d];u.hasOwnProperty(e.callId)&&u[e.callId](...c.map(t=>e[t]))}}const[g,h]=function(){let e,n=p,s=!1;for(;null!=n;){try{if("function"==typeof n[t]){e=n,s=!0;break}}catch(e){}try{if(n.frames[`${t}Locator`]){e=n;break}}catch(e){}if(n===p.top)break;n=n.parent}return[e,s]}();if(!g)return;function v(e){return e=Object.assign({version:n},e),l.map(t=>[t,e[t]])}function C(e,t,n,s){const r="function"==typeof e;return function(a,l){if(s&&s(),o!==i){(null==l||l?t:n)(r?void 0:a)}r&&e.apply(this,arguments)}}let b;return h?b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new s.U9((n,s)=>{const l=g[t](...v({...e,callback:e.callback||o===a?C(e.callback,n,s):void 0}).map(e=>{let[t,n]=e;return n}));(o===i||null==e.callback&&o===r)&&n(l)})}:(p.addEventListener("message",f,!1),b=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new s.U9((n,s)=>{const r=Math.random().toString(),a={[m]:{...Object.fromEntries(v(e).filter(e=>{let[t]=e;return"callback"!==t})),callId:r}};u[r]=C(e?.callback,n,s,(t||null==e?.callback)&&(()=>{delete u[r]})),g.postMessage(a,"*"),o===i&&n()})}),Object.assign(b,{isDirect:h,close(){!h&&p.removeEventListener("message",f)}})}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[90010],{13965:(n,e,t)=>{t.d(e,{yq:()=>c});var o=t(37841),a=t(10466),r=t(26665),s=t(13064),i=t(25291),l=t(32592);function c(){let n,e,t,{namespace:c,displayName:u,consentDataHandler:m,parseConsentData:g,getNullConsent:f,cmpHandlers:d,cmpEventCleanup:p,DEFAULT_CMP:C="iab",DEFAULT_CONSENT_TIMEOUT:D=1e4}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};function h(n){return`consentManagement.${c} ${n}`}function b(n,e){return n(Object.assign({[`${c}Consent`]:m.getConsentData()},e))}function T(){return e().then(n=>{let{error:e}=n;return{error:e,consentData:m.getConsentData()}})}function k(){null==n&&(n=function(n,e){const t=new WeakSet;return(0,o.Ak)(n,function(n,o){return e().then(e=>{let{consentData:r,error:s}=e;!s||r&&t.has(s)||(t.add(s),(0,a.logWarn)(s.message,...s.args||[])),n.call(this,o)}).catch(e=>{(0,a.logError)(`${e?.message} Canceling auction as per consentManagement config.`,...e?.args||[]),n.stopTiming(),"function"==typeof o.bidsBackHandler?o.bidsBackHandler():(0,a.logError)("Error executing bidsBackHandler")})})}(c,()=>e()),(0,l.Yn)("requestBids").before(n,50),i.U3.before(b),(0,a.logInfo)(`${u} consentManagement module has been activated...`))}function E(){null!=n&&((0,l.Yn)("requestBids").getHooks({hook:n}).remove(),i.U3.getHooks({hook:b}).remove(),n=null,(0,a.logInfo)(`${u} consentManagement module has been deactivated...`))}return function(o){const i=o?.[c];if(!i||"object"!=typeof i)return(0,a.logWarn)(h("config not defined, exiting consent manager module")),E(),{};if(!1===i?.enabled)return(0,a.logWarn)(h("config enabled is set to false, disabling consent manager module")),function(){if(E(),"function"==typeof p)try{p()}catch(n){(0,a.logError)(`Error during CMP event cleanup for ${u}:`,n)}}(),{};let l,b;(0,r.O8)(i.cmpApi)?l=i.cmpApi:(l=C,(0,a.logInfo)(h(`config did not specify cmp.  Using system default setting (${C}).`))),(0,r.Et)(i.timeout)?b=i.timeout:(b=D,(0,a.logInfo)(h(`config did not specify timeout.  Using system default setting (${D}).`)));const y=(0,r.Et)(i.actionTimeout)?i.actionTimeout:null;let $;"static"===l?(0,r.Qd)(i.consentData)?(t=i.consentData,b=null,$=()=>new s.U9(n=>n(m.setConsentData(g(t))))):(0,a.logError)(h("config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")):d.hasOwnProperty(l)?$=d[l]:(m.setConsentData(null),(0,a.logWarn)(`${u} CMP framework (${l}) is not a supported framework.  Aborting consentManagement module and resuming auction.`),$=()=>s.U9.resolve());const w=()=>function(n){let e,{name:t,consentDataHandler:o,setupCmp:a,cmpTimeout:r,actionTimeout:s,getNullConsent:i}=n;return o.enable(),new Promise((n,l)=>{let c,u=!1;function m(a){null!=e&&clearTimeout(e),e=null!=a?setTimeout(()=>{const e=o.getConsentData()??(u?c:i()),a="timeout waiting for "+(u?"user action on CMP":"CMP to load");o.setConsentData(e),n({consentData:e,error:new Error(`${t} ${a}`)})},a):null}a(function(n){c=n,u||(u=!0,null!=s&&m(s))}).then(()=>n({consentData:o.getConsentData()}),l),null!=r&&m(r)}).finally(()=>{e&&clearTimeout(e)}).catch(n=>{throw o.setConsentData(null),n})}({name:u,consentDataHandler:m,setupCmp:$,cmpTimeout:b,actionTimeout:y,getNullConsent:f});return e=(()=>{let n;return function(){return null==n&&(n=w().catch(e=>{throw n=null,e})),n}})(),k(),{cmpHandler:l,cmpTimeout:b,actionTimeout:y,staticConsentData:t,loadConsentData:T,requestBidsHook:n}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[58498],{7500:(e,t,r)=>{r.d(t,{K:()=>o,X:()=>i});var n=r(59794);const i={1:n.D4,2:n.G_,4:n.s6};function o(e,t,r){if(e.mediaType)return;const n=r.mediaType;if(!n&&!i.hasOwnProperty(t.mtype))throw new Error("Cannot determine mediaType for response");e.mediaType=n||i[t.mtype]}},9201:(e,t,r)=>{r.d(t,{T:()=>b,A:()=>f});const n=new WeakMap;var i=r(10466),o=r(59794);var s=r(36220);var a=r(7500),d=r(26665);var p=r(22517),c=r(51833),u=r(88417);const m={[p.S3]:{fpd:{priority:99,fn(e,t){(0,i.mergeDeep)(e,t.ortb2)}},onlyOneClient:{priority:-99,fn:(0,c.i8)("ORTB request")},props:{fn(e,t){Object.assign(e,{id:e.id||(0,i.generateUUID)(),test:e.test||0});const r=parseInt(t.timeout,10);isNaN(r)||(e.tmax=r)}}},[p.Tb]:{fpd:{priority:99,fn(e,t){(0,i.mergeDeep)(e,t.ortb2Imp)}},id:{fn(e,t){e.id=t.bidId}},banner:{fn:function(e,t,r){if(r.mediaType&&r.mediaType!==o.D4)return;const n=t?.mediaTypes?.banner;if(n){const r={topframe:!0===(0,i.inIframe)()?0:1};n.sizes&&null==t.ortb2Imp?.banner?.format&&(r.format=(0,i.sizesToSizeTuples)(n.sizes).map(i.sizeTupleToRtbSize)),n.hasOwnProperty("pos")&&(r.pos=n.pos),e.banner=(0,i.mergeDeep)(r,e.banner)}}},secure:{fn(e,t){e.secure=e.secure??1}}},[p.WR]:{mediaType:{priority:99,fn:a.K},banner:{fn:function(){let{createPixel:e=e=>(0,i.createTrackPixelHtml)(decodeURIComponent(e),i.encodeMacroURI)}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t,r){t.mediaType===o.D4&&(r.adm&&r.nurl?t.ad=e(r.nurl)+r.adm:r.adm?t.ad=r.adm:r.nurl&&(t.adUrl=r.nurl))}}()},props:{fn(e,t,r){Object.entries({requestId:r.bidRequest?.bidId,seatBidId:t.id,cpm:t.price,currency:r.ortbResponse.cur||r.currency,width:t.w,height:t.h,wratio:t.wratio,hratio:t.hratio,dealId:t.dealid,creative_id:t.crid,creativeId:t.crid,burl:t.burl,ttl:t.exp||r.ttl,netRevenue:r.netRevenue}).filter(e=>{let[t,r]=e;return void 0!==r}).forEach(t=>{let[r,n]=t;e[r]=n}),e.meta||(e.meta={}),t.adomain&&(e.meta.advertiserDomains=t.adomain),t.ext?.dsa&&(e.meta.dsa=t.ext.dsa),t.cat&&(e.meta.primaryCatId=t.cat[0],e.meta.secondaryCatIds=t.cat.slice(1)),t.attr&&(e.meta.attr=t.attr),t.ext?.eventtrackers&&(e.eventtrackers=(e.eventtrackers??[]).concat(t.ext.eventtrackers))}}}};m[p.Tb].native={fn:function(e,t,r){if(r.mediaType&&r.mediaType!==o.s6)return;let n=t.nativeOrtbRequest;n&&(n=Object.assign({},r.nativeRequest,n),n.assets?.length?e.native=(0,i.mergeDeep)({},{request:JSON.stringify(n),ver:n.ver},e.native):(0,i.logWarn)("mediaTypes.native is set, but no assets were specified. Native request skipped.",t))}},m[p.WR].native={fn:function(e,t){if(e.mediaType===o.s6){let r;if(r="string"==typeof t.adm?JSON.parse(t.adm):t.adm,!(0,d.Qd)(r)||!Array.isArray(r.assets))throw new Error("ORTB native response contained no assets");e.native={ortb:r}}}},m[p.Tb].video={fn:function(e,t,r){if(r.mediaType&&r.mediaType!==o.G_)return;const n=t?.mediaTypes?.video;if(!(0,i.isEmpty)(n)){const t=Object.fromEntries(Object.entries(n).filter(e=>{let[t]=e;return s.Zy.has(t)}));if(n.playerSize){const e=(0,i.sizesToSizeTuples)(n.playerSize).map(i.sizeTupleToRtbSize);e.length>1&&(0,i.logWarn)("video request specifies more than one playerSize; all but the first will be ignored"),Object.assign(t,e[0])}e.video=(0,i.mergeDeep)(t,e.video)}}},m[p.WR].video={fn:function(e,t,r){e.mediaType===o.G_&&(r?.imp?.video?.w&&r?.imp?.video?.h&&([e.playerWidth,e.playerHeight]=[r.imp.video.w,r.imp.video.h]),t.adm&&(e.vastXml=t.adm),t.nurl&&(e.vastUrl=t.nurl))}},m[p.Tb].audio={fn:function(e,t,r){if(r.mediaType&&r.mediaType!==o.FY)return;const n=t?.mediaTypes?.audio;if(!(0,i.isEmpty)(n)){const t=Object.fromEntries(Object.entries(n).filter(e=>{let[t]=e;return u.Ai.has(t)}));e.audio=(0,i.mergeDeep)(t,e.audio)}}},m[p.WR].audio={fn:function(e,t){e.mediaType===o.FY&&(t.adm&&(e.vastXml=t.adm),t.nurl&&(e.vastUrl=t.nurl))}};var l=r(60877);function f(){let{context:e={},processors:t=b,overrides:r={},imp:o,request:s,bidResponse:a,response:d}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const c=new WeakMap;function u(e,i,o,s){let a;return function(){null==a&&(a=function(){let a=o.bind(this,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!n.has(e)){const t=Object.entries(e);t.sort((e,t)=>(e=e[1].priority||0)===(t=t[1].priority||0)?0:e>t?-1:1),n.set(e,t.map(e=>{let[t,r]=e;return[t,r.fn]}))}const r=n.get(e).filter(e=>{let[r]=e;return!t.hasOwnProperty(r)||t[r]}).map(function(e){let[r,n]=e;return t.hasOwnProperty(r)?t[r].bind(this,n):n});return function(){const e=Array.from(arguments);r.forEach(t=>{t.apply(this,e)})}}(t()[e]||{},r[e]||{}));return i&&(a=i.bind(this,a)),function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];try{return a.apply(this,t)}catch(e){s.call(this,e,...t)}}}());for(var d=arguments.length,p=new Array(d),c=0;c<d;c++)p[c]=arguments[c];return a.apply(this,p)}}const m=u(p.Tb,o,function(e,t,r){const n={};return e(n,t,r),n},function(e,t,r){(0,i.logError)("Error while converting bidRequest to ORTB imp; request skipped.",{error:e,bidRequest:t,context:r})}),l=u(p.S3,s,function(e,t,r,n){const i={imp:t};return e(i,r,n),i},function(e,t,r,n){throw(0,i.logError)("Error while converting to ORTB request",{error:e,imps:t,bidderRequest:r,context:n}),e}),f=u(p.WR,a,function(e,t,r){const n={};return e(n,t,r),n},function(e,t,r){(0,i.logError)("Error while converting ORTB seatbid.bid to bidResponse; bid skipped.",{error:e,bid:t,context:r})}),y=u(p.Cf,d,function(e,t,r,n){const i={bids:t};return e(i,r,n),i},function(e,t,r,n){throw(0,i.logError)("Error while converting from ORTB response",{error:e,bidResponses:t,ortbResponse:r,context:n}),e});return{toORTB(t){let{bidderRequest:r,bidRequests:n,context:o={}}=t;n=n||r.bids;const s={req:Object.assign({bidRequests:n},e,o),imp:{}};s.req.impContext=s.imp;const a=n.map(t=>{const n=Object.assign({bidderRequest:r,reqContext:s.req},e,o),a=m(t,n);if(null!=a){if(a.hasOwnProperty("id"))return Object.assign(n,{bidRequest:t,imp:a}),s.imp[a.id]=n,a;(0,i.logError)("Converted ORTB imp does not specify an id, ignoring bid request",t,a)}}).filter(Boolean),d=l(a,r,s.req);return s.req.bidderRequest=r,null!=d&&c.set(d,s),d},fromORTB(e){let{request:t,response:r}=e;const n=c.get(t);if(null==n)throw new Error("ortbRequest passed to `fromORTB` must be the same object returned by `toORTB`");function o(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign(e,{ortbRequest:t},r)}const s=Object.fromEntries((t.imp||[]).map(e=>[e.id,e])),a=(r?.seatbid||[]).flatMap(e=>(e.bid||[]).map(t=>{if(s.hasOwnProperty(t.impid)&&n.imp.hasOwnProperty(t.impid))return f(t,o(n.imp[t.impid],{imp:s[t.impid],seatbid:e,ortbResponse:r}));(0,i.logError)("ORTB response seatbid[].bid[].impid does not match any imp in request; ignoring bid",t)})).filter(Boolean);return y(a,r,o(n.req))}}}const b=(0,i.memoize)(()=>(0,l.U)(m,(0,p.yB)(p.qN)))},60877:(e,t,r)=>{r.d(t,{U:()=>i});var n=r(22517);function i(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const o=t.shift(),s=t.length>1?i(...t):t[0];return Object.fromEntries(n.zt.map(e=>[e,Object.assign({},o[e],s[e])]))}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[15889],{79547:(e,r,n)=>{n.d(r,{FE:()=>c,GR:()=>i});var t=n(58928),s=n(83435),o=n(10466);const u=Object.freeze([...["device.sua","source.schain","regs.gdpr","regs.us_privacy","regs.gpp","regs.gpp_sid","user.consent","user.eids"].map(e=>function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e,r)=>`${e}.ext.${r}`;const[n,o]=function(e){const r=e.split(".");return[r.slice(0,r.length-1).join("."),r[r.length-1]]}(e);return r=r(n,o),e=>{const u=(0,t.A)(e,n);if(null!=u?.[o])return(0,s.J)(e,r,u[o]),()=>delete u[o]}}(e)),...["app","content","site","user"].map(function(e){return r=>{const n=r[e]?.kwarray;if(null!=n){const t=(r[e].keywords||"").split(",");return Array.isArray(n)&&t.push(...n),r[e].keywords=t.join(","),()=>delete r[e].kwarray}}})]);function c(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u;return function(n){return r.forEach(r=>{try{const t=r(n);"function"==typeof t&&e&&t()}catch(e){(0,o.logError)("Error translating request to ORTB 2.5",e)}}),n}}const i=c()}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[40082],{31997:(e,n,t)=>{t.d(n,{l:()=>v});var i=t(53202),o=t(45808),s=t(41385),r=t(10466);function a(e){return null!=e&&0!==e}function c(e){return["MspaServiceProviderMode","Gpc"].some(n=>1===e[n])||2===e.PersonalDataConsents||1===e.KnownChildSensitiveDataConsents[0]||1===e.KnownChildSensitiveDataConsents[2]||a(e.KnownChildSensitiveDataConsents[1])||0===e.MspaCoveredTransaction}function l(e,n){return["SensitiveDataProcessingOptOutNotice","SensitiveDataLimitUseNotice"].some(t=>e[t]===n)}function u(e){return c(e)||["Sale","Sharing","TargetedAdvertising"].some(n=>{const t=e[`${n}OptOut`],i=e[`${n}OptOutNotice`];return 1===t||2===i||2===t&&0===i})||2===e.SharingNotice||2===e.SharingOptOut&&0===e.SharingNotice}const f=(()=>{const e=(()=>{const e=[6,7,9,10,12,14,16].map(e=>--e),n=Array.from(Array(16).keys()).filter(e=>7!==e),t=n.filter(n=>!e.includes(n));return Object.fromEntries(Object.entries({1:12,2:16}).map(i=>{let[o,s]=i;const r=e=>e<s;return[o,{cannotBeInScope:e.filter(r),allExceptGeo:n.filter(r),mustHaveConsent:t.filter(r)}]}))})();return function(n){const{cannotBeInScope:t,mustHaveConsent:i,allExceptGeo:o}=e[n.Version];return u(n)||l(n,2)||t.some(e=>a(n.SensitiveDataProcessing[e]))||i.some(e=>1===n.SensitiveDataProcessing[e])||l(n,0)&&o.some(e=>2===n.SensitiveDataProcessing[e])}})();const p={[o.Ml]:u,[o.yl]:u,[o.qX]:f,[o.hE]:function(e){const n=e.SensitiveDataProcessing[7];return 1===n||c(e)||l(e,2)||l(e,0)&&2===n}};function v(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e=>e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:p,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:i.qB,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>s.ad.getConsentData();const l=[],u=`MSPA (GPP '${e}' for section${n.length>1?"s":""} ${n.join(", ")})`;return(0,r.logInfo)(`Enabling activity controls for ${u}`),Object.entries(o).forEach(i=>{let[o,r]=i;l.push(a(o,u,function(e,n,t){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>s.ad.getConsentData()?.applicableSections;return function(){if(i().some(n=>e.includes(n))){const e=n();if(null==e)return{allow:!1,reason:"consent data not available"};if(![1,2].includes(e.Version))return{allow:!1,reason:`unsupported consent specification version "${e.Version}"`};if(t(e))return{allow:!1}}}}(n,()=>{return t((n=c()?.parsedSections?.[e],Array.isArray(n)?n.reduceRight((e,n)=>Object.assign(n,e),{}):n));var n},r,()=>c()?.applicableSections||[])))}),()=>l.forEach(e=>e())}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[33005],{52819:(t,e,n)=>{n.d(e,{Cn:()=>r,eu:()=>w,ho:()=>f,mw:()=>a,n9:()=>s,p:()=>u,ph:()=>l});var o=n(51833),g=n(10466),d=n(58928);const i=new Map;function a(t){return e=>(0,g.compareCodeAndSlot)(e,t)}function l(t,e){if(!t||"string"!=typeof t)return!1;window.googletag=window.googletag||{cmd:[]},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(()=>{window.googletag.pubads().setTargeting(t,e)})}function s(t){let e;return(0,g.isGptPubadsDefined)()&&(e=window.googletag.pubads().getSlots().find(a(t))),e}function u(t){if(i.has(t))return i.get(t);const e=s(t);let n={};return e&&(n={gptSlot:e.getAdUnitPath(),divId:e.getSlotElementId()}),!(0,g.isEmpty)(n)&&i.set(t,n),n}const r=["IAB_AUDIENCE_1_1","IAB_CONTENT_2_2"];function w(t){return Object.entries({[r[0]]:c(t,["user.data"],4),[r[1]]:c(t,o.Dy.map(t=>`${t}.content.data`),6)}).map(t=>{let[e,n]=t;return n.length?{taxonomy:e,values:n}:null}).filter(t=>t)}function c(t,e,n){return e.flatMap(e=>(0,d.A)(t,e)||[]).filter(t=>t.ext?.segtax===n).flatMap(t=>t.segment?.map(t=>t.id)).filter(t=>t).filter(g.uniques)}function f(t){!function(t,e){const n=()=>window.googletag.pubads().addEventListener(t,e);(0,g.isGptPubadsDefined)()?n():(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(n))}("slotRenderEnded",t)}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[47618],{18876:(e,t,i)=>{i.d(t,{o:()=>s,s:()=>n});var d=i(59794),r=i(7500);const n={[d.D4]:"banner",[d.s6]:"native",[d.G_]:"video"};function s(e,t,i){let s=i.mediaType;s||(s=r.X.hasOwnProperty(t.mtype)?r.X[t.mtype]:t.ext?.prebid?.type,n.hasOwnProperty(s)||(s=d.D4)),e.mediaType=s}},25844:(e,t,i)=>{i.d(t,{W:()=>r});var d=i(83435);function r(e,t){const i=t.params;i&&(0,d.J)(e,`ext.prebid.bidder.${t.bidder}`,i)}},47772:(e,t,i)=>{i.d(t,{m:()=>m});var d=i(60877),r=i(22517),n=i(26665),s=i(10466),a=i(18876),b=i(51409),o=i(91933),p=i(83435);var c=i(25844);var f=i(51748);var u=i(59794);var l=i(72122);const v={[r.S3]:{extPrebid:{fn:function(e,t){(0,p.J)(e,"ext.prebid",(0,s.mergeDeep)({auctiontimestamp:t.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}},e.ext?.prebid)),o.$W.getConfig("debug")&&(e.ext.prebid.debug=!0)}},extPrebidChannel:{fn:function(e){(0,p.J)(e,"ext.prebid.channel",Object.assign({name:"pbjs",version:(0,f.m)().version},e.ext?.prebid?.channel))}},extPrebidAliases:{fn:function(e,t,i){let{am:d=b.Ay}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(d.aliasRegistry[t.bidderCode]){const i=d.bidderRegistry[t.bidderCode];if(!i||!i.getSpec().skipPbsAliasing){(0,p.J)(e,`ext.prebid.aliases.${t.bidderCode}`,d.aliasRegistry[t.bidderCode]);const r=o.$W.getConfig(`gvlMapping.${t.bidderCode}`)||i?.getSpec?.().gvlid;r&&(0,p.J)(e,`ext.prebid.aliasgvlids.${t.bidderCode}`,r)}}}},extPrebidPageViewIds:{fn:function(e,t){(0,p.J)(e,`ext.prebid.page_view_ids.${t.bidderCode}`,t.pageViewId)}}},[r.Tb]:{params:{fn:c.W},adUnitCode:{fn:function(e,t){const i=t.adUnitCode;i&&(0,p.J)(e,"ext.prebid.adunitcode",i)}}},[r.WR]:{mediaType:{fn:a.o,priority:99},videoCache:{fn:function(e,t){if(e.mediaType===u.G_){let{cacheId:i,url:d}=t?.ext?.prebid?.cache?.vastXml??{};if(!i||!d){const{hb_uuid:e,hb_cache_host:r,hb_cache_path:n}=t?.ext?.prebid?.targeting??{};e&&r&&n&&(i=e,d=`https://${r}${n}?uuid=${e}`)}i&&d&&Object.assign(e,{videoCacheKey:i,vastUrl:d})}},priority:-10},bidderCode:{fn(e,t,i){e.bidderCode=i.seatbid.seat,e.adapterCode=t?.ext?.prebid?.meta?.adaptercode||i.bidRequest?.bidder||e.bidderCode}},pbsBidId:{fn(e,t){const i=t?.ext?.prebid?.bidid;(0,n.O8)(i)&&(e.pbsBidId=i)}},adserverTargeting:{fn(e,t){const i=t?.ext?.prebid?.targeting;(0,n.Qd)(i)&&(e.adserverTargeting=i)}},extPrebidMeta:{fn(e,t){e.meta=(0,s.mergeDeep)({},t?.ext?.prebid?.meta,e.meta)}},pbsWinTrackers:{fn:function(e,t){e.eventtrackers=e.eventtrackers||[],[[t.burl,l.OA],[t?.ext?.prebid?.events?.win,l.RO]].filter(t=>{let[i,d]=t;return i&&null==e.eventtrackers.find(e=>{let{method:t,event:r,url:n}=e;return r===d&&t===l.Ni&&n===i})}).forEach(t=>{let[i,d]=t;e.eventtrackers.push({method:l.Ni,event:d,url:i})})}}},[r.Cf]:{serverSideStats:{fn(e,t,i){const d=i.bidderRequest?.bidderCode,r=t?.ext;if(!r)return;const n={errors:"serverErrors",responsetimemillis:"serverResponseTimeMs"};Object.entries(r).forEach(e=>{let[t,r]=e;if(n[t]){if(!d)return;const e=r?.[d];if(void 0!==e){const d=n[t];i.bidderRequest[d]=e,i.bidRequests?.forEach(t=>{t[d]=e})}}else void 0!==r&&(i.bidderRequest.pbsExt=i.bidderRequest.pbsExt||{},i.bidderRequest.pbsExt[t]=r)})}}}};var g=i(9201);const m=(0,s.memoize)(()=>(0,d.U)((0,g.T)(),v,(0,r.yB)(r.e4)))}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[46550],{29077:(p,n,e)=>{function t(p,n,e){const t={};return p&&("boolean"==typeof p.gdprApplies&&(t.gdpr=Number(p.gdprApplies)),"string"==typeof p.consentString&&(t.gdpr_consent=p.consentString)),n&&(t.us_privacy=encodeURIComponent(n)),e?.gppString&&(t.gpp=e.gppString,t.gpp_sid=e.applicableSections?.toString()),t}e.d(n,{d:()=>t})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[12764],{88074:(o,n,e)=>{function t(o,n){return function(){const e=document.domain.split("."),t=`_gd${Date.now()}_${n}`;for(let n,i,s=0;s<e.length;s++){const u=e.slice(s).join(".");if(o.setCookie(t,"1",void 0,void 0,u),i=o.getCookie(t),o.setCookie(t,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,u),"1"!==i)return n;n=u}}}e.d(n,{w:()=>t})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[36784],{28157:(e,t,n)=>{n.d(t,{y:()=>o});const o=function(){const e={},t={},n={},o={register(o,s){Array.isArray(s.components)&&(n.hasOwnProperty(o)||(n[o]=[]),s.components.forEach(t=>{e.hasOwnProperty(t.componentType)||(e[t.componentType]={}),e[t.componentType][t.componentName]=t,n[o].push([t.componentType,t.componentName])})),s.disclosures&&Object.assign(t,s.disclosures)},getMetadata:(t,n)=>e?.[t]?.[n],getStorageDisclosure:e=>t?.[e],getModuleMetadata(e){const t=(n[e]??[]).map(e=>{let[t,n]=e;return o.getMetadata(t,n)});if(0===t.length)return null;return{disclosures:Object.fromEntries(t.filter(e=>{let{disclosureURL:t}=e;return null!=t}).map(e=>{let{disclosureURL:t}=e;return[t,o.getStorageDisclosure(t)]})),components:t}}};return o}()}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[32689],{14661:(s,e,c)=>{function n(s,e){const c={};return s.forEach(s=>{const n=e(s)?.disclosures;n&&Object.entries(n).forEach(e=>{let[n,{disclosures:o}]=e;c.hasOwnProperty(n)?c[n].forEach(e=>{let{disclosedBy:c}=e;return c.push(s)}):o?.length>0&&(c[n]=o.map(e=>({disclosedIn:n,disclosedBy:[s],...e})))})}),[].concat(...Object.values(c))}c.d(e,{l:()=>n})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[26762],{2433:(t,n,h)=>{function e(){let t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;try{t=n.top.history.length}catch(n){t=void 0}return t}h.d(n,{G:()=>e})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[42809],{85128:(A,t,e)=>{e.d(t,{T:()=>a});let n=null;const a=()=>!1!==n;!function(){const A=navigator.userAgent.match(/iPhone OS (\d+)_(\d+)/);if(null!==A&&parseInt(A[1])<17&&!navigator.userAgent.includes("Safari"))return;const t=document.createElement("video");t.src="data:video/mp4;base64,AAAAIGZ0eXBpc29tAAACAGlzb21pc28yYXZjMW1wNDEAAAAIZnJlZQAAADxtZGF0AAAAMGWIhAAV//73ye/Apuvb3rW/k89I/Cy3PsIqP39atohOSV14BYa1heKCYgALQC5K4QAAAwZtb292AAAAbG12aGQAAAAAAAAAAAAAAAAAAAPoAAAD6AABAAABAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAACMHRyYWsAAABcdGtoZAAAAAMAAAAAAAAAAAAAAAEAAAAAAAAD6AAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAEAAAAAAoAAAAFoAAAAAACRlZHRzAAAAHGVsc3QAAAAAAAAAAQAAA+gAAAAAAAEAAAAAAahtZGlhAAAAIG1kaGQAAAAAAAAAAAAAAAAAAEAAAABAAFXEAAAAAAAtaGRscgAAAAAAAAAAdmlkZQAAAAAAAAAAAAAAAFZpZGVvSGFuZGxlcgAAAAFTbWluZgAAABR2bWhkAAAAAQAAAAAAAAAAAAAAJGRpbmYAAAAcZHJlZgAAAAAAAAABAAAADHVybCAAAAABAAABE3N0YmwAAACvc3RzZAAAAAAAAAABAAAAn2F2YzEAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAoABaAEgAAABIAAAAAAAAAAEVTGF2YzYwLjMxLjEwMiBsaWJ4MjY0AAAAAAAAAAAAAAAY//8AAAA1YXZjQwFkAAr/4QAYZ2QACqzZQo35IQAAAwABAAADAAIPEiWWAQAGaOvjyyLA/fj4AAAAABRidHJ0AAAAAAAAAaAAAAGgAAAAGHN0dHMAAAAAAAAAAQAAAAEAAEAAAAAAHHN0c2MAAAAAAAAAAQAAAAEAAAABAAAAAQAAABRzdHN6AAAAAAAAADQAAAABAAAAFHN0Y28AAAAAAAAAAQAAADAAAABidWR0YQAAAFptZXRhAAAAAAAAACFoZGxyAAAAAAAAAABtZGlyYXBwbAAAAAAAAAAAAAAAAC1pbHN0AAAAJal0b28AAAAdZGF0YQAAAAEAAAAATGF2ZjYwLjE2LjEwMA==",t.setAttribute("playsinline","true"),t.muted=!0;const e=t.play();e?e.then(()=>{n=!0,t.src=""}).catch(A=>{A instanceof DOMException&&"NotSupportedError"===A.name||(n=!1)}):n=!1}()}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[47639],{15121:(t,e,n)=>{function r(t){const e=t.performance||t.webkitPerformance||t.msPerformance||t.mozPerformance,n=e&&"function"==typeof e.getEntriesByType&&"[object Function]"===Object.prototype.toString.call(e.getEntriesByType)&&e.getEntriesByType("navigation")[0]&&e.getEntriesByType("navigation")[0].responseStart&&e.getEntriesByType("navigation")[0].requestStart&&e.getEntriesByType("navigation")[0].responseStart>0&&e.getEntriesByType("navigation")[0].requestStart>0&&Math.round(e.getEntriesByType("navigation")[0].responseStart-e.getEntriesByType("navigation")[0].requestStart);if(n)return n.toString();const r=e&&e.timing.responseStart&&e.timing.requestStart&&e.timing.responseStart>0&&e.timing.requestStart>0&&e.timing.responseStart-e.timing.requestStart;return r?r.toString():""}n.d(e,{v:()=>r})}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[51912],{80770:(e,t,s)=>{s.d(t,{E0:()=>g,kz:()=>n,wq:()=>p});var r=s(62201),i=s(10466);const n="1.1";function o(e){return!!("object"==typeof e&&null!==e&&e.advertising_token&&e.identity_expires&&e.refresh_from&&e.refresh_token&&e.refresh_expires)}function a(e){return`UID2 shared library - ${e}`}function l(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];e(a(s[0]),...s.slice(1))}class c{constructor(e,t,s,r){this._baseUrl=e.baseUrl,this._clientVersion=t,this._logInfo=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l(s,...t)},this._logWarn=r}createArrayBuffer(e){const t=new Uint8Array(e.length);for(let s=0;s<e.length;s++)t[s]=e.charCodeAt(s);return t}hasStatusResponse(e){return"object"==typeof e&&e&&e.status}isValidRefreshResponse(e){return this.hasStatusResponse(e)&&("optout"===e.status||"expired_token"===e.status||"success"===e.status&&e.body&&o(e.body))}ResponseToRefreshResult(e){return this.isValidRefreshResponse(e)?"success"===e.status?{status:e.status,identity:e.body}:"optout"===e.status?{status:e.status,identity:"optout"}:e:a("Response didn't contain a valid status")}callRefreshApi(e){const t=this._baseUrl+"/v2/token/refresh";let s,i;const n=new Promise((e,t)=>{s=e,i=t});return this._logInfo("Sending refresh request",e),(0,r.RD)(t,{success:t=>{try{if(e.refresh_response_key){this._logInfo("Decrypting refresh API response");const r=this.createArrayBuffer(atob(t));window.crypto.subtle.importKey("raw",this.createArrayBuffer(atob(e.refresh_response_key)),{name:"AES-GCM"},!1,["decrypt"]).then(e=>{this._logInfo("Imported decryption key"),window.crypto.subtle.decrypt({name:"AES-GCM",iv:r.slice(0,12),tagLength:128},e,r.slice(12)).then(e=>{const t=String.fromCharCode(...new Uint8Array(e));this._logInfo("Decrypted to:",t);const r=JSON.parse(t),n=this.ResponseToRefreshResult(r);"string"==typeof n?i(a(n)):s(n)},e=>this._logWarn(a("Call to UID2 API failed"),e))},e=>this._logWarn(a("Call to UID2 API failed"),e))}else{this._logInfo("No response decryption key available, assuming unencrypted JSON");const e=JSON.parse(t),r=this.ResponseToRefreshResult(e);"string"==typeof r?i(a(r)):s(r)}}catch(e){i(a(t))}},error:(e,t)=>{try{this._logInfo("Error status, assuming unencrypted JSON");const e=JSON.parse(t.responseText),r=this.ResponseToRefreshResult(e);"string"==typeof r?i(a(r)):s(r)}catch(t){i(a(e))}}},e.refresh_token,{method:"POST",customHeaders:{"X-UID2-Client-Version":this._clientVersion}}),n}}class u{constructor(e,t,s,r){this._storage=e,this._preferLocalStorage=t,this._storageName=s,this._logInfo=function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return l(r,...t)}}readCookie(e){return this._storage.cookiesAreEnabled()?this._storage.getCookie(e):null}readLocalStorage(e){return this._storage.localStorageIsEnabled()?this._storage.getDataFromLocalStorage(e):null}readModuleCookie(){return this.parseIfContainsBraces(this.readCookie(this._storageName))}writeModuleCookie(e){this._storage.setCookie(this._storageName,JSON.stringify(e),Date.now()+864e5)}readModuleStorage(){return this.parseIfContainsBraces(this.readLocalStorage(this._storageName))}writeModuleStorage(e){this._storage.setDataInLocalStorage(this._storageName,JSON.stringify(e))}readProvidedCookie(e){return JSON.parse(this.readCookie(e))}parseIfContainsBraces(e){return e?.includes("{")?JSON.parse(e):e}storeValue(e){this._preferLocalStorage?this.writeModuleStorage(e):this.writeModuleCookie(e)}getStoredValueWithFallback(){const e=this._preferLocalStorage?"local storage":"cookie",t=(this._preferLocalStorage?this.readModuleStorage:this.readModuleCookie).bind(this),s=(this._preferLocalStorage?this.writeModuleStorage:this.writeModuleCookie).bind(this),r=(this._preferLocalStorage?this.readModuleCookie:this.readModuleStorage).bind(this),i=t();if(i){if("string"==typeof i){const t=r();if(t&&"object"==typeof t)return this._logInfo(`${e} contained a basic token, but found a refreshable token fallback. Copying the fallback value to ${e}.`),s(t),t}}else{const t=r();if(t)return this._logInfo(`${e} was empty, but found a fallback value.`),"object"==typeof t&&(this._logInfo(`Copying the fallback value to ${e}.`),s(t)),t}return i}}function d(e,t,s,r,i,n){i("UID2 base url provided: ",e);return new c({baseUrl:e},s,i,n).callRefreshApi(t).then(e=>{i("Refresh endpoint responded with:",e);const s={originalToken:t,latestToken:e.identity},n=r.getStoredValueWithFallback();return n?.originalIdentity&&(s.originalIdentity=n.originalIdentity),r.storeValue(s),s})}let h;{const e=9;h={isCSTGOptionsValid(e,t){if("object"!=typeof e||null===e)return t('CSTG is not being used, but is included in the Prebid.js bundle. You can reduce the bundle size by passing "--disable UID2_CSTG" to the Prebid.js build.'),!1;const s=e;if(!s.serverPublicKey&&!s.subscriptionId)return t("CSTG has been enabled but its parameters have not been set."),!1;if("string"!=typeof s.serverPublicKey)return t("CSTG opts.serverPublicKey must be a string"),!1;const r=/^(UID2|EUID)-X-[A-Z]-.+/;return r.test(s.serverPublicKey)?"string"!=typeof s.subscriptionId?(t("CSTG opts.subscriptionId must be a string"),!1):0!==s.subscriptionId.length||(t("CSTG opts.subscriptionId is empty"),!1):(t(`CSTG opts.serverPublicKey must match the regular expression ${r}`),!1)},getValidIdentity(e,s){if(e.emailHash)return t.isBase64Hash(e.emailHash)?{email_hash:e.emailHash}:void s("CSTG opts.emailHash is invalid");if(e.phoneHash)return t.isBase64Hash(e.phoneHash)?{phone_hash:e.phoneHash}:void s("CSTG opts.phoneHash is invalid");if(e.email){const r=t.normalizeEmail(e.email);return void 0===r?void s("CSTG opts.email is invalid"):{email:r}}return e.phone?t.isNormalizedPhone(e.phone)?{phone:e.phone}:void s("CSTG opts.phone is invalid"):void 0},isStoredTokenInvalid(e,t,s,r){if(t){if("optout"===t.latestToken)return!0;const r=Object.values(e)[0];if(!this.isStoredTokenFromSameIdentity(t,r))return s("CSTG supplied new identity - ignoring stored value.",t.originalIdentity,e),!0}return!1},async generateTokenAndStore(e,t,r,i,n,o){n("UID2 cstg opts provided: ",JSON.stringify(t));const a=new s({baseUrl:e,cstg:t},n,o),l=await a.generateToken(r);n("CSTG endpoint responded with:",l);const c={originalIdentity:this.encodeOriginalIdentity(r),latestToken:l.identity};return i.storeValue(c),c},isStoredTokenFromSameIdentity:(e,t)=>!!e.originalIdentity&&(0,i.cyrb53Hash)(t,e.originalIdentity.salt)===e.originalIdentity.identity,encodeOriginalIdentity(e){const t=Object.values(e)[0],s=Math.floor(Math.random()*Math.pow(2,32));return{identity:(0,i.cyrb53Hash)(t,s),salt:s}}};class t{static EMAIL_EXTENSION_SYMBOL="+";static EMAIL_DOT=".";static GMAIL_DOMAIN="gmail.com";static isBase64Hash(e){if(!e||44!==e.length)return!1;try{return btoa(atob(e))===e}catch(e){return!1}}static isNormalizedPhone(e){return/^\+[0-9]{10,15}$/.test(e)}static normalizeEmail(e){if(!e||!e.length)return;const t=e.trim().toLowerCase();if(t.indexOf(" ")>0)return;const s=this.splitEmailIntoAddressAndDomain(t);if(!s)return;const{address:r,domain:i}=s,n=this.isGmail(i),o=this.normalizeAddressPart(r,n,n);return o?`${o}@${i}`:void 0}static splitEmailIntoAddressAndDomain(e){const t=e.split("@");if(2===t.length&&!t.some(e=>""===e))return{address:t[0],domain:t[1]}}static isGmail(e){return e===this.GMAIL_DOMAIN}static dropExtension(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.EMAIL_EXTENSION_SYMBOL;return e.split(t)[0]}static normalizeAddressPart(e,t,s){let r=e;return t&&(r=r.replaceAll(this.EMAIL_DOT,"")),s&&(r=this.dropExtension(r)),r}}class s{constructor(e,t,s){this._baseUrl=e.baseUrl,this._serverPublicKey=e.cstg.serverPublicKey,this._subscriptionId=e.cstg.subscriptionId,this._logInfo=function(){for(var e=arguments.length,s=new Array(e),r=0;r<e;r++)s[r]=arguments[r];return l(t,...s)},this._logWarn=s}hasStatusResponse(e){return"object"==typeof e&&e&&e.status}isCstgApiSuccessResponse(e){return this.hasStatusResponse(e)&&"success"===e.status&&o(e.body)}isCstgApiOptoutResponse(e){return this.hasStatusResponse(e)&&"optout"===e.status}isCstgApiClientErrorResponse(e){return this.hasStatusResponse(e)&&"client_error"===e.status&&"string"==typeof e.message}isCstgApiForbiddenResponse(e){return this.hasStatusResponse(e)&&"invalid_http_origin"===e.status&&"string"==typeof e.message}stripPublicKeyPrefix(t){return t.substring(e)}async generateCstgRequest(e){if("email_hash"in e||"phone_hash"in e)return e;if("email"in e){return{email_hash:await c.hash(e.email)}}if("phone"in e){return{phone_hash:await c.hash(e.phone)}}}async generateToken(e){const t=await this.generateCstgRequest(e);this._logInfo("Building CSTG request for",t);const s=await n.build(this.stripPublicKeyPrefix(this._serverPublicKey)),r=new TextEncoder,i=Date.now(),{iv:o,ciphertext:a}=await s.encrypt(r.encode(JSON.stringify(t)),r.encode(JSON.stringify([i]))),l=await c.exportPublicKey(s.clientPublicKey),u={payload:c.bytesToBase64(new Uint8Array(a)),iv:c.bytesToBase64(new Uint8Array(o)),public_key:c.bytesToBase64(new Uint8Array(l)),timestamp:i,subscription_id:this._subscriptionId};return this.callCstgApi(u,s)}async callCstgApi(e,t){const s=this._baseUrl+"/v2/token/client-generate";let i,n;const o=new Promise((e,t)=>{i=e,n=t});return this._logInfo("Sending CSTG request",e),(0,r.RD)(s,{success:async(e,s)=>{try{const s=c.base64ToBytes(e),r=await t.decrypt(s.slice(0,12),s.slice(12)),o=(new TextDecoder).decode(r),l=JSON.parse(o);this.isCstgApiSuccessResponse(l)?i({status:"success",identity:l.body}):this.isCstgApiOptoutResponse(l)?i({status:"optout",identity:"optout"}):n(a(`API error: Response body was invalid for HTTP status 200: ${o}`))}catch(e){n(a(e))}},error:(e,t)=>{try{if(400===t.status){const e=JSON.parse(t.responseText);this.isCstgApiClientErrorResponse(e)?n(a(`Client error: ${e.message}`)):n(a(`UID2 API error: Response body was invalid for HTTP status 400: ${t.responseText}`))}else if(403===t.status){const e=JSON.parse(t.responseText);this.isCstgApiForbiddenResponse(t)?n(a(`Forbidden: ${e.message}`)):n(a(`UID2 API error: Response body was invalid for HTTP status 403: ${t.responseText}`))}else n(a(`UID2 API error: Unexpected HTTP status ${t.status}: ${e}`))}catch(t){n(a(e))}}},JSON.stringify(e),{method:"POST"}),o}}class n{static _namedCurve="P-256";constructor(e,t){this._clientPublicKey=e,this._sharedKey=t}static async build(e){const t=await c.generateKeyPair(n._namedCurve),s=await c.importPublicKey(e,this._namedCurve),r=await c.deriveKey(s,t.privateKey);return new n(t.publicKey,r)}async encrypt(e,t){const s=window.crypto.getRandomValues(new Uint8Array(12));return{iv:s,ciphertext:await window.crypto.subtle.encrypt({name:"AES-GCM",iv:s,additionalData:t},this._sharedKey,e)}}async decrypt(e,t){return window.crypto.subtle.decrypt({name:"AES-GCM",iv:e},this._sharedKey,t)}get clientPublicKey(){return this._clientPublicKey}}class c{static base64ToBytes(e){const t=atob(e);return Uint8Array.from(t,e=>e.codePointAt(0))}static bytesToBase64(e){const t=Array.from(e,e=>String.fromCodePoint(e)).join("");return btoa(t)}static async generateKeyPair(e){const t={name:"ECDH",namedCurve:e};return window.crypto.subtle.generateKey(t,!1,["deriveKey"])}static async importPublicKey(e,t){const s={name:"ECDH",namedCurve:t};return window.crypto.subtle.importKey("spki",this.base64ToBytes(e),s,!1,[])}static exportPublicKey(e){return window.crypto.subtle.exportKey("spki",e)}static async deriveKey(e,t){return window.crypto.subtle.deriveKey({name:"ECDH",public:e},t,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}static async hash(e){const t=await window.crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e));return this.bytesToBase64(new Uint8Array(t))}}}function p(e,t,s,r){const n=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return l(s,...t)};let o=null;const a="cookie"!==e.storage,c=new u(t,a,e.internalStorage,n);n(`Module is using ${a?"local storage":"cookies"} for internal storage.`);const p=h&&h.isCSTGOptionsValid(e.cstg,r);p?(n("Module is using client-side token generation."),o=null):e.paramToken?(o=e.paramToken,n("Read token from params",o)):e.serverCookieName&&(o=c.readProvidedCookie(e.serverCookieName),n("Read token from server-supplied cookie",o));let g=c.getStoredValueWithFallback();if(n("Loaded module-stored tokens:",g),g&&"string"==typeof g){if(!o&&!p)return n("Returning legacy cookie value."),{id:g};n("Discarding superseded legacy cookie."),g=null}if(o&&g&&g.originalToken?.advertising_token!==o.advertising_token&&(n("Server supplied new token - ignoring stored value.",g.originalToken?.advertising_token,o.advertising_token),g=null),p){const t=h.getValidIdentity(e.cstg,r);if(t&&(g&&h.isStoredTokenInvalid(t,g,n,r)&&(g=null),!g||Date.now()>g.latestToken.refresh_expires)){const s=h.generateTokenAndStore(e.apiBaseUrl,e.cstg,t,c,n,r);return n("Generate token using CSTG"),{callback:e=>{s.then(t=>{n("Token generation responded, passing the new token on.",t),e(t)}).catch(e=>{(0,i.logError)("error generating token: ",e)})}}}}const y=!g?.latestToken||o&&o.identity_expires>g.latestToken.identity_expires,f=y?o:g.latestToken;if(n("UID2 module selected latest token",y,f),!f||Date.now()>f.refresh_expires)return n("Newest available token is expired and not refreshable."),{id:null};if(Date.now()>f.identity_expires){const t=d(e.apiBaseUrl,f,e.clientId,c,n,r);return n("Token is expired but can be refreshed, attempting refresh."),{callback:e=>{t.then(t=>{n("Refresh reponded, passing the updated token on.",t),e(t)}).catch(e=>{(0,i.logError)("error refreshing token: ",e)})}}}Date.now()>f.refresh_from&&(n("Refreshing token in background with low priority."),d(e.apiBaseUrl,f,e.clientId,c,n,r).catch(e=>{(0,i.logError)("error refreshing token in background: ",e)}));const b={originalToken:o??g?.originalToken,latestToken:f};return p&&(b.originalIdentity=g?.originalIdentity),c.storeValue(b),{id:b}}function g(e){const t=["emailHash","phoneHash","email","phone"];for(const s of t)if(e.hasOwnProperty(s))return{[s]:e[s]};return{}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[44950],{35273:(e,t,u)=>{u.d(t,{x:()=>n});const n={uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}}}}}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[14332],{78808:(e,t,s)=>{var r=s(51748),n=s(3516),a=s(59794),i=s(43958),d=s(10466),o=s(58928),p=s(83435),c=s(26665),u=s(67464),m=s(32808);const l={code:"adf",aliases:[{code:"adformOpenRTB",gvlid:50},{code:"adform",gvlid:50}],gvlid:50,supportedMediaTypes:[a.s6,a.D4,a.G_],isBidRequestValid:e=>{const t=e.params||{},{mid:s,inv:r,mname:n}=t;return!!(s||r&&n)},buildRequests:(e,t)=>{let s,r;const n=t.ortb2||{},a=n.user||{};"object"==typeof n.app?s=n.app||{}:(r=n.site||{},r.page||(r.page=t.refererInfo.page));const u=n.device||{},{innerWidth:l,innerHeight:b}=(0,i.Ot)();u.w=u.w||l,u.h=u.h||b,u.ua=u.ua||navigator.userAgent;const v=n.source||{};v.fd=1;const f=n.regs||{},y=(0,d.setOnAny)(e,"params.adxDomain")||"adx.adform.net",h=(0,d.setOnAny)(e,"params.pt")||(0,d.setOnAny)(e,"params.priceType")||"net",g=(0,d.setOnAny)(e,"params.test"),A=(0,m.b)(t),I=A&&[A],O=(0,d.setOnAny)(e,"userIdAsEids"),x=(0,d.setOnAny)(e,"ortb2.source.ext.schain");O&&(0,p.J)(a,"ext.eids",O),x&&(0,p.J)(v,"ext.schain",x);const R=e.map((e,t)=>{e.netRevenue=h;const s=e.getFloor?e.getFloor({currency:A||"USD",size:"*",mediaType:"*"}):{},r=s?.floor,n=s?.currency,{mid:a,inv:i,mname:p}=e.params,u=e.ortb2Imp?.ext,m={id:t+1,tagid:a,bidfloor:r,bidfloorcur:n,ext:{...u,bidder:{inv:i,mname:p}}};if(e.nativeOrtbRequest&&e.nativeOrtbRequest.assets){const t=e.nativeOrtbRequest.assets,s=[];for(let e=0;e<t.length;e++){const r=(0,c.Go)(t[e]),n=r.img;if(n){const e=n.ext&&n.ext.aspectratios;if(e){const t=parseInt(e[0].split(":")[0],10),s=parseInt(e[0].split(":")[1],10);n.wmin=n.wmin||0,n.hmin=s*n.wmin/t|0}}s.push(r)}m.native={request:{assets:s}}}const l=(0,o.A)(e,"mediaTypes.banner");if(l&&l.sizes){const e=(0,d.parseSizesInput)(l.sizes).map(e=>{const[t,s]=e.split("x");return{w:parseInt(t,10),h:parseInt(s,10)}});m.banner={format:e}}const b=(0,o.A)(e,"mediaTypes.video");return b&&(m.video=b),m}),w={id:t.bidderRequestId,site:r,app:s,user:a,device:u,source:v,ext:{pt:h},cur:I,imp:R,regs:f};return g&&(w.is_debug=!!g,w.test=1),{method:"POST",url:"https://"+y+"/adx/openrtb",data:JSON.stringify(w),bids:e}},interpretResponse:function(e,t){let{bids:s}=t;if(!e.body)return;const{seatbid:r,cur:n}=e.body,i=(d=r.map(e=>e.bid),[].concat(...d)).reduce((e,t)=>(e[t.impid-1]=t,e),[]);var d;return s.map((e,t)=>{const s=i[t];if(s){const t=(0,o.A)(s,"ext.prebid.type"),r=(0,o.A)(s,"ext.dsa"),i={requestId:e.bidId,cpm:s.price,creativeId:s.crid,ttl:360,netRevenue:"net"===e.netRevenue,currency:n,mediaType:t,width:s.w,height:s.h,dealId:s.dealid,meta:{mediaType:t,advertiserDomains:s.adomain,dsa:r,primaryCatId:s.cat?.[0],secondaryCatIds:s.cat?.slice(1)}};return s.native?i.native={ortb:s.native}:t===a.G_?(i.vastXml=s.adm,s.nurl&&(i.vastUrl=s.nurl)):i.ad=s.adm,e.renderer||t!==a.G_||"outstream"!==(0,o.A)(e,"mediaTypes.video.context")||(i.renderer=u.A4.install({id:e.bidId,url:"https://s2.adform.net/banners/scripts/video/outstream/render.js",adUnitCode:e.adUnitCode}),i.renderer.setRender(b)),i}}).filter(Boolean)}};function b(e){e.renderer.push(()=>{window.Adform.renderOutstream(e)})}(0,n.a$)(l),(0,r.E)("adfBidAdapter")}},e=>{e.O(0,[19147,60802,37769,40315,51085],()=>{return t=78808,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[13788],{96715:(e,s,t)=>{var i=t(51748),a=t(3516),d=t(59794),r=t(28753);const n={code:"ads_interactive",gvlid:1212,aliases:["adsinteractive"],supportedMediaTypes:[d.D4,d.G_,d.s6],isBidRequestValid:(0,r.$d)(),buildRequests:(0,r.rz)("https://bntb.adsinteractive.com/pbjs"),interpretResponse:r.xO,getUserSyncs:(0,r.yY)("https://cstb.adsinteractive.com")};(0,a.a$)(n),(0,i.E)("ads_interactiveBidAdapter")}},e=>{e.O(0,[49136,60802,37769,40315,51085],()=>{return s=96715,e(e.s=s);var s});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[44599],{158:(e,t,r)=>{r.d(t,{I:()=>R});var i=r(51748),a=r(58928),s=r(26665),o=r(10466),n=r(67464),d=r(91933),c=r(3516),p=r(59794),l=r(36220),u=r(61443),m=r(77156),g=r(93448),h=r(80356),_=r(73468),f=r(38695),b=r(46614),y=r(23610),v=r(38657);const k="appnexus",w="https://ib.adnxs.com/ut/v3/prebid",x="https://ib.adnxs-simple.com/ut/v3/prebid",I=["id","minduration","maxduration","skippable","playback_method","frameworks","context","skipoffset"],C=["minduration","maxduration","skip","skipafter","playbackmethod","api","startdelay","placement","plcmt"],E=["age","externalUid","external_uid","segments","gender","dnt","language"],T=["geo","device_id"],U=["enabled","dongle","member_id","debug_timeout"],O={apn_debug_dongle:"dongle",apn_debug_member_id:"member_id",apn_debug_timeout:"debug_timeout"},S={playback_method:{unknown:0,auto_play_sound_on:1,auto_play_sound_off:2,click_to_play:3,mouse_over:4,auto_play_sound_unknown:5},context:{unknown:0,pre_roll:1,mid_roll:2,post_roll:3,outstream:4,"in-banner":5,"in-feed":6,interstitial:7,accompanying_content_pre_roll:8,accompanying_content_mid_roll:9,accompanying_content_post_roll:10}},A={body:"description",body2:"desc2",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0}},icon:{serverName:"icon",requiredParams:{required:!0}},sponsoredBy:"sponsored_by",privacyLink:"privacy_link",salePrice:"saleprice",displayUrl:"displayurl"},j=(0,u.vM)({bidderCode:k}),D=new Map([[1,"Mobile/Tablet - General"],[2,"Personal Computer"],[3,"Connected TV"],[4,"Phone"],[5,"Tablet"],[6,"Connected Device"],[7,"Set Top Box"],[8,"OOH Device"]]),R={code:k,gvlid:32,aliases:b.DX,supportedMediaTypes:[p.D4,p.G_,p.s6],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.placement_id||e.params.member&&(e.params.invCode||e.params.inv_code))},buildRequests:function(e,t){const r=(e=(0,h.Xj)(e)).map(N),i=(e||[]).find(P);let a={};!0===d.$W.getConfig("coppa")&&(a={coppa:!0}),i&&Object.keys(i.params.user).filter(e=>E.includes(e)).forEach(e=>{const t=(0,b.vk)(e);if("segments"===e&&(0,s.cy)(i.params.user[e])){const r=[];i.params.user[e].forEach(e=>{(0,s.Et)(e)?r.push({id:e}):(0,s.Qd)(e)&&r.push(e)}),a[t]=r}else"segments"!==e&&(a[t]=i.params.user[e])});const n=(e||[]).find(z);let c;n&&n.params&&n.params.app&&(c={},Object.keys(n.params.app).filter(e=>T.includes(e)).forEach(e=>{c[e]=n.params.app[e]}));const p=(e||[]).find(B);let l;p&&p.params&&n.params.app&&n.params.app.id&&(l={appid:p.params.app.id});let u={};const m={},_=j.getCookie("apn_prebid_debug")||null;if(_)try{u=JSON.parse(_)}catch(e){(0,o.logError)("AppNexus Debug Auction Cookie Error:\n\n"+e)}else{Object.keys(O).forEach(e=>{const t=(0,o.getParameterByName)(e);(0,s.O8)(t)&&""!==t&&(u[O[e]]=t,u.enabled=!0)}),u=(0,y.$)({member_id:"number",debug_timeout:"number"},u);const t=(e||[]).find($);t&&t.debug&&(u=t.debug)}u&&u.enabled&&Object.keys(u).filter(e=>U.includes(e)).forEach(e=>{m[e]=u[e]});const k=(e||[]).find(M),I=k?parseInt(k.params.member,10):0,C=e[0]?.ortb2?.source?.ext?.schain,S=(e||[]).find(L),A={tags:[...r],user:a,sdk:{source:"pbjs",version:"10.20.0"},schain:C};S&&(A.iab_support={omidpn:"Appnexus",omidpv:"10.20.0"}),I>0&&(A.member_id=I),n&&(A.device=c),p&&(A.app=l),t?.ortb2?.device&&(A.device=A.device||{},(0,o.mergeDeep)(A.device,function(e){const t={useragent:e.ua,devicetype:D.get(e.devicetype),make:e.make,model:e.model,os:e.os,os_version:e.osv,w:e.w,h:e.h,ppi:e.ppi,pxratio:e.pxratio};return Object.keys(t).reduce((e,r)=>(t[r]&&(e[r]=t[r]),e),{})}(t.ortb2.device)));const R=(0,s.Go)(t&&t.ortb2),q=(0,s.Go)(d.$W.getConfig("appnexusAuctionKeywords"))||{},H=(0,f.QF)(R,q);if(H.length>0&&(A.keywords=H),R?.source?.tid&&(A.source?Object.assign({},A.source,{tid:R.source.tid}):A.source={tid:R.source.tid}),d.$W.getConfig("adpod.brandCategoryExclusion")&&(A.brand_category_uniqueness=!0),m.enabled&&(A.debug=m,(0,o.logInfo)("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(m,null,4))),t&&t.gdprConsent&&(A.gdpr_consent={consent_string:t.gdprConsent.consentString,consent_required:t.gdprConsent.gdprApplies},t.gdprConsent.addtlConsent&&-1!==t.gdprConsent.addtlConsent.indexOf("~"))){const e=t.gdprConsent.addtlConsent,r=e.substring(e.indexOf("~")+1);A.gdpr_consent.addtl_consent=r.split(".").map(e=>parseInt(e,10))}if(t&&t.uspConsent&&(A.us_privacy=t.uspConsent),t?.gppConsent?A.privacy={gpp:t.gppConsent.gppString,gpp_sid:t.gppConsent.applicableSections}:t?.ortb2?.regs?.gpp&&(A.privacy={gpp:t.ortb2.regs.gpp,gpp_sid:t.ortb2.regs.gpp_sid}),t&&t.refererInfo){const e={rd_ref:encodeURIComponent(t.refererInfo.topmostLocation),rd_top:t.refererInfo.reachedTop,rd_ifs:t.refererInfo.numIframes,rd_stk:t.refererInfo.stack.map(e=>encodeURIComponent(e)).join(",")},r=t.refererInfo.canonicalUrl;(0,s.O8)(r)&&""!==r&&(e.rd_can=r),A.referrer_detection=e}(e||[]).find(G)&&e.filter(G).forEach(e=>{const t=function(e,t){const{durationRangeSec:r,requireExactDuration:i}=t.mediaTypes.video,a=function(e){const{adPodDurationSec:t,durationRangeSec:r,requireExactDuration:i}=e,a=Math.min(...r),s=Math.floor(t/a);return i?Math.max(s,r.length):s}(t.mediaTypes.video),s=Math.max(...r),o=e.filter(e=>e.uuid===t.bidId),n=(0,b.GS)(...o,a);if(i){const e=Math.ceil(a/r.length),t=(0,v.i)(n,e);r.forEach((e,r)=>{t[r].forEach(t=>{W(t,"minduration",e),W(t,"maxduration",e)})})}else n.forEach(e=>W(e,"maxduration",s));return n}(r,e),i=A.tags.filter(t=>t.uuid!==e.bidId);A.tags=[...i,...t]});if(e[0].userIdAsEids?.length>0){const t=[];e[0].userIdAsEids.forEach(e=>{!e||!e.uids||e.uids.length<1||e.uids.forEach(r=>{const i={source:e.source,id:r.id};"adserver.org"===e.source?i.rti_partner="TDID":"uidapi.com"===e.source&&(i.rti_partner="UID2"),t.push(i)})}),t.length&&(A.eids=t)}if(t?.ortb2?.regs?.ext?.dsa){const e=t.ortb2.regs.ext.dsa,r={};if(["dsarequired","pubrender","datatopub"].forEach(t=>{(0,s.Et)(e[t])&&(r[t]=e[t])}),(0,s.cy)(e.transparency)&&e.transparency.every(e=>(0,s.Qd)(e))){const t=[];e.transparency.forEach(e=>{(0,s.O8)(e.domain)&&""!==e.domain&&(0,s.cy)(e.dsaparams)&&e.dsaparams.every(e=>(0,s.Et)(e))&&t.push(e)}),t.length>0&&(r.transparency=t)}(0,o.isEmpty)(r)||(A.dsa=r)}r[0].publisher_id&&(A.publisher_id=r[0].publisher_id);const V=function(e,t){let r=[];const i={withCredentials:!0};let a=w;(0,g.C)(t?.gdprConsent)||(a=x);"TRUE"!==(0,o.getParameterByName)("apn_test").toUpperCase()&&!0!==d.$W.getConfig("apn_test")||(i.customHeaders={"X-Is-Test":1});if(e.tags.length>15){const o=(0,s.Go)(e);(0,v.i)(e.tags,15).forEach(e=>{o.tags=e;const s=JSON.stringify(o);r.push({method:"POST",url:a,data:s,bidderRequest:t,options:i})})}else{const s=JSON.stringify(e);r={method:"POST",url:a,data:s,bidderRequest:t,options:i}}return r}(A,t);return V},interpretResponse:function(e,t){let{bidderRequest:r}=t;e=e.body;const i=[];if(!e||e.error){let t=`in response for ${r.bidderCode} adapter`;return e&&e.error&&(t+=`: ${e.error}`),(0,o.logError)(t),i}if(e.tags&&e.tags.forEach(e=>{const t=(d=e)&&d.ads&&d.ads.length&&(d.ads||[]).find(e=>e.rtb);var d;if(t){if((!0===m.u.get(r.bidderCode,"allowZeroCpmBids")?t.cpm>=0:t.cpm>0)&&this.supportedMediaTypes.includes(t.ad_type)){const d=function(e,t,r){const i=(0,o.getBidRequest)(e.uuid,[r]),d=(0,o.getUniqueIdentifierStr)(),c={adId:d,requestId:e.uuid,cpm:t.cpm,creativeId:t.creative_id,dealId:t.deal_id,currency:"USD",netRevenue:!0,ttl:300,adUnitCode:i.adUnitCode,appnexus:{buyerMemberId:t.buyer_member_id,dealPriority:t.deal_priority,dealCode:t.deal_code}};t.adomain&&(c.meta=Object.assign({},c.meta,{advertiserDomains:[t.adomain]}));t.advertiser_id&&(c.meta=Object.assign({},c.meta,{advertiserId:t.advertiser_id}));t.dsa&&(c.meta=Object.assign({},c.meta,{dsa:t.dsa}));function u(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}t.buyer_member_id&&(c.meta=Object.assign({},c.meta,{dchain:u(t)}));t.brand_id&&(c.meta=Object.assign({},c.meta,{brandId:t.brand_id}));if(t.rtb.video){Object.assign(c,{width:t.rtb.video.player_width,height:t.rtb.video.player_height,vastImpUrl:t.notify_url,ttl:3600});switch((0,a.A)(i,"mediaTypes.video.context")){case p.LM:const i=_.n[t.brand_category_id]?_.n[t.brand_category_id]:null;c.meta=Object.assign({},c.meta,{primaryCatId:i});const s=t.deal_priority;c.video={context:p.LM,durationSeconds:Math.floor(t.rtb.video.duration_ms/1e3),dealTier:s},c.vastUrl=t.rtb.video.asset_url;break;case l.H6:if(c.adResponse=e,c.adResponse.ad=c.adResponse.ads[0],c.adResponse.ad.video=c.adResponse.ad.rtb.video,c.vastXml=t.rtb.video.content,t.renderer_url){const i=(r.bids||[]).find(t=>t.bidId===e.uuid);let s=(0,a.A)(i,"mediaTypes.video.renderer.options");s||(s=(0,a.A)(i,"renderer.options")),c.renderer=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=n.A4.install({id:t.renderer_id,url:t.renderer_url,config:r,loaded:!1,adUnitCode:e});try{i.setRender(H)}catch(e){(0,o.logWarn)("Prebid Error calling setRender on renderer",e)}return i.setEventHandlers({impression:()=>(0,o.logMessage)("AppNexus outstream video impression event"),loaded:()=>(0,o.logMessage)("AppNexus outstream video loaded event"),ended:()=>{(0,o.logMessage)("AppNexus outstream renderer video event"),document.querySelector(`#${e}`).style.display="none"}}),i}(c.adUnitCode,t,s)}break;case l.mn:c.vastUrl=t.notify_url+"&redir="+encodeURIComponent(t.rtb.video.asset_url)}}else if(t.rtb[p.s6]){const e=t.rtb[p.s6];let r;if(t.viewability?.config.includes("dom_id=%native_dom_id%")){const e="pbjs_adid="+d+";pbjs_auc="+i.adUnitCode;r=t.viewability.config.replace("dom_id=%native_dom_id%",e)}let a=e.javascript_trackers;null==a?a=r:(0,s.O8)(a)?a=[a,r]:a.push(r),c[p.s6]={title:e.title,body:e.desc,body2:e.desc2,cta:e.ctatext,rating:e.rating,sponsoredBy:e.sponsored,privacyLink:e.privacy_link,address:e.address,downloads:e.downloads,likes:e.likes,phone:e.phone,price:e.price,salePrice:e.saleprice,clickUrl:e.link.url,displayUrl:e.displayurl,clickTrackers:e.link.click_trackers,impressionTrackers:e.impression_trackers,video:e.video,javascriptTrackers:a},e.main_img&&(c[p.s6].image={url:e.main_img.url,height:e.main_img.height,width:e.main_img.width}),e.icon&&(c[p.s6].icon={url:e.icon.url,height:e.icon.height,width:e.icon.width}),c[p.s6].ext={video:e.video,customImage1:e.image1&&{url:e.image1.url,height:e.image1.height,width:e.image1.width},customImage2:e.image2&&{url:e.image2.url,height:e.image2.height,width:e.image2.width},customImage3:e.image3&&{url:e.image3.url,height:e.image3.height,width:e.image3.width},customImage4:e.image4&&{url:e.image4.url,height:e.image4.height,width:e.image4.width},customImage5:e.image5&&{url:e.image5.url,height:e.image5.height,width:e.image5.width},customIcon1:e.icon1&&{url:e.icon1.url,height:e.icon1.height,width:e.icon1.width},customIcon2:e.icon2&&{url:e.icon2.url,height:e.icon2.height,width:e.icon2.width},customIcon3:e.icon3&&{url:e.icon3.url,height:e.icon3.height,width:e.icon3.width},customIcon4:e.icon4&&{url:e.icon4.url,height:e.icon4.height,width:e.icon4.width},customIcon5:e.icon5&&{url:e.icon5.url,height:e.icon5.height,width:e.icon5.width},customSocialIcon1:e.socialicon1&&{url:e.socialicon1.url,height:e.socialicon1.height,width:e.socialicon1.width},customSocialIcon2:e.socialicon2&&{url:e.socialicon2.url,height:e.socialicon2.height,width:e.socialicon2.width},customSocialIcon3:e.socialicon3&&{url:e.socialicon3.url,height:e.socialicon3.height,width:e.socialicon3.width},customSocialIcon4:e.socialicon4&&{url:e.socialicon4.url,height:e.socialicon4.height,width:e.socialicon4.width},customSocialIcon5:e.socialicon5&&{url:e.socialicon5.url,height:e.socialicon5.height,width:e.socialicon5.width},customTitle1:e.title1,customTitle2:e.title2,customTitle3:e.title3,customTitle4:e.title4,customTitle5:e.title5,customBody1:e.body1,customBody2:e.body2,customBody3:e.body3,customBody4:e.body4,customBody5:e.body5,customCta1:e.ctatext1,customCta2:e.ctatext2,customCta3:e.ctatext3,customCta4:e.ctatext4,customCta5:e.ctatext5,customDisplayUrl1:e.displayurl1,customDisplayUrl2:e.displayurl2,customDisplayUrl3:e.displayurl3,customDisplayUrl4:e.displayurl4,customDisplayUrl5:e.displayurl5,customSocialUrl1:e.socialurl1,customSocialUrl2:e.socialurl2,customSocialUrl3:e.socialurl3,customSocialUrl4:e.socialurl4,customSocialUrl5:e.socialurl5}}else{Object.assign(c,{width:t.rtb.banner.width,height:t.rtb.banner.height,ad:t.rtb.banner.content});try{if(t.rtb.trackers)for(let e=0;e<t.rtb.trackers[0].impression_urls.length;e++){const r=t.rtb.trackers[0].impression_urls[e],i=(0,o.createTrackPixelHtml)(r);c.ad+=i}}catch(e){(0,o.logError)("Error appending tracking pixel",e)}}return c}(e,t,r);d.mediaType=function(e){const t=e.ad_type;return t===p.G_?p.G_:t===p.s6?p.s6:p.D4}(t),i.push(d)}}}),e.debug&&e.debug.debug_info){let t="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;t=t.replace(/(<td>|<th>)/gm,"\t").replace(/(<\/td>|<\/th>)/gm,"\n").replace(/^<br>/gm,"").replace(/(<br>\n|<br>)/gm,"\n").replace(/<h1>(.*)<\/h1>/gm,"\n\n===== $1 =====\n\n").replace(/<h[2-6]>(.*)<\/h[2-6]>/gm,"\n\n*** $1 ***\n\n").replace(/(<([^>]+)>)/gim,""),(0,o.logMessage)("https://console.appnexus.com/docs/understanding-the-debug-auction"),(0,o.logMessage)(t)}return i},getUserSyncs:function(e,t,r,i,a){if(e.iframeEnabled&&(0,g.C)(r))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}];if(e.pixelEnabled){return["https://px.ads.linkedin.com/setuid?partner=appNexus"].map(e=>({type:"image",url:e}))}}};function N(e){const t={};Object.keys(e.params).forEach(t=>{const r=(0,b.vk)(t);r!==t&&(e.params[r]=e.params[t],delete e.params[t])}),t.sizes=q(e.sizes),t.primary_size=t.sizes[0],t.ad_types=[],t.uuid=e.bidId,e.params.placement_id?t.id=parseInt(e.params.placement_id,10):t.code=e.params.inv_code;const r=(0,o.getParameterByName)("ast_override_div");if((0,s.O8)(r)&&""!==r){const i=decodeURIComponent(r).split(",").find(t=>t.startsWith(`${e.adUnitCode}:`));if(i){const e=i.split(":")[1];e&&(t.force_creative_id=parseInt(e,10))}}t.allow_smaller_sizes=e.params.allow_smaller_sizes||!1,t.use_pmt_rule="boolean"==typeof e.params.use_payment_rule?e.params.use_payment_rule:"boolean"==typeof e.params.use_pmt_rule&&e.params.use_pmt_rule,t.prebid=!0,t.disable_psa=!0;const i=function(e){if(!(0,s.fp)(e.getFloor))return e.params.reserve?e.params.reserve:null;const t=e.getFloor({currency:"USD",mediaType:"*",size:"*"});if((0,s.Qd)(t)&&!isNaN(t.floor)&&"USD"===t.currency)return t.floor;return null}(e);if(i&&(t.reserve=i),e.params.position)t.position={above:1,below:2}[e.params.position]||0;else{const r=(0,a.A)(e,"mediaTypes.banner.pos")||(0,a.A)(e,"mediaTypes.video.pos");0!==r&&1!==r&&3!==r||(t.position=3===r?2:r)}e.params.traffic_source_code&&(t.traffic_source_code=e.params.traffic_source_code),e.params.private_sizes&&(t.private_sizes=q(e.params.private_sizes)),e.params.supply_type&&(t.supply_type=e.params.supply_type),e.params.pub_click&&(t.pubclick=e.params.pub_click),e.params.ext_inv_code&&(t.ext_inv_code=e.params.ext_inv_code),e.params.publisher_id&&(t.publisher_id=parseInt(e.params.publisher_id,10)),e.params.external_imp_id&&(t.external_imp_id=e.params.external_imp_id);const n=(0,f.T_)((0,f.gg)((0,a.A)(e,"ortb2Imp.ext.data.keywords")),e.params?.keywords);n.length>0&&(t.keywords=n);const d=(0,a.A)(e,"ortb2Imp.ext.gpid");d&&(t.gpid=d);const c=(0,a.A)(e,"ortb2Imp.ext.tid");if(c&&(t.tid=c),(e.mediaType===p.s6||(0,a.A)(e,`mediaTypes.${p.s6}`))&&(t.ad_types.push(p.s6),0===t.sizes.length&&(t.sizes=q([1,1])),e.nativeParams)){const r=function(e){const t={};return Object.keys(e).forEach(r=>{const i=A[r]&&A[r].serverName||A[r]||r,a=A[r]&&A[r].requiredParams;t[i]=Object.assign({},a,e[r]);if(!(i!==A.image.serverName&&i!==A.icon.serverName)&&t[i].sizes){const e=t[i].sizes;((0,s.Uu)(e)||(0,s.cy)(e)&&e.length>0&&e.every(e=>(0,s.Uu)(e)))&&(t[i].sizes=q(t[i].sizes))}i===A.privacyLink&&(t.privacy_supported=!0)}),t}(e.nativeParams);t[p.s6]={layouts:[r]}}{const r=(0,a.A)(e,`mediaTypes.${p.G_}`),i=(0,a.A)(e,"mediaTypes.video.context");t.hb_source=r&&"adpod"===i?7:1,(e.mediaType===p.G_||r)&&t.ad_types.push(p.G_),(e.mediaType===p.G_||r&&"outstream"!==i)&&(t.require_asset_url=!0),e.params.video&&(t.video={},Object.keys(e.params.video).filter(e=>I.includes(e)).forEach(r=>{switch(r){case"context":case"playback_method":let i=e.params.video[r];i=(0,s.cy)(i)?i[0]:i,t.video[r]=S[r][i];break;case"frameworks":break;default:t.video[r]=e.params.video[r]}}),e.params.video.frameworks&&(0,s.cy)(e.params.video.frameworks)&&(t.video_frameworks=e.params.video.frameworks)),r&&(t.video=t.video||{},Object.keys(r).filter(e=>C.includes(e)).forEach(e=>{switch(e){case"minduration":case"maxduration":"number"!=typeof t.video[e]&&(t.video[e]=r[e]);break;case"skip":"boolean"!=typeof t.video.skippable&&(t.video.skippable=1===r[e]);break;case"skipafter":"number"!=typeof t.video.skipoffset&&(t.video.skippoffset=r[e]);break;case"playbackmethod":if("number"!=typeof t.video.playback_method){let i=r[e];i=(0,s.cy)(i)?i[0]:i,i>=1&&i<=4&&(t.video.playback_method=i)}break;case"api":if(!t.video_frameworks&&(0,s.cy)(r[e])){const i=r[e].map(e=>{const t=4===e?5:5===e?4:e;if(t>=1&&t<=5)return t}).filter(e=>e);t.video_frameworks=i}break;case"startdelay":case"plcmt":case"placement":if("number"!=typeof t.video.context){const e=r.plcmt,i=r.placement,a=r.startdelay,s=function(e,t){if(!e)return;if(2===e){if(void 0===t)return;if(0===t)return"accompanying_content_pre_roll";if(-1===t)return"accompanying_content_mid_roll";if(-2===t)return"accompanying_content_post_roll"}else{if(3===e)return"interstitial";if(4===e)return"outstream"}}(e,a)||function(e){if(!e)return;if(2===e)return"in-banner";if(3===e)return"outstream";if(4===e)return"in-feed";if(5===e)return"intersitial"}(i)||function(e){if(void 0===e)return;if(0===e)return"pre_roll";if(-1===e)return"mid_roll";if(-2===e)return"post_roll"}(a);t.video.context=S.context[s]}}})),e.renderer&&(t.video=Object.assign({},t.video,{custom_renderer_present:!0}))}return e.params.frameworks&&(0,s.cy)(e.params.frameworks)&&(t.banner_frameworks=e.params.frameworks),(0,a.A)(e,`mediaTypes.${p.D4}`)&&t.ad_types.push(p.D4),0===t.ad_types.length&&delete t.ad_types,t}function q(e){const t=[];let r={};if((0,s.cy)(e)&&2===e.length&&!(0,s.cy)(e[0]))r.width=parseInt(e[0],10),r.height=parseInt(e[1],10),t.push(r);else if("object"==typeof e)for(let i=0;i<e.length;i++){const a=e[i];r={},r.width=parseInt(a[0],10),r.height=parseInt(a[1],10),t.push(r)}return t}function P(e){return!!e.params.user}function M(e){return!!parseInt(e.params.member,10)}function z(e){if(e.params)return!!e.params.app}function B(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function $(e){return!!e.debug}function G(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===p.LM}function L(e){let t=!1;const r=e.params,i=e.params.video;return r.frameworks&&(0,s.cy)(r.frameworks)&&(t=e.params.frameworks.includes(6)),!t&&i&&i.frameworks&&(0,s.cy)(i.frameworks)&&(t=e.params.video.frameworks.includes(6)),t}function W(e,t,r){(0,o.isEmpty)(e.video)&&(e.video={}),e.video[t]=r}function H(e,t){!function(e){try{const t=document.getElementById(e).querySelectorAll("div[id^='google_ads']");t[0]&&t[0].style.setProperty("display","none")}catch(e){}}(e.adUnitCode),function(e){try{const t=document.getElementById(e).querySelectorAll("script[id^='sas_script']");t[0].nextSibling&&"iframe"===t[0].nextSibling.localName&&t[0].nextSibling.style.setProperty("display","none")}catch(e){}}(e.adUnitCode),e.renderer.push(()=>{(t?.defaultView||window).ANOutstreamVideo.renderAd({tagId:e.adResponse.tag_id,sizes:[e.getSize().split("x")],targetId:e.adUnitCode,uuid:e.adResponse.uuid,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},V.bind(null,e))})}function V(e,t,r){e.renderer.handleVideoEvent({id:t,eventName:r})}(0,c.a$)(R),(0,i.E)("appnexusBidAdapter")}},e=>{e.O(0,[60802,44982,97247,95444,42698,12126,37769,40315,51085],()=>{return t=158,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[38793],{19648:(e,n,t)=>{var s=t(51748),i=t(10466),a=t(26665),r=t(83435),p=t(91933),o=t(41385),l=t(16169),c=t(93254),u=t(13064),d=t(13965),g=t(29708);let h={},m=null;class C{constructor(e,n){this.message=e,this.args=null==n?[]:[n]}}class f{apiVersion="1.1";static get(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.c5;if(null==this.INST){const n=e({apiName:"__gpp",apiArgs:["command","callback","parameter"],mode:c.q4});if(null==n)throw new C("GPP CMP not found");this.INST=new this(n)}return this.INST}#e;#n;#t=[];initialized=!1;constructor(e){this.cmp=e,[this.#e,this.#n]=["resolve","reject"].map(e=>n=>{for(;this.#t.length;)this.#t.pop()[e](n)})}init(e){const n=this.updateWhenReady(e);return this.initialized||(e.gppVersion!==this.apiVersion&&(0,i.logWarn)(`Unrecognized GPP CMP version: ${e.apiVersion}. Continuing using GPP API version ${this.apiVersion}...`),this.initialized=!0,m||(m=(0,g.Al)("gpp")),m.setCmpApi(this.cmp),this.cmp({command:"addEventListener",callback:(e,n)=>{null==n||n?"error"===e?.pingData?.cmpStatus?this.#n(new C('CMP status is "error"; please check CMP setup',e)):this.isCMPReady(e?.pingData||{})&&["sectionChange","signalStatus"].includes(e?.eventName)&&this.#e(this.updateConsent(e.pingData)):this.#n(new C("Received error response from CMP",e)),null==o.ad.getConsentData()||null==e?.pingData||this.isCMPReady(e.pingData)||o.ad.setConsentData(null),null!=e?.listenerId&&m?.setCmpListenerId(e?.listenerId)}})),n}refresh(){return this.cmp({command:"ping"}).then(this.init.bind(this))}updateConsent(e){return new u.U9(n=>{if(null==e||(0,i.isEmpty)(e))throw new C("Received empty response from CMP",e);const t=S(e);(0,i.logInfo)("Retrieved GPP consent from CMP:",t),o.ad.setConsentData(t),n(t)})}nextUpdate(){const e=(0,u.v6)();return this.#t.push(e),e.promise}updateWhenReady(e){return this.isCMPReady(e)?this.updateConsent(e):this.nextUpdate()}isCMPReady(e){return"ready"===e.signalStatus}}const v={iab:function(){return new u.U9(e=>e(f.get().refresh()))}};function S(e){if(null!=e?.applicableSections&&!Array.isArray(e.applicableSections)||null!=e?.gppString&&!(0,a.O8)(e.gppString)||null!=e?.parsedSections&&!(0,a.Qd)(e.parsedSections))throw new C("CMP returned unexpected value during lookup process.",e);return["usnatv1","uscav1"].forEach(n=>{e?.parsedSections?.[n]&&(0,i.logWarn)(`Received invalid section from cmp: '${n}'. Some functionality may not work as expected`,e)}),P(e)}function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{gppString:e?.gppString,applicableSections:e?.applicableSections||[],parsedSections:e?.parsedSections||{},gppData:e}}const y=(0,d.yq)({namespace:"gpp",displayName:"GPP",consentDataHandler:o.ad,parseConsentData:S,getNullConsent:()=>P(null),cmpHandlers:v,cmpEventCleanup:function(){m&&(m.removeCmpEventListener(),m=null),h={},o.ad.reset(),f.INST=null}});p.$W.getConfig("consentManagement",e=>function(e){return h=y(e),h.loadConsentData?.()?.catch?.(()=>null)}(e.consentManagement)),l.wU.before(function(e,n){return e(n.then(e=>{const n=o.ad.getConsentData();return n&&(Array.isArray(n.applicableSections)&&(0,r.J)(e,"regs.gpp_sid",n.applicableSections),(0,r.J)(e,"regs.gpp",n.gppString)),e}))}),(0,s.E)("consentManagementGpp")}},e=>{e.O(0,[57109,90010,60802,37769,40315,51085],()=>{return n=19648,e(e.s=n);var n});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[15081],{26264:(e,n,t)=>{var s=t(51748),o=t(10466),r=t(83435),a=t(26665),c=t(91933),i=t(41385),l=t(22517),p=t(16169),d=t(93254),u=t(13965),g=t(29708);let f,C,m={};const v={iab:function(e){return new Promise((n,t)=>{const s=(0,d.c5)({apiName:"__tcfapi",apiVersion:2,apiArgs:["command","version","callback","parameter"]});s||t(new Error("TCF2 CMP not found.")),s.isDirect?(0,o.logInfo)("Detected CMP API is directly accessible, calling it now..."):(0,o.logInfo)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now..."),b||(b=(0,g.Al)("tcf",()=>i.mW.getConsentData())),b.setCmpApi(s),s({command:"addEventListener",callback:function(s,r){if((0,o.logInfo)("Received a response from CMP",s),r){try{e(D(s))}catch(e){}if(!1===s.gdprApplies||"tcloaded"===s.eventStatus||"useractioncomplete"===s.eventStatus)try{null!==s.listenerId&&void 0!==s.listenerId&&b?.setCmpListenerId(s.listenerId),i.mW.setConsentData(D(s)),n()}catch(e){t(e)}}else t(Error("CMP unable to register callback function.  Please check CMP setup."))}})})}};let b=null;function D(e){if(function(){const n=e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:f,t=e&&e.tcString;return!("boolean"==typeof n&&(!0!==n||t&&(0,a.O8)(t)))}())throw Object.assign(new Error("CMP returned unexpected value during lookup process."),{args:[e]});return A(e)}function A(e){const n={consentString:e?e.tcString:void 0,vendorData:e||void 0,gdprApplies:e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:f,apiVersion:2};return e&&e.addtlConsent&&(0,a.O8)(e.addtlConsent)&&(n.addtlConsent=e.addtlConsent),n}const P=(0,u.yq)({namespace:"gdpr",displayName:"TCF",consentDataHandler:i.mW,cmpHandlers:v,parseConsentData:D,getNullConsent:()=>A(null),cmpEventCleanup:function(){b&&(b.removeCmpEventListener(),b=null),m={},i.mW.reset()}});c.$W.getConfig("consentManagement",e=>function(e){const n=e&&(e.gdpr||e.usp||e.gpp?e.gdpr:e);return null!=n?.consentData?.getTCData&&(n.consentData=n.consentData.getTCData),f=!0===n?.defaultGdprScope,C=!!n?.dsaPlatform,m=P({gdpr:n}),m.loadConsentData?.()?.catch?.(()=>null)}(e.consentManagement)),p.wU.before(function(e,n){return e(n.then(e=>{const n=i.mW.getConsentData();return n&&("boolean"==typeof n.gdprApplies&&(0,r.J)(e,"regs.ext.gdpr",n.gdprApplies?1:0),(0,r.J)(e,"user.ext.consent",n.consentString)),C&&(0,r.J)(e,"regs.ext.dsa.dsarequired",3),e}))}),(0,l.pS)({type:l.S3,name:"gdprAddtlConsent",fn:function(e,n){const t=n.gdprConsent?.addtlConsent;t&&"string"==typeof t&&(0,r.J)(e,"user.ext.ConsentedProvidersSettings.consented_providers",t)}}),(0,s.E)("consentManagementTcf")}},e=>{e.O(0,[60802,57109,90010,37769,40315,51085],()=>{return n=26264,e(e.s=n);var n});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[21829],{196:(e,t,i)=>{var r=i(51748),o=i(58928),a=i(83435),n=i(10466),s=i(26665),d=i(3516),p=i(59794),l=i(61443),c=i(10867),u=i(93448),m=i(67464),v=i(36220),g=i(62201),f=i(9201),y=i(79547),b=i(91933);const h="criteo",I="https://grid-bidder.criteo.com/openrtb_2_5/pbjs/auction/request",T=(0,l.vM)({bidderCode:h}),k="Criteo: ",x=(0,y.FE)(),C="https://static.criteo.net/js/ld/publishertag.renderer.js",S="cto_optout",E="cto_bundle",w=!0,P=(0,f.A)({context:{netRevenue:!0,ttl:60},imp:function(e,t,i){const r=e(t,i),o=t.params;r.tagid=t.adUnitCode,(0,a.J)(r,"ext",{...t.params.ext,...r.ext,rwdd:r.rwdd,floors:L(t),bidder:{publishersubid:o?.publisherSubId,zoneid:o?.zoneId,uid:o?.uid}}),delete r.rwdd,!i.fledgeEnabled&&r.ext.igs?.ae&&delete r.ext.igs.ae;if(J(t)){const e=t.params.video;void 0!==e&&(0,a.J)(r,"video",{...r.video,skip:r.video.skip||e.skip||0,placement:r.video.placement||e.placement,minduration:r.video.minduration||e.minduration,playbackmethod:r.video.playbackmethod||e.playbackmethod,startdelay:r.video.startdelay||e.startdelay||0}),(0,a.J)(r,"video.ext",{context:t.mediaTypes.video.context,playersizes:$(t?.mediaTypes?.video?.playerSize,z),plcmt:t.mediaTypes.video.plcmt,poddur:t.mediaTypes.video.adPodDurationSec,rqddurs:t.mediaTypes.video.durationRangeSec})}if(r.native&&void 0!==r.native.request){const e=JSON.parse(r.native.request);e.assets&&(1!==e.assets.length||Object.keys(e.assets[0]).length)||delete e.assets,(0,a.J)(r,"native.request_native",e),delete r.native.request}return r},request:function(e,t,i,r){let o=e(t,i,r);void 0!==r.publisherId&&(void 0!==o.app?(0,a.J)(o,"app.publisher.id",r.publisherId):(0,a.J)(o,"site.publisher.id",r.publisherId));i&&i.gdprConsent&&(0,a.J)(o,"regs.ext.gdprversion",i.gdprConsent.apiVersion);return o=x(o),o},bidResponse:function(e,t,i){i.mediaType=t?.ext?.mediatype,i.mediaType===p.s6&&void 0!==t.adm_native&&(t.adm=t.adm_native,delete t.adm_native);const r=e(t,i),{bidRequest:o}=i;r.currency=t?.ext?.cur,void 0!==t?.ext?.meta&&(0,a.J)(r,"meta",{...r.meta,...t.ext.meta});void 0!==t?.ext?.paf?.content_id&&(0,a.J)(r,"meta.paf.content_id",t.ext.paf.content_id);r.mediaType===p.G_&&(r.vastUrl=t.ext?.displayurl,o?.mediaTypes?.video?.context===v.H6&&(r.renderer=function(e){if(void 0===e.ext?.videoPlayerConfig||void 0===e.ext?.videoPlayerType)return;const t={documentResolver:(e,t,i)=>i??t},i=(t,i)=>{const r={slotid:e.id,vastUrl:e.ext?.displayurl,vastXml:e.adm,documentContext:i},o=e.ext.videoPlayerConfig;window.CriteoOutStream[e.ext.videoPlayerType].play(r,o)},r=m.A4.install({url:C,config:t});return r.setRender(i),r}(t)));return r},response:function(e,t,i,r){const o=e(t,i,r),n=i?.ext?.paf?.transmission;return o.bids.forEach(e=>{void 0!==n&&void 0!==e?.meta?.paf?.content_id?(0,a.J)(e,"meta.paf.transmission",n):delete e.meta.paf}),o}});const q={code:h,gvlid:91,supportedMediaTypes:[p.D4,p.G_,p.s6],getUserSyncs:function(e,t,i,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const{gppString:a="",applicableSections:s=[]}=o,d=(0,c.EN)(),p="criteoPrebidAdapter";if(e.iframeEnabled&&(0,u.C)(i)){const l=[];if(l.push(`origin=${p}`),l.push(`topUrl=${d.domain}`),i&&(i.gdprApplies&&l.push("gdpr="+(!0===i.gdprApplies?1:0)),i.consentString&&l.push(`gdpr_consent=${i.consentString}`)),r&&l.push(`us_privacy=${r}`),l.push(`gpp=${a}`),Array.isArray(s))for(const y of s)l.push(`gpp_sid=${y}`);const m=Math.random().toString(),v={bundle:R(E),cw:T.cookiesAreEnabled(),lsw:T.localStorageIsEnabled(),optoutCookie:R(S),origin:p,requestId:m,tld:d.domain,topUrl:d.domain,version:"10.20.0".replace(/\./g,"_")};function g(e){if(!e.data||"https://gum.criteo.com"!==e.origin)return;if(e.data.requestId!==m)return;window.removeEventListener("message",g,!0),e.stopImmediatePropagation();const t=e.data;t.optout?(A(E),U(S,!0,43200,d.domain)):(t.bundle&&U(E,t.bundle,9360,d.domain),t?.callbacks?.forEach?.(n.triggerPixel))}window.removeEventListener("message",g,!0),window.addEventListener("message",g,!0);const f=JSON.stringify(v).replace(/"/g,"%22");return[{type:"iframe",url:`https://gum.criteo.com/syncframe?${l.join("&")}#${f}`}]}if(e.pixelEnabled&&(0,u.C)(i)){const b=[];if(b.push("profile=207"),i&&(!0===i.gdprApplies&&b.push("gdprapplies=true"),i.consentString&&b.push(`gdpr=${i.consentString}`)),r&&b.push(`ccpa=${r}`),b.push(`gpp=${a}`),Array.isArray(s))for(const h of s)b.push(`gpp_sid=${h}`);return[{type:"image",url:`https://ssp-sync.criteo.com/user-sync/redirect?${b.join("&")}`}]}return[]},isBidRequestValid:e=>!(!e||!e.params||!e.params.zoneId&&!e.params.networkId)&&!(J(e)&&!function(e){let t=!0;return["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach(function(i){"placement"===i?void 0===e?.mediaTypes?.video?.[i]&&void 0===e?.params?.video?.[i]&&void 0===e?.mediaTypes?.video?.plcmt&&void 0===e?.params?.video?.plcmt&&(t=!1,(0,n.logError)("Criteo Bid Adapter: mediaTypes.video."+i+" or mediaTypes.video.plcmt is required")):void 0===e?.mediaTypes?.video?.[i]&&void 0===e?.params?.video?.[i]&&(t=!1,(0,n.logError)("Criteo Bid Adapter: mediaTypes.video."+i+" is required"))}),t}(e)),buildRequests:(e,t)=>{e.forEach(e=>{(function(e){return void 0!==e?.mediaTypes?.native})(e)&&(function(e){return!(e.nativeParams&&(e.nativeParams.image&&!0!==e.nativeParams.image.sendId||e.nativeParams.icon&&!0!==e.nativeParams.icon.sendId||e.nativeParams.clickUrl&&!0!==e.nativeParams.clickUrl.sendId||e.nativeParams.displayUrl&&!0!==e.nativeParams.displayUrl.sendId||e.nativeParams.privacyLink&&!0!==e.nativeParams.privacyLink.sendId||e.nativeParams.privacyIcon&&!0!==e.nativeParams.privacyIcon.sendId))}(e)||(0,n.logWarn)(k+"all native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, displayUrl, privacyLink, privacyIcon)"),null==e?.nativeOrtbRequest?.assets&&((0,n.logWarn)(k+"native asset requirements are missing"),(0,a.J)(e,"nativeOrtbRequest.assets",[{}])))});const i=function(e,t){const i=(0,n.parseUrl)(t?.refererInfo?.topmostLocation).search;return{url:t?.refererInfo?.page||"",debug:"1"===i.pbt_debug,noLog:"1"===i.pbt_nolog,fledgeEnabled:t.paapi?.enabled,amp:e.some(e=>"amp"===e.params.integrationMode),networkId:e.find(e=>e.params?.networkId)?.params.networkId,publisherId:e.find(e=>e.params?.pubid)?.params.pubid}}(e,t),r=function(e){let t=I;t+="?profileId=207",t+="&av="+String(37),t+="&wv="+encodeURIComponent("10.20.0"),t+="&cb="+String(Math.floor(99999999999*Math.random())),T.localStorageIsEnabled()?t+="&lsavail=1":t+="&lsavail=0";e.amp&&(t+="&im=1");e.debug&&(t+="&debug=1");e.noLog&&(t+="&nolog=1");const i=R(E);i&&(t+=`&bundle=${i}`);R(S)&&(t+="&optout=1");e.networkId&&(t+="&networkId="+e.networkId);return t}(i),o=P.toORTB({bidderRequest:t,bidRequests:e,context:i});if(o)return{method:"POST",url:r,data:o,bidRequests:e,options:{endpointCompression:_()}}},interpretResponse:(e,t)=>{if(void 0===e?.body)return[];const i=P.fromORTB({response:e.body,request:t.data}).bids||[],r=e.body?.ext?.igi?.filter(e=>(0,s.cy)(e?.igs)).flatMap(e=>e.igs);return r?.length?{bids:i,paapi:r}:i},onDataDeletionRequest:e=>{const t=R(E);t&&(A(E),(0,g.RD)("https://privacy.criteo.com/api/privacy/datadeletionrequest",null,JSON.stringify({publisherUserId:t}),{contentType:"application/json",method:"POST"}))}};function _(){try{const e=(0,o.A)(b.$W.getBidderConfig(),"criteo.gzipEnabled");if(void 0!==e){const t=String(e).toLowerCase().trim();if("true"===t||"false"===t){const e="true"===t;return(0,n.logInfo)("Criteo: Using bidder-specific gzipEnabled setting:",e),e}(0,n.logWarn)("Criteo: Invalid gzipEnabled value in bidder config:",e)}}catch(e){(0,n.logWarn)("Criteo: Error accessing bidder config:",e)}return(0,n.logInfo)("Criteo: Using default gzipEnabled setting:",w),w}function R(e){const t=T.getCookie(e),i=T.getDataFromLocalStorage(e);return t||i||void 0}function U(e,t,i,r){const o=new Date;o.setTime(o.getTime()+60*i*60*1e3);const a=`expires=${o.toUTCString()}`,n=r.split(".");for(let i=0;i<n.length;++i){const r=n.slice(n.length-i-1,n.length).join(".");try{T.setCookie(e,t,a,null,"."+r);const i=T.getCookie(e);if(i&&i===t)break}catch(e){}}T.setDataInLocalStorage(e,t)}function A(e){T.setCookie(e,"",0),T.removeDataFromLocalStorage(e)}function $(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e?Array.isArray(e[0])?e.map(e=>t(e)):[t(e)]:[]}function z(e){return e[0]+"x"+e[1]}function J(e){return void 0!==e?.mediaTypes?.video}function L(e){try{const t={},i=function(e){if(e.getFloor)return e.getFloor;if(e.params.bidFloor&&e.params.bidFloorCur)try{const t=parseFloat(e.params.bidFloor);return()=>({currency:e.params.bidFloorCur,floor:t})}catch{}}(e);if(i){if(e.mediaTypes?.banner){t.banner={};$(e?.mediaTypes?.banner?.sizes).forEach(r=>{t.banner[z(r).toString()]=i.call(e,{size:r,mediaType:p.D4})})}if(e.mediaTypes?.video){t.video={};$(e?.mediaTypes?.video?.playerSize).forEach(r=>{t.video[z(r).toString()]=i.call(e,{size:r,mediaType:p.G_})})}return e.mediaTypes?.native&&(t.native={},t.native["*"]=i.call(e,{size:"*",mediaType:p.s6})),t}}catch(e){(0,n.logError)("Could not parse floors from Prebid: "+e)}}(0,d.a$)(q),(0,r.E)("criteoBidAdapter")}},e=>{e.O(0,[60802,58498,15889,37769,40315,51085],()=>{return t=196,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[70931],{46938:(e,t,o)=>{var n=o(51748),r=o(10466),i=o(62201),a=o(10867),c=o(32592),s=o(61443),d=o(70736),l=o(41385);const p="criteo",g=(0,s.vM)({moduleType:d.fW,moduleName:p}),u="cto_bidid",m="cto_bundle",b="html5",I="cookie",y=new Date(0).toString(),f=new Date((0,r.timestamp)()+33696e6).toString();function S(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const o=(0,r.parseUrl)(e,{noDecodeWholeURL:!0});return t?`${o.hostname}`:`${o.protocol}://${o.hostname}${o.port?":"+o.port:""}/`}function h(e,t){return e?.storage?.type===b?g.getDataFromLocalStorage(t):e?.storage?.type===I?g.getCookie(t):g.getCookie(t)||g.getDataFromLocalStorage(t)}function C(e,t,o,n){t&&o&&(e?.storage?.type===b?g.setDataInLocalStorage(t,o):(e?.storage?.type===I||g.setDataInLocalStorage(t,o),U(t,o,f,n,!0)))}function U(e,t,o,n,r){const i=n.split(".");for(let n=0;n<i.length;++n){const a=i.slice(i.length-n-1,i.length).join(".");try{if(g.setCookie(e,t,o,null,"."+a),r){const o=g.getCookie(e);if(o&&o===t)break}}catch(e){}}}function v(e,t,o){const n=(void 0===e?.storage?.type||e?.storage?.type===I)&&g.cookiesAreEnabled(),c=(void 0===e?.storage?.type||e?.storage?.type===b)&&g.localStorageIsEnabled(),s=S((0,a.EN)().page),d=S(document.location.href,!0),p="undefined"!=typeof criteo_pubtag,f=function(e,t,o,n,r,i,a){let c="https://gum.criteo.com/sid/json?origin=prebid"+(e?"&topUrl="+encodeURIComponent(e):"")+(t?"&domain="+encodeURIComponent(t):"")+(o?"&bundle="+encodeURIComponent(o):"")+(n?"&info="+encodeURIComponent(n):"")+(r?"&cw=1":"")+(a?"&pbt=1":"")+(i?"&lsw=1":"");const s=l.t6.getConsentData();s&&(c+=`&us_privacy=${encodeURIComponent(s)}`);const d=l.mW.getConsentData();d&&(c=c+""+(d.consentString?"&gdprString="+encodeURIComponent(d.consentString):""),c=c+"&gdpr="+(!0===d.gdprApplies?1:0));const p=l.ad.getConsentData();return p&&(c=c+""+(p.gppString?"&gpp="+encodeURIComponent(p.gppString):""),c=c+""+(p.applicableSections?"&gpp_sid="+encodeURIComponent(p.applicableSections):"")),c}(s,d,t.bundle,t.dnaBundle,n,c,p),h={success:t=>{const n=JSON.parse(t);if(n.pixels&&n.pixels.forEach(t=>function(e,t,o){o.writeBundleInStorage&&o.bundlePropertyName&&o.storageKeyName?(0,i.RD)(o.pixelUrl,{success:n=>{if(n){const r=JSON.parse(n);r&&r[o.bundlePropertyName]&&C(e,o.storageKeyName,r[o.bundlePropertyName],t)}},error:e=>{(0,r.logError)("criteoIdSystem: unable to sync user id",e)}},void 0,{method:"GET",withCredentials:!0}):(0,r.triggerPixel)(o.pixelUrl)}(e,d,t)),n.acwsUrl){("string"==typeof n.acwsUrl?[n.acwsUrl]:n.acwsUrl).forEach(e=>(0,r.triggerPixel)(e))}else n.bundle&&C(e,m,n.bundle,d);if(n.bidId){C(e,u,n.bidId,d);const t={criteoId:n.bidId};o(t)}else U(a=u,"",y,d,!0),g.removeDataFromLocalStorage(a),o();var a},error:e=>{(0,r.logError)("criteoIdSystem: unable to sync user id",e),o()}};(0,i.RD)(f,h,void 0,{method:"GET",contentType:"application/json",withCredentials:!0})}const D={name:p,gvlid:91,decode:e=>e,getId(e){const t=function(e){return{bundle:h(e,m),dnaBundle:h(e,"cto_dna_bundle"),bidId:h(e,u)}}(e);return{id:t.bidId?{criteoId:t.bidId}:void 0,callback:o=>v(e,t,o)}},eids:{criteoId:{source:"criteo.com",atype:1}}};(0,c.bz)("userId",D),(0,n.E)("criteoIdSystem")}},e=>{e.O(0,[60802,37769,40315,51085],()=>{return t=46938,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[86388],{72355:(e,t,r)=>{var i=r(51748),n=r(83367),a=r(10466),s=r(58928),d=r(83435),u=r(43958),o=r(91933),c=r(3516),p=r(59794),g=r(93448);const l={code:"digitalMatter",gvlid:1345,supportedMediaTypes:[p.D4],aliases:["dichange","digitalmatter"],bidParameters:["accountId","siteId"],isBidRequestValid:function(e){return"object"==typeof e.params&&(t=e,(0,s.A)(t,"mediaTypes.banner")?!(!e.params.accountId||!e.params.siteId):((0,a.logWarn)("Invalid bid request: missing required mediaType - banner"),!1));var t},buildRequests:function(e,t){const r=t.ortb2||{},i=r.site,c=r?.source?.tid,{user:p}=r||{};i.page||(i.page=t.refererInfo.page);const g=function(e){let t=e.dnt;t||(t=(0,n.l)()?1:0);const{innerWidth:r,innerHeight:i}=(0,u.Ot)();return{w:e.w||r,h:e.h||i,ua:e.ua||navigator.userAgent,dnt:t,language:e.language||navigator.language}}(r.device),l=m(e,"ortb2.source.ext.schain"),b=m(e,"userIdAsEids"),f=o.$W.getConfig("currency"),h=f&&[f],y=e.map((e,t)=>{const{accountId:r,siteId:i}=e.params,n=(0,s.A)(e,"mediaTypes.banner"),d=(0,s.A)(e,"mediaTypes.banner.pos")??0;return{id:e.adUnitCode,bidId:e.bidId,accountId:r,adUnitCode:e.adUnitCode,siteId:i,banner:{pos:d,topframe:(0,a.inIframe)()?0:1,format:n.sizes.map(e=>({w:e[0],h:e[1]}))},sizes:(0,a.parseSizesInput)(n.sizes)}}),I={id:t.bidderRequestId,tid:c,site:i,device:g,user:p,cur:h,imp:y,test:o.$W.getConfig("debug")?1:0,tmax:t.timeout,start:t.auctionStart,ext:{prebid:{targeting:{includewinners:!0,includebidderkeys:!1}}}};l&&(0,d.J)(I,"source.ext.schain",l),b&&(0,d.J)(I,"user.ext.eids",b),void 0!==(0,s.A)(t,"gdprConsent.gdprApplies")&&((0,d.J)(I,"user.ext.consent",t.gdprConsent.consentString),(0,d.J)(I,"regs.ext.gdpr",1&t.gdprConsent.gdprApplies));return{method:"POST",url:"https://adx.digitalmatter.services/openrtb2/auction",data:JSON.stringify(I)}},interpretResponse:function(e){const t=e.body||e,{cur:r}=t,i=[];return t&&t.bids&&Array.isArray(t.bids)&&t.bids.forEach(e=>{const t={requestId:e.bidid,adomain:e.adomain,cpm:e.cpm,currency:r,netRevenue:!0,ttl:e.ttl||300,creativeId:e.creativeid,width:e.width,height:e.height,dealId:e.dealid,ad:e.ad,meta:e.meta};i.push(t)}),i},getUserSyncs:function(e,t,r,i,n){if(b)return[];const a=[];return(0,g.C)(r)&&function(e){return!e||!Array.isArray(e.applicableSections)||e.applicableSections.every(e=>"number"==typeof e&&e<=5)}(n)&&t.forEach(t=>{if(t.body.ext&&t.body.ext.usersync)try{t.body.ext.usersync.forEach(t=>{const r=t.url,i=t.type;r&&("image"!==i&&"redirect"!==i||!e.pixelEnabled?"iframe"===i&&e.iframeEnabled&&a.push({type:"iframe",url:r}):a.push({type:"image",url:r}))})}catch(e){}}),a}},b=!1;function m(e,t){for(let r,i=0;i<e.length;i++)if(r=(0,s.A)(e[i],t),r)return r}(0,c.a$)(l),(0,i.E)("digitalMatterBidAdapter")}},e=>{e.O(0,[60802,37769,40315,51085],()=>{return t=72355,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[99301],{83340:(n,e,s)=>{var t=s(51748),a=s(91933),l=s(31997);let p=!1;a.$W.getConfig("consentManagement",n=>{null==n?.consentManagement?.gpp||p||((0,l.l)("usnat",[7]),p=!0)}),(0,t.E)("gppControl_usnat")}},n=>{n.O(0,[40082,60802,37769,40315,51085],()=>{return e=83340,n(n.s=e);var e});n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[27534],{37829:(n,e,t)=>{var s=t(51748),r=t(91933),o=t(31997),i=t(83435),a=t(10466);const l={Version:0,Gpc:0,SharingNotice:0,SaleOptOutNotice:0,SharingOptOutNotice:0,TargetedAdvertisingOptOutNotice:0,SensitiveDataProcessingOptOutNotice:0,SensitiveDataLimitUseNotice:0,SaleOptOut:0,SharingOptOut:0,TargetedAdvertisingOptOut:0,SensitiveDataProcessing:12,KnownChildSensitiveDataConsents:2,PersonalDataConsents:0,MspaCoveredTransaction:0,MspaOptOutOptionMode:0,MspaServiceProviderMode:0};function u(n){let{nullify:e=[],move:t={},fn:s}=n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;return t=Object.fromEntries(Object.entries(t).map(n=>{let[e,t]=n;return[e,Object.fromEntries(Object.entries(t).map(n=>{let[e,t]=n;return[e,Array.isArray(t)?t:[t]]}).map(n=>{let[e,t]=n;return[--e,t.map(n=>--n)]}))]})),function(n){const o=Object.fromEntries(Object.entries(r).map(e=>{let[s,r]=e,o=null;if(r>0){if(o=Array(r).fill(null),Array.isArray(n[s])){const e=t[s]||{},i=[];n[s].forEach((n,t)=>{const[s,a]=e.hasOwnProperty(t)?[e[t],!0]:[[t],!1];s.forEach(e=>{e<r&&!i.includes(e)&&(o[e]=n,a&&i.push(e))})})}}else null!=n[s]&&(o=Array.isArray(n[s])?null:n[s]);return[s,o]}));return e.forEach(n=>(0,i.J)(o,n,null)),s&&s(n,o),o}}function c(n,e){e.KnownChildSensitiveDataConsents=0===n.KnownChildSensitiveDataConsents?[0,0]:[1,1]}const p={7:n=>n,8:u({move:{SensitiveDataProcessing:{1:9,2:10,3:8,4:[1,2],5:12,8:3,9:4}},fn(n,e){n.KnownChildSensitiveDataConsents.some(n=>0!==n)&&(e.KnownChildSensitiveDataConsents=[1,1])}}),9:u({fn:c}),10:u({fn:c}),11:u({move:{SensitiveDataProcessing:{3:4,4:5,5:3}},fn:c}),12:u({fn(n,e){const t=n.KnownChildSensitiveDataConsents;let s;s=t.some(n=>0!==n)?2===t[1]&&2===t[2]?[2,1]:[1,1]:[0,0],e.KnownChildSensitiveDataConsents=s}})},f={8:"usca",9:"usva",10:"usco",11:"usut",12:"usct"},O=(()=>{const n=Object.keys(f).map(Number);return function(){let{sections:e={},sids:t=n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.map(n=>{const t=(0,a.prefixLog)(`Cannot set up MSPA controls for SID ${n}:`),s=e[n]||{},r=s.normalizeAs||n;if(!p.hasOwnProperty(r))return t.logError(`no normalization rules are known for SID ${r}`),null;const o=s.name||f[n];return"string"!=typeof o?(t.logError("cannot determine GPP section name"),null):[o,[n],p[r]]}).filter(n=>null!=n)}})(),m=[];r.$W.getConfig("consentManagement",n=>{const e=n.consentManagement?.gpp;if(e){for(;m.length;)m.pop()();O(e?.mspa||{}).forEach(n=>{let[e,t,s]=n;return m.push((0,o.l)(e,t,s))})}}),(0,s.E)("gppControl_usstates")}},n=>{n.O(0,[40082,60802,37769,40315,51085],()=>{return e=37829,n(n.s=e);var e});n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[4584],{20543:(t,e,o)=>{var n=o(51748),r=o(52819),i=o(63006),a=o(91933),u=o(11418),c=o(32592),s=o(10466),d=o(83435),l=o(58928);let g={},f=!1;function p(t){return(0,r.eu)(t)}const m=t=>(a.$W.getConfig("gptPreAuction")||{}).mcmEnabled?t.replace(/(^\/\d*),\d*\//,"$1/"):t,b=function(t,e){const o=(t=>{const{customGptSlotMatching:e}=g;if(!(0,s.isGptPubadsDefined)())return;const o=t.reduce((t,e)=>(t[e.code]=t[e.code]||[],t[e.code].push(e),t),{}),n={};return window.googletag.pubads().getSlots().forEach(t=>{const r=Object.keys(o).find(e?e(t):(0,s.isAdUnitCodeMatchingSlot)(t));if(r){const e=n[r]=t.getAdUnitPath(),i={name:"gam",adslot:m(e)};o[r].forEach(t=>{(0,d.J)(t,"ortb2Imp.ext.data.adserver",Object.assign({},t.ortb2Imp?.ext?.data?.adserver,i))})}}),n})(e),{useDefaultPreAuction:n,customPreAuction:r}=g;e.forEach(t=>{t.ortb2Imp=t.ortb2Imp||{},t.ortb2Imp.ext=t.ortb2Imp.ext||{},t.ortb2Imp.ext.data=t.ortb2Imp.ext.data||{};const e=t.ortb2Imp.ext,i=(0,l.A)(e,"data.adserver.adslot");if(e.gpid)return;let a;r?a=r(t,i,o?.[t.code]):n?a=((t,e,o)=>{if((0,s.isGptPubadsDefined)()){var n=window.googletag.pubads().getSlots().filter(t=>t.getAdUnitPath()===o);if(0!==n.length)return 1===n.length?e:`${e}#${t.code}`}})(t,i,o?.[t.code]):(0,s.logWarn)("Neither customPreAuction, defaultPreAuction and gpid were specified"),a&&(e.gpid=a)});for(var i=arguments.length,a=new Array(i>2?i-2:0),u=2;u<i;u++)a[u-2]=arguments[u];return t.call(undefined,e,...a)},h=(t,e)=>{const o=function(t){const e={};return r.Cn.forEach(o=>{const n=t.flatMap(t=>t).filter(t=>t.taxonomy===o).map(t=>t.values);e[o]=n.length?n.reduce((t,e)=>t.filter(t=>e.includes(t))):[],e[o]={values:e[o]}}),e}(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.n.index;return t.map(t=>e.getAuction({auctionId:t})?.getFPD()?.global).map(p).filter(t=>t)}(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.n;return Object.values(t).flatMap(t=>Object.entries(t)).filter(t=>t[0]===u.xS.AD_ID||t[0].startsWith(u.xS.AD_ID+"_")).flatMap(t=>t[1]).map(t=>e.findBidByAdId(t)?.auctionId).filter(t=>null!=t).filter(s.uniques)}(e)));window.googletag.setConfig&&window.googletag.setConfig({pps:{taxonomies:o}}),t(e)},A=t=>{g=(0,s.pick)(t,["enabled",t=>!1!==t,"customGptSlotMatching",t=>"function"==typeof t&&t,"customPreAuction",t=>"function"==typeof t&&t,"useDefaultPreAuction",t=>t??!0]),g.enabled?f||((0,c.Yn)("makeBidRequests").before(b),(0,c.Yn)("targetingDone").after(h),f=!0):((0,s.logInfo)("GPT Pre-Auction: Turning off module"),g={},(0,c.Yn)("makeBidRequests").getHooks({hook:b}).remove(),(0,c.Yn)("targetingDone").getHooks({hook:h}).remove(),f=!1)};a.$W.getConfig("gptPreAuction",t=>A(t.gptPreAuction)),A({}),(0,n.E)("gptPreAuction")}},t=>{t.O(0,[33005,60802,37769,40315,51085],()=>{return e=20543,t(t.s=e);var e});t.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[46041],{21800:(d,e,n)=>{var o=n(51748),s=n(32592),i=n(10466),t=n(26665);const r={name:"pubProvidedId",gvlid:n(41385).B1,decode(d){const e=d?{pubProvidedId:d}:void 0;return(0,i.logInfo)("PubProvidedId: Decoded value "+JSON.stringify(e)),e},getId(d){const e=d&&d.params||{};let n=[];return(0,t.cy)(e.eids)&&(n=n.concat(e.eids)),"function"==typeof e.eidsFunction&&(n=n.concat(e.eidsFunction())),{id:n}}};(0,s.bz)("userId",r),(0,o.E)("pubProvidedIdSystem")}},d=>{d.O(0,[60802,37769,40315,51085],()=>{return e=21800,d(d.s=e);var e});d.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[62711],{52326:(e,t,r)=>{var i=r(51748),n=r(9201),o=r(47772),s=r(3516),a=r(91933),d=r(59794),c=r(67464),p=r(10466),u=r(58928),l=r(83435),m=r(26665),x=r(93819),g=r(29077);const b="https://video-outstream.rubiconproject.com/apex-2.2.1.js";let f=a.$W.getConfig("rubicon")||{};a.$W.getConfig("rubicon",e=>{(0,p.mergeDeep)(f,e.rubicon)});let y={};var h={1:"468x60",2:"728x90",5:"120x90",7:"125x125",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",42:"2x4",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",85:"300x120",90:"548x150",94:"970x310",95:"970x100",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",152:"1000x250",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",221:"1x1",229:"320x180",230:"2000x1400",232:"580x400",234:"6x6",251:"2x2",256:"480x820",257:"400x600",258:"500x200",259:"998x200",261:"480x480",264:"970x1000",265:"1920x1080",274:"1800x200",278:"320x500",282:"320x400",288:"640x380",484:"720x1280",524:"1x2",548:"500x1000",550:"980x480",552:"300x200",558:"640x640",562:"300x431",564:"320x431",566:"320x300",568:"300x150",570:"300x125",572:"250x350",574:"620x891",576:"610x877",578:"980x552",580:"505x656",622:"192x160",632:"1200x450",634:"340x450",680:"970x570",682:"300x240",684:"970x550",686:"300x210",688:"300x220",690:"970x170",710:"600x250",712:"340x430"};(0,p._each)(h,(e,t)=>{h[e]=t});const _=(0,n.A)({request(e,t,r,n){const{bidRequests:o}=n,s=e(t,r,n);var d;s.cur=["USD"],s.test=a.$W.getConfig("debug")?1:0,(0,l.J)(s,"ext.prebid.cache",{vastxml:{returnCreative:!0===f.returnVast}}),(0,l.J)(s,"ext.prebid.bidders",{rubicon:{integration:f.int_type||"pbjs"}}),(0,l.J)(s,"ext.prebid.targeting.pricegranularity",{ranges:{low:[{max:5,increment:.5}],medium:[{max:20,increment:.1}],high:[{max:20,increment:.01}],auto:[{max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}],dense:[{max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}],custom:(d=a.$W).getConfig("customPriceBucket")&&d.getConfig("customPriceBucket").buckets}[d.getConfig("priceGranularity")]});const c=(0,i.m)().installedModules;!c||c.length&&-1===c.indexOf("rubiconAnalyticsAdapter")||(0,l.J)(s,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),function(e,t,r){let i={};const n=(0,x.D)(r,...t.map(e=>e.params.keywords));t.forEach(t=>{const r={user:{ext:{data:{...t.params.visitor}}},site:{ext:{data:{...t.params.inventory}}}},n=e.imp.find(e=>e.ext?.prebid?.bidder?.rubicon?.video?.language);n&&(r.site.content={language:n.ext?.prebid?.bidder?.rubicon?.video?.language}),i=(0,p.mergeDeep)(i,t.ortb2||{},r);const o=a.$W.getConfig("user.id");i.user.id=i.user.id||o}),(0,p.mergeDeep)(e,i),n&&n.length&&(0,l.J)(e,"site.keywords",n.join(","));delete e?.ext?.prebid?.storedrequest}(s,o,r.ortb2),delete s?.ext?.prebid?.storedrequest,!0===f.disableFloors&&delete s.ext.prebid.floors;return o.filter(e=>"object"==typeof e.floorData).length>0&&(s.ext.prebid.floors={enabled:!1}),s},imp(e,t,r){const i=R(t);if(i.includes(d.D4)&&1===i.length)return;const n=e(t,r);return n.id=t.adUnitCode,delete n.banner,"atf"===t.params.position&&n.video&&(n.video.pos=1),"btf"===t.params.position&&n.video&&(n.video.pos=3),delete n.ext?.prebid?.storedrequest,!0===t.params.bidonmultiformat&&i.length>1&&(0,l.J)(n,"ext.prebid.bidder.rubicon.formats",i),function(e,t){"USD"!==t.bidfloorcur&&(delete t.bidfloor,delete t.bidfloorcur);if(!t.bidfloor){const r=parseFloat((0,u.A)(e,"params.floor"));isNaN(r)||(t.bidfloor=r,t.bidfloorcur="USD")}}(t,n),n.id=y[n.id]?n.id+y[n.id]++:(y[n.id]=2,n.id),n},bidResponse(e,t,r){const i=e(t,r);i.meta.mediaType=(0,u.A)(t,"ext.prebid.type");const{bidRequest:n}=r,[o,s]="outstream"===n.mediaTypes.video?.context?$(n,d.G_):[void 0,void 0];return i.width=t.w||o||i.playerWidth||0,i.height=t.h||s||i.playerHeight||0,i.mediaType===d.G_&&"outstream"===n.mediaTypes.video.context&&(i.renderer=function(e){const t=c.A4.install({id:e.adId,url:f.rendererUrl||b,config:f.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{t.setRender(j)}catch(e){(0,p.logWarn)("Prebid Error calling setRender on renderer",e)}return t}(i)),(0,u.A)(t,"ext.bidder.rp.advid")&&(0,l.J)(i,"meta.advertiserId",t.ext.bidder.rp.advid),i},context:{netRevenue:!1!==f.netRevenue,ttl:360},processors:o.m}),v={code:"rubicon",gvlid:52,supportedMediaTypes:[d.D4,d.G_,d.s6],isBidRequestValid:function(e){let t=!0;if("object"!=typeof e.params)return!1;for(let t=0,r=["accountId","siteId","zoneId"];t<r.length;t++)if(e.params[r[t]]=parseInt(e.params[r[t]]),isNaN(e.params[r[t]]))return(0,p.logError)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;const r=R(e,!0);if(!r.length)return!1;r.includes(d.G_)&&(t=function(e){let t=!0;const r=Object.prototype.toString.call([]),i=Object.prototype.toString.call(0);var n={mimes:r,protocols:r,linearity:i};return Object.keys(n).forEach(function(r){Object.prototype.toString.call((0,u.A)(e,"mediaTypes.video."+r))!==n[r]&&(t=!1,(0,p.logError)("Rubicon: mediaTypes.video."+r+" is required and must be of type: "+n[r]))}),t}(e));const i=[d.D4,d.s6].filter(e=>r.includes(e)).length>0;return i?t&&i:t},buildRequests:function(e,t){let r=[];const i=[];let n;if(n=e.filter(e=>{const t=R(e)||[],{length:r}=t,{bidonmultiformat:i,video:n}=e.params||{};return 1===r&&(t.includes(d.G_)||t.includes(d.s6))||2===r&&!t.includes(d.D4)||n&&t.includes(d.G_)||i&&(t.includes(d.G_)||t.includes(d.s6))}),n&&n.length){const e=_.toORTB({bidRequests:n,bidderRequest:t});C(),i.push({method:"POST",url:`https://${f.videoHost||"prebid-server"}.rubiconproject.com/openrtb2/auction`,data:e,bidRequest:n})}const o=e.filter(e=>{const t=R(e)||[],{bidonmultiformat:r,video:i}=e.params||{};return t.includes(d.D4)&&(1===t.length||r||!r&&!i||!r&&i&&!t.includes(d.G_))});if(!0!==f.singleRequest)r=i.concat(o.map(e=>{const r=v.createSlotParams(e,t);return{method:"GET",url:`https://${f.bannerHost||"fastlane"}.rubiconproject.com/a/api/fastlane.json`,data:v.getOrderedParams(r).reduce((e,t)=>{const i=r[t];return(0,m.O8)(i)&&""!==i||(0,m.Et)(i)?`${e}${O(t,i)}&`:e},"")+`slots=1&rand=${Math.random()}`,bidRequest:e}}));else{const e=o.reduce((e,t)=>((e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e),{}),n=10;r=i.concat(Object.keys(e).reduce((r,i)=>(function(e,t){const r=[];for(let i=0;i<e.length;i+=t)r.push(e.slice(i,i+t));return r}(e[i],n).forEach(e=>{const i=v.combineSlotUrlParams(e.map(e=>v.createSlotParams(e,t)));r.push({method:"GET",url:`https://${f.bannerHost||"fastlane"}.rubiconproject.com/a/api/fastlane.json`,data:v.getOrderedParams(i).reduce((e,t)=>{const r=i[t];return(0,m.O8)(r)&&""!==r||(0,m.Et)(r)?`${e}${O(t,r)}&`:e},"")+`slots=${e.length}&rand=${Math.random()}`,bidRequest:e})}),r),[]))}return r},getOrderedParams:function(e){const t=/^tg_v/,r=/^tg_i/,i=/^eid_|^tpid_/,n=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","gpp","gpp_sid","rp_schain"].concat(Object.keys(e).filter(e=>i.test(e))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter(e=>t.test(e))).concat(Object.keys(e).filter(e=>r.test(e))).concat(["tk_flint","x_source.tid","l_pb_bid_id","p_screen_res","o_cdep","rp_floor","rp_secure","tk_user_key"]);return n.concat(Object.keys(e).filter(e=>-1===n.indexOf(e)))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];const t=e.reduce(function(t,r,i){return Object.keys(r).forEach(function(n){t.hasOwnProperty(n)||(t[n]=new Array(e.length)),t[n].splice(i,1,r[n])}),t},{}),r=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(t).forEach(function(e){const i=t[e].join(";"),n=i.match(r);t[e]=n?n[1]:i}),t},createSlotParams:function(e,t){e.startTime=(new Date).getTime();const r=e.params,i=$(e,"banner"),[n,o]=r.latLong||[],s={account_id:r.accountId,site_id:r.siteId,zone_id:r.zoneId,size_id:i[0],alt_size_ids:i.slice(1).join(",")||void 0,rp_floor:(r.floor=parseFloat(r.floor))>=.01?r.floor:void 0,rp_secure:"1",tk_flint:`${f.int_type||"pbjs_lite"}_v10.20.0`,"x_source.tid":t.ortb2?.source?.tid,"x_imp.ext.tid":e.ortb2Imp?.ext?.tid,l_pb_bid_id:e.bidId,o_cdep:e.ortb2?.device?.ext?.cdep,ip:e.ortb2?.device?.ip,ipv6:e.ortb2?.device?.ipv6,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:r.userId,"p_geo.latitude":isNaN(parseFloat(n))?void 0:parseFloat(n).toFixed(4),"p_geo.longitude":isNaN(parseFloat(o))?void 0:parseFloat(o).toFixed(4),"tg_fl.eid":e.code,rf:A(e,t)};if("function"==typeof e.getFloor&&!f.disableFloors){let t;try{t=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,p.logError)("Rubicon: getFloor threw an error: ",e)}s.rp_hard_floor=(0,m.Qd)(t)&&"USD"===t.currency&&!isNaN(parseInt(t.floor))?t.floor:void 0}!0===r.bidonmultiformat&&(0,u.A)(e,"mediaTypes")&&Object.keys(e.mediaTypes).length>1&&(s.p_formats=Object.keys(e.mediaTypes).join(","));const c={1:"atf",3:"btf"}[(0,u.A)(e,"mediaTypes.banner.pos")]||"";s.p_pos="atf"===r.position||"btf"===r.position?r.position:c;const l=a.$W.getConfig("user.id");l&&(s.ppuid=l),"number"==typeof e?.ortb2?.site?.mobile&&(s["p_site.mobile"]=e.ortb2.site.mobile),e?.ortb2?.user?.ext?.eids&&e.ortb2.user.ext.eids.forEach(e=>{let{source:t,uids:r=[],inserter:i,matcher:n,mm:o,ext:a={}}=e;try{const e=r[0];if(!e)return;const a=e=>[e.id,e.atype||"","",i||"",n||"",o||"",e?.ext?.rtiPartner||e?.ext?.rtipartner||""].join("^"),d=a(e);if(s[`eid_${t}`]=d,!s.ppuid){const e=r.find(e=>"ppuid"===e.ext?.stype);e?.id&&(s.ppuid=e.id)}}catch(e){(0,p.logWarn)("Rubicon: error reading eid:",{source:t,uids:r},e)}}),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(s.gdpr=Number(t.gdprConsent.gdprApplies)),s.gdpr_consent=t.gdprConsent.consentString),t.uspConsent&&(s.us_privacy=encodeURIComponent(t.uspConsent)),t.gppConsent?.gppString&&(s.gpp=t.gppConsent.gppString,s.gpp_sid=t.gppConsent?.applicableSections?.toString()),s.rp_maxbids=t.bidLimit,function(e,t,r){const i={user:{ext:{data:{...e.params.visitor}}},site:{ext:{data:{...e.params.inventory}}}};e.params.keywords&&(i.site.keywords=(0,m.cy)(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);const n=(0,p.mergeDeep)({},e.ortb2||{},i),o=(0,u.A)(e.ortb2Imp,"ext")||{},s=(0,u.A)(e.ortb2Imp,"ext.data")||{},a=(0,u.A)(e,"ortb2Imp.ext.gpid"),c=(0,u.A)(n,"regs.ext.dsa"),l={user:[4],site:[1,2,5,6,7]},x={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},g=function(e,t,r){return"data"===t&&Array.isArray(e)?e.filter(e=>e.segment&&(0,u.A)(e,"ext.segtax")&&l[r]&&-1!==l[r].indexOf((0,u.A)(e,"ext.segtax"))).map(e=>{const t=e.segment.filter(e=>e.id).reduce((e,t)=>(e.push(t.id),e),[]);return t.length>0?t.toString():""}).toString():("object"!=typeof e||Array.isArray(e))&&void 0!==e?Array.isArray(e)?e.filter(e=>"object"!=typeof e&&void 0!==e||((0,p.logWarn)("Rubicon: Filtered value: ",e,"for key",t,": Expected value to be string, integer, or an array of strings/ints"),!1)).map(e=>e.toString()).toString():e.toString():void 0},b=function(e,t,i){let n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const o=g(e,i,t),s=x[i]&&n?`${x[i]}`:"data"===i?`${x[t]}iab`:`${x[t]}${i}`;r[s]=r[s]?r[s].concat(",",o):o};if(t===d.D4){["site","user"].forEach(e=>{Object.keys(n[e]).forEach(t=>{"site"===e&&"content"===t&&n[e][t].data?b(n[e][t].data,e,"data"):"ext"!==t?b(n[e][t],e,t):n[e][t].data&&Object.keys(n[e].ext.data).forEach(t=>{b(n[e].ext.data[t],e,t,!1)})})}),Object.keys(s).forEach(e=>{"adserver"!==e?b(s[e],"site",e):"gam"===s[e].name&&b(s[e].adslot,name,e)}),a&&(r.p_gpid=a),c&&Object.keys(c).length&&(0,p.pick)(c,["dsainfo",e=>{r.dsainfo=e},"dsarequired",e=>{r.dsarequired=e},"pubrender",e=>{r.dsapubrender=e},"datatopub",e=>{r.dsadatatopubs=e},"transparency",e=>{Array.isArray(e)&&e.length&&(r.dsatransparency=e.reduce((e,t)=>{const r=t.domain||"";if(!r)return e;const i=t.dsaparams||t.params;return Array.isArray(i)&&0!==i.length?(e&&(e+="~~"),e+=`${r}~${i.join("_")}`):e},""))}]),r["tg_i.pbadslot"]&&delete r["tg_i.dfp_ad_unit_code"];const e=(0,u.A)(n,"device.sua");e&&!1!==f.chEnabled&&(0,p.pick)(e,["architecture",e=>{r.m_ch_arch=e},"bitness",e=>{r.m_ch_bitness=e},"browsers",e=>{if(!Array.isArray(e))return;const[t,i]=e.reduce((e,t)=>(e[0].push(`"${t?.brand}"|v="${t?.version?.[0]}"`),t?.version?.length>1&&e[1].push(`"${t?.brand}"|v="${t?.version?.join?.(".")}"`),e),[[],[]]);r.m_ch_ua=t?.join?.(","),r.m_ch_full_ver=i?.join?.(",")},"mobile",e=>{r.m_ch_mobile=`?${e}`},"model",e=>{r.m_ch_model=e},"platform",e=>{r.m_ch_platform=e?.brand,r.m_ch_platform_ver=e?.version?.join?.(".")}])}else Object.keys(o).length&&(0,p.mergeDeep)(r.imp[0].ext,o),a&&(r.imp[0].ext.gpid=a),(0,p.mergeDeep)(r,n)}(e,d.D4,s),!0===a.$W.getConfig("coppa")&&(s.coppa=1);const x=e?.ortb2?.source?.ext?.schain;return x&&S(x)&&(s.rp_schain=v.serializeSupplyChain(x)),s},serializeSupplyChain:function(e){if(!S(e))return"";const{ver:t,complete:r,nodes:i}=e;return`${t},${r}!${v.serializeSupplyChainNodes(i)}`},serializeSupplyChainNodes:function(e){const t=["asi","sid","hp","rid","name","domain"];return e.map(e=>t.map(t=>encodeURIComponent(e[t]||"")).join(",")).join("!")},interpretResponse:function(e,t){e=e.body;const{data:r}=t;if(!e||"object"!=typeof e)return[];if(e.seatbid){const t=(0,u.A)(e,"ext.errors.rubicon");Array.isArray(t)&&t.length>0&&(0,p.logWarn)("Rubicon: Error in video response");return _.fromORTB({request:r,response:e}).bids}let i,n=e.ads,o=0;const{bidRequest:s}=t;if("object"==typeof s&&!Array.isArray(s)&&R(s).includes(d.G_)&&"object"==typeof n&&(n=n[s.adUnitCode]),!Array.isArray(n)||n.length<1)return[];return n.reduce((t,r,n)=>{if(r.impression_id&&i===r.impression_id?o++:i=r.impression_id,"ok"!==r.status)return t;const a=Array.isArray(s)?s[n-o]:s;if(a&&"object"==typeof a){const e={requestId:a.bidId,currency:"USD",creativeId:r.creative_id||`${r.network||""}-${r.advertiser||""}`,cpm:r.cpm||0,dealId:r.deal,ttl:360,netRevenue:!1!==f.netRevenue,rubicon:{advertiserId:r.advertiser,networkId:r.network},meta:{advertiserId:r.advertiser,networkId:r.network,mediaType:d.D4}};r.creative_type&&(e.mediaType=r.creative_type),r.dsa&&Object.keys(r.dsa).length&&(e.meta.dsa=r.dsa),r.adomain&&(e.meta.advertiserDomains=Array.isArray(r.adomain)?r.adomain:[r.adomain]),r.emulated_format&&(e.meta.mediaType=r.emulated_format),r.creative_type===d.G_?(e.width=a.params.video.playerWidth,e.height=a.params.video.playerHeight,e.vastUrl=r.creative_depot_url,e.impression_id=r.impression_id,e.videoCacheKey=r.impression_id):(e.ad=(c=r.script,`<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='${r.impression_id}'>\n<script type='text/javascript'>${c}<\/script>\n</div>\n</body>\n</html>`),[e.width,e.height]=h[r.size_id].split("x").map(e=>Number(e))),e.rubiconTargeting=(Array.isArray(r.targeting)?r.targeting:[]).reduce((e,t)=>(e[t.key]=t.values[0],e),{rpfl_elemid:a.adUnitCode}),t.push(e)}else(0,p.logError)(`Rubicon: bidRequest undefined at index position:${n}`,s,e);var c;return t},[]).sort((e,t)=>(t.cpm||0)-(e.cpm||0))},getUserSyncs:function(e,t,r,i,n){if(e.iframeEnabled){let e=(0,g.d)(r,i,n);return e=Object.keys(e).length?`?${(0,p.formatQS)(e)}`:"",{type:"iframe",url:`https://${f.syncHost||"eus"}.rubiconproject.com/usync.html`+e}}}};function A(e,t){let r;return r=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?r.replace(/^http:/i,"https:"):r}function j(e){const t=document.getElementById(e.adUnitCode);!function(e){const t=e.querySelector("div[id^='google_ads']");t&&t.style.setProperty("display","none")}(t),function(e){const t=e.querySelector("script[id^='sas_script']"),r=t&&t.nextSibling;r&&"iframe"===r.localName&&r.style.setProperty("display","none")}(t);const r={...{align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0},...e.renderer.getConfig()};e.renderer.push(()=>{window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:`#${e.adUnitCode}`,align:r.align,position:r.position},closeButton:r.closeButton,label:r.label,collapse:r.collapse})})}function $(e,t){const r=e.params;if(t===d.G_){let t=[];return r.video&&r.video.playerWidth&&r.video.playerHeight?t=[r.video.playerWidth,r.video.playerHeight]:Array.isArray((0,u.A)(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?t=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(t=e.sizes[0]),t}let i=[];return Array.isArray(r.sizes)?i=r.sizes:void 0!==(0,u.A)(e,"mediaTypes.banner.sizes")?i=k(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=k(e.sizes):(0,p.logWarn)("Rubicon: no sizes are setup or found"),function(e){const t=[15,2,9];return e.sort((e,r)=>{const i=t.indexOf(e),n=t.indexOf(r);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-r})}(i)}function k(e){return(0,p.parseSizesInput)(e).reduce((e,t)=>{const r=parseInt(h[t],10);return r&&e.push(r),e},[])}function R(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const r=[];if(function(e){let t=void 0!==(0,u.A)(e,`mediaTypes.${d.G_}`);const r=void 0!==(0,u.A)(e,`mediaTypes.${d.D4}`),i=void 0!==(0,u.A)(e,"params.bidonmultiformat"),n="object"!=typeof(0,u.A)(e,"params.video");return!(!t||!i)||(r&&n&&(t=!1),t&&n&&(0,l.J)(e,"params.video",{}),t)}(e)){if(-1===["outstream","instream"].indexOf((0,u.A)(e,`mediaTypes.${d.G_}.context`)))return t&&(0,p.logError)("Rubicon: mediaTypes.video.context must be outstream or instream"),r;if($(e,d.G_).length<2)return t&&(0,p.logError)("Rubicon: could not determine the playerSize of the video"),r;t&&(0,p.logMessage)("Rubicon: making video request for adUnit",e.adUnitCode),r.push(d.G_)}if(void 0!==(0,u.A)(e,`mediaTypes.${d.s6}`)&&r.push(d.s6),void 0!==(0,u.A)(e,`mediaTypes.${d.D4}`)){if(0===$(e,d.D4).length)return t&&(0,p.logError)("Rubicon: could not determine the sizes for banner request"),r;t&&(0,p.logMessage)("Rubicon: making banner request for adUnit",e.adUnitCode),r.push(d.D4)}return r}const C=()=>{y={}};function S(e){let t=!1;const r=["asi","sid","hp"];return e.nodes?(t=e.nodes.reduce((e,t)=>e?r.every(e=>t.hasOwnProperty(e)):e,!0),t||(0,p.logError)("Rubicon: required schain params missing"),t):t}function O(e,t){return"rp_schain"===e?`rp_schain=${t}`:`${e}=${encodeURIComponent(t)}`}(0,s.a$)(v),(0,i.E)("rubiconBidAdapter")}},e=>{e.O(0,[60802,58498,97247,47618,46550,37769,40315,51085],()=>{return t=52326,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[11613],{70460:(n,i,e)=>{var s=e(51748),o=e(91933),r=e(10466),a=e(26665);function c(n,i,e){const s=i.split(".");let o=n;s.forEach(n=>{o[n]=o[n]||{},o=o[n]}),o.schain=(0,a.Go)(e)}e(40069).mZ.before((n,i)=>{!function(n){if(!n)return n;let i=!1;function e(){i||((0,r.logWarn)('The schain module is deprecated and no longer needed; you may provide schain directly as FPD (e.g., "setConfig({ortb2: {source: {schain: {...}})")'),i=!0)}const s=o.$W.getConfig("schain");s&&s.config&&(e(),n?.global?.source?.schain?(0,r.logWarn)("Disregarding global schain config as schain is already provided in FPD"):c(n,"global.source",s.config));const a=o.$W.getBidderConfig();a&&Object.entries(a).filter(n=>{let[i,e]=n;return e.schain}).forEach(i=>{let[s,o]=i;e();const a=`bidder.${s}.source`,d=n?.bidder?.[s]?.source?.schain;d?(0,r.logWarn)(`Disregarding schain config for bidder "${s}" as schain is already provided in FPD`):c(n,a,o.schain?.config)})}(i),n(i)}),(0,s.E)("schain")}},n=>{n.O(0,[60802,37769,40315,51085],()=>{return i=70460,n(n.s=i);var i});n.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[45496],{18959:(e,o,t)=>{var n=t(51748),r=t(10466),d=t(32592),i=t(61443),a=t(41385),u=t(70736),s=t(88074);const c=(0,i.vM)({moduleType:u.fW,moduleName:"sharedId"}),l="cookie",m="html5",p="_pubcid_optout",f="PublisherCommonId";function g(e,o){if(o===l)return c.getCookie(e);if(o===m&&c.hasLocalStorage()){const o=c.getDataFromLocalStorage(`${e}_exp`);if(!o)return c.getDataFromLocalStorage(e);if(new Date(o).getTime()-Date.now()>0)return c.getDataFromLocalStorage(e)}}function I(e,o){return function(t,n){o?b(o,e,()=>{t(n()||e)})():t(e)}}function b(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=arguments.length>2?arguments[2]:void 0;if(!e)return;const n=(0,r.parseUrl)(e);n.search.id=encodeURIComponent("pubcid:"+o);const d=(0,r.buildUrl)(n);return function(){(0,r.triggerPixel)(d,t)}}function h(){return!!(c.cookiesAreEnabled()&&g(p,l)||c.hasLocalStorage()&&g(p,m))}const v={name:"sharedId",aliasName:"pubCommonId",gvlid:a.B1,disclosureURL:"local://prebid/sharedId-optout.json",decode(e,o){if(h())return void(0,r.logInfo)("PubCommonId decode: Has opted-out");(0,r.logInfo)(" Decoded value PubCommonId "+e);return{pubcid:e}},getId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(h())return void(0,r.logInfo)("PubCommonId: Has opted-out");if(o?.coppa)return void(0,r.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");const{params:{create:n=!0,pixelUrl:d}={}}=e;let i=t;if(!i){try{"object"==typeof window[f]&&(i=window[f].getId())}catch(e){}i||(i=n&&(0,r.hasDeviceAccess)()?(0,r.generateUUID)():void 0)}return{id:i,callback:I(i,d)}},extendId:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0;if(h())return(0,r.logInfo)("PubCommonId: Has opted-out"),{id:void 0};if(o?.coppa)return void(0,r.logInfo)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");const{params:{extend:n=!1,pixelUrl:d}={}}=e;if(n){if(d){return{callback:b(d,t)}}return{id:t}}},domainOverride:(0,s.w)(c,"sharedId"),eids:{pubcid(e,o){const t={source:"pubcid.org",uids:e.map(e=>({id:e,atype:1}))};return null!=o?.params?.inserter&&(t.inserter=o.params.inserter),t}}};(0,d.bz)("userId",v),(0,n.E)("sharedIdSystem")}},e=>{e.O(0,[12764,60802,37769,40315,51085],()=>{return o=18959,e(e.s=o);var o});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[7201],{58832:(e,o,s)=>{var t=s(51748),n=s(91933),i=s(28157),r=s(25291),l=s(61443),c=s(10466),a=s(53202),u=s(45808),d=s(57215),f=s(14661);let g;function h(e){return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}function p(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.y;const s=[],t={},n=o.getMetadata(e[r.Dk],e[r.iK]);if(!n)return null;if(t[e[r.iK]]=n.disclosureURL,n.aliasOf){const s=o.getMetadata(e[r.Dk],n.aliasOf);s&&(t[n.aliasOf]=s.disclosureURL)}return Object.entries(t).forEach(t=>{let[n,i]=t;o.getStorageDisclosure(i)?.disclosures?.filter(o=>function(e,o){return!(!["cookie","web"].includes(o.type)||"cookie"===o.type&&e[r.Zw]!==l.X0||"web"===o.type&&e[r.Zw]!==l.qk)&&new RegExp(`^${o.identifier.split("*").map(h).join(".*?")}$`).test(e[r.Ez])}(e,o))?.forEach(e=>{s.push({[r.iK]:n,disclosureURL:i,disclosure:e})})}),{matches:s,disclosureURLs:t}}function m(e){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p,s=!1,t=!1,n=null;const i=e[r.Ez],l=e[r.Ii];if(i){const c=o(e);if(null==c)n=`Cannot determine if storage key "${i}" is disclosed by "${l}" because the necessary metadata is missing - was it included in the build?`;else{const{disclosureURLs:o,matches:a}=c,u=e[r.iK];for(const{componentName:e}of a)if(e===u?s=!0:(t=!0,n=`Storage key "${i}" is disclosed by module "${e}", but not by "${u}" itself (the latter is an alias of the former)`),s||t)break;s||t||(n=`Storage key "${i}" (for ${e[r.Zw]} storage) is not disclosed by "${l}"`,o[u]?n+=` @ ${o[u]}`:n+=" - no disclosure URL was provided, or it could not be retrieved")}}else s=null;return{disclosed:s,parent:t,reason:n}}(0,a.qB)(u.Ue,"storageControl",function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>g,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m;return function(s){const{disclosed:t,parent:n,reason:i}=o(s);if(null!==t&&!t){const o=e();if("strict"===o||"allowAliases"===o&&!n)return{allow:!1,reason:i};i&&(0,c.logWarn)("storageControl:",i)}}}()),n.$W.getConfig("storageControl",e=>{g=e?.storageControl?.enforcement??"off"});const{hook:k,getDisclosures:y}=function(){const e={};return{hook(o,s,t){const n=`${t.type}::${t.identifier}`;e.hasOwnProperty(n)||(e[n]={disclosedBy:[],...t}),Object.assign(e[n],function(e,o){const s={...e,purposes:(e.purposes??[]).concat(o.purposes??[]).filter(c.uniques)};return"cookie"===e.type&&(null==e.maxAgeSeconds&&null==o.maxAgeSeconds||(s.maxAgeSeconds=(e.maxAgeSeconds??0)>(o.maxAgeSeconds??0)?e.maxAgeSeconds:o.maxAgeSeconds),null==e.cookieRefresh&&null==o.cookieRefresh||(s.cookieRefresh=e.cookieRefresh||o.cookieRefresh)),s}(e[n],t)),e[n].disclosedBy.includes(s)||e[n].disclosedBy.push(s),o(s,t)},getDisclosures:()=>Object.values(e)}}();l.p6.before(k);const b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>(0,f.l)((0,t.m)().installedModules,i.y.getModuleMetadata);return function(){return[].concat(e().map(e=>({disclosedIn:null,...e})),o())}}();(0,d.xu)("getStorageUseDisclosures",b),(0,t.E)("storageControl")}},e=>{e.O(0,[36784,32689,60802,37769,40315,51085],()=>{return o=58832,e(e.s=o);var o});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[4085],{1492:(e,n,t)=>{var r=t(51748),o=t(10466),s=t(58928),u=t(91933),p=t(51409),i=t(41385),l=t(18014),c=t(11418),d=t(70736),a=t(25291),f=t(53202),g=t(45808),h=t(62201);const v={purpose:{},feature:{}},m={purpose:!1,feature:"specialFeatureOptins"},y={storage:{type:"purpose",default:{purpose:"storage",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]},id:1},basicAds:{type:"purpose",id:2,default:{purpose:"basicAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}},personalizedAds:{type:"purpose",id:4,default:{purpose:"personalizedAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[],eidsRequireP4Consent:!1}},measurement:{type:"purpose",id:7,default:{purpose:"measurement",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}},transmitPreciseGeo:{type:"feature",id:1,default:{purpose:"transmitPreciseGeo",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}}},E=new Set,B=new Set,A=new Set,q=new Set,C=new Set,$=new Set;let k=!1,P=!1;const b=[d.tW,d.fW,d.Tn,d.zu],w="TCF2",D=[],W=[2],x=[2,7,9,10];function O(e,n,t,r){const o=(0,s.A)(e,`vendorData.${n}`);return!!o?.consents?.[t]||r&&!!o?.legitimateInterests?.[t]}function V(e,n,t,r){let o;if(!1!==m[n])o=!!(0,s.A)(e,`vendorData.${m[n]}.${t}`);else{const[n,s]=r===i.B1?["publisher",x]:["purpose",W];o=O(e,n,t,s.includes(t))}return{purpose:o,vendor:O(e,"vendor",r,W.includes(t))}}function S(e,n,t,r){const o=y[e.purpose];if((e.vendorExceptions||[]).includes(t))return!0;const s=e.enforceVendor&&!(r===i.B1||(e.softVendorExceptions||[]).includes(t)),{purpose:u,vendor:p}=V(n,o.type,o.id,r);return(!e.enforcePurpose||u)&&(!s||p)}function T(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>null;return function(s){const p=i.mW.getConsentData(),l=s[a.iK];if(function(e,n,t){return null==e&&i.mW.enabled?((0,o.logWarn)(`Attempting operation that requires purpose ${n} consent while consent data is not available${t?` (module: ${t})`:""}. Assuming no consent was given.`),!0):e&&e.gdprApplies}(p,e,l)){const e=function(e,n,t){if(n){const r=u.$W.getConfig("gvlMapping");if(r&&r[n])return r[n];if(e===d.tp)return i.B1;{let{gvlid:r,modules:s}=i.o2.get(n);if(null==r&&Object.keys(s).length>0)for(const t of b)if(s.hasOwnProperty(t)){r=s[t],t!==e&&(0,o.logWarn)(`Multiple GVL IDs found for module '${n}'; using the ${t} module's ID (${r}) instead of the ${e}'s ID (${s[e]})`);break}return null==r&&t&&(r=t()),r||null}}return null}(s[a.Dk],l,r(s)),c=!!n(p,l,e);if(!c)return t&&t.add(l),{allow:c}}}}function F(e){return T(e,(n,t,r)=>!!S(v.purpose[e],n,t,r),arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>null)}function M(e){return function(n){if(n[a.Dk]!==d.tp)return e(n)}}const j=(I=F(1,E),function(e){if(e[a.Dk]!==d.tp||P)return I(e)});var I;const N=F(1,E),z=F(1,E),G=M(F(2,B)),R=F(7,A,e=>function(e,n){const t=p.Ay.getAnalyticsAdapter(e);return(r=>{if("function"!=typeof r)return r;try{return r.call(t.adapter,n)}catch(n){(0,o.logError)(`Error invoking ${e} adapter.gvlid()`,n)}})(t?.adapter?.gvlid)}(e[a.iK],e[a.TQ])),K=F(4,q),L=M((()=>{const e=T("2-10",function(e,n,t){for(let r=2;r<=10;r++){if(v.purpose[r]?.vendorExceptions?.includes(n))return!0;const{purpose:o,vendor:s}=V(e,"purpose",r,t);if(o&&(s||v.purpose[r]?.softVendorExceptions?.includes(n)))return!0}return!1},C),n=F(4,C);return function(){const t=v.purpose[4]?.eidsRequireP4Consent?n:e;for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return t.apply(this,o)}})()),U=T("Special Feature 1",(e,n,t)=>S(v.feature[1],e,n,t),$);function Y(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;if(!n.withCredentials||t&&r)return void e(n);const s=i.mW.getConsentData(),u=v.purpose[1],p=y[u.purpose],{purpose:l}=V(s,p.type,p.id,null);!l&&u.enforcePurpose&&(n.withCredentials=!1,(0,o.logWarn)(`${w} denied ${g.yg}`)),e(n)}l.on(c.qY.AUCTION_END,function(){const e=function(e){return Array.from(e.keys()).filter(e=>null!=e)},n={storageBlocked:e(E),biddersBlocked:e(B),analyticsBlocked:e(A),ufpdBlocked:e(q),eidsBlocked:e(C),geoBlocked:e($)};l.emit(c.qY.TCF2_ENFORCEMENT,n),[E,B,A,q,C,$].forEach(e=>e.clear())}),u.$W.getConfig("consentManagement",e=>function(e){let n=(0,s.A)(e,"gdpr.rules");n||(0,o.logWarn)("TCF2: enforcing P1 and P2 by default"),n=Object.fromEntries((n||[]).map(e=>[e.purpose,e])),P=!!(0,s.A)(e,"strictStorageEnforcement"),Object.entries(y).forEach(e=>{let[t,r]=e;v[r.type][r.id]=n[t]??r.default}),k||(null!=v.purpose[1]&&(k=!0,D.push((0,f.qB)(g.Ue,w,j)),D.push((0,f.qB)(g.Ml,w,N)),D.push((0,f.qB)(g.yl,w,z)),h.p3.after(Y)),null!=v.purpose[2]&&D.push((0,f.qB)(g.uc,w,G)),null!=v.purpose[4]&&D.push((0,f.qB)(g.DL,w,K),(0,f.qB)(g.qX,w,K)),null!=v.purpose[7]&&D.push((0,f.qB)(g.mo,w,R)),null!=v.feature[1]&&D.push((0,f.qB)(g.hE,w,U)),D.push((0,f.qB)(g.hq,w,L)))}(e.consentManagement)),(0,r.E)("tcfControl")}},e=>{e.O(0,[60802,37769,40315,51085],()=>{return n=1492,e(e.s=n);var n});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[28746],{27889:(e,t,n)=>{var r=n(51748),i=n(10466),o=n(43958),d=n(26665),c=n(3516),s=n(61443),a=n(85128),p=n(2433),u=n(15121);const l="teads",m=12,f=11,g=0,I=22,y=(0,s.vM)({bidderCode:l}),v={code:l,gvlid:132,supportedMediaTypes:["video","banner"],isBidRequestValid:function(e){let t=!1;if(void 0!==e.params){const n=A(e.params.placementId),r=A(e.params.pageId);t=n&&r}return t||(0,i.logError)("Teads placementId and pageId parameters are required. Bid aborted."),t},buildRequests:function(e,t){const n=e.map(T),r=window.top,i={referrer:w(t),pageReferrer:document.referrer,pageTitle:S().slice(0,300),pageDescription:C().slice(0,300),networkBandwidth:(d=window.navigator,d&&d.connection&&d.connection.downlink>=0?d.connection.downlink.toString():""),networkQuality:k(window.navigator),timeToFirstByte:(0,u.v)(window),data:n,domComplexity:q(document),device:t?.ortb2?.device||{},deviceWidth:screen.width,deviceHeight:screen.height,devicePixelRatio:r.devicePixelRatio,screenOrientation:(0,o.Vv)(),historyLength:(0,p.G)(),viewportHeight:(0,o.Ot)().visualViewport.height,viewportWidth:(0,o.Ot)().visualViewport.width,hardwareConcurrency:null,deviceMemory:null,hb_version:"10.20.0",timeout:t?.timeout,eids:b(e),...h(e),outbrainId:y.getDataFromLocalStorage("OB-USER-TOKEN"),...P(e)};var d;const c=e[0],s=c?.ortb2?.source?.ext?.schain;s&&(i.schain=s);const a=t.gppConsent;if(t&&a){const e="string"==typeof a.gppString,t=Array.isArray(a.applicableSections)&&a.applicableSections.every(e=>"number"==typeof e);i.gpp={consentString:e?a.gppString:"",applicableSectionIds:t?a.applicableSections:[]}}const l=t.gdprConsent;if(t&&l){const e="boolean"==typeof l.gdprApplies,t="string"==typeof l.consentString,n=e?function(e,t){let n=m;e?t&&!t.isServiceSpecific&&(n=f):n=g;return n}(l.gdprApplies,l.vendorData):I;i.gdpr_iab={consent:t?l.consentString:"",status:n,apiVersion:l.apiVersion}}t&&t.uspConsent&&(i.us_privacy=t.uspConsent);const v=c?.ortb2?.device?.sua;v&&(i.userAgentClientHints=v);const A=t?.ortb2?.regs?.ext?.dsa;A&&(i.dsa=A);return{method:"POST",url:"https://a.teads.tv/hb/bid-request",data:JSON.stringify(i)}},interpretResponse:function(e,t){if(!(e=e.body).responses)return[];const n=(0,a.T)();return e.responses.filter(e=>!e.needAutoplay||n).map(e=>{const t={cpm:e.cpm,width:e.width,height:e.height,currency:e.currency,netRevenue:!0,ttl:e.ttl,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]},ad:e.ad,requestId:e.bidId,creativeId:e.creativeId,placementId:e.placementId};return e.dealId&&(t.dealId=e.dealId),e?.ext?.dsa&&(t.meta.dsa=e.ext.dsa),t})}};function h(e){const t={unifiedId2:"uidapi.com",liveRampId:"liveramp.com",lotamePanoramaId:"crwdcntrl.net",id5Id:"id5-sync.com",criteoId:"criteo.com",yahooConnectId:"yahoo.com",quantcastId:"quantcast.com",epsilonPublisherLinkId:"epsilon.com",publisherFirstPartyViewerId:"pubcid.org",merkleId:"merkleinc.com",kinessoId:"kpuid.com"},n={};for(const r in t){const i=t[r];e[0].userIdAsEids?.forEach(e=>{e.source===i&&e.uids?.[0].id&&(n[r]=e.uids[0].id)})}return n}function b(e){return e?.[0]?.userIdAsEids||[]}function w(e){let t="";return e&&e.refererInfo&&e.refererInfo.page&&(t=e.refererInfo.page),t}function S(){try{const e=window.top.document.querySelector('meta[property="og:title"]');return window.top.document.title||e&&e.content||""}catch(e){const t=document.querySelector('meta[property="og:title"]');return document.title||t&&t.content||""}}function C(){let e;try{e=window.top.document.querySelector('meta[name="description"]')||window.top.document.querySelector('meta[property="og:description"]')}catch(t){e=document.querySelector('meta[name="description"]')||document.querySelector('meta[property="og:description"]')}return e&&e.content||""}function k(e){const t=e.connection||e.mozConnection||e.webkitConnection;return t?.effectiveType??""}function q(e){return e?.querySelectorAll("*")?.length??-1}function T(e){const t={},n=e.params.placementId,r=e.params.pageId,o=e?.ortb2Imp?.ext?.gpid,c=e?.mediaTypes?.video?.plcmt;return t.sizes=function(e){return(0,i.parseSizesInput)(function(e){const t=e?.mediaTypes?.video?.playerSize,n=e?.mediaTypes?.video?.sizes,r=e?.mediaTypes?.banner?.sizes;if((0,d.cy)(r)||(0,d.cy)(t)||(0,d.cy)(n)){return[r,n,t].reduce(function(e,t){return(0,d.cy)(t)&&((0,d.cy)(t[0])?t.forEach(function(t){e.push(t)}):e.push(t)),e},[])}return e.sizes}(e))}(e),t.bidId=(0,i.getBidIdParameter)("bidId",e),t.bidderRequestId=(0,i.getBidIdParameter)("bidderRequestId",e),t.placementId=parseInt(n,10),t.pageId=parseInt(r,10),t.adUnitCode=(0,i.getBidIdParameter)("adUnitCode",e),t.transactionId=e.ortb2Imp?.ext?.tid||"",o&&(t.gpid=o),c&&(t.videoPlcmt=c),t}function A(e){return parseInt(e)>0}function P(e){const t=e?.[0]?.userIdAsEids?.find(e=>"teads.com"===e.source)?.uids?.[0].id;if(t)return{firstPartyCookieTeadsId:t};if(y.cookiesAreEnabled(null)){const e=y.getCookie("_tfpvi",null);if(e)return{firstPartyCookieTeadsId:e}}return{}}(0,c.a$)(v),(0,r.E)("teadsBidAdapter")}},e=>{e.O(0,[26762,42809,47639,60802,37769,40315,51085],()=>{return t=27889,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[33584],{75143:(e,t,n)=>{var r=n(51748),s=n(26665),o=n(10466),c=n(62201),u=n(32592),a=n(61443),i=n(70736);const d="teadsId",p="_tfpvi",f=0,l=22,g=12,m=0,v=220,h=120,I=(0,a.vM)({moduleType:i.fW,moduleName:d}),_={name:d,gvlid:132,decode:e=>({teadsId:e}),getId:(e,t)=>({callback:function(n){const r=function(e,t){const n=function(e){const t=e?.params?.pubId,n="PUB_";if((0,s.Et)(t))return n+t.toString();if((0,s.O8)(t)&&parseInt(t))return n+t;return""}(e),r=function(){const e=I.cookiesAreEnabled(null)?I.getCookie(p,null):null;return(0,s.O8)(e)?e:""}(),o=function(e){const t=e?.gdprApplies;return!0===t?g:!1===t?f:l}(t?.gdpr),c=function(e){const t=e?.consentString;return(0,s.O8)(t)?t:""}(t?.gdpr),u=function(e){return(0,s.O8)(e)?e:""}(t?.usp),a=b(o),i={analytics_tag_id:n,tfpvi:r,gdpr_consent:c,gdpr_status:o,gdpr_reason:a,ccpa_consent:u,sv:"prebid-v1"},d="https://at.teads.tv/fpc",m=new URLSearchParams;for(const e in i)m.append(e,i[e]);return d+"?"+m.toString()}(e,t),u={success:(e,t)=>{if(t&&200===t.status)if((0,s.O8)(e)&&!(0,o.isEmpty)(e)){const t=24*365*60*60*1e3,s=(r=t,new Date((0,o.timestamp)()+r).toUTCString());I.setCookie(p,e,s),n(e)}else I.setCookie(p,"","Thu, 01 Jan 1970 00:00:01 GMT"),n();else(0,o.logInfo)(`${d}: Server error while fetching ID`),n();var r},error:e=>{(0,o.logError)(`${d}: ID fetch encountered an error`,e),n()}};(0,c.RD)(r,u,void 0,{method:"GET"})}}),eids:{teadsId:{source:"teads.com",atype:1}}};function b(e){switch(e){case f:return m;case l:return v;case g:return h;default:return-1}}(0,u.bz)("userId",_),(0,r.E)("teadsIdSystem")}},e=>{e.O(0,[60802,37769,40315,51085],()=>{return t=75143,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[68907],{29226:(e,r,t)=>{var n=t(51748),o=t(10466),i=t(32592),a=t(61443),s=t(70736),u=t(80770),d=t(35273);const p="uid2",l=`PrebidJS-10.20.0-UID2Module-${u.kz}`,c="UID2: ";function f(e,r){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e(r+" ",...n)}}const m=f(o.logInfo,c),k=f(o.logWarn,c),g=(0,a.vM)({moduleType:s.fW,moduleName:p}),I={name:p,decode(e){const r=function(e){if("string"==typeof e){m("Found server-only token. Refresh is unavailable for this token.");return{uid2:{id:e}}}if("optout"===e.latestToken)return m("Found optout token.  Refresh is unavailable for this token."),{uid2:{optout:!0}};if(Date.now()<e.latestToken.identity_expires)return{uid2:{id:e.latestToken.advertising_token}};return null}(e);return m("UID2 decode returned",r),r},getId(e,r){if(!0===r?.gdpr?.gdprApplies)return void k("UID2 is not intended for use where GDPR applies. The UID2 module will not run.");const t={apiBaseUrl:e?.params?.uid2ApiBase??"https://prod.uidapi.com",paramToken:e?.params?.uid2Token,serverCookieName:e?.params?.uid2Cookie??e?.params?.uid2ServerCookie,storage:e?.params?.storage??"localStorage",clientId:l,internalStorage:"__uid2_advertising_token"};t.cstg={serverPublicKey:e?.params?.serverPublicKey,subscriptionId:e?.params?.subscriptionId,...(0,u.E0)(e?.params??{})},m("UID2 configuration loaded and mapped.",t);const n=(0,u.wq)(t,g,m,k);return m("UID2 getId returned",n),n},eids:d.x};(0,i.bz)("userId",I),(0,n.E)("uid2IdSystem")}},e=>{e.O(0,[51912,44950,60802,37769,40315,51085],()=>{return r=29226,e(e.s=r);var r});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[73469],{57355:(e,t,n)=>{var o=n(51748),r=n(91933),s=n(18014),i=n(57215),a=n(51409),c=n(11418),u=n(32592),l=n(26665),d=n(10466);const f=new Map;function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;const n={};function o(e){const t=JSON.stringify([e.source?.toLowerCase(),...Object.keys(e).filter(e=>!["uids","source"].includes(e)).sort().map(t=>e[t])]);n.hasOwnProperty(t)?n[t].uids.push(...e.uids):n[t]=e}return Object.entries(e).forEach(e=>{let[n,r]=e;r=Array.isArray(r)?r:[r];const s=t.get(n);let i;if("pubProvidedId"===n)i=(0,l.Go)(r);else if("function"==typeof s)try{i=(0,l.Go)(s(r)),Array.isArray(i)||(i=[i]),i.forEach(e=>{e.uids=e.uids.filter(e=>{let{id:t}=e;return(0,l.O8)(t)})}),i=i.filter(e=>{let{uids:t}=e;return t?.length>0})}catch(e){(0,d.logError)(`Could not generate EID for "${n}"`,e)}else i=r.map(e=>function(e,t,n){if(n&&e){const t={};t.source=(0,l.fp)(n.getSource)?n.getSource(e):n.source;const o=(0,l.fp)(n.getValue)?n.getValue(e):e;if((0,l.O8)(o)){const r={id:o,atype:n.atype};if((0,l.fp)(n.getUidExt)){const t=n.getUidExt(e);t&&(r.ext=t)}if(t.uids=[r],n.inserter||(0,l.fp)(n.getInserter)){const o=(0,l.fp)(n.getInserter)?n.getInserter(e):n.inserter;null!=o&&(t.inserter=o)}if(n.matcher||(0,l.fp)(n.getMatcher)){const o=(0,l.fp)(n.getMatcher)?n.getMatcher(e):n.matcher;null!=o&&(t.matcher=o)}if(null!=n.mm&&(t.mm=n.mm),(0,l.fp)(n.getEidExt)){const o=n.getEidExt(e);o&&(t.ext=o)}return t}}return null}(e,0,s));Array.isArray(i)&&i.filter(e=>null!=e).forEach(o)}),Object.values(n)}function m(e){const t=new Map,n={};return Object.entries(e).forEach(e=>{let[o,r]=e;const s=r();if(s){n[o]=s.idObj[o];let e=s.submodule.eids?.[o];"function"==typeof e&&(i=e,e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return i(...t,s.config)}),t.set(o,e)}var i}),g(n,t)}var b=n(61443),h=n(83435),p=n(3129),y=n(13064),I=n(37841),w=n(91780),E=n(41385),D=n(70736),v=n(53202),S=n(45808),O=n(77610),k=n(73391),$=n(25291),j=n(71186);const x="User ID",A=b.X0,C=b.qk,T="_pbjs_id_optout",U=(0,b.CK)("userId"),N={isAllowed:v.io};let P,L,_,W,q,M=[],R=[],F={},G=[];const J=(()=>{let e;return()=>(null==e&&(e=(0,I.K7)()),e)})();function B(e){return J().fork().renameWith(t=>[`userId.mod.${t}`,`userId.mods.${e}.${t}`])}function K(e,t){t=t||e.storageMgr;const n="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,o=e.config.storage.name;return function(e,r,s){t.setCookie(o+(e||""),r,s,"Lax",n)}}function Q(e,t){const n=e.config.storage;try{const o=new Date(Date.now()+864e5*n.expires).toUTCString(),r=(0,l.Qd)(t)?JSON.stringify(t):t;e.enabledStorageTypes.forEach(t=>{switch(t){case A:!function(e,t,n){const o=e.config.storage,r=K(e);r(null,t,n),r("_cst",pe(),n),"number"==typeof o.refreshInSeconds&&r("_last",(new Date).toUTCString(),n)}(e,r,o);break;case C:!function(e,t,n){const o=e.config.storage,r=e.storageMgr;r.setDataInLocalStorage(`${o.name}_exp`,n),r.setDataInLocalStorage(`${o.name}_cst`,pe()),r.setDataInLocalStorage(o.name,encodeURIComponent(t)),"number"==typeof o.refreshInSeconds&&r.setDataInLocalStorage(`${o.name}_last`,(new Date).toUTCString())}(e,r,o)}})}catch(e){(0,d.logError)(e)}}const H=["","_last","_cst"];const V=["","_last","_exp","_cst"];function Y(e){Oe(e),e.enabledStorageTypes.forEach(t=>{switch(t){case A:!function(e){const t=K(e,U),n=new Date(Date.now()-864e5).toUTCString();H.forEach(e=>{try{t(e,"",n)}catch(e){(0,d.logError)(e)}})}(e);break;case C:!function(e){V.forEach(t=>{try{U.removeDataFromLocalStorage(e.config.storage.name+t)}catch(e){(0,d.logError)(e)}})}(e)}})}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;const n=e.config.storage,o=t?`${n.name}_${t}`:n.name;let r;try{e.enabledStorageTypes.find(t=>{switch(t){case A:r=function(e,t){return e.storageMgr.getCookie(t)}(e,o);break;case C:r=function(e,t){const n=e.storageMgr,o=e.config.storage,r=n.getDataFromLocalStorage(`${o.name}_exp`);return""===r?n.getDataFromLocalStorage(t):r&&new Date(r).getTime()-Date.now()>0?decodeURIComponent(n.getDataFromLocalStorage(t)):void 0}(e,o)}return!!r}),"string"==typeof r&&"{"===r.trim().charAt(0)&&(r=JSON.parse(r))}catch(e){(0,d.logError)(e)}return r}function z(e,t,n){t=J().fork().startTiming("userId.callbacks.total").stopBefore(t);const o=(0,d.delayExecution)(()=>{clearTimeout(undefined),t()},e.length);e.forEach(function(e){const t=B(e.submodule.name).startTiming("callback").stopBefore(o);try{e.callback(function(o){o?(e.config.storage&&Q(e,o),e.idObj=e.submodule.decode(o,e.config),n.refresh(),Ie(n)):(0,d.logInfo)(`${x}: ${e.submodule.name} - request id responded with an empty value`),t()},Z.bind(null,e))}catch(n){(0,d.logError)(`Error in userID module '${e.submodule.name}':`,n),t()}e.callback=void 0})}function X(e,t,n){const o={};return e.forEach(e=>{const r=n(e),s=function(e){if(e.primaryIds)return e.primaryIds;const t=Object.keys(e.eids??{});if(t.length>1)throw new Error(`ID submodule ${e.name} can provide multiple IDs, but does not specify 'primaryIds'`);return t}(r);t(e).forEach(t=>{const n=o[t]=o[t]??[],i=F[t]?.indexOf(r.name)??(s.includes(t)?0:-1),a=n.findIndex(e=>{let[t]=e;return t<i});n.splice(-1===a?n.length:a,0,[i,e])})}),Object.fromEntries(Object.entries(o).map(e=>{let[t,n]=e;return[t,n.map(e=>{let[t,n]=e;return n})]}))}function ee(){const e={submodules:[],global:{},bidder:{},combined:{},refresh(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const n=new Set(t.map(e=>e.submodule));e.submodules=e.submodules.filter(e=>!n.has(e.submodule)).concat(t),function(){const t=X(e.submodules,e=>Object.keys(e.idObj??{}),e=>e.submodule),n={},o={};function r(e,t,n){return function(){for(const{allowed:o,bidders:r,module:s}of n){if(!N.isAllowed(S.yl,(0,O.s)(D.fW,s?.config?.name,{init:!1})))continue;const i=s.idObj?.[e];if(null!=i){if(o)return s;if(t){const t=e=>e.map(e=>e.module.submodule.name).join(", ");return(0,d.logWarn)(`userID modules ${t(n)} provide the same ID ('${e}'); ${s.submodule.name} is the preferred source, but it's configured only for some bidders, unlike ${t(n.filter(e=>null==e.bidders))}. Other bidders will not see the "${e}" ID.`),null}if(null==r)return null}}return null}}Object.entries(t).forEach(e=>{let[t,s]=e,i=!0;const a=new Set;s=s.map(e=>{let t=null;return Array.isArray(e.config.bidders)&&e.config.bidders.length>0?(t=e.config.bidders,t.forEach(e=>a.add(e))):i=!1,{module:e,bidders:t}}),i||(n[t]=r(t,!0,s.map(e=>{let{bidders:t,module:n}=e;return{allowed:null==t,bidders:t,module:n}}))),a.forEach(e=>{o[e]=o[e]??{},o[e][t]=r(t,!1,s.map(t=>{let{bidders:n,module:o}=t;return{allowed:n?.includes(e),bidders:n,module:o}}))})});const s=Object.values(o).concat([n]).reduce((e,t)=>Object.assign(e,t),{});Object.assign(e,{global:n,bidder:o,combined:s})}()}};return e}function te(e){let{ortb2Fragments:t}=e;t=t??{global:{},bidder:{}},function(e){const{global:t,bidder:n}=e,{global:o,bidder:r}=P,s=m(o);s.length>0&&(0,h.J)(t,"user.ext.eids",(t.user?.ext?.eids??[]).concat(s)),Object.entries(r).forEach(e=>{let[t,o]=e;const r=m(o);r.length>0&&(0,h.J)(n,`${t}.user.ext.eids`,(n[t]?.user?.ext?.eids??[]).concat(r))})}(t)}const ne={};let oe;function re(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue()||[];const t=W&&e.find(e=>e.source===W);if(t&&"string"==typeof t?.uids?.[0]?.id){const e=t.uids[0].id.replace(/[\W_]/g,"");if(e.length>=32&&e.length<=150)return e;(0,d.logWarn)(`User ID - Googletag Publisher Provided ID for ${W} is not between 32 and 150 characters - ${e}`)}}const se=(0,I.Ak)("userId",function(e,t){let{mkDelay:n=y.cb,getIds:o=he}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y.U9.race([o().catch(()=>null),n(_)]).then(()=>{te(t),J().join((0,I.BO)(t.metrics),{propagate:!1,includeGroups:!0}),e.call(this,t)})});function ie(e,t){t.forEach(e=>{e.bids.forEach(t=>Object.defineProperty(t,"userIdAsEids",{configurable:!0,get:()=>e.ortb2.user?.ext?.eids??[]}))}),e(t)}function ae(e,t){const n={},o=t.getFPD()?.global?.user?.ext?.eids??[];t.getAdUnits().flatMap(e=>e.bids).forEach(e=>{const r=null==(s=e.bidder)?o:(n.hasOwnProperty(s)||(n[s]=(0,d.mergeDeep)({eids:[]},{eids:o},{eids:t.getFPD()?.bidder?.[s]?.user?.ext?.eids??[]}).eids),n[s]);var s;r.length>0&&(e.userIdAsEids=r)}),e(t)}function ce(){return e=P.combined,Object.fromEntries(Object.entries(e).map(e=>{let[t,n]=e;return[t,n()?.idObj?.[t]]}).filter(e=>{let[t,n]=e;return null!=n}));var e}function ue(){return m(P.combined)}function le(e){return ue().filter(t=>t.source===e)[0]}function de(e,t,n){return me().then(()=>{const o={};if((0,l.fp)(n)){(0,d.logInfo)(`${x} - Getting encrypted signal from custom function : ${n.name} & source : ${e} `);const t=n(e);o[e]=t?fe(t):null}else{const n=le(e);(0,d.logInfo)(`${x} - Getting encrypted signal for eids :${JSON.stringify(n)}`),(0,d.isEmpty)(n)||(o[n.source]=!0===t?fe(n):n.uids[0].id)}return(0,d.logInfo)(`${x} - Fetching encrypted eids: ${o[e]}`),o[e]})}function fe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n="";if(1===t)n="object"==typeof e?window.btoa(JSON.stringify(e)):window.btoa(e);return`${t}||${n}`}function ge(){if(!(0,d.isGptPubadsDefined)())return;const e=r.$W.getConfig("userSync.encryptedSignalSources");if(e){const t=e.registerDelay||0;setTimeout(()=>{e.sources&&e.sources.forEach(e=>{let{source:t,encrypt:n,customFunc:o}=e;t.forEach(e=>{window.googletag.secureSignalProviders.push({id:e,collectorFunction:()=>de(e,n,o)})})})},t)}else(0,d.logWarn)(`${x} - ESP : encryptedSignalSources config not defined under userSync Object`)}function me(e){return oe(e).then(()=>ce(),e=>e===ne?Promise.resolve().then(he):((0,d.logError)("Error initializing userId",e),y.U9.reject(e)))}function be(){let{submoduleNames:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return me({refresh:!0,submoduleNames:e}).then(e=>(t&&(0,l.fp)(t)&&t(),e))}function he(){return me()}function pe(){let e=Number(E.SL.hash);const t=[];for(;e>0;)t.push(String.fromCharCode(255&e)),e>>>=8;return btoa(t.join(""))}function ye(e,t){const n=E.SL.getConsentData();if(e.config.storage){let o,r=Z(e),s=!1;if("number"==typeof e.config.storage.refreshInSeconds){const t=new Date(Z(e,"last"));s=t&&Date.now()-t.getTime()>1e3*e.config.storage.refreshInSeconds}if(!r||s||t||function(e){const t=Z(e,"cst");return!t||t!==pe()}(e)){const t=Object.assign({enabledStorageTypes:e.enabledStorageTypes},e.config);o=e.submodule.getId(t,n,r)}else"function"==typeof e.submodule.extendId&&(o=e.submodule.extendId(e.config,n,r));(0,l.Qd)(o)&&(o.id&&(Q(e,o.id),r=o.id),"function"==typeof o.callback&&(e.callback=o.callback)),r&&(e.idObj=e.submodule.decode(r,e.config))}else if(e.config.value)e.idObj=e.config.value;else{const t=e.submodule.getId(e.config,n);(0,l.Qd)(t)&&("function"==typeof t.callback&&(e.callback=t.callback),t.id&&(e.idObj=e.submodule.decode(t.id,e.config)))}}function Ie(e){const t=m(e.combined);if(t.length&&W){const e=re(t);e&&((0,d.isGptPubadsDefined)()?window.googletag.pubads().setPublisherProvidedId(e):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(function(){window.googletag.pubads().setPublisherProvidedId(e)})))}}function we(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return J().fork().measureTime("userId.init.modules",function(){if(!t.length)return[];if(t.forEach(e=>Oe(e)),!(t=t.filter(e=>(!e.config.storage||!!e.enabledStorageTypes.length)&&N.isAllowed(S.yl,(0,O.s)(D.fW,e.config.name)))).length)return(0,d.logWarn)(`${x} - no ID module configured`),[];const o=t.reduce((e,t)=>B(t.submodule.name).measureTime("init",()=>{try{ye(t,n),e.push(t)}catch(e){(0,d.logError)(`Error in userID module '${t.submodule.name}':`,e)}return e}),[]);return e.refresh(o),Ie(e),o})}function Ee(e){return e?.storage?.type?.trim().split(/\s*&\s*/)||[]}function De(e){function t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(0,d.logWarn)(`Invalid userSync.userId config: ${e}`,...n)}return Array.isArray(e)?e.filter(e=>{if(!e?.name)return t('must specify "name"',e);if(e.storage){if(!e.storage.name||!e.storage.type)return t('must specify "storage.name" and "storage.type"',e);if(!function(e){return Ee(e).every(e=>ve.has(e))}(e))return t('invalid "storage.type"',e);["expires","refreshInSeconds"].forEach(n=>{let o=e.storage[n];null!=o&&"number"!=typeof o&&(o=Number(o),isNaN(o)?(t(`storage.${n} must be a number and will be ignored`,e),delete e.storage[n]):e.storage[n]=o)})}return!0}):(null!=e&&t("must be an array",e),[])}const ve=new Set([C,A]);const Se=[1,2,3,4,7];function Oe(e){if(e.enabledStorageTypes)return;const t=Ee(e.config);e.enabledStorageTypes=t.filter(t=>{switch(t){case C:return V.forEach(t=>{(0,b.p6)("userId",{type:"web",identifier:e.config.storage.name+t,purposes:Se})}),function(e){return!(!e.storageMgr.localStorageIsEnabled()||U.getDataFromLocalStorage(T)&&((0,d.logInfo)(`${x} - opt-out localStorage found, storage disabled`),1))}(e);case A:return H.forEach(t=>{(0,b.p6)("userId",{type:"cookie",identifier:e.config.storage.name+t,purposes:Se,maxAgeSeconds:24*(e.config.storage.expires??0)*60*60,cookieRefresh:!0})}),function(e){return!(!e.storageMgr.cookiesAreEnabled()||U.getCookie(T)&&((0,d.logInfo)(`${x} - opt-out cookie found, storage disabled`),1))}(e)}return!1})}function ke(e){f.clear(),Object.entries(X(e,e=>Object.keys(e.eids||{}),e=>e)).forEach(e=>{let[t,n]=e;return f.set(t,n[0].eids[t])})}function $e(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};ke(G);const t=De(R);if(!t.length)return;const n=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:G;const{autoRefresh:r,retainConfig:s}=e;return o.reduce((e,o)=>{const{name:i,aliasName:a}=o,c=e=>[i,a].some(t=>t?.toLowerCase()===e.toLowerCase()),u=t.find(e=>c(e.name));if(!u){if(!s)return e;const t=n.find(e=>c(e.config.name));return t?[...e,t]:e}const l={submodule:o,config:{...u,name:o.name},callback:void 0,idObj:void 0,storageMgr:(0,b.le)({moduleType:D.fW,moduleName:u.name,advertiseKeys:!1})};if(r){const e=n.find(e=>c(e.config.name));l.refreshIds=!e||!(0,d.deepEqual)(l.config,e.config)}return[...e,l]},[])}(e,t);M.splice(0,M.length),M.push(...n),M.length&&(i.gH.getHooks({hook:se}).length||(i.gH.before(se,100),a.Ay.callDataDeletionRequest.before(je),p.Q.after(e=>e(re()))),(0,d.logInfo)(`${x} - usersync config updated for ${M.length} submodules: `,M.map(e=>e.submodule.name)))}function je(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(0,d.logInfo)("UserID: received data deletion request; deleting all stored IDs..."),M.forEach(e=>{if("function"==typeof e.submodule.onDataDeletionRequest)try{e.submodule.onDataDeletionRequest(e.config,e.idObj,...n)}catch(t){(0,d.logError)(`Error calling onDataDeletionRequest for ID submodule ${e.submodule.name}`,t)}Y(e)}),e.apply(this,n)}function xe(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Promise.resolve(e.apply(this,n))}}const Ae=(e,t)=>n=>{if(n[$.Dk]!==D.fW||!n[$.OI])return;const o=e.find(e=>{return t=e.name,n[$.iK]?.toLowerCase()===t?.toLowerCase();var t});if(o&&o.storage&&n[$.Zw]!==o.storage.type){const e=`${o.name} attempts to store data in ${n[$.Zw]} while configuration allows ${o.storage.type}.`;if(t)return{allow:!1,reason:e};(0,d.logWarn)(e)}};function Ce(e){let t,{mkDelay:n=y.cb}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};W=void 0,M=[],R=[],P=ee(),oe=function(){let{mkDelay:e=y.cb}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,y.v6)(),n=(0,y.v6)();let o,r,i=!1;function a(e){return r=J().fork(),null!=o&&o.reject(ne),o=(0,y.v6)(),y.U9.race([e,o.promise]).finally(r.startTiming("userId.total"))}const d=P,f=M;function g(e){return function(){if(d===P&&f===M)return e(...arguments)}}function m(){return E.SL.promise.finally(r.startTiming("userId.init.consent"))}let b=a(y.U9.all([u.Gc,t.promise]).then(m).then(g(()=>{we(d,f)})).then(()=>n.promise.finally(r.startTiming("userId.callbacks.pending"))).then(g(()=>{const e=d.submodules.filter(e=>(0,l.fp)(e.callback));if(e.length)return new y.U9(t=>z(e,t,d))})));return function(){let{refresh:o=!1,submoduleNames:r=null,ready:u=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return u&&!i&&(i=!0,t.resolve(),_>0?n.resolve():s.on(c.qY.AUCTION_END,function t(){s.off(c.qY.AUCTION_END,t),e(L).then(n.resolve)})),o&&i&&(b=a(b.catch(()=>null).then(m).then(g(()=>{const e=we(d,f.filter(e=>null==r||r.includes(e.submodule.name)),!0).filter(e=>null!=e.callback);if(e.length)return new y.U9(t=>z(e,t,d))})))),b}}({mkDelay:n}),null!=q&&q(),G=[],q=e.getConfig("userSync",e=>{const n=e.userSync;if(n&&(W=n.ppid,n.userIds)){const{autoRefresh:e=!1,retainConfig:o=!0,enforceStorageType:r}=n;R=n.userIds,L=(0,l.Et)(n.syncDelay)?n.syncDelay:k.qh.syncDelay,_=(0,l.Et)(n.auctionDelay)?n.auctionDelay:k.qh.auctionDelay,$e({retainConfig:o,autoRefresh:e}),t?.(),t=(0,v.qB)(S.Ue,"enforceStorageTypeRule",Ae(M.map(e=>{let{config:t}=e;return t}),r)),function(e,t){if(e){const n={},o=new Map(t.map(e=>e.aliasName?[e.aliasName,e.name]:[]));Object.keys(e).forEach(t=>{const r=(0,l.cy)(e[t])?[...e[t]].reverse():[];n[t]=r.map(e=>o.has(e)?o.get(e):e)}),F=n}else F={};P.refresh(),ke(t)}(n.idPriority,G),oe({ready:!0});const s=M.filter(e=>e.refreshIds);s.length&&be({submoduleNames:s.map(e=>e.submodule.name)})}}),a.Ay.makeBidRequests.after(ie),j.NE.before(ae),(0,i.xu)("getUserIds",ce),(0,i.xu)("getUserIdsAsEids",ue),(0,i.xu)("getEncryptedEidsForSource",xe(de)),(0,i.xu)("registerSignalSources",ge),(0,i.xu)("refreshUserIds",xe(be)),(0,i.xu)("getUserIdsAsync",xe(he)),(0,i.xu)("getUserIdsAsEidBySource",le)}Ce(r.$W),(0,u.xG)("userId",function(e){e.findRootDomain=w.S,(G||[]).find(t=>t.name===e.name)||(G.push(e),E.o2.register(D.fW,e.name,e.gvlid),$e(),oe({refresh:!0,submoduleNames:[e.name]}))},{postInstallAllowed:!0}),(0,o.E)("userId")}},e=>{e.O(0,[60802,37769,40315,51085],()=>{return t=57355,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[54314],{65084:(e,s,t)=>{t(28157).y.register("userId",{disclosures:{"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/userId-optout.json":{timestamp:"2025-12-12T14:14:51.600Z",disclosures:[{identifier:"_pbjs_id_optout",type:"cookie",maxAgeSeconds:31536e3,cookieRefresh:!1,purposes:[]},{identifier:"_pbjs_id_optout",type:"web",purposes:[]}]}},components:[{componentType:"prebid",componentName:"userId",disclosureURL:"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/userId-optout.json"}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return s=65084,e(e.s=s);var s});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[59489],{15451:(s,e,o)=>{o(28157).y.register("adfBidAdapter",{disclosures:{"https://site.adform.com/assets/devicestorage.json":{timestamp:"2025-12-12T14:14:53.154Z",disclosures:[]}},components:[{componentType:"bidder",componentName:"adf",disclosureURL:"https://site.adform.com/assets/devicestorage.json"},{componentType:"bidder",componentName:"adformOpenRTB",aliasOf:"adf",disclosureURL:"https://site.adform.com/assets/devicestorage.json"},{componentType:"bidder",componentName:"adform",aliasOf:"adf",disclosureURL:"https://site.adform.com/assets/devicestorage.json"}]})}},s=>{s.O(0,[36784,60802,37769,40315,51085],()=>{return e=15451,s(s.s=e);var e});s.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[29697],{29723:(e,s,t)=>{t(28157).y.register("ads_interactiveBidAdapter",{disclosures:{"https://adsinteractive.com/vendor.json":{timestamp:"2025-12-12T14:14:56.417Z",disclosures:[]}},components:[{componentType:"bidder",componentName:"ads_interactive",disclosureURL:"https://adsinteractive.com/vendor.json"},{componentType:"bidder",componentName:"adsinteractive",aliasOf:"ads_interactive",disclosureURL:null}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return s=29723,e(e.s=s);var s});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[3348],{90030:(e,s,o)=>{o(28157).y.register("appnexusBidAdapter",{disclosures:{"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json":{timestamp:"2025-12-12T14:15:01.922Z",disclosures:[]},"https://tcf.emetriq.de/deviceStorageDisclosure.json":{timestamp:"2025-12-12T14:15:01.293Z",disclosures:[]},"https://beintoo-support.b-cdn.net/deviceStorage.json":{timestamp:"2025-12-12T14:15:01.319Z",disclosures:[]},"https://projectagora.net/1032_deviceStorageDisclosure.json":{timestamp:"2025-12-12T14:15:01.423Z",disclosures:[]},"https://adzymic.com/tcf.json":{timestamp:"2025-12-12T14:15:01.922Z",disclosures:[]}},components:[{componentType:"bidder",componentName:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"appnexusAst",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"emetriq",aliasOf:"appnexus",disclosureURL:"https://tcf.emetriq.de/deviceStorageDisclosure.json"},{componentType:"bidder",componentName:"pagescience",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"gourmetads",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"newdream",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"matomy",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"featureforward",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"oftmedia",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"adasta",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"beintoo",aliasOf:"appnexus",disclosureURL:"https://beintoo-support.b-cdn.net/deviceStorage.json"},{componentType:"bidder",componentName:"projectagora",aliasOf:"appnexus",disclosureURL:"https://projectagora.net/1032_deviceStorageDisclosure.json"},{componentType:"bidder",componentName:"stailamedia",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"uol",aliasOf:"appnexus",disclosureURL:"https://acdn.adnxs.com/gvl/1d/xandrdevicestoragedisclosures.json"},{componentType:"bidder",componentName:"adzymic",aliasOf:"appnexus",disclosureURL:"https://adzymic.com/tcf.json"}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return s=90030,e(e.s=s);var s});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[94498],{27220:(e,o,s)=>{s(28157).y.register("criteoBidAdapter",{disclosures:{"https://privacy.criteo.com/iab-europe/tcfv2/disclosure":{timestamp:"2025-12-12T14:15:06.162Z",disclosures:[{identifier:"criteo_fast_bid",type:"web",maxAgeSeconds:604800,purposes:[]},{identifier:"criteo_fast_bid_expires",type:"web",maxAgeSeconds:604800,purposes:[]},{identifier:"cto_bundle",type:"cookie",maxAgeSeconds:33696e3,cookieRefresh:!1,purposes:[1,2,3,4,7,9,10]},{identifier:"cto_optout",type:"cookie",maxAgeSeconds:33696e3,cookieRefresh:!1,purposes:[1]},{identifier:"cto_bundle",type:"web",maxAgeSeconds:null,purposes:[1,2,3,4,7,9,10]},{identifier:"cto_optout",type:"web",maxAgeSeconds:null,purposes:[]}]}},components:[{componentType:"bidder",componentName:"criteo",disclosureURL:"https://privacy.criteo.com/iab-europe/tcfv2/disclosure"}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return o=27220,e(e.s=o);var o});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[98633],{44371:(e,t,s)=>{s(28157).y.register("digitalMatterBidAdapter",{disclosures:{"https://digitalmatter.ai/disclosures.json":{timestamp:"2025-12-12T14:15:07.729Z",disclosures:[]}},components:[{componentType:"bidder",componentName:"digitalMatter",disclosureURL:"https://digitalmatter.ai/disclosures.json"},{componentType:"bidder",componentName:"dichange",aliasOf:"digitalMatter",disclosureURL:null},{componentType:"bidder",componentName:"digitalmatter",aliasOf:"digitalMatter",disclosureURL:null}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return t=44371,e(e.s=t);var t});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[9204],{20054:(s,e,o)=>{o(28157).y.register("rubiconBidAdapter",{disclosures:{"https://gdpr.rubiconproject.com/dvplus/devicestoragedisclosure.json":{timestamp:"2025-12-12T14:15:30.589Z",disclosures:[]}},components:[{componentType:"bidder",componentName:"rubicon",disclosureURL:"https://gdpr.rubiconproject.com/dvplus/devicestoragedisclosure.json"}]})}},s=>{s.O(0,[36784,60802,37769,40315,51085],()=>{return e=20054,s(s.s=e);var e});s.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[29247],{61281:(e,s,t)=>{t(28157).y.register("teadsBidAdapter",{disclosures:{"https://iab-cookie-disclosure.teads.tv/deviceStorage.json":{timestamp:"2025-12-12T14:15:38.638Z",disclosures:[]}},components:[{componentType:"bidder",componentName:"teads",disclosureURL:"https://iab-cookie-disclosure.teads.tv/deviceStorage.json"}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return s=61281,e(e.s=s);var s});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[71096],{29866:(e,o,s)=>{s(28157).y.register("criteoIdSystem",{disclosures:{"https://privacy.criteo.com/iab-europe/tcfv2/disclosure":{timestamp:"2025-12-12T14:15:06.180Z",disclosures:[{identifier:"criteo_fast_bid",type:"web",maxAgeSeconds:604800,purposes:[]},{identifier:"criteo_fast_bid_expires",type:"web",maxAgeSeconds:604800,purposes:[]},{identifier:"cto_bundle",type:"cookie",maxAgeSeconds:33696e3,cookieRefresh:!1,purposes:[1,2,3,4,7,9,10]},{identifier:"cto_optout",type:"cookie",maxAgeSeconds:33696e3,cookieRefresh:!1,purposes:[1]},{identifier:"cto_bundle",type:"web",maxAgeSeconds:null,purposes:[1,2,3,4,7,9,10]},{identifier:"cto_optout",type:"web",maxAgeSeconds:null,purposes:[]}]}},components:[{componentType:"userId",componentName:"criteo",disclosureURL:"https://privacy.criteo.com/iab-europe/tcfv2/disclosure"}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return o=29866,e(e.s=o);var o});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[12478],{31192:(e,s,n)=>{n(28157).y.register("pubProvidedIdSystem",{disclosures:{},components:[{componentType:"userId",componentName:"pubProvidedId",disclosureURL:null}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return s=31192,e(e.s=s);var s});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[92389],{48191:(e,s,d)=>{d(28157).y.register("sharedIdSystem",{disclosures:{"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/sharedId-optout.json":{timestamp:"2025-12-12T14:15:33.892Z",disclosures:[{identifier:"_pubcid_optout",type:"cookie",maxAgeSeconds:31536e3,cookieRefresh:!1,purposes:[]},{identifier:"_pubcid_optout",type:"web",purposes:[]},{identifier:"_pubcid_optout_exp",type:"web",purposes:[]}]}},components:[{componentType:"userId",componentName:"sharedId",disclosureURL:"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/sharedId-optout.json"},{componentType:"userId",componentName:"pubCommonId",disclosureURL:"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/sharedId-optout.json",aliasOf:"sharedId"}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return s=48191,e(e.s=s);var s});e.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[32973],{56055:(s,e,t)=>{t(28157).y.register("teadsIdSystem",{disclosures:{"https://iab-cookie-disclosure.teads.tv/deviceStorage.json":{timestamp:"2025-12-12T14:15:38.696Z",disclosures:[]}},components:[{componentType:"userId",componentName:"teadsId",disclosureURL:"https://iab-cookie-disclosure.teads.tv/deviceStorage.json"}]})}},s=>{s.O(0,[36784,60802,37769,40315,51085],()=>{return e=56055,s(s.s=e);var e});s.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[84256],{63770:(s,e,n)=>{n(28157).y.register("uid2IdSystem",{disclosures:{},components:[{componentType:"userId",componentName:"uid2",disclosureURL:null}]})}},s=>{s.O(0,[36784,60802,37769,40315,51085],()=>{return e=63770,s(s.s=e);var e});s.O()}]);
(self.pbjsChunk=self.pbjsChunk||[]).push([[68574],{76528:(e,s,i)=>{i(28157).y.register("prebid-core",{disclosures:{"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/probes.json":{timestamp:"2025-12-12T14:14:51.597Z",disclosures:[{identifier:"_rdc*",type:"cookie",maxAgeSeconds:10,cookieRefresh:!1,purposes:[1]},{identifier:"prebid.cookieTest",type:"web",purposes:[1]}]},"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/debugging.json":{timestamp:"2025-12-12T14:14:51.598Z",disclosures:[{identifier:"__*_debugging__",type:"web",purposes:[1]}]}},components:[{componentType:"prebid",componentName:"fpdEnrichment",disclosureURL:"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/probes.json"},{componentType:"prebid",componentName:"debugging",disclosureURL:"https://cdn.jsdelivr.net/gh/prebid/Prebid.js/metadata/disclosures/prebid/debugging.json"}]})}},e=>{e.O(0,[36784,60802,37769,40315,51085],()=>{return s=76528,e(e.s=s);var s});e.O()}]);
})(),pbjs.processQueue();