cdn.intergi.com
Open in
urlscan Pro
2600:9000:211e:5200:14:2602:6e80:93a1
Public Scan
URL:
https://cdn.intergi.com/prebid/prebid.js.br
Submission: On August 12 via api from IT — Scanned from IT
Submission: On August 12 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
/*! For license information please see prebid.js.LICENSE.txt */ (()=>{var __webpack_modules__={4511:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(5458),_src_prebidGlobal_js__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3831),_src_utils_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(7575),_src_utils_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(433),_src_adloader_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4286),_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(8911),_src_config_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(8718),_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3233),criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(8507),_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(4128),_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(556),_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2607),_src_Renderer_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(2487),_src_video_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4781),_src_ajax_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(2330);function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var GVLID=91,ADAPTER_VERSION=36,BIDDER_CODE="criteo",CDB_ENDPOINT="https://bidder.criteo.com/cdb",PROFILE_ID_INLINE=207,PROFILE_ID_PUBLISHERTAG=185,storage=(0,_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__.vM)({bidderCode:BIDDER_CODE}),LOG_PREFIX="Criteo: ",FAST_BID_VERSION_PLACEHOLDER="%FAST_BID_VERSION%",FAST_BID_VERSION_CURRENT=144,FAST_BID_VERSION_LATEST="latest",FAST_BID_VERSION_NONE="none",PUBLISHER_TAG_URL_TEMPLATE="https://static.criteo.net/js/ld/publishertag.prebid"+FAST_BID_VERSION_PLACEHOLDER+".js",PUBLISHER_TAG_OUTSTREAM_SRC="https://static.criteo.net/js/ld/publishertag.renderer.js",FAST_BID_PUBKEY_E=65537,FAST_BID_PUBKEY_N="ztQYwCE5BU7T9CDM5he6rKoabstXRmkzx54zFPZkWbK530dwtLBDeaWBMxHBUT55CYyboR/EZ4efghPi3CoNGfGWezpjko9P6p2EwGArtHEeS4slhu/SpSIFMjG6fdrpRoNuIAMhq1Z+Pr/+HOd1pThFKeGFr2/NhtAg+TXAzaU=",OPTOUT_COOKIE_NAME="cto_optout",BUNDLE_COOKIE_NAME="cto_bundle",GUID_RETENTION_TIME_HOUR=9360,OPTOUT_RETENTION_TIME_HOUR=43200,spec={code:BIDDER_CODE,gvlid:GVLID,supportedMediaTypes:[_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.D4,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.G_,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.s6],getUserSyncs:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=i.gppString,a=void 0===o?"":o,s=i.applicableSections,c=void 0===s?[]:s;if(e.iframeEnabled&&(0,_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_3__.C)(n)){if(canFastBid(_src_config_js__WEBPACK_IMPORTED_MODULE_4__.$W.getConfig("criteo.fastBidVersion")))return[];var d=(0,_src_refererDetection_js__WEBPACK_IMPORTED_MODULE_5__.EN)(),u="criteoPrebidAdapter",l=[];if(l.push("origin=".concat(u)),l.push("topUrl=".concat(d.domain)),n&&(n.gdprApplies&&l.push("gdpr=".concat(1==n.gdprApplies?1:0)),n.consentString&&l.push("gdpr_consent=".concat(n.consentString))),r&&l.push("us_privacy=".concat(r)),l.push("gpp=".concat(a)),Array.isArray(c)){var p,f=_createForOfIteratorHelper(c);try{for(f.s();!(p=f.n()).done;){var v=p.value;l.push("gpp_sid=".concat(v))}}catch(e){f.e(e)}finally{f.f()}}var g=Math.random().toString(),m={bundle:readFromAllStorages(BUNDLE_COOKIE_NAME),cw:storage.cookiesAreEnabled(),lsw:storage.localStorageIsEnabled(),optoutCookie:readFromAllStorages(OPTOUT_COOKIE_NAME),origin:u,requestId:g,tld:d.domain,topUrl:d.domain,version:"8.45.0".replace(/\./g,"_")};window.addEventListener("message",(function e(t){if(t.data&&"https://gum.criteo.com"==t.origin&&t.data.requestId===g){this.removeEventListener("message",e),t.stopImmediatePropagation();var n=t.data;n.optout?(deleteFromAllStorages(BUNDLE_COOKIE_NAME),saveOnAllStorages(OPTOUT_COOKIE_NAME,!0,OPTOUT_RETENTION_TIME_HOUR)):n.bundle&&saveOnAllStorages(BUNDLE_COOKIE_NAME,n.bundle,GUID_RETENTION_TIME_HOUR)}}),!0);var h=JSON.stringify(m).replace(/"/g,"%22");return[{type:"iframe",url:"https://gum.criteo.com/syncframe?".concat(l.join("&"),"#").concat(h)}]}if(e.pixelEnabled&&(0,_src_utils_gpdr_js__WEBPACK_IMPORTED_MODULE_3__.C)(n)){var b=[];if(b.push("profile=207"),n&&(!0===n.gdprApplies&&b.push("gdprapplies=true"),n.consentString&&b.push("gdpr=".concat(n.consentString))),r&&b.push("ccpa=".concat(r)),b.push("gpp=".concat(a)),Array.isArray(c)){var y,_=_createForOfIteratorHelper(c);try{for(_.s();!(y=_.n()).done;){var A=y.value;b.push("gpp_sid=".concat(A))}}catch(e){_.e(e)}finally{_.f()}}return[{type:"image",url:"https://ssp-sync.criteo.com/user-sync/redirect?".concat(b.join("&"))}]}return[]},isBidRequestValid:function(e){return!(!e||!e.params||!e.params.zoneId&&!e.params.networkId||hasVideoMediaType(e)&&!hasValidVideoMediaType(e))},buildRequests:function(e,t){var n,r,i,o,a=t.ortb2||{};Object.assign(t,{publisherExt:null===(n=a.site)||void 0===n?void 0:n.ext,userExt:null===(r=a.user)||void 0===r?void 0:r.ext,ceh:_src_config_js__WEBPACK_IMPORTED_MODULE_4__.$W.getConfig("criteo.ceh"),coppa:_src_config_js__WEBPACK_IMPORTED_MODULE_4__.$W.getConfig("coppa")});var s=_src_config_js__WEBPACK_IMPORTED_MODULE_4__.$W.getConfig("criteo.fastBidVersion"),c=canFastBid(s);if(!publisherTagAvailable()&&c){window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid();var d=getFastBidUrl(s);setTimeout((function(){(0,_src_adloader_js__WEBPACK_IMPORTED_MODULE_6__.R)(d,BIDDER_CODE)}),t.timeout)}if(publisherTagAvailable()){var u=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,e,t,"8.45.0",{createOutstreamVideoRenderer});i=u.buildCdbUrl(),o=u.buildCdbRequest()}else{var l=buildContext(e,t);i=buildCdbUrl(l),o=buildCdbRequest(l,e,t)}if(o)return{method:"POST",url:i,data:o,bidRequests:e}},interpretResponse:function(e,t){var n,r=e.body||e;if(publisherTagAvailable()){var i=Criteo.PubTag.Adapters.Prebid.GetAdapter(t);if(i)return i.interpretResponse(r,t)}var o=[],a=[];return r&&r.slots&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.cy)(r.slots)&&r.slots.forEach((function(n){var i=getAssociatedBidRequest(t.bidRequests,n);if(i){var a,s,c,d,u=i.bidId,l={requestId:u,cpm:n.cpm,currency:n.currency,netRevenue:!0,ttl:n.ttl||60,creativeId:n.creativecode,width:n.width,height:n.height,dealId:n.deal};if(null!==(a=r.ext)&&void 0!==a&&null!==(a=a.paf)&&void 0!==a&&a.transmission&&null!==(s=n.ext)&&void 0!==s&&null!==(s=s.paf)&&void 0!==s&&s.content_id){var p={content_id:n.ext.paf.content_id,transmission:e.ext.paf.transmission};l.meta=Object.assign({},l.meta,{paf:p})}n.adomain&&(l.meta=Object.assign({},l.meta,{advertiserDomains:[n.adomain].flat()})),null!==(c=n.ext)&&void 0!==c&&null!==(c=c.meta)&&void 0!==c&&c.networkName&&(l.meta=Object.assign({},l.meta,{networkName:n.ext.meta.networkName})),null!==(d=n.ext)&&void 0!==d&&d.dsa&&(l.meta=Object.assign({},l.meta,{dsa:n.ext.dsa})),n.native?i.params.nativeCallback?l.ad=createNativeAd(u,n.native,i.params.nativeCallback):(l.native=createPrebidNativeAd(n.native),l.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.s6):n.video?(l.vastUrl=n.displayurl,l.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.G_,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(i,"mediaTypes.video.context")===_src_video_js__WEBPACK_IMPORTED_MODULE_9__.H6&&(l.renderer=createOutstreamVideoRenderer(n))):l.ad=n.creative,o.push(l)}})),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.cy)(null===(n=r.ext)||void 0===n?void 0:n.igi)&&r.ext.igi.forEach((function(e){(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.cy)(null==e?void 0:e.igs)&&e.igs.forEach((function(e){a.push(e)}))})),a.length?{bids:o,fledgeAuctionConfigs:a}:o},onTimeout:function(e){if(publisherTagAvailable()&&Array.isArray(e)){var t=[];e.forEach((function(e){-1===t.indexOf(e.auctionId)&&(t.push(e.auctionId),Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleBidTimeout())}))}},onBidWon:function(e){publisherTagAvailable()&&e&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleBidWon(e)},onSetTargeting:function(e){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(e.auctionId).handleSetTargeting(e)},onDataDeletionRequest:function(e){var t=readFromAllStorages(BUNDLE_COOKIE_NAME);t&&(deleteFromAllStorages(BUNDLE_COOKIE_NAME),(0,_src_ajax_js__WEBPACK_IMPORTED_MODULE_10__.RD)("https://privacy.criteo.com/api/privacy/datadeletionrequest",null,JSON.stringify({publisherUserId:t}),{contentType:"application/json",method:"POST"}))}};function readFromAllStorages(e){var t=storage.getCookie(e),n=storage.getDataFromLocalStorage(e);return t||n||void 0}function saveOnAllStorages(e,t,n){var r=new Date;r.setTime(r.getTime()+60*n*60*1e3);var i="expires=".concat(r.toUTCString());storage.setCookie(e,t,i),storage.setDataInLocalStorage(e,t)}function deleteFromAllStorages(e){storage.setCookie(e,"",0),storage.removeDataFromLocalStorage(e)}function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(e,t){var n,r="";t&&t.refererInfo&&(r=t.refererInfo.page);var i=(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Dl)(null==t||null===(n=t.refererInfo)||void 0===n?void 0:n.topmostLocation).search,o={url:r,debug:"1"===i.pbt_debug,noLog:"1"===i.pbt_nolog,amp:!1};return e.forEach((function(e){"amp"===e.params.integrationMode&&(o.amp=!0)})),o}function buildCdbUrl(e){var t=CDB_ENDPOINT;t+="?profileId="+PROFILE_ID_INLINE,t+="&av="+String(ADAPTER_VERSION),t+="&wv="+encodeURIComponent("8.45.0"),t+="&cb="+String(Math.floor(99999999999*Math.random())),storage.localStorageIsEnabled()?t+="&lsavail=1":t+="&lsavail=0",e.amp&&(t+="&im=1"),e.debug&&(t+="&debug=1"),e.noLog&&(t+="&nolog=1");var n=readFromAllStorages(BUNDLE_COOKIE_NAME);return n&&(t+="&bundle=".concat(n)),readFromAllStorages(OPTOUT_COOKIE_NAME)&&(t+="&optout=1"),t}function checkNativeSendId(e){return!(e.nativeParams&&(e.nativeParams.image&&(!0!==e.nativeParams.image.sendId||!0===e.nativeParams.image.sendTargetingKeys)||e.nativeParams.icon&&(!0!==e.nativeParams.icon.sendId||!0===e.nativeParams.icon.sendTargetingKeys)||e.nativeParams.clickUrl&&(!0!==e.nativeParams.clickUrl.sendId||!0===e.nativeParams.clickUrl.sendTargetingKeys)||e.nativeParams.displayUrl&&(!0!==e.nativeParams.displayUrl.sendId||!0===e.nativeParams.displayUrl.sendTargetingKeys)||e.nativeParams.privacyLink&&(!0!==e.nativeParams.privacyLink.sendId||!0===e.nativeParams.privacyLink.sendTargetingKeys)||e.nativeParams.privacyIcon&&(!0!==e.nativeParams.privacyIcon.sendId||!0===e.nativeParams.privacyIcon.sendTargetingKeys)))}function buildCdbRequest(e,t,n){var r,i,o,a,s,c,d,u,l,p,f,v,g,m,h,b=Object.assign({},{coppa:!0===n.coppa?1:!1===n.coppa?0:void 0},null===(r=n.ortb2)||void 0===r?void 0:r.regs),y={id:(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.lk)(),publisher:{url:e.url,ext:n.publisherExt},regs:b,slots:t.map((function(e){var t,r,i;m||(m=e.userIdAsEids),f=e.params.networkId||f,v=e.params.pubid||v,g=e.schain||g;var o={slotid:e.bidId,impid:e.adUnitCode,transactionid:null===(t=e.ortb2Imp)||void 0===t||null===(t=t.ext)||void 0===t?void 0:t.tid};if(e.params.zoneId&&(o.zoneid=e.params.zoneId),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"ortb2Imp.ext")&&(o.ext=e.ortb2Imp.ext),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"ortb2Imp.rwdd")&&(o.rwdd=e.ortb2Imp.rwdd),e.params.ext&&(o.ext=Object.assign({},o.ext,e.params.ext)),null!==(r=e.nativeOrtbRequest)&&void 0!==r&&r.assets&&(o.ext=Object.assign({},o.ext,{assets:e.nativeOrtbRequest.assets})),e.params.uid&&(o.ext=Object.assign({},o.ext,{bidder:{uid:e.params.uid}})),e.params.publisherSubId&&(o.publishersubid=e.params.publisherSubId),(e.params.nativeCallback||hasNativeMediaType(e))&&(o.native=!0,checkNativeSendId(e)||(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.JE)(LOG_PREFIX+"all native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, displayUrl, privacyLink, privacyIcon)")),hasBannerMediaType(e)?o.sizes=parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"mediaTypes.banner.sizes"),parseSize):o.sizes=[],hasVideoMediaType(e)){var a={context:e.mediaTypes.video.context,playersizes:parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"mediaTypes.video.playerSize"),parseSize),mimes:e.mediaTypes.video.mimes,protocols:e.mediaTypes.video.protocols,maxduration:e.mediaTypes.video.maxduration,api:e.mediaTypes.video.api,skip:e.mediaTypes.video.skip,placement:e.mediaTypes.video.placement,minduration:e.mediaTypes.video.minduration,playbackmethod:e.mediaTypes.video.playbackmethod,startdelay:e.mediaTypes.video.startdelay,plcmt:e.mediaTypes.video.plcmt,w:e.mediaTypes.video.w,h:e.mediaTypes.video.h,linearity:e.mediaTypes.video.linearity,skipmin:e.mediaTypes.video.skipmin,skipafter:e.mediaTypes.video.skipafter,minbitrate:e.mediaTypes.video.minbitrate,maxbitrate:e.mediaTypes.video.maxbitrate,delivery:e.mediaTypes.video.delivery,pos:e.mediaTypes.video.pos,playbackend:e.mediaTypes.video.playbackend,adPodDurationSec:e.mediaTypes.video.adPodDurationSec,durationRangeSec:e.mediaTypes.video.durationRangeSec},s=e.params.video;void 0!==s&&(a.skip=a.skip||s.skip||0,a.placement=a.placement||s.placement,a.minduration=a.minduration||s.minduration,a.playbackmethod=a.playbackmethod||s.playbackmethod,a.startdelay=a.startdelay||s.startdelay||0),o.video=a}return enrichSlotWithFloors(o,e),!n.fledgeEnabled&&null!==(i=o.ext)&&void 0!==i&&i.ae&&delete o.ext.ae,o}))};return f&&(y.publisher.networkid=f),v&&(y.publisher.id=v),y.source={tid:null===(i=n.ortb2)||void 0===i||null===(i=i.source)||void 0===i?void 0:i.tid},g&&(y.source.ext={schain:g}),y.user=(null===(o=n.ortb2)||void 0===o?void 0:o.user)||{},y.site=(null===(a=n.ortb2)||void 0===a?void 0:a.site)||{},y.app=(null===(s=n.ortb2)||void 0===s?void 0:s.app)||{},y.device=(null===(c=n.ortb2)||void 0===c?void 0:c.device)||{},n&&n.ceh&&(y.user.ceh=n.ceh),n&&n.gdprConsent&&(y.gdprConsent={},void 0!==n.gdprConsent.gdprApplies&&(y.gdprConsent.gdprApplies=!!n.gdprConsent.gdprApplies),y.gdprConsent.version=n.gdprConsent.apiVersion,void 0!==n.gdprConsent.consentString&&(y.gdprConsent.consentData=n.gdprConsent.consentString)),n&&n.uspConsent&&(y.user.uspIab=n.uspConsent),n&&null!==(d=n.ortb2)&&void 0!==d&&null!==(d=d.device)&&void 0!==d&&d.sua&&(y.user.ext=y.user.ext||{},y.user.ext.sua=(null===(h=n.ortb2)||void 0===h||null===(h=h.device)||void 0===h?void 0:h.sua)||{}),m&&(y.user.ext=y.user.ext||{},y.user.ext.eids=(0,_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_11__.A)(m)),n&&null!==(u=n.ortb2)&&void 0!==u&&u.bcat&&(y.bcat=n.ortb2.bcat),n&&null!==(l=n.ortb2)&&void 0!==l&&l.badv&&(y.badv=n.ortb2.badv),n&&null!==(p=n.ortb2)&&void 0!==p&&p.bapp&&(y.bapp=n.ortb2.bapp),y}function parseSizes(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e};return null==e?[]:Array.isArray(e[0])?e.map((function(e){return t(e)})):[t(e)]}function parseSize(e){return e[0]+"x"+e[1]}function hasVideoMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"mediaTypes.video")}function hasBannerMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"mediaTypes.banner")}function hasNativeMediaType(e){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"mediaTypes.native")}function hasValidVideoMediaType(e){var t=!0;return["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach((function(n){void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"mediaTypes.video."+n)&&void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(e,"params.video."+n)&&(t=!1,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.vV)("Criteo Bid Adapter: mediaTypes.video."+n+" is required"))})),t}function createPrebidNativeAd(e){return{sendTargetingKeys:!1,title:e.products[0].title,body:e.products[0].description,sponsoredBy:e.advertiser.description,icon:e.advertiser.logo,image:e.products[0].image,clickUrl:e.products[0].click_url,privacyLink:e.privacy.optout_click_url,privacyIcon:e.privacy.optout_image_url,cta:e.products[0].call_to_action,price:e.products[0].price,impressionTrackers:e.impression_pixels.map((function(e){return e.url}))}}function createNativeAd(e,t,n){var r="criteo_prebid_native_slots";return window[r]=window[r]||{},window[r][e]={callback:n,payload:t},'\n<script type="text/javascript">\nfor (var i = 0; i < 10; ++i) {\n var slots = window.parent.'.concat(r,';\n if(!slots){continue;}\n var responseSlot = slots["').concat(e,'"];\n responseSlot.callback(responseSlot.payload);\n break;\n}\n<\/script>')}function pickAvailableGetFloorFunc(e){if(e.getFloor)return e.getFloor;if(e.params.bidFloor&&e.params.bidFloorCur)try{var t=parseFloat(e.params.bidFloor);return function(){return{currency:e.params.bidFloorCur,floor:t}}}catch(e){}}function enrichSlotWithFloors(e,t){try{var n,r,i,o={},a=pickAvailableGetFloorFunc(t);if(a)null!==(n=t.mediaTypes)&&void 0!==n&&n.banner&&(o.banner={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(t,"mediaTypes.banner.sizes")).forEach((function(e){return o.banner[parseSize(e).toString()]=a.call(t,{size:e,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.D4})}))),null!==(r=t.mediaTypes)&&void 0!==r&&r.video&&(o.video={},parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_8__.A)(t,"mediaTypes.video.playerSize")).forEach((function(e){return o.video[parseSize(e).toString()]=a.call(t,{size:e,mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.G_})}))),null!==(i=t.mediaTypes)&&void 0!==i&&i.native&&(o.native={},o.native["*"]=a.call(t,{size:"*",mediaType:_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.s6})),Object.keys(o).length>0&&(e.ext||(e.ext={}),Object.assign(e.ext,{floors:o}))}catch(e){(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.vV)("Could not parse floors from Prebid: "+e)}}function canFastBid(e){return e!==FAST_BID_VERSION_NONE}function getFastBidUrl(e){var t;return e===FAST_BID_VERSION_LATEST?t="":e?(String(e).split(".")[0]<102&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.JE)("Specifying a Fastbid version which is not supporting version selection."),t="."+e):t="."+FAST_BID_VERSION_CURRENT,PUBLISHER_TAG_URL_TEMPLATE.replace(FAST_BID_VERSION_PLACEHOLDER,t)}function createOutstreamVideoRenderer(e){if(void 0!==e.ext.videoPlayerConfig&&void 0!==e.ext.videoPlayerType){var t=_src_Renderer_js__WEBPACK_IMPORTED_MODULE_12__.A4.install({url:PUBLISHER_TAG_OUTSTREAM_SRC,config:{documentResolver:function(e,t,n){return null!=n?n:t}}});return t.setRender((function(t,n){var r={slotid:e.impid,vastUrl:e.displayurl,vastXml:e.creative,documentContext:n},i=e.ext.videoPlayerConfig;window.CriteoOutStream[e.ext.videoPlayerType].play(r,i)})),t}}function getAssociatedBidRequest(e,t){var n,r=_createForOfIteratorHelper(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.adUnitCode===t.impid){var o,a;if(i.params.zoneId&&parseInt(i.params.zoneId)===t.zoneid)return i;if(t.native){if(null!==(a=i.mediaTypes)&&void 0!==a&&a.native||i.nativeParams)return i}else if(t.video){var s;if(null!==(s=i.mediaTypes)&&void 0!==s&&s.video)return i}else if(null!==(o=i.mediaTypes)&&void 0!==o&&o.banner||i.sizes)return i}}}catch(e){r.e(e)}finally{r.f()}}function tryGetCriteoFastBid(){try{var fastBidStorageKey="criteo_fast_bid",hashPrefix="// Hash: ",fastBidFromStorage=storage.getDataFromLocalStorage(fastBidStorageKey);if(null!==fastBidFromStorage){var firstLineEndPosition=fastBidFromStorage.indexOf("\n"),firstLine=fastBidFromStorage.substr(0,firstLineEndPosition).trim();if(firstLine.substr(0,hashPrefix.length)!==hashPrefix)(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.JE)("No hash found in FastBid"),storage.removeDataFromLocalStorage(fastBidStorageKey);else{var publisherTagHash=firstLine.substr(hashPrefix.length),publisherTag=fastBidFromStorage.substr(firstLineEndPosition+1);(0,criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__.M)(publisherTag,publisherTagHash,FAST_BID_PUBKEY_N,FAST_BID_PUBKEY_E)?((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.fH)("Using Criteo FastBid"),eval(publisherTag)):((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.JE)("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))}}}catch(e){}}(0,_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_13__.a$)(spec),(0,_src_prebidGlobal_js__WEBPACK_IMPORTED_MODULE_14__.E)("criteoBidAdapter")},2487:(e,t,n)=>{"use strict";n.d(t,{A4:()=>d,J7:()=>u,Pg:()=>l});var r=n(4286),i=n(7575),o=n(433),a=n(5455),s=(0,n(3831).m)(),c="outstream";function d(e){var t=this,n=e.url,d=e.config,u=e.id,l=e.callback,p=e.loaded,f=e.adUnitCode,v=e.renderNow;this.url=n,this.config=d,this.handlers={},this.id=u,this.renderNow=v,this.loaded=p,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):(0,i.vV)("Commands given to Renderer.push must be wrapped in a function")},this.callback=l||function(){t.loaded=!0,t.process()},this.render=function(){var e=this,t=arguments,d=function(){e._render?e._render.apply(e,t):(0,i.JE)("No render function was provided, please use .setRender on the renderer")};!function(e){var t=s.adUnits,n=(0,a.I6)(t,(function(t){return t.code===e}));if(!n)return!1;var r=(0,o.A)(n,"renderer"),i=!!(r&&r.url&&r.render),c=(0,o.A)(n,"mediaTypes.video.renderer"),d=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||d&&!0!==c.backupOnly)}(f)?v?d():(this.cmd.unshift(d),(0,r.R)(n,c,this.callback,this.documentContext)):((0,i.JE)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(f)),d())}.bind(this)}function u(e){return!(!e||!e.url&&!e.renderNow)}function l(e,t,n){var 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)}d.install=function(e){return new d({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode,renderNow:e.renderNow})},d.prototype.getConfig=function(){return this.config},d.prototype.setRender=function(e){this._render=e},d.prototype.setEventHandlers=function(e){this.handlers=e},d.prototype.handleVideoEvent=function(e){var t=e.id,n=e.eventName;"function"==typeof this.handlers[n]&&this.handlers[n](),(0,i.OG)("Prebid Renderer event for id ".concat(t," type ").concat(n))},d.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.vV)("Error processing Renderer command: ",e)}}},3973:(e,t,n)=>{"use strict";n.d(t,{DL:()=>u,Ml:()=>i,Ue:()=>r,VJ:()=>p,hE:()=>l,hq:()=>d,mo:()=>c,qX:()=>o,uc:()=>s,yl:()=>a});var r="accessDevice",i="syncUser",o="enrichUfpd",a="enrichEids",s="fetchBids",c="reportAnalytics",d="transmitEids",u="transmitUfpd",l="transmitPreciseGeo",p="transmitTid"},6575:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});var r=n(8256),i=(0,n(6642).ZI)((function(e){return r.Ay.resolveAlias(e)}))},3883:(e,t,n)=>{"use strict";n.d(t,{Tn:()=>a,fW:()=>o,tW:()=>i,tp:()=>r});var r="prebid",i="bidder",o="userId",a="analytics"},6642:(e,t,n)=>{"use strict";n.d(t,{Dk:()=>s,Ii:()=>a,TQ:()=>v,U3:()=>m,XG:()=>l,ZI:()=>g,Zw:()=>u,bt:()=>p,e3:()=>f,iK:()=>c,q7:()=>d});var r=n(4467),i=n(3883),o=n(6439),a="component",s=a+"Type",c=a+"Name",d="adapterCode",u="storageType",l="configName",p="syncType",f="syncUrl",v="_config";function g(e){return function(t,n,o){var u=(0,r.A)((0,r.A)((0,r.A)({},s,t),c,n),a,"".concat(t,".").concat(n));return t===i.tW&&(u[d]=e(n)),m(Object.assign(u,o))}}var m=(0,o.A_)("sync",(function(e){return e}))},6848:(e,t,n)=>{"use strict";n.d(t,{$p:()=>h});var r=n(2284),i=n(296),o=n(433),a=n(8718),s=n(7253),c=n(3973);function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u=["data","ext.data","yob","gender","keywords","kwarray","id","buyeruid","customdata"].map((function(e){return"user.".concat(e)})).concat("device.ext.cdep"),l=["user.eids","user.ext.eids"],p=["user.geo.lat","user.geo.lon","device.geo.lat","device.geo.lon"];function f(e){return Object.assign({get:function(){},run:function(e,t,n,i,o){var a=n&&n[i];if(function(e){return null!=e&&("object"!==(0,r.A)(e)||Object.keys(e).length>0)}(a)&&o()){var s=this.get(a);void 0===s?delete n[i]:n[i]=s}}},e)}function v(e){return e.forEach((function(e){e.paths=e.paths.map((function(e){var t=e.split("."),n=t.pop();return[t.length>0?t.join("."):null,n]}))})),function(t,n){for(var r=[],a=arguments.length,s=new Array(a>2?a-2:0),c=2;c<a;c++)s[c-2]=arguments[c];var u=g.apply(void 0,[t].concat(s));return e.forEach((function(e){if(!1!==t[e.name]){var a,s=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.paths);try{for(s.s();!(a=s.n()).done;){var c=(0,i.A)(a.value,2),l=c[0],p=c[1],f=null==l?n:(0,o.A)(n,l);if(r.push(e.run(n,l,f,p,u.bind(null,e))),!1===t[e.name])return}}catch(e){s.e(e)}finally{s.f()}}})),r.filter((function(e){return null!=e}))}}function g(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.apply(t,n)),e[t.name]}}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.io;return function(n){return!t(e,n)}}var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.io,t=v(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.io;return[{name:c.DL,paths:u,applies:m(c.DL,e)},{name:c.hq,paths:l,applies:m(c.hq,e)},{name:c.hE,paths:p,applies:m(c.hE,e),get:function(e){return Math.round(100*(e+Number.EPSILON))/100}},{name:c.VJ,paths:["source.tid"],applies:m(c.VJ,e)}].map(f)}(e)),n=v(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.io;return[{name:c.hq,paths:["userId","userIdAsEids"],applies:m(c.hq,e)},{name:c.VJ,paths:["ortb2Imp.ext.tid"],applies:m(c.VJ,e)}].map(f)}(e));return function(e){var r={};return{ortb2:function(n){return t(r,n,e),n},bidRequest:function(t){return n(r,t,e),t}}}}();(0,s.qB)(c.VJ,"enableTIDs config",(function(){if(!a.$W.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},7253:(e,t,n)=>{"use strict";n.d(t,{io:()=>u,qB:()=>d});var r=n(296),i=n(7575),o=n(6642);function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,i.h0)("Activity control:"),t={};function n(e){return t[e]=t[e]||[]}function s(t,n,r,i){var a;try{a=r(i)}catch(r){e.logError("Exception in rule ".concat(n," for '").concat(t,"'"),r),a={allow:!1,reason:r}}return a&&Object.assign({activity:t,name:n,component:i[o.Ii]},a)}var c={};function d(t){var n=t.activity,r=t.name,i=t.allow,o=t.reason,a=t.component,s="".concat(r," ").concat(i?"allowed":"denied"," '").concat(n,"' for '").concat(a,"'").concat(o?":":""),d=c.hasOwnProperty(s);if(d&&clearTimeout(c[s]),c[s]=setTimeout((function(){return delete c[s]}),1e3),!d){var u=[s];o&&u.push(o),(i?e.logInfo:e.logWarn).apply(e,u)}}return[function(e,t,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=n(e),s=a.findIndex((function(e){var t=(0,r.A)(e,1)[0];return o<t})),c=[o,t,i];return a.splice(s<0?a.length:s,0,c),function(){var e=a.indexOf(c);e>=0&&a.splice(e,1)}},function(e,t){var i,o,c,u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}(n(e));try{for(u.s();!(c=u.n()).done;){var l=(0,r.A)(c.value,3),p=l[0],f=l[1],v=l[2];if(i!==p&&o)break;i=p;var g=s(e,f,v,t);if(g){if(!g.allow)return d(g),!1;o=g}}}catch(e){u.e(e)}finally{u.f()}return o&&d(o),!0}]}(),c=(0,r.A)(s,2),d=c[0],u=c[1]},7057:(e,t,n)=>{"use strict";function r(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}n.d(t,{A:()=>r})},8256:(e,t,n)=>{"use strict";n.d(t,{S1:()=>R,Ay:()=>$,tS:()=>F,pX:()=>G,Mf:()=>z,K5:()=>L});var r=n(5458),i=n(296),o=n(4467),a=n(7575),s=n(433),c=n(8911),d=n(2330),u=n(8718),l=n(6439),p=n(5455),f={};function v(e,t,n){var r=function(e,t){var n=f[e]=f[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return r[t]=(r[t]||0)+1,r[t]}function g(e){return(0,s.A)(f,"".concat(e,".requestsCounter"))||0}function m(e,t){return(0,s.A)(f,"".concat(e,".bidders.").concat(t,".requestsCounter"))||0}function h(e,t){return(0,s.A)(f,"".concat(e,".bidders.").concat(t,".winsCounter"))||0}var b=n(556),y=n(1586),_=n(9013),A=n(2743),w=n(1992),I=n(6428),E=n(3883),O=n(7253),x=n(3973),S=n(6642),C=n(6848);function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){(0,o.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D="pbsBidAdapter",R={CLIENT:"client",SERVER:"server"},j={isAllowed:O.io,redact:C.$p},P={},B=P.bidderRegistry={},U=P.aliasRegistry={},N=[];u.$W.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(N=(0,a.cy)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var q={},M=(0,S.ZI)((function(e){return P.resolveAlias(e)}));function L(e){return M(E.tp,D,(0,o.A)({},S.XG,e.configName))}var W=(0,l.A_)("sync",(function(e){var t=e.bidderCode,n=e.auctionId,r=e.bidderRequestId,i=e.adUnits,o=e.src,c=e.metrics;return i.reduce((function(e,i){var d=i.bids.filter((function(e){return e.bidder===t}));return null==t&&0===d.length&&null!=i.s2sBid&&d.push({bidder:null}),e.push(d.reduce((function(e,d){var u=null==(d=Object.assign({},d,{ortb2Imp:(0,a.D9)({},i.ortb2Imp,d.ortb2Imp)},(0,a.SH)(i,["nativeParams","nativeOrtbRequest","mediaType","renderer"]))).mediaTypes?i.mediaTypes:d.mediaTypes;return(0,a.wD)(u)?d=Object.assign({},d,{mediaTypes:u}):(0,a.vV)("mediaTypes is not correctly configured for adunit ".concat(i.code)),"client"===o&&function(e,t){v(e,"requestsCounter",t)}(i.code,t),e.push(Object.assign({},d,{adUnitCode:i.code,transactionId:i.transactionId,adUnitId:i.adUnitId,sizes:(0,s.A)(u,"banner.sizes")||(0,s.A)(u,"video.playerSize")||[],bidId:d.bid_id||(0,a.s0)(),bidderRequestId:r,auctionId:n,src:o,metrics:c,bidRequestsCount:g(i.code),bidderRequestsCount:m(i.code,d.bidder),bidderWinsCount:h(i.code,d.bidder)})),e}),[])),e}),[]).reduce(a.Bq,[]).filter((function(e){return""!==e}))}),"getBids"),F=(0,l.A_)("sync",(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).getS2SBidders;if(null==t)return e;var r=(void 0===n?G:n)(t);return e.filter((function(e){return r.has(e.bidder)}))}),"filterBidsForAdUnit"),V=(0,l.A_)("sync",(function(e,t){return e}),"setupAdUnitMediaTypes");function G(e){(0,a.cy)(e)||(e=[e]);var t=new Set([null]);return e.filter((function(e){return e&&e.enabled})).flatMap((function(e){return e.bidders})).forEach((function(e){return t.add(e)})),t}var z=(0,l.A_)("sync",(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).getS2SBidders,r=(void 0===n?G:n)(t);return(0,a.ZA)(e).reduce((function(e,t){return e[r.has(t)?R.SERVER:R.CLIENT].push(t),e}),(0,o.A)((0,o.A)({},R.CLIENT,[]),R.SERVER,[]))}),"partitionBidders");function H(e,t){var n=B[e],r=(null==n?void 0:n.getSpec)&&n.getSpec();if(r&&r[t]&&"function"==typeof r[t])return[r,r[t]]}function J(e,t,n,r){try{(0,a.fH)("Invoking ".concat(e,".").concat(t));for(var i=arguments.length,o=new Array(i>4?i-4:0),s=4;s<i;s++)o[s-4]=arguments[s];u.$W.runWithBidder(e,r.bind.apply(r,[n].concat(o)))}catch(n){(0,a.JE)("Error calling ".concat(t," of ").concat(e))}}function K(e,t,n){if((null==n?void 0:n.src)!==A.RW.SRC){var i=H(e,t);null!=i&&J.apply(void 0,[e,t].concat((0,r.A)(i),[n]))}}P.makeBidRequests=(0,l.A_)("sync",(function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},s=arguments.length>6?arguments[6]:void 0;s=(0,w.BO)(s),_.Ic(A.qY.BEFORE_REQUEST_BIDS,e),e.forEach((function(e){(0,a.Qd)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((function(e){return!e.bidder||j.isAllowed(x.uc,M(E.tW,e.bidder))})),v(e.code,"requestsCounter")})),e=V(e,i);var c=z(e,N),d=c[R.CLIENT],l=c[R.SERVER];u.$W.getConfig("bidderSequence")===u.Ov&&(d=(0,a.k4)(d));var f=(0,b.EN)(),g=[],m=o.global||{},h=o.bidder||{};function I(e,t){var r=j.redact(null!=t?t:M(E.tW,e.bidderCode)),i=Object.freeze(r.ortb2((0,a.D9)({source:{tid:n}},m,h[e.bidderCode])));return e.ortb2=i,e.bids=e.bids.map((function(e){return e.ortb2=i,r.bidRequest(e)})),e}N.forEach((function(r){var i=L(r);if(r&&r.enabled&&j.isAllowed(x.uc,i)){var o=function(e,t){var n=(0,a.Go)(e),r=!1;return n.forEach((function(e){var n=e.bids.filter((function(e){var n;return e.module===D&&(null===(n=e.params)||void 0===n?void 0:n.configName)===t.configName}));1===n.length?(e.s2sBid=n[0],r=!0,e.ortb2Imp=(0,a.D9)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&(0,a.JE)('Multiple "module" bids for the same s2s configuration; all will be ignored',n),e.bids=F(e.bids,t).map((function(e){return e.bid_id=(0,a.s0)(),e}))})),{adUnits:n=n.filter((function(e){return 0!==e.bids.length||null!=e.s2sBid})),hasModuleBids:r}}(e,r),c=o.adUnits,d=o.hasModuleBids,u=(0,a.lk)();(0===l.length&&d?[null]:l).forEach((function(e){var o=(0,a.s0)(),d=s.fork(),l=I({bidderCode:e,auctionId:n,bidderRequestId:o,uniquePbsTid:u,bids:W({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:(0,a.Go)(c),src:A.RW.SRC,metrics:d}),auctionStart:t,timeout:r.timeout,src:A.RW.SRC,refererInfo:f,metrics:d},i);0!==l.bids.length&&g.push(l)})),c.forEach((function(e){var t=e.bids.filter((function(e){return(0,p.I6)(g,(function(t){return(0,p.I6)(t.bids,(function(t){return t.bidId===e.bid_id}))}))}));e.bids=t})),g.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=c.filter((function(e){return e.bids.length>0||null!=e.s2sBid})))}))}}));var O=function(e){var t=(0,a.Go)(e);return t.forEach((function(e){e.bids=F(e.bids,null)})),t.filter((function(e){return 0!==e.bids.length}))}(e);return d.forEach((function(e){var o=(0,a.s0)(),c=s.fork(),d=I({bidderCode:e,auctionId:n,bidderRequestId:o,bids:W({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:(0,a.Go)(O),labels:i,src:"client",metrics:c}),auctionStart:t,timeout:r,refererInfo:f,metrics:c}),u=B[e];u||(0,a.vV)("Trying to make a request for bidder that does not exist: ".concat(e)),u&&d.bids&&0!==d.bids.length&&g.push(d)})),g.forEach((function(e){y.mW.getConsentData()&&(e.gdprConsent=y.mW.getConsentData()),y.t6.getConsentData()&&(e.uspConsent=y.t6.getConsentData()),y.ad.getConsentData()&&(e.gppConsent=y.ad.getConsentData())})),g}),"makeBidRequests"),P.callBids=function(e,t,n,r,o,s,c){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(t.length){var p=t.reduce((function(e,t){return e[Number(void 0!==t.src&&t.src===A.RW.SRC)].push(t),e}),[[],[]]),f=(0,i.A)(p,2),v=f[0],g=f[1],m=[];g.forEach((function(e){for(var t=-1,n=0;n<m.length;++n)if(e.uniquePbsTid===m[n].uniquePbsTid){t=n;break}t<=-1&&m.push(e)}));var h=0;N.forEach((function(e){if(e&&m[h]&&G(e).has(m[h].bidderCode)){var t=(0,d.g4)(s,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),i=e.bidders,u=B[e.adapter],p=m[h].uniquePbsTid,f=m[h].adUnitsS2SCopy,v=g.filter((function(e){return e.uniquePbsTid===p}));if(u){var b={ad_units:f,s2sConfig:e,ortb2Fragments:l};if(b.ad_units.length){var y=v.map((function(e){return e.start=(0,a.vE)(),function(t){t||c(e.bidderRequestId),r.apply(e,arguments)}})),w=(0,a.ZA)(b.ad_units).filter((function(e){return i.includes(e)}));(0,a.OG)("CALLING S2S HEADER BIDDERS ==== ".concat(w.length>0?w.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),v.forEach((function(e){_.Ic(A.qY.BID_REQUESTED,k(k({},e),{},{tid:e.auctionId}))})),u.callBids(b,g,n,(function(e){return y.forEach((function(t){return t(e)}))}),t)}}else(0,a.vV)("missing "+e.adapter);h++}})),v.forEach((function(e){e.start=(0,a.vE)();var t=B[e.bidderCode];u.$W.runWithBidder(e.bidderCode,(function(){(0,a.OG)("CALLING BIDDER"),_.Ic(A.qY.BID_REQUESTED,e)}));var i=(0,d.g4)(s,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),l=r.bind(e);try{u.$W.runWithBidder(e.bidderCode,t.callBids.bind(t,e,n,l,i,(function(){return c(e.bidderRequestId)}),u.$W.callbackWithBidder(e.bidderCode)))}catch(t){(0,a.vV)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:t,bidRequest:e}),l()}}))}else(0,a.JE)("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},P.videoAdapters=[],P.registerBidAdapter=function(e,t){var n,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===r?[]:r;e&&t?"function"==typeof e.callBids?(B[t]=e,y.o2.register(E.tW,t,null===(n=e.getSpec)||void 0===n?void 0:n.call(e).gvlid),(0,p.mK)(i,"video")&&P.videoAdapters.push(t)):(0,a.vV)("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):(0,a.vV)("bidAdapter or bidderCode not specified")},P.aliasBidAdapter=function(e,t,n){if(void 0===B[t]){var r=B[e];if(void 0===r){var i=[];N.forEach((function(n){if(n.bidders&&n.bidders.length){var r=n&&n.bidders;n&&(0,p.mK)(r,t)?U[t]=e:i.push(e)}})),i.forEach((function(e){(0,a.vV)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,s=function(e){var t=[];return(0,p.mK)(P.videoAdapters,e)&&t.push("video"),t}(e);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(t);else{var d=r.getSpec(),u=n&&n.gvlid;null!=d.gvlid&&null==u&&(0,a.JE)("Alias '".concat(t,"' will NOT re-use the GVL ID of the original adapter ('").concat(d.code,"', gvlid: ").concat(d.gvlid,"). Functionality that requires TCF consent may not work as expected."));var l=n&&n.skipPbsAliasing;o=(0,c.xb)(Object.assign({},d,{code:t,gvlid:u,skipPbsAliasing:l})),U[t]=e}P.registerBidAdapter(o,t,{supportedMediaTypes:s})}catch(t){(0,a.vV)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,a.OG)('alias name "'+t+'" has been already specified.')},P.resolveAlias=function(e){for(var t,n=e;U[n]&&(!t||!t.has(n));)n=U[n],(t=t||new Set).add(n);return n},P.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code,r=e.gvlid;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,q[n]={adapter:t,gvlid:r},y.o2.register(E.Tn,n,r)):(0,a.vV)('Prebid Error: Analytics adaptor error for analytics "'.concat(n,'"\n analytics adapter must implement an enableAnalytics() function')):(0,a.vV)("Prebid Error: analyticsAdapter or analyticsCode not specified")},P.enableAnalytics=function(e){(0,a.cy)(e)||(e=[e]),e.forEach((function(e){var t=q[e.provider];t&&t.adapter?j.isAllowed(x.mo,M(E.Tn,e.provider,(0,o.A)({},S.TQ,e)))&&t.adapter.enableAnalytics(e):(0,a.vV)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},P.getBidAdapter=function(e){return B[e]},P.getAnalyticsAdapter=function(e){return q[e]},P.callTimedOutBidders=function(e,t,n){t=t.map((function(t){return t.params=(0,a.SB)(e,t.adUnitCode,t.bidder),t.timeout=n,t})),t=(0,a.$z)(t,"bidder"),Object.keys(t).forEach((function(e){K(e,"onTimeout",t[e])}))},P.callBidWonBidder=function(e,t,n){t.params=(0,a.SB)(n,t.adUnitCode,t.bidder),v(t.adUnitCode,"winsCounter",t.bidder),K(e,"onBidWon",t)},P.callBidBillableBidder=function(e){K(e.bidder,"onBidBillable",e)},P.callSetTargetingBidder=function(e,t){K(e,"onSetTargeting",t)},P.callBidViewableBidder=function(e,t){K(e,"onBidViewable",t)},P.callBidderError=function(e,t,n){K(e,"onBidderError",{error:t,bidderRequest:n})},P.callDataDeletionRequest=(0,l.A_)("sync",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o="onDataDeletionRequest";Object.keys(B).filter((function(e){return!U.hasOwnProperty(e)})).forEach((function(e){var n=H(e,o);if(null!=n){var i=I.n.getBidsRequested().filter((function(t){return function(e){for(var t=new Set;U.hasOwnProperty(e)&&!t.has(e);)t.add(e),e=U[e];return e}(t.bidderCode)===e}));J.apply(void 0,[e,o].concat((0,r.A)(n),[i],t))}})),Object.entries(q).forEach((function(e){var n,r=(0,i.A)(e,2),s=r[0],c=r[1],d=null==c||null===(n=c.adapter)||void 0===n?void 0:n[o];if("function"==typeof d)try{d.apply(c.adapter,t)}catch(e){(0,a.vV)("error calling ".concat(o," of ").concat(s),e)}}))}));const $=P},8911:(e,t,n)=>{"use strict";n.d(t,{a$:()=>O,fn:()=>R,sv:()=>D,xb:()=>x});var r=n(2284),i=n(296),o=n(7057),a=n(8256),s=n(8718),c=n(5651),d=n(5588),u=n(4781),l=n(2743),p=n(9013),f=n(5455),v=n(7575),g=n(6439),m=n(6428),h=n(4447),b=n(1992),y=n(7253),_=n(6575),A=n(3883),w=n(3973),I=["cpm","ttl","creativeId","netRevenue","currency"],E=["auctionId","transactionId"];function O(e){var t=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function n(e){var n=x(e);a.Ay.registerBidAdapter(n,e.code,t)}n(e),Array.isArray(e.aliases)&&e.aliases.forEach((function(t){var r,i,o=t;(0,v.Qd)(t)&&(o=t.code,r=t.gvlid,i=t.skipPbsAliasing),a.Ay.aliasRegistry[o]=e.code,n(Object.assign({},e,{code:o,gvlid:r,skipPbsAliasing:i}))}))}function x(e){return Object.assign(new o.A(e.code),{getSpec:function(){return Object.freeze(Object.assign({},e))},registerSyncs:t,callBids:function(n,r,o,d,u,f){if(Array.isArray(n.bids)){var g=function(e){if((0,y.io)(w.VJ,(0,_.s)(A.tW,e)))return{bidRequest:function(e){return e},bidderRequest:function(e){return e}};function t(e,t,n){return E.includes(t)?null:Reflect.get(e,t,n)}function n(e,t){var n=new Proxy(e,t);return Object.entries(e).filter((function(e){var t=(0,i.A)(e,2);return t[0],"function"==typeof t[1]})).forEach((function(t){var r=(0,i.A)(t,2),o=r[0],a=r[1];return n[o]=a.bind(e)})),n}var r=(0,v.Bj)((function(e){return n(e,{get:t})}),(function(e){return e.bidId}));return{bidRequest:r,bidderRequest:function(e){return n(e,{get:function(n,i,o){return"bids"===i?e.bids.map(r):t(n,i,o)}})}}}(n.bidderCode),m={},I=[],O=j(n).measureTime("validate",(function(){return n.bids.filter((function(t){return n=g.bidRequest(t),!!e.isBidRequestValid(n)||((0,v.JE)("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(n))),!1);var n}))}));if(0!==O.length){var x={};O.forEach((function(e){x[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),T(e,O.map(g.bidRequest),g.bidderRequest(n),d,f,{onRequest:function(e){return p.Ic(l.qY.BEFORE_BIDDER_HTTP,n,e)},onResponse:function(t){u(e.code),I.push(t)},onPaapi:function(e){var t=x[e.bidId];t?D(t,e.config):(0,v.JE)("Received fledge auction configuration for an unknown bidId",e)},onError:function(t,r){r.timedOut||u(e.code),a.Ay.callBidderError(e.code,r,n),p.Ic(l.qY.BIDDER_ERROR,{error:r,bidderRequest:n}),(0,v.vV)("Server call for ".concat(e.code," failed: ").concat(t," ").concat(r.status,". Continuing without bids."))},onBid:function(t){var n,i,o,a,s=x[t.requestId];if(s){if(t.adapterCode=s.bidder,n=t.bidderCode,i=s.bidder,o=h.u.get(i,"allowAlternateBidderCodes")||!1,a=h.u.get(i,"allowedAlternateBidderCodes"),n&&i&&i!==n&&(a=(0,v.cy)(a)?a.map((function(e){return e.trim().toLowerCase()})).filter((function(e){return!!e})).filter(v.hj):a,!o||(0,v.cy)(a)&&"*"!==a[0]&&!a.includes(n)))return(0,v.JE)("".concat(t.bidderCode," is not a registered partner or known bidder of ").concat(s.bidder,", hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings.")),void r.reject(s.adUnitCode,t,l.Tf.BIDDER_DISALLOWED);t.originalCpm=t.cpm,t.originalCurrency=t.currency,t.meta=t.meta||Object.assign({},t[s.bidder]);var d=Object.assign((0,c.O)(l.XQ.GOOD,s),t,(0,v.Up)(s,E));!function(e,t){var n=(0,b.BO)(t.metrics);n.checkpoint("addBidResponse"),m[e]=!0,n.measureTime("addBidResponse.validate",(function(){return R(e,t)}))?r(e,t):r.reject(e,t,l.Tf.INVALID)}(s.adUnitCode,d)}else(0,v.JE)("Bidder ".concat(e.code," made bid for unknown request ID: ").concat(t.requestId,". Ignoring.")),r.reject(null,t,l.Tf.INVALID_REQUEST_ID)},onCompletion:S})}else S()}function S(){o(),s.$W.runWithBidder(e.code,(function(){p.Ic(l.qY.BIDDER_DONE,n),t(I,n.gdprConsent,n.uspConsent,n.gppConsent)}))}}});function t(t,n,r,i){k(e,t,n,r,i)}}var S=["paapiAuctionConfigs","fledgeAuctionConfigs"],C=["bids"].concat(S),T=(0,g.A_)("sync",(function(e,t,n,o,a,s){var c=s.onRequest,d=s.onResponse,u=s.onPaapi,l=s.onError,p=s.onBid,f=s.onCompletion,g=j(n);f=g.startTiming("total").stopBefore(f);var m=g.measureTime("buildRequests",(function(){return e.buildRequests(t,n)}));if(m&&0!==m.length){Array.isArray(m)||(m=[m]);var b=(0,v.U6)(f,m.length);m.forEach((function(t){var n=g.fork();function s(e){null!=e&&(e.metrics=n.fork().renameWith()),p(e)}var f=a((function(r,o){E();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:o.getResponseHeader.bind(o)}},d(r);try{r=n.measureTime("interpretResponse",(function(){return e.interpretResponse(r,t)}))}catch(t){return(0,v.vV)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,t),void b()}var a,c;r&&!Object.keys(r).some((function(e){return!C.includes(e)}))?(a=r.bids,c=function(e){var t=S.map((function(t){return e[t]})),n=(0,i.A)(t,2),r=n[0],o=n[1];if(null!=r&&null!=o)throw new Error("Adapter response should use ".concat(S[0]," over ").concat(S[1],", not both"));return null!=r?r:o}(r)):a=r,(0,v.cy)(c)&&c.forEach(u),a&&((0,v.cy)(a)?a.forEach(s):s(a)),b()})),m=a((function(e,t){E(),l(e,t),b()}));c(t);var I,E=n.startTiming("net");function O(n){var r,i=t.options;return Object.assign(n,i,{browsingTopics:!(null!=i&&i.hasOwnProperty("browsingTopics")&&!i.browsingTopics)&&(null===(r=h.u.get(e.code,"topicsHeader"))||void 0===r||r)&&(0,y.io)(w.DL,(0,_.s)(A.tW,e.code))})}switch(t.method){case"GET":o("".concat(t.url).concat((I=t.data)?"?".concat("object"===(0,r.A)(I)?(0,v.bL)(I):I):""),{success:f,error:m},void 0,O({method:"GET",withCredentials:!0}));break;case"POST":o(t.url,{success:f,error:m},"string"==typeof t.data?t.data:JSON.stringify(t.data),O({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,v.JE)("Skipping invalid request from ".concat(e.code,". Request type ").concat(t.type," must be GET or POST")),b()}}))}else f()}),"processBidderRequests"),k=(0,g.A_)("async",(function(e,t,n,r,i){var o=s.$W.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!a.Ay.aliasRegistry[e.code])){var c=s.$W.getConfig("userSync.filterSettings"),u=e.getUserSyncs({iframeEnabled:!(!c||!c.iframe&&!c.all),pixelEnabled:!(!c||!c.image&&!c.all)},t,n,r,i);u&&(Array.isArray(u)||(u=[u]),u.forEach((function(t){d.zt.registerSync(t.type,e.code,t.url)})),d.zt.bidderDone(e.code))}}),"registerSyncs"),D=(0,g.A_)("sync",(function(e,t){}),"addComponentAuction");function R(e,t){var n,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,o=void 0===r?m.n.index:r;function a(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}return e?t?(n=Object.keys(t),I.every((function(e){return(0,f.mK)(n,e)&&!(0,f.mK)([void 0,null],t[e])}))?"video"!==t.mediaType||(0,u.vk)(t,{index:o})?!("banner"===t.mediaType&&!function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===n?m.n.index:n;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;var o=r.getBidRequest(t),a=r.getMediaTypes(t),s=o&&o.sizes||a&&a.banner&&a.banner.sizes,c=(0,v.kK)(s);if(1===c.length){var d=c[0].split("x"),u=(0,i.A)(d,2),l=u[0],p=u[1];return t.width=parseInt(l,10),t.height=parseInt(p,10),!0}return!1}(e,t,{index:o})&&((0,v.vV)(a("Banner bids require a width and height")),1)):((0,v.vV)(a("Video bid does not have required vastUrl or renderer property")),!1):((0,v.vV)(a("Bidder ".concat(t.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1)):((0,v.JE)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):((0,v.JE)("No adUnitCode was supplied to addBidResponse."),!1)}function j(e){return(0,b.BO)(e.metrics).renameWith((function(t){return["adapter.client.".concat(t),"adapters.client.".concat(e.bidderCode,".").concat(t)]}))}},4286:(e,t,n)=>{"use strict";n.d(t,{R:()=>s});var r=n(5455),i=n(7575),o=new WeakMap,a=["debugging","adloox","criteo","outstream","adagio","spotx","browsi","brandmetrics","justtag","tncId","akamaidap","ftrackId","inskin","hadron","medianet","improvedigital","azerionedge","aaxBlockmeter","confiant","arcspan","airgrid","clean.io","a1Media","geoedge","mediafilter","qortex","dynamicAdBoost","contxtful","id5","lucead"];function s(e,t,n,s,c){if(t&&e){if((0,r.mK)(a,t)){s||(s=document);var d=p(s,e);if(d)return n&&"function"==typeof n&&(d.loaded?n():d.callbacks.push(n)),d.tag;var u=o.get(s)||{},l={loaded:!1,tag:null,callbacks:[]};return u[e]=l,o.set(s,u),n&&"function"==typeof n&&l.callbacks.push(n),(0,i.JE)("module ".concat(t," is loading external JavaScript")),function(t,n,r,o){r||(r=document);var a=r.createElement("script");a.type="text/javascript",a.async=!0;var s=p(r,e);return s&&(s.tag=a),a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,n())}:a.onload=function(){n()},a.src=t,o&&(0,i.Bg)(a,o),(0,i._s)(a,r),a}(e,(function(){l.loaded=!0;try{for(var e=0;e<l.callbacks.length;e++)l.callbacks[e]()}catch(e){(0,i.vV)("Error executing callback","adloader.js:loadExternalScript",e)}}),s,c)}(0,i.vV)("".concat(t," not whitelisted for loading external JavaScript"))}else(0,i.vV)("cannot load external script without url and moduleCode");function p(e,t){var n=o.get(e);return n&&n[t]?n[t]:null}}},2330:(e,t,n)=>{"use strict";n.d(t,{RD:()=>v,g4:()=>f,hd:()=>g});var r=n(296),i=n(2284),o=n(8718),a=n(7575),s={fetch:window.fetch.bind(window),makeRequest:function(e,t){return new Request(e,t)},timeout:function(e,t){var n=new AbortController,r=setTimeout((function(){n.abort(),(0,a.vV)("Request timeout after ".concat(e,"ms"),t),r=null}),e);return{signal:n.signal,done:function(){r&&clearTimeout(r)}}}},c="GET",d="POST",u="Content-Type";function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.request,r=t.done,i=function(t,n){var r,i,a;null==e||null!=(null===(r=n)||void 0===r?void 0:r.signal)||o.$W.getConfig("disableAjaxTimeout")||(a=s.timeout(e,t),n=Object.assign({signal:a.signal},n));var c=s.fetch(t,n);return null!=(null===(i=a)||void 0===i?void 0:i.done)&&(c=c.finally(a.done)),c};return null==n&&null==r||(i=function(e){return function(t,i){var o=new URL(null==(null==t?void 0:t.url)?t:t.url,document.location).origin,a=e(t,i);return n&&n(o),r&&(a=a.finally((function(){return r(o)}))),a}}(i)),i}function p(e,t){var n=e.status,r=e.statusText,i=void 0===r?"":r,o=e.headers,s=e.url,c=0;function d(e){if(0===c)try{var n;c=(new DOMParser).parseFromString(t,null==o||null===(n=o.get(u))||void 0===n||null===(n=n.split(";"))||void 0===n?void 0:n[0])}catch(t){c=null,e&&e(t)}return c}return{readyState:XMLHttpRequest.DONE,status:n,statusText:i,responseText:t,response:t,responseType:"",responseURL:s,get responseXML(){return d(a.vV)},getResponseHeader:function(e){return null!=o&&o.has(e)?o.get(e):null},toJSON:function(){return Object.assign({responseXML:d()},this)},timedOut:!1}}function f(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,{request:e.request,done:e.done});return function(e,n,o){!function(e,t){var n="object"===(0,i.A)(t)&&null!=t?t:{success:"function"==typeof t?t:function(){return null},error:function(e,t){return(0,a.vV)("Network error",e,t)}},o=n.success,s=n.error;e.then((function(e){return e.text().then((function(t){return[e,t]}))})).then((function(e){var t=(0,r.A)(e,2),n=t[0],i=t[1],a=p(n,i);n.ok||304===n.status?o(i,a):s(n.statusText,a)}),(function(e){return s("",Object.assign(p({status:0},""),{reason:e,timedOut:"AbortError"===(null==e?void 0:e.name)}))}))}(t(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.method||(t?d:c);if(r===c&&t){var i=(0,a.Dl)(e,n);Object.assign(i.search,t),e=(0,a.c$)(i)}var o=new Headers(n.customHeaders);o.set(u,n.contentType||"text/plain");var l={method:r,headers:o};return r!==c&&t&&(l.body=t),n.withCredentials&&(l.credentials="include"),n.browsingTopics&&isSecureContext&&(l.browsingTopics=!0),s.makeRequest(e,l)}(e,o,arguments.length>3&&void 0!==arguments[3]?arguments[3]:{})),n)}}var v=f(),g=l()},6428:(e,t,n)=>{"use strict";n.d(t,{n:()=>ie});var r=n(296),i=n(5458),o=n(7575),a=n(2284),s=n(433),c=n(9127),d=n(2330),u=n(8718),l=15;function p(e){var t,n,r,i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,o=void 0===i?ie.index:i,a=e.vastXml?e.vastXml:(t=e.vastUrl,r=(n=(n=e.vastImpUrl)&&(Array.isArray(n)?n:[n]))?n.map((function(e){return"<Impression><![CDATA[".concat(e,"]]></Impression>")})).join(""):"",'<VAST version="3.0">\n <Ad>\n <Wrapper>\n <AdSystem>prebid.org wrapper</AdSystem>\n <VASTAdTagURI><![CDATA['.concat(t,"]]></VASTAdTagURI>\n ").concat(r,"\n <Creatives></Creatives>\n </Wrapper>\n </Ad>\n </VAST>")),s=o.getAuction(e),c={type:"xml",value:a,ttlseconds:Number(e.ttl)+l};return u.$W.getConfig("cache.vasttrack")&&(c.bidder=e.bidder,c.bidid=e.requestId,c.aid=e.auctionId),null!=s&&(c.timestamp=s.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(c.key=e.customCacheKey),c}var f=n(2487),v=n(5588),g=n(6439),m=n(5455),h=n(4781),b=n(3233),y=n(4447),_=n(9013),A=n(8256),w=n(2743),I=n(4469),E=n(1992),O=n(3831),x=v.zt.syncUsers,S="completed";_.on(w.qY.BID_ADJUSTMENT,(function(e){!function(e){var t=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.index,s=void 0===a?ie.index:a,c=i.bs,d=void 0===c?y.u:c;n=n||s.getBidRequest(t);var u=null==t?void 0:t.adapterCode,l=(null==t?void 0:t.bidderCode)||(null===(r=n)||void 0===r?void 0:r.bidder),p=d.get(null==t?void 0:t.adapterCode,"adjustAlternateBids"),f=d.getOwn(l,"bidCpmAdjustment")||d.get(p?u:l,"bidCpmAdjustment");if(f&&"function"==typeof f)try{return f(e,Object.assign({},t),n)}catch(e){(0,o.vV)("Error during bid adjustment",e)}return e}(e.cpm,e);t>=0&&(e.cpm=t)}(e)}));var C={},T={},k=[],D=(0,O.m)();function R(e){var t=e.adUnits,n=e.adUnitCodes,r=e.callback,i=e.cbTimeout,d=e.labels,l=e.auctionId,p=e.ortb2Fragments,v=e.metrics;v=(0,E.BO)(v);var g,y,O,R,q=t,M=d,L=n,W=l||(0,o.lk)(),G=i,z=new Set,H=(0,I.v)(),J=[],K=r,$=[],Q=[],X=[],Z=[],ee=[];function te(){return{auctionId:W,timestamp:g,auctionEnd:y,auctionStatus:R,adUnits:q,adUnitCodes:L,labels:M,bidderRequests:$,noBids:X,bidsReceived:Q,bidsRejected:J,winningBids:Z,timeout:G,metrics:v,seatNonBids:ee}}function ne(e){if(e?_.Ic(w.qY.AUCTION_TIMEOUT,te()):clearTimeout(O),void 0===y){var n=[];e&&((0,o.OG)("Auction ".concat(W," timedOut")),(n=$.filter((function(e){return!z.has(e.bidderRequestId)})).flatMap((function(e){return e.bids}))).length&&_.Ic(w.qY.BID_TIMEOUT,n)),R=S,y=Date.now(),v.checkpoint("auctionEnd"),v.timeBetween("requestBids","auctionEnd","requestBids.total"),v.timeBetween("callBids","auctionEnd","requestBids.callBids"),H.resolve(),_.Ic(w.qY.AUCTION_END,te()),U(q,(function(){try{if(null!=K){var r=Q.filter((function(e){return L.includes(e.adUnitCode)})).reduce(Y,{});K.apply(D,[r,e,W]),K=null}}catch(e){(0,o.vV)("Error executing bidsBackHandler",null,e)}finally{n.length&&A.Ay.callTimedOutBidders(t,n,G);var i=u.$W.getConfig("userSync")||{};i.enableOverride||x(i.syncDelay)}}))}}function re(){u.$W.resetBidder(),(0,o.fH)("Bids Received for Auction with id: ".concat(W),Q),R=S,ne(!1)}function oe(e){z.add(e)}function ae(e){var t=this;e.forEach((function(e){var t;t=e,$=$.concat(t)}));var n={},r={bidRequests:e,run:function(){O=setTimeout((function(){return ne(!0)}),G),R="inProgress",_.Ic(w.qY.AUCTION_INIT,te());var r=function(e,t){var n=(void 0===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index&&ie.index,0),r=!1,i=new Set,d={};function l(){n--,r&&0===n&&e()}function p(e,t,r){return d[t.requestId]=!0,function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===n?ie.index:n,i=r.getBidderRequest(e),a=r.getAdUnit(e),s=i&&i.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,o.vE)(),requestTimestamp:e.requestTimestamp||s,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:t}),null!=(null==a?void 0:a.ttlBuffer)&&(e.ttlBuffer=a.ttlBuffer),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}(t,e),n++,r(l)}function v(e,n){p(e,n,(function(e){var r=function(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,r=void 0===n?ie.index:n;_.Ic(w.qY.BID_ADJUSTMENT,e);var i=(null===(t=r.getBidRequest(e))||void 0===t?void 0:t.renderer)||r.getAdUnit(e).renderer,o=e.mediaType,s=r.getMediaTypes(e),d=s&&s[o],l=d&&d.renderer,p=null;l&&l.url&&l.render&&(!0!==l.backupOnly||!e.renderer)?p=l:i&&i.url&&i.render&&(!0!==i.backupOnly||!e.renderer)&&(p=i),p&&(e.renderer=f.A4.install({url:p.url,config:p.options}),e.renderer.setRender(p.render));var v=V(e.mediaType,s,u.$W.getConfig("mediaTypePriceGranularity")),g=(0,c.j)(e.cpm,"object"===(0,a.A)(v)?v:u.$W.getConfig("customPriceBucket"),u.$W.getConfig("currency.granularityMultiplier"));return e.pbLg=g.low,e.pbMg=g.med,e.pbHg=g.high,e.pbAg=g.auto,e.pbDg=g.dense,e.pbCg=g.custom,e}(n);_.Ic(w.qY.BID_ACCEPTED,r),r.mediaType===b.G_?function(e,t,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).index,i=void 0===r?ie.index:r,a=!0,c=(0,s.A)(i.getMediaTypes({requestId:t.originalRequestId||t.requestId,adUnitId:t.adUnitId}),"video"),d=c&&(0,s.A)(c,"context"),l=c&&(0,s.A)(c,"useCacheKey");u.$W.getConfig("cache.url")&&(l||d!==h.H6)&&(!t.videoCacheKey||u.$W.getConfig("cache.ignoreBidderCacheKey")?(a=!1,F(e,t,n,c)):t.vastUrl||((0,o.vV)("videoCacheKey specified but not required vastUrl for video bid"),a=!1)),a&&(N(e,t),n())}(t,r,e):(N(t,r),e())}))}function g(e,n,r){return p(e,n,(function(e){n.rejectionReason=r,(0,o.JE)("Bid from ".concat(n.bidder||"unknown bidder"," was rejected: ").concat(r),n),_.Ic(w.qY.BID_REJECTED,n),t.addBidRejected(n),e()}))}function y(){var a=t.getBidRequests(),s=u.$W.getConfig("auctionOptions");if(i.add(this),s&&!(0,o.Im)(s)){var c=s.secondaryBidders;c&&!a.every((function(e){return(0,m.mK)(c,e.bidderCode)}))&&(a=a.filter((function(e){return!(0,m.mK)(c,e.bidderCode)})))}r=a.every((function(e){return i.has(e)})),this.bids.forEach((function(e){d[e.bidId]||(t.addNoBid(e),_.Ic(w.qY.NO_BID,e))})),r&&0===n&&e()}return{addBidResponse:function(){function e(e,t){var n;j.call({dispatch:v},e,t,(n=!1,function(r){n||(g(e,t,r),n=!0)}))}return e.reject=g,e}(),adapterDone:function(){var e=this;P(I.k.resolve()).finally((function(){return y.call(e)}))}}}(re,t);A.Ay.callBids(q,e,r.addBidResponse,r.adapterDone,{request:function(e,t){d(C,t),d(n,e),T[e]||(T[e]={SRA:!0,origin:t}),n[e]>1&&(T[e].SRA=!1)},done:function(e){C[e]--,k[0]&&i(k[0])&&k.shift()}},G,oe,p)}};function i(e){var t=!0,n=u.$W.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===w.RW.SRC?"s2s":e.bidderCode;return T[i]&&(!1===T[i].SRA&&(r=Math.min(e.bids.length,n)),C[T[i].origin]+r>n&&(t=!1)),!t})),t&&e.run(),t}function d(e,t){void 0===e[t]?e[t]=1:e[t]++}i(r)||((0,o.JE)("queueing auction due to limited endpoint capacity"),k.push(r))}return _.on(w.qY.SEAT_NON_BID,(function(e){var t;e.auctionId===W&&(t=e.seatnonbid,ee=ee.concat(t))})),{addBidReceived:function(e){Q=Q.concat(e)},addBidRejected:function(e){J=J.concat(e)},addNoBid:function(e){X=X.concat(e)},callBids:function(){R="started",g=Date.now();var e=v.measureTime("requestBids.makeRequests",(function(){return A.Ay.makeBidRequests(q,g,W,G,M,p,v)}));(0,o.fH)("Bids Requested for Auction with id: ".concat(W),e),v.checkpoint("callBids"),e.length<1?((0,o.JE)("No valid bid requests returned for auction"),re()):B.call({dispatch:ae,context:this},e)},addWinningBid:function(e){var n=t.find((function(t){return t.adUnitId===e.adUnitId}));Z=Z.concat(e),(0,o.Wz)(e),A.Ay.callBidWonBidder(e.adapterCode||e.bidder,e,t),n&&!n.deferBilling&&A.Ay.callBidBillableBidder(e)},setBidTargeting:function(e){A.Ay.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:function(){return Z},getAuctionStart:function(){return g},getAuctionEnd:function(){return y},getTimeout:function(){return G},getAuctionId:function(){return W},getAuctionStatus:function(){return R},getAdUnits:function(){return q},getAdUnitCodes:function(){return L},getBidRequests:function(){return $},getBidsReceived:function(){return Q},getNoBids:function(){return X},getNonBids:function(){return ee},getFPD:function(){return p},getMetrics:function(){return v},end:H.promise}}var j=(0,g.A_)("sync",(function(e,t,n){this.dispatch.call(null,e,t)}),"addBidResponse"),P=(0,g.A_)("sync",(function(e){return e}),"responsesReady"),B=(0,g.A_)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),U=(0,g.A_)("async",(function(e,t){t&&t()}),"bidsBackCallback");function N(e,t){var n,r,i;n=t,i=!0===y.u.get(n.bidderCode,"allowZeroCpmBids")?n.cpm>=0:n.cpm>0,n.bidderCode&&(i||n.dealId)&&(r=function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===n?ie.index:n;if(!t)return{};var i=r.getBidRequest(t),o={};return X(o,Q(t.mediaType,e),t,i),e&&y.u.getOwn(e,w.iD.ADSERVER_TARGETING)&&(X(o,y.u.ownSettingsFor(e),t,i),t.sendStandardTargeting=y.u.get(e,"sendStandardTargeting")),o}(n.bidderCode,n)),n.adserverTargeting=Object.assign(n.adserverTargeting||{},r),(0,E.BO)(t.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(t),_.Ic(w.qY.BID_RESPONSE,t)}var q,M,L=function(e){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.g4,r={puts:e.map(p)};n(u.$W.getConfig("cache.timeout"))(u.$W.getConfig("cache.url"),function(e){return{success:function(t){var 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: ".concat(t,": ").concat(JSON.stringify(n))),[])}}}(t),JSON.stringify(r),{contentType:"text/plain",withCredentials:!0})}(e.map((function(e){return e.bidResponse})),(function(t,n){n.forEach((function(n,r){var i,a=e[r],s=a.auctionInstance,c=a.bidResponse,d=a.afterBidAdded;t?(0,o.JE)("Failed to save to the video cache: ".concat(t,". Video bid must be discarded.")):""===n.uuid?(0,o.JE)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(c.videoCacheKey=n.uuid,c.vastUrl||(c.vastUrl=(i=c.videoCacheKey,"".concat(u.$W.getConfig("cache.url"),"?uuid=").concat(i))),N(s,c),d())}))}))};u.$W.getConfig("cache",(function(e){q="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,M="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));var W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L,n=[[]],r=!1,i=function(e){return e()};return function(o,a,s){var c=M>0?e:i;n[n.length-1].length>=q&&n.push([]),n[n.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:s}),r||(r=!0,c((function(){n.forEach(t),n=[[]],r=!1}),M))}}(),F=(0,g.A_)("async",(function(e,t,n,r){W(e,t,n)}),"callPrebidCache");function V(e,t,n){if(e&&n){if(e===b.G_){var r=(0,s.A)(t,"".concat(b.G_,".context"),"instream");if(n["".concat(b.G_,"-").concat(r)])return n["".concat(b.G_,"-").concat(r)]}return n[e]}}var G=function(e){return function(t){var n=e||function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,n=void 0===t?ie.index:t,r=V(e.mediaType,n.getMediaTypes(e),u.$W.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&r?"string"==typeof r?r:"custom":u.$W.getConfig("priceGranularity")}(t);return n===w.UE.AUTO?t.pbAg:n===w.UE.DENSE?t.pbDg:n===w.UE.LOW?t.pbLg:n===w.UE.MEDIUM?t.pbMg:n===w.UE.HIGH?t.pbHg:n===w.UE.CUSTOM?t.pbCg:void 0}},z=function(){return function(e){return e.creativeId?e.creativeId:""}},H=function(){return function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:""}},J=function(){return function(e){return e.meta&&(e.meta.networkId||e.meta.networkName)?(0,s.A)(e,"meta.networkName")||(0,s.A)(e,"meta.networkId"):""}},K=function(){return function(e){return e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:""}};function $(e,t){return{key:e,val:"function"==typeof t?function(e,n){return t(e,n)}:function(e){return(0,o._W)(e,t)}}}function Q(e,t){var n=Object.assign({},y.u.settingsFor(null));if(n[w.iD.ADSERVER_TARGETING]||(n[w.iD.ADSERVER_TARGETING]=[$(w.xS.BIDDER,"bidderCode"),$(w.xS.AD_ID,"adId"),$(w.xS.PRICE_BUCKET,G()),$(w.xS.SIZE,"size"),$(w.xS.DEAL,"dealId"),$(w.xS.SOURCE,"source"),$(w.xS.FORMAT,"mediaType"),$(w.xS.ADOMAIN,H()),$(w.xS.ACAT,K()),$(w.xS.DSP,J()),$(w.xS.CRID,z())]),"video"===e){var r=n[w.iD.ADSERVER_TARGETING].slice();if(n[w.iD.ADSERVER_TARGETING]=r,[w.xS.UUID,w.xS.CACHE_ID].forEach((function(e){void 0===(0,m.I6)(r,(function(t){return t.key===e}))&&r.push($(e,"videoCacheKey"))})),u.$W.getConfig("cache.url")&&(!t||!1!==y.u.get(t,"sendStandardTargeting"))){var i=(0,o.Dl)(u.$W.getConfig("cache.url"));void 0===(0,m.I6)(r,(function(e){return e.key===w.xS.CACHE_HOST}))&&r.push($(w.xS.CACHE_HOST,(function(e){return(0,s.A)(e,"adserverTargeting.".concat(w.xS.CACHE_HOST))?e.adserverTargeting[w.xS.CACHE_HOST]:i.hostname})))}}return n}function X(e,t,n,r){var i=t[w.iD.ADSERVER_TARGETING];return n.size=n.getSize(),(i||[]).forEach((function(i){var a=i.key,s=i.val;if(e[a]&&(0,o.JE)("The key: "+a+" is being overwritten"),(0,o.fp)(s))try{s=s(n,r)}catch(e){(0,o.vV)("bidmanager","ERROR",e)}(void 0===t.suppressEmptyKeys||!0!==t.suppressEmptyKeys)&&a!==w.xS.DEAL&&a!==w.xS.ACAT&&a!==w.xS.DSP&&a!==w.xS.CRID||!(0,o.xQ)(s)&&null!=s?e[a]=s:(0,o.fH)("suppressing empty key '"+a+"' from adserver targeting")})),e}function Y(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}function Z(e){Object.assign(this,{getAuction:function(t){var n=t.auctionId;if(null!=n)return e().find((function(e){return e.getAuctionId()===n}))},getAdUnit:function(t){var n=t.adUnitId;if(null!=n)return e().flatMap((function(e){return e.getAdUnits()})).find((function(e){return e.adUnitId===n}))},getMediaTypes:function(e){var t=e.adUnitId,n=e.requestId;if(null!=n){var r=this.getBidRequest({requestId:n});if(null!=r&&(null==t||r.adUnitId===t))return r.mediaTypes}else if(null!=t){var i=this.getAdUnit({adUnitId:t});if(null!=i)return i.mediaTypes}},getBidderRequest:function(t){var n=t.requestId,r=t.bidderRequestId;if(null!=n||null!=r){var i=e().flatMap((function(e){return e.getBidRequests()}));return null!=r&&(i=i.filter((function(e){return e.bidderRequestId===r}))),null==n?i[0]:i.find((function(e){return e.bids&&null!=e.bids.find((function(e){return e.bidId===n}))}))}},getBidRequest:function(t){var n=t.requestId;if(null!=n)return e().flatMap((function(e){return e.getBidRequests()})).flatMap((function(e){return e.bids})).find((function(e){return e&&e.bidId===n}))}})}var ee=n(7280),te=n(6389);function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var re="minBidCacheTTL",ie=function(){var e=null,t=(0,ee.H)({startTime:function(e){return e.end.then((function(){return e.getAuctionEnd()}))},ttl:function(t){return null==e?null:t.end.then((function(){return 1e3*Math.max.apply(Math,[e].concat((0,i.A)(t.getBidsReceived().map(te.L))))}))}});(0,te.u)((function(){null!=e&&t.refresh()})),u.$W.getConfig(re,(function(n){e!==(e="number"==typeof(e=null==n?void 0:n[re])?e:null)&&t.refresh()}));var n={onExpiry:t.onExpiry};function a(e){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ne(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.getAuctionId()===e)return i}}catch(e){r.e(e)}finally{r.f()}}function s(){return t.toArray().flatMap((function(e){return e.getBidsReceived()}))}return n.addWinningBid=function(e){var t=(0,E.BO)(e.metrics);t.checkpoint("bidWon"),t.timeBetween("auctionEnd","bidWon","render.pending"),t.timeBetween("requestBids","bidWon","render.e2e");var n=a(e.auctionId);n?(e.status=w.tl.RENDERED,n.addWinningBid(e)):(0,o.JE)("Auction not found when adding winning bid")},Object.entries({getAllWinningBids:{name:"getWinningBids"},getBidsRequested:{name:"getBidRequests"},getNoBids:{},getAdUnits:{},getBidsReceived:{pre:function(e){return e.getAuctionStatus()===S}},getAdUnitCodes:{post:o.hj}}).forEach((function(e){var i=(0,r.A)(e,2),o=i[0],a=i[1],s=a.name,c=void 0===s?o:s,d=a.pre,u=a.post,l=null==d?function(e){return e[c]()}:function(e){return d(e)?e[c]():[]},p=null==u?function(e){return e}:function(e){return e.filter(u)};n[o]=function(){return p(t.toArray().flatMap(l))}})),n.getAllBidsForAdUnitCode=function(e){return s().filter((function(t){return t&&t.adUnitCode===e}))},n.createAuction=function(e){var n=R(e);return function(e){t.add(e)}(n),n},n.findBidByAdId=function(e){return s().find((function(t){return t.adId===e}))},n.getStandardBidderAdServerTargeting=function(){return Q()[w.iD.ADSERVER_TARGETING]},n.setStatusForBids=function(e,t){var r=n.findBidByAdId(e);if(r&&(r.status=t),r&&t===w.tl.BID_TARGETING_SET){var i=a(r.auctionId);i&&i.setBidTargeting(r)}},n.getLastAuctionId=function(){var e=t.toArray();return e.length&&e[e.length-1].getAuctionId()},n.clearAllAuctions=function(){t.clear()},n.index=new Z((function(){return t.toArray()})),n}()},6389:(e,t,n)=>{"use strict";n.d(t,{L:()=>s,u:()=>c});var r=n(8718),i=n(7575),o=1,a=[];function s(e){return e.ttl-(e.hasOwnProperty("ttlBuffer")?e.ttlBuffer:o)}function c(e){a.push(e)}r.$W.getConfig("ttlBuffer",(function(e){"number"==typeof e.ttlBuffer?o!==(o=e.ttlBuffer)&&a.forEach((function(e){return e(o)})):(0,i.vV)("Invalid value for ttlBuffer",e.ttlBuffer)}))},4447:(e,t,n)=>{"use strict";n.d(t,{u:()=>p});var r=n(3029),i=n(2901),o=n(433),a=n(7575),s=n(3831),c=n(2743);function d(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var u=new WeakSet;function l(e){return null==e?this.defaultScope:e}var p=new(function(){function e(t,n){var i,o;(0,r.A)(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(i=this,o=u),o.add(i),this.getSettings=t,this.defaultScope=n}return(0,i.A)(e,[{key:"get",value:function(e,t){var n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}},{key:"getOwn",value:function(e,t){return e=d(u,this,l).call(this,e),(0,o.A)(this.getSettings(),"".concat(e,".").concat(t))}},{key:"getScopes",value:function(){var e=this;return Object.keys(this.getSettings()).filter((function(t){return t!==e.defaultScope}))}},{key:"settingsFor",value:function(e){return(0,a.D9)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}},{key:"ownSettingsFor",value:function(e){return e=d(u,this,l).call(this,e),this.getSettings()[e]||{}}}]),e}())((function(){return(0,s.m)().bidderSettings||{}}),c.iD.BD_SETTING_STANDARD)},5651:(e,t,n)=>{"use strict";n.d(t,{O:()=>o});var r=n(7575);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.src,i=void 0===n?"client":n,o=t.bidder,a=void 0===o?"":o,s=t.bidId,c=t.transactionId,d=t.adUnitId,u=t.auctionId,l=i,p=e||0;Object.assign(this,{bidderCode:a,width:0,height:0,statusMessage:function(){switch(p){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}(),adId:(0,r.s0)(),requestId:s,transactionId:c,adUnitId:d,auctionId:u,mediaType:"banner",source:l}),this.getStatusCode=function(){return p},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,adUnitId:this.adUnitId,auctionId:this.auctionId}}}function o(e,t){return new i(e,t)}},8718:(e,t,n)=>{"use strict";n.d(t,{$W:()=>h,Ov:()=>f});var r=n(4467),i=n(2284),o=n(296),a=n(9127),s=n(5455),c=n(7575),d=n(433),u=n(2743);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var p="TRUE"===(0,c.Ez)(u.M).toUpperCase(),f="random",v={};v[f]=!0,v.fixed=!0;var g=f,m={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},h=function(){var e,t,n,u=[],f=null;function h(){function r(e){return d[e].val}function i(e,t){d[e].val=t}e={};var d={publisherDomain:{set:function(e){null!=e&&(0,c.JE)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),i("publisherDomain",e)}},priceGranularity:{val:m.MEDIUM,set:function(e){f(e)&&("string"==typeof e?i("priceGranularity",l(e)?e:m.MEDIUM):(0,c.Qd)(e)&&(i("customPriceBucket",e),i("priceGranularity",m.CUSTOM),(0,c.OG)("Using custom price granularity")))}},customPriceBucket:{val:{},set:function(){}},mediaTypePriceGranularity:{val:{},set:function(e){null!=e&&i("mediaTypePriceGranularity",Object.keys(e).reduce((function(t,n){return f(e[n])?"string"==typeof e?t[n]=l(e[n])?e[n]:r("priceGranularity"):(0,c.Qd)(e)&&(t[n]=e[n],(0,c.OG)("Using custom price granularity for ".concat(n))):(0,c.JE)("Invalid price granularity for media type: ".concat(n)),t}),{}))}},bidderSequence:{val:g,set:function(e){v[e]?i("bidderSequence",e):(0,c.JE)("Invalid order: ".concat(e,". Bidder Sequence was not set."))}},auctionOptions:{val:{},set:function(e){(function(e){if(!(0,c.Qd)(e))return(0,c.JE)("Auction Options must be an object"),!1;for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];if("secondaryBidders"!==r&&"suppressStaleRender"!==r)return(0,c.JE)("Auction Options given an incorrect param: ".concat(r)),!1;if("secondaryBidders"===r){if(!(0,c.cy)(e[r]))return(0,c.JE)("Auction Options ".concat(r," must be of type Array")),!1;if(!e[r].every(c.O8))return(0,c.JE)("Auction Options ".concat(r," must be only string")),!1}else if("suppressStaleRender"===r&&!(0,c.Lm)(e[r]))return(0,c.JE)("Auction Options ".concat(r," must be of type boolean")),!1}return!0})(e)&&i("auctionOptions",e)}}},u={debug:p,bidderTimeout:3e3,enableSendAllBids:!0,useBidCache:!1,deviceAccess:!0,timeoutBuffer:400,disableAjaxTimeout:!1,maxNestedIframes:10};function l(e){return(0,s.I6)(Object.keys(m),(function(t){return e===m[t]}))}function f(e){if(!e)return(0,c.vV)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)l(e)||(0,c.JE)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,c.Qd)(e)&&!(0,a.q)(e))return(0,c.vV)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}Object.defineProperties(u,Object.fromEntries(Object.entries(d).map((function(e){var t=(0,o.A)(e,2),n=t[0],a=t[1];return[n,Object.assign({get:r.bind(null,n),set:i.bind(null,n),enumerable:!0},a)]})))),t&&T(Object.keys(t).reduce((function(e,n){return t[n]!==u[n]&&(e[n]=u[n]||{}),e}),{})),t=u,n={}}function b(){if(f&&n&&(0,c.Qd)(n[f])){var e=n[f],r=new Set(Object.keys(t).concat(Object.keys(e)));return(0,s.A6)(r).reduce((function(n,r){return void 0===e[r]?n[r]=t[r]:void 0===t[r]?n[r]=e[r]:(0,c.Qd)(e[r])?n[r]=(0,c.D9)({},t[r],e[r]):n[r]=e[r],n}),{})}return Object.assign({},t)}var y=[b,function(){var e=b();return Object.defineProperty(e,"ortb2",{get:function(){throw new Error("invalid access to 'orbt2' config - use request parameters instead")}}),e}].map((function(e){return function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var t=arguments.length<=0?void 0:arguments[0];return t?(0,d.A)(e(),t):b()}return C.apply(void 0,arguments)}})),_=(0,o.A)(y,2),A=_[0],w=_[1],I=[w,A].map((function(e){return function(){var t=e.apply(void 0,arguments);return t&&"object"===(0,i.A)(t)&&(t=(0,c.Go)(t)),t}})),E=(0,o.A)(I,2),O=E[0],x=E[1];function S(n){if((0,c.Qd)(n)){var r=Object.keys(n),i={};r.forEach((function(r){var o=n[r];(0,c.Qd)(e[r])&&(0,c.Qd)(o)&&(o=Object.assign({},e[r],o));try{i[r]=t[r]=o}catch(e){(0,c.JE)("Cannot set config for property ".concat(r," : "),e)}})),T(i)}else(0,c.vV)("setConfig options must be an object")}function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t;if("string"!=typeof e&&(i=e,e="*",n=t||{}),"function"==typeof i){var o={topic:e,callback:i};return u.push(o),n.init&&i("*"===e?w():(0,r.A)({},e,w(e))),function(){u.splice(u.indexOf(o),1)}}(0,c.vV)("listener must be a function")}function T(e){var t=Object.keys(e);u.filter((function(e){return(0,s.mK)(t,e.topic)})).forEach((function(t){t.callback((0,r.A)({},t.topic,e[t.topic]))})),u.filter((function(e){return"*"===e.topic})).forEach((function(t){return t.callback(e)}))}function k(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{!function(e){if(!(0,c.Qd)(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!(0,c.Qd)(e.config))throw"setBidderConfig bidder options must contain a config object"}(e),e.bidders.forEach((function(r){n[r]||(n[r]={}),Object.keys(e.config).forEach((function(i){var o=e.config[i];if((0,c.Qd)(o)){var a=t?c.D9:Object.assign;n[r][i]=a({},n[r][i]||{},o)}else n[r][i]=o}))}))}catch(e){(0,c.vV)(e)}}function D(e,t){f=e;try{return t()}finally{R()}}function R(){f=null}return h(),{getCurrentBidder:function(){return f},resetBidder:R,getConfig:w,getAnyConfig:A,readConfig:O,readAnyConfig:x,setConfig:S,mergeConfig:function(e){if((0,c.Qd)(e)){var t=(0,c.D9)(b(),e);return S(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,r.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)),t}(0,c.vV)("mergeConfig input must be an object")},setDefaults:function(n){(0,c.Qd)(e)?(Object.assign(e,n),Object.assign(t,n)):(0,c.vV)("defaults must be an object")},resetConfig:h,runWithBidder:D,callbackWithBidder:function(e){return function(t){return function(){if("function"==typeof t){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return D(e,t.bind.apply(t,[this].concat(r)))}(0,c.JE)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:k,getBidderConfig:function(){return n},mergeBidderConfig:function(e){return k(e,!0)}}}()},1586:(e,t,n)=>{"use strict";n.d(t,{B1:()=>A,SL:()=>V,ad:()=>M,et:()=>L,mW:()=>N,o2:()=>W,t6:()=>q});var r=n(296),i=n(9417),o=n(6822),a=n(3954),s=n(5361),c=n(3029),d=n(2901),u=n(4467),l=n(7575),p=n(4469),f=n(8718);function v(e,t,n){return t=(0,a.A)(t),(0,o.A)(e,g()?Reflect.construct(t,n||[],(0,a.A)(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function m(e,t,n){h(e,t),t.set(e,n)}function h(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b(e,t){return e.get(_(e,t))}function y(e,t,n){return e.set(_(e,t),n),n}function _(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var A=Object.freeze({}),w=(Object.freeze({}),new WeakMap),I=new WeakMap,E=new WeakMap,O=new WeakMap,x=new WeakMap,S=new WeakMap,C=new WeakSet,T=function(){function e(){var t;(0,c.A)(this,e),h(this,t=C),t.add(this),m(this,w,void 0),m(this,I,void 0),m(this,E,void 0),m(this,O,void 0),m(this,x,!0),m(this,S,void 0),(0,u.A)(this,"generatedTime",void 0),(0,u.A)(this,"hashFields",void 0),this.reset()}return(0,d.A)(e,[{key:"reset",value:function(){y(E,this,(0,p.v)()),y(w,this,!1),y(I,this,null),y(O,this,!1),this.generatedTime=null}},{key:"enable",value:function(){y(w,this,!0)}},{key:"enabled",get:function(){return b(w,this)}},{key:"ready",get:function(){return b(O,this)}},{key:"promise",get:function(){return b(O,this)?p.k.resolve(b(I,this)):(b(w,this)||_(C,this,k).call(this,null),b(E,this).promise)}},{key:"setConsentData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,l.vE)();this.generatedTime=t,y(x,this,!0),_(C,this,k).call(this,e)}},{key:"getConsentData",value:function(){return b(I,this)}},{key:"hash",get:function(){var e=this;return b(x,this)&&(y(S,this,(0,l.PB)(JSON.stringify(b(I,this)&&this.hashFields?this.hashFields.map((function(t){return b(I,e)[t]})):b(I,this)))),y(x,this,!1)),b(S,this)}}]),e}();function k(e){y(O,this,!0),y(I,this,e),b(E,this).resolve(e)}var D,R,j,P=function(e){function t(){return(0,c.A)(this,t),v(this,t,arguments)}return(0,s.A)(t,e),(0,d.A)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(T),B=function(e){function t(){var e;(0,c.A)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=v(this,t,[].concat(r)),(0,u.A)((0,i.A)(e),"hashFields",["gdprApplies","consentString"]),e}return(0,s.A)(t,e),(0,d.A)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,l.O8)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}}]),t}(T),U=function(e){function t(){var e;(0,c.A)(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=v(this,t,[].concat(r)),(0,u.A)((0,i.A)(e),"hashFields",["applicableSections","gppString"]),e}return(0,s.A)(t,e),(0,d.A)(t,[{key:"getConsentMeta",value:function(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}}]),t}(T),N=new B,q=new P,M=new U,L=function(){function e(){return!!f.$W.getConfig("coppa")}return{getCoppa:e,getConsentData:e,getConsentMeta:e,reset:function(){},get promise(){return p.k.resolve(e())},get hash(){return e()?"1":"0"}}}(),W=(D={},R={},j={},{register:function(e,t,n){n&&((D[t]=D[t]||{})[e]=n,R.hasOwnProperty(t)?R[t]!==n&&(R[t]=j):R[t]=n)},get:function(e){var t={modules:D[e]||{}};return R.hasOwnProperty(e)&&R[e]!==j&&(t.gvlid=R[e]),t}}),F={gdpr:N,usp:q,gpp:M,coppa:L},V=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:F;return e=Object.entries(e),Object.assign({get promise(){return p.k.all(e.map((function(e){var t=(0,r.A)(e,2),n=t[0];return t[1].promise.then((function(e){return[n,e]}))}))).then((function(e){return Object.fromEntries(e)}))},get hash(){return(0,l.PB)(e.map((function(e){var t=(0,r.A)(e,2);return t[0],t[1].hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((function(t){return[t,(n=t,function(){return Object.fromEntries(e.map((function(e){var t=(0,r.A)(e,2);return[t[0],t[1][n]()]})))})];var n}))))}()},2743:(e,t,n)=>{"use strict";n.d(t,{M:()=>i,RW:()=>f,Tf:()=>g,UE:()=>d,XQ:()=>o,Zh:()=>l,_B:()=>y,as:()=>s,cA:()=>c,h0:()=>m,iD:()=>r,jO:()=>h,nl:()=>_,oA:()=>b,qY:()=>a,tl:()=>v,x5:()=>p,xS:()=>u});var 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},a={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",BILLABLE_EVENT:"billableEvent",BID_ACCEPTED:"bidAccepted"},s={PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocument",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},c={bidWon:"adUnitCode"},d={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},u={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"},l={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"},p={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"},v={BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"},g={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"},m={body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl"},h={sponsored:1,desc:2,rating:3,likes:4,downloads:5,price:6,saleprice:7,phone:8,address:9,desc2:10,displayurl:11,ctatext:12},b={ICON:1,MAIN:3},y=["privacyIcon","clickUrl","sendTargetingKeys","adTemplate","rendererUrl","type"],_={REQUEST:"Prebid Request",RESPONSE:"Prebid Response",NATIVE:"Prebid Native",EVENT:"Prebid Event"}},9127:(e,t,n)=>{"use strict";n.d(t,{j:()=>p,q:()=>v});var r=n(5455),i=n(7575),o=n(8718),a=2,s={buckets:[{max:5,increment:.5}]},c={buckets:[{max:20,increment:.1}]},d={buckets:[{max:20,increment:.01}]},u={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 p(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":f(e,s,n),med:""===r?"":f(e,c,n),high:""===r?"":f(e,d,n),auto:""===r?"":f(e,l,n),dense:""===r?"":f(e,u,n),custom:""===r?"":f(e,t,n)}}function f(e,t,n){var s="";if(!v(t))return s;var c=t.buckets.reduce((function(e,t){return e.max>t.max?e:t}),{max:0}),d=0,u=(0,r.I6)(t.buckets,(function(t){if(e>c.max*n){var r=t.precision;void 0===r&&(r=a),s=(t.max*n).toFixed(r)}else{if(e<=t.max*n&&e>=d*n)return t.min=d,t;d=t.max}}));return u&&(s=function(e,t,n){var r=void 0!==t.precision?t.precision:a,s=t.increment*n,c=t.min*n,d=Math.floor,u=o.$W.getConfig("cpmRoundingFunction");"function"==typeof u&&(d=u);var l,p,f=Math.pow(10,r+2),v=(e*f-c*f)/(s*f);try{l=d(v)*s+c}catch(e){p=!0}return(p||"number"!=typeof l)&&((0,i.JE)("Invalid rounding function passed in config"),l=Math.floor(v)*s+c),(l=Number(l.toFixed(10))).toFixed(r)}(e,u,n)),s}function v(e){if((0,i.Im)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(t=!1)})),t}},9013:(e,t,n)=>{"use strict";n.d(t,{AU:()=>m,Ic:()=>b,kQ:()=>h,on:()=>g});var r=n(7575),i=n(2743),o=n(7280),a=n(8718),s="eventHistoryTTL",c=null,d=(0,o.H)({monotonic:!0,ttl:function(){return c}});a.$W.getConfig(s,(function(e){var t,n=c;e=null===(t=e)||void 0===t?void 0:t[s],n!==(c="number"==typeof e?1e3*e:null)&&d.refresh()}));var u=Array.prototype.slice,l=Array.prototype.push,p=Object.values(i.qY),f=i.cA,v=function(){var e={},t={};function n(e){return p.includes(e)}return t.has=n,t.on=function(t,i,o){if(n(t)){var a=e[t]||{que:[]};o?(a[o]=a[o]||{que:[]},a[o].que.push(i)):a.que.push(i),e[t]=a}else r.vV("Wrong event name : "+t+" Valid event names :"+p)},t.emit=function(t){!function(t,n){r.OG("Emitting event for: "+t);var i=n[0]||{},o=i[f[t]],a=e[t]||{que:[]},s=Object.keys(a),c=[];d.add({eventType:t,args:i,id:o,elapsedTime:r.V()}),o&&s.includes(o)&&l.apply(c,a[o].que),l.apply(c,a.que),(c||[]).forEach((function(e){if(e)try{e.apply(null,n)}catch(e){r.vV("Error executing handler:","events.js",e,t)}}))}(t,u.call(arguments,1))},t.off=function(t,n,i){var o=e[t];r.Im(o)||r.Im(o.que)&&r.Im(o[i])||i&&(r.Im(o[i])||r.Im(o[i].que))||(i?(o[i].que||[]).forEach((function(e){var t=o[i].que;e===n&&t.splice(t.indexOf(e),1)})):(o.que||[]).forEach((function(e){var t=o.que;e===n&&t.splice(t.indexOf(e),1)})),e[t]=o)},t.get=function(){return e},t.addEvents=function(e){p=p.concat(e)},t.getEvents=function(){return d.toArray().map((function(e){return Object.assign({},e)}))},t}();r.cD(v.emit.bind(v));var g=v.on,m=v.off,h=(v.get,v.getEvents),b=v.emit;v.addEvents,v.has},6439:(e,t,n)=>{"use strict";n.d(t,{A_:()=>s,Gc:()=>d,Y6:()=>v,Yn:()=>u,bz:()=>f,xG:()=>p});var r=n(5458),i=n(8128),o=n.n(i),a=n(4469),s=o()({ready:o().SYNC|o().ASYNC|o().QUEUE}),c=(0,a.v)();s.ready=function(){var e=s.ready;return function(){try{return e.apply(s,arguments)}finally{c.resolve()}}}();var d=c.promise,u=s.get,l={};function p(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).postInstallAllowed,i=void 0!==n&&n;s("async",(function(n){n.forEach((function(e){return t.apply(void 0,(0,r.A)(e))})),i&&(l[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];var i=l[e];if(i)return i.apply(void 0,n);u(e).before((function(e,t){t.push(n),e(t)}))}function v(e,t){return Object.defineProperties(t,Object.fromEntries(["before","after","getHooks","removeAll"].map((function(t){return[t,{get:function(){return e[t]}}]})))),t}},3233:(e,t,n)=>{"use strict";n.d(t,{D4:()=>o,G_:()=>i,LM:()=>a,s6:()=>r});var r="native",i="video",o="banner",a="adpod"},5455:(e,t,n)=>{"use strict";function r(e,t,n){return e&&e.includes(t,n)||!1}function i(){return Array.from.apply(Array,arguments)}function o(e,t,n){return e&&e.find(t,n)}n.d(t,{A6:()=>i,I6:()=>o,mK:()=>r})},3831:(e,t,n)=>{"use strict";n.d(t,{E:()=>a,m:()=>o});var r=window,i=r.__pwpbjs__=r.__pwpbjs__||{};function o(){return i}function a(e){i.installedModules.push(e)}i.cmd=i.cmd||[],i.que=i.que||[],r===window&&(r._pbjsGlobals=r._pbjsGlobals||[],r._pbjsGlobals.push("__pwpbjs__"))},556:(e,t,n)=>{"use strict";n.d(t,{EN:()=>d,gR:()=>a});var r=n(8718),i=n(7575);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!e)return e;if(/\w+:\/\//.exec(e))return e;var n=t.location.protocol;try{n=t.top.location.protocol}catch(e){}return/^\/\//.exec(e)?n+e:"".concat(n,"//").concat(e)}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.noLeadingWww,r=void 0!==n&&n,i=t.noPort,a=void 0!==i&&i;try{e=new URL(o(e))}catch(e){return}return e=a?e.hostname:e.host,r&&e.startsWith("www.")&&(e=e.substring(4)),e}function s(e){try{var t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}var c,d=function(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return i.top!==i?e:function(){var o=s(i.document),a=i.location.href;return t===o&&a===n||(t=o,n=a,r=e()),r}}((c=window,function(){var e,t,n,d,u=[],l=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(c),p=r.$W.getConfig("maxNestedIframes"),f=!1,v=0,g=!1,m=!1,h=!1;do{var b=e,y=m,_=void 0,A=!1,w=null;m=!1,e=e?e.parent:c;try{_=e.location.href||null}catch(e){A=!0}if(A)if(y){var I=b.context;try{t=w=I.sourceUrl,h=!0,g=!0,e===c.top&&(f=!0),I.canonicalUrl&&(n=I.canonicalUrl)}catch(e){}}else{(0,i.JE)("Trying to access cross domain iframe. Continuing without referrer and location");try{var E=b.document.referrer;E&&(w=E,e===c.top&&(f=!0))}catch(e){}!w&&l&&l[v-1]&&(w=l[v-1],e===c.top&&(h=!0)),w&&!g&&(t=w)}else{if(_&&(t=w=_,g=!1,e===c.top)){f=!0;var O=s(e.document);O&&(n=O)}e.context&&e.context.sourceUrl&&(m=!0)}u.push(w),v++}while(e!==c.top&&v<p);u.reverse();try{d=c.top.document.referrer}catch(e){}var x=f||h?t:null,S=r.$W.getConfig("pageUrl")||n||null,C=r.$W.getConfig("pageUrl")||x||o(S,c);return x&&x.indexOf("?")>-1&&-1===C.indexOf("?")&&(C="".concat(C).concat(x.substring(x.indexOf("?")))),{reachedTop:f,isAmp:g,numIframes:v-1,stack:u,topmostLocation:t||null,location:x,canonicalUrl:S,page:C,domain:a(C)||null,ref:d||null,legacy:{reachedTop:f,isAmp:g,numIframes:v-1,stack:u,referer:t||null,canonicalUrl:S}}}))},4128:(e,t,n)=>{"use strict";n.d(t,{CK:()=>b,X0:()=>v,qk:()=>f,s0:()=>g,vM:()=>h});var r=n(4467),i=n(7575),o=n(4447),a=n(3883),s=n(7253),c=n(6642),d=n(3973),u=n(8718),l=n(8256),p=n(6575),f="html5",v="cookie",g=[];function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.moduleName,n=e.moduleType,o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isAllowed,m=void 0===o?s.io:o;function h(e,i){var o=t,s=u.$W.getCurrentBidder();return s&&n===a.tW&&l.Ay.aliasRegistry[s]===t&&(o=s),e({valid:m(d.Ue,(0,p.s)(n,o,(0,r.A)({},c.Zw,i)))})}function b(e,t,n){if(!n||"function"!=typeof n)return h(e,t);g.push((function(){var r=h(e,t);n(r)}))}var y=function(e){return b((function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){(0,i.vV)("Local storage api disabled")}return!1}),f,e)};return{setCookie:function(e,t,n,r,i,o){return b((function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",s=n&&""!==n?" ;expires=".concat(n):"",c=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(t)).concat(s,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(c)}}),v,o)},getCookie:function(e,t){return b((function(t){if(t&&t.valid){var n=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return n?decodeURIComponent(n[2]):null}return null}),v,t)},localStorageIsEnabled:function(e){return b((function(e){if(e&&e.valid)try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){}finally{try{localStorage.removeItem("prebid.cookieTest")}catch(e){}}return!1}),f,e)},cookiesAreEnabled:function(e){return b((function(e){return!(!e||!e.valid)&&(0,i.GE)()}),v,e)},setDataInLocalStorage:function(e,t,n){return b((function(n){n&&n.valid&&y()&&window.localStorage.setItem(e,t)}),f,n)},getDataFromLocalStorage:function(e,t){return b((function(t){return t&&t.valid&&y()?window.localStorage.getItem(e):null}),f,t)},removeDataFromLocalStorage:function(e,t){return b((function(t){t&&t.valid&&y()&&window.localStorage.removeItem(e)}),f,t)},hasLocalStorage:y,findSimilarCookies:function(e,t){return b((function(t){if(t&&t.valid){var n=[];if((0,i.N9)())for(var r=document.cookie.split(";");r.length;){var o=r.pop(),a=o.indexOf("=");a=a<0?o.length:a,decodeURIComponent(o.slice(0,a).replace(/^\s+/,"")).indexOf(e)>=0&&n.push(decodeURIComponent(o.slice(a+1)))}return n}}),v,t)}}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.moduleType,n=e.moduleName,r=e.bidderCode;function i(){throw new Error("Invalid invocation for getStorageManager: must set either bidderCode, or moduleType + moduleName")}return r?((t&&t!==a.tW||n)&&i(),t=a.tW,n=r):n&&t||i(),m({moduleType:t,moduleName:n})}function b(e){return m({moduleName:e,moduleType:a.tp})}(0,s.qB)(d.Ue,"deviceAccess config",(function(){if(!(0,i.N9)())return{allow:!1}})),(0,s.qB)(d.Ue,"bidderSettings.*.storageAllowed",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.u;if(e[c.Dk]===a.tW){var n=t.get(e[c.q7],"storageAllowed");if(n&&!0!==n){var r=e[c.Zw];n=Array.isArray(n)?n.some((function(e){return e===r})):n===r}else n=!!n;return n?void 0:{allow:n}}}))},5588:(e,t,n)=>{"use strict";n.d(t,{zt:()=>g});var r=n(4467),i=n(296),o=n(7575),a=n(8718),s=n(5455),c=n(4128),d=n(7253),u=n(3973),l=n(6642),p=n(3883),f=n(6575);a.$W.setDefaults({userSync:(0,o.Go)({syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:0})});var v=(0,c.CK)("usersync"),g=function(e){var t={},n={image:[],iframe:[]},c=new Set,d={},v={image:!0,iframe:!1},g=e.config;function m(){if(g.syncEnabled&&e.browserSupportsCookies){try{v.iframe&&h(n.iframe,(function(e){var t=(0,i.A)(e,2),r=t[0],a=t[1];(0,o.OG)("Invoking iframe user sync for bidder: ".concat(r)),(0,o.SG)(a),function(e,t){e.image=e.image.filter((function(e){return e[0]!==t}))}(n,r)})),v.image&&h(n.image,(function(e){var t=(0,i.A)(e,2),n=t[0],r=t[1];(0,o.OG)("Invoking image pixel user sync for bidder: ".concat(n)),(0,o.z$)(r)}))}catch(e){return(0,o.vV)("Error firing user syncs",e)}n={image:[],iframe:[]}}}function h(e,t){(0,o.k4)(e).forEach(t)}return a.$W.getConfig("userSync",(function(e){if(e.userSync){var t=e.userSync.filterSettings;(0,o.Qd)(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}g=Object.assign(g,e.userSync)})),e.regRule(u.Ml,"userSync config",(function(e){if(!g.syncEnabled)return{allow:!1,reason:"syncs are disabled"};if(e[l.Dk]===p.tW){var n=e[l.bt],r=e[l.iK];if(!t.canBidderRegisterSync(n,r))return{allow:!1,reason:"".concat(n," syncs are not enabled for ").concat(r)}}})),t.registerSync=function(t,i,a){return c.has(i)?(0,o.OG)('already fired syncs for "'.concat(i,'", ignoring registerSync call')):g.syncEnabled&&(0,o.cy)(n[t])?i?0!==g.syncsPerBidder&&Number(d[i])>=g.syncsPerBidder?(0,o.JE)('Number of user syncs exceeded for "'.concat(i,'"')):void(e.isAllowed(u.Ml,(0,f.s)(p.tW,i,(0,r.A)((0,r.A)({},l.bt,t),l.e3,a)))&&(n[t].push([i,a]),d=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(d,i))):(0,o.JE)("Bidder is required for registering sync"):(0,o.JE)('User sync type "'.concat(t,'" not supported'))},t.bidderDone=c.add.bind(c),t.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(m,Number(e));m()},t.triggerUserSyncs=function(){g.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=function(e,t){return!g.filterSettings||!function(e,t){var n=g.filterSettings;if(function(e,t){if(e.all&&e[t])return(0,o.JE)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(t,'" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var n=e.all?e.all:e[t],r=e.all?"all":t;if(!n)return!1;var i=n.filter,a=n.bidders;return i&&"include"!==i&&"exclude"!==i?((0,o.JE)('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(i,"' is not a valid option; use either 'include' or 'exclude'.")),!1):!!("*"===a||Array.isArray(a)&&a.length>0&&a.every((function(e){return(0,o.O8)(e)&&"*"!==e})))||((0,o.JE)('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1)}(n,e)){v[e]=!0;var r=n.all?n.all:n[e],i="*"===r.bidders?[t]:r.bidders,a={include:function(e,t){return!(0,s.mK)(e,t)},exclude:function(e,t){return(0,s.mK)(e,t)}};return a[r.filter||"include"](i,t)}return!v[e]}(e,t)},t}(Object.defineProperties({config:a.$W.getConfig("userSync"),isAllowed:d.io,regRule:d.qB},{browserSupportsCookies:{get:function(){return!(0,o.Vt)()&&v.cookiesAreEnabled()}}}))},7575:(e,t,n)=>{"use strict";n.d(t,{$D:()=>q,$l:()=>tt,$z:()=>Ne,Bg:()=>rt,Bj:()=>nt,Bq:()=>Ae,CA:()=>te,D4:()=>we,D9:()=>Ze,Dl:()=>Qe,El:()=>it,Et:()=>se,Ez:()=>ne,Fq:()=>ze,GE:()=>Be,Go:()=>Ce,II:()=>Oe,Im:()=>ue,JE:()=>K,Lm:()=>de,N9:()=>Pe,O8:()=>oe,OG:()=>H,PB:()=>et,Qd:()=>ce,SB:()=>Le,SG:()=>be,SH:()=>qe,Tz:()=>ye,U6:()=>Ue,Up:()=>He,Uu:()=>Je,V:()=>je,Vt:()=>ke,Wz:()=>he,YI:()=>D,ZA:()=>Ee,_W:()=>Ie,_s:()=>ve,al:()=>Te,bL:()=>N,bu:()=>pe,bz:()=>Ge,c$:()=>Xe,cD:()=>S,cy:()=>ae,eP:()=>$e,fH:()=>J,fp:()=>ie,gM:()=>De,gR:()=>fe,h0:()=>Q,hj:()=>_e,hw:()=>ee,iC:()=>Ve,k4:()=>Se,kK:()=>M,l4:()=>G,l9:()=>We,lk:()=>B,mb:()=>V,nX:()=>W,s0:()=>P,sC:()=>Fe,t1:()=>xe,u5:()=>U,vE:()=>Re,vV:()=>$,wD:()=>Me,xQ:()=>le,z$:()=>me});var r,i=n(5458),o=n(4467),a=n(296),s=n(2284),c=n(8718),d=n(7855),u=n.n(d),l=n(5455),p=n(2743),f=n(4469),v=n(3831),g="String",m="Function",h="Number",b="Object",y="Boolean",_=Object.prototype.toString,A=Boolean(window.console),w=Boolean(A&&window.console.log),I=Boolean(A&&window.console.info),E=Boolean(A&&window.console.warn),O=Boolean(A&&window.console.error),x=(0,v.m)();function S(e){r=e}function C(){null!=r&&r.apply(void 0,arguments)}var T={checkCookieSupport:Be,createTrackPixelIframeHtml:function(e){var 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="'.concat(t,'"')),"<iframe ".concat(t,' id="').concat(P(),'"\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="').concat(e,'">\n </iframe>')):""},getWindowSelf:G,getWindowTop:V,getWindowLocation:z,insertUserSyncIframe:be,insertElement:ve,isFn:ie,triggerPixel:me,logError:$,logWarn:K,logMessage:H,logInfo:J,parseQS:Ke,formatQS:$e,deepEqual:Ye},k={};function D(){return k}var R,j=(R=0,function(){return++R});function P(){return j()+Math.random().toString(16).substr(2)}function B(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,B)}function U(e,t){return(null==t?void 0:t[e])||""}function N(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t.replace(/&$/,"")}function q(e){return e&&Object.getOwnPropertyNames(e).length>0?Object.keys(e).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e[t]))})).join("&"):""}function M(e){return"string"==typeof e?e.split(",").filter((function(e){return e.match(/^(\d)+x(\d)+$/i)})):"object"===(0,s.A)(e)?2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]?[L(e)]:e.map(L):[]}function L(e){if(F(e))return e[0]+"x"+e[1]}function W(e){if(F(e))return{w:e[0],h:e[1]}}function F(e){return ae(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function V(){return window.top}function G(){return window.self}function z(){return window.location}function H(){Y()&&w&&console.log.apply(console,X(arguments,"MESSAGE:"))}function J(){Y()&&I&&console.info.apply(console,X(arguments,"INFO:"))}function K(){Y()&&E&&console.warn.apply(console,X(arguments,"WARNING:")),C(p.qY.AUCTION_DEBUG,{type:"WARNING",arguments})}function $(){Y()&&O&&console.error.apply(console,X(arguments,"ERROR:")),C(p.qY.AUCTION_DEBUG,{type:"ERROR",arguments})}function Q(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.apply(void 0,[e].concat(r))}}return{logError:t($),logWarn:t(K),logMessage:t(H),logInfo:t(J)}}function X(e,t){e=[].slice.call(e);var n=c.$W.getCurrentBidder();return t&&e.unshift(t),n&&e.unshift(r("#aaa")),e.unshift(r("#3b88c3")),e.unshift("%cPrebid"+(n?"%c".concat(n):"")),e;function r(e){return"display: inline-block; color: #fff; background: ".concat(e,"; padding: 1px 4px; border-radius: 3px;")}}function Y(){return!!c.$W.getConfig("debug")}var Z,ee=(Z={border:"0px",hspace:"0",vspace:"0",marginWidth:"0",marginHeight:"0",scrolling:"no",frameBorder:"0",allowtransparency:"true"},function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("iframe");return Object.assign(r,Object.assign({},Z,t)),Object.assign(r.style,n),r});function te(){return ee(document,{id:P(),width:0,height:0,src:"about:blank"},{display:"none",height:"0px",width:"0px",border:"0px"})}function ne(e){return Ke(z().search)[e]||""}function re(e,t){return _.call(e)==="[object "+t+"]"}function ie(e){return re(e,m)}function oe(e){return re(e,g)}var ae=Array.isArray.bind(Array);function se(e){return re(e,h)}function ce(e){return re(e,b)}function de(e){return re(e,y)}function ue(e){return!e||(ae(e)||oe(e)?!(e.length>0):Object.keys(e).length<=0)}function le(e){return oe(e)&&(!e||0===e.length)}function pe(e,t){var n=this;if(ie(null==e?void 0:e.forEach))return e.forEach(t,this);Object.entries(e||{}).forEach((function(e){var r=(0,a.A)(e,2),i=r[0],o=r[1];return t.call(n,o,i)}))}function fe(e,t){return ie(null==e?void 0:e.includes)&&e.includes(t)}function ve(e,t,n,r){var i;t=t||document,i=n?t.getElementsByTagName(n):t.getElementsByTagName("head");try{if((i=i.length?i:t.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(e,o)}}catch(e){}}function ge(e,t){var n=null;return new f.k((function(r){var i=function t(){e.removeEventListener("load",t),e.removeEventListener("error",t),null!=n&&window.clearTimeout(n),r()};e.addEventListener("load",i),e.addEventListener("error",i),null!=t&&(n=window.setTimeout(i,t))}))}function me(e,t,n){var r=new Image;t&&T.isFn(t)&&ge(r,n).then(t),r.src=e}function he(e){var t=e.source,n=e.burl;t===p.RW.SRC&&n&&T.triggerPixel(n)}function be(e,t,n){var r=T.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=r;var o=i.firstChild;t&&T.isFn(t)&&ge(o,n).then(t),T.insertElement(o,document,"html",!0)}function ye(e){return e?'<div style="position:absolute;left:0px;top:0px;visibility:hidden;">'+'<img src="'+encodeURI(e)+'"></div>':""}function _e(e,t,n){return n.indexOf(e)===t}function Ae(e,t){return e.concat(t)}function we(e,t){if(e)return t.flatMap((function(e){return e.bids})).find((function(t){return["bidId","adId","bid_id"].some((function(n){return t[n]===e}))}))}function Ie(e,t){return e[t]}function Ee(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:x.adUnits).map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(Ae,[])})).reduce(Ae,[]).filter((function(e){return void 0!==e})).filter(_e)}function Oe(){if(window.googletag&&ie(window.googletag.pubads)&&ie(window.googletag.pubads().getSlots))return!0}function xe(){if(window.apntag&&ie(window.apntag.getTag))return!0}function Se(e){for(var t=e.length;t>0;){var n=Math.floor(Math.random()*t),r=e[--t];e[t]=e[n],e[n]=r}return e}function Ce(e){return u()(e)}function Te(){try{return T.getWindowSelf()!==T.getWindowTop()}catch(e){return!0}}function ke(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function De(e,t){if(e)return Object.entries(t).reduce((function(e,t){var n=(0,a.A)(t,2),r=n[0],i=n[1];return e.replace(new RegExp("\\$\\{"+r+"\\}","g"),i||"")}),e)}function Re(){return(new Date).getTime()}function je(){return window.performance&&window.performance.now&&window.performance.now()||0}function Pe(){return!1!==c.$W.getConfig("deviceAccess")}function Be(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function Ue(e,t){if(t<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(t));var n=0;return function(){++n===t&&e.apply(this,arguments)}}function Ne(e,t){return e.reduce((function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e}),{})}function qe(e,t){return t.filter((function(t){return e[t]})).reduce((function(t,n){return Object.assign(t,(0,o.A)({},n,e[n]))}),{})}function Me(e){var t=["banner","native","video"];return!!Object.keys(e).every((function(e){return(0,l.mK)(t,e)}))&&(!e.video||!e.video.context||(0,l.mK)(["instream","outstream","adpod"],e.video.context))}function Le(e,t,n){return e.filter((function(e){return e.code===t})).flatMap((function(e){return e.bids})).filter((function(e){return e.bidder===n})).map((function(e){return e.params||{}}))}function We(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}var Fe=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t};function Ve(e){return function(t){return Fe(e,t)}}function Ge(e,t){var n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n ".concat(e.code," is a ").concat(n," ad unit\n containing bidders that don't support ").concat(n,": ").concat(t,".\n This bidder won't fetch demand.\n ")}var ze=Number.isInteger.bind(Number);function He(e,t){return"object"!==(0,s.A)(e)?{}:t.reduce((function(n,r,i){if("function"==typeof r)return n;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var s=e[r];return"function"==typeof t[i+1]&&(s=t[i+1](s,n)),void 0!==s&&(n[o]=s),n}),{})}function Je(e,t){return ae(e)&&(!t||e.length===t)&&e.every((function(e){return ze(e)}))}function Ke(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,t){var n=t.split("="),r=(0,a.A)(n,2),i=r[0],o=r[1];return/\[\]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(o)):e[i]=o||"",e}),{}):{}}function $e(e){return Object.keys(e).map((function(t){return Array.isArray(e[t])?e[t].map((function(e){return"".concat(t,"[]=").concat(e)})).join("&"):"".concat(t,"=").concat(e[t])})).join("&")}function Qe(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var 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:T.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}}function Xe(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(T.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}function Ye(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkTypes,r=void 0!==n&&n;if(e===t)return!0;if("object"!==(0,s.A)(e)||null===e||"object"!==(0,s.A)(t)||null===t||r&&e.constructor!==t.constructor)return!1;var i=Object.keys(e);if(i.length!==Object.keys(t).length)return!1;for(var o=0,a=i;o<a.length;o++){var c=a[o];if(!t.hasOwnProperty(c))return!1;if(!Ye(e[c],t[c],{checkTypes:r}))return!1}return!0}function Ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(!n.length)return e;var a=n.shift();if(ce(e)&&ce(a)){var s=function(t){ce(a[t])?(e[t]||Object.assign(e,(0,o.A)({},t,{})),Ze(e[t],a[t])):ae(a[t])?e[t]?ae(e[t])&&a[t].forEach((function(n){for(var r=1,i=0;i<e[t].length;i++)if(Ye(e[t][i],n)){r=0;break}r&&e[t].push(n)})):Object.assign(e,(0,o.A)({},t,(0,i.A)(a[t]))):Object.assign(e,(0,o.A)({},t,a[t]))};for(var c in a)s(c)}return Ze.apply(void 0,[e].concat(n))}function et(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=function(e,t){if(ie(Math.imul))return Math.imul(e,t);var n=(4194303&e)*(t|=0);return 4290772992&e&&(n+=(4290772992&e)*t|0),0|n},i=3735928559^n,o=1103547991^n,a=0;a<e.length;a++)i=r(i^(t=e.charCodeAt(a)),2654435761),o=r(o^t,1597334677);return i=r(i^i>>>16,2246822507)^r(o^o>>>13,3266489909),(4294967296*(2097151&(o=r(o^o>>>16,2246822507)^r(i^i>>>13,3266489909)))+(i>>>0)).toString()}function tt(e){try{return JSON.parse(e)}catch(e){}}function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e},n=new Map,r=function(){var 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 rt(e,t){Object.entries(t).forEach((function(t){var n=(0,a.A)(t,2),r=n[0],i=n[1];return e.setAttribute(r,i)}))}function it(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=0,i=e.length&&e.length-1,o=n(t);i-r>1;){var a=r+Math.round((i-r)/2);o>n(e[a])?r=a:i=a}for(;e.length>r&&o>n(e[r]);)r++;return r}},2607:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});var r=n(433);function i(e){return null==e||!e.gdprApplies||!0===(0,r.A)(e,"vendorData.purpose.consents.1")}},1992:(e,t,n)=>{"use strict";n.d(t,{Ak:()=>y,BO:()=>g,K7:()=>h});var r=n(296),i=n(8718);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a="performanceMetrics",s=window.performance&&window.performance.now?function(){return window.performance.now()}:function(){return Date.now()},c=new WeakMap;function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.now,n=void 0===t?s:t,r=e.mkNode,i=void 0===r?p:r,o=e.mkTimer,a=void 0===o?l:o,d=e.mkRenamer,u=void 0===d?function(e){return e}:d,f=e.nodes,v=void 0===f?c:f;return function(){return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return{forEach:function(t){t(e)}}};r=u(r);var o=("timestamps",function(e){return t.dfWalk({visit:function(t,n){var r=n.timestamps;if(r.hasOwnProperty(e))return r[e]}})});function s(e,n){var i=r(e);t.dfWalk({follow:function(e,t){return t.propagate&&(!e||!e.stopPropagation)},visit:function(e,t){i.forEach((function(r){null==e?t.metrics[r]=n:(t.groups.hasOwnProperty(r)||(t.groups[r]=[]),t.groups[r].push(n))}))}})}function c(e){return a(n,(function(t){return s(e,t)}))}function d(){var e={};return t.dfWalk({visit:function(t,n){e=Object.assign({},!t||t.includeGroups?n.groups:null,n.metrics,e)}}),e}var l={startTiming:c,measureTime:function(e,t){return c(e).stopAfter(t)()},measureHookTime:function(e,t,n){var r=c(e);return n(function(e){var t=r.stopBefore(e);return t.bail=e.bail&&r.stopBefore(e.bail),t.stopTiming=r,t.untimed=e,t}(t))},checkpoint:function(e){t.timestamps[e]=n()},timeSince:function(e,t){var r=o(e),i=null!=r?n()-r:null;return null!=t&&s(t,i),i},timeBetween:function(e,t,n){var r=o(e),i=o(t),a=null!=r&&null!=i?i-r:null;return null!=n&&s(n,a),a},setMetric:s,getMetrics:d,fork:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.propagate,a=void 0===o||o,s=n.stopPropagation,c=void 0!==s&&s,d=n.includeGroups;return e(i([[t,{propagate:a,stopPropagation:c,includeGroups:void 0!==d&&d}]]),r)},join:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.propagate,i=void 0===r||r,o=n.stopPropagation,a=void 0!==o&&o,s=n.includeGroups,c=void 0!==s&&s,d=v.get(e);null!=d&&d.addParent(t,{propagate:i,stopPropagation:a,includeGroups:c})},newMetrics:function(){return e(t.newSibling(),r)},renameWith:function(n){return e(t,n)},toJSON:function(){return d()}};return v.set(l,t),l}(i([]))}}function u(e,t,n){return function(){t&&t();try{return e.apply(this,arguments)}finally{n&&n()}}}function l(e,t){var n=e(),r=!1;function i(){r||(t(e()-n),r=!0)}return i.stopBefore=function(e){return u(e,i)},i.stopAfter=function(e){return u(e,null,i)},i}function p(e){return{metrics:{},timestamps:{},groups:{},addParent:function(t,n){e.push([t,n])},newSibling:function(){return p(e.slice())},dfWalk:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.visit,a=n.follow,s=void 0===a?function(){return!0}:a,c=n.visited,d=void 0===c?new Set:c,u=n.inEdge;if(!d.has(this)){if(d.add(this),null!=(t=i(u,this)))return t;var l,p=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}(e);try{for(p.s();!(l=p.n()).done;){var f=(0,r.A)(l.value,2),v=f[0],g=f[1];if(s(u,g)&&null!=(t=v.dfWalk({visit:i,follow:s,visited:d,inEdge:g})))return t}}catch(e){p.e(e)}finally{p.f()}}}}}var f=function(){var e=function(){},t=function(){return{}},n={forEach:e},r=function(){return null};r.stopBefore=function(e){return e},r.stopAfter=function(e){return e};var i=Object.defineProperties({dfWalk:e,newSibling:function(){return i},addParent:e},Object.fromEntries(["metrics","timestamps","groups"].map((function(e){return[e,{get:t}]}))));return d({now:function(){return 0},mkNode:function(){return i},mkRenamer:function(){return function(){return n}},mkTimer:function(){return r},nodes:{get:e,set:e}})()}(),v=!0;function g(e){return v&&e||f}i.$W.getConfig(a,(function(e){v=!!e[a]}));var m,h=(m=d(),function(){return v?m():f});function b(e,t){return function(n,r){return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];var c=this;return g(t.apply(c,a)).measureHookTime(e+n,i,(function(e){return r.call.apply(r,[c,e].concat(a))}))}}}var y=b("requestBids.",(function(e){return e.metrics}));b("addBidResponse.",(function(e,t){return t.metrics}))},4469:(e,t,n)=>{"use strict";n.d(t,{k:()=>v,v:()=>m});var r=n(296),i=n(3029),o=n(2901);function a(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function s(e,t){return e.get(d(e,t))}function c(e,t,n){return e.set(d(e,t),n),n}function d(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var u=0,l=1,p=new WeakMap,f=new WeakMap,v=function(){function e(t){if((0,i.A)(this,e),a(this,p,void 0),a(this,f,void 0),"function"!=typeof t)throw new Error("resolver not a function");var n=[],o=[],s=[u,l].map((function(e){return function(t){if(e===u&&"function"==typeof(null==t?void 0:t.then))t.then(v,g);else if(!n.length)for(n.push(e,t);o.length;)o.shift()()}})),d=(0,r.A)(s,2),v=d[0],g=d[1];try{t(v,g)}catch(e){g(e)}c(p,this,n),c(f,this,o)}return(0,o.A)(e,[{key:"then",value:function(e,t){var n=this,i=s(p,this);return new this.constructor((function(o,a){var c=function(){var n=i[1],s=i[0]===u?[e,o]:[t,a],c=(0,r.A)(s,2),d=c[0],l=c[1];if("function"==typeof d){try{n=d(n)}catch(e){return void a(e)}l=o}l(n)};i.length?c():s(f,n).push(c)}))}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"finally",value:function(e){var t,n=this;return this.then((function(n){return t=n,e()}),(function(r){return t=n.constructor.reject(r),e()})).then((function(){return t}))}}],[{key:"timeout",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new e((function(e){0===t?e():setTimeout(e,t)}))}},{key:"race",value:function(t){var n=this;return new this((function(r,i){d(e,n,g).call(n,t,(function(e,t){return e?r(t):i(t)}))}))}},{key:"all",value:function(t){var n=this;return new this((function(r,i){var o=[];d(e,n,g).call(n,t,(function(e,t,n){return e?o[n]=t:i(t)}),(function(){return r(o)}))}))}},{key:"allSettled",value:function(t){var n=this;return new this((function(r){var i=[];d(e,n,g).call(n,t,(function(e,t,n){return i[n]=e?{status:"fulfilled",value:t}:{status:"rejected",reason:t}}),(function(){return r(i)}))}))}},{key:"resolve",value:function(e){return new this((function(t){return t(e)}))}},{key:"reject",value:function(e){return new this((function(t,n){return n(e)}))}}]),e}();function g(e,t,n){var r=this,i=e.length;function o(){t.apply(this,arguments),--i<=0&&n&&n()}0===e.length&&n?n():e.forEach((function(e,t){return r.resolve(e).then((function(e){return o(!0,e,t)}),(function(e){return o(!1,e,t)}))}))}function m(){var e,t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).promiseFactory;function r(e){return function(t){return e(t)}}return{promise:(void 0===n?function(e){return new v(e)}:n)((function(n,r){e=n,t=r})),resolve:r(e),reject:r(t)}}},7280:(e,t,n)=>{"use strict";n.d(t,{H:()=>c});var r=n(4467),i=n(296),o=n(4469),a=n(7575);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=n.startTime,d=void 0===c?a.vE:c,u=n.ttl,l=void 0===u?function(){return null}:u,p=n.monotonic,f=void 0!==p&&p,v=n.slack,g=void 0===v?5e3:v,m=new Map,h=[],b=[],y=f?function(e){return b.push(e)}:function(e){return b.splice((0,a.El)(b,e,(function(e){return e.expiry})),0,e)};function _(){if(t&&clearTimeout(t),b.length>0){var n=(0,a.vE)();e=Math.max(n,b[0].expiry+g),t=setTimeout((function(){for(var e=(0,a.vE)(),n=0,r=function(){var t=o[i];if(t.expiry>e)return 1;h.forEach((function(e){try{e(t.item)}catch(e){(0,a.vV)(e)}})),m.delete(t.item),n++},i=0,o=b;i<o.length&&!r();i++);b.splice(0,n),t=null,_()}),e-n)}else t=null}var A={};return(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},Symbol.iterator,(function(){return m.keys()})),"add",(function(n){!m.has(n)&&m.set(n,function(n){var r,a={},s=A,c=Object.entries({start:d,delta:l}).map((function(c){var d,u=(0,i.A)(c,2),l=u[0],p=u[1];return function(){var i=d={};o.k.resolve(p(n)).then((function(n){i===d&&(a[l]=n,s===A&&null!=a.start&&null!=a.delta&&(r=a.start+a.delta,y(v),(null==t||e>r+g)&&_()))}))}})),u=(0,i.A)(c,2),p=u[0],f=u[1],v={item:n,refresh:f,get expiry(){return r}};return p(),f(),v}(n))})),"clear",(function(){b.length=0,_(),m.clear(),A={}})),"toArray",(function(){return Array.from(m.keys())})),"refresh",(function(){b.length=0,_();var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}(m.values());try{for(t.s();!(e=t.n()).done;)e.value.refresh()}catch(e){t.e(e)}finally{t.f()}})),"onExpiry",(function(e){return h.push(e),function(){var t=h.indexOf(e);t>=0&&h.splice(t,1)}}))}},4781:(e,t,n)=>{"use strict";n.d(t,{H6:()=>c,V0:()=>u,mn:()=>d,vk:()=>l});var r=n(433),i=n(7575),o=n(8718),a=n(6439),s=n(6428),c="outstream",d="instream";function u(e){var t,n=null==e||null===(t=e.mediaTypes)||void 0===t?void 0:t.video;null!=n&&null==n.plcmt&&(n.context===c||[2,3,4].includes(n.placement)?n.plcmt=4:n.context!==c&&[2,6].includes(n.playbackmethod)&&(n.plcmt=2))}function l(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,n=void 0===t?s.n.index:t,i=(0,r.A)(n.getMediaTypes(e),"video"),o=i&&(0,r.A)(i,"context"),a=i&&(0,r.A)(i,"useCacheKey"),c=n.getAdUnit(e);return p(e,c,i,o,a)}var p=(0,a.A_)("sync",(function(e,t,n,r,a){return n&&(a||r!==c)?o.$W.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.vV)('\n This bid contains only vastXml and will not work when a prebid cache url is not specified.\n Try enabling prebid cache with __pwpbjs__.setConfig({ cache: {url: "..."} });\n '),!1):!(r===c&&!a&&!(e.renderer||t&&t.renderer||n.renderer))}),"checkVideoBidSetup")},3817:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){null!==e&&this.fromHexString(e)}return e.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var e,t=!1,n="",r=this.t,i=this.DB-r*this.DB%4;if(r-- >0)for(i<this.DB&&(e=this[r]>>i)>0&&(t=!0,n=l(e));r>=0;)i<4?(e=(this[r]&(1<<i)-1)<<4-i,e|=this[--r]>>(i+=this.DB-4)):(e=this[r]>>(i-=4)&15,i<=0&&(i+=this.DB,--r)),e>0&&(t=!0),t&&(n+=l(e));return t?n:"0"},e.prototype.fromHexString=function(t){if(null!==t){this.t=0,this.s=0;for(var n=t.length,r=!1,i=0;--n>=0;){var o=d(t,n);o<0?"-"==t.charAt(n)&&(r=!0):(r=!1,0==i?this[this.t++]=o:i+4>this.DB?(this[this.t-1]|=(o&(1<<this.DB-i)-1)<<i,this[this.t++]=o>>this.DB-i):this[this.t-1]|=o<<i,(i+=4)>=this.DB&&(i-=this.DB))}this.clamp(),r&&e.ZERO.subTo(this,this)}},e.prototype.negate=function(){var t=i();return e.ZERO.subTo(this,t),t},e.prototype.abs=function(){return this.s<0?this.negate():this},e.prototype.mod=function(t){var n=i();return this.abs().divRemTo(t,null,n),this.s<0&&n.compareTo(e.ZERO)>0&&t.subTo(n,n),n},e.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},e.prototype.lShiftTo=function(e,t){for(var n=e%this.DB,r=this.DB-n,i=(1<<r)-1,o=Math.floor(e/this.DB),a=this.s<<n&this.DM,s=this.t-1;s>=0;--s)t[s+o+1]=this[s]>>r|a,a=(this[s]&i)<<n;for(s=o-1;s>=0;--s)t[s]=0;t[o]=a,t.t=this.t+o+1,t.s=this.s,t.clamp()},e.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},e.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},e.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var r=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,r,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},e.prototype.multiplyTo=function(t,n){var r=this.abs(),i=t.abs(),o=r.t;for(n.t=o+i.t;--o>=0;)n[o]=0;for(o=0;o<i.t;++o)n[o+r.t]=r.am(0,i[o],n,o,0,r.t);n.s=0,n.clamp(),this.s!=t.s&&e.ZERO.subTo(n,n)},e.prototype.divRemTo=function(t,n,r){var a=t.abs();if(!(a.t<=0)){var s=this.abs();if(s.t<a.t)return null!=n&&n.fromHexString("0"),void(null!=r&&this.copyTo(r));null==r&&(r=i());var c=i(),d=this.s,u=t.s,l=this.DB-o(a[a.t-1]);l>0?(a.lShiftTo(l,c),s.lShiftTo(l,r)):(a.copyTo(c),s.copyTo(r));var p=c.t,f=c[p-1];if(0!=f){var v=f*(1<<this.F1)+(p>1?c[p-2]>>this.F2:0),g=this.FV/v,m=(1<<this.F1)/v,h=1<<this.F2,b=r.t,y=b-p,_=null==n?i():n;for(c.dlShiftTo(y,_),r.compareTo(_)>=0&&(r[r.t++]=1,r.subTo(_,r)),e.ONE.dlShiftTo(p,_),_.subTo(c,c);c.t<p;)c[c.t++]=0;for(;--y>=0;){var A=r[--b]==f?this.DM:Math.floor(r[b]*g+(r[b-1]+h)*m);if((r[b]+=c.am(0,A,r,y,0,p))<A)for(c.dlShiftTo(y,_),r.subTo(_,r);r[b]<--A;)r.subTo(_,r)}null!=n&&(r.drShiftTo(p,n),d!=u&&e.ZERO.subTo(n,n)),r.t=p,r.clamp(),l>0&&r.rShiftTo(l,r),d<0&&e.ZERO.subTo(r,r)}}},e.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<<r)-1;t[0]=this[n]>>r;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<i,t[a-n]=this[a]>>r;r>0&&(t[this.t-n-1]|=(this.s&o)<<i),t.t=this.t-n,t.clamp()}},e.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},e.prototype.subTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n<i;)r+=this[n]-e[n],t[n++]=r&this.DM,r>>=this.DB;if(e.t<this.t){for(r-=e.s;n<this.t;)r+=this[n],t[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<e.t;)r-=e[n],t[n++]=r&this.DM,r>>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},e.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},e.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new p(t):new f(t),this.exp(e,n)},e.prototype.exp=function(t,n){if(t>4294967295||t<1)return e.ONE;var r=i(),a=i(),s=n.convert(this),c=o(t)-1;for(s.copyTo(r);--c>=0;)if(n.sqrTo(r,a),(t&1<<c)>0)n.mulTo(a,s,r);else{var d=r;r=a,a=d}return n.revert(r)},e.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},e.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},e.prototype.am1=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},e.prototype.am2=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var c=32767&this[e],d=this[e++]>>15,u=s*c+d*a;i=((c=a*c+((32767&u)<<15)+n[r]+(1073741823&i))>>>30)+(u>>>15)+s*d+(i>>>30),n[r++]=1073741823&c}return i},e.prototype.am3=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var c=16383&this[e],d=this[e++]>>14,u=s*c+d*a;i=((c=a*c+((16383&u)<<14)+n[r]+i)>>28)+(u>>14)+s*d,n[r++]=268435455&c}return i},e}();function i(){return new r(null)}function o(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}t.BigInteger=r,t.nbi=i,t.nbits=o;var a,s,c=[];for(a="0".charCodeAt(0),s=0;s<=9;++s)c[a++]=s;for(a="a".charCodeAt(0),s=10;s<36;++s)c[a++]=s;for(a="A".charCodeAt(0),s=10;s<36;++s)c[a++]=s;function d(e,t){var n=c[e.charCodeAt(t)];return null==n?-1:n}t.intAt=d;var u="0123456789abcdefghijklmnopqrstuvwxyz";function l(e){return u.charAt(e)}t.int2char=l,t.b64toHex=function(e){var t,n="",r=0,i=0;for(t=0;t<e.length&&"="!=e.charAt(t);++t){var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(e.charAt(t));o<0||(0==r?(n+=l(o>>2),i=3&o,r=1):1==r?(n+=l(i<<2|o>>4),i=15&o,r=2):2==r?(n+=l(i),n+=l(o>>2),i=3&o,r=3):(n+=l(i<<2|o>>4),n+=l(15&o),r=0))}return 1==r&&(n+=l(i<<2)),n},t.removeExtraSymbols=function(e){return e.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var p=function(){function e(e){this.m=e}return e.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},e.prototype.revert=function(e){return e},e.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}(),f=function(){function e(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}return e.prototype.convert=function(e){var t=i();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t},e.prototype.revert=function(e){var t=i();return e.copyTo(t),this.reduce(t),t},e.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],r=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},e.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},e.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},e}();function v(e){var t=i();return t.fromHexString(e.toString()),t}t.nbv=v,r.ZERO=v(0),r.ONE=v(1),"Microsoft Internet Explorer"==navigator.appName?(r.prototype.am=r.prototype.am2,n=30):"Netscape"!=navigator.appName?(r.prototype.am=r.prototype.am1,n=26):(r.prototype.am=r.prototype.am3,n=28),r.prototype.DB=n,r.prototype.DM=(1<<n)-1,r.prototype.DV=1<<n,r.prototype.FV=Math.pow(2,52),r.prototype.F1=52-n,r.prototype.F2=2*n-52},4149:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.hash=function(t){t=e.utf8Encode(t||"");for(var n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],r=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=(t+=String.fromCharCode(128)).length/4+2,o=Math.ceil(i/16),a=new Array(o),s=0;s<o;s++){a[s]=new Array(16);for(var c=0;c<16;c++)a[s][c]=t.charCodeAt(64*s+4*c)<<24|t.charCodeAt(64*s+4*c+1)<<16|t.charCodeAt(64*s+4*c+2)<<8|t.charCodeAt(64*s+4*c+3)<<0}var d=8*(t.length-1)/Math.pow(2,32),u=8*(t.length-1)>>>0;for(a[o-1][14]=Math.floor(d),a[o-1][15]=u,s=0;s<o;s++){for(var l=new Array(64),p=0;p<16;p++)l[p]=a[s][p];for(p=16;p<64;p++)l[p]=e.q1(l[p-2])+l[p-7]+e.q0(l[p-15])+l[p-16]>>>0;var f=r[0],v=r[1],g=r[2],m=r[3],h=r[4],b=r[5],y=r[6],_=r[7];for(p=0;p<64;p++){var A=_+e.z1(h)+e.Ch(h,b,y)+n[p]+l[p],w=e.z0(f)+e.Maj(f,v,g);_=y,y=b,b=h,h=m+A>>>0,m=g,g=v,v=f,f=A+w>>>0}r[0]=r[0]+f>>>0,r[1]=r[1]+v>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+m>>>0,r[4]=r[4]+h>>>0,r[5]=r[5]+b>>>0,r[6]=r[6]+y>>>0,r[7]=r[7]+_>>>0}var I=new Array(r.length);for(_=0;_<r.length;_++)I[_]=("00000000"+r[_].toString(16)).slice(-8);return I.join("")},e.utf8Encode=function(e){try{return(new TextEncoder).encode(e).reduce((function(e,t){return e+String.fromCharCode(t)}),"")}catch(t){return unescape(encodeURIComponent(e))}},e.ROTR=function(e,t){return t>>>e|t<<32-e},e.z0=function(t){return e.ROTR(2,t)^e.ROTR(13,t)^e.ROTR(22,t)},e.z1=function(t){return e.ROTR(6,t)^e.ROTR(11,t)^e.ROTR(25,t)},e.q0=function(t){return e.ROTR(7,t)^e.ROTR(18,t)^t>>>3},e.q1=function(t){return e.ROTR(17,t)^e.ROTR(19,t)^t>>>10},e.Ch=function(e,t,n){return e&t^~e&n},e.Maj=function(e,t,n){return e&t^e&n^t&n},e}();t.Sha256=n},8507:(e,t,n)=>{"use strict";var r=n(3817),i=n(4149);t.M=function(e,t,n,o){var a=new r.BigInteger(r.b64toHex(t)),s=new r.BigInteger(r.b64toHex(n)),c=a.modPowInt(o,s);return r.removeExtraSymbols(c.toHexString())===i.Sha256.hash(e)}},433:(e,t,n)=>{"use strict";function r(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}n.d(t,{A:()=>r})},8128:e=>{s.SYNC=1,s.ASYNC=2,s.QUEUE=4;var t="fun-hooks",n=Object.freeze({useProxy:!0,ready:0}),r=new WeakMap,i="2,1,0"===[1].reduce((function(e,t,n){return[e,t,n]}),2).toString()?Array.prototype.reduce:function(e,t){var n,r=Object(this),i=r.length>>>0,o=0;if(t)n=t;else{for(;o<i&&!(o in r);)o++;n=r[o++]}for(;o<i;)o in r&&(n=e(n,r[o],o,r)),o++;return n};function o(e,t){return Array.prototype.slice.call(e,t)}var a=Object.assign||function(e){return i.call(o(arguments,1),(function(e,t){return t&&Object.keys(t).forEach((function(n){e[n]=t[n]})),e}),e)};function s(e){var c,d={},u=[];function l(e,t){return"function"==typeof e?g.call(null,"sync",e,t):"string"==typeof e&&"function"==typeof t?g.apply(null,arguments):"object"==typeof e?p.apply(null,arguments):void 0}function p(e,t,n){var r=!0;void 0===t&&(t=Object.getOwnPropertyNames(e),r=!1);var i={},o=["constructor"];do{(t=t.filter((function(t){return!("function"!=typeof e[t]||-1!==o.indexOf(t)||t.match(/^_/))}))).forEach((function(t){var r=t.split(":"),o=r[0],a=r[1]||"sync";if(!i[o]){var s=e[o];i[o]=e[o]=g(a,s,n?[n,o]:void 0)}})),e=Object.getPrototypeOf(e)}while(r&&e);return i}function f(e){var n=Array.isArray(e)?e:e.split(".");return i.call(n,(function(r,i,o){var a=r[i],s=!1;return a||(o===n.length-1?(c||u.push((function(){s||console.warn(t+": referenced '"+e+"' but it was never created")})),r[i]=v((function(e){r[i]=e,s=!0}))):r[i]={})}),d)}function v(e){var t=[],n=[],i=function(){},o={before:function(e,n){return c.call(this,t,"before",e,n)},after:function(e,t){return c.call(this,n,"after",e,t)},getHooks:function(e){var r=t.concat(n);"object"==typeof e&&(r=r.filter((function(t){return Object.keys(e).every((function(n){return t[n]===e[n]}))})));try{a(r,{remove:function(){return r.forEach((function(e){e.remove()})),this}})}catch(e){console.error("error adding `remove` to array, did you modify Array.prototype?")}return r},removeAll:function(){return this.getHooks().remove()}},s={install:function(r,o,a){this.type=r,i=a,a(t,n),e&&e(o)}};return r.set(o.after,s),o;function c(e,r,o,a){var s={hook:o,type:r,priority:a||10,remove:function(){var r=e.indexOf(s);-1!==r&&(e.splice(r,1),i(t,n))}};return e.push(s),e.sort((function(e,t){return t.priority-e.priority})),i(t,n),this}}function g(n,i,d){var l=i.after&&r.get(i.after);if(l){if(l.type!==n)throw t+": recreated hookable with different type";return i}var p,g,m=d?f(d):v(),h={get:function(e,t){return m[t]||Reflect.get.apply(Reflect,arguments)}};return c||u.push(b),e.useProxy&&"function"==typeof Proxy&&Proxy.revocable?g=new Proxy(i,h):(g=function(){return h.apply?h.apply(i,this,o(arguments)):i.apply(this,arguments)},a(g,m)),r.get(g.after).install(n,g,(function(e,t){var r,i=[];function a(e){i.push(e.hook)}e.length||t.length?(e.forEach(a),r=i.push(void 0)-1,t.forEach(a),p=function(e,t,a){var s,c=0,d="async"===n&&"function"==typeof a[a.length-1]&&a.pop();function u(e){"sync"===n?s=e:d&&d.apply(null,arguments)}function l(e){if(i[c]){var r=o(arguments);return l.bail=u,r.unshift(l),i[c++].apply(t,r)}"sync"===n?s=e:d&&d.apply(null,arguments)}return i[r]=function(){var r=o(arguments,1);"async"===n&&d&&(delete l.bail,r.push(l));var i=e.apply(t,r);"sync"===n&&l(i)},l.apply(null,a),s}):p=void 0,b()})),g;function b(){!c&&("sync"!==n||e.ready&s.SYNC)&&("async"!==n||e.ready&s.ASYNC)?"sync"!==n&&e.ready&s.QUEUE?h.apply=function(){var e=arguments;u.push((function(){g.apply(e[1],e[2])}))}:h.apply=function(){throw t+": hooked function not ready"}:h.apply=p}}return(e=a({},n,e)).ready?l.ready=function(){c=!0,function(e){for(var t;t=e.shift();)t()}(u)}:c=!0,l.get=f,l}e.exports=s},7855:e=>{e.exports=function e(t){var n=Array.isArray(t)?[]:{};for(var r in t){var i=t[r];n[r]=i&&"object"==typeof i?e(i):i}return n}},6111:(e,t)=>{for(var n=[],r=0;r<64;)n[r]=0|4294967296*Math.sin(++r%Math.PI);for(var i,o=18,a=[],s=[];o>1;o--)for(i=o;i<320;)a[i+=o]=1;function c(e,t){return 4294967296*Math.pow(e,1/t)|0}for(i=0;i<64;)a[++o]||(s[i]=c(o,2),a[i++]=c(o,3));function d(e,t){return e>>>t|e<<-t}t.md5=function(e){var t,i,o,a=[t=1732584193,i=4023233417,~t,~i],s=[],c=unescape(encodeURI(e))+"€",d=c.length;for(e=--d/4+2|15,s[--e]=8*d;~d;)s[d>>2]|=c.charCodeAt(d)<<8*d--;for(r=c=0;r<e;r+=16){for(d=a;c<64;d=[o=d[3],t+((o=d[0]+[t&i|~t&o,o&t|~o&i,t^i^o,i^(t|~o)][d=c>>4]+n[c]+~~s[r|15&[c,5*c+1,3*c+5,7*c][d]])<<(d=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*d+c++%4])|o>>>-d),t,i])t=0|d[1],i=d[2];for(c=4;c;)a[--c]+=d[c]}for(e="";c<32;)e+=(a[c>>3]>>4*(1^c++)&15).toString(16);return e},t.sha1=function(e){var t,n,r,i,o,a=[],s=[n=1732584193,r=4023233417,~n,~r,3285377520],c=[],d=unescape(encodeURI(e))+"€",u=d.length;for(c[e=--u/4+2|15]=8*u;~u;)c[u>>2]|=d.charCodeAt(u)<<8*~u--;for(t=u=0;t<e;t+=16){for(n=s;u<80;n=[n[4]+(a[u]=u<16?~~c[t+u]:2*d|d<0)+1518500249+[r&i|~r&o,d=341275144+(r^i^o),882459459+(r&i|r&o|i&o),d+1535694389][u++/5>>2]+((d=n[0])<<5|d>>>27),d,r<<30|r>>>2,i,o])d=a[u-3]^a[u-8]^a[u-14]^a[u-16],r=n[1],i=n[2],o=n[3];for(u=5;u;)s[--u]+=n[u]}for(d="";u<40;)d+=(s[u>>3]>>4*(7-u++)&15).toString(16);return d},t.sha256=function(e){var t=s.slice(o=i=0,8),n=[],r=unescape(encodeURI(e))+"€",u=r.length;for(n[e=--u/4+2|15]=8*u;~u;)n[u>>2]|=r.charCodeAt(u)<<8*~u--;for(u=[];o<e;o+=16){for(c=t.slice();i<64;c.unshift(r+(d(r=c[0],2)^d(r,13)^d(r,22))+(r&c[1]^c[1]&c[2]^c[2]&r)))c[3]+=r=0|(u[i]=i<16?~~n[i+o]:(d(r=u[i-2],17)^d(r,19)^r>>>10)+u[i-7]+(d(r=u[i-15],7)^d(r,18)^r>>>3)+u[i-16])+c.pop()+(d(r=c[4],6)^d(r,11)^d(r,25))+(r&c[5]^~r&c[6])+a[i++];for(i=8;i;)t[--i]+=c[i]}for(r="";i<64;)r+=(t[i>>3]>>4*(7-i++)&15).toString(16);return r}},4633:(e,t,n)=>{var r=n(3738).default;function i(){"use strict";e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},d=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",l=c.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof _?t:_,o=Object.create(i.prototype),a=new j(r||[]);return s(o,"_invoke",{value:T(e,n,a)}),o}function v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var g="suspendedStart",m="suspendedYield",h="executing",b="completed",y={};function _(){}function A(){}function w(){}var I={};p(I,d,(function(){return this}));var E=Object.getPrototypeOf,O=E&&E(E(P([])));O&&O!==o&&a.call(O,d)&&(I=O);var x=w.prototype=_.prototype=Object.create(I);function S(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(i,o,s,c){var d=v(e[i],e,o);if("throw"!==d.type){var u=d.arg,l=u.value;return l&&"object"==r(l)&&a.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(l).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,c)}))}c(d.arg)}var i;s(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function T(e,n,r){var i=g;return function(o,a){if(i===h)throw new Error("Generator is already running");if(i===b){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=k(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=h;var d=v(e,n,r);if("normal"===d.type){if(i=r.done?b:m,d.arg===y)continue;return{value:d.arg,done:r.done}}"throw"===d.type&&(i=b,r.method="throw",r.arg=d.arg)}}}function k(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=v(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function P(e){if(e||""===e){var n=e[d];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(a.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}throw new TypeError(r(e)+" is not iterable")}return A.prototype=w,s(x,"constructor",{value:w,configurable:!0}),s(w,"constructor",{value:A,configurable:!0}),A.displayName=p(w,l,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,p(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},n.awrap=function(e){return{__await:e}},S(C.prototype),p(C.prototype,u,(function(){return this})),n.AsyncIterator=C,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new C(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(x),p(x,l,"Generator"),p(x,d,(function(){return this})),p(x,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var n in this)"t"===n.charAt(0)&&a.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function r(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),d=a.call(o,"finallyLoc");if(c&&d){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!d)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;R(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4756:(e,t,n)=>{var r=n(4633)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},5856:(e,t)=>{"use strict";var n="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",r=new RegExp("^".concat(n,"$"),"i"),i=!!String.prototype.trim;function o(e){return null!=e}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}function s(e){return i?(""+e).trim():(""+e).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function c(e){return"string"==typeof e}function d(e){return!!e&&"object"==typeof e&&!a(e)}function u(e,t){return new Date((new Date).getTime()+e*t)}function l(e,t,n){if(d(t)){var r=void 0;return(r="message"in t&&"string"==typeof t.message?new Error(n||t.message):new Error(n)).name=e,"stack"in t&&"string"==typeof t.stack&&(r.stack=t.stack),"lineNumber"in t&&"number"==typeof t.lineNumber&&(r.lineNumber=t.lineNumber),"columnNumber"in t&&"number"==typeof t.columnNumber&&(r.columnNumber=t.columnNumber),r}return(r=Error(n)).name=e,r}var p=function(){return p=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p.apply(this,arguments)};function f(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var v="li_errors",g=function(){function e(e){var t=parseInt(e.toString())||5;this.data={h:{},q:{},size:t}}return e.prototype.on=function(e,t,n){var r,i={callback:t.bind(n),unbound:t};return this.data=p(p({},this.data),{h:p(p({},this.data.h),(r={},r[e]=f(f([],this.data.h[e]||[],!0),[i],!1),r))}),(this.data.q[e]||[]).forEach((function(e){return t.call(n,e)})),this},e.prototype.once=function(e,t,n){var r=this,i=this.data.q[e]||[];if(i.length>0)return t.call(n,i[0]),this;var o=function(i){r.off(e,o),t.call(n,i)};return o._=t,this.on(e,o,n)},e.prototype.emit=function(e,t){var n;(this.data.h[e]||[]).forEach((function(e){return e.callback(t)}));var r=this.data.q[e]||[];return this.data=p(p({},this.data),{q:p(p({},this.data.q),(n={},n[e]=f(f([],r.length<this.data.size?r:r.slice(1),!0),[t],!1),n))}),this},e.prototype.off=function(e,t){var n,r=this.data.h[e],i=r&&t&&r.filter((function(e){return e.unbound!==t}))||[];if(i.length)this.data=p(p({},this.data),{h:p(p({},this.data.h),(n={},n[e]=i,n))});else{var o=this.data.h,a=e;o[a];var s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(o,["symbol"==typeof a?a:a+""]);this.data=p(p({},this.data),{h:s})}return this},e.prototype.emitErrorWithMessage=function(e,t,n){var r=l(e,n,t);return this.emit(v,r)},e.prototype.emitError=function(e,t){var n=l(e,t);return this.emit(v,n)},e}();t.ERRORS_CHANNEL=v,t.ReplayEmitter=g,t.UUID=n,t.expiresInDays=function(e){return u(e,864e5)},t.expiresInHours=function(e){return u(e,36e5)},t.isArray=a,t.isFunction=function(e){return!!e&&"function"==typeof e},t.isNonEmpty=function(e){return o(e)&&s(e).length>0},t.isObject=d,t.isRecord=function(e){return d(e)},t.isString=c,t.isUUID=function(e){return!!e&&r.test(s(e))},t.nonNull=o,t.onNonNull=function(e,t){return null!=e?t(e):e},t.safeToString=function(e){return"object"==typeof e?JSON.stringify(e):""+e},t.strEqualsIgnoreCase=function(e,t){return c(e)&&c(t)&&s(e.toLowerCase())===s(t.toLowerCase())},t.trim=s,t.wrapError=l},4966:(e,t,n)=>{"use strict";var r=n(8616);n(5856),n(6111);var i=r.LiveConnect,o=r.StandardLiveConnect,a=r.MinimalLiveConnect;t.Lp=r.consts,t.Bt=r.eventBus,t.DQ=i,t.qO=a,t.iq=o},8616:(e,t,n)=>{"use strict";var r=n(5856),i=n(6111),o=function(e,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},o(e,t)};function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},s.apply(this,arguments)},c=function(){function e(e){var t,n,r;this.url=null!==(t=e.collectorUrl)&&void 0!==t?t:"https://rp.liadm.com",this.timeout=null!==(n=e.ajaxTimeout)&&void 0!==n?n:0,this.calls=e.callHandler,this.eventBus=e.eventBus,this.retries=null!==(r=e.ajaxRetries)&&void 0!==r?r:3}return e.prototype.callBakers=function(e){try{var t=JSON.parse(e).bakers;if(r.isArray(t))for(var n=0;n<t.length;n++)this.calls.pixelGet("".concat(t[n],"?dtstmp=").concat(Date.now()))}catch(t){this.eventBus.emitErrorWithMessage("CallBakers","Error while calling bakers with ".concat(e),t)}},e.prototype.sendState=function(e,t,n,i){if(e.sendsPixel()){i&&r.isFunction(i)&&i();var o=e.asQuery().add("dtstmp",Date.now(),{prepend:!0}).toQueryString();n("".concat(this.url,"/").concat(t).concat(o))}},e.prototype.sendAjax=function(e,t){var n=this;void 0===t&&(t={}),this.sendState(e,"j",(function(i){var o=function(a){n.calls.ajaxGet(i,(function(e){t.onLoad&&r.isFunction(t.onLoad)&&t.onLoad(),n.callBakers(e)}),(function(r){a<=0?(n.sendPixel(e,t),n.eventBus.emitError("AjaxFailed",r)):o(a-1)}),n.timeout)};o(n.retries)}),t.onPreSend)},e.prototype.sendPixel=function(e,t){var n=this;void 0===t&&(t={}),this.sendState(e,"p",(function(e){return n.calls.pixelGet(e,t.onLoad)}),t.onPreSend)},e}(),d="__li__evt_bus",u=r.ERRORS_CHANNEL,l="lips",p="pre_lips",f="_li_duid",v="https://idx.liadm.com/idex",g=[],m=Object.freeze({__proto__:null,DEFAULT_IDEX_AJAX_TIMEOUT:5e3,DEFAULT_IDEX_URL:v,DEFAULT_REQUESTED_ATTRIBUTES:g,ERRORS_PREFIX:u,EVENT_BUS_NAMESPACE:d,PEOPLE_VERIFIED_LS_ENTRY:f,PIXEL_SENT_PREFIX:l,PRELOAD_PIXEL:p}),h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function b(e){var t=function(e){e="".concat(e);for(var t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return null;var n,r="";for(t=0;t<e.length;t+=3){var i=[void 0,void 0,void 0,void 0];i[0]=e.charCodeAt(t)>>2,i[1]=(3&e.charCodeAt(t))<<4,e.length>t+2?(i[1]|=e.charCodeAt(t+1)>>4,i[2]=(15&e.charCodeAt(t+1))<<2,i[2]|=e.charCodeAt(t+2)>>6,i[3]=63&e.charCodeAt(t+2)):e.length>t+1&&(i[1]|=e.charCodeAt(t+1)>>4,i[2]=(15&e.charCodeAt(t+1))<<2);for(var o=0;o<i.length;o++){var a=i[o];r+=void 0===a?"=":(n=a)>=0&&n<64?h[n]:void 0}}return r}(e);return t||""}var y=/[+/]|=+$/g,_={"+":"-","/":"_"};function A(e){return _[e]||""}function w(e){var t=null,n=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt("0x"+t,16))}));try{t=window&&r.isFunction(window.btoa)?window.btoa:b}catch(e){t=b}return t(n).replace(y,A)}var I=function(){return/(\s+)?[a-f0-9]{32,64}(\s+)?/gi},E=new Map([[32,"md5"],[40,"sha1"],[64,"sha256"]]);function O(e){var t=x(e);return!!t&&E.has(t.length)}function x(e){var t=e.match(I());return t&&t.map(r.trim)[0]}function S(e){var t=e.toLowerCase();return{md5:i.md5(t),sha1:i.sha1(t),sha256:i.sha256(t)}}var C=function(){return/\S+(@|%40)\S+\.\S+/};function T(e){return C().test(e)}function k(e){for(var t=function(e){for(var t=[],n=new RegExp("([\\w\\d.+-]+(@|%40)[\\w\\d-]+.[\\w\\d.-]+)","g"),i=n.exec(e);i;)t.push(r.trim(i[1])),i=n.exec(e);return t}(e),n=[],i=e,o=0;o<t.length;o++){var a=t[o],s=S(a);i=i.replace(a,s.md5),n.push(s)}return{stringWithoutRawEmails:i,hashesFromOriginalString:n}}function D(e,t){return"string"==typeof t&&T(r.trim(t))?"*********":t}function R(e){return function(e){return"false"!==e&&("true"===e||e)}(function(e){return"null"===e||"undefined"===e?null:e}(function(e){return isNaN(+e)?e:+e}(e)))}function j(e,t){if(t in e){var n=e[t];return r.isArray(n)?n.map((function(e){return R(B(e))})):R(B(n))}}function P(e){var t,n,i,o={};return e&&-1!==(t=e.indexOf("?"))&&(n=e.slice(t+1))&&(-1===(i=n.indexOf("#"))||(n=n.slice(0,i)))?(n.split("&").forEach((function(e){if(e){var t=void 0,n=e.split("=");t=n[0];var i=2===n.length?n[1]:"true";if("[]"===t.slice(-2)&&(t=t.slice(0,-2)),t in o){var a=o[t];r.isArray(a)?a.push(i):o[t]=[a,i]}else o[t]=i}})),o):o}function B(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)}var U=function(){function e(e){var t=e.match(/^(https?\:\/\/)?(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(null===t)throw new TypeError("Failed to parse URL: ".concat(e));this.protocol=t[1]||"",this.host=t[2]||"",this.hostname=t[3]||"",this.port=t[4]||"",this.pathname=t[5]||"",this.search=t[6]||"",this.hash=t[7]||""}return e.prototype.toString=function(){return"".concat(this.protocol).concat(this.host).concat(this.pathname).concat(this.search).concat(this.hash)},e}(),N=["items","itemids"],q=["email","emailhash","hash","hashedemail"],M=[function(e){for(var t,n=e.eventSource||{},i=0,o=Object.keys(n);i<o.length;i++){var a=o[i],s=a.toLowerCase();if(q.indexOf(s)>-1){var c=r.trim(r.safeToString(n[a])),d=(t=void 0,(t=c.match(C()))&&t.map(r.trim)[0]),u=x(c);if(d){var l=S(B(d));return L({hashedEmail:[l.md5,l.sha1,l.sha256]},e)}if(u&&O(u))return L({hashedEmail:[u.toLowerCase()]},e)}}return e},function(e){var t=e.eventSource||{};return Object.keys(t).forEach((function(e){var n=e.toLowerCase(),i=t[e];N.indexOf(n)>-1&&r.isArray(i)&&i.length>10&&(i.length=10)})),{}}];function L(e,t){var n={};function i(e){return r.isObject(e)?e:{}}function o(e){return Object.keys(e)}var a=i(e),s=i(t);return o(a).forEach((function(e){n[e]=a[e]})),o(s).forEach((function(e){n[e]=s[e]})),n}var W=function(){function e(e){void 0===e&&(e=[]),this.tuples=e}return e.prototype.add=function(e,t,n){void 0===n&&(n={});var r=n.stripEmpty,i=void 0===r||r,o=n.prepend;return""===e||i&&""===t?this:void 0!==o&&o?(this.tuples.unshift([e,t]),this):(this.tuples.push([e,t]),this)},e.prototype.addOptional=function(e,t,n){return void 0===n&&(n={}),r.nonNull(t)?this.add(e,t,n):this},e.prototype.addParamsMap=function(e){var t=this;return Object.keys(e).forEach((function(n){var i=e[n];r.nonNull(i)&&(r.isArray(i)?i.forEach((function(e){return t.add(n,e)})):t.add(n,i))})),this},e.prototype.copy=function(){return new e(this.tuples.slice())},e.prototype.filteredCopy=function(t){return new e(this.tuples.filter((function(e){var n=e[0],r=e[1];return t(n,r)})))},e.prototype.toQueryString=function(){var e="";return this.tuples.forEach((function(t){var n=t[0],r=t[1],i=0===e.length?"?":"&";e="".concat(e).concat(i).concat(encodeURIComponent(n),"=").concat(encodeURIComponent(r))})),e},e}();function F(e){return null===e?"":e}var V=["setemail","setemailhash","sethashedemail"],G=function(){function e(t,n){this.data=e.safeFiddle(t,n),this.eventBus=n}return e.safeFiddle=function(e,t){try{return n=JSON.parse(JSON.stringify(e)),r.isObject(n.eventSource)?M.reduce((function(e,t){return L(e,t(e))}),n):n}catch(e){return console.error(e),t.emitErrorWithMessage("StateCombineWith","Error while extracting event data",e),{}}var n},e.prototype.combineWith=function(t){return new e(L(this.data,t),this.eventBus)},e.prototype.sendsPixel=function(){var e=r.isObject(this.data.eventSource)?this.data.eventSource:{},t=Object.keys(e).filter((function(e){return"eventname"===e.toLowerCase()||"event"===e.toLowerCase()})),n=t&&t.length>=1&&t[0],i=n&&r.trim(e[n]);return!i||-1===V.indexOf(i.toLowerCase())},e.prototype.asQuery=function(){var e,t,n,i=this.data,o=(new W).addOptional("aid",i.appId).addOptional("did",i.distributorId).addOptional("se",r.onNonNull(i.eventSource,(function(e){return w(JSON.stringify(e,D))}))).addOptional("duid",i.liveConnectId).addOptional("tv",i.trackerVersion);if(r.nonNull(i.pageUrl)){var a=function(e){if(void 0===e.pageUrl||0===e.pageUrl.length)return["",!1,[]];if(function(e){return!(void 0!==e.urlCollectionMode&&"full"!==e.urlCollectionMode||void 0!==e.queryParametersFilter&&""!==e.queryParametersFilter)}(e))return[e.pageUrl,!1,[]];var t=new U(e.pageUrl),n=function(e){var t=P(e),n=[];return Object.keys(t).forEach((function(e){n.push([e,j(t,e)])})),n}(t.search),r=function(e,t){return"no_path"===t.urlCollectionMode&&e.pathname.length>1}(t,e),i=function(e,t){if(void 0===t.queryParametersFilter||""===t.queryParametersFilter)return[];var n=new RegExp(t.queryParametersFilter);return e.map((function(e){return e[0]})).filter((function(e){return n.test(e)}))}(n,e);return r&&(t.pathname="/"),i.length>0&&(t.search=function(e,t){var n=e.filter((function(e){return-1===t.indexOf(e[0])})).map((function(e){return"".concat(e[0],"=").concat(e[1])}));return n.length>0?"?".concat(n.join("&")):""}(n,i)),[t.toString(),r,i]}(i),s=a[0],c=a[1],d=a[2];o.add("pu",s).addOptional("pu_rp",c?"1":void 0).add("pu_rqp",d.join(","))}return o.addOptional("ae",r.onNonNull(i.errorDetails,(function(e){return w(JSON.stringify(e))}))),r.isArray(i.retrievedIdentifiers)&&i.retrievedIdentifiers.forEach((function(e){return o.add("ext_".concat(e.name),e.value)})),r.isArray(i.hashesFromIdentifiers)&&i.hashesFromIdentifiers.forEach((function(e){return o.add("scre","".concat(e.md5,",").concat(e.sha1,",").concat(e.sha256))})),o.addOptional("li_did",null===(e=i.decisionIds)||void 0===e?void 0:e.join(",")).addOptional("e",null===(t=i.hashedEmail)||void 0===t?void 0:t.join(",")).addOptional("us_privacy",i.usPrivacyString).addOptional("wpn",i.wrapperName).addOptional("gdpr",r.onNonNull(i.gdprApplies,(function(e){return e?"1":"0"}))).addOptional("gdpr_consent",i.gdprConsent).addOptional("refr",i.referrer).addOptional("gpp_s",i.gppString).addOptional("gpp_as",null===(n=i.gppApplicableSections)||void 0===n?void 0:n.join(",")).addOptional("cd",i.cookieDomain).addOptional("ic",F(i.resolvedIdCookie),{stripEmpty:!1}).addOptional("c",i.contextElements),o},e}();function z(e){void 0===e&&(e=window);for(var t,n=K((function(){return e.location.ancestorOrigins}))||[],r=[],i=e;i!==top;)r.push(i),i=i.parent;r.push(i);for(var o=function(e){t=K((function(){return r[e].location.href})),0!==e&&(t||(t=K((function(){return r[e-1].document.referrer}))),t||(t=n[e-1]))},a=r.length-1;a>=0&&!t;a--)o(a);return t}function H(e,t,n){if(!e&&t&&""!==t&&n){var r=function(e,t){for(var n=window.document.querySelectorAll(e),r="",i=0;i<n.length;i++){var o=r+k(n[i].outerHTML).stringWithoutRawEmails;if(!(J(o)<=t))return r;r=o}return r}(t,n);return w(r)}return""}function J(e){return Math.ceil(4*new Blob([e]).size/3)}function K(e){try{return e()}catch(e){return}}var $=function(e){return s(s({},e),{pageUrl:z(),referrer:(void 0===t&&(t=window),K((function(){return t.top.document.referrer}))),contextElements:H(e.privacyMode,e.contextSelectors,e.contextElementsLength)});var t};function Q(e){for(var t=new Set,n=[],r=0;r<e.length;r++)t.has(e[r].md5)||(n.push(e[r]),t.add(e[r].md5));return n}var X=function(e){var t;return s(s({},e),{privacyMode:!!e.gdprApplies||(null!==(t=e.gppApplicableSections)&&void 0!==t?t:[]).indexOf(2)>-1})};function Y(e,t){if(e&&e.appId&&e.distributorId){var n=e.distributorId;delete e.distributorId,t.emitError("AppIdAndDistributorIdPresent",new Error("Event contains both appId: ".concat(e.appId," and distributorId: ").concat(n,". Ignoring distributorId")))}return e}var Z="idCookie",ee=function(){function e(e,t,n){var i,o,a=this,s=e||{identityResolutionConfig:{}};this.eventBus=n,this.calls=t,this.idexConfig=s.identityResolutionConfig||{},this.externalIds=s.retrievedIdentifiers||[],this.source=this.idexConfig.source||"unknown",this.publisherId=this.idexConfig.publisherId||"any",this.url=this.idexConfig.url||v,this.timeout=this.idexConfig.ajaxTimeout||s.ajaxTimeout||5e3,this.requestedAttributes=this.idexConfig.requestedAttributes||g,this.privacyMode=null!==(i=s.privacyMode)&&void 0!==i&&i,this.resolvedIdCookie=s.resolvedIdCookie,this.generateIdCookie="generated"===this.idexConfig.idCookieMode,this.peopleVerifiedId=s.peopleVerifiedId,this.query=(new W).addOptional("duid",s.peopleVerifiedId).addOptional("us_privacy",s.usPrivacyString).addOptional("gdpr",r.onNonNull(s.gdprApplies,(function(e){return e?1:0}))).addOptional("gdpr_consent",s.gdprConsent).addOptional("did",s.distributorId).addOptional("gpp_s",s.gppString).addOptional("gpp_as",null===(o=s.gppApplicableSections)||void 0===o?void 0:o.join(",")).addOptional("cd",s.cookieDomain).addOptional("ic",F(s.resolvedIdCookie),{stripEmpty:!1}),this.externalIds.forEach((function(e){a.query.add(e.name,e.value)})),this.requestedAttributes.forEach((function(e){a.query.add("resolve",e)}))}return e.prototype.attributeResolutionAllowed=function(e){return"uid2"===e?!this.privacyMode:e!==Z},e.prototype.filterParams=function(e){var t=this;return e.filteredCopy((function(e,n){return"resolve"!==e||!!r.isString(n)&&t.attributeResolutionAllowed(n)}))},e.prototype.enrichExtraIdentifiers=function(e,t){var n,r=t.tuples.filter((function(e){return"resolve"===e[0]})).map((function(e){return e[1]})),i=s({},e);return n=Z,r.indexOf(n)>-1&&(this.generateIdCookie&&this.peopleVerifiedId?i[Z]=this.peopleVerifiedId:this.resolvedIdCookie&&(i[Z]=this.resolvedIdCookie)),i},e.prototype.responseReceived=function(e,t){var n=this;return function(i,o){var a={};if(i)try{var s=JSON.parse(i);r.isObject(s)&&(a=s)}catch(e){console.error("Error parsing response",e),n.eventBus.emitError("IdentityResolverParser",e)}var c=function(e){if(r.isObject(e)&&"getResponseHeader"in e&&r.isFunction(e.getResponseHeader)){var t=e.getResponseHeader("expires");if(t)return new Date(t)}}(o);e(n.enrichExtraIdentifiers(a,t),{expiresAt:c})}},e.prototype.buildUrl=function(e){return"".concat(this.url,"/").concat(this.source,"/").concat(this.publisherId).concat(this.filterParams(e).toQueryString())},e.prototype.getUrl=function(e){var t=this.query.copy().addParamsMap(null!=e?e:{});return this.buildUrl(t)},e.prototype.resolve=function(e,t,n){try{var i=this.query.copy().addParamsMap(null!=n?n:{});this.calls.ajaxGet(this.buildUrl(i),this.responseReceived(e,i),t,this.timeout)}catch(e){console.error("IdentityResolve",e),t&&r.isFunction(t)&&t(e),this.eventBus&&this.eventBus.emitError("IdentityResolve",e)}},e}();function te(e){return"number"==typeof e&&e>=0?new r.ReplayEmitter(e):new r.ReplayEmitter(5)}function ne(e){r.isFunction(e.emitErrorWithMessage)&&r.isFunction(e.emitError)||(e.emitErrorWithMessage=function(t,n,i){void 0===i&&(i={});var o=r.wrapError(t,n,i);return e.emit(r.ERRORS_CHANNEL,o)},e.emitError=function(t,n){return e.emitErrorWithMessage(t,n.message,n)})}function re(e){return void 0===e&&(e=5),te(e)}function ie(e){var t=window[e].eventBus||window[d];return ne(t),t}var oe=Object.freeze({__proto__:null,GlobalEventBus:function(e,t,n){try{return window||n(new Error("Bus can only be attached to the window, which is not present")),window&&!window[e]&&(window[e]=te(t)),ne(window[e]),window[e]}catch(e){console.error("events.bus.init",e),n(e)}},LocalEventBus:re,getAvailableBus:ie}),ae="_li_dcdm_c";function se(e){var t=e.getCookie(ae);if(t)return t;for(var n=document.domain||document.location&&document.location.host||window&&window.location&&window.location.host||"localhost",r=n.split("."),i=r.length;i>0;i--){var o=".".concat(r.slice(i-1,r.length).join("."));if(e.setCookie(ae,o,void 0,"Lax",o),e.getCookie(ae))return o}return".".concat(n)}var ce={cookie:"cookie",localStorage:"ls",none:"none",disabled:"disabled"},de=function(e){var t=e.privacyMode?ce.disabled:e.storageStrategy||ce.cookie;return s(s({},e),{storageStrategy:t})},ue=r.expiresInDays(30),le="li_did",pe="lidids.",fe=function(e,t,n){return n.indexOf(e)===t},ve=function(e){return e&&r.trim(e).length>0},ge="0123456789ABCDEFGHJKMNPQRSTVWXYZ",me=ge.length,he=Math.pow(2,48)-1,be=10,ye=16,_e=function(){var e="undefined"!=typeof window?window:null,t=e&&(e.crypto||e.msCrypto);return t?function(){var e=new Uint8Array(1);return t.getRandomValues(e),e[0]/255}:function(){return Math.random()}}();function Ae(){var e=Math.floor(_e()*me);return e===me&&(e=me-1),ge.charAt(e)}var we="_lc2_fpi";function Ie(e,t){return function(n){var r,o,a,c,d=e.get(we);if(d)o=d.data;else{var u=t.getCookie(we);if(u)e.set(we,u),o=u;else{var l="".concat((a=n.cookieDomain,void 0===c&&(c=12),i.sha1(a.replace(/^\./,"")).substring(0,c)),"--").concat(function(e,t){if(e>he)throw(n=new Error("cannot encode time greater than "+he)).source="Ulid",n;for(var n,r,i="";t>0;t--)r=e%me,i=ge.charAt(r)+i,e=(e-r)/me;return i}(Date.now(),be)+function(e){for(var t="";e>0;e--)t=Ae()+t;return t}(ye)).toLocaleLowerCase();e.set(we,l),o=null===(r=e.get(we))||void 0===r?void 0:r.data}}return o&&t.setDataInLocalStorage(f,o),s(s({},n),{liveConnectId:o,peopleVerifiedId:o})}}var Ee=120,Oe={errorDetails:{message:"Unknown message",name:"Unknown name"}};function xe(e){try{var t=1*e;return isNaN(t)?void 0:t}catch(e){}}function Se(e){try{return r.isString(e)&&e.length&&e.length>Ee?"".concat(e.substr(0,Ee),"..."):"".concat(e)}catch(e){}}var Ce=function(){},Te=function(){function e(e,t,n){this.obj=e,this.name=t,this.errors=[],this.eventBus=n}return e.prototype.wrap=function(e){var t=this;if(r.isObject(this.obj)){var n=this.obj[e];if(r.isFunction(n))return function(){for(var r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];try{return(r=n).call.apply(r,function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([t.obj],i,!1))}catch(r){t.eventBus.emitErrorWithMessage(t.name,"Failed calling ".concat(e),r)}}}return this.errors.push(e),Ce},e.prototype.reportErrors=function(){this.errors.length>0&&this.eventBus.emitErrorWithMessage(this.name,"The functions '".concat(JSON.stringify(this.errors),"' were not provided"))},e}(),ke=function(){};function De(e,t,n){return r.strEqualsIgnoreCase(t,ce.disabled)?ke:e.wrap(n)}function Re(e,t,n){return r.strEqualsIgnoreCase(t,ce.none)?ke:De(e,t,n)}var je=function(){function e(e,t){this.minimalFunctions={getCookie:De(t,e,"getCookie"),getDataFromLocalStorage:De(t,e,"getDataFromLocalStorage"),localStorageIsEnabled:Re(t,e,"localStorageIsEnabled")}}return e.make=function(t,n,r){var i=new Te(n,"ReadOnlyStorageHandler",r),o=new e(t,i);return i.reportErrors(),o},e.prototype.localStorageIsEnabled=function(){return!!this.minimalFunctions.localStorageIsEnabled()},e.prototype.getCookie=function(e){return this.minimalFunctions.getCookie(e)||null},e.prototype.getDataFromLocalStorage=function(e){return this.minimalFunctions.getDataFromLocalStorage(e)||null},e}(),Pe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.storageStrategy=t,r.functions={setCookie:Re(n,t,"setCookie"),removeDataFromLocalStorage:Re(n,t,"removeDataFromLocalStorage"),setDataInLocalStorage:Re(n,t,"setDataInLocalStorage"),findSimilarCookies:De(n,t,"findSimilarCookies")},r}return a(t,e),t.make=function(e,n,r){var i=new Te(n,"StorageHandler",r),o=new t(e,i);return i.reportErrors(),o},t.prototype.setCookie=function(e,t,n,r,i){this.functions.setCookie(e,t,n,r,i)},t.prototype.setDataInLocalStorage=function(e,t){this.functions.setDataInLocalStorage(e,t)},t.prototype.removeDataFromLocalStorage=function(e){this.functions.removeDataFromLocalStorage(e)},t.prototype.findSimilarCookies=function(e){return this.functions.findSimilarCookies(e)||[]},t}(je),Be=function(e){function t(t){var n=e.call(this,t)||this;return n.name="ParseError",n}return a(t,e),t}(Error),Ue=function(){function e(e){this.handler=e.storageHandler,this.cookieDomain=e.cookieDomain,this.eventBus=e.eventBus}return e.prototype.deleteCookie=function(e){this.handler.setCookie(e,"",new Date(0),"Lax",this.cookieDomain)},e.prototype.parseMetaRecord=function(e){var t,n=JSON.parse(e);if(!r.isObject(n))throw new Be("Meta record is not an object");if("e"in n&&(t=new Date(n.e),isNaN(t.getTime())))throw new Be("Invalid expiresAt");if(!("w"in n))throw new Be("Missing writtenAt");var i=new Date(n.w);if(isNaN(i.getTime()))throw new Be("Invalid writtenAt");return{expiresAt:t,writtenAt:i}},e.prototype.serializeMetaRecord=function(e){var t;return e.expiresAt&&(t=e.expiresAt.getTime()),JSON.stringify({w:e.writtenAt.getTime(),e:t})},e.prototype.getCookieRecord=function(e,t){var n,r=this.handler.getCookie(t);if(!r||0===r.length)return null;try{n=this.parseMetaRecord(r)}catch(n){return this.eventBus.emitErrorWithMessage("Cache","Failed reading meta from cookies",n),this.deleteCookie(e),this.deleteCookie(t),null}var i=n.expiresAt;if(i&&i.getTime()<=Date.now())return null;var o=this.handler.getCookie(e);return o?{data:o,meta:n}:null},e.prototype.getLSRecord=function(e,t){var n,r=this.handler.getDataFromLocalStorage(t);if(!r||0===r.length)return null;try{n=this.parseMetaRecord(r)}catch(n){return this.eventBus.emitErrorWithMessage("Cache","Failed reading meta from ls",n),this.handler.removeDataFromLocalStorage(e),this.handler.removeDataFromLocalStorage(t),null}var i=n.expiresAt;if(i&&i.getTime()<=Date.now())return this.handler.removeDataFromLocalStorage(e),this.handler.removeDataFromLocalStorage(t),null;var o=this.handler.getDataFromLocalStorage(e);return o?{data:o,meta:n}:null},e.prototype.get=function(e){var t=Ne(e),n=this.getCookieRecord(e,t),r=this.getLSRecord(e,t);return n&&r?n.meta.writtenAt.getTime()===r.meta.writtenAt.getTime()?n:n.meta.writtenAt>r.meta.writtenAt?(this.handler.setDataInLocalStorage(e,n.data),this.handler.setDataInLocalStorage(t,this.serializeMetaRecord(n.meta)),n):(this.handler.setCookie(e,r.data,r.meta.expiresAt,"Lax",this.cookieDomain),this.handler.setCookie(t,this.serializeMetaRecord(r.meta),r.meta.expiresAt,"Lax",this.cookieDomain),r):n?(this.handler.setDataInLocalStorage(e,n.data),this.handler.setDataInLocalStorage(t,this.serializeMetaRecord(n.meta)),n):r?(this.handler.setCookie(e,r.data,r.meta.expiresAt,"Lax",this.cookieDomain),this.handler.setCookie(t,this.serializeMetaRecord(r.meta),r.meta.expiresAt,"Lax",this.cookieDomain),r):null},e.prototype.set=function(e,t,n){var i=Ne(e),o=this.serializeMetaRecord({writtenAt:new Date,expiresAt:n});this.handler.setDataInLocalStorage(e,t),this.handler.setDataInLocalStorage(i,o);var a=n||r.expiresInDays(730);this.handler.setCookie(e,t,a,"Lax",this.cookieDomain),this.handler.setCookie(i,o,a,"Lax",this.cookieDomain)},e}();function Ne(e){return"".concat(e,"_meta")}var qe=function(){};function Me(e,t,n){return t?qe:e.wrap(n)}var Le=function(){function e(e,t,n){var r=new Te(e,"CallHandler",t);this.functions={ajaxGet:Me(r,n,"ajaxGet"),pixelGet:Me(r,n,"pixelGet")},r.reportErrors()}return e.prototype.ajaxGet=function(e,t,n,r){this.functions.ajaxGet(e,t,n,r)},e.prototype.pixelGet=function(e,t){this.functions.pixelGet(e,t)},e}();function We(e){return function(t){var n,r,i,o;return"cookie"===(null===(n=t.idCookie)||void 0===n?void 0:n.strategy)&&"string"==typeof(null===(r=t.idCookie)||void 0===r?void 0:r.name)?s(s({},t),{resolvedIdCookie:e.getCookie(t.idCookie.name)}):"localStorage"===(null===(i=t.idCookie)||void 0===i?void 0:i.strategy)&&"string"==typeof(null===(o=t.idCookie)||void 0===o?void 0:o.name)?s(s({},t),{resolvedIdCookie:e.getDataFromLocalStorage(t.idCookie.name)}):t}}var Fe={};function Ve(e,t,n,i){if(e&&r.isObject(e))if("config"in e)i.emitErrorWithMessage("StrayConfig","Received a config after LC has already been initialised",new Error(JSON.stringify(e)));else{var o=new G(n,i),a=o.combineWith({eventSource:e});Fe.hashedEmail=Fe.hashedEmail||a.data.hashedEmail;var s=L({eventSource:e},Fe);t.sendAjax(o.combineWith(s),{onPreSend:function(){return i.emit(p,"0")},onLoad:function(){return i.emit(l,n)}})}else i.emitErrorWithMessage("EventNotAnObject","Received event was not an object",new Error(e))}function Ge(e,t,n,i){try{var o=s(s({},Y(e,i)),{identifiersToResolve:e.identifiersToResolve||[],contextSelectors:e.contextSelectors||"",contextElementsLength:e.contextElementsLength||0}),a=$(de(X(o))),d=new Le(n,i,a.privacyMode),u=Pe.make(a.storageStrategy,t,i),l=function(e){return function(t){return s(s({},t),{cookieDomain:se(e)})}}(u)(a),p=new Ue({storageHandler:u,eventBus:i,cookieDomain:l.cookieDomain}),f=We(u)(Ie(p,u)(function(e,t){return function(n){function i(e,n){try{return n()}catch(n){return t.emitErrorWithMessage("DecisionsResolve",e,n),[]}}var o=i("Error while extracting new decision ids",(function(){var e,t;return[].concat(n.pageUrl&&(e=n.pageUrl,t=le,j(P(e),t))||[]).map(r.trim).filter(ve).filter(r.isUUID).filter(fe)})),a=i("Error while retrieving stored decision ids",(function(){return e.findSimilarCookies(pe).map(r.trim).filter(ve).filter(r.isUUID)}));return o.forEach((function(r){try{(i=r)&&e.setCookie("".concat(pe).concat(i),i,ue,"Lax",n.cookieDomain)}catch(r){t.emitErrorWithMessage("DecisionsResolve","Error while storing new decision id",r)}var i})),s(s({},n),{decisionIds:o.concat(a).filter(fe)})}}(u,i)(function(e,t){return function(n){try{return s(s({},n),function(e,t){for(var n=[],i=[],o=0;o<e.length;o++){var a=e[o],s=t.getCookie(a)||t.getDataFromLocalStorage(a);if(s){var c=k(r.safeToString(s));n.push({name:a,value:c.stringWithoutRawEmails}),i=i.concat(c.hashesFromOriginalString)}}return{retrievedIdentifiers:n,hashesFromIdentifiers:Q(i)}}(function(e){var t=[];e&&(r.isArray(e)?t=e:r.isString(e)&&(t=e.split(",")));for(var n=0;n<t.length;n++)t[n]=t[n].trim();return t}(n.identifiersToResolve),e))}catch(e){return t.emitError("IdentifiersEnricher",e),s(s({},n),{retrievedIdentifiers:[],hashesFromIdentifiers:[]})}}}(u,i)(l)))),v=new c({collectorUrl:o.collectorUrl,ajaxTimeout:o.ajaxTimeout,eventBus:i,callHandler:d});!function(e,t,n){try{n.on(r.ERRORS_CHANNEL,(function(i){var o;t.sendPixel(new G(s(s({},e),(o=i,r.isRecord(o)?{errorDetails:{message:Se(o.message)||"",name:Se(o.name)||"",stackTrace:Se(o.stack),lineNumber:xe(o.lineNumber),columnNumber:xe(o.columnNumber),fileName:Se(o.fileName)}}:Oe)),n))}))}catch(e){console.error("handlers.error.register",e)}}(f,v,i);var g=new ee(f,d,i),m=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e,t,n,i){try{e.forEach((function(e){var o=e;r.isArray(o)?o.forEach((function(e){return Ve(e,t,n,i)})):Ve(o,t,n,i)}))}catch(e){console.error("Error sending events",e),i.emitErrorWithMessage("LCPush","Failed sending an event",e)}}(e,v,f,i)};return{push:m,fire:function(){return m({})},peopleVerifiedId:f.peopleVerifiedId,ready:!0,resolve:g.resolve.bind(g),resolutionCallUrl:g.getUrl.bind(g),config:o,eventBus:i,storageHandler:u,cache:p}}catch(e){console.error(e),i.emitErrorWithMessage("LCConstruction","Failed to build LC",e)}}function ze(e,t,n,i){var o,a=r.isObject(e)&&e||{},s=i||re();try{o=a.globalVarName?function(e,t,n,i){var o=window[e.globalVarName]||[],a=function(e){try{if(window&&window[e.globalVarName]&&window[e.globalVarName].ready){var t=window[e.globalVarName].config&&function(e,t){if(e.appId!==t.appId||e.wrapperName!==t.wrapperName||e.collectorUrl!==t.collectorUrl)return{appId:[e.appId,t.appId],wrapperName:[e.wrapperName,t.wrapperName],collectorUrl:[e.collectorUrl,t.collectorUrl]}}(window[e.globalVarName].config,e);if(t){var n=new Error;n.name="ConfigSent",n.message="Additional configuration received";var r=ie(e.globalVarName);window[e.globalVarName].eventBus=r,r.emitErrorWithMessage("LCDuplication",JSON.stringify(t),n)}return window[e.globalVarName]}}catch(e){console.error("Could not initialize error bus")}}(e)||Ge(e,t,n,i)||o;if(r.isArray(o))for(var s=0;s<o.length;s++)a.push(o[s]);return window[a.config.globalVarName]=a,window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter((function(e){return e.config.globalVarName===a.config.globalVarName})).length&&window.liQ_instances.push(a),a}(a,t,n,s):function(e,t,n,r){var i=Ge(e,t,n,r);return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(i),i}(a,t,n,s)}catch(e){console.error(e),s.emitErrorWithMessage("LCConstruction","Failed to build LC",e)}return o}function He(e,t){for(var n,i=r.isArray(e)?e:r.safeToString(e).split(","),o=[],a=0;a<i.length;a++){var s=r.trim(i[a]),c=t.getCookie(s)||t.getDataFromLocalStorage(s);!c||(n=r.safeToString(c),C().test(n))||T(r.safeToString(c))||o.push({name:s,value:r.safeToString(c)})}return o}function Je(e,t,n,r,i){try{var o=s(s({},Y(e,r)),{identifiersToResolve:e.identifiersToResolve||[]}),a=de(X(o)),c=je.make(a.storageStrategy,t,r),d=new Le(n,r,a.privacyMode),u=function(e,t){return function(n){try{return s(s({},n),{retrievedIdentifiers:He(n.identifiersToResolve,e)})}catch(e){return t.emitError("IdentifiersEnrich",e),s(s({},n),{retrievedIdentifiers:[]})}}}(c,r)(We(c)(function(e,t){return function(n){try{return s(s({},n),{peopleVerifiedId:n.peopleVerifiedId||e.getDataFromLocalStorage(f)||void 0})}catch(e){return t.emitError("PeopleVerifiedEnrich",e),n}}}(c,r)(a))),l=new ee(u,d,r);return{push:function(e){return i(e)},fire:function(){return i({})},peopleVerifiedId:u.peopleVerifiedId,ready:!0,resolve:l.resolve.bind(l),resolutionCallUrl:l.getUrl.bind(l),config:o,eventBus:r,storageHandler:c}}catch(e){console.error(e)}}function Ke(e,t,n,i){var o=r.isObject(e)&&e||{},a=i||re();try{return o.globalVarName?function(e,t,n,r){var i=window[e.globalVarName]=window[e.globalVarName]||[],o=Je(e,t,n,r,i.push.bind(i));return window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter((function(e){return e.config.globalVarName===o.config.globalVarName})).length&&window.liQ_instances.push(o),o}(o,t,n,a):function(e,t,n,r){var i=Je(e,t,n,r,(function(){}));return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(i),i}(o,t,n,a)}catch(e){console.error(e)}return{}}t.LiveConnect=function(e,t,n,i,o){var a="minimal"===i,s=o||re();return(a?Ke:ze)(r.isObject(e)&&e||{},t,n,s)},t.MinimalLiveConnect=Ke,t.QueryBuilder=W,t.StandardLiveConnect=ze,t.StorageHandlerBackedCache=Ue,t.WrappedStorageHandler=Pe,t.consts=m,t.encodeIdCookie=F,t.eventBus=oe},3145:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{A:()=>r})},9417:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},3029:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},2901:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(816);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.A)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},4467:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(816);function i(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},3954:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{A:()=>r})},5361:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)}n.d(t,{A:()=>i})},6822:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(2284),i=n(9417);function o(e,t){if(t&&("object"===(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}},296:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(7800);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,d=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){d=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(d)throw i}}return s}}(e,t)||(0,r.A)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5458:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(3145),i=n(7800);function o(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},816:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(2284);function i(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!=(0,r.A)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==(0,r.A)(t)?t:String(t)}},2284:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{A:()=>r})},7800:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(3145);function i(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var __webpack_exports__={};(()=>{"use strict";var e=__webpack_require__(296),t=__webpack_require__(4467),n=__webpack_require__(3831),r=__webpack_require__(7575),i=__webpack_require__(433);function o(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!==(i=t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])==typeof t?r:0*t[o]!=0||~(""+t[o]).indexOf(".")?{}:[]}var a,s=__webpack_require__(2743),c=__webpack_require__(6428),d=__webpack_require__(5455),u=__webpack_require__(9013),l=__webpack_require__(8718),p=__webpack_require__(2487),f=__webpack_require__(3233),v=__webpack_require__(4469),g=__webpack_require__(6439),m=(0,g.A_)("sync",(function(e){return'!function(){"use strict";window.render=function({ad:d,adUrl:i,width:n,height:e},{mkFrame:o},r){if(!d&&!i)throw{reason:"noAd",message:"Missing ad markup or URL"};{const t=r.document,s={width:n,height:e};i&&!d?s.src=i:s.srcdoc=d,t.body.appendChild(o(t,s))}}}();'})),h=(a={},function(e){var t=m(e);return a.hasOwnProperty(t)||(a[t]=new v.k((function(e){var n=(0,r.CA)();n.srcdoc="<script>".concat(t,"<\/script>"),n.onload=function(){return e(n.contentWindow.render)},document.body.appendChild(n)}))),a[t]}),b=s.qY.AD_RENDER_FAILED,y=s.qY.AD_RENDER_SUCCEEDED,_=s.qY.STALE_RENDER,A=s.qY.BID_WON,w=s.as.EXCEPTION;function I(e){var t=e.reason,n=e.message,i=e.bid,o=e.id,a={reason:t,message:n};i&&(a.bid=i,a.adId=i.adId),o&&(a.adId=o),(0,r.vV)("Error rendering ad (id: ".concat(o,"): ").concat(n)),u.Ic(b,a)}function E(e){var t=e.doc,n=e.bid,r=e.id,i={doc:t};n&&(i.bid=n),r&&(i.adId=r),u.Ic(y,i)}function O(e,t){switch(e.event){case s.qY.AD_RENDER_FAILED:I({bid:t,id:t.adId,reason:e.info.reason,message:e.info.message});break;case s.qY.AD_RENDER_SUCCEEDED:E({doc:null,bid:t,id:t.adId});break;default:(0,r.vV)("Received event request for unsupported event: '".concat(e.event,"' (adId: '").concat(t.adId,"')"))}}var x=(0,t.A)({},s.nl.EVENT,O),S=(0,g.A_)("sync",(function(e,t){var n=e.ad,i=e.adUrl,o=e.cpm,a=e.originalCpm,s=e.width,c=e.height,d={AUCTION_PRICE:a||o,CLICKTHROUGH:(null==t?void 0:t.clickUrl)||""};return{ad:(0,r.gM)(n,d),adUrl:(0,r.gM)(i,d),width:s,height:c}})),C=(0,g.A_)("sync",(function(e){var t=e.renderFn,n=e.resizeFn,r=e.bidResponse,i=e.options;if(r.mediaType!==f.G_){var o=S(r,i);t(Object.assign({adId:r.adId},o));var a=o.width,c=o.height;null!=(null!=a?a:c)&&n(a,c)}else I({reason:s.as.PREVENT_WRITING_ON_MAIN_DOCUMENT,message:"Cannot render video ad",bid:r,id:r.adId})}));function T(e){var t=e.renderFn,n=e.resizeFn,o=e.adId,a=e.options,d=e.bidResponse,p=e.doc;if(null!=d){if(d.status!==s.tl.RENDERED||((0,r.JE)("Ad id ".concat(o," has been rendered before")),u.Ic(_,d),!(0,i.A)(l.$W.getConfig("auctionOptions"),"suppressStaleRender"))){try{C({renderFn:t,resizeFn:n,bidResponse:d,options:a,doc:p})}catch(e){I({reason:s.as.EXCEPTION,message:e.message,id:o,bid:d})}c.n.addWinningBid(d),u.Ic(A,d)}}else I({reason:s.as.CANNOT_FIND_AD,message:"Cannot find ad '".concat(o,"'"),id:o})}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?k(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}C.before((function(e,t){var n=t.bidResponse,r=t.doc;(0,p.J7)(n.renderer)?((0,p.Pg)(n.renderer,n,r),E({doc:r,bid:n,id:n.adId}),e.bail()):e(t)}),100);var R=s.nl.REQUEST,j=s.nl.RESPONSE,P=(s.nl.NATIVE,s.nl.EVENT),B=(s.qY.BID_WON,(0,t.A)((0,t.A)({},R,(function(e,t,n){T({renderFn:function(t){e(Object.assign({message:j,renderer:m(n)},t))},resizeFn:N(n),options:t.options,adId:t.adId,bidResponse:n})})),P,(function(e,t,n){if(null!=n){if(n.status===s.tl.RENDERED)return O(t,n);(0,r.JE)("Received x-origin event request without corresponding render request for ad '".concat(n.adId,"'"))}else(0,r.vV)("Cannot find ad '".concat(t.adId,"' for x-origin event request"))})));function U(e){var t=e.message?"message":"data",n={};try{n=JSON.parse(e[t])}catch(e){return}if(n&&n.adId&&n.message){var i=(0,d.I6)(c.n.getBidsReceived(),(function(e){return e.adId===n.adId}));B.hasOwnProperty(n.message)&&B[n.message](function(e){return null==e.origin&&0===e.ports.length?function(){var 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,r.vV)(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),n,i)}}function N(e){return function(t,n){!function(e){var t=e.adId,n=e.adUnitCode,i=e.width,o=e.height;function a(e){return e?e+"px":"100%"}function s(e){var i=function(e,t){return(0,r.II)()?function(e){var t=(0,d.I6)(window.googletag.pubads().getSlots(),(function(t){return(0,d.I6)(t.getTargetingKeys(),(function(n){return(0,d.mK)(t.getTargeting(n),e)}))}));return t?t.getSlotElementId():null}(e):(0,r.t1)()?function(e){var t=window.apntag.getTag(e);return t&&t.targetId}(t):t}(t,n),o=document.getElementById(i);return o&&o.querySelector(e)}["div","iframe"].forEach((function(e){var t=s(e+':not([style*="display: none"])');if(t){var c=t.style;c.width=a(i),c.height=a(o)}else(0,r.JE)("Unable to locate matching page element for adUnitCode ".concat(n,". Can't resize it to ad's dimensions. Please review setup."))}))}(D(D({},e),{},{width:t,height:n}))}}var q=__webpack_require__(5588),M=__webpack_require__(5458),L=__webpack_require__(4447);function W(e,t){return e===t?0:e<t?-1:1}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return function(t,n){return W(e(t),e(n))}}function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W;return function(t,n){return-e(t,n)||0}}function G(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,n){for(var r=0,i=t;r<i.length;r++){var o=(0,i[r])(e,n);if(0!==o)return o}return 0}}function z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W;return function(t,n){return e(n,t)<0?n:t}}function H(){return z(V(arguments.length>0&&void 0!==arguments[0]?arguments[0]:W))}var J=F((function(e){return e.cpm})),K=F((function(e){return e.responseTimestamp})),$=H(G(J,V(F((function(e){return e.timeToRespond}))))),Q=H(G(J,V(K))),X=(H(G(J,K)),__webpack_require__(6389)),Y=[],Z="targetingControls.allowTargetingKeys",ee="targetingControls.addTargetingKeys",te='Only one of "'.concat(Z,'" or "').concat(ee,'" can be set'),ne=Object.keys(s.xS).map((function(e){return s.xS[e]})),re={isActualBid:function(e){return e.getStatusCode()===s.XQ.GOOD},isBidNotExpired:function(e){return e.responseTimestamp+1e3*(0,X.L)(e)>(0,r.vE)()},isUnusedBid:function(e){return e&&(e.status&&!(0,d.mK)([s.tl.RENDERED],e.status)||!e.status)}};function ie(e){return!Object.values(re).some((function(t){return!t(e)}))}var oe=(0,g.A_)("sync",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!(arguments.length>3&&void 0!==arguments[3]&&arguments[3])){var i=[],o=l.$W.getConfig("sendBidsControl.dealPrioritization"),a=(0,r.$z)(e,"adUnitCode");return Object.keys(a).forEach((function(e){var s=[],c=(0,r.$z)(a[e],"bidderCode");Object.keys(c).forEach((function(e){return s.push(c[e].reduce(t))})),n>0?(s=o?s.sort(ae(!0)):s.sort((function(e,t){return t.cpm-e.cpm})),i.push.apply(i,(0,M.A)(s.slice(0,n)))):i.push.apply(i,(0,M.A)(s))})),i}return e}));function ae(){var 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}}var se=function(e){var n={},o={};function a(e,t){return e.adserverTargeting&&t&&((0,r.cy)(t)&&(0,d.mK)(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function c(t){return"string"==typeof t?[t]:(0,r.cy)(t)?t:e.getAdUnitCodes()||[]}function u(){var t=e.getBidsReceived();if(l.$W.getConfig("useBidCache")){var n=l.$W.getConfig("bidCacheFilterFunction");"function"==typeof n&&(t=t.filter((function(e){return o[e.adUnitCode]===e.auctionId||!!n(e)})))}else t=t.filter((function(e){return o[e.adUnitCode]===e.auctionId}));return(t=t.filter((function(e){return(0,i.A)(e,"video.context")!==f.LM})).filter(ie)).forEach((function(e){return e.latestTargetedAuctionId=o[e.adUnitCode],e})),oe(t,Q)}function p(e,r){var i=n.getWinningBids(e,r),o=v();return i=i.map((function(e){return(0,t.A)({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(t){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===o.indexOf(t)})).reduce((function(n,r){var i=[e.adserverTargeting[r]],o=(0,t.A)({},r.substring(0,20),i);if(r===s.xS.DEAL){var a="".concat(r,"_").concat(e.bidderCode).substring(0,20),c=(0,t.A)({},a,i);return[].concat((0,M.A)(n),[o,c])}return[].concat((0,M.A)(n),[o])}),[]))})),i}function v(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(ne).filter(r.hj)}function g(e,t,n,i){return Object.keys(t.adserverTargeting).filter(m()).forEach((function(n){e.length&&e.filter(function(e){return function(n){return n.adUnitCode===t.adUnitCode&&n.adserverTargeting[e]}}(n)).forEach(function(e){return function(n){(0,r.cy)(n.adserverTargeting[e])||(n.adserverTargeting[e]=[n.adserverTargeting[e]]),n.adserverTargeting[e]=n.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(r.hj),delete t.adserverTargeting[e]}}(n))})),e.push(t),e}function m(){var e=v();return function(t){return-1===e.indexOf(t)}}function h(e){return(0,t.A)({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(m()).map((function(n){return(0,t.A)({},n.substring(0,20),[e.adserverTargeting[n]])})))}function b(e,n){return n.map((function(n){return(0,t.A)({},"".concat(n,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}return n.setLatestAuctionForAdUnit=function(e,t){o[e]=t},n.resetPresetTargeting=function(t,n){if((0,r.II)()){var i=c(t),o=e.getAdUnits().filter((function(e){return(0,d.mK)(i,e.code)})),a=Y.reduce((function(e,t){return e[t]=null,e}),{});window.googletag.pubads().getSlots().forEach((function(e){var t=(0,r.fp)(n)&&n(e);o.forEach((function(n){(n.code===e.getAdUnitPath()||n.code===e.getSlotElementId()||(0,r.fp)(t)&&t(n.code))&&e.updateTargetingFromMap(a)}))}))}},n.resetPresetTargetingAST=function(e){c(e).forEach((function(e){var t=window.apntag.getTag(e);if(t&&t.keywords){var n=Object.keys(t.keywords),r={};n.forEach((function(e){(0,d.mK)(Y,e.toLowerCase())||(r[e]=t.keywords[e])})),window.apntag.modifyTag(e,{keywords:r})}}))},n.getAllTargeting=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(),f=c(n),v=p(f,o).concat(function(e,t){return t.filter((function(t){return(0,d.mK)(e,t.adUnitCode)})).map((function(e){return Object.assign({},e)})).reduce(g,[]).map(h).filter((function(e){return e}))}(f,o)).concat(l.$W.getConfig("enableSendAllBids")?function(e,n){var r=ne.slice(),i=l.$W.getConfig("sendBidsControl.bidLimit"),o=oe(n,$,i),c=l.$W.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),d=c?c.map((function(e){return s.xS[e]})):r;return o.map((function(n){if(a(n,e))return(0,t.A)({},n.adUnitCode,b(n,r.filter((function(e){return void 0!==n.adserverTargeting[e]&&-1!==d.indexOf(e)}))))})).filter((function(e){return e}))}(f,o):function(e,n){if(!0===l.$W.getConfig("targetingControls.alwaysIncludeDeals")){var r=ne.slice();return oe(n,$).map((function(n){if(n.dealId&&a(n,e))return(0,t.A)({},n.adUnitCode,b(n,r.filter((function(e){return void 0!==n.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}(f,o)).concat(function(n){function o(e){return(0,i.A)(e,s.iD.ADSERVER_TARGETING)}return e.getAdUnits().filter((function(e){return(0,d.mK)(n,e.code)&&o(e)})).map((function(e){return(0,t.A)({},e.code,function(e){var n=o(e);return Object.keys(n).map((function(e){return(0,r.O8)(n[e])&&(n[e]=n[e].split(",").map((function(e){return e.trim()}))),(0,r.cy)(n[e])||(n[e]=[n[e]]),(0,t.A)({},e,n[e])}))}(e))}))}(f));v.map((function(e){Object.keys(e).map((function(t){e[t].map((function(e){-1===Y.indexOf(Object.keys(e)[0])&&(Y=Object.keys(e).concat(Y))}))}))}));var m=Object.keys(Object.assign({},s.Zh,s.x5)),y=l.$W.getConfig(Z),_=l.$W.getConfig(ee);if(null!=_&&null!=y)throw new Error(te);y=null!=_?m.concat(_):y||m,Array.isArray(y)&&y.length>0&&(v=function(e,t){var n=Object.assign({},s.xS,s.x5),i=Object.keys(n),o={};(0,r.fH)("allowTargetingKeys - allowed keys [ ".concat(t.map((function(e){return n[e]})).join(", ")," ]")),e.map((function(e){var r=Object.keys(e)[0],a=e[r].filter((function(e){var r=Object.keys(e)[0],a=0===i.filter((function(e){return 0===r.indexOf(n[e])})).length||(0,d.I6)(t,(function(e){var t=n[e];return 0===r.indexOf(t)}));return o[r]=!a,a}));e[r]=a}));var a=Object.keys(o).filter((function(e){return o[e]}));return(0,r.fH)("allowTargetingKeys - removed keys [ ".concat(a.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}(v,y)),v=function(e){var n=e.map((function(e){return(0,t.A)({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return(0,t.A)({},Object.keys(e)[0],e[Object.keys(e)[0]].join(","))})).reduce((function(e,t){return Object.assign(t,e)}),{}))})).reduce((function(e,t){var n=Object.keys(t)[0];return e[n]=Object.assign({},e[n],t[n]),e}),{});return n}(v);var A=l.$W.getConfig("targetingControls.auctionKeyMaxChars");return A&&((0,r.fH)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(A," characters. Running checks on auction keys...")),v=function(e,t){var n=(0,r.Go)(e),i=Object.keys(n).map((function(e){return{adUnitCode:e,adserverTargeting:n[e]}})).sort(ae());return i.reduce((function(e,i,o,a){var s,c=(s=i.adserverTargeting,Object.keys(s).reduce((function(e,t){return e+"".concat(t,"%3d").concat(encodeURIComponent(s[t]),"%26")}),""));o+1===a.length&&(c=c.slice(0,-3));var d=i.adUnitCode,u=c.length;return u<=t?(t-=u,(0,r.fH)("AdUnit '".concat(d,"' auction keys comprised of ").concat(u," characters. Deducted from running threshold; new limit is ").concat(t),n[d]),e[d]=n[d]):(0,r.JE)("The following keys for adUnitCode '".concat(d,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(u,", the current allotted amount was ").concat(t,".\n"),n[d]),o+1===a.length&&0===Object.keys(e).length&&(0,r.vV)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e}),{})}(v,A)),f.forEach((function(e){v[e]||(v[e]={})})),v},l.$W.getConfig("targetingControls",(function(e){null!=(0,i.A)(e,Z)&&null!=(0,i.A)(e,ee)&&(0,r.vV)(te)})),n.setTargetingForGPT=function(e,t){window.googletag.pubads().getSlots().forEach((function(n){Object.keys(e).filter(t?t(n):(0,r.iC)(n)).forEach((function(t){Object.keys(e[t]).forEach((function(n){var r=e[t][n];"string"==typeof r&&-1!==r.indexOf(",")&&(r=r.split(",")),e[t][n]=r})),(0,r.OG)("Attempting to set targeting-map for slot: ".concat(n.getSlotElementId()," with targeting-map:"),e[t]),n.updateTargetingFromMap(e[t])}))}))},n.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(),n=c(e);return t.filter((function(e){return(0,d.mK)(n,e.adUnitCode)})).filter((function(e){return!0===L.u.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0})).map((function(e){return e.adUnitCode})).filter(r.hj).map((function(e){return t.filter((function(t){return t.adUnitCode===e?t:null})).reduce($)}))},n.setTargetingForAst=function(e){var t=n.getAllTargeting(e);try{n.resetPresetTargetingAST(e)}catch(e){(0,r.vV)("unable to reset targeting for AST"+e)}Object.keys(t).forEach((function(e){return Object.keys(t[e]).forEach((function(n){if((0,r.OG)("Attempting to set targeting for targetId: ".concat(e," key: ").concat(n," value: ").concat(t[e][n])),(0,r.O8)(t[e][n])||(0,r.cy)(t[e][n])){var i={};n.search(/pt[0-9]/)<0?i[n.toUpperCase()]=t[e][n]:i[n]=t[e][n],window.apntag.setKeywords(e,i,{overrideKeyValue:!0})}}))}))},n.isApntagDefined=function(){if(window.apntag&&(0,r.fp)(window.apntag.setKeywords))return!0},n}(c.n),ce=__webpack_require__(5651),de=__webpack_require__(4286),ue="____pwpbjs___debugging__";function le(){return(0,n.m)().installedModules.includes("debugging")}function pe(e){return new v.k((function(t){(0,de.R)(e,"debugging",t)}))}var fe=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.load,i=void 0===t?function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alreadyInstalled,i=void 0===t?le:t,o=e.script,a=void 0===o?pe:o,s=null;return function(){return null==s&&(s=new v.k((function(e,t){setTimeout((function(){if(i())e();else{var o="https://cdn.jsdelivr.net/npm/prebid.js@8.45.0/dist/debugging-standalone.js";(0,r.OG)('Debugging module not installed, loading it from "'.concat(o,'"...')),(0,n.m)()._installDebugging=!0,a(o).then((function(){(0,n.m)()._installDebugging({DEBUG_KEY:ue,hook:g.A_,config:l.$W,createBid:ce.O,logger:(0,r.h0)("DEBUG:")})})).then(e,t)}}))}))),s}}():t,o=e.hook,a=void 0===o?(0,g.Yn)("requestBids"):o,s=null,c=!1;function d(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(s||v.k.resolve()).then((function(){return e.apply(t,r)}))}function u(){a.getHooks({hook:d}).remove(),c=!1}return{enable:function(){c||(s=i(),a.before(d,99),c=!0)},disable:u,reset:function(){s=null,u()}}}();fe.reset,l.$W.getConfig("debugging",(function(e){var t=e.debugging;null!=t&&t.enabled?fe.enable():fe.disable()}));var ve=__webpack_require__(4128),ge=__webpack_require__(8256),me=__webpack_require__(1992),he=__webpack_require__(556),be=(0,ve.CK)("fpdEnrichment"),ye=(0,r.Bj)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!be.cookiesAreEnabled())return e;var t,n,i=e.split(".");if(2===i.length)return e;var o=-2,a="_rdc".concat(Date.now()),s="writeable";do{t=i.slice(o).join(".");var c=new Date((0,r.vE)()+1e4).toUTCString();be.setCookie(a,s,c,"Lax",t,void 0),be.getCookie(a,void 0)===s?(n=!1,be.setCookie(a,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,t,void 0)):(o+=-1,n=Math.abs(o)<=i.length)}while(n);return t})),_e=["architecture","bitness","model","platformVersion","fullVersionList"],Ae=["brands","mobile","platform"],we=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,n=t&&Ae.some((function(e){return void 0!==t[e]}))?Object.freeze(Ee(1,t)):null;return function(){return n}}(),Ie=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,n={},i=new WeakMap;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_e;if(!i.has(e)){var o=Array.from(e);o.sort(),i.set(e,o.join("|"))}var a=i.get(e);if(!n.hasOwnProperty(a))try{n[a]=t.getHighEntropyValues(e).then((function(e){return(0,r.Im)(e)?null:Object.freeze(Ee(2,e))})).catch((function(){return null}))}catch(e){n[a]=v.k.resolve(null)}return n[a]}}();function Ee(e,t){function n(e,t){var n={brand:e};return(0,r.O8)(t)&&!(0,r.xQ)(t)&&(n.version=t.split(".")),n}var i={source:e};return t.platform&&(i.platform=n(t.platform,t.platformVersion)),(t.fullVersionList||t.brands)&&(i.browsers=(t.fullVersionList||t.brands).map((function(e){return n(e.brand,e.version)}))),void 0!==t.mobile&&(i.mobile=t.mobile?1:0),["model","bitness","architecture"].forEach((function(e){var n=t[e];(0,r.O8)(n)&&(i[e]=n)})),i}var Oe=["dooh","app","site"];function xe(e){return function(t){return Oe.reduce((function(n,i){return Se(t,i)&&(null!=n?((0,r.JE)("".concat(e," specifies both '").concat(n,"' and '").concat(i,"'; dropping the latter.")),delete t[i]):n=i),n}),null),t}}function Se(e,t){return null!=e[t]&&Object.keys(e[t]).length>0}var Ce=__webpack_require__(7253),Te=__webpack_require__(6575),ke=__webpack_require__(3973),De=__webpack_require__(3883);function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var je={getRefererInfo:he.EN,findRootDomain:ye,getWindowTop:r.mb,getWindowSelf:r.l4,getHighEntropySUA:Ie,getLowEntropySUA:we},Pe=xe("FPD"),Be=(0,g.A_)("sync",(function(t){var n,i=[t,(n=l.$W.getConfig("firstPartyData.uaHints"),Array.isArray(n)&&0!==n.length?je.getHighEntropySUA(n):v.k.resolve(je.getLowEntropySUA())).catch((function(){return null})),v.k.resolve("cookieDeprecationLabel"in navigator&&(0,Ce.io)(ke.Ue,(0,Te.s)(De.tp,"cdep"))&&navigator.cookieDeprecationLabel.getValue()).catch((function(){return null}))];return v.k.all(i).then((function(t){var n=(0,e.A)(t,3),i=n[0],a=n[1],s=n[2],c=je.getRefererInfo();if(function(e){["app","site","device"].forEach((function(t){var n=l.$W.getConfig(t);null!=n&&(e[t]=(0,r.D9)({},n,e[t]))}))}(i),Object.entries(qe).forEach((function(t){var n=(0,e.A)(t,2),o=n[0],a=(0,n[1])(i,c);a&&Object.keys(a).length>0&&(i[o]=(0,r.D9)({},a,i[o]))})),a&&o(i,"device.sua",Object.assign({},a,i.device.sua)),s){var d={cdep:s};o(i,"device.ext",Object.assign({},d,i.device.ext))}i=Pe(i);var u,p=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(Oe);try{for(p.s();!(u=p.n()).done;){var f=u.value;if(Se(i,f)){i[f]=(0,r.D9)({},Me(0,c),i[f]);break}}}catch(e){p.e(e)}finally{p.f()}return i}))}));function Ue(e){try{return e(je.getWindowTop())}catch(t){return e(je.getWindowSelf())}}function Ne(e){return(0,r.SH)(e,Object.keys(e))}var qe={site:function(e,t){if(!Oe.filter((function(e){return"site"!==e})).some(Se.bind(null,e)))return Ne({page:t.page,ref:t.ref})},device:function(){return Ue((function(e){var t,n={w:e.innerWidth||e.document.documentElement.clientWidth||e.document.body.clientWidth,h:e.innerHeight||e.document.documentElement.clientHeight||e.document.body.clientHeight,dnt:(0,r.l9)()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift()};return null!==(t=e.navigator)&&void 0!==t&&t.webdriver&&o(n,"ext.webdriver",!0),n}))},regs:function(){var e={};Ue((function(e){return e.navigator.globalPrivacyControl}))&&o(e,"ext.gpc",1);var t=l.$W.getConfig("coppa");return"boolean"==typeof t&&(e.coppa=t?1:0),e}};function Me(e,t){var n,r,i=(0,he.gR)(t.page,{noLeadingWww:!0});return Ne({domain:i,keywords:null===(n=Ue((function(e){return e.document.querySelector("meta[name='keywords']")})))||void 0===n||null===(n=n.content)||void 0===n||null===(r=n.replace)||void 0===r?void 0:r.call(n,/\s/g,""),publisher:Ne({domain:je.findRootDomain(i)})})}var Le=__webpack_require__(1586),We=__webpack_require__(4781),Fe=(0,n.m)(),Ve=q.zt.triggerUserSyncs,Ge=s.qY.ADD_AD_UNITS,ze=s.qY.REQUEST_BIDS,He=s.qY.SET_TARGETING,Je={bidWon:function(e){if(c.n.getBidsRequested().map((function(e){return e.bids.map((function(e){return e.adUnitCode}))})).reduce(r.Bq).filter(r.hj).includes(e))return!0;(0,r.vV)('The "'+e+'" placement is not defined.')}};function Ke(e,t){var n=[];return(0,r.cy)(e)&&(t?e.length===t:e.length>0)&&(e.every((function(e){return(0,r.Uu)(e,2)}))?n=e:(0,r.Uu)(e,2)&&n.push(e)),n}function $e(e){var t=(0,r.Go)(e),n=t.mediaTypes.banner,i=Ke(n.sizes);return i.length>0?(n.sizes=i,t.sizes=i):((0,r.vV)("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),t}function Qe(e){var t=(0,r.Go)(e),n=t.mediaTypes.video;if(n.playerSize){var i="number"==typeof n.playerSize[0]?2:1,o=Ke(n.playerSize,i);o.length>0?(2===i&&(0,r.fH)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),n.playerSize=o,t.sizes=o):((0,r.vV)("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 t}function Xe(e,t){var n=(0,i.A)(e,"mediaTypes.".concat(t,".pos"));if(!(0,r.Et)(n)||isNaN(n)||!isFinite(n)){var o="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");(0,r.JE)(o),u.Ic(s.qY.AUCTION_DEBUG,{type:"WARNING",arguments:o}),delete e.mediaTypes[t].pos}return e}function Ye(e){var t=function(t){return"adUnit.code '".concat(e.code,"' ").concat(t)},n=e.mediaTypes,i=e.bids;return null==i||(0,r.cy)(i)?null==i&&null==e.ortb2Imp?((0,r.vV)(t("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):n&&0!==Object.keys(n).length?(null==e.ortb2Imp||null!=i&&0!==i.length||(e.bids=[{bidder:null}],(0,r.OG)(t("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),e):((0,r.vV)(t("does not define a 'mediaTypes' object. This is a required field for the auction, so this adUnit has been removed.")),null):((0,r.vV)(t("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}!function(){var e=null;try{e=window.sessionStorage}catch(e){}if(null!==e){var t=fe,n=null;try{n=e.getItem(ue)}catch(e){}null!==n&&t.enable()}}(),Fe.bidderSettings=Fe.bidderSettings||{},Fe.libLoaded=!0,Fe.version="v8.45.0",(0,r.fH)("Prebid.js v8.45.0 loaded"),Fe.installedModules=Fe.installedModules||[],Fe.adUnits=Fe.adUnits||[],Fe.triggerUserSyncs=Ve;var Ze={validateAdUnit:Ye,validateBannerMediaType:$e,validateSizes:Ke};Object.assign(Ze,{validateVideoMediaType:Qe});var et,tt=(0,g.A_)("sync",(function(e){var t=[];return e.forEach((function(e){if(null!=(e=Ye(e))){var n,r,i=e.mediaTypes;i.banner&&(n=$e(e),i.banner.hasOwnProperty("pos")&&(n=Xe(n,"banner"))),i.video&&(r=Qe(n||e),i.video.hasOwnProperty("pos")&&(r=Xe(r,"video")));var o=Object.assign({},n,r,void 0);t.push(o)}})),t}),"checkAdUnitSetup");function nt(e){var n=c.n[e]().filter((function(e){return c.n.getAdUnitCodes().includes(e.adUnitCode)})),i=c.n.getLastAuctionId();return n.map((function(e){return e.adUnitCode})).filter(r.hj).map((function(e){return n.filter((function(t){return t.auctionId===i&&t.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return(0,t.A)({},e[0].adUnitCode,{bids:e})})).reduce((function(e,t){return Object.assign(e,t)}),{})}Fe.getAdserverTargetingForAdUnitCodeStr=function(e){if((0,r.fH)("Invoking __pwpbjs__.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=Fe.getAdserverTargetingForAdUnitCode(e);return(0,r.$D)(t)}(0,r.OG)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},Fe.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var t=c.n.getAllBidsForAdUnitCode(e).filter(ie);return t.length?t.reduce($):{}}(0,r.OG)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},Fe.getAdserverTargetingForAdUnitCode=function(e){return Fe.getAdserverTargeting(e)[e]},Fe.getAdserverTargeting=function(e){return(0,r.fH)("Invoking __pwpbjs__.getAdserverTargeting",arguments),se.getAllTargeting(e)},Fe.getConsentMetadata=function(){return(0,r.fH)("Invoking __pwpbjs__.getConsentMetadata"),Le.SL.getConsentMeta()},Fe.getNoBids=function(){return(0,r.fH)("Invoking __pwpbjs__.getNoBids",arguments),nt("getNoBids")},Fe.getNoBidsForAdUnitCode=function(e){return{bids:c.n.getNoBids().filter((function(t){return t.adUnitCode===e}))}},Fe.getBidResponses=function(){return(0,r.fH)("Invoking __pwpbjs__.getBidResponses",arguments),nt("getBidsReceived")},Fe.getBidResponsesForAdUnitCode=function(e){return{bids:c.n.getBidsReceived().filter((function(t){return t.adUnitCode===e}))}},Fe.setTargetingForGPTAsync=function(e,t){if((0,r.fH)("Invoking __pwpbjs__.setTargetingForGPTAsync",arguments),(0,r.II)()){var n=se.getAllTargeting(e);se.resetPresetTargeting(e,t),se.setTargetingForGPT(n,t),Object.keys(n).forEach((function(e){Object.keys(n[e]).forEach((function(t){"hb_adid"===t&&c.n.setStatusForBids(n[e][t],s.tl.BID_TARGETING_SET)}))})),u.Ic(He,n)}else(0,r.vV)("window.googletag is not defined on the page")},Fe.setTargetingForAst=function(e){(0,r.fH)("Invoking __pwpbjs__.setTargetingForAn",arguments),se.isApntagDefined()?(se.setTargetingForAst(e),u.Ic(He,se.getAllTargeting())):(0,r.vV)("window.apntag is not defined on the page")},Fe.renderAd=(0,g.A_)("async",(function(e,t,n){(0,r.fH)("Invoking __pwpbjs__.renderAd",arguments),(0,r.OG)("Calling renderAd with adId :"+t),function(e,t,n){var i;function o(e,n){I(Object.assign({id:t,bid:i},{reason:e,message:n}))}function a(t,n){e.defaultView&&e.defaultView.frameElement&&(t&&(e.defaultView.frameElement.width=t),n&&(e.defaultView.frameElement.height=n))}var d,u=(d={resizeFn:a},function(e,t,n){x.hasOwnProperty(e)&&x[e](t,n,d)});try{t&&e?(i=c.n.findBidByAdId(t),e!==document||(0,r.al)()?T({renderFn:function(t){t.ad?(e.write(t.ad),e.close(),E({doc:e,bid:i,adId:i.adId})):h(i).then((function(n){return n(t,{sendMessage:function(e,t){return u(e,t,i)},mkFrame:r.hw},e.defaultView)})).then((function(){return E({doc:e,bid:i,adId:i.adId})}),(function(e){o((null==e?void 0:e.reason)||s.as.EXCEPTION,null==e?void 0:e.message),(null==e?void 0:e.stack)&&(0,r.vV)(e)}));var n=document.createComment("Creative ".concat(i.creativeId," served by ").concat(i.bidder," Prebid.js Header Bidding"));(0,r._s)(n,e,"html")},resizeFn:a,adId:t,options:{clickUrl:null==n?void 0:n.clickThrough},bidResponse:i,doc:e}):o(s.as.PREVENT_WRITING_ON_MAIN_DOCUMENT,"renderAd was prevented from writing to the main document.")):o(s.as.MISSING_DOC_OR_ADID,"missing ".concat(t?"doc":"adId"))}catch(e){o(w,e.message)}}(e,t,n)})),Fe.removeAdUnit=function(e){(0,r.fH)("Invoking __pwpbjs__.removeAdUnit",arguments),e?((0,r.cy)(e)?e:[e]).forEach((function(e){for(var t=Fe.adUnits.length-1;t>=0;t--)Fe.adUnits[t].code===e&&Fe.adUnits.splice(t,1)})):Fe.adUnits=[]},Fe.requestBids=(et=(0,g.A_)("async",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.bidsBackHandler,i=t.timeout,o=t.adUnits,a=t.adUnitCodes,s=t.labels,c=t.auctionId,p=t.ttlBuffer,f=t.ortb2,g=t.metrics,m=t.defer;u.Ic(ze);var h=i||l.$W.getConfig("bidderTimeout");(0,r.fH)("Invoking __pwpbjs__.requestBids",arguments),a&&a.length?o=o.filter((function(e){return(0,d.mK)(a,e.code)})):a=o&&o.map((function(e){return e.code}));var b={global:(0,r.D9)({},l.$W.getAnyConfig("ortb2")||{},f||{}),bidder:Object.fromEntries(Object.entries(l.$W.getBidderConfig()).map((function(t){var n=(0,e.A)(t,2);return[n[0],n[1].ortb2]})).filter((function(t){var n=(0,e.A)(t,2);return n[0],null!=n[1]})))};return Be(v.k.resolve(b.global)).then((function(e){return b.global=e,rt({bidsBackHandler:n,timeout:h,adUnits:o,adUnitCodes:a,labels:s,auctionId:c,ttlBuffer:p,ortb2Fragments:b,metrics:g,defer:m})}))}),"requestBids"),(0,g.Y6)(et,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.adUnits||Fe.adUnits;return e.adUnits=(0,r.cy)(t)?t.slice():[t],e.metrics=(0,me.K7)(),e.metrics.checkpoint("requestBids"),e.defer=(0,v.v)({promiseFactory:function(e){return new Promise(e)}}),et.call(this,e),e.defer.promise})));var rt=(0,g.A_)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,i=e.adUnits,a=e.ttlBuffer,s=e.adUnitCodes,u=e.labels,p=e.auctionId,f=e.ortb2Fragments,v=e.metrics,g=e.defer,m=(0,ge.pX)(l.$W.getConfig("s2sConfig")||[]);function h(e,n,i){if("function"==typeof t)try{t(e,n,i)}catch(e){(0,r.vV)("Error executing bidsBackHandler",null,e)}g.resolve({bids:e,timedOut:n,auctionId:i})}!function(e){e.forEach((function(e){return(0,We.V0)(e)}))}(i),i=(0,me.BO)(v).measureTime("requestBids.validate",(function(){return tt(i)}));var b={};if(i.forEach((function(e){var t,n=Object.keys(e.mediaTypes||{banner:"banner"}),i=e.bids.map((function(e){return e.bidder})),o=ge.Ay.bidderRegistry,s=i.filter((function(e){return!m.has(e)}));e.adUnitId=(0,r.lk)();var c=null===(t=e.ortb2Imp)||void 0===t||null===(t=t.ext)||void 0===t?void 0:t.tid;c&&(b.hasOwnProperty(e.code)?(0,r.JE)("Multiple distinct ortb2Imp.ext.tid were provided for twin ad units '".concat(e.code,"'")):b[e.code]=c),null==a||e.hasOwnProperty("ttlBuffer")||(e.ttlBuffer=a),s.forEach((function(t){var i=o[t],a=i&&i.getSpec&&i.getSpec(),s=a&&a.supportedMediaTypes||["banner"];n.some((function(e){return(0,d.mK)(s,e)}))||((0,r.JE)((0,r.bz)(e,t)),e.bids=e.bids.filter((function(e){return e.bidder!==t})))}))})),i&&0!==i.length){i.forEach((function(e){var t,n=(null===(t=e.ortb2Imp)||void 0===t||null===(t=t.ext)||void 0===t?void 0:t.tid)||b[e.code]||(0,r.lk)();b.hasOwnProperty(e.code)||(b[e.code]=n),e.transactionId=n,o(e,"ortb2Imp.ext.tid",n)}));var y=c.n.createAuction({adUnits:i,adUnitCodes:s,callback:h,cbTimeout:n,labels:u,auctionId:p,ortb2Fragments:f,metrics:v}),_=i.length;_>15&&(0,r.fH)("Current auction ".concat(y.getAuctionId()," contains ").concat(_," adUnits."),i),s.forEach((function(e){return se.setLatestAuctionForAdUnit(e,y.getAuctionId())})),y.callBids()}else(0,r.OG)("No adUnits configured. No bids requested."),h()}),"startAuction");Fe.requestBids.before((function(e,t){function n(e){for(var t;t=e.shift();)t()}n(ve.s0),n(it),e.call(this,t)}),49),Fe.addAdUnits=function(e){(0,r.fH)("Invoking __pwpbjs__.addAdUnits",arguments),Fe.adUnits.push.apply(Fe.adUnits,(0,r.cy)(e)?e:[e]),u.Ic(Ge)},Fe.onEvent=function(e,t,n){(0,r.fH)("Invoking __pwpbjs__.onEvent",arguments),(0,r.fp)(t)?!n||Je[e].call(null,n)?u.on(e,t,n):(0,r.vV)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,r.vV)('The event handler provided is not a function and was not set on event "'+e+'".')},Fe.offEvent=function(e,t,n){(0,r.fH)("Invoking __pwpbjs__.offEvent",arguments),n&&!Je[e].call(null,n)||u.AU(e,t,n)},Fe.getEvents=function(){return(0,r.fH)("Invoking __pwpbjs__.getEvents"),u.kQ()},Fe.registerBidAdapter=function(e,t){(0,r.fH)("Invoking __pwpbjs__.registerBidAdapter",arguments);try{ge.Ay.registerBidAdapter(e(),t)}catch(e){(0,r.vV)("Error registering bidder adapter : "+e.message)}},Fe.registerAnalyticsAdapter=function(e){(0,r.fH)("Invoking __pwpbjs__.registerAnalyticsAdapter",arguments);try{ge.Ay.registerAnalyticsAdapter(e)}catch(e){(0,r.vV)("Error registering analytics adapter : "+e.message)}},Fe.createBid=function(e){return(0,r.fH)("Invoking __pwpbjs__.createBid",arguments),(0,ce.O)(e)};var it=[],ot=(0,g.A_)("async",(function(e){e&&!(0,r.Im)(e)?((0,r.fH)("Invoking __pwpbjs__.enableAnalytics for: ",e),ge.Ay.enableAnalytics(e)):(0,r.vV)("__pwpbjs__.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");Fe.enableAnalytics=function(e){it.push(ot.bind(this,e))},Fe.aliasBidder=function(e,t,n){(0,r.fH)("Invoking __pwpbjs__.aliasBidder",arguments),e&&t?ge.Ay.aliasBidAdapter(e,t,n):(0,r.vV)("bidderCode and alias must be passed as arguments","__pwpbjs__.aliasBidder")},Fe.aliasRegistry=ge.Ay.aliasRegistry,l.$W.getConfig("aliasRegistry",(function(e){"private"===e.aliasRegistry&&delete Fe.aliasRegistry})),Fe.getAllWinningBids=function(){return c.n.getAllWinningBids()},Fe.getAllPrebidWinningBids=function(){return c.n.getBidsReceived().filter((function(e){return e.status===s.tl.BID_TARGETING_SET}))},Fe.getHighestCpmBids=function(e){return se.getWinningBids(e)},Fe.markWinningBidAsUsed=function(e){var t=at(e,"Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function.");t.length>0&&c.n.addWinningBid(t[0])};var at=function(e,t){var n=[];return e.adUnitCode&&e.adId?n=c.n.getBidsReceived().filter((function(t){return t.adId===e.adId&&t.adUnitCode===e.adUnitCode})):e.adUnitCode?n=se.getWinningBids(e.adUnitCode):e.adId?n=c.n.getBidsReceived().filter((function(t){return t.adId===e.adId})):(0,r.JE)(t),n};function st(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){(0,r.vV)("Error processing command :","prebid.js",e)}}))}Fe.getConfig=l.$W.getAnyConfig,Fe.readConfig=l.$W.readAnyConfig,Fe.mergeConfig=l.$W.mergeConfig,Fe.mergeBidderConfig=l.$W.mergeBidderConfig,Fe.setConfig=l.$W.setConfig,Fe.setBidderConfig=l.$W.setBidderConfig,Fe.que.push((function(){window.addEventListener("message",U,!1)})),Fe.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){(0,r.vV)("Error processing command :",e.message,e.stack)}else(0,r.vV)("Commands written into __pwpbjs__.cmd.push must be wrapped in a function")},Fe.que.push=Fe.cmd.push,Fe.processQueue=function(){g.A_.ready(),st(Fe.que),st(Fe.cmd)},Fe.triggerBilling=function(e){var t=at(e,"Improper use of triggerBilling. It requires a bid with at least an adUnitCode or an adId to function."),n=t.find((function(t){return t.requestId===e.requestId}))||t[0];if(t.length>0&&n)try{ge.Ay.callBidBillableBidder(n)}catch(e){(0,r.vV)("Error when triggering billing :",e)}else(0,r.JE)("The bid provided to triggerBilling did not match any bids received.")};const ct=Fe;var dt=__webpack_require__(2284),ut=__webpack_require__(8911),lt=__webpack_require__(2607);function pt(e){var t={};for(var n in e)t[e[n]]=n;return t}Object.keys(s.x5).map((function(e){return s.x5[e]})),pt(s.h0),pt(s.jO),Object.fromEntries(Object.entries(s.x5).map((function(t){var n=(0,e.A)(t,2),r=n[0];return[n[1],r]})));var ft={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"},vt=["user.keywords"].concat(Oe.flatMap((function(e){return["keywords","content.keywords"].map((function(t){return"".concat(e,".").concat(t)}))})));function gt(){for(var e=new Set,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.filter((function(e){return e})).flatMap((function(e){return Array.isArray(e)?e:e.split(",")})).map((function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")})).filter((function(e){return e})).forEach((function(t){return e.add(t)})),Array.from(e.keys())}function mt(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 gt.apply(void 0,(0,M.A)(vt.map((function(t){return(0,i.A)(e,t)}))).concat(n))}var ht={526:"1plusX",527:"1plusX",541:"captify_segments",540:"perid"},bt=["user.data"].concat(Oe.map((function(e){return"".concat(e,".content.data")})));function yt(e,t,n){return null==t?n:(0,r.O8)(t)?t:(0,r.Et)(t)?t.toString():void(0,r.JE)("Unsuported type for param: "+e+" required type: String")}function _t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",n=[];return(0,r.bu)(e,(function(e,i){if((0,r.cy)(e)){var o=[];(0,r.bu)(e,(function(e){((e=yt(t+"."+i,e))||""===e)&&o.push(e)})),e=o}else{if(e=yt(t+"."+i,e),!(0,r.O8)(e))return;e=[e]}e=e.filter((function(e){return""!==e}));var a={key:i};e.length>0&&(a.value=e),n.push(a)})),n}function At(e){var t={};return e.forEach((function(e){if(-1!==e.indexOf("=")){var n=e.split("="),r=n[0],i=n[1];t.hasOwnProperty(r)?t[r].push(i):t[r]=[i]}else t.hasOwnProperty(e)||(t[e]=[])})),t}function wt(e){return At(mt(e))}function It(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return _t(r.D9.apply(void 0,(0,M.A)(n.map((function(t){return Object.fromEntries(Object.entries(t||{}).map((function(t){var n=(0,e.A)(t,2),i=n[0],o=n[1];return[i,(0,r.Et)(o)||(0,r.O8)(o)?[o]:o]})))})))))}function Et(e){var t={};return bt.forEach((function(n){((0,i.A)(e,n)||[]).forEach((function(e){var n=ht[(0,i.A)(e,"ext.segtax")];n&&e.segment.forEach((function(e){t[n]?t[n].push(e.id):t[n]=[e.id]}))}))})),t}function Ot(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()})).replace(/^_/,"")}function xt(e,t){for(var n=[],i=0;i<t;i++){var o=(0,r.Qd)(e)?(0,r.Go)(e):e;n.push(o)}return n}function St(e,t){return Object.keys(e).forEach((function(n){var i,o;t[n]&&((0,r.fp)(e[n])?t[n]=e[n](t[n]):t[n]=(i=e[n],o=t[n],"string"===i?o&&o.toString():"number"===i?Number(o):o),isNaN(t[n])&&delete t.key)})),t}function Ct(e,t){for(var n=[],r=0;r<Math.ceil(e.length/t);r++){var i=r*t,o=i+t;n.push(e.slice(i,o))}return n}var Tt="appnexus",kt=["id","minduration","maxduration","skippable","playback_method","frameworks","context","skipoffset"],Dt=["minduration","maxduration","skip","skipafter","playbackmethod","api","startdelay","placement","plcmt"],Rt=["age","externalUid","external_uid","segments","gender","dnt","language"],jt=["geo","device_id"],Pt=["enabled","dongle","member_id","debug_timeout"],Bt={apn_debug_dongle:"dongle",apn_debug_member_id:"member_id",apn_debug_timeout:"debug_timeout"},Ut={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}},Nt=(0,ve.vM)({bidderCode:Tt}),qt={code:Tt,gvlid:32,aliases:[{code:"appnexusAst",gvlid:32},{code:"emxdigital",gvlid:183},{code:"emetriq",gvlid:213},{code:"pagescience",gvlid:32},{code:"gourmetads",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:"uol",gvlid:32},{code:"adzymic",gvlid:32}],supportedMediaTypes:[f.D4,f.G_,f.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){var n,i,o=e.map(Mt),a=(0,d.I6)(e,Wt),s={};!0===l.$W.getConfig("coppa")&&(s={coppa:!0}),a&&Object.keys(a.params.user).filter((function(e){return(0,d.mK)(Rt,e)})).forEach((function(e){var t=Ot(e);if("segments"===e&&(0,r.cy)(a.params.user[e])){var n=[];a.params.user[e].forEach((function(e){(0,r.Et)(e)?n.push({id:e}):(0,r.Qd)(e)&&n.push(e)})),s[t]=n}else"segments"!==e&&(s[t]=a.params.user[e])}));var c,u=(0,d.I6)(e,Vt);u&&u.params&&u.params.app&&(c={},Object.keys(u.params.app).filter((function(e){return(0,d.mK)(jt,e)})).forEach((function(e){return c[e]=u.params.app[e]})));var p,f=(0,d.I6)(e,Gt);f&&f.params&&u.params.app&&u.params.app.id&&(p={appid:f.params.app.id});var v={},g={},m=Nt.getCookie("apn_prebid_debug")||null;if(m)try{v=JSON.parse(m)}catch(e){(0,r.vV)("AppNexus Debug Auction Cookie Error:\n\n"+e)}else{Object.keys(Bt).forEach((function(e){var t=(0,r.Ez)(e);(0,r.O8)(t)&&""!==t&&(v[Bt[e]]=t,v.enabled=!0)})),v=St({member_id:"number",debug_timeout:"number"},v);var h=(0,d.I6)(e,zt);h&&h.debug&&(v=h.debug)}v&&v.enabled&&Object.keys(v).filter((function(e){return(0,d.mK)(Pt,e)})).forEach((function(e){g[e]=v[e]}));var b=(0,d.I6)(e,Ft),y=b?parseInt(b.params.member,10):0,_=e[0].schain,A=(0,d.I6)(e,Jt),w={tags:(0,M.A)(o),user:s,sdk:{source:"pbjs",version:"8.45.0"},schain:_};A&&(w.iab_support={omidpn:"Appnexus",omidpv:"8.45.0"}),y>0&&(w.member_id=y),u&&(w.device=c),f&&(w.app=p);var I=function(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 It.apply(void 0,[wt(e),Et(e)].concat(n))}((0,r.Go)(t&&t.ortb2),(0,r.Go)(l.$W.getConfig("appnexusAuctionKeywords"))||{});if(I.length>0&&(w.keywords=I),l.$W.getConfig("adpod.brandCategoryExclusion")&&(w.brand_category_uniqueness=!0),g.enabled&&(w.debug=g,(0,r.fH)("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(g,null,4))),t&&t.gdprConsent&&(w.gdpr_consent={consent_string:t.gdprConsent.consentString,consent_required:t.gdprConsent.gdprApplies},t.gdprConsent.addtlConsent&&-1!==t.gdprConsent.addtlConsent.indexOf("~"))){var E=t.gdprConsent.addtlConsent,O=E.substring(E.indexOf("~")+1);w.gdpr_consent.addtl_consent=O.split(".").map((function(e){return parseInt(e,10)}))}if(t&&t.uspConsent&&(w.us_privacy=t.uspConsent),null!=t&&t.gppConsent?w.privacy={gpp:t.gppConsent.gppString,gpp_sid:t.gppConsent.applicableSections}:null!=t&&null!==(n=t.ortb2)&&void 0!==n&&null!==(n=n.regs)&&void 0!==n&&n.gpp&&(w.privacy={gpp:t.ortb2.regs.gpp,gpp_sid:t.ortb2.regs.gpp_sid}),t&&t.refererInfo){var x={rd_ref:encodeURIComponent(t.refererInfo.topmostLocation),rd_top:t.refererInfo.reachedTop,rd_ifs:t.refererInfo.numIframes,rd_stk:t.refererInfo.stack.map((function(e){return encodeURIComponent(e)})).join(",")},S=t.refererInfo.canonicalUrl;(0,r.O8)(S)&&""!==S&&(x.rd_can=S),w.referrer_detection=x}if((0,d.I6)(e,Ht)&&e.filter(Ht).forEach((function(e){var t=function(e,t){var n=t.mediaTypes.video,r=n.durationRangeSec,i=n.requireExactDuration,o=function(e){var t=e.adPodDurationSec,n=e.durationRangeSec,r=e.requireExactDuration,i=Math.min.apply(Math,(0,M.A)(n)),o=Math.floor(t/i);return r?Math.max(o,n.length):o}(t.mediaTypes.video),a=Math.max.apply(Math,(0,M.A)(r)),s=e.filter((function(e){return e.uuid===t.bidId})),c=xt.apply(void 0,(0,M.A)(s).concat([o]));if(i){var d=Ct(c,Math.ceil(o/r.length));r.forEach((function(e,t){d[t].map((function(t){Kt(t,"minduration",e),Kt(t,"maxduration",e)}))}))}else c.map((function(e){return Kt(e,"maxduration",a)}));return c}(o,e),n=w.tags.filter((function(t){return t.uuid!==e.bidId}));w.tags=[].concat((0,M.A)(n),(0,M.A)(t))})),e[0].userId){var C=[];e[0].userIdAsEids.forEach((function(e){!e||!e.uids||e.uids.length<1||e.uids.forEach((function(t){var n={source:e.source,id:t.id};"adserver.org"==e.source?n.rti_partner="TDID":"uidapi.com"==e.source&&(n.rti_partner="UID2"),C.push(n)}))})),C.length&&(w.eids=C)}if(null!=t&&null!==(i=t.ortb2)&&void 0!==i&&null!==(i=i.regs)&&void 0!==i&&null!==(i=i.ext)&&void 0!==i&&i.dsa){var T=t.ortb2.regs.ext.dsa,k={};if(["dsarequired","pubrender","datatopub"].forEach((function(e){(0,r.Et)(T[e])&&(k[e]=T[e])})),(0,r.cy)(T.transparency)&&T.transparency.every((function(e){return(0,r.Qd)(e)}))){var D=[];T.transparency.forEach((function(e){(0,r.O8)(e.domain)&&""!=e.domain&&(0,r.cy)(e.dsaparams)&&e.dsaparams.every((function(e){return(0,r.Et)(e)}))&&D.push(e)})),D.length>0&&(k.transparency=D)}(0,r.Im)(k)||(w.dsa=k)}o[0].publisher_id&&(w.publisher_id=o[0].publisher_id);var R=function(e,t){var n=[],i={withCredentials:!0},o="https://ib.adnxs.com/ut/v3/prebid";if((0,lt.C)(null==t?void 0:t.gdprConsent)||(o="https://ib.adnxs-simple.com/ut/v3/prebid"),"TRUE"!==(0,r.Ez)("apn_test").toUpperCase()&&!0!==l.$W.getConfig("apn_test")||(i.customHeaders={"X-Is-Test":1}),e.tags.length>15){var a=(0,r.Go)(e);Ct(e.tags,15).forEach((function(e){a.tags=e;var r=JSON.stringify(a);n.push({method:"POST",url:o,data:r,bidderRequest:t,options:i})}))}else{var s=JSON.stringify(e);n={method:"POST",url:o,data:s,bidderRequest:t,options:i}}return n}(w,t);return R},interpretResponse:function(e,t){var n=this,o=t.bidderRequest;e=e.body;var a=[];if(!e||e.error){var s="in response for ".concat(o.bidderCode," adapter");return e&&e.error&&(s+=": ".concat(e.error)),(0,r.vV)(s),a}if(e.tags&&e.tags.forEach((function(e){var t,s=(t=e)&&t.ads&&t.ads.length&&(0,d.I6)(t.ads,(function(e){return e.rtb}));if(s&&(!0===L.u.get(o.bidderCode,"allowZeroCpmBids")?s.cpm>=0:s.cpm>0)&&(0,d.mK)(n.supportedMediaTypes,s.ad_type)){var c=function(e,t,n){var o=(0,r.D4)(e.uuid,[n]),a={adId:(0,r.s0)(),requestId:e.uuid,cpm:t.cpm,creativeId:t.creative_id,dealId:t.deal_id,currency:"USD",netRevenue:!0,ttl:300,adUnitCode:o.adUnitCode,appnexus:{buyerMemberId:t.buyer_member_id,dealPriority:t.deal_priority,dealCode:t.deal_code}};if(t.adomain&&(a.meta=Object.assign({},a.meta,{advertiserDomains:[t.adomain]})),t.advertiser_id&&(a.meta=Object.assign({},a.meta,{advertiserId:t.advertiser_id})),t.dsa&&(a.meta=Object.assign({},a.meta,{dsa:t.dsa})),t.buyer_member_id&&(a.meta=Object.assign({},a.meta,{dchain:function(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}(t)})),t.brand_id&&(a.meta=Object.assign({},a.meta,{brandId:t.brand_id})),t.rtb.video)switch(Object.assign(a,{width:t.rtb.video.player_width,height:t.rtb.video.player_height,vastImpUrl:t.notify_url,ttl:3600}),(0,i.A)(o,"mediaTypes.video.context")){case f.LM:var s=ft[t.brand_category_id]?ft[t.brand_category_id]:null;a.meta=Object.assign({},a.meta,{primaryCatId:s});var c=t.deal_priority;a.video={context:f.LM,durationSeconds:Math.floor(t.rtb.video.duration_ms/1e3),dealTier:c},a.vastUrl=t.rtb.video.asset_url;break;case We.H6:if(a.adResponse=e,a.adResponse.ad=a.adResponse.ads[0],a.adResponse.ad.video=a.adResponse.ad.rtb.video,a.vastXml=t.rtb.video.content,t.renderer_url){var u=(0,d.I6)(n.bids,(function(t){return t.bidId===e.uuid})),l=(0,i.A)(u,"mediaTypes.video.renderer.options");l||(l=(0,i.A)(u,"renderer.options")),a.renderer=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=p.A4.install({id:t.renderer_id,url:t.renderer_url,config:n,loaded:!1,adUnitCode:e});try{i.setRender($t)}catch(e){(0,r.JE)("Prebid Error calling setRender on renderer",e)}return i.setEventHandlers({impression:function(){return(0,r.OG)("AppNexus outstream video impression event")},loaded:function(){return(0,r.OG)("AppNexus outstream video loaded event")},ended:function(){(0,r.OG)("AppNexus outstream renderer video event"),document.querySelector("#".concat(e)).style.display="none"}}),i}(a.adUnitCode,t,l)}break;case We.mn:a.vastUrl=t.notify_url+"&redir="+encodeURIComponent(t.rtb.video.asset_url)}else{Object.assign(a,{width:t.rtb.banner.width,height:t.rtb.banner.height,ad:t.rtb.banner.content});try{if(t.rtb.trackers)for(var v=0;v<t.rtb.trackers[0].impression_urls.length;v++){var g=t.rtb.trackers[0].impression_urls[v],m=(0,r.Tz)(g);a.ad+=m}}catch(e){(0,r.vV)("Error appending tracking pixel",e)}}return a}(e,s,o);c.mediaType=function(e){var t=e.ad_type;return t===f.G_?f.G_:t===f.s6?f.s6:f.D4}(s),a.push(c)}})),e.debug&&e.debug.debug_info){var c="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;c=c.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,r.OG)("https://console.appnexus.com/docs/understanding-the-debug-auction"),(0,r.OG)(c)}return a},getUserSyncs:function(e,t,n,r,i){if(e.iframeEnabled&&(0,lt.C)(n))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}]},transformBidParams:function(e,t,n,o){var a=_t;if(!0===t){var s=null,c=l.$W.getConfig("s2sConfig");(0,r.Qd)(c)?s=(0,i.A)(c,"endpoint.p1Consent"):(0,r.cy)(c)&&c.forEach((function(e){(0,d.mK)(e.bidders,n.bids[0].bidder)&&(s=(0,i.A)(e,"endpoint.p1Consent"))})),s&&s.match("/openrtb2/prebid")&&(a=Xt)}return e=St({member:"string",invCode:"string",placementId:"number",keywords:a,publisherId:"number"},e),t&&(Object.keys(e).forEach((function(t){var n=Ot(t);n!==t&&(e[n]=e[t],delete e[t])})),e.use_pmt_rule="boolean"==typeof e.use_payment_rule&&e.use_payment_rule,e.use_payment_rule&&delete e.use_payment_rule),e}};function Mt(e){var t,n={};Object.keys(e.params).forEach((function(t){var n=Ot(t);n!==t&&(e.params[n]=e.params[t],delete e.params[t])})),n.sizes=Lt(e.sizes),n.primary_size=n.sizes[0],n.ad_types=[],n.uuid=e.bidId,e.params.placement_id?n.id=parseInt(e.params.placement_id,10):n.code=e.params.inv_code,n.allow_smaller_sizes=e.params.allow_smaller_sizes||!1,n.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,n.prebid=!0,n.disable_psa=!0;var o=function(e){if(!(0,r.fp)(e.getFloor))return e.params.reserve?e.params.reserve:null;var t=e.getFloor({currency:"USD",mediaType:"*",size:"*"});return(0,r.Qd)(t)&&!isNaN(t.floor)&&"USD"===t.currency?t.floor:null}(e);if(o&&(n.reserve=o),e.params.position)n.position={above:1,below:2}[e.params.position]||0;else{var a=(0,i.A)(e,"mediaTypes.banner.pos")||(0,i.A)(e,"mediaTypes.video.pos");0!==a&&1!==a&&3!==a||(n.position=3===a?2:a)}e.params.traffic_source_code&&(n.traffic_source_code=e.params.traffic_source_code),e.params.private_sizes&&(n.private_sizes=Lt(e.params.private_sizes)),e.params.supply_type&&(n.supply_type=e.params.supply_type),e.params.pub_click&&(n.pubclick=e.params.pub_click),e.params.ext_inv_code&&(n.ext_inv_code=e.params.ext_inv_code),e.params.publisher_id&&(n.publisher_id=parseInt(e.params.publisher_id,10)),e.params.external_imp_id&&(n.external_imp_id=e.params.external_imp_id);var s,c=It((s=(0,i.A)(e,"ortb2Imp.ext.data.keywords"),(0,r.O8)(s)&&""!==s?At(s.split(/\s*(?:,)\s*/)):{}),null===(t=e.params)||void 0===t?void 0:t.keywords);c.length>0&&(n.keywords=c);var u=(0,i.A)(e,"ortb2Imp.ext.gpid")||(0,i.A)(e,"ortb2Imp.ext.data.pbadslot");u&&(n.gpid=u);var l=(0,i.A)(e,"mediaTypes.".concat(f.G_)),p=(0,i.A)(e,"mediaTypes.video.context");return n.hb_source=l&&"adpod"===p?7:1,(e.mediaType===f.G_||l)&&n.ad_types.push(f.G_),(e.mediaType===f.G_||l&&"outstream"!==p)&&(n.require_asset_url=!0),e.params.video&&(n.video={},Object.keys(e.params.video).filter((function(e){return(0,d.mK)(kt,e)})).forEach((function(t){switch(t){case"context":case"playback_method":var i=e.params.video[t];i=(0,r.cy)(i)?i[0]:i,n.video[t]=Ut[t][i];break;case"frameworks":break;default:n.video[t]=e.params.video[t]}})),e.params.video.frameworks&&(0,r.cy)(e.params.video.frameworks)&&(n.video_frameworks=e.params.video.frameworks)),l&&(n.video=n.video||{},Object.keys(l).filter((function(e){return(0,d.mK)(Dt,e)})).forEach((function(e){switch(e){case"minduration":case"maxduration":"number"!=typeof n.video[e]&&(n.video[e]=l[e]);break;case"skip":"boolean"!=typeof n.video.skippable&&(n.video.skippable=1===l[e]);break;case"skipafter":"number"!=typeof n.video.skipoffset&&(n.video.skippoffset=l[e]);break;case"playbackmethod":if("number"!=typeof n.video.playback_method){var t=l[e];(t=(0,r.cy)(t)?t[0]:t)>=1&&t<=4&&(n.video.playback_method=t)}break;case"api":if(!n.video_frameworks&&(0,r.cy)(l[e])){var i=l[e].map((function(e){var t=4===e?5:5===e?4:e;if(t>=1&&t<=5)return t})).filter((function(e){return e}));n.video_frameworks=i}break;case"startdelay":case"plcmt":case"placement":if("number"!=typeof n.video.context){var o=l.plcmt,a=l.placement,s=l.startdelay,c=function(e,t){if(e)if(2===e){if(!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"}}(o,s)||function(e){if(e)return 2===e?"in-banner":3===e?"outstream":4===e?"in-feed":5===e?"intersitial":void 0}(a)||function(e){if(e)return 0===e?"pre_roll":-1===e?"mid_roll":-2===e?"post_roll":void 0}(s);n.video.context=Ut.context[c]}}}))),e.renderer&&(n.video=Object.assign({},n.video,{custom_renderer_present:!0})),e.params.frameworks&&(0,r.cy)(e.params.frameworks)&&(n.banner_frameworks=e.params.frameworks),(0,i.A)(e,"mediaTypes.".concat(f.D4))&&n.ad_types.push(f.D4),0===n.ad_types.length&&delete n.ad_types,n}function Lt(e){var t=[],n={};if((0,r.cy)(e)&&2===e.length&&!(0,r.cy)(e[0]))n.width=parseInt(e[0],10),n.height=parseInt(e[1],10),t.push(n);else if("object"===(0,dt.A)(e))for(var i=0;i<e.length;i++){var o=e[i];(n={}).width=parseInt(o[0],10),n.height=parseInt(o[1],10),t.push(n)}return t}function Wt(e){return!!e.params.user}function Ft(e){return!!parseInt(e.params.member,10)}function Vt(e){if(e.params)return!!e.params.app}function Gt(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function zt(e){return!!e.debug}function Ht(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===f.LM}function Jt(e){var t=!1,n=e.params,i=e.params.video;return n.frameworks&&(0,r.cy)(n.frameworks)&&(t=(0,d.mK)(e.params.frameworks,6)),!t&&i&&i.frameworks&&(0,r.cy)(i.frameworks)&&(t=(0,d.mK)(e.params.video.frameworks,6)),t}function Kt(e,t,n){(0,r.Im)(e.video)&&(e.video={}),e.video[t]=n}function $t(e,t){!function(e){try{var t=document.getElementById(e).querySelectorAll("div[id^='google_ads']");t[0]&&t[0].style.setProperty("display","none")}catch(e){}}(e.adUnitCode),function(e){try{var 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((function(){((null==t?void 0: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()},Qt.bind(null,e))}))}function Qt(e,t,n){e.renderer.handleVideoEvent({id:t,eventName:n})}function Xt(e){var t="";return Object.keys(e).forEach((function(n){(0,r.O8)(e[n])?""!==e[n]?t+="".concat(n,"=").concat(e[n],","):t+="".concat(n,","):(0,r.cy)(e[n])&&(""===e[n][0]?t+="".concat(n,","):e[n].forEach((function(e){t+="".concat(n,"=").concat(e,",")})))})),t=t.substring(0,t.length-1)}function Yt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zt(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Yt(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,ut.a$)(qt),(0,n.E)("appnexusBidAdapter");var en="gumgum",tn=(0,ve.vM)({bidderCode:en}),nn={t:0,rq:8,pbv:"8.45.0"},rn=[f.D4,f.G_],on=["dac.co.jp","audigent.com","id5-sync.com","liveramp.com","intentiq.com","liveintent.com","crwdcntrl.net","quantcast.com","adserver.org","yahoo.com"],an={},sn=null;function cn(e){var t,n,i,o,a,s,c,d,u,l,p=function(e){return new RegExp("[?#&](".concat(e,"=(.*?))($|&)"),"i")},f={};try{n=(t=__webpack_require__.g.top).screen,i=e||""}catch(e){return(0,r.vV)(e),f}return f={vw:t.innerWidth,vh:t.innerHeight,sw:n.width,sh:n.height,pu:(d=i,["ggad","ggdeal"].reduce((function(e,t){var n=d.match(p(t));return n?(n[1]&&(e=e.replace(n[1],"")),n[3]&&(e=e.replace(n[3],"")),e):e}),d)),ce:tn.cookiesAreEnabled(),dpr:t.devicePixelRatio||1,jcsi:JSON.stringify(nn),ogu:(c=(document&&document.getElementsByTagName("head")[0]).querySelector("meta[property='og:url']"),c?c.content:null)},(s=(l=(u=window.navigator&&(window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection))&&(u.downlink||u.bandwidth))?Math.round(1024*l):null)&&(f.ns=s),(o=(i.match(p("ggad"))||[0,0,0])[2])&&(f[isNaN(o)?"eAdBuyId":"adBuyId"]=o),(a=(i.match(p("ggdeal"))||[0,0,0])[2])&&(f.ggdeal=a),f}function dn(e,t){return e.replace("AD_JSON",window.btoa(JSON.stringify(t)))}function un(t){var n=0,r=0,i=0;return t.forEach((function(t){var o=(0,e.A)(t,2),a=o[0],s=o[1],c=a>s?a:s;(c>i||c===i&&a>=n&&s>=r)&&(i=c,n=a,r=s)})),[n,r]}var ln={code:en,gvlid:61,aliases:["gg"],isBidRequestValid:function(e){var t=e.params,n=e.adUnitCode,i=t.inScreen||t.inScreenPubID||t.inSlot||t.ICV||t.video||t.inVideo||t.slot||t.native||t.zone||t.pubID;if(an[i])return(0,r.JE)("[GumGum] Please check the implementation for ".concat(i," for the placement ").concat(n)),!1;switch(!0){case!!t.zone:case!!t.pubId:case!!t.inScreen:case!!t.inScreenPubID:case!!t.inSlot:case!!t.ICV:case!!t.video:case!!t.inVideo:case!!t.videoPubID:break;default:return(0,r.JE)("[GumGum] No product selected for the placement ".concat(n,", please check your implementation.")),!1}return!(t.bidfloor&&("number"!=typeof t.bidfloor||!isFinite(t.bidfloor))&&((0,r.JE)("[GumGum] bidfloor must be a Number"),1))},buildRequests:function(t,n){var o=[],a=n&&n.gdprConsent,s=n&&n.uspConsent,c=n&&n.gppConsent,d=n&&n.timeout,u=!0===l.$W.getConfig("coppa")?1:0,p=n&&n.refererInfo&&n.refererInfo.page;return(0,r.bu)(t,(function(t){var l,f,v=t.bidId,g=t.mediaTypes,m=void 0===g?{}:g,h=t.params,b=void 0===h?{}:h,y=t.schain,_=t.userId,A=void 0===_?{}:_,w=t.ortb2Imp,I=t.adUnitCode,E=void 0===I?"":I,O=function(e,t,n){var r=Object.keys(e)[0]||"banner",i={floor:0,currency:"USD"};if("function"==typeof n.getFloor){var o=n.getFloor({mediaType:r,size:"*"}),a=o.currency,s=o.floor;s&&(i.floor=s),a&&(i.currency=a),t&&s&&"USD"===a&&(i.floor=Math.max(t,parseFloat(s)))}else t&&(i.floor=t);return i}(m,b.bidfloor,t),x=O.currency,S=O.floor,C=function(e){var t=["uid","eid","lipbid","envelope"];return Object.keys(e).reduce((function(n,r){var i=e[r];switch((0,dt.A)(i)){case"string":n[r]=i;break;case"object":var o=t.filter((function(e){return i.hasOwnProperty(e)}));o.length&&(n[r]=i[o[0]])}return n}),{})}(A),T=(0,i.A)(w,"ext.data.pbadslot")||(0,i.A)(w,"ext.data.adserver.adslot"),k=[1,1],D={displaymanager:"Prebid.js - gumgum",displaymanagerver:"8.45.0"},R=new Date,j=R.getTime(),P=R.getTimezoneOffset();if(D.lt=j,D.to=P,A&&A.pubProvidedId){var B=function(e,t){var n=JSON.stringify(e);if(n.length<=1800)return n;var r=e.slice(0,Math.floor(e.length*(1800/n.length)));return JSON.stringify(r)}(A.pubProvidedId.filter((function(e){return on.includes(e.source)})));D.pubProvidedId=B}for(var U in A&&A.id5id&&A.id5id.uid&&A.id5id.ext&&(D.id5Id=A.id5id.uid||null,D.id5IdLinkType=A.id5id.ext.linkType||null),E&&(D.aun=E),C)D[U]=C[U];if(m.banner?k=m.banner.sizes:m.video&&(k=m.video.playerSize,D=function(t){var n=t.minduration,i=t.maxduration,o=t.linearity,a=t.startdelay,s=t.placement,c=t.plcmt,d=t.protocols,u=void 0===d?[]:d,l=t.playerSize,p=void 0===l?[]:l,f=(0,r.kK)(p),v=f[0]&&f[0].split("x"),g=(0,e.A)(v,2),m=g[0],h=g[1],b="";u.length&&(b=u.join(","));var y={mind:n,maxd:i,li:o,sd:a,pt:s,pr:b,viw:m,vih:h};return null!=c&&(y.vplcmt=c),y}(m.video)),T&&(D.gpid=T),sn&&(D.pv=sn),S&&(D.fp=S,D.fpc=x),b.iriscat&&"string"==typeof b.iriscat&&(D.iriscat=b.iriscat),b.irisid&&"string"==typeof b.irisid&&(D.irisid=b.irisid),b.zone||b.pubId)if(b.zone?D.t=b.zone:D.pubId=b.pubId,D.pi=2,b.slot){var N=un(k),q=(0,e.A)(N,2),M=q[0],L=q[1];D.maxw=M,D.maxh=L,D.si=b.slot,D.pi=3,D.bf=k.reduce((function(e,t){return"".concat(e).concat(e&&",").concat(t[0],"x").concat(t[1])}),"")}else b.native?(D.ni=b.native,D.pi=5):m.video?D.pi=2===m.video.linearity?6:7:b.product&&"skins"===b.product.toLowerCase()&&(D.pi=8);else D=Zt(Zt({},D),function(t,n){var r={};if(t.inScreenPubID&&(r.pubId=t.inScreenPubID,r.pi=2),t.inScreen&&(r.t=t.inScreen,r.pi=2),t.inSlot){var i=un(n),o=(0,e.A)(i,2),a=o[0],s=o[1];r.maxw=a,r.maxh=s,r.si=t.inSlot,r.pi=3,r.bf=n.reduce((function(e,t){return"".concat(e).concat(e&&",").concat(t[0],"x").concat(t[1])}),"")}return t.ICV&&(r.ni=t.ICV,r.pi=5),t.videoPubID&&(r.pubId=t.videoPubID,r.pi=7),t.video&&(r.t=t.video,r.pi=7),t.inVideo&&(r.t=t.inVideo,r.pi=6),r}(b,k));a&&(D.gdprApplies=a.gdprApplies?1:0),D.gdprApplies&&(D.gdprConsent=a.consentString),s&&(D.uspConsent=s),c?(D.gppString=n.gppConsent.gppString?n.gppConsent.gppString:"",D.gppSid=Array.isArray(n.gppConsent.applicableSections)?n.gppConsent.applicableSections.join(","):""):!c&&null!=n&&null!==(l=n.ortb2)&&void 0!==l&&null!==(l=l.regs)&&void 0!==l&&l.gpp&&(D.gppString=n.ortb2.regs.gpp,D.gppSid=Array.isArray(n.ortb2.regs.gpp_sid)?n.ortb2.regs.gpp_sid.join(","):"");var W,F,V=(0,i.A)(n,"ortb2.regs.ext.dsa");V&&(D.dsa=V),u&&(D.coppa=u),y&&y.nodes&&(D.schain=(F="".concat((W=y).ver,",").concat(W.complete),W.nodes.map((function(e){F+="!".concat(encodeURIComponent(e.asi||""),","),F+="".concat(encodeURIComponent(e.sid||""),","),F+="".concat(encodeURIComponent(e.hp||""),","),F+="".concat(encodeURIComponent(e.rid||""),","),F+="".concat(encodeURIComponent(e.name||""),","),F+="".concat(encodeURIComponent(e.domain||""))})),F)),o.push({id:v,tmax:d,tId:null==w||null===(f=w.ext)||void 0===f?void 0:f.tid,pi:D.pi,selector:b.selector,sizes:k,url:"https://g2.gumgum.com/hbid/imp",method:"GET",data:Object.assign(D,cn(p))})})),o},interpretResponse:function(t,n){var i=[],o=t.body;if(!o||o.err){var a=n.data||{},s=a.si||a.ni||a.t||a.pubId,c=o?o.err.drt:18e5;an[s]={productId:a.pi,timestamp:(new Date).getTime()},setTimeout((function(){an[s]&&delete an[s]}),c),(0,r.JE)("[GumGum] Please check the implementation for ".concat(s))}var u=Object.assign({ad:{price:0,id:0,markup:"",width:0,height:0},pag:{pvid:0},meta:{adomain:[],mediaType:""}},o),l=u.ad,p=l.price,v=l.id,g=l.markup,m=l.cur,h=l.width,b=l.height,y=l.maxw,_=l.maxh,A=u.cw,w=u.pag.pvid,I=u.jcsi,E=u.meta,O=E.adomain,x=E.mediaType,S=n.data||{},C=S.pi,T=6===C||7===C?f.G_:f.D4,k=3===C&&9===S.si,D={advertiserDomains:O||[],mediaType:x||T},R=(0,r.kK)(n.sizes);if(y&&_)R=["".concat(y,"x").concat(_)];else if(5===C&&(0,d.mK)(R,"1x1"))R=["1x1"];else if(2===C&&(0,d.mK)(R,"1x1")||3===C){var j=n.sizes&&n.sizes.reduce((function(t,n){var r=(0,e.A)(n,2),i=r[0],o=r[1];return h===i&&b===o&&t.push(n.join("x")),t}),[])||[];R=j.length?j:(0,r.kK)(n.sizes)}var P=R[0].split("x"),B=(0,e.A)(P,2),U=B[0],N=B[1];return I&&(o.jcsi=nn),sn=w,v&&i.push(Zt(Zt({ad:A?dn(A,Object.assign({},o,{bidRequest:n})):g},T===f.G_&&{ad:g,vastXml:g}),{},{mediaType:T,cpm:k?.1:p,creativeId:v,currency:m||"USD",height:N,netRevenue:!0,requestId:n.id,ttl:60,width:U,meta:D})),i},getUserSyncs:function(e,t){return t.map((function(e){return e.body&&e.body.pxs&&e.body.pxs.scr||[]})).reduce((function(e,t){return e.concat(t)}),[]).map((function(e){return{type:"f"===e.t?"iframe":"image",url:e.u}}))},supportedMediaTypes:rn};function pn(e){var t;return(0,r.II)()&&(t=(0,d.I6)(window.googletag.pubads().getSlots(),function(e){return function(t){return(0,r.sC)(t,e)}}(e))),t}function fn(e){var t=pn(e);return t?{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()}:{}}function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gn(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?vn(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mn(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?hn(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}(0,ut.a$)(ln),(0,n.E)("gumgumBidAdapter");var bn="ix",yn="roundel",_n=[f.D4,f.G_,f.s6],An=[144,144],wn={JPY:1},In={PBJS:"p",IX:"x"},En={BID_SIZE_INVALID_FORMAT:1,BID_SIZE_NOT_INCLUDED:2,PROPERTY_NOT_INCLUDED:3,SITE_ID_INVALID_VALUE:4,BID_FLOOR_INVALID_FORMAT:5,IX_FPD_EXCEEDS_MAX_SIZE:6,EXCEEDS_MAX_SIZE:7,PB_FPD_EXCEEDS_MAX_SIZE:8,VIDEO_DURATION_INVALID:9},On={SITE:["id","name","domain","cat","sectioncat","pagecat","page","ref","search","mobile","privacypolicy","publisher","content","keywords","ext"],USER:["id","buyeruid","yob","gender","keywords","customdata","geo","data","ext"]},xn={"liveramp.com":"idl","netid.de":"NETID","neustar.biz":"fabrickId","zeotap.com":"zeotapIdPlus","uidapi.com":"UID2","adserver.org":"TDID","id5-sync.com":"","crwdcntrl.net":"","epsilon.com":"","audigent.com":"","pubcid.org":"","utiq.com":"","criteo.com":"","euid.eu":"","intimatemerger.com":"","33across.com":"","liveintent.indexexchange.com":"","google.com":""},Sn=["britepoolid","lipbid","criteoId","merkleId","parrableId","connectid","tapadId","quantcastId","pubProvidedId","pairId"],Cn=["mimes","minduration","maxduration"],Tn=["mimes","minduration","maxduration","protocols","protocol","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext","playerSize","w","h","plcmt"],kn="ixdiag",Dn="".concat(bn,"_features"),Rn=!1,jn=(0,ve.vM)({bidderCode:bn}),Pn={REQUESTED_FEATURE_TOGGLES:["pbjs_enable_multiformat","pbjs_allow_all_eids"],featureToggles:{},isFeatureEnabled:function(e){return(0,i.A)(this.featureToggles,"features.".concat(e,".activated"),!1)},getFeatureToggles:function(){if(jn.localStorageIsEnabled()){var e=(0,r.$l)(jn.getDataFromLocalStorage(Dn));(0,i.A)(e,"expiry")&&e.expiry>=(new Date).getTime()?this.featureToggles=e:this.clearFeatureToggles()}},setFeatureToggles:function(e){var t=e.body,n=new Date,r=(0,i.A)(t,"ext.features");r&&(this.featureToggles={expiry:n.setHours(n.getHours()+1),features:r},jn.localStorageIsEnabled()&&jn.setDataInLocalStorage(Dn,JSON.stringify(this.featureToggles)))},clearFeatureToggles:function(){this.featureToggles={},jn.localStorageIsEnabled()&&jn.removeDataFromLocalStorage(Dn)}},Bn=0,Un="",Nn="",qn=!1;function Mn(e){var t=Ln(e,f.G_),n=(0,i.A)(e,"mediaTypes.video"),a=(0,i.A)(e,"params.video");if(zn(n,a).length)return{};t.video=a?(0,r.Go)(e.params.video):{};var s=(0,i.A)(e,"ortb2Imp.ext.tid");for(var c in s&&o(t,"ext.tid",s),function(e,t){if((0,i.A)(t,"mediaTypes.video.context")===We.H6){var n=(0,i.A)(t,"mediaTypes.video.renderer");if(n||(n=(0,i.A)(t,"renderer")),(0,i.A)(t,"schain",!1))e.displaymanager="pbjs_wrapper";else if(n&&"object"===(0,dt.A)(n)){if(void 0!==n.url){var r="";try{r=new URL(n.url).hostname}catch(e){return}r.includes("js-sec.indexww")?e.displaymanager="ix":e.displaymanager=n.url}}else e.displaymanager="ix"}}(t,e),Yn(t,e),n)-1===Tn.indexOf(c)||t.video.hasOwnProperty(c)||(t.video[c]=n[c]);if(t.video.minduration>t.video.maxduration)return(0,r.vV)("IX Bid Adapter: video minduration [".concat(t.video.minduration,"] cannot be greater than video maxduration [").concat(t.video.maxduration,"]"),{bidder:bn,code:En.VIDEO_DURATION_INVALID}),{};var d=a&&a.context||n&&n.context;if(function(e){e.video.hasOwnProperty("plcmt")&&(!(0,r.Fq)(e.video.plcmt)||e.video.plcmt<1||e.video.plcmt>4)&&((0,r.JE)("IX Bid Adapter: video.plcmt [".concat(e.video.plcmt,"] must be an integer between 1-4 inclusive")),delete e.video.plcmt)}(t),d&&!t.video.hasOwnProperty("placement")&&(d===We.mn?t.video.placement=1:d===We.H6?(0,i.A)(a,"playerConfig.floatOnScroll")?t.video.placement=5:(t.video.placement=3,qn=!0):(0,r.JE)("IX Bid Adapter: Video context '".concat(d,"' is not supported"))),!t.video.w||!t.video.h){var u=Hn((0,i.A)(t,"video.playerSize"))||Hn((0,i.A)(e,"params.size"));if(!u)return(0,r.JE)("IX Bid Adapter: Video size is missing in [mediaTypes.video]"),{};t.video.w=u[0],t.video.h=u[1]}return Wn(e,t,f.G_),t}function Ln(e,t){var n={};if(n.id=e.bidId,dr()&&(0,i.A)(e,"params.externalId")&&o(n,"ext.externalID",e.params.externalId),(0,i.A)(e,"params.".concat(t,".siteId"))&&!isNaN(Number(e.params[t].siteId)))switch(t){case f.D4:o(n,"ext.siteID",e.params.banner.siteId.toString());break;case f.G_:o(n,"ext.siteID",e.params.video.siteId.toString());break;case f.s6:o(n,"ext.siteID",e.params.native.siteId.toString())}else e.params.siteId&&o(n,"ext.siteID",e.params.siteId.toString());return!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||o(n,"ext.sid",String(e.params.id)),n}function Wn(e,t,n){var i=null,a=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(i={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),(0,r.fp)(e.getFloor)){var s="*",c="*";if(n&&(0,r.gR)(_n,n)){var d=t[n];s=n,c=[d.w,d.h]}try{a=e.getFloor({mediaType:s,size:c})}catch(e){(0,r.JE)("priceFloors module call getFloor failed, error : ",e)}}var u=!1;a?(t.bidfloor=a.floor,t.bidfloorcur=a.currency,o(t,"ext.fl",In.PBJS),u=!0):i&&(t.bidfloor=i.floor,t.bidfloorcur=i.currency,o(t,"ext.fl",In.IX),u=!0),u&&(n==f.D4?(o(t,"banner.ext.bidfloor",t.bidfloor),o(t,"banner.ext.fl",t.ext.fl)):n==f.G_?(o(t,"video.ext.bidfloor",t.bidfloor),o(t,"video.ext.fl",t.ext.fl)):(o(t,"native.ext.bidfloor",t.bidfloor),o(t,"native.ext.fl",t.ext.fl)))}function Fn(e,t,n){var o,a={},s=!(!(0,i.A)(e,"exp")||!(0,r.Fq)(e.exp)),c=(0,i.A)(e,"dealid")||(0,i.A)(e,"ext.dealid");wn.hasOwnProperty(t)?a.cpm=e.price/wn[t]:a.cpm=e.price/100,a.requestId=e.impid,c&&(a.dealId=c),a.netRevenue=!0,a.currency=t,a.creativeId=e.hasOwnProperty("crid")?e.crid:"-",2!=e.mtype||(!e.ext||e.ext.vasturl)&&e.ext?e.ext&&e.ext.vasturl&&(a.vastUrl=e.ext.vasturl):a.vastXml=e.adm;var d=null;if("string"==typeof e.adm&&"{"===e.adm[0]&&"}"===e.adm[e.adm.length-1])try{d=JSON.parse(e.adm)}catch(e){(0,r.JE)("adm looks like JSON but failed to parse: ",e)}return e.ext&&e.ext.vasturl||2==e.mtype?(a.width=n.video.w,a.height=n.video.h,a.mediaType=f.G_,a.mediaTypes=n.mediaTypes,a.ttl=s?e.exp:3600):d&&d.native?(a.native={ortb:d.native},a.width=e.w?e.w:1,a.height=e.h?e.h:1,a.mediaType=f.s6,a.ttl=s?e.exp:3600):(a.ad=e.adm,a.width=e.w,a.height=e.h,a.mediaType=f.D4,a.ttl=s?e.exp:300),a.meta={},a.meta.networkId=(0,i.A)(e,"ext.dspid"),a.meta.brandId=(0,i.A)(e,"ext.advbrandid"),a.meta.brandName=(0,i.A)(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(a.meta.advertiserDomains=e.adomain),null!==(o=e.ext)&&void 0!==o&&o.dsa&&(a.meta.dsa=e.ext.dsa),a}function Vn(e){return Array.isArray(e)&&2===e.length&&(0,r.Fq)(e[0])&&(0,r.Fq)(e[1])}function Gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(Vn(e))return e[0]===t[0]&&e[1]===t[1];for(var n=0;n<e.length;n++)if(e[n][0]===t[0]&&e[n][1]===t[1])return!0;return!1}function zn(e,t){var n=[];e||(0,r.JE)("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");var i,o=mn(Cn);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=e&&e.hasOwnProperty(a),c=t&&t.hasOwnProperty(a);s||c||n.push("IX Bid Adapter: ".concat(a," is not included in either the adunit or params level"))}}catch(e){o.e(e)}finally{o.f()}var d=e&&e.hasOwnProperty("protocol"),u=e&&e.hasOwnProperty("protocols"),l=t&&t.hasOwnProperty("protocol"),p=t&&t.hasOwnProperty("protocols");return d||u||l||p||n.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),n}function Hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return Vn(e)?e:!!Vn(e[0])&&e[0]}function Jn(e,t,n){if(e)return gn(gn({},(0,d.I6)(n,(function(t){return t.bidId===e}))),(0,d.I6)(t,(function(t){return t.id===e})))}function Kn(e,t,n,a){var s="https://htlb.casalemedia.com/openrtb/pbjs",c=function(e){var t=[],n={};if((0,r.cy)(e)){var o,a=mn(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=xn.hasOwnProperty(s.source),d=Pn.isFeatureEnabled("pbjs_allow_all_eids"),u=(0,i.A)(s,"uids.0");if((c||d)&&u&&(n[s.source]=!0,c&&""!==xn[s.source]&&(s.uids[0].ext={rtiPartner:xn[s.source]}),delete s.uids[0].atype,t.push(s),t.length>=50))break}}catch(e){a.e(e)}finally{a.f()}}return{toSend:t,seenSources:n}}((0,i.A)(e,"0.userIdAsEids")),d=c.toSend;if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo&&function(e,t){var n=window.headertag.getIdentityInfo();if(n&&"object"===(0,dt.A)(n))for(var r in n){if(e.length>=50)return;if(n.hasOwnProperty(r)){var i=n[r];!i.responsePending&&i.data&&"object"===(0,dt.A)(i.data)&&Object.keys(i.data).length&&!t.seenSources[i.data.source]&&e.push(i.data)}}}(d,c),t&&t.bidderCode===yn&&!c.seenSources["liveramp.com"])return[];var u=[],p=function(e){var t={};return t.id=e[0].bidderRequestId.toString(),t.site={},t.ext={},t.ext.source="prebid",t.ext.ixdiag={},t.ext.ixdiag.ls=jn.localStorageIsEnabled(),t.imp=[],t.at=1,t}(e);p=function(e,t){return t.length>0&&(e.ext.features={},t.forEach((function(t){e.ext.features[t]={activated:Pn.isFeatureEnabled(t)}}))),e}(p,Pn.REQUESTED_FEATURE_TOGGLES);var f=function(e,t){var n,r,o,a=e.map((function(e){return e.adUnitCode})).filter((function(e,t,n){return n.indexOf(e)===t})),s=(0,i.A)(e,"0.userIdAsEids",[]),c={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"8.45.0",userIds:(r=e[0],o=r.userId||{},Sn.filter((function(e){return o[e]}))),url:window.location.href.split("?")[0],vpd:qn,ae:t,eidLength:s.length},d=mn(a);try{var u=function(){var t=n.value,r=e.filter((function(e){return e.adUnitCode===t}))[0];(0,i.A)(r,"mediaTypes")&&(Object.keys(r.mediaTypes).length>1&&c.mfu++,(0,i.A)(r,"mediaTypes.native")&&c.nu++,(0,i.A)(r,"mediaTypes.banner")&&c.bu++,"outstream"===(0,i.A)(r,"mediaTypes.video.context")&&(c.ou++,cr(r)&&(c.ren=!0)),"instream"===(0,i.A)(r,"mediaTypes.video.context")&&c.iu++,c.allu++)};for(d.s();!(n=d.n()).done;)u()}catch(e){d.e(e)}finally{d.f()}return c}(e,(0,i.A)(t,"fledgeEnabled"));for(var v in f)p.ext.ixdiag[v]=f[v];p=function(e,t,n,o,a){var s,c=(0,i.A)(t,"timeout");c&&(e.ext.ixdiag.tmax=c),l.$W.getConfig("userSync")&&(e.ext.ixdiag.syncsPerBidder=l.$W.getConfig("userSync").syncsPerBidder);var d=function(){if(jn.localStorageIsEnabled()){var e,t={};try{e=JSON.parse(jn.getDataFromLocalStorage(kn)||"{}")}catch(e){return(0,r.vV)("ix can not read ixdiag from localStorage."),null}return Object.keys(e).forEach((function(n){Object.keys(e[n]).forEach((function(r){"number"==typeof e[n][r]&&(t[r]=t[r]?t[r]+e[n][r]:e[n][r])}))})),t}}();return(0,r.Im)(d)||(e.ext.ixdiag.err=d),e.ext.ixdiag.imps=Object.keys(n).length,e.source={tid:null==t||null===(s=t.ortb2)||void 0===s||null===(s=s.source)||void 0===s?void 0:s.tid},o[0].schain&&(e.source.ext={},e.source.ext.schain=o[0].schain),a.length>0&&(e.user={},e.user.eids=a),document.referrer&&""!==document.referrer&&(e.site.ref=document.referrer),e}(p,t,n,e,d),p=function(e,t){if(t){t.gdprConsent&&((Un=t.gdprConsent).hasOwnProperty("gdprApplies")&&(e.regs={ext:{gdpr:Un.gdprApplies?1:0}}),Un.hasOwnProperty("consentString")&&(e.user=e.user||{},e.user.ext={consent:Un.consentString||""},Un.hasOwnProperty("addtlConsent")&&Un.addtlConsent&&(e.user.ext.consented_providers_settings={addtl_consent:Un.addtlConsent}))),t.uspConsent&&(o(e,"regs.ext.us_privacy",t.uspConsent),Nn=t.uspConsent);var n=(0,i.A)(t,"refererInfo.page");n&&(e.site.page=n),t.gppConsent&&(o(e,"regs.gpp",t.gppConsent.gppString),o(e,"regs.gpp_sid",t.gppConsent.applicableSections))}return l.$W.getConfig("coppa")&&o(e,"regs.coppa",1),e}(p,t);var g={};e[0].params.siteId&&(Bn=e[0].params.siteId,g.s=Bn);for(var m=Object.keys(n),h=!1,b=0;b<m.length&&!(u.length>=4);b++){p=$n(n,m,p,b);var y=(0,i.A)(t,"ortb2")||{},_=gn({},y.site||y.context);_.page=Qn(t);var A=gn({},y.user);(0,r.Im)(y)||h||((p=Xn(t,p,y,_,A)).site=(0,r.D9)({},p.site,_),p.user=(0,r.D9)({},p.user,A),h=!0),p=Zn(n,p,m,b);var w=b===m.length-1;if(p=fr(p=pr(p=gr(p))),w){var I="".concat(s,"?");0!==Bn&&(I+="s=".concat(Bn)),dr()&&(I+=0!==Bn?"&":"",I+="p=".concat(l.$W.getConfig("exchangeId"))),u.push({method:"POST",url:I,data:(0,r.Go)(p),option:{contentType:"text/plain"},validBidRequests:e}),p.imp=[],h=!1}}return u}function $n(e,t,n,a){var s=e[t[a]],c=s.missingImps,d=void 0===c?[]:c,u=s.ixImps,l={ixImps:void 0===u?[]:u,missingBannerImpressions:d},p=Object.keys(l).map((function(e){return l[e]})).filter((function(e){return Array.isArray(e)})).reduce((function(e,t){return e.concat.apply(e,(0,M.A)(t))}),[]),v=e[t[a]].gpid,g=e[t[a]].dfp_ad_unit_code,m=e[t[a]].tid,h=e[t[a]].sid,b=e[t[a]].ae,y=p.filter((function(e){return f.D4 in e})),_=p.filter((function(e){return!(f.D4 in e)}));if(y.length>0){var A=y.reduce((function(e,t){return e[t.adunitCode]||(e[t.adunitCode]=[]),e[t.adunitCode].push(t),e}),{});for(var w in A){for(var I=A[w],E=I[0],O=E.id,x=E.banner.topframe,S=(0,i.A)(I[0],"ext.externalID"),C={id:O,banner:{topframe:x,format:I.map((function(e){var t=e.banner;return{w:t.w,h:t.h,ext:e.ext}}))}},T=0;T<C.banner.format.length;T++)null!=C.banner.format[T].ext&&(null!=C.banner.format[T].ext.sid&&delete C.banner.format[T].ext.sid,null!=C.banner.format[T].ext.externalID&&delete C.banner.format[T].ext.externalID),"bidfloor"in I[T]&&(C.banner.format[T].ext.bidfloor=I[T].bidfloor),"{}"===JSON.stringify(C.banner.format[T].ext)&&delete C.banner.format[T].ext;var k=e[t[a]].pos;(0,r.Fq)(k)&&(C.banner.pos=k),(g||v||m||h||b||S)&&(C.ext={},C.ext.dfp_ad_unit_code=g,C.ext.gpid=v,C.ext.tid=m,C.ext.sid=h,C.ext.externalID=S,1==b&&(C.ext.ae=1)),"bidfloor"in I[0]&&(C.bidfloor=I[0].bidfloor),"bidfloorcur"in I[0]&&(C.bidfloorcur=I[0].bidfloorcur);var D=e[t[a]].adUnitFPD;D&&o(C,"ext.data",D),n.imp.push(C)}}return _.length>0&&_.forEach((function(e){if(v&&o(e,"ext.gpid",v),n.imp.length>0){var t=!1;n.imp.forEach((function(r,a){e.id===r.id&&f.G_ in e?(r.video=e.video,r.video.ext=Object.assign({},e.video.ext,e.ext),(0,i.A)(r,"video.ext.bidfloor",!1)&&(0,i.A)(r,"bidfloor",!1)&&r.video.ext.bidfloor<r.bidfloor&&(r.bidfloor=r.video.ext.bidfloor),!(0,i.A)(r,"ext.siteID",!1)&&(0,i.A)(e,"video.ext.siteID")&&(o(r,"ext.siteID",e.video.ext.siteID),o(n,"ext.ixdiag.usid",!0)),t=!0):e.id===r.id&&f.s6 in e&&(r.native=e.native,r.native.ext=Object.assign({},e.native.ext,e.ext),(0,i.A)(r,"native.ext.bidfloor",!1)&&(0,i.A)(r,"bidfloor",!1)&&r.native.ext.bidfloor<r.bidfloor&&(r.bidfloor=r.native.ext.bidfloor),!(0,i.A)(r,"ext.siteID",!1)&&(0,i.A)(e,"native.ext.siteID",!1)&&(o(r,"ext.siteID",e.native.ext.siteID),o(n,"ext.ixdiag.usid",!0)),t=!0)})),t||n.imp.push(e)}else n.imp.push(e)})),n}function Qn(t){var n,o=t&&t.bidderCode||"ix",a=l.$W.getConfig(o);return n=(0,i.A)(t,"ortb2.site.page")?t.ortb2.site.page:(0,i.A)(t,"refererInfo.page"),a&&"object"===(0,dt.A)(a.firstPartyData)?function(t,n,o){var a;try{a=new URL(n)}catch(e){(0,r.JE)("IX Bid Adapter: Invalid URL set in ortb2.site.page: ".concat(n,". Using referer URL instead.")),a=new URL((0,i.A)(t,"refererInfo.page"))}for(var s=new URLSearchParams(a.search),c=0,d=Object.entries(o);c<d.length;c++){var u=(0,e.A)(d[c],2),l=u[0],p=u[1];s.has(l)||s.append(l,p)}return a.search=s.toString(),a.toString()}(t,n,a.firstPartyData):n}function Xn(e,t,n,i,a){if(t.ext.ixdiag.fpd=!0,Object.keys(i).forEach((function(e){-1===On.SITE.indexOf(e)&&delete i[e]})),Object.keys(a).forEach((function(e){-1===On.USER.indexOf(e)&&delete a[e]})),n.device){var s=gn({},n.device.sua);(0,r.Im)(s)||o(t,"device.sua",s)}var c;if(n.hasOwnProperty("regs")&&!e.gppConsent&&(n.regs.hasOwnProperty("gpp")&&"string"==typeof n.regs.gpp&&o(t,"regs.gpp",n.regs.gpp),n.regs.hasOwnProperty("gpp_sid")&&Array.isArray(n.regs.gpp_sid)&&o(t,"regs.gpp_sid",n.regs.gpp_sid),null!==(c=n.regs.ext)&&void 0!==c&&c.dsa)){var d=n.regs.ext.dsa,u={};if(["dsarequired","pubrender","datatopub"].forEach((function(e){(0,r.Et)(d[e])&&(u[e]=d[e])})),(0,r.cy)(d.transparency)){var l=[];d.transparency.forEach((function(e){(0,r.Qd)(e)&&(0,r.O8)(e.domain)&&""!=e.domain&&(0,r.cy)(e.dsaparams)&&e.dsaparams.every((function(e){return(0,r.Et)(e)}))&&l.push(e)})),l.length>0&&(u.transparency=l)}(0,r.Im)(u)||o(t,"regs.ext.dsa",u)}return t}function Yn(e,t){var n=(0,i.A)(t,"ortb2Imp.ext.data");n&&o(e,"ext.data",n)}function Zn(e,t,n,r,i,o){var a=e[n[r]].pbadslot,s=e[n[r]].tagId,c=e[n[r]].adUnitCode,d=e[n[r]].divId;return(a||s||c||d)&&(t.ext.ixdiag.pbadslot=a,t.ext.ixdiag.tagid=s,t.ext.ixdiag.adunitcode=c,t.ext.ixdiag.divId=d),t}function er(e,t){if(t)for(var n=0;n<e.length;n++){var r=e[n];if(t[0]===r[0]&&t[1]===r[1]){e.splice(n,1);break}}}function tr(e,t){var n=function(e){var t=Ln(e,f.s6),n=e.nativeOrtbRequest;n.eventtrackers=[{event:1,methods:[1,2]}],n.privacy=1,t.native={request:JSON.stringify(n),ver:"1.2"};var r=(0,i.A)(e,"ortb2Imp.ext.tid");return r&&o(t,"ext.tid",r),Yn(t,e),Wn(e,t,f.s6),t}(e);if(0!=Object.keys(n).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(n),t[e.adUnitCode].gpid=(0,i.A)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,i.A)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,i.A)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,i.A)(e,"params.tagId");var r=e.adUnitCode,a=document.getElementById(r)?r:fn(r).divId;t[e.adUnitCode].adUnitCode=r,t[e.adUnitCode].divId=a}}function nr(e,t){var n=Mn(e);if(0!=Object.keys(n).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(n),t[e.adUnitCode].gpid=(0,i.A)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,i.A)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,i.A)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,i.A)(e,"params.tagId");var r=e.adUnitCode,o=document.getElementById(r)?r:fn(r).divId;t[e.adUnitCode].adUnitCode=r,t[e.adUnitCode].divId=o}}function rr(e,t,n,o){var a=function(e){var t=Ln(e,f.D4);t.banner={},t.adunitCode=e.adUnitCode;var n=(0,i.A)(e,"params.size");return n&&(t.banner.w=n[0],t.banner.h=n[1]),t.banner.topframe=(0,r.al)()?0:1,Wn(e,t,f.D4),t}(e),s=Gn((0,i.A)(e,"mediaTypes.banner.sizes"),(0,i.A)(e,"params.size"));if(n.hasOwnProperty(e.adUnitCode)||(n[e.adUnitCode]={}),n[e.adUnitCode].gpid=(0,i.A)(e,"ortb2Imp.ext.gpid"),n[e.adUnitCode].dfp_ad_unit_code=(0,i.A)(e,"ortb2Imp.ext.data.adserver.adslot"),n[e.adUnitCode].tid=(0,i.A)(e,"ortb2Imp.ext.tid"),n[e.adUnitCode].pbadslot=(0,i.A)(e,"ortb2Imp.ext.data.pbadslot"),n[e.adUnitCode].tagId=(0,i.A)(e,"params.tagId"),n[e.adUnitCode].pos=(0,i.A)(e,"mediaTypes.banner.pos"),(0,i.A)(o,"fledgeEnabled")){var c=(0,i.A)(e,"ortb2Imp.ext.ae");c?(0,r.Fq)(c)?n[e.adUnitCode].ae=c:(0,r.JE)("error setting auction environment flag - must be an integer"):1==(0,i.A)(o,"defaultForSlots")&&(n[e.adUnitCode].ae=1)}var d=(0,i.A)(e,"ortb2Imp.ext.data");d&&(n[e.adUnitCode].adUnitFPD=d);var u=(0,i.A)(e,"params.id");!u||"string"!=typeof u&&"number"!=typeof u||(n[e.adUnitCode].sid=String(u));var l=e.adUnitCode,p=document.getElementById(l)?l:fn(l).divId;n[e.adUnitCode].adUnitCode=l,n[e.adUnitCode].divId=p,s&&(n[e.adUnitCode].hasOwnProperty("ixImps")||(n[e.adUnitCode].ixImps=[]),n[e.adUnitCode].ixImps.push(a)),function(e,t,n){if(t.hasOwnProperty(e.adUnitCode)){var o=[];t[e.adUnitCode].hasOwnProperty("missingSizes")&&(o=t[e.adUnitCode].missingSizes),er(o,e.params.size),t[e.adUnitCode].missingSizes=o}else if((0,i.A)(e,"mediaTypes.banner.sizes")){var a=(0,r.Go)(e.mediaTypes.banner.sizes);er(a,e.params.size);var s={missingSizes:a,impression:n};t[e.adUnitCode]=s}}(e,t,a)}function ir(e,t,n){var i=(0,r.Go)(t);return i.banner.w=n[0],i.banner.h=n[1],Wn(e,i,f.D4),i}function or(e){"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===bn&&function(e){if(jn.localStorageIsEnabled()){var t;try{t=JSON.parse(jn.getDataFromLocalStorage(kn)||"{}")}catch(e){(0,r.JE)("ix can not read ixdiag from localStorage.")}var n=new Date;if(Object.keys(t).map((function(e){var r=new Date(e);r.setDate(r.getDate()+7)-n<0&&delete t[e]})),"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===bn){var i=n.toISOString().slice(0,10),o=e.arguments[1].code;o&&(t[i]=t[i]||{},Number(t[i][o])||(t[i][o]=0),t[i][o]++)}jn.setDataInLocalStorage(kn,JSON.stringify(t))}}(e)}function ar(e){e.renderer.push((function(){var t=e.adUnitCode,n=document.getElementById(t)?t:fn(t).divId;n?window.createIXPlayer(n,e):(0,r.JE)("IX Bid Adapter: adUnitCode: ".concat(n," not found on page."))}))}function sr(e,t){var n=p.A4.install({id:e,url:t,loaded:!1});try{n.setRender(ar)}catch(e){return(0,r.JE)("Prebid Error calling setRender on renderer",e),null}return t?n:((0,r.JE)("Outstream renderer URL not found"),null)}function cr(e){if("outstream"!==(0,i.A)(e,"mediaTypes.video.context"))return!1;var t=(0,i.A)(e,"mediaTypes.video.renderer");return t||(t=(0,i.A)(e,"renderer")),!("object"===(0,dt.A)(t)&&t.url&&t.render)||t.backupOnly}function dr(){var e=l.$W.getConfig("exchangeId");return!("number"!=typeof e||!isFinite(e))||!("string"!=typeof e||""===e.trim()||!isFinite(Number(e)))}var ur={code:bn,gvlid:10,aliases:[{code:yn,gvlid:10,skipPbsAliasing:!1}],supportedMediaTypes:_n,isBidRequestValid:function(e){Rn||(u.on(s.qY.AUCTION_DEBUG,or),u.on(s.qY.AD_RENDER_FAILED,or),Rn=!0);var t,n,o=(0,i.A)(e,"params.video"),a=(0,i.A)(e,"params.size"),c=(0,i.A)(e,"mediaTypes.banner.sizes"),d=(0,i.A)(e,"mediaTypes.video"),l=(0,i.A)(e,"mediaTypes.video.playerSize"),p=e.params.hasOwnProperty("bidFloor"),f=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!(0,r.gR)(_n,e.mediaType))return(0,r.JE)("IX Bid Adapter: media type is not supported."),!1;if((0,i.A)(e,"mediaTypes.banner")&&!c)return!1;if(a){var v=Hn(a);if(!v)return(0,r.vV)("IX Bid Adapter: size has invalid format.",{bidder:bn,code:En.BID_SIZE_INVALID_FORMAT}),!1;if(!Gn(e.sizes,v)&&!Gn(l,v)&&!Gn(c,v))return(0,r.vV)("IX Bid Adapter: bid size is not included in ad unit sizes or player size.",{bidder:bn,code:En.BID_SIZE_NOT_INCLUDED}),!1}if(!dr()&&null==e.params.siteId)return(0,r.vV)("IX Bid Adapter: Invalid configuration - either siteId or exchangeId must be configured."),!1;if(void 0!==e.params.siteId){if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return(0,r.vV)("IX Bid Adapter: siteId must be string or number type.",{bidder:bn,code:En.SITE_ID_INVALID_VALUE}),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return(0,r.vV)("IX Bid Adapter: siteId must valid value",{bidder:bn,code:En.SITE_ID_INVALID_VALUE}),!1}if((p||f)&&!(p&&f&&(t=e.params.bidFloor,n=e.params.bidFloorCur,Boolean("number"==typeof t&&"string"==typeof n&&n.match(/^[A-Z]{3}$/)))))return(0,r.vV)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format.",{bidder:bn,code:En.BID_FLOOR_INVALID_FORMAT}),!1;if(d&&o){var g=Mn(e).video,m=zn(d,o);if((0,i.A)(e,"mediaTypes.video.context")===We.H6&&cr(e)&&g){var h=[(0,i.A)(g,"w"),(0,i.A)(g,"h")];if(!(h[0]>=An[0]&&h[1]>=An[1]))return(0,r.vV)("IX Bid Adapter: ".concat(h," is an invalid size for IX outstream renderer")),!1}if(m.length)return m.forEach((function(e){(0,r.vV)(e,{bidder:bn,code:En.PROPERTY_NOT_INCLUDED})})),!1}return function(e){return void 0===(0,i.A)(e,"mediaTypes.native")||e.nativeOrtbRequest&&Array.isArray(e.nativeOrtbRequest.assets)&&e.nativeOrtbRequest.assets.length>0}(e)},resetSiteID:function(){Bn=0},buildRequests:function(e,t){var n=[],o={},a={},s={},c={};for(var d in Pn.getFeatureToggles(),e.forEach((function(e){var n=Object.keys((0,i.A)(e,"mediaTypes",{}));for(var d in n)switch(n[d]){case f.D4:rr(e,c,o,t);break;case f.G_:nr(e,a);break;case f.s6:tr(e,s);break;default:(0,r.JE)("IX Bid Adapter: ad unit mediaTypes ".concat(d," is not supported"))}})),c)if(c.hasOwnProperty(d)){var u=c[d].missingSizes;o.hasOwnProperty(d)||(o[d]={}),o[d].hasOwnProperty("missingImps")||(o[d].missingImps=[],o[d].missingCount=0);for(var l=c[d].impression,p=0;p<u.length;p++){var v=ir(e[0],l,u[p]);o[d].missingImps.push(v),o[d].missingCount++}}var g,m=[];return Object.keys(o).length>0&&m.push(o),Object.keys(a).length>0&&m.push(a),Object.keys(s).length>0&&m.push(s),Pn.isFeatureEnabled("pbjs_enable_multiformat")?n.push.apply(n,(0,M.A)(Kn(e,t,(g={},m.forEach((function(e){Object.keys(e).forEach((function(t){Object.keys(g).includes(t)?g[t].hasOwnProperty("ixImps")&&e[t].hasOwnProperty("ixImps")?g[t].ixImps=[].concat((0,M.A)(g[t].ixImps),(0,M.A)(e[t].ixImps)):g[t].hasOwnProperty("missingImps")&&e[t].hasOwnProperty("missingImps")?g[t].missingImps=[].concat((0,M.A)(g[t].missingImps),(0,M.A)(e[t].missingImps)):e[t].hasOwnProperty("ixImps")?g[t].ixImps=e[t].ixImps:e[t].hasOwnProperty("missingImps")&&(g[t].missingImps=e[t].missingImps):g[t]=e[t]}))})),g)))):(Object.keys(o).length>0&&n.push.apply(n,(0,M.A)(Kn(e,t,o))),Object.keys(a).length>0&&n.push.apply(n,(0,M.A)(Kn(e,t,a))),Object.keys(s).length>0&&n.push.apply(n,(0,M.A)(Kn(e,t,s)))),n},interpretResponse:function(e,t){var n=[],o=null,a=(0,i.A)(e,"body.ext.protectedAudienceAuctionConfigs")||[];if(Pn.setFeatureToggles(e),!e.hasOwnProperty("body"))return n;for(var s=e.body,c=s.seatbid||[],d=0;d<c.length;d++)if(c[d].hasOwnProperty("bid")){for(var u=c[d].bid,l=t.data,p=0;p<u.length;p++){var v=Jn(u[p].impid,l.imp,t.validBidRequests);if((o=Fn(u[p],s.cur,v)).mediaType===f.G_&&cr(v)){var g=(0,i.A)(s,"ext.videoplayerurl");if(o.renderer=sr(u[p].bidId,g),!o.renderer)continue}n.push(o)}if((0,i.A)(l,"ext.ixdiag.err")&&jn.localStorageIsEnabled())try{jn.removeDataFromLocalStorage(kn)}catch(e){(0,r.vV)("ix can not clear ixdiag from localStorage.")}}if(!(Array.isArray(a)&&a.length>0))return n;a=a.filter((function(e){return!!function(e){return"object"===(0,dt.A)(e)&&null!==e}(e)||((0,r.JE)("Malformed auction config detected:",e),!1)}));try{return{bids:n,fledgeAuctionConfigs:a}}catch(e){return(0,r.JE)("Error attaching AuctionConfigs",e),n}},transformBidParams:function(e,t){return St({siteID:"number"},e)},getUserSyncs:function(e,t){var n=[],r=null;if(t.length>0&&(r=(0,i.A)(t[0],"body.ext.publishersyncsperbidderoverride")),void 0!==r&&0==r)return[];if(e.iframeEnabled)n.push({type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"});else{var o=null;l.$W.getConfig("userSync")&&(o=l.$W.getConfig("userSync").syncsPerBidder),0===o&&(o=r),o=r&&(0===o||o)?r>o?o:r:1;for(var a=0;a<o;a++)n.push({type:"image",url:lr(o,a)})}return n}};function lr(e,t){var n="",r="0";return Un&&Un.hasOwnProperty("gdprApplies")&&(r=Un.gdprApplies?"1":"0"),Un&&Un.hasOwnProperty("consentString")&&(n=Un.consentString||""),"https://dsum.casalemedia.com/pbusermatch?origin=prebid"+(0!==Bn?"&site_id="+Bn.toString():"")+"&p="+e.toString()+"&i="+t.toString()+"&gdpr="+r+"&gdpr_consent="+n+"&us_privacy="+(Nn||"")}function pr(e){return e.imp.forEach((function(t,n){var r=t.ext;if(null==r)return e;vr(t)<2||Object.keys(r).forEach((function(i){if(f.D4 in t){var o=t.banner.ext;if(void 0!==o&&void 0!==o[i]&&o[i]==r[i]&&delete e.imp[n].banner.ext[i],void 0!==t.banner.format)for(var a=0;a<t.banner.format.length;a++)null!=t.banner.format[a].ext&&null!=t.banner.format[a].ext[i]&&t.banner.format[a].ext[i]==r[i]&&delete e.imp[n].banner.format[a].ext[i]}if(f.G_ in t){var s=t.video.ext;void 0!==s&&void 0!==s[i]&&s[i]==r[i]&&delete e.imp[n].video.ext[i]}if(f.s6 in t){var c=t.native.ext;void 0!==c&&void 0!==c[i]&&c[i]==r[i]&&delete e.imp[n].native.ext[i]}}))})),e}function fr(e){return e.imp.forEach((function(t,n){if(null==t.ext)return e;if(!(vr(t)<2)){if(f.D4 in t){var r=t.banner.ext;if(void 0!==r&&void 0!==r.siteID&&delete e.imp[n].banner.ext.siteID,void 0!==t.banner.format)for(var i=0;i<t.banner.format.length;i++)void 0!==t.banner.format[i].ext&&void 0!==t.banner.format[i].ext.siteID&&(o(e.imp[n],"ext.siteID",t.banner.format[i].ext.siteID),o(e,"ext.ixdiag.usid",!0),delete e.imp[n].banner.format[i].ext.siteID)}if(f.G_ in t){var a=t.video.ext;void 0!==a&&void 0!==a.siteID&&delete e.imp[n].video.ext.siteID}if(f.s6 in t){var s=t.native.ext;void 0!==s&&void 0!==s.siteID&&delete e.imp[n].native.ext.siteID}}})),e}function vr(e){var t=0;return void 0!==e.banner&&(t+=1),void 0!==e.video&&(t+=1),void 0!==e.native&&(t+=1),t}function gr(e){return null==e.device&&(e.device={}),e.device.h=window.screen.height,e.device.w=window.screen.width,e}(0,ut.a$)(ur),(0,n.E)("ixBidAdapter");var mr=new WeakMap;function hr(t){return(t=(0,r.kK)(t)).map((function(t){var n=t.split("x"),r=(0,e.A)(n,2),i=r[0],o=r[1];return{w:parseInt(i,10),h:parseInt(o,10)}}))}var br,yr=new Set(["pos","placement","plcmt","api","mimes","protocols","playbackmethod","minduration","maxduration","w","h","startdelay","placement","linearity","skip","skipmin","skipafter","minbitrate","maxbitrate","delivery","playbackend"]),_r={instream:1},Ar={1:f.D4,2:f.G_,4:f.s6},wr=["request","imp","bidResponse","response"],Ir=["default","pbs"],Er=wr[0],Or=wr[1],xr=wr[2],Sr=wr[3],Cr=Ir[0],Tr=Ir[1],kr=new Set(wr),Dr=(br={},{registerOrtbProcessor:function(e){var t=e.type,n=e.name,r=e.fn,i=e.priority,o=void 0===i?0:i,a=e.dialects,s=void 0===a?[Cr]:a;if(!kr.has(t))throw new Error("ORTB processor type must be one of: ".concat(wr.join(", ")));s.forEach((function(e){br.hasOwnProperty(e)||(br[e]={}),br[e].hasOwnProperty(t)||(br[e][t]={}),br[e][t][n]={priority:o,fn:r}}))},getProcessors:function(e){return br[e]||{}}}),Rr=Dr.registerOrtbProcessor,jr=Dr.getProcessors,Pr=(0,t.A)((0,t.A)((0,t.A)({},Er,{fpd:{priority:99,fn:function(e,t){(0,r.D9)(e,t.ortb2)}},onlyOneClient:{priority:-99,fn:xe("ORTB request")},props:{fn:function(e,t){Object.assign(e,{id:e.id||(0,r.lk)(),test:e.test||0});var n=parseInt(t.timeout,10);isNaN(n)||(e.tmax=n)}}}),Or,{fpd:{priority:99,fn:function(e,t){(0,r.D9)(e,t.ortb2Imp)}},id:{fn:function(e,t){e.id=t.bidId}},banner:{fn:function(e,t,n){if(!n.mediaType||n.mediaType===f.D4){var o=(0,i.A)(t,"mediaTypes.banner");if(o){var a={topframe:!0===(0,r.al)()?0:1};o.sizes&&(a.format=hr(o.sizes)),o.hasOwnProperty("pos")&&(a.pos=o.pos),e.banner=(0,r.D9)(a,e.banner)}}}},pbadslot:{fn:function(e){var t,n,r=null===(t=e.ext)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.pbadslot;r&&"string"==typeof r||null===(n=e.ext)||void 0===n||null===(n=n.data)||void 0===n||delete n.pbadslot}}}),xr,{mediaType:{priority:99,fn:function(e,t,n){if(!e.mediaType){var r=n.mediaType;if(!r&&!Ar.hasOwnProperty(t.mtype))throw new Error("Cannot determine mediaType for response");e.mediaType=r||Ar[t.mtype]}}},banner:{fn:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).createPixel,t=void 0===e?function(e){return(0,r.Tz)(decodeURIComponent(e))}:e;return function(e,n){e.mediaType===f.D4&&(n.adm&&n.nurl?(e.ad=n.adm,e.ad+=t(n.nurl)):n.adm?e.ad=n.adm:n.nurl&&(e.adUrl=n.nurl))}}()},props:{fn:function(t,n,r){var i,o;Object.entries({requestId:null===(i=r.bidRequest)||void 0===i?void 0:i.bidId,seatBidId:n.id,cpm:n.price,currency:r.ortbResponse.cur||r.currency,width:n.w,height:n.h,dealId:n.dealid,creative_id:n.crid,creativeId:n.crid,burl:n.burl,ttl:n.exp||r.ttl,netRevenue:r.netRevenue}).filter((function(t){var n=(0,e.A)(t,2);return n[0],void 0!==n[1]})).forEach((function(n){var r=(0,e.A)(n,2),i=r[0],o=r[1];return t[i]=o})),t.meta||(t.meta={}),n.adomain&&(t.meta.advertiserDomains=n.adomain),null!==(o=n.ext)&&void 0!==o&&o.dsa&&(t.meta.dsa=n.ext.dsa)}}});function Br(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.shift(),i=t.length>1?Br.apply(void 0,t):t[0];return Object.fromEntries(wr.map((function(e){return[e,Object.assign({},r[e],i[e])]})))}function Ur(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.context,i=void 0===n?{}:n,o=t.processors,a=void 0===o?Nr:o,s=t.overrides,c=void 0===s?{}:s,d=t.imp,u=t.request,l=t.bidResponse,p=t.response,f=new WeakMap;function v(t,n,r,i){var o;return function(){return null==o&&(o=function(){var o=r.bind(this,function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!mr.has(t)){var r=Object.entries(t);r.sort((function(e,t){return(e=e[1].priority||0)===(t=t[1].priority||0)?0:e>t?-1:1})),mr.set(t,r.map((function(t){var n=(0,e.A)(t,2);return[n[0],n[1].fn]})))}var i=mr.get(t).filter((function(t){var r=(0,e.A)(t,1)[0];return!n.hasOwnProperty(r)||n[r]})).map((function(t){var r=(0,e.A)(t,2),i=r[0],o=r[1];return n.hasOwnProperty(i)?n[i].bind(this,o):o}));return function(){var e=this,t=Array.from(arguments);i.forEach((function(n){n.apply(e,t)}))}}(a()[t]||{},c[t]||{}));return n&&(o=n.bind(this,o)),function(){try{return o.apply(this,arguments)}catch(e){i.call.apply(i,[this,e].concat(Array.prototype.slice.call(arguments)))}}}()),o.apply(this,arguments)}}var g=v(Or,d,(function(e,t,n){var r={};return e(r,t,n),r}),(function(e,t,n){(0,r.vV)("Error while converting bidRequest to ORTB imp; request skipped.",{error:e,bidRequest:t,context:n})})),m=v(Er,u,(function(e,t,n,r){var i={imp:t};return e(i,n,r),i}),(function(e,t,n,i){throw(0,r.vV)("Error while converting to ORTB request",{error:e,imps:t,bidderRequest:n,context:i}),e})),h=v(xr,l,(function(e,t,n){var r={};return e(r,t,n),r}),(function(e,t,n){(0,r.vV)("Error while converting ORTB seatbid.bid to bidResponse; bid skipped.",{error:e,bid:t,context:n})})),b=v(Sr,p,(function(e,t,n,r){var i={bids:t};return e(i,n,r),i}),(function(e,t,n,i){throw(0,r.vV)("Error while converting from ORTB response",{error:e,bidResponses:t,ortbResponse:n,context:i}),e}));return{toORTB:function(e){var t=e.bidderRequest,n=e.bidRequests,o=e.context,a=void 0===o?{}:o;n=n||t.bids;var s={req:Object.assign({bidRequests:n},i,a),imp:{}};s.req.impContext=s.imp;var c=n.map((function(e){var n=Object.assign({bidderRequest:t,reqContext:s.req},i,a),o=g(e,n);if(null!=o){if(o.hasOwnProperty("id"))return Object.assign(n,{bidRequest:e,imp:o}),s.imp[o.id]=n,o;(0,r.vV)("Converted ORTB imp does not specify an id, ignoring bid request",e,o)}})).filter(Boolean),d=m(c,t,s.req);return s.req.bidderRequest=t,null!=d&&f.set(d,s),d},fromORTB:function(e){var t=e.request,n=e.response,i=f.get(t);if(null==i)throw new Error("ortbRequest passed to `fromORTB` must be the same object returned by `toORTB`");function o(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign(e,{ortbRequest:t},n,e)}var a=Object.fromEntries((t.imp||[]).map((function(e){return[e.id,e]}))),s=(n.seatbid||[]).flatMap((function(e){return(e.bid||[]).map((function(t){if(a.hasOwnProperty(t.impid)&&i.imp.hasOwnProperty(t.impid))return h(t,o(i.imp[t.impid],{imp:a[t.impid],seatbid:e,ortbResponse:n}));(0,r.vV)("ORTB response seatbid[].bid[].impid does not match any imp in request; ignoring bid",t)}))})).filter(Boolean);return b(s,n,o(i.req))}}}Pr[Or].video={fn:function(t,n,o){if(!o.mediaType||o.mediaType===f.G_){var a=(0,i.A)(n,"mediaTypes.video");if(!(0,r.Im)(a)){var s=Object.fromEntries(Object.entries(a).filter((function(t){var n=(0,e.A)(t,1)[0];return yr.has(n)})));if(a.playerSize){var c=hr(a.playerSize);c.length>1&&(0,r.JE)("video request specifies more than one playerSize; all but the first will be ignored"),Object.assign(s,c[0])}var d=_r[a.context];null!=d&&(s.placement=d),t.video=(0,r.D9)(s,t.video)}}}},Pr[xr].video={fn:function(e,t,n){if(e.mediaType===f.G_){if((0,i.A)(n.imp,"video.w")&&(0,i.A)(n.imp,"video.h")){var r=[n.imp.video.w,n.imp.video.h];e.playerWidth=r[0],e.playerHeight=r[1]}t.adm&&(e.vastXml=t.adm),t.nurl&&(e.vastUrl=t.nurl)}}};var Nr=(0,r.Bj)((function(){return Br(Pr,jr(Cr))}));function qr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mr(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?qr(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Lr={code:"openx",gvlid:69,supportedMediaTypes:[f.D4,f.G_],isBidRequestValid:function(e){var t=e.params.delDomain||e.params.platform;return i.A(e,"mediaTypes.banner")&&t?!!e.params.unit||i.A(e,"mediaTypes.banner.sizes.length")>0:!(!e.params.unit||!t)},buildRequests:function(e,t){var n=e.filter((function(e){return Vr(e)})),r=e.filter((function(e){return function(e){return i.A(e,"mediaTypes.banner")||!Vr(e)}(e)})),o=r.length?[Fr(r,t,f.D4)]:[];return n.forEach((function(e){o.push(Fr([e],t,f.G_))})),o},interpretResponse:function(e,t){return e.body||(e.body={nbr:0}),Wr.fromORTB({request:t.data,response:e.body})},getUserSyncs:function(e,t,n,r){if(e.iframeEnabled||e.pixelEnabled){var i=e.iframeEnabled?"iframe":"image",o=[],a="https://u.openx.net/w/1.0/pd";if(n&&(o.push("gdpr="+(n.gdprApplies?1:0)),o.push("gdpr_consent="+encodeURIComponent(n.consentString||""))),r&&o.push("us_privacy="+encodeURIComponent(r)),t.length>0&&t[0].body&&t[0].body.ext){var s=t[0].body.ext;s.delDomain?a="https://".concat(s.delDomain,"/w/1.0/pd"):s.platform&&o.push("ph="+s.platform)}else o.push("ph=2d1251ae-7f3a-47cf-bd2a-2f288854a0ba");return[{type:i,url:"".concat(a).concat(o.length>0?"?"+o.join("&"):"")}]}},transformBidParams:function(e,t){return St({unit:"string",customFloor:"number"},e)}};(0,ut.a$)(Lr);var Wr=Ur({context:{netRevenue:!0,ttl:300},imp:function(e,t,n){var i=e(t,n);return(0,r.D9)(i,{tagid:t.params.unit,ext:{divid:t.adUnitCode}}),t.params.customParams&&o(i,"ext.customParams",t.params.customParams),t.params.customFloor&&!i.bidfloor&&(i.bidfloor=t.params.customFloor),i},request:function(e,t,n,i){var a=e(t,n,i);(0,r.D9)(a,{at:1,ext:{bc:"".concat("hb_pb_ortb","_").concat("2.0"),pv:"8.45.0"}});var s=i.bidRequests[0];return s.params.coppa&&o(a,"regs.coppa",1),s.params.doNotTrack&&o(a,"device.dnt",1),s.params.platform&&o(a,"ext.platform",s.params.platform),s.params.delDomain&&o(a,"ext.delDomain",s.params.delDomain),s.params.response_template_name&&o(a,"ext.response_template_name",s.params.response_template_name),s.params.test&&(a.test=1),a},bidResponse:function(e,t,n){var r=e(t,n);t.ext&&(r.meta.networkId=t.ext.dsp_id,r.meta.advertiserId=t.ext.buyer_id,r.meta.brandId=t.ext.brand_id);var o=n.ortbResponse;return o.ext&&o.ext.paf&&(r.meta.paf=Object.assign({},o.ext.paf),r.meta.paf.content_id=i.A(t,"ext.paf.content_id")),r},response:function(t,n,a,s){var c=s.ortbRequest;c.ext&&(c.ext.delDomain&&o(a,"ext.delDomain",c.ext.delDomain),c.ext.platform&&o(a,"ext.platform",c.ext.platform));var d=t(n,a,s),u=i.A(a,"ext.fledge_auction_configs");return u?(u=Object.entries(u).map((function(t){var n,i=(0,e.A)(t,2),o=i[0],a=i[1];return{bidId:o,config:(0,r.D9)(Object.assign({},a),{auctionSignals:{ortb2Imp:null===(n=s.impContext[o])||void 0===n?void 0:n.imp}})}})),{bids:d.bids,fledgeAuctionConfigs:u}):d.bids},overrides:{imp:{bidfloor:function(e,t,n,r){var i={};e(i,n,Mr(Mr({},r),{},{currency:"USD"})),"USD"===i.bidfloorcur&&Object.assign(t,i)},video:function(e,n,r,i){var o,a=r.mediaTypes[f.G_];a&&(a=Object.assign({},a,r.params.video),r=Mr(Mr({},r),{},{mediaTypes:(0,t.A)({},f.G_,a)})),e(n,r,i),n.video&&"outstream"===(null===(o=a)||void 0===o?void 0:o.context)&&(n.video.placement=n.video.placement||4)}}}});function Fr(e,t,n){return{method:"POST",url:l.$W.getConfig("openxOrtbUrl")||"https://rtb.openx.net/openrtbb/prebidjs",data:Wr.toORTB({bidRequests:e,bidderRequest:t,context:{mediaType:n}})}}function Vr(e){return i.A(e,"mediaTypes.video")}(0,n.E)("openxBidAdapter");var Gr=(0,t.A)((0,t.A)((0,t.A)({},f.D4,"banner"),f.s6,"native"),f.G_,"video");function zr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.adUnit,a=r.bidderRequests,s=r.index,d=void 0===s?c.n.index:s,u=r.bidderRegistry,l=void 0===u?ge.Ay.bidderRegistry:u,p=t.params,f=l[t.bidder];f&&f.getSpec().transformBidParams&&(i=i||d.getAdUnit(t),a=a||[n.bidderRequest],p=f.getSpec().transformBidParams(p,!0,i,a)),p&&o(e,"ext.prebid.bidder.".concat(t.bidder),p)}var Hr=(0,t.A)((0,t.A)((0,t.A)((0,t.A)({},Er,{extPrebid:{fn:function(e,t){var n;o(e,"ext.prebid",(0,r.D9)({auctiontimestamp:t.auctionStart,targeting:{includewinners:!0,includebidderkeys:!1}},null===(n=e.ext)||void 0===n?void 0:n.prebid)),l.$W.getConfig("debug")&&(e.ext.prebid.debug=!0)}},extPrebidChannel:{fn:function(e){var t;o(e,"ext.prebid.channel",Object.assign({name:"pbjs",version:(0,n.m)().version},null===(t=e.ext)||void 0===t||null===(t=t.prebid)||void 0===t?void 0:t.channel))}},extPrebidAliases:{fn:function(e,t,n){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).am,i=void 0===r?ge.Ay:r;if(i.aliasRegistry[t.bidderCode]){var a=i.bidderRegistry[t.bidderCode];a&&a.getSpec().skipPbsAliasing||o(e,"ext.prebid.aliases.".concat(t.bidderCode),i.aliasRegistry[t.bidderCode])}}}}),Or,{params:{fn:zr},adUnitCode:{fn:function(e,t){var n=t.adUnitCode;n&&o(e,"ext.prebid.adunitcode",n)}}}),xr,{mediaType:{fn:function(e,t,n){var r,i=n.mediaType;i||(i=Ar.hasOwnProperty(t.mtype)?Ar[t.mtype]:null===(r=t.ext)||void 0===r||null===(r=r.prebid)||void 0===r?void 0:r.type,Gr.hasOwnProperty(i)||(i=f.D4)),e.mediaType=i},priority:99},videoCache:{fn:function(e,t){if(e.mediaType===f.G_){var n=(0,i.A)(t,"ext.prebid.cache.vastXml")||{},r=n.cacheId,o=n.url;if(!r||!o){var a=(0,i.A)(t,"ext.prebid.targeting")||{},s=a.hb_uuid,c=a.hb_cache_host,d=a.hb_cache_path;s&&c&&d&&(r=s,o="https://".concat(c).concat(d,"?uuid=").concat(s))}r&&o&&Object.assign(e,{videoCacheKey:r,vastUrl:o})}},priority:-10},bidderCode:{fn:function(e,t,n){var r;e.bidderCode=n.seatbid.seat,e.adapterCode=(0,i.A)(t,"ext.prebid.meta.adaptercode")||(null===(r=n.bidRequest)||void 0===r?void 0:r.bidder)||e.bidderCode}},pbsBidId:{fn:function(e,t){var n=(0,i.A)(t,"ext.prebid.bidid");(0,r.O8)(n)&&(e.pbsBidId=n)}},adserverTargeting:{fn:function(e,t){var n=(0,i.A)(t,"ext.prebid.targeting");(0,r.Qd)(n)&&(e.adserverTargeting=n)}},extPrebidMeta:{fn:function(e,t){e.meta=(0,r.D9)({},(0,i.A)(t,"ext.prebid.meta"),e.meta)}},pbsWurl:{fn:function(e,t){var n=(0,i.A)(t,"ext.prebid.events.win");(0,r.O8)(n)&&(e.pbsWurl=n)}}}),Sr,{serverSideStats:{fn:function(t,n,r){Object.entries({errors:"serverErrors",responsetimemillis:"serverResponseTimeMs"}).forEach((function(t){var o=(0,e.A)(t,2),a=o[0],s=o[1],c=(0,i.A)(n,"ext.".concat(a,".").concat(r.bidderRequest.bidderCode));c&&(r.bidderRequest[s]=c,r.bidRequests.forEach((function(e){return e[s]=c})))}))}}}),Jr=(0,r.Bj)((function(){return Br(Nr(),Hr,jr(Tr))}));function Kr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $r(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Kr(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Qr=l.$W.getConfig("rubicon")||{};l.$W.getConfig("rubicon",(function(e){(0,r.D9)(Qr,e.rubicon)}));var Xr={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"};(0,r.bu)(Xr,(function(e,t){return Xr[e]=t}));var Yr=Ur({request:function(e,t,i,a){var s,c=a.bidRequests,d=e(t,i,a);d.cur=["USD"],d.test=l.$W.getConfig("debug")?1:0,o(d,"ext.prebid.cache",{vastxml:{returnCreative:!0===Qr.returnVast}}),o(d,"ext.prebid.bidders",{rubicon:{integration:Qr.int_type||"pbjs"}}),o(d,"ext.prebid.targeting.pricegranularity",function(e){return{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:e.getConfig("customPriceBucket")&&e.getConfig("customPriceBucket").buckets}[e.getConfig("priceGranularity")]}}(l.$W));var u=(0,n.m)().installedModules;return!u||u.length&&-1===u.indexOf("rubiconAnalyticsAdapter")||o(d,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),function(e,t,n){var i,a={},s=mt.apply(void 0,[n].concat((0,M.A)(t.map((function(e){return e.params.keywords})))));t.forEach((function(t){var n,i={user:{ext:{data:$r({},t.params.visitor)}},site:{ext:{data:$r({},t.params.inventory)}}},o=e.imp.find((function(e){var t;return null===(t=e.ext)||void 0===t||null===(t=t.prebid)||void 0===t||null===(t=t.bidder)||void 0===t||null===(t=t.rubicon)||void 0===t||null===(t=t.video)||void 0===t?void 0:t.language}));o&&(i.site.content={language:null===(n=o.ext)||void 0===n||null===(n=n.prebid)||void 0===n||null===(n=n.bidder)||void 0===n||null===(n=n.rubicon)||void 0===n||null===(n=n.video)||void 0===n?void 0:n.language}),a=(0,r.D9)(a,t.ortb2||{},i);var s=l.$W.getConfig("user.id");a.user.id=a.user.id||s})),(0,r.D9)(e,a),s&&s.length&&o(e,"site.keywords",s.join(",")),null==e||null===(i=e.ext)||void 0===i||null===(i=i.prebid)||void 0===i||delete i.storedrequest}(d,c,i.ortb2),null==d||null===(s=d.ext)||void 0===s||null===(s=s.prebid)||void 0===s||delete s.storedrequest,!0===Qr.disableFloors&&delete d.ext.prebid.floors,c.filter((function(e){return"object"===(0,dt.A)(e.floorData)})).length>0&&(d.ext.prebid.floors={enabled:!1}),d},imp:function(e,t,n){var r,a=oi(t);if(!a.includes(f.D4)||1!=a.length){var s=e(t,n);return s.id=t.adUnitCode,delete s.banner,"atf"===t.params.position&&s.video&&(s.video.pos=1),"btf"===t.params.position&&s.video&&(s.video.pos=3),null===(r=s.ext)||void 0===r||null===(r=r.prebid)||void 0===r||delete r.storedrequest,!0===t.params.bidonmultiformat&&a.length>1&&o(s,"ext.prebid.bidder.rubicon.formats",a),function(e,t){if("USD"!=t.bidfloorcur&&(delete t.bidfloor,delete t.bidfloorcur),!t.bidfloor){var n=parseFloat((0,i.A)(e,"params.floor"));isNaN(n)||(t.bidfloor=n,t.bidfloorcur="USD")}}(t,s),s}},bidResponse:function(t,n,a){var s,c=t(n,a);c.meta.mediaType=(0,i.A)(n,"ext.prebid.type");var d=a.bidRequest,u="outstream"===(null===(s=d.mediaTypes.video)||void 0===s?void 0:s.context)?ni(d,f.G_):[void 0,void 0],l=(0,e.A)(u,2),v=l[0],g=l[1];return c.width=n.w||v||c.playerWidth,c.height=n.h||g||c.playerHeight,c.mediaType===f.G_&&"outstream"===d.mediaTypes.video.context&&(c.renderer=function(e){var t=p.A4.install({id:e.adId,url:Qr.rendererUrl||"https://video-outstream.rubiconproject.com/apex-2.2.1.js",config:Qr.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{t.setRender(ti)}catch(e){(0,r.JE)("Prebid Error calling setRender on renderer",e)}return t}(c)),(0,i.A)(n,"ext.bidder.rp.advid")&&o(c,"meta.advertiserId",n.ext.bidder.rp.advid),c},context:{netRevenue:!1!==Qr.netRevenue,ttl:360},processors:Jr}),Zr={code:"rubicon",gvlid:52,supportedMediaTypes:[f.D4,f.G_,f.s6],isBidRequestValid:function(e){var t=!0;if("object"!==(0,dt.A)(e.params))return!1;for(var n=0,o=["accountId","siteId","zoneId"];n<o.length;n++)if(e.params[o[n]]=parseInt(e.params[o[n]]),isNaN(e.params[o[n]]))return(0,r.vV)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;var a=oi(e,!0);if(!a.length)return!1;a.includes(f.G_)&&(t=function(e){var t=!0,n=Object.prototype.toString.call([]),o={mimes:n,protocols:n,linearity:Object.prototype.toString.call(0)};return Object.keys(o).forEach((function(n){Object.prototype.toString.call((0,i.A)(e,"mediaTypes.video."+n))!==o[n]&&(t=!1,(0,r.vV)("Rubicon: mediaTypes.video."+n+" is required and must be of type: "+o[n]))})),t}(e));var s=[f.D4,f.s6].filter((function(e){return a.includes(e)})).length>0;return s?t&&s:t},buildRequests:function(e,t){var n,i=[],o=[];if(n=e.filter((function(e){var t=oi(e)||[],n=t.length,r=e.params||{},i=r.bidonmultiformat,o=r.video;return 1===n&&(t.includes(f.G_)||t.includes(f.s6))||2===n&&!t.includes(f.D4)||o&&t.includes(f.G_)||i&&(t.includes(f.G_)||t.includes(f.s6))})),n&&n.length){var a=Yr.toORTB({bidRequests:n,bidderRequest:t});o.push({method:"POST",url:"https://".concat(Qr.videoHost||"prebid-server",".rubiconproject.com/openrtb2/auction"),data:a,bidRequest:n})}var s=e.filter((function(e){var t=oi(e)||[],n=e.params||{},r=n.bidonmultiformat,i=n.video;return t.includes(f.D4)&&(1===t.length||r||!r&&!i||!r&&i&&!t.includes(f.G_))}));if(!0!==Qr.singleRequest)i=o.concat(s.map((function(e){var n=Zr.createSlotParams(e,t);return{method:"GET",url:"https://".concat(Qr.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:Zr.getOrderedParams(n).reduce((function(e,t){var i=n[t];return(0,r.O8)(i)&&""!==i||(0,r.Et)(i)?"".concat(e).concat(si(t,i),"&"):e}),"")+"slots=1&rand=".concat(Math.random()),bidRequest:e}})));else{var c=s.reduce((function(e,t){return(e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e}),{});i=o.concat(Object.keys(c).reduce((function(e,n){var i;return(i=c[n],10,i.map((function(e,t){return t%10==0?i.slice(t,t+10):null})).filter((function(e){return e}))).forEach((function(n){var i=Zr.combineSlotUrlParams(n.map((function(e){return Zr.createSlotParams(e,t)})));e.push({method:"GET",url:"https://".concat(Qr.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:Zr.getOrderedParams(i).reduce((function(e,t){var n=i[t];return(0,r.O8)(n)&&""!==n||(0,r.Et)(n)?"".concat(e).concat(si(t,n),"&"):e}),"")+"slots=".concat(n.length,"&rand=").concat(Math.random()),bidRequest:n})})),e}),[]))}return i},getOrderedParams:function(e){var t=/^tg_v/,n=/^tg_i/,r=/^eid_|^tpid_/,i=["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((function(e){return r.test(e)}))).concat(["x_liverampidl","ppuid","rf","p_geo.latitude","p_geo.longitude","kw"]).concat(Object.keys(e).filter((function(e){return t.test(e)}))).concat(Object.keys(e).filter((function(e){return n.test(e)}))).concat(["tk_flint","x_source.tid","l_pb_bid_id","p_screen_res","o_ae","o_cdep","rp_floor","rp_secure","tk_user_key"]);return i.concat(Object.keys(e).filter((function(e){return-1===i.indexOf(e)})))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];var t=e.reduce((function(t,n,r){return Object.keys(n).forEach((function(i){t.hasOwnProperty(i)||(t[i]=new Array(e.length)),t[i].splice(r,1,n[i])})),t}),{}),n=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(t).forEach((function(e){var r=t[e].join(";"),i=r.match(n);t[e]=i?i[1]:r})),t},createSlotParams:function(t,n){var o,a,s,c,u;t.startTime=(new Date).getTime();var p=t.params,v=ni(t,"banner"),g=p.latLong||[],m=(0,e.A)(g,2),h=m[0],b=m[1],y={account_id:p.accountId,site_id:p.siteId,zone_id:p.zoneId,size_id:v[0],alt_size_ids:v.slice(1).join(",")||void 0,rp_floor:(p.floor=parseFloat(p.floor))>=.01?p.floor:void 0,rp_secure:"1",tk_flint:"".concat(Qr.int_type||"pbjs_lite","_v8.45.0"),"x_source.tid":null===(o=n.ortb2)||void 0===o||null===(o=o.source)||void 0===o?void 0:o.tid,"x_imp.ext.tid":null===(a=t.ortb2Imp)||void 0===a||null===(a=a.ext)||void 0===a?void 0:a.tid,l_pb_bid_id:t.bidId,o_cdep:null===(s=t.ortb2)||void 0===s||null===(s=s.device)||void 0===s||null===(s=s.ext)||void 0===s?void 0:s.cdep,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:p.userId,"p_geo.latitude":isNaN(parseFloat(h))?void 0:parseFloat(h).toFixed(4),"p_geo.longitude":isNaN(parseFloat(b))?void 0:parseFloat(b).toFixed(4),"tg_fl.eid":t.code,rf:ei(t,n)};if("function"==typeof t.getFloor&&!Qr.disableFloors){var _;try{_=t.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,r.vV)("Rubicon: getFloor threw an error: ",e)}y.rp_hard_floor="object"!==(0,dt.A)(_)||"USD"!==_.currency||isNaN(parseInt(_.floor))?void 0:_.floor}!0===p.bidonmultiformat&&(0,i.A)(t,"mediaTypes")&&Object.keys(t.mediaTypes).length>1&&(y.p_formats=Object.keys(t.mediaTypes).join(","));var A={1:"atf",3:"btf"}[(0,i.A)(t,"mediaTypes.banner.pos")]||"";y.p_pos="atf"===p.position||"btf"===p.position?p.position:A;var w,I=l.$W.getConfig("user.id");return I&&(y.ppuid=I),null!=t&&null!==(c=t.ortb2Imp)&&void 0!==c&&null!==(c=c.ext)&&void 0!==c&&c.ae&&(y.o_ae=1),function(e,t){var n,r,i,o;if(!1!==Qr.readTopics){var a=[1,2,5,6,7,507].concat((null===(n=Qr.sendSiteSegtax)||void 0===n?void 0:n.map((function(e){return Number(e)})))||[]),s=[4,508].concat((null===(r=Qr.sendUserSegtax)||void 0===r?void 0:r.map((function(e){return Number(e)})))||[]),c=(null===(i=e.ortb2)||void 0===i||null===(i=i.user)||void 0===i?void 0:i.data)||[],d=(null===(o=e.ortb2)||void 0===o||null===(o=o.site)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.data)||[];c.forEach(ri(t,"v",s)),d.forEach(ri(t,"i",a))}}(n,y),t.userIdAsEids&&t.userIdAsEids.forEach((function(e){try{if("adserver.org"===e.source)y.tpid_tdid=e.uids[0].id,y["eid_adserver.org"]=e.uids[0].id;else if("liveintent.com"===e.source)y["tpid_liveintent.com"]=e.uids[0].id,y["eid_liveintent.com"]=e.uids[0].id,e.ext&&Array.isArray(e.ext.segments)&&e.ext.segments.length&&(y["tg_v.LIseg"]=e.ext.segments.join(","));else if("liveramp.com"===e.source)y.x_liverampidl=e.uids[0].id;else if("id5-sync.com"===e.source)y["eid_id5-sync.com"]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype,"^").concat(e.uids[0].ext&&e.uids[0].ext.linkType||"");else{var t="rubiconproject.com"===e.source?e.uids[0].id:"".concat(e.uids[0].id,"^").concat(e.uids[0].atype||"");y["eid_".concat(e.source)]=t}if(!y.ppuid){var n=(0,d.I6)(e.uids,(function(e){return e.ext&&"ppuid"===e.ext.stype}));n&&n.id&&(y.ppuid=n.id)}}catch(t){(0,r.JE)("Rubicon: error reading eid:",e,t)}})),n.gdprConsent&&("boolean"==typeof n.gdprConsent.gdprApplies&&(y.gdpr=Number(n.gdprConsent.gdprApplies)),y.gdpr_consent=n.gdprConsent.consentString),n.uspConsent&&(y.us_privacy=encodeURIComponent(n.uspConsent)),null!==(u=n.gppConsent)&&void 0!==u&&u.gppString&&(y.gpp=n.gppConsent.gppString,y.gpp_sid=null===(w=n.gppConsent)||void 0===w||null===(w=w.applicableSections)||void 0===w?void 0:w.toString()),y.rp_maxbids=n.bidLimit||1,function(t,n,o){var a={user:{ext:{data:$r({},t.params.visitor)}},site:{ext:{data:$r({},t.params.inventory)}}};t.params.keywords&&(a.site.keywords=(0,r.cy)(t.params.keywords)?t.params.keywords.join(","):t.params.keywords);var s=(0,r.D9)({},t.ortb2||{},a),c=(0,i.A)(t.ortb2Imp,"ext")||{},d=(0,i.A)(t.ortb2Imp,"ext.data")||{},u=(0,i.A)(t,"ortb2Imp.ext.gpid"),l=(0,i.A)(s,"regs.ext.dsa"),p={user:[4],site:[1,2,5,6]},v={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},g=function(e,t,n){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=function(e,t,n){return"data"===t&&Array.isArray(e)?e.filter((function(e){return e.segment&&(0,i.A)(e,"ext.segtax")&&p[n]&&-1!==p[n].indexOf((0,i.A)(e,"ext.segtax"))})).map((function(e){var t=e.segment.filter((function(e){return e.id})).reduce((function(e,t){return e.push(t.id),e}),[]);if(t.length>0)return t.toString()})).toString():"object"===(0,dt.A)(e)&&!Array.isArray(e)||void 0===e?void 0:Array.isArray(e)?e.filter((function(e){if("object"!==(0,dt.A)(e)&&void 0!==e)return e.toString();(0,r.JE)("Rubicon: Filtered value: ",e,"for key",t,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString()}(e,n,t),c=v[n]&&a?"".concat(v[n]):"data"===n?"".concat(v[t],"iab"):"".concat(v[t]).concat(n);o[c]=o[c]?o[c].concat(",",s):s};if(n===f.D4){["site","user"].forEach((function(e){Object.keys(s[e]).forEach((function(t){"site"===e&&"content"===t&&s[e][t].data?g(s[e][t].data,e,"data"):"ext"!==t?g(s[e][t],e,t):s[e][t].data&&Object.keys(s[e].ext.data).forEach((function(t){g(s[e].ext.data[t],e,t,!1)}))}))})),Object.keys(d).forEach((function(e){"adserver"!==e?g(d[e],"site",e):"gam"===d[e].name&&g(d[e].adslot,name,e)})),u&&(o.p_gpid=u),l&&Object.keys(l).length&&(0,r.Up)(l,["dsainfo",function(e){return o.dsainfo=e},"dsarequired",function(e){return o.dsarequired=e},"pubrender",function(e){return o.dsapubrender=e},"datatopub",function(e){return o.dsadatatopubs=e},"transparency",function(e){Array.isArray(e)&&e.length&&(o.dsatransparency=e.reduce((function(e,t){return e&&(e+="~~"),e+"".concat(t.domain,"~").concat(t.dsaparams.join("_"))}),""))}]),o["tg_i.pbadslot"]&&delete o["tg_i.dfp_ad_unit_code"];var m=(0,i.A)(s,"device.sua");m&&!1!==Qr.chEnabled&&(0,r.Up)(m,["architecture",function(e){return o.m_ch_arch=e},"bitness",function(e){return o.m_ch_bitness=e},"browsers",function(t){var n,r;if(Array.isArray(t)){var i=t.reduce((function(e,t){var n,r,i;return e[0].push('"'.concat(null==t?void 0:t.brand,'"|v="').concat(null==t||null===(n=t.version)||void 0===n?void 0:n[0],'"')),e[1].push('"'.concat(null==t?void 0:t.brand,'"|v="').concat(null==t||null===(r=t.version)||void 0===r||null===(i=r.join)||void 0===i?void 0:i.call(r,"."),'"')),e}),[[],[]]),a=(0,e.A)(i,2),s=a[0],c=a[1];o.m_ch_ua=null==s||null===(n=s.join)||void 0===n?void 0:n.call(s,","),o.m_ch_full_ver=null==c||null===(r=c.join)||void 0===r?void 0:r.call(c,",")}},"mobile",function(e){return o.m_ch_mobile="?".concat(e)},"model",function(e){return o.m_ch_model=e},"platform",function(e){var t,n;o.m_ch_platform=null==e?void 0:e.brand,o.m_ch_platform_ver=null==e||null===(t=e.version)||void 0===t||null===(n=t.join)||void 0===n?void 0:n.call(t,".")}])}else Object.keys(c).length&&(0,r.D9)(o.imp[0].ext,c),u&&(o.imp[0].ext.gpid=u),(0,r.D9)(o,s)}(t,f.D4,y),!0===l.$W.getConfig("coppa")&&(y.coppa=1),t.schain&&ai(t.schain)&&(y.rp_schain=Zr.serializeSupplyChain(t.schain)),y},serializeSupplyChain:function(e){if(!ai(e))return"";var t=e.ver,n=e.complete,r=e.nodes;return"".concat(t,",").concat(n,"!").concat(Zr.serializeSupplyChainNodes(r))},serializeSupplyChainNodes:function(e){var t=["asi","sid","hp","rid","name","domain"];return e.map((function(e){return t.map((function(t){return encodeURIComponent(e[t]||"")})).join(",")})).join("!")},interpretResponse:function(t,n){var o;t=t.body;var a=n.data;if(!t||"object"!==(0,dt.A)(t))return[];if(t.seatbid){var s=(0,i.A)(t,"ext.errors.rubicon");return Array.isArray(s)&&s.length>0&&(0,r.JE)("Rubicon: Error in video response"),Yr.fromORTB({request:a,response:t}).bids}var c,d=t.ads,u=0,l=n.bidRequest;if("object"===(0,dt.A)(l)&&!Array.isArray(l)&&oi(l).includes(f.G_)&&"object"===(0,dt.A)(d)&&(d=d[l.adUnitCode]),!Array.isArray(d)||d.length<1)return[];var p=d.reduce((function(n,i,o){if(i.impression_id&&c===i.impression_id?u++:c=i.impression_id,"ok"!==i.status)return n;var a,s,d=Array.isArray(l)?l[o-u]:l;if(d&&"object"===(0,dt.A)(d)){var p={requestId:d.bidId,currency:"USD",creativeId:i.creative_id||"".concat(i.network||"","-").concat(i.advertiser||""),cpm:i.cpm||0,dealId:i.deal,ttl:360,netRevenue:!1!==Qr.netRevenue,rubicon:{advertiserId:i.advertiser,networkId:i.network},meta:{advertiserId:i.advertiser,networkId:i.network,mediaType:f.D4}};if(i.creative_type&&(p.mediaType=i.creative_type),i.dsa&&Object.keys(i.dsa).length&&(p.meta.dsa=i.dsa),i.adomain&&(p.meta.advertiserDomains=Array.isArray(i.adomain)?i.adomain:[i.adomain]),i.creative_type===f.G_)p.width=d.params.video.playerWidth,p.height=d.params.video.playerHeight,p.vastUrl=i.creative_depot_url,p.impression_id=i.impression_id,p.videoCacheKey=i.impression_id;else{p.ad=(a=i.script,s=i.impression_id,"<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='".concat(s,"'>\n<script type='text/javascript'>").concat(a,"<\/script>\n</div>\n</body>\n</html>"));var v=Xr[i.size_id].split("x").map((function(e){return Number(e)})),g=(0,e.A)(v,2);p.width=g[0],p.height=g[1]}p.rubiconTargeting=(Array.isArray(i.targeting)?i.targeting:[]).reduce((function(e,t){return e[t.key]=t.values[0],e}),{rpfl_elemid:d.adUnitCode}),n.push(p)}else(0,r.vV)("Rubicon: bidRequest undefined at index position:".concat(o),l,t);return n}),[]).sort((function(e,t){return(t.cpm||0)-(e.cpm||0)})),v=null===(o=t.component_auction_config)||void 0===o?void 0:o.map((function(e){return{config:e,bidId:e.bidId}}));return v?{bids:p,fledgeAuctionConfigs:v}:p},getUserSyncs:function(e,t,n,i,o){if(!ci&&e.iframeEnabled){var a,s={};return n&&("boolean"==typeof n.gdprApplies&&(s.gdpr=Number(n.gdprApplies)),"string"==typeof n.consentString&&(s.gdpr_consent=n.consentString)),i&&(s.us_privacy=encodeURIComponent(i)),null!=o&&o.gppString&&(s.gpp=o.gppString,s.gpp_sid=null===(a=o.applicableSections)||void 0===a?void 0:a.toString()),s=Object.keys(s).length?"?".concat((0,r.eP)(s)):"",ci=!0,{type:"iframe",url:"https://".concat(Qr.syncHost||"eus",".rubiconproject.com/usync.html")+s}}}};function ei(e,t){var n;return n=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?n.replace(/^http:/i,"https:"):n}function ti(e){var t,n=document.getElementById(e.adUnitCode);(t=n.querySelector("div[id^='google_ads']"))&&t.style.setProperty("display","none"),function(e){var t=e.querySelector("script[id^='sas_script']"),n=t&&t.nextSibling;n&&"iframe"===n.localName&&n.style.setProperty("display","none")}(n);var r=$r($r({},{align:"center",position:"append",closeButton:!1,label:void 0,collapse:!0}),e.renderer.getConfig());e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:n,align:r.align,position:r.position},closeButton:r.closeButton,label:r.label,collapse:r.collapse})}))}function ni(e,t){var n=e.params;if(t===f.G_){var o=[];return n.video&&n.video.playerWidth&&n.video.playerHeight?o=[n.video.playerWidth,n.video.playerHeight]:Array.isArray((0,i.A)(e,"mediaTypes.video.playerSize"))&&1===e.mediaTypes.video.playerSize.length?o=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(o=e.sizes[0]),o}var a=[];return Array.isArray(n.sizes)?a=n.sizes:void 0!==(0,i.A)(e,"mediaTypes.banner.sizes")?a=ii(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?a=ii(e.sizes):(0,r.JE)("Rubicon: no sizes are setup or found"),function(e){var t=[15,2,9];return e.sort((function(e,n){var r=t.indexOf(e),i=t.indexOf(n);return r>-1||i>-1?-1===r?1:-1===i?-1:r-i:e-n}))}(a)}function ri(e,t,n){return function(r){var i,o,a=Number(null===(i=r.ext)||void 0===i?void 0:i.segtax);n.includes(a)&&(e["tg_".concat(t,".tax").concat(a)]=null===(o=r.segment)||void 0===o?void 0:o.map((function(e){return e.id})).join(","))}}function ii(e){return(0,r.kK)(e).reduce((function(e,t){var n=parseInt(Xr[t],10);return n&&e.push(n),e}),[])}function oi(e){var t,n,a,s,c,d=arguments.length>1&&void 0!==arguments[1]&&arguments[1],u=[];if(t=e,n=void 0!==(0,i.A)(t,"mediaTypes.".concat(f.G_)),a=void 0!==(0,i.A)(t,"mediaTypes.".concat(f.D4)),s=void 0!==(0,i.A)(t,"params.bidonmultiformat"),c="object"!==(0,dt.A)((0,i.A)(t,"params.video")),n&&s||(a&&c&&(n=!1),n&&c&&o(t,"params.video",{}),n)){if(-1===["outstream","instream"].indexOf((0,i.A)(e,"mediaTypes.".concat(f.G_,".context"))))return d&&(0,r.vV)("Rubicon: mediaTypes.video.context must be outstream or instream"),u;if(ni(e,f.G_).length<2)return d&&(0,r.vV)("Rubicon: could not determine the playerSize of the video"),u;d&&(0,r.OG)("Rubicon: making video request for adUnit",e.adUnitCode),u.push(f.G_)}if(void 0!==(0,i.A)(e,"mediaTypes.".concat(f.s6))&&u.push(f.s6),void 0!==(0,i.A)(e,"mediaTypes.".concat(f.D4))){if(0===ni(e,f.D4).length)return d&&(0,r.vV)("Rubicon: could not determine the sizes for banner request"),u;d&&(0,r.OG)("Rubicon: making banner request for adUnit",e.adUnitCode),u.push(f.D4)}return u}function ai(e){var t=!1,n=["asi","sid","hp"];return e.nodes?((t=e.nodes.reduce((function(e,t){return e?n.every((function(e){return t.hasOwnProperty(e)})):e}),!0))||(0,r.vV)("Rubicon: required schain params missing"),t):t}function si(e,t){return"rp_schain"===e?"rp_schain=".concat(t):"".concat(e,"=").concat(encodeURIComponent(t))}var ci=!1;(0,ut.a$)(Zr),(0,n.E)("rubiconBidAdapter"),__webpack_require__(4511);var di="sonobi",ui=(0,r.lk)(),li={code:di,gvlid:104,supportedMediaTypes:[f.D4,f.G_],isBidRequestValid:function(e){if(!e.params)return!1;if(!e.params.ad_unit&&!e.params.placement_id)return!1;if(!(0,i.A)(e,"mediaTypes.banner")&&!(0,i.A)(e,"mediaTypes.video"))return!1;if((0,i.A)(e,"mediaTypes.banner")){if(!(0,i.A)(e,"mediaTypes.banner.sizes")&&!e.params.sizes)return!1}else if((0,i.A)(e,"mediaTypes.video")){if("outstream"===(0,i.A)(e,"mediaTypes.video.context")&&!(0,i.A)(e,"mediaTypes.video.playerSize"))return!1;if("instream"===(0,i.A)(e,"mediaTypes.video.context")&&!(0,i.A)(e,"mediaTypes.video.playerSize"))return!1}return!0},buildRequests:function(e,n){var o=e.map((function(e){var n=function(e){return e.params.ad_unit?e.params.ad_unit:e.params.placement_id}(e);return/^[\/]?[\d]+[[\/].+[\/]?]?$/.test(n)?(n="/"===n.charAt(0)?n:"/"+n,(0,t.A)({},"".concat(n,"|").concat(e.bidId),"".concat(pi(e),"|").concat(fi(e)).concat(vi(e)).concat(gi(e)))):/^[0-9a-fA-F]{20}$/.test(n)&&20===n.length?(0,t.A)({},e.bidId,"".concat(n,"|").concat(pi(e),"|").concat(fi(e)).concat(vi(e)).concat(gi(e))):void(0,r.vV)("The ad unit code or Sonobi Placement id for slot ".concat(e.bidId," is invalid"))})),a={};o.forEach((function(e){Object.assign(a,e)}));var s={key_maker:JSON.stringify(a),ref:n.refererInfo.page,s:(0,r.lk)(),pv:ui,vp:bi(),lib_name:"prebid",lib_v:"8.45.0",us:0,iqid:L.u.get(di,"storageAllowed")?JSON.stringify(yi()):null},c=n.ortb2;c&&(delete c.experianRtidData,delete c.experianRtidKey,s.fpd=JSON.stringify(c)),l.$W.getConfig("userSync")&&l.$W.getConfig("userSync").syncsPerBidder&&(s.us=l.$W.getConfig("userSync").syncsPerBidder),q.zt.canBidderRegisterSync("iframe",di)?s.ius=1:s.ius=0,(0,i.A)(e[0],"params.hfa")&&(s.hfa=(0,i.A)(e[0],"params.hfa")),e[0].params.referrer&&(s.ref=e[0].params.referrer),n&&n.gdprConsent&&(s.gdpr=n.gdprConsent.gdprApplies?"true":"false",n.gdprConsent.consentString&&(s.consent_string=n.gdprConsent.consentString)),e[0].schain&&(s.schain=JSON.stringify(e[0].schain));var d=(0,i.A)(e[0],"userIdAsEids");Array.isArray(d)&&d.length>0&&(s.eids=JSON.stringify(d));var u=mt.apply(void 0,[n.ortb2].concat((0,M.A)(e.map((function(e){return e.params.keywords}))))).join(",");if(u&&(s.kw=u),n&&n.uspConsent&&(s.us_privacy=n.uspConsent),!0===l.$W.getConfig("coppa")?s.coppa=1:s.coppa=0,(0,r.Im)(a))return null;var p="https://apex.go.sonobi.com/trinity.json";return(0,i.A)(e[0],"params.bid_request_url")&&(p=(0,i.A)(e[0],"params.bid_request_url")),{method:"GET",url:p,withCredentials:!0,data:s,bidderRequests:e}},interpretResponse:function(t,n){var o=t.body,a=[],s=n.data.ref;return 0===Object.keys(o.slots).length||Object.keys(o.slots).forEach((function(t){var c=o.slots[t],d=t.split("|").slice(-1)[0],u=function(e,t){for(var n=0;n<e.length;n++)if(e[n].bidId===t)return e[n]}(n.bidderRequests,d),l=null;"video"===c.sbi_ct&&(l="video","outstream"===(0,i.A)(u,"mediaTypes.video.context")&&(l="outstream"));var f=mi(l,s);if(c.sbi_aid&&c.sbi_mouse&&c.sbi_size){var v=c.sbi_size.split("x"),g=(0,e.A)(v,2),m=g[0],h=void 0===m?1:m,b=g[1],y=void 0===b?1:b,_=[];c.sbi_adomain&&(_=[c.sbi_adomain]);var A={requestId:d,cpm:Number(c.sbi_mouse),width:Number(h),height:Number(y),ad:f(o.sbi_dc,c.sbi_aid),ttl:500,creativeId:c.sbi_crid||c.sbi_aid,aid:c.sbi_aid,netRevenue:!0,currency:"USD",meta:{advertiserDomains:_}};if(c.sbi_dozer&&(A.dealId=c.sbi_dozer),"video"===l)A.mediaType="video",A.vastUrl=f(o.sbi_dc,c.sbi_aid),delete A.ad,delete A.width,delete A.height;else if("outstream"===l&&u){delete A.ad,A.mediaType="video",A.vastUrl=f(o.sbi_dc,c.sbi_aid),A.renderer=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=p.A4.install({id:t.aid,url:"https://mtrx.go.sonobi.com/sbi_outstream_renderer.js",config:n,loaded:!1,adUnitCode:e});try{i.setRender(_i)}catch(e){(0,r.JE)("Prebid Error calling setRender on renderer",e)}return i.setEventHandlers({impression:function(){return(0,r.OG)("Sonobi outstream video impression event")},loaded:function(){return(0,r.OG)("Sonobi outstream video loaded event")},ended:function(){(0,r.OG)("Sonobi outstream renderer video event")}}),i}(u.adUnitCode,A,(0,i.A)(u,"renderer.options"));var w=(0,i.A)(u,"mediaTypes.video.playerSize");w&&(A.width=w[0],A.height=w[1])}a.push(A)}})),a},getUserSyncs:function(e,t,n,r){var i=[];try{e.pixelEnabled&&t[0].body.sbi_px.forEach((function(e){i.push({type:e.type,url:e.url})}))}catch(e){}return i}};function pi(e){var t=[];return(0,i.A)(e,"mediaTypes.video.playerSize")&&t.push((0,i.A)(e,"mediaTypes.video.playerSize")),(0,i.A)(e,"mediaTypes.video.sizes")&&t.push((0,i.A)(e,"mediaTypes.video.sizes")),(0,i.A)(e,"params.sizes")&&t.push((0,i.A)(e,"params.sizes")),(0,i.A)(e,"mediaTypes.banner.sizes")&&t.push((0,i.A)(e,"mediaTypes.banner.sizes")),(0,i.A)(e,"sizes")&&t.push((0,i.A)(e,"sizes")),(0,M.A)(new Set(r.kK.apply(void 0,t))).join(",")}function fi(e){var t=function(e){if(!(0,r.fp)(e.getFloor))return e.params.floor?e.params.floor:null;var t=e.getFloor({currency:"USD",mediaType:"*",size:"*"});return(0,r.Qd)(t)&&!isNaN(t.floor)&&"USD"===t.currency?t.floor:""}(e);return t?"f=".concat(t,","):""}function vi(e){var t=(0,i.A)(e,"ortb2Imp.ext.data.pbadslot")||(0,i.A)(fn(e.adUnitCode),"gptSlot")||e.params.ad_unit;return t?"gpid=".concat(t,","):""}function gi(e){var t;(0,i.A)(e,"mediaTypes.video")?t="video":(0,i.A)(e,"mediaTypes.banner")&&(t="display");var n="";if("video"===t){if(n="c=v,",(0,i.A)(e,"mediaTypes.video.playbackmethod")&&(n="".concat(n,"pm=").concat((0,i.A)(e,"mediaTypes.video.playbackmethod").join(":"),",")),(0,i.A)(e,"mediaTypes.video.placement")){var r=(0,i.A)(e,"mediaTypes.video.placement");n="".concat(n,"p=").concat(r,",")}if((0,i.A)(e,"mediaTypes.video.plcmt")){var o=(0,i.A)(e,"mediaTypes.video.plcmt");n="".concat(n,"pl=").concat(o,",")}}else"display"===t&&(n="c=d,");return n}var mi=function(e,t){return function(n,r){return"video"===e||"outstream"===e?function(e,t,n){return"https://".concat(e,"apex.go.sonobi.com/vast.xml?vid=").concat(t,"&ref=").concat(encodeURIComponent(n))}(n,r,t):'<script type="text/javascript" src="'+"https://".concat(n,"apex.go.sonobi.com/sbi.js?aid=").concat(r,"&as=null&ref=").concat(encodeURIComponent(t))+'"><\/script>'}},hi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;return e.innerWidth>=t&&e.innerWidth<n}};function bi(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=hi(e);return t(0,768)?"mobile":t(768,992)?"tablet":"desktop"}function yi(){var e,t,n,r="_iiq_fdata",i=function(){if(void 0!==e)return e;try{return e=!!window.localStorage}catch(t){e=!1}return!1},o=function(e){try{return JSON.parse(e)}catch(e){return null}}((t=r,i()?window.localStorage.getItem(t):null));return o&&o.pcid?o&&!o.pcidDate&&(o.pcidDate=Date.now()):o={pcid:(n=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"===e?t:3&t|8).toString(16)}))),pcidDate:Date.now()},function(e,t){try{i()&&window.localStorage.setItem(e,t)}catch(e){return null}}(r,JSON.stringify(o)),o}function _i(t){t.renderer.push((function(){var n=t.getSize().split("x"),r=(0,e.A)(n,2),i=r[0],o=r[1],a=new window.SbiOutstreamRenderer;a.init({vastUrl:t.vastUrl,height:o,width:i}),a.setRootElement(t.adUnitCode)}))}function Ai(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function wi(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ai(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ai(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,ut.a$)(li),(0,n.E)("sonobiBidAdapter");function Ii(n){var r=n.apiName,i=n.apiVersion,o=n.apiArgs,a=void 0===o?["command","callback","parameter","version"]:o,s=n.callbackArgs,c=void 0===s?["returnValue","success"]:s,d=n.mode,u=void 0===d?0:d,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window,p={},f="".concat(r,"Call"),g="".concat(r,"Return");function m(e){var t,n="string"==typeof e.data&&e.data.includes(g)?JSON.parse(e.data):e.data;if(null!=n&&null!==(t=n[g])&&void 0!==t&&t.callId){var r=n[g];p.hasOwnProperty(r.callId)&&p[r.callId].apply(p,(0,M.A)(c.map((function(e){return r[e]}))))}}var h,b=function(){for(var e,t=l,n=!1;null!=t;){try{if("function"==typeof t[r]){e=t,n=!0;break}}catch(e){}try{if(t.frames["".concat(r,"Locator")]){e=t;break}}catch(e){}if(t===l.top)break;t=t.parent}return[e,n]}(),y=(0,e.A)(b,2),_=y[0],A=y[1];if(_)return A?h=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new v.k((function(n,i){var o=_[r].apply(_,(0,M.A)(w(wi(wi({},t),{},{callback:t.callback||2===u?I(t.callback,n,i):void 0})).map((function(t){var n=(0,e.A)(t,2);return n[0],n[1]}))));(1===u||null==t.callback&&0===u)&&n(o)}))}:(l.addEventListener("message",m,!1),h=function(n){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new v.k((function(i,o){var a=Math.random().toString(),s=(0,t.A)({},f,wi(wi({},Object.fromEntries(w(n).filter((function(t){return"callback"!==(0,e.A)(t,1)[0]})))),{},{callId:a}));p[a]=I(null==n?void 0:n.callback,i,o,(r||null==(null==n?void 0:n.callback))&&function(){delete p[a]}),_.postMessage(s,"*"),1===u&&i()}))}),Object.assign(h,{isDirect:A,close:function(){!A&&l.removeEventListener("message",m)}});function w(e){return e=Object.assign({version:i},e),a.map((function(t){return[t,e[t]]}))}function I(e,t,n,r){var i="function"==typeof e;return function(o,a){r&&r(),1!==u&&(null==a||a?t:n)(i?void 0:o),i&&e.apply(this,arguments)}}}var Ei,Oi,xi,Si,Ci,Ti,ki=2,Di=!1,Ri={iab:function(e){var t=e.onSuccess,n=e.onError,i=e.onEvent,o=Ii({apiName:"__tcfapi",apiVersion:ki,apiArgs:["command","version","callback","parameter"]});if(!o)return n("TCF2 CMP not found.");o.isDirect?(0,r.fH)("Detected CMP API is directly accessible, calling it now..."):(0,r.fH)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now..."),o({command:"addEventListener",callback:function(e,o){(0,r.fH)("Received a response from CMP",e),o?(i(e),!1!==e.gdprApplies&&"tcloaded"!==e.eventStatus&&"useractioncomplete"!==e.eventStatus||Bi(e,{onSuccess:t,onError:n})):n("CMP unable to register callback function. Please check CMP setup.")}})},static:function(e){var t=e.onSuccess,n=e.onError;Bi(Si,{onSuccess:t,onError:n})}};function ji(e){var t,n,r=!1,i=null,o=!1;function a(e){null!=i&&clearTimeout(i),r||null==e||(0===e?t():i=setTimeout(t,e))}function s(t,n,i){if(a(null),r=!0,Le.mW.setConsentData(t),"function"==typeof e){for(var o=arguments.length,s=new Array(o>3?o-3:0),c=3;c<o;c++)s[c-3]=arguments[c];e.apply(void 0,[n,i].concat(s))}}if((0,d.mK)(Object.keys(Ri),Ei)){var c={onSuccess:function(e){return s(e,!1)},onError:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];s.apply(void 0,[null,!0,e].concat(n))},onEvent:function(e){n=e,o||(o=!0,null!=Ci&&a(Ci))}};t=function(){var e=function(e){s(e,!1,"".concat(o?"Timeout waiting for user action on CMP":"CMP did not load",", continuing auction..."))};Bi(n,{onSuccess:e,onError:function(){return e(Ui(void 0))}})},Ri[Ei](c),null!=Ci&&o||a(Oi)}else s(null,!1,"CMP framework (".concat(Ei,") is not a supported framework. Aborting consentManagement module and resuming auction."))}var Pi=(0,me.Ak)("gdpr",(function(e,t){var n;n=function(n,i){if(i){var o=r.JE;n&&(o=r.vV,i="".concat(i," Canceling auction as per consentManagement config."));for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c<a;c++)s[c-2]=arguments[c];o.apply(void 0,[i].concat(s))}n?(e.stopTiming(),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():(0,r.vV)("Error executing bidsBackHandler")):e.call(this,t)},Ti?((0,r.fH)("User consent information already known. Pulling internally stored information..."),n(!1)):ji(n)}));function Bi(e,t){var n=t.onSuccess,i=t.onError;!function(){var t=e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:xi,n=e&&e.tcString;return!("boolean"==typeof t&&(!0!==t||n&&(0,r.O8)(n)))}()?n(Ui(e)):i("CMP returned unexpected value during lookup process.",e)}function Ui(e){return Ti={consentString:e?e.tcString:void 0,vendorData:e||void 0,gdprApplies:e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:xi},e&&e.addtlConsent&&(0,r.O8)(e.addtlConsent)&&(Ti.addtlConsent=e.addtlConsent),Ti.apiVersion=ki,Ti}function Ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qi(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Ni(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}l.$W.getConfig("consentManagement",(function(e){return function(e){var t;(e=e&&(e.gdpr||e.usp||e.gpp?e.gdpr:e))&&"object"===(0,dt.A)(e)?((0,r.O8)(e.cmpApi)?Ei=e.cmpApi:(Ei="iab",(0,r.fH)("consentManagement config did not specify cmp. Using system default setting (".concat("iab",")."))),(0,r.Et)(e.timeout)?Oi=e.timeout:(Oi=1e4,(0,r.fH)("consentManagement config did not specify timeout. Using system default setting (".concat(1e4,")."))),Ci=(0,r.Et)(e.actionTimeout)?e.actionTimeout:null,xi=!0===e.defaultGdprScope,(0,r.fH)("consentManagement module has been activated..."),"static"===Ei&&((0,r.Qd)(e.consentData)?(null!=(null===(t=Si=e.consentData)||void 0===t?void 0:t.getTCData)&&(Si=Si.getTCData),Oi=0):(0,r.vV)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),Di||(0,n.m)().requestBids.before(Pi,50),Di=!0,Le.mW.enable(),ji()):(0,r.JE)("consentManagement (gdpr) config not defined, exiting consent manager")}(e.consentManagement)})),Be.before((function(e,t){return e(t.then((function(e){var t=Le.mW.getConsentData();return t&&("boolean"==typeof t.gdprApplies&&o(e,"regs.ext.gdpr",t.gdprApplies?1:0),o(e,"user.ext.consent",t.consentString)),e})))})),Rr({type:Er,name:"gdprAddtlConsent",fn:function(e,t){var n,r=null===(n=t.gdprConsent)||void 0===n?void 0:n.addtlConsent;r&&"string"==typeof r&&o(e,"user.ext.ConsentedProvidersSettings.consented_providers",r)}}),(0,n.E)("consentManagement");var Mi="sharethrough",Li="https://btlr.sharethrough.com/universal/v1?supply_id=".concat("WYu2BXv1"),Wi=function(){return window.location.protocol},Fi={code:Mi,supportedMediaTypes:[f.G_,f.D4],gvlid:80,isBidRequestValid:function(e){return!!e.params.pkey&&e.bidder===Mi},buildRequests:function(t,n){var o,a,s,c,d,u=n.timeout,p=n.ortb2||{},f=Wi().indexOf("http")<0||Wi().indexOf("https")>-1,v={id:(0,r.lk)(),at:1,cur:["USD"],tmax:u,site:qi({domain:(0,i.A)(n,"refererInfo.domain",window.location.hostname),page:(0,i.A)(n,"refererInfo.page",window.location.href),ref:(0,i.A)(n,"refererInfo.ref")},p.site),device:{ua:navigator.userAgent,language:navigator.language,js:1,dnt:"1"===navigator.doNotTrack?1:0,h:window.screen.height,w:window.screen.width,ext:{}},regs:{coppa:!0===l.$W.getConfig("coppa")?1:0,ext:{}},source:{tid:null===(o=n.ortb2)||void 0===o||null===(o=o.source)||void 0===o?void 0:o.tid,ext:{version:"8.45.0",str:"4.3.0",schain:t[0].schain}},bcat:(0,i.A)(n.ortb2,"bcat")||t[0].params.bcat||[],badv:(0,i.A)(n.ortb2,"badv")||t[0].params.badv||[],test:0};if(null!==(a=n.ortb2)&&void 0!==a&&null!==(a=a.device)&&void 0!==a&&null!==(a=a.ext)&&void 0!==a&&a.cdep&&(v.device.ext.cdep=n.ortb2.device.ext.cdep),v.user=Gi(p.user,{}),v.user.ext||(v.user.ext={}),v.user.ext.eids=t[0].userIdAsEids||[],n.gdprConsent){var g=!0===n.gdprConsent.gdprApplies;v.regs.ext.gdpr=g?1:0,g&&(v.user.ext.consent=n.gdprConsent.consentString)}return n.uspConsent&&(v.regs.ext.us_privacy=n.uspConsent),null!=n&&null!==(s=n.gppConsent)&&void 0!==s&&s.gppString?(v.regs.gpp=n.gppConsent.gppString,v.regs.gpp_sid=n.gppConsent.applicableSections):null!=n&&null!==(c=n.ortb2)&&void 0!==c&&null!==(c=c.regs)&&void 0!==c&&c.gpp&&(v.regs.ext.gpp=n.ortb2.regs.gpp,v.regs.ext.gpp_sid=n.ortb2.regs.gpp_sid),null!=n&&null!==(d=n.ortb2)&&void 0!==d&&null!==(d=d.regs)&&void 0!==d&&null!==(d=d.ext)&&void 0!==d&&d.dsa&&(v.regs.ext.dsa=n.ortb2.regs.ext.dsa),t.map((function(t){var o={ext:{}},a=(0,i.A)(t,"ortb2Imp.ext.tid");a&&(o.ext.tid=a);var s=(0,i.A)(t,"ortb2Imp.ext.gpid",(0,i.A)(t,"ortb2Imp.ext.data.pbadslot"));s&&(o.ext.gpid=s);var c,d,u,l,p,v=(0,i.A)(t,"mediaTypes.video");if(n.fledgeEnabled&&t.mediaTypes.banner&&(0,r.D9)(o,{ext:{ae:1}}),v){var g=640,m=360;if(v.playerSize&&v.playerSize[0]&&v.playerSize[0][0]&&v.playerSize[0][1]){var h=(0,e.A)(v.playerSize[0],2);g=h[0],m=h[1]}o.video={pos:Gi(v.pos,0),topframe:(0,r.al)()?0:1,skip:Gi(v.skip,0),linearity:Gi(v.linearity,1),minduration:Gi(v.minduration,5),maxduration:Gi(v.maxduration,60),playbackmethod:v.playbackmethod||[2],api:(l=v,p=l.api,p&&Array.isArray(p)&&p.length>0?p:[2]),mimes:v.mimes||["video/mp4"],protocols:(d=v,u=d.protocols,u&&Array.isArray(u)&&u.length>0?u:[2,3,5,6,7,8]),w:g,h:m,startdelay:Gi(v.startdelay,0),skipmin:Gi(v.skipmin,0),skipafter:Gi(v.skipafter,0),placement:(c=v,c.plcmt?c.placement:"instream"===c.context?1:+(0,i.A)(c,"placement",4)),plcmt:v.plcmt?v.plcmt:null},v.delivery&&(o.video.delivery=v.delivery),v.companiontype&&(o.video.companiontype=v.companiontype),v.companionad&&(o.video.companionad=v.companionad)}else o.banner={pos:(0,i.A)(t,"mediaTypes.banner.pos",0),topframe:(0,r.al)()?0:1,format:t.sizes.map((function(e){return{w:+e[0],h:+e[1]}}))};return qi({id:t.bidId,tagid:String(t.params.pkey),secure:f?1:0,bidfloor:Vi(t)},o)})).filter((function(e){return!!e})).map((function(e){return{method:"POST",url:Li,data:qi(qi({},v),{},{imp:[e]})}}))},interpretResponse:function(e,t){var n,r=e.body;if(!r||!r.seatbid||0===r.seatbid.length||!r.seatbid[0].bid||0===r.seatbid[0].bid.length)return[];var i,o=null===(n=r.ext)||void 0===n?void 0:n.auctionConfigs,a=r.seatbid[0].bid.map((function(e){var n,i,o,a,s,c,d,u,l,p,v,g,m,h={requestId:e.impid,width:+e.w,height:+e.h,cpm:+e.price,creativeId:e.crid,dealId:e.dealid||null,mediaType:t.data.imp[0].video?f.G_:f.D4,currency:r.cur||"USD",netRevenue:!0,ttl:360,ad:e.adm,nurl:e.nurl,meta:{advertiserDomains:e.adomain||[],networkId:(null===(n=e.ext)||void 0===n?void 0:n.networkId)||null,networkName:(null===(i=e.ext)||void 0===i?void 0:i.networkName)||null,agencyId:(null===(o=e.ext)||void 0===o?void 0:o.agencyId)||null,agencyName:(null===(a=e.ext)||void 0===a?void 0:a.agencyName)||null,advertiserId:(null===(s=e.ext)||void 0===s?void 0:s.advertiserId)||null,advertiserName:(null===(c=e.ext)||void 0===c?void 0:c.advertiserName)||null,brandId:(null===(d=e.ext)||void 0===d?void 0:d.brandId)||null,brandName:(null===(u=e.ext)||void 0===u?void 0:u.brandName)||null,demandSource:(null===(l=e.ext)||void 0===l?void 0:l.demandSource)||null,dchain:(null===(p=e.ext)||void 0===p?void 0:p.dchain)||null,primaryCatId:(null===(v=e.ext)||void 0===v?void 0:v.primaryCatId)||null,secondaryCatIds:(null===(g=e.ext)||void 0===g?void 0:g.secondaryCatIds)||null,mediaType:(null===(m=e.ext)||void 0===m?void 0:m.mediaType)||null}};return h.mediaType===f.G_&&(h.ttl=3600,h.vastXml=e.adm),h}));return o?{bids:a,fledgeAuctionConfigs:(null===(i=r.ext)||void 0===i?void 0:i.auctionConfigs)||{}}:a},getUserSyncs:function(e,t){return e.pixelEnabled&&void 0!==(0,i.A)(t,"0.body.cookieSyncUrls")?t[0].body.cookieSyncUrls.map((function(e){return{type:"image",url:e}})):[]},onTimeout:function(e){},onBidWon:function(e){},onSetTargeting:function(e){}};function Vi(e){var t=null;if("function"==typeof e.getFloor){var n=e.getFloor({currency:"USD",mediaType:e.mediaTypes&&e.mediaTypes.video?"video":"banner",size:e.sizes.map((function(e){return{w:e[0],h:e[1]}}))});"object"!==(0,dt.A)(n)||"USD"!==n.currency||isNaN(parseFloat(n.floor))||(t=parseFloat(n.floor))}return null!==t?t:e.params.floor}function Gi(e,t){return null==e?t:e}function zi(e,t,n){return n?e+t+"="+encodeURIComponent(n)+"&":e}function Hi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ji(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Hi(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,ut.a$)(Fi),(0,n.E)("sharethroughBidAdapter");var Ki="triplelift",$i=null,Qi=null,Xi=(0,ve.vM)({bidderCode:Ki}),Yi={gvlid:28,code:Ki,supportedMediaTypes:[f.D4,f.G_],isBidRequestValid:function(e){return void 0!==e.params.inventoryCode},buildRequests:function(e,t){var n="https://tlx.3lift.com/header/auction?",o=function(e,t){var n,o={},a=e[0].schain,s=function(e){var t={},n={},i={},o=e.ortb2||{},a=function(){var e=Xi.getDataFromLocalStorage("opecloud_ctx");if(!e)return null;try{return JSON.parse(e)}catch(e){return(0,r.vV)("Triplelift: error parsing JSON: ",e),null}}(),s=Object.assign({},o.site),c=Object.assign({},o.user);if(a){c.data=c.data||[];try{c.data.push({name:"www.1plusx.com",ext:a})}catch(e){(0,r.vV)("Triplelift: error adding 1plusX segments: ",e)}}return ro(n,s),ro(i,c),(0,r.Im)(n)||(t.context=n),(0,r.Im)(i)||(t.user=i),t}(t);o.imp=e.map((function(e,t){var n,i,o,a,s={id:t,tagid:e.params.inventoryCode,floor:no(e)};return Zi(e)&&(s.video=function(e){var t=Ji(Ji({},e.params.video),e.mediaTypes.video);try{t.w||(t.w=t.playerSize[0][0]),t.h||(t.h=t.playerSize[0][1])}catch(e){(0,r.JE)("Video size not defined",e)}return"instream"===t.context&&(t.placement||(t.placement=1)),"outstream"===t.context&&(t.placement?-1===[3,4,5].indexOf(t.placement)&&((0,r.OG)("video.placement value of ".concat(t.placement," is invalid for outstream context. Setting placement to 3")),t.placement=3):t.placement=3),t.playbackmethod&&Number.isInteger(t.playbackmethod)&&(t.playbackmethod=Array.from(String(t.playbackmethod),Number)),delete t.playerSize,t}(e)),e.mediaTypes.banner&&!eo(e)&&(s.banner={format:(a=e.sizes,a.filter(io).map((function(e){return{w:e[0],h:e[1]}})))}),(0,r.Im)(e.ortb2Imp)||(s.fpd=(n=e.ortb2Imp,i={},ro(o={},n.ext),(0,r.Im)(o)||(i.context=o),i),(0,r.Im)(e.ortb2Imp.ext)||(s.ext=Ji({},e.ortb2Imp.ext))),s}));var c=[];e[0].userIdAsEids&&(c=i.A(e[0],"userIdAsEids"),o.user={ext:{eids:c}});var d=function(e,t){var n={};return(0,r.Im)(e)||(n.schain=Ji({},e)),(0,r.Im)(t)||(n.fpd=Ji({},t)),n}(a,s);return(0,r.Im)(d)||(o.ext=d),null!=t&&null!==(n=t.ortb2)&&void 0!==n&&null!==(n=n.regs)&&void 0!==n&&n.gpp&&(o.regs=Object.assign({},t.ortb2.regs)),null!=t&&t.ortb2&&(o.ext.ortb2=Object.assign({},t.ortb2)),o}(e,t);return n=zi(n,"lib","prebid"),n=zi(n,"v","8.45.0"),t&&t.refererInfo&&(n=zi(n,"referrer",t.refererInfo.page)),t&&t.timeout&&(n=zi(n,"tmax",t.timeout)),t&&t.gdprConsent&&(n=zi(n,"gdpr",($i=void 0===t.gdprConsent.gdprApplies||t.gdprConsent.gdprApplies).toString()),void 0!==t.gdprConsent.consentString&&(n=zi(n,"cmp_cs",Qi=t.gdprConsent.consentString))),t&&t.uspConsent&&(n=zi(n,"us_privacy",t.uspConsent)),t&&t.fledgeEnabled&&(n=zi(n,"fledge",t.fledgeEnabled)),!0===l.$W.getConfig("coppa")&&(n=zi(n,"coppa",!0)),n.lastIndexOf("&")===n.length-1&&(n=n.substring(0,n.length-1)),(0,r.OG)("tlCall request built: "+n),{method:"POST",url:n,data:o,bidderRequest:t}},interpretResponse:function(e,t){var n=t.bidderRequest,i=e.body.bids||[],o=e.body.paapi||[];if(i=i.map((function(e){return function(e,t){var n={},r=t.width||1,i=t.height||1,o=t.deal_id||"",a=t.crid||"",s=e.bids[t.imp_id];return 0!=t.cpm&&t.ad&&(n={requestId:s.bidId,cpm:t.cpm,width:r,height:i,netRevenue:!0,ad:t.ad,creativeId:a,dealId:o,currency:"USD",ttl:300,tl_source:t.tl_source,meta:{}},Zi(s)&&"video"===t.media_type&&(n.vastXml=t.ad,n.mediaType="video",n.ttl=3600),t.advertiser_name&&(n.meta.advertiserName=t.advertiser_name),t.adomain&&t.adomain.length&&(n.meta.advertiserDomains=t.adomain),t.tl_source&&"hdx"==t.tl_source&&(Zi(s)&&"video"===t.media_type?n.meta.mediaType="video":n.meta.mediaType="banner"),t.tl_source&&"tlx"==t.tl_source&&(n.meta.mediaType="native"),a&&(n.meta.networkId=a.slice(0,a.indexOf("_")))),n}(n,e)})),o.length>0){var a=o.map((function(e){return{bidId:n.bids[e.imp_id].bidId,config:e.auctionConfig}}));return(0,r.OG)("Response with FLEDGE:",{bids:i,fledgeAuctionConfigs:a}),{bids:i,fledgeAuctionConfigs:a}}return i},getUserSyncs:function(e,t,n,r,i){var o=function(e){if(e)return e.iframeEnabled?"iframe":e.pixelEnabled?"image":void 0}(e);if(o){var a="https://eb2.3lift.com/sync?";return"image"===o&&(a=zi(a,"px",1),a=zi(a,"src","prebid")),(null!==Qi||$i)&&(a=zi(a,"gdpr",$i),a=zi(a,"cmp_cs",Qi)),r&&(a=zi(a,"us_privacy",r)),i&&(i.gppString&&(a=zi(a,"gpp",i.gppString)),i.applicableSections&&0!==i.applicableSections.length&&(a=zi(a,"gpp_sid",i.applicableSections.filter((function(e){return Number.isInteger(e)})).join(",")))),[{type:o,url:a}]}}};function Zi(e){return to(e)&&(eo(e)||function(e){return to(e)&&"outstream"===e.mediaTypes.video.context.toLowerCase()}(e))}function eo(e){return to(e)&&"instream"===e.mediaTypes.video.context.toLowerCase()}function to(e){return e.mediaTypes.video&&e.mediaTypes.video.context}function no(e){var t=null;if("function"==typeof e.getFloor)try{var n=e.getFloor({currency:"USD",mediaType:Zi(e)?"video":"banner",size:"*"});"object"!==(0,dt.A)(n)||"USD"!==n.currency||isNaN(parseFloat(n.floor))||(t=parseFloat(n.floor))}catch(e){(0,r.vV)("Triplelift: getFloor threw an error: ",e)}return null!==t?t:e.params.floor}function ro(e,t){(0,r.Im)(t)||Object.keys(t).forEach((function(n){null!=t[n]&&(e[n]=t[n])}))}function io(e){return 2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}(0,ut.a$)(Yi),(0,n.E)("tripleliftBidAdapter");var oo=__webpack_require__(2330),ao=["mind","maxd","size","playerSize","protocols","durationRangeSec"];function so(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function co(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?so(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):so(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var uo="grid",lo="https://grid.bidswitch.net/hbjson",po="tmguid",fo=(0,ve.vM)({bidderCode:uo}),vo={trustx:{endpoint:"https://grid.bidswitch.net/hbjson?sp=trustx",syncurl:"https://x.bidswitch.net/sync?ssp=themediagrid",bidResponseExternal:{netRevenue:!1}},gridNM:{defaultParams:{multiRequest:!0}}},go=!1,mo={code:uo,gvlid:686,aliases:["playwire","adlivetech","gridNM",{code:"trustx",skipPbsAliasing:!0}],supportedMediaTypes:[f.D4,f.G_],isBidRequestValid:function(e){return e&&Boolean(e.params.uid||e.params.secid)},buildRequests:function(t,n){var o,a;if(!t.length)return null;var s=null,c=null,d=null,u=null,p=null,v=null,g=null,m=!1,h=n||{},b=h.bidderRequestId,y=h.gdprConsent,_=h.uspConsent,A=h.timeout,w=h.refererInfo,I=h.gppConsent,E=w?encodeURIComponent(w.page):"",O=parseInt(A)||null,x=[],S={},C=[],T=[],k=[];t.forEach((function(t){var i={bid:t,savedPrebidBid:null};if(t.params.uid||t.params.secid){b||(b=t.bidderRequestId),d||(d=t.schain),u||(u=t.userIdAsEids),g||(g=vo[t.bidder]&&vo[t.bidder].endpoint);var o=t.params,a=t.mediaTypes,l=t.bidId,p=t.adUnitCode,v=t.rtd,h=t.ortb2Imp,y=co(co({},(vo[t.bidder]||{}).defaultParams),o),_=y.secid,A=y.pubid,w=y.source,I=y.uid,D=y.keywords,R=y.forceBidder,j=y.multiRequest,P=y.content,B=y.video,U=function(t,n){var r=t.video?"video":"banner",i=parseFloat(n.params.bidFloor||n.params.floorcpm||0)||null;if("function"==typeof n.getFloor){var o=n.getFloor({currency:"USD",mediaType:r,size:n.sizes.map((function(t){var n=(0,e.A)(t,2);return{w:n[0],h:n[1]}}))});"object"!==(0,dt.A)(o)||"USD"!==o.currency||isNaN(parseFloat(o.floor))||(i=Math.max(i,parseFloat(o.floor)))}return i}(a||{},t),N=v&&v.jwplayer&&v.jwplayer.targeting;N&&!c&&N.content&&(c=N.content);var q,M,L,W={id:l.toString(),tagid:(_||I).toString(),ext:{divid:p.toString()}};if(h&&(h.instl&&(W.instl=parseInt(h.instl)||null),h.ext&&(W.ext.gpid=(null===(q=h.ext.gpid)||void 0===q?void 0:q.toString())||(null===(M=h.ext.data)||void 0===M||null===(M=M.pbadslot)||void 0===M?void 0:M.toString())||(null===(L=h.ext.data)||void 0===L||null===(L=L.adserver)||void 0===L||null===(L=L.adslot)||void 0===L?void 0:L.toString()),h.ext.data&&(W.ext.data=h.ext.data))),(0,r.Im)(D)||(s||(s=D),W.ext.bidder={keywords:D}),U&&(W.bidfloor=U),!a||a[f.D4]){var F=function(e,t){var n=t.sizes||e.sizes;if(n&&n.length){var i=n.map((function(e){return(0,r.nX)(e)})),o=(0,r.nX)(n[0]);return i.length&&(o.format=i),o}}(t,a?a[f.D4]:{});F&&(W.banner=F)}if(a&&a[f.G_]){var V=function(e,t,n){var i=co(co({},t),e),o=i.mind,a=i.maxd,s=i.size,c=i.playerSize,d=i.protocols,u=i.durationRangeSec,l=void 0===u?[]:u,p=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(i,ao);if(s&&(0,r.O8)(s)){var f=s.split("x");2===f.length&&parseInt(f[0])&&parseInt(f[1])&&(p.w=parseInt(f[0]),p.h=parseInt(f[1]))}if(!p.w||!p.h){var v=((c||n||[]).toString().match(/^\d+,\d+/)||[])[0],g=v&&v.split(",").map((function(e){return parseInt(e)}));g&&2===g.length&&Object.assign(p,(0,r.nX)(g))}if(p.w&&p.h){var m=o||l[0]||parseInt(p.minduration)||null,h=a||l[1]||parseInt(p.maxduration)||null;return m&&(p.minduration=m),h&&(p.maxduration=h),d&&d.length&&(p.protocols=d),p}}(B,a[f.G_],t.sizes);V&&(W.video=V)}if(W.banner||W.video)if(j){var G,z,H={tid:null==n||null===(G=n.ortb2)||void 0===G||null===(G=G.source)||void 0===G||null===(G=G.tid)||void 0===G||null===(z=G.toString)||void 0===z?void 0:z.call(G),ext:{wrapper:"Prebid_js",wrapper_version:"8.45.0"}};t.schain&&(H.ext.schain=t.schain);var J={id:t.bidderRequestId&&t.bidderRequestId.toString(),site:{page:E},tmax:O,source:H,imp:[W]};A&&(J.site.publisher={id:A});var K=P||N&&N.content;K&&(J.site.content=K),C.push(J),T.push(w),k.push(i)}else S[l]=i,x.push(W);!m&&R&&vo[R]&&(m=R)}})),(m=l.$W.getConfig("forceBidderName")||m)&&vo[m]&&(g=vo[m].endpoint,this.forceBidderName=m);var D={tid:null==n||null===(o=n.ortb2)||void 0===o||null===(o=o.source)||void 0===o||null===(o=o.tid)||void 0===o||null===(a=o.toString)||void 0===a?void 0:a.call(o),ext:{wrapper:"Prebid_js",wrapper_version:"8.45.0"}};d&&(D.ext.schain=d);var R=x.length||!C.length?{id:b&&b.toString(),site:{page:E},tmax:O,source:D,imp:x}:null;return c&&(R.site.content=c),[].concat(C,[R]).forEach((function(e){var t;if(e){p=null;var o=(0,i.A)(n,"ortb2.user.data");o&&o.length&&(p={data:(0,M.A)(o)}),y&&y.consentString&&(v={consent:y.consentString});var a=(0,i.A)(n,"ortb2.user.ext.device");a&&((v=v||{}).device=co({},a)),u&&u.length&&((v=v||{}).eids=(0,M.A)(u)),v&&Object.keys(v).length&&((p=p||{}).ext=v);var c=fo.getDataFromLocalStorage(po)||function(){if(l.$W.getConfig("localStorageWriteAllowed")){var e=(0,r.lk)().replace(/-/g,"");return fo.setDataInLocalStorage(po,e),e}return null}();c&&((p=p||{}).id=c.toString()),p&&(e.user=p);var d=(0,i.A)(n,"ortb2.user.keywords")||null,f=(0,i.A)(n,"ortb2.site.keywords")||null;d&&((s=s||{}).user=s.user||{},s.user.ortb2=[{name:"keywords",keywords:d.split(",")}]),f&&((s=s||{}).site=s.site||{},s.site.ortb2=[{name:"keywords",keywords:f.split(",")}]),s&&(s=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(r)if("site"===n||"user"===n){var i={};Object.keys(r).forEach((function(e){if(Array.isArray(r[e])){var t=[];r[e].forEach((function(e){if("object"===(0,dt.A)(e)&&e.name){var n={name:e.name,segments:[]};Object.keys(e).forEach((function(t){Array.isArray(e[t])&&e[t].forEach((function(e){e&&("string"==typeof e?n.segments.push({name:t,value:e}):"segments"===t&&"string"==typeof e.name&&"string"==typeof e.value&&n.segments.push(e))}))})),n.segments.length&&t.push(n)}})),t.length&&(i[e]=t)}})),t[n]=i}else t[n]=r})),Object.keys(t).length&&t}(s))&&(e.ext={keywords:s}),y&&y.gdprApplies&&(e.regs={ext:{gdpr:y.gdprApplies?1:0}});var g=(0,i.A)(n,"ortb2.regs")||{};if(I||null!=g&&g.gpp){var m,h,b,A={gpp:null!==(m=null==I?void 0:I.gppString)&&void 0!==m?m:null==g?void 0:g.gpp,gpp_sid:null!==(h=null==I?void 0:I.applicableSections)&&void 0!==h?h:null==g?void 0:g.gpp_sid};e.regs=(0,r.D9)(null!==(b=null==e?void 0:e.regs)&&void 0!==b?b:{},A)}_&&(e.regs||(e.regs={ext:{}}),e.regs.ext||(e.regs.ext={}),e.regs.ext.us_privacy=_),!0===l.$W.getConfig("coppa")&&(e.regs||(e.regs={}),e.regs.coppa=1),null!=g&&null!==(t=g.ext)&&void 0!==t&&t.dsa&&(e.regs||(e.regs={ext:{}}),e.regs.ext||(e.regs.ext={}),e.regs.ext.dsa=g.ext.dsa);var w=(0,i.A)(n,"ortb2.site");if(w){var E=[].concat((0,M.A)(w.cat||[]),(0,M.A)(w.pagecat||[])).filter((function(e){return e&&"string"==typeof e}));E.length&&(e.site.cat=E);var O=(0,i.A)(w,"content.genre");O&&"string"==typeof O&&(e.site.content=co(co({},e.site.content),{},{genre:O}));var x=(0,i.A)(w,"content.data");if(x&&x.length){var S=e.site.content||{};e.site.content=(0,r.D9)(S,{data:x})}var C=(0,i.A)(w,"content.id");C&&(e.site.content=co(co({},e.site.content),{},{id:C}))}}})),[].concat((0,M.A)(C.map((function(e,t){var n,r=(g||lo).replace(/[?&]sp=([^?&=]+)/,(function(e,t){return t&&(n=t),""})),i=T[t]||n;return{method:"POST",url:r+(r.indexOf("?")>-1?"&":"?")+"no_mapping=1"+(i?"&sp=".concat(i):""),data:JSON.stringify(e),bidObject:k[t]}}))),(0,M.A)(R?[{method:"POST",url:g||lo,data:JSON.stringify(R),bidsMap:S}]:[]))},interpretResponse:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.A4;e=e&&e.body;var i,o=[];e?e.seatbid&&!e.seatbid.length&&(i="Response has empty seatbid array"):i="Response is empty";var a=this.forceBidderName||this.code;return!i&&e.seatbid&&e.seatbid.forEach((function(e){!function(e,t,n,i,o){if(e){var a,s,c;if(e.adid||(a="Bid from response has no adid parameter - "+JSON.stringify(e)),a||e.adm||e.nurl){var d=t.bidsMap?t.bidsMap[e.impid]:t.bidObject,u=d||{},l=u.bid,p=u.savedPrebidBid;if(l&&(s=e.price,c=p&&p.cpm,!(0,r.Et)(c)||s>c||s===c&&Math.random()>.5)){var v={requestId:l.bidId,cpm:e.price,width:e.w,height:e.h,creativeId:e.adid,currency:"USD",netRevenue:!0,ttl:360,meta:{advertiserDomains:e.adomain?e.adomain:[]},dealId:e.dealid};d.savedPrebidBid=v,e.ext&&e.ext.bidder&&e.ext.bidder.grid&&e.ext.bidder.grid.demandSource&&(v.adserverTargeting={hb_ds:e.ext.bidder.grid.demandSource},v.meta.demandSource=e.ext.bidder.grid.demandSource),e.ext&&e.ext.dsa&&(v.meta.dsa=e.ext.dsa),"video"===e.content_type?(e.adm?(v.vastXml=e.adm,v.adResponse={content:v.vastXml}):e.nurl&&(v.vastUrl=e.nurl),v.mediaType=f.G_,l.renderer||l.mediaTypes&&l.mediaTypes.video&&"outstream"!==l.mediaTypes.video.context||(v.renderer=function(e,t,n){var i=n.install({id:t.id,url:t.url,loaded:!1});try{i.setRender(ho)}catch(e){(0,r.JE)("Prebid Error calling setRender on renderer",e)}return i}(0,{id:l.bidId,url:"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js"},i))):(v.ad=e.adm,v.mediaType=f.D4);var g=vo[o]&&vo[o].bidResponseExternal||{};n.push((0,r.D9)(v,g))}}else a="Bid from response has no adm parameter - "+JSON.stringify(e);a&&(0,r.vV)(a)}}(function(e){return e?e.bid?e.bid[0]||(0,r.vV)("Array of bid objects is empty"):(0,r.vV)("Seatbid from response has no array of bid objects - "+JSON.stringify(e)):(0,r.vV)("Seatbid array from response has empty item"),e&&e.bid&&e.bid[0]}(e),t,o,n,a)})),i&&(0,r.vV)(i),o},getUserSyncs:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[2],o=t[3];if(!go&&r.pixelEnabled){var a="";i&&("boolean"==typeof i.gdprApplies&&(a+="&gdpr=".concat(Number(i.gdprApplies))),"string"==typeof i.consentString&&(a+="&gdpr_consent=".concat(i.consentString))),o&&(a+="&us_privacy=".concat(o));var s=this.forceBidderName||this.code,c=vo[s]&&vo[s].syncurl||"https://x.bidswitch.net/sync?ssp=themediagrid";return go=!0,{type:"image",url:c+a}}},ajaxCall:function(e,t,n,r){return r.browsingTopics=!1,(0,oo.RD)(e,t,n,r)},onDataDeletionRequest:function(e){mo.ajaxCall("https://media.grid.bidswitch.net/uspapi_delete_c2s",null,null,{method:"GET"})}};function ho(e){e.renderer.push((function(){window.ANOutstreamVideo.renderAd({targetId:e.adUnitCode,adResponse:e.adResponse})}))}(0,ut.a$)(mo),(0,n.E)("gridBidAdapter");var bo={code:"justpremium",gvlid:62,time:6e4,isBidRequestValid:function(e){return!!(e&&e.params&&e.params.zone)},buildRequests:function(t,n){var r,o,a=(r={},o={},t.forEach((function(e){var t=e.params,n=t.zone;if(1!==r[n]){var i=t.allow||t.formats||[],a=t.exclude||[];if(0===i.length&&0===a.length)return r[t.zone]=1;r[n]=r[n]||[[],{}],r[n][0]=function(e){for(var t=e.concat(),n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)t[n]===t[r]&&t.splice(r--,1);return t}(r[n][0].concat(i)),a.forEach((function(e){r[n][1][e]?r[n][1][e]++:r[n][1][e]=1})),o[n]=o[n]||0,a.length&&o[n]++}})),Object.keys(o).forEach((function(e){if(1!==r[e]){var t=[];Object.keys(r[e][1]).forEach((function(n){r[e][1][n]===o[e]&&t.push(n)})),r[e][1]=t}})),Object.keys(r).forEach((function(e){1!==r[e]&&r[e][1].length&&(r[e][0].forEach((function(t){var n=r[e][1].indexOf(t);n>-1&&r[e][1].splice(n,1)})),r[e][0].length=0),1===r[e]||r[e][0].length||r[e][1].length||(r[e]=1)})),r),s=function(){var e;try{e=window.top}catch(t){e=window}return{screenWidth:e.screen.width,screenHeight:e.screen.height,innerWidth:e.innerWidth,innerHeight:e.innerHeight}}(),c=function(){if(!window.top)return null;var t,n=new URLSearchParams(window.top.location.search);return function(e){return 0===Object.keys(e).length?null:e}((t={ggAdbuyid:n.get("gg_adbuyid"),ggDealid:n.get("gg_dealid"),ggEadbuyid:n.get("gg_eadbuyid")},Object.fromEntries(Object.entries(t).filter((function(t){var n=(0,e.A)(t,2);return n[0],null!=n[1]})))))}(),d={zone:t.map((function(e){return parseInt(e.params.zone)})).filter((function(e,t,n){return n.indexOf(e)===t})),referer:n.refererInfo.page,sw:s.screenWidth,sh:s.screenHeight,ww:s.innerWidth,wh:s.innerHeight,c:a,id:t[0].params.zone,sizes:{},ggExt:c};t.forEach((function(e){var t=e.params.zone,n=d.sizes;n[t]=n[t]||[],n[t].push.apply(n[t],e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes)})),(0,i.A)(t[0],"userId.pubcid")?d.pubcid=(0,i.A)(t[0],"userId.pubcid"):(0,i.A)(t[0],"crumbs.pubcid")&&(d.pubcid=(0,i.A)(t[0],"crumbs.pubcid")),d.uids=t[0].userId,n&&n.gdprConsent&&(d.gdpr_consent={consent_string:n.gdprConsent.consentString,consent_required:"boolean"!=typeof n.gdprConsent.gdprApplies||n.gdprConsent.gdprApplies}),n&&n.uspConsent&&(d.us_privacy=n.uspConsent),d.version={prebid:"8.45.0",jp_adapter:"1.8.3"},t[0].schain&&(d.schain=t[0].schain);var u=JSON.stringify(d);return{method:"POST",url:"https://pre.ads.justpremium.com/v/2.0/t/xhr?i="+ +new Date,data:u,bids:t}},interpretResponse:function(e,t){var n=e.body,r=[];return t.bids.forEach((function(e){var t=function(e,t){var n=e.zone;if(t[n])for(var r=t[n].length;r--;)if(yo(e,t[n][r]))return t[n].splice(r,1).pop();return!1}(e.params,n.bid);if(t){var i=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes&&e.mediaTypes.banner.sizes.length&&e.mediaTypes.banner.sizes[0]||[],o={requestId:e.bidId,creativeId:t.id,width:i[0]||t.width,height:i[1]||t.height,ad:t.adm,cpm:t.price,netRevenue:!0,currency:t.currency||"USD",ttl:t.ttl||bo.time,format:t.format,meta:{advertiserDomains:t.adomain&&t.adomain.length>0?t.adomain:[]}};t.ext&&t.ext.pg&&(o.adserverTargeting={hb_deal_justpremium:"jp_pg"}),r.push(o)}})),r},getUserSyncs:function(e,t,n,r){var i="https://pre.ads.justpremium.com/v/1.0/t/sync?_c=a"+Math.random().toString(36).substring(7)+Date.now(),o=[];if(n&&"boolean"==typeof n.gdprApplies&&n.gdprApplies&&n.consentString&&(i=i+"&consentString="+encodeURIComponent(n.consentString)),r&&(i=i+"&usPrivacy="+encodeURIComponent(r)),e.iframeEnabled&&o.push({type:"iframe",url:i}),e.pixelEnabled&&0!==t.length){var a=t.map((function(e){var t;return null==e||null===(t=e.body)||void 0===t?void 0:t.pxs})).reduce((function(e,t){return e.concat(t)}),[]).filter((function(e){return void 0!==e}));o=[].concat((0,M.A)(o),(0,M.A)(a))}return o}};function yo(e,t){var n=t.format;return e.allow&&e.allow.length?e.allow.indexOf(n)>-1:!e.exclude||!e.exclude.length||e.exclude.indexOf(n)<0}function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ao(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_o(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,ut.a$)(bo),(0,n.E)("justpremiumBidAdapter");var wo="pubmatic",Io="PubMatic: ",Eo="USD",Oo=void 0,xo="https://pubmatic.bbvms.com/r/".concat("$RENDERER",".js"),So="Video.Placement param missing",Co={kadpageurl:"",gender:"",yob:"",lat:"",lon:"",wiid:"",profId:"",verId:""},To={NUMBER:"number",STRING:"string",BOOLEAN:"boolean",ARRAY:"array",OBJECT:"object"},ko={mimes:To.ARRAY,minduration:To.NUMBER,maxduration:To.NUMBER,startdelay:To.NUMBER,playbackmethod:To.ARRAY,api:To.ARRAY,protocols:To.ARRAY,w:To.NUMBER,h:To.NUMBER,battr:To.ARRAY,linearity:To.NUMBER,placement:To.NUMBER,plcmt:To.NUMBER,minbitrate:To.NUMBER,maxbitrate:To.NUMBER,skip:To.NUMBER},Do={ICON:1,IMAGE:3},Ro={1:"PMP",5:"PREF",6:"PMPG"},jo={bootstrapPlayer:function(e){var t={code:e.adUnitCode};if(e.vastXml?t.vastXml=e.vastXml:e.vastUrl&&(t.vastUrl=e.vastUrl),e.vastXml||e.vastUrl){for(var n,i=jo.getRendererId("pubmatic",e.rendererCode),o=document.getElementById(e.adUnitCode),a=0;a<window.bluebillywig.renderers.length;a++)if(window.bluebillywig.renderers[a]._id===i){n=window.bluebillywig.renderers[a];break}n?n.bootstrap(t,o):(0,r.JE)("".concat(Io,": Couldn't find a renderer with ").concat(i))}else(0,r.JE)("".concat(Io,": No vastXml or vastUrl on bid, bailing..."))},newRenderer:function(e,t){var n=xo.replace("$RENDERER",e),i=p.A4.install({url:n,loaded:!1,adUnitCode:t});try{i.setRender(jo.outstreamRender)}catch(e){(0,r.JE)("".concat(Io,": Error tying to setRender on renderer"),e)}return i},outstreamRender:function(e){e.renderer.push((function(){jo.bootstrapPlayer(e)}))},getRendererId:function(e,t){return"".concat(e,"-").concat(t)}},Po=[f.D4,f.G_,f.s6],Bo=0,Uo=!1,No=["pubmatic"],qo=["all"];function Mo(e,t){if(!(0,r.O8)(t))return t&&(0,r.JE)(Io+"Ignoring param key: "+e+", expects string-value, found "+(0,dt.A)(t)),Oo;switch(e){case"pmzoneid":return t.split(",").slice(0,50).map((function(e){return e.trim()})).join();case"kadfloor":case"lat":case"lon":return parseFloat(t)||Oo;case"yob":return parseInt(t)||Oo;default:return t}}function Lo(e,t,n){var i,o="Ignoring param key: "+e+", expects "+n+", found "+(0,dt.A)(t);switch(n){case To.BOOLEAN:i=r.Lm;break;case To.NUMBER:i=r.Et;break;case To.STRING:i=r.O8;break;case To.ARRAY:i=r.cy}return i(t)?t:((0,r.JE)(Io+o),Oo)}var Wo={desc:"desc",desc2:"desc2",body:"desc",body2:"desc2",sponsoredBy:"sponsored",cta:"ctatext",rating:"rating",address:"address",downloads:"downloads",likes:"likes",phone:"phone",price:"price",salePrice:"saleprice",displayUrl:"displayurl",saleprice:"saleprice",displayurl:"displayurl"},Fo=Object.values(Wo);function Vo(e){var t;if(e.ortb){e=e.ortb,t=Ao(Ao({ver:"1.2"},e),{},{assets:[]});var n=e.assets,i=function(e){return e.title||e.img||e.data||e.video};if(n.length<1||!n.some((function(e){return i(e)})))return(0,r.JE)("".concat(Io,": Native assets object is empty or contains some invalid object")),Uo=!0,t;n.forEach((function(e){var n=e;n.img&&(n.img.type==Do.IMAGE?(n.w=n.w||n.width||(n.sizes?n.sizes[0]:Oo),n.h=n.h||n.height||(n.sizes?n.sizes[1]:Oo),n.wmin=n.wmin||n.minimumWidth||(n.minsizes?n.minsizes[0]:Oo),n.hmin=n.hmin||n.minimumHeight||(n.minsizes?n.minsizes[1]:Oo)):n.img.type==Do.ICON&&(n.w=n.w||n.width||(n.sizes?n.sizes[0]:Oo),n.h=n.h||n.height||(n.sizes?n.sizes[1]:Oo))),n&&void 0!==n.id&&i(n)&&t.assets.push(n)}))}else t=function(e){if(!e&&!(0,r.Qd)(e))return(0,r.JE)("".concat(Io,": Native assets object is empty or not an object: ").concat(e)),void(Uo=!0);var t={ver:"1.2",assets:[]};for(var n in e)if(!s._B.includes(n))if(s.x5.hasOwnProperty(n)||Fo.includes(n)){var i=e[n],o=0;i.required&&(0,r.Lm)(i.required)&&(o=Number(i.required));var a={id:t.assets.length,required:o};if(n in Wo)a.data={type:s.jO[Wo[n]]},(i.len||i.length)&&(a.data.len=i.len||i.length),i.ext&&(a.data.ext=i.ext);else if("icon"===n||"image"===n){if(a.img={type:"icon"===n?s.oA.ICON:s.oA.MAIN},i.aspect_ratios)if((0,r.cy)(i.aspect_ratios))if(i.aspect_ratios.length){var c=i.aspect_ratios[0],d=c.min_width,u=c.min_height;(0,r.Fq)(d)&&(0,r.Fq)(u)?(a.img.wmin=d,a.img.hmin=u):(0,r.JE)("".concat(Io,": image.aspect_ratios min_width or min_height are invalid: ").concat(d,", ").concat(u));var l=i.aspect_ratios.filter((function(e){return e.ratio_width&&e.ratio_height})).map((function(e){return"".concat(e.ratio_width,":").concat(e.ratio_height)}));l.length>0&&(a.img.ext={aspectratios:l})}else(0,r.JE)("".concat(Io,": image.aspect_ratios was passed, but it's empty: ").concat(i.aspect_ratios));else(0,r.JE)("".concat(Io,": image.aspect_ratios was passed, but it's not a an array: ").concat(i.aspect_ratios));a.img.w=i.w||i.width,a.img.h=i.h||i.height,a.img.wmin=i.wmin||i.minimumWidth||(i.minsizes?i.minsizes[0]:Oo),a.img.hmin=i.hmin||i.minimumHeight||(i.minsizes?i.minsizes[1]:Oo),i.sizes&&(2===i.sizes.length&&(0,r.Fq)(i.sizes[0])&&(0,r.Fq)(i.sizes[1])?((0,r.fH)("".concat(Io,": if asset.sizes exist, by OpenRTB spec we should remove wmin and hmin")),a.img.w=i.sizes[0],a.img.h=i.sizes[1],delete a.img.hmin,delete a.img.wmin):(0,r.JE)("".concat(Io,": image.sizes was passed, but its value is not an array of integers: ").concat(i.sizes))),i.ext&&(a.img.ext=i.ext),i.mimes&&(a.img.mimes=i.mimes)}else"title"===n?(a.title={len:i.len||i.length||140},i.ext&&(a.title.ext=i.ext)):"ext"===n&&(a.ext=i,delete a.required);t.assets.push(a)}else(0,r.JE)("".concat(Io,": Unrecognized native asset code: ").concat(n,". Asset will be ignored."));return t.assets.length<1?((0,r.JE)("".concat(Io,": Could not find any valid asset")),void(Uo=!0)):t}(e);return t}function Go(e){var t,n=e.mediaTypes.banner.sizes,i=[];if(n!==Oo&&(0,r.cy)(n)){if(t={},e.params.width||e.params.height)t.w=e.params.width,t.h=e.params.height;else{if(0===n.length)return t=Oo,(0,r.JE)(Io+"Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),t;t.w=parseInt(n[0][0],10),t.h=parseInt(n[0][1],10),n=n.splice(1,n.length-1)}n.length>0&&(i=[],n.forEach((function(e){e.length>1&&i.push({w:e[0],h:e[1]})})),i.length>0&&(t.format=i)),t.pos=0,t.topframe=(0,r.al)()?0:1}else(0,r.JE)(Io+"Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),t=Oo;return t}function zo(e){var t,n=(0,r.D9)((0,i.A)(e.mediaTypes,"video"),e.params.video);if(n!==Oo){for(var o in t={},function(e,t){(0,i.A)(e,"placement")||(0,r.JE)(So+" for "+t)}(n,e.adUnitCode),ko)n.hasOwnProperty(o)&&(t[o]=Lo(o,n[o],ko[o]));(0,r.cy)(e.mediaTypes.video.playerSize[0])?(t.w=parseInt(e.mediaTypes.video.playerSize[0][0],10),t.h=parseInt(e.mediaTypes.video.playerSize[0][1],10)):(0,r.Et)(e.mediaTypes.video.playerSize[0])&&(t.w=parseInt(e.mediaTypes.video.playerSize[0],10),t.h=parseInt(e.mediaTypes.video.playerSize[1],10))}else t=Oo,(0,r.JE)(Io+"Error: Video config params missing for adunit: "+e.params.adUnit+" with mediaType set as video. Ignoring video impression in the adunit.");return t}function Ho(e,t){(t=t.filter((function(e){return"string"==typeof e||((0,r.JE)(Io+"acat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,t,n){return n.indexOf(e)===t}))).length>0&&((0,r.JE)(Io+"acat: Selected: ",t),e.ext.acat=t)}function Jo(e){return!0===(0,r.cy)(e)&&e.length>0}var Ko={code:wo,gvlid:76,supportedMediaTypes:[f.D4,f.G_,f.s6],isBidRequestValid:function(e){if(e&&e.params){if(!(0,r.O8)(e.params.publisherId))return(0,r.JE)(Io+"Error: publisherId is mandatory and cannot be numeric (wrap it in quotes in your config). Call to OpenBid will not be sent for ad unit: "+JSON.stringify(e)),!1;if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(f.G_)){var t=(0,i.A)(e.mediaTypes,"video.mimes"),n=(0,i.A)(e,"params.video.mimes");if(!1===Jo(t)&&!1===Jo(n))return(0,r.JE)(Io+"Error: For video ads, bid.mediaTypes.video.mimes OR bid.params.video.mimes should be present and must be a non-empty array. Call to OpenBid will not be sent for ad unit:"+JSON.stringify(e)),!1;if(!e.mediaTypes[f.G_].hasOwnProperty("context"))return(0,r.vV)("".concat(Io,": no context specified in bid. Rejecting bid: "),e),!1;if("outstream"===e.mediaTypes[f.G_].context&&!(0,r.O8)(e.params.outstreamAU)&&!e.hasOwnProperty("renderer")&&!e.mediaTypes[f.G_].hasOwnProperty("renderer"))return e.mediaTypes.hasOwnProperty(f.D4)||e.mediaTypes.hasOwnProperty(f.s6)?(delete e.mediaTypes[f.G_],(0,r.JE)("".concat(Io,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting mediatype Video of bid: '),e),!0):((0,r.vV)("".concat(Io,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting bid: '),e),!1)}return!0}return!1},buildRequests:function(e,t){var n,a,s,c,d,u,p;t&&t.refererInfo&&(p=t.refererInfo);var v,g=function(e){return{pageURL:(null==e?void 0:e.page)||window.location.href,refURL:(null==e?void 0:e.ref)||window.document.referrer}}(p),m=function(e){return{id:""+(new Date).getTime(),at:1,cur:[Eo],imp:[],site:{page:e.pageURL,ref:e.refURL,publisher:{}},device:{ua:navigator.userAgent,js:1,dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,h:screen.height,w:screen.width,language:navigator.language},user:{},ext:{}}}(g),h="",b=[],y=[],_=[],A=(0,r.lk)();if(e.forEach((function(e){var n;if(e.params.wiid=e.params.wiid||t.auctionId||A,(v=(0,r.Go)(e)).params.adSlot=v.params.adSlot||"",function(e){var t;e.params.adUnit="",e.params.adUnitIndex="0",e.params.width=0,e.params.height=0,e.params.adSlot=(t=e.params.adSlot,(0,r.O8)(t)?t.replace(/^\s+/g,"").replace(/\s+$/g,""):(t&&(0,r.JE)(wo+": adSlot must be a string. Ignoring adSlot"),""));var n=e.params.adSlot,i=n.split(":");if(n=i[0],2==i.length&&(e.params.adUnitIndex=i[1]),i=n.split("@"),e.params.adUnit=i[0],i.length>1){if(2!=(i=i[1].split("x")).length)return void(0,r.JE)(Io+"AdSlot Error: adSlot not in required format");e.params.width=parseInt(i[0],10),e.params.height=parseInt(i[1],10)}else if(e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(f.D4)&&e.mediaTypes.banner.hasOwnProperty("sizes")){for(var o=0,a=[];o<e.mediaTypes.banner.sizes.length;o++)2===e.mediaTypes.banner.sizes[o].length&&a.push(e.mediaTypes.banner.sizes[o]);e.mediaTypes.banner.sizes=a,e.mediaTypes.banner.sizes.length>=1&&(e.params.width=e.mediaTypes.banner.sizes[0][0],e.params.height=e.mediaTypes.banner.sizes[0][1],e.mediaTypes.banner.sizes=e.mediaTypes.banner.sizes.splice(1,e.mediaTypes.banner.sizes.length-1))}}(v),v.mediaTypes&&v.mediaTypes.hasOwnProperty("video")||v.params.hasOwnProperty("video"));else if(!(v.hasOwnProperty("mediaTypes")&&v.mediaTypes.hasOwnProperty(f.s6)||0!==v.params.width||0!==v.params.height))return void(0,r.JE)(Io+"Skipping the non-standard adslot: ",v.params.adSlot,JSON.stringify(v));g.pubId=g.pubId||v.params.publisherId,g=function(e,t){var n,i,o;for(n in t.kadpageurl||(t.kadpageurl=t.pageURL),Co)Co.hasOwnProperty(n)&&(i=e[n])&&(o=Co[n],"object"===(0,dt.A)(o)&&(i=o.f(i,t)),(0,r.O8)(i)?t[n]=i:(0,r.JE)(Io+"Ignoring param : "+n+" with value : "+Co[n]+", expects string-value, found "+(0,dt.A)(i)));return t}(v.params,g),g.transactionId=null===(n=v.ortb2Imp)||void 0===n||null===(n=n.ext)||void 0===n?void 0:n.tid,""===h?h=v.params.currency||Oo:v.params.hasOwnProperty("currency")&&h!==v.params.currency&&(0,r.JE)(Io+"Currency specifier ignored. Only one currency permitted."),v.params.currency=h,v.params.hasOwnProperty("dctr")&&(0,r.O8)(v.params.dctr)&&b.push(v.params.dctr),v.params.hasOwnProperty("bcat")&&(0,r.cy)(v.params.bcat)&&(y=y.concat(v.params.bcat)),v.params.hasOwnProperty("acat")&&(0,r.cy)(v.params.acat)&&(_=_.concat(v.params.acat));var a=function(e,t){var n,a,s={},c={},d=e.hasOwnProperty("sizes")?e.sizes:[],u="",p=[],v=null==t?void 0:t.fledgeEnabled;if(function(e,t){t.params.deals&&((0,r.cy)(t.params.deals)?t.params.deals.forEach((function(t){(0,r.O8)(t)&&t.length>3?(e.pmp||(e.pmp={private_auction:0,deals:[]}),e.pmp.deals.push({id:t})):(0,r.JE)(Io+"Error: deal-id present in array bid.params.deals should be a strings with more than 3 charaters length, deal-id ignored: "+t)})):(0,r.JE)(Io+"Error: bid.params.deals should be an array of strings."))}(s={id:e.bidId,tagid:e.params.adUnit||void 0,bidfloor:Mo("kadfloor",e.params.kadfloor),secure:1,ext:{pmZoneId:Mo("pmzoneid",e.params.pmzoneid)},bidfloorcur:e.params.currency?Mo("currency",e.params.currency):Eo},e),function(e,t){var n,i="";if(t.params.dctr)if(i=t.params.dctr,(0,r.O8)(i)&&i.length>0){var o=i.split("|");i="",o.forEach((function(e){i+=e.length>0?e.trim()+"|":""})),n=i.length,"|"===i.substring(n,n-1)&&(i=i.substring(0,n-1)),e.ext.key_val=i.trim()}else(0,r.JE)(Io+"Ignoring param : dctr with value : "+i+", expects string-value, found empty or non-string value")}(s,e),function(e,t){var n=t.rtd&&t.rtd.jwplayer&&t.rtd.jwplayer.targeting||void 0,r="";if(void 0!==n&&""!==n&&n.hasOwnProperty("segments")){var i,o=n.segments.length;r+="jw-id="+n.content.id;for(var a=0;a<o;a++)r+="|jw-"+n.segments[a]+"=1";(i=e.ext)&&void 0===i.key_val?i.key_val=r:i.key_val+="|"+r}}(s,e),e.hasOwnProperty("mediaTypes"))for(u in e.mediaTypes)switch(u){case f.D4:(n=Go(e))!==Oo&&(s.banner=n);break;case f.s6:c.request=JSON.stringify(Vo(e.nativeParams)),Uo?((0,r.JE)(Io+"Error: Error in Native adunit "+e.params.adUnit+". Ignoring the adunit. Refer to http://prebid.org/dev-docs/show-native-ads.html for more details."),Uo=!1):s.native=c;break;case f.G_:(a=zo(e))!==Oo&&(s.video=a)}else n={pos:0,w:e.params.width,h:e.params.height,topframe:(0,r.al)()?0:1},(0,r.cy)(d)&&d.length>1&&((d=d.splice(1,d.length-1)).forEach((function(e){p.push({w:e[0],h:e[1]})})),n.format=p),s.banner=n;return function(e,t){var n=Ao({},(0,i.A)(t,"ortb2Imp.ext.data"));Object.keys(n).forEach((function(t){"pbadslot"===t?"string"==typeof n[t]&&n[t]&&o(e,"ext.data.pbadslot",n[t]):"adserver"===t?["name","adslot"].forEach((function(t){var r=(0,i.A)(n,"adserver.".concat(t));"string"==typeof r&&r&&(o(e,"ext.data.adserver.".concat(t.toLowerCase()),r),"adslot"===t&&o(e,"ext.dfp_ad_unit_code",r))})):o(e,"ext.data.".concat(t),n[t])}));var r=(0,i.A)(t,"ortb2Imp.ext.gpid");r&&o(e,"ext.gpid",r)}(s,e),function(e,t){var n=-1;"function"!=typeof t.getFloor||l.$W.getConfig("pubmatic.disableFloors")||[f.D4,f.G_,f.s6].forEach((function(i){if(e.hasOwnProperty(i)){var o=[];"banner"===i&&(e[i].w&&e[i].h&&o.push([e[i].w,e[i].h]),(0,r.cy)(e[i].format)&&e[i].format.forEach((function(e){return o.push([e.w,e.h])}))),0===o.length&&o.push("*"),o.forEach((function(o){var a=t.getFloor({currency:e.bidfloorcur,mediaType:i,size:o});if((0,r.fH)(Io,"floor from floor module returned for mediatype:",i," and size:",o," is: currency",a.currency,"floor",a.floor),"object"===(0,dt.A)(a)&&a.currency===e.bidfloorcur&&!isNaN(parseInt(a.floor))){var s=parseFloat(a.floor);(0,r.fH)(Io,"floor from floor module:",s,"previous floor value",n,"Min:",Math.min(s,n)),n=-1===n?s:Math.min(s,n),(0,r.fH)(Io,"new floor value:",n)}}))}})),e.bidfloor&&((0,r.fH)(Io,"floor from floor module:",n,"impObj.bidfloor",e.bidfloor,"Max:",Math.max(n,e.bidfloor)),n=Math.max(n,e.bidfloor)),e.bidfloor=!isNaN(n)&&n>0?n:Oo,(0,r.fH)(Io,"new impObj.bidfloor value:",e.bidfloor)}(s,e),function(e,t,n){var r,i;n?(e.ext=e.ext||{},void 0!==(null==t||null===(r=t.ortb2Imp)||void 0===r||null===(r=r.ext)||void 0===r?void 0:r.ae)&&(e.ext.ae=t.ortb2Imp.ext.ae)):null!==(i=e.ext)&&void 0!==i&&i.ae&&delete e.ext.ae}(s,e,v),s.hasOwnProperty(f.D4)||s.hasOwnProperty(f.s6)||s.hasOwnProperty(f.G_)?s:Oo}(v,t);a&&m.imp.push(a)})),0!=m.imp.length){m.site.publisher.id=g.pubId.trim(),Bo=g.pubId.trim(),m.ext.wrapper={},m.ext.wrapper.profile=parseInt(g.profId)||Oo,m.ext.wrapper.version=parseInt(g.verId)||Oo,m.ext.wrapper.wiid=g.wiid||t.auctionId,m.ext.wrapper.wv="prebid_prebid_8.45.0",m.ext.wrapper.transactionId=g.transactionId,m.ext.wrapper.wp="pbjs";var w,I,E=t?L.u.get(t.bidderCode,"allowAlternateBidderCodes"):void 0;if(void 0!==E){if(m.ext.marketplace={},t&&1==E){var O=L.u.get(t.bidderCode,"allowedAlternateBidderCodes");(0,r.cy)(O)?(O=O.map((function(e){return e.trim().toLowerCase()})).filter((function(e){return!!e})).filter(r.hj),No=O.includes("*")?qo:[].concat((0,M.A)(No),(0,M.A)(O))):No=qo}m.ext.marketplace.allowedbidders=No.filter(r.hj)}m.user.gender=g.gender?g.gender.trim():Oo,m.user.geo={},m.user.yob=Mo("yob",g.yob),m.site.page=g.kadpageurl.trim()||m.site.page.trim(),m.site.domain=(w=m.site.page,(I=document.createElement("a")).href=w,I.hostname),"object"===(0,dt.A)(l.$W.getConfig("content"))&&(m.site.content=l.$W.getConfig("content")),"object"===(0,dt.A)(l.$W.getConfig("device"))&&(m.device=Object.assign(m.device,l.$W.getConfig("device"))),m.device.language=m.device.language&&m.device.language.split("-")[0],o(m,"source.tid",null==t||null===(n=t.ortb2)||void 0===n||null===(n=n.source)||void 0===n?void 0:n.tid),-1!==window.location.href.indexOf("pubmaticTest=true")&&(m.test=1),e[0].schain&&o(m,"source.ext.schain",e[0].schain),t&&t.gdprConsent&&(o(m,"user.ext.consent",t.gdprConsent.consentString),o(m,"regs.ext.gdpr",t.gdprConsent.gdprApplies?1:0)),t&&t.uspConsent&&o(m,"regs.ext.us_privacy",t.uspConsent),null!=t&&null!==(a=t.gppConsent)&&void 0!==a&&a.gppString?(o(m,"regs.gpp",t.gppConsent.gppString),o(m,"regs.gpp_sid",t.gppConsent.applicableSections)):null!=t&&null!==(s=t.ortb2)&&void 0!==s&&null!==(s=s.regs)&&void 0!==s&&s.gpp&&(o(m,"regs.gpp",t.ortb2.regs.gpp),o(m,"regs.gpp_sid",t.ortb2.regs.gpp_sid)),!0===l.$W.getConfig("coppa")&&o(m,"regs.coppa",1),null!=t&&null!==(c=t.ortb2)&&void 0!==c&&null!==(c=c.regs)&&void 0!==c&&null!==(c=c.ext)&&void 0!==c&&c.dsa&&o(m,"regs.ext.dsa",t.ortb2.regs.ext.dsa),function(e,t){var n=(0,i.A)(t,"0.userIdAsEids");(0,r.cy)(n)&&n.length>0&&o(e,"user.eids",n)}(m,e);var x,S=t&&t.ortb2||{},C=S.user,T=S.device,k=S.site,D=S.bcat,R=S.badv;if(k){var j=m.site,P=j.page,B=j.domain,U=j.ref;(0,r.D9)(m,{site:k}),m.site.page=P,m.site.domain=B,m.site.ref=U}if(C&&(0,r.D9)(m,{user:C}),R&&(0,r.D9)(m,{badv:R}),D&&(y=y.concat(D)),null!=T&&T.sua&&(m.device.sua=null==T?void 0:T.sua),null!=T&&null!==(d=T.ext)&&void 0!==d&&d.cdep&&o(m,"device.ext.cdep",T.ext.cdep),null!=C&&C.geo&&null!=T&&T.geo?(m.device.geo=Ao(Ao({},m.device.geo),T.geo),m.user.geo=Ao(Ao({},m.user.geo),C.geo)):(null!=C&&C.geo||null!=T&&T.geo)&&(m.user.geo=m.device.geo=null!=C&&C.geo?Ao(Ao({},m.user.geo),C.geo):Ao(Ao({},m.user.geo),T.geo)),null!==(u=S.ext)&&void 0!==u&&null!==(u=u.prebid)&&void 0!==u&&null!==(u=u.bidderparams)&&void 0!==u&&null!==(u=u[t.bidderCode])&&void 0!==u&&u.acat){var N=S.ext.prebid.bidderparams[t.bidderCode].acat;Ho(m,N)}else _.length&&Ho(m,_);return function(e,t){(t=t.filter((function(e){return"string"==typeof e||((0,r.JE)(Io+"bcat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,t,n){if(e.length>3)return n.indexOf(e)===t;(0,r.JE)(Io+"bcat: Each category should have a value of a length of more than 3 characters, ignoring category: "+e)}))).length>0&&((0,r.JE)(Io+"bcat: Selected: ",t),e.bcat=t)}(m,y),null!=t&&t.timeout?m.tmax=t.timeout:m.tmax=null===(x=window)||void 0===x||null===(x=x.PWT)||void 0===x||null===(x=x.versionDetails)||void 0===x?void 0:x.timeout,m.ext.epoch=(new Date).getTime(),"object"===(0,dt.A)(l.$W.getConfig("app"))&&(m.app=l.$W.getConfig("app"),m.app.publisher=m.site.publisher,m.app.ext=m.site.ext||Oo,"object"!==(0,dt.A)(m.app.content)&&(m.app.content=m.site.content||Oo),delete m.site),{method:"POST",url:"https://hbopenbid.pubmatic.com/translator?source=prebid-client",data:JSON.stringify(m),bidderRequest:t}}},interpretResponse:function(t,n){var o=[],a=Eo,s=JSON.parse(n.data),c=s.site&&s.site.ref?s.site.ref:"";try{t.body&&t.body.seatbid&&(0,r.cy)(t.body.seatbid)&&(a=t.body.cur||a,t.body.seatbid.forEach((function(e){e.bid&&(0,r.cy)(e.bid)&&e.bid.forEach((function(t){var d={requestId:t.impid,cpm:parseFloat((t.price||0).toFixed(2)),width:t.w,height:t.h,creativeId:t.crid||t.id,dealId:t.dealid,currency:a,netRevenue:!0,ttl:300,referrer:c,ad:t.adm,pm_seat:e.seat||null,pm_dspid:t.ext&&t.ext.dspid?t.ext.dspid:null,partnerImpId:t.id||""};s.imp&&s.imp.length>0&&s.imp.forEach((function(e){if(t.impid===e.id)switch(function(e,t){if(e.ext&&null!=e.ext.bidtype)t.mediaType=Po[e.ext.bidtype];else{(0,r.fH)(Io+"bid.ext.bidtype does not exist, checking alternatively for mediaType");var n=e.adm,i="",o=new RegExp(/VAST\s+version/);if(n.indexOf('span class="PubAPIAd"')>=0)t.mediaType=f.D4;else if(o.test(n))t.mediaType=f.G_;else try{(i=JSON.parse(n.replace(/\\/g,"")))&&i.native&&(t.mediaType=f.s6)}catch(e){(0,r.JE)(Io+"Error: Cannot parse native reponse for ad response: "+n)}}}(t,d),d.mediaType){case f.D4:break;case f.G_:d.width=t.hasOwnProperty("w")?t.w:e.video.w,d.height=t.hasOwnProperty("h")?t.h:e.video.h,d.vastXml=t.adm,function(e,t){var n,r,i;if(t.bidderRequest&&t.bidderRequest.bids){for(var o=0;o<t.bidderRequest.bids.length;o++)t.bidderRequest.bids[o].bidId===e.requestId&&(n=t.bidderRequest.bids[o].params,r=t.bidderRequest.bids[o].mediaTypes[f.G_].context,i=t.bidderRequest.bids[o].adUnitCode);r&&"outstream"===r&&n&&n.outstreamAU&&i&&(e.rendererCode=n.outstreamAU,e.renderer=jo.newRenderer(e.rendererCode,i))}}(d,n),function(e,t,n){var o,a;if(null!=t&&null!==(o=t.ext)&&void 0!==o&&o.prebiddealpriority){var s=(0,r.D4)(e.requestId,[n.bidderRequest]),c=(0,i.A)(s,"mediaTypes.video");if((null==c?void 0:c.context)==f.LM){var d=(null==t||null===(a=t.ext)||void 0===a||null===(a=a.video)||void 0===a?void 0:a.duration)||(null==c?void 0:c.maxduration);e.video={context:f.LM,durationSeconds:d,dealTier:t.ext.prebiddealpriority}}}}(d,t,n);break;case f.s6:!function(e,t){if(e.hasOwnProperty("adm")){var n="";try{n=JSON.parse(e.adm.replace(/\\/g,""))}catch(e){return void(0,r.JE)(Io+"Error: Cannot parse native reponse for ad response: "+t.adm)}t.native={ortb:Ao({},n.native)},t.mediaType=f.s6,t.width||(t.width=0),t.height||(t.height=0)}}(t,d)}})),t.ext&&t.ext.deal_channel&&(d.dealChannel=Ro[t.ext.deal_channel]||null),function(e,t,n){e.meta={},t.ext&&t.ext.dspid&&(e.meta.networkId=t.ext.dspid,e.meta.demandSource=t.ext.dspid),t.ext&&t.ext.dchain&&(e.meta.dchain=t.ext.dchain);var r=n||t.ext&&t.ext.advid;r&&(e.meta.advertiserId=r,e.meta.agencyId=r,e.meta.buyerId=r),t.adomain&&Jo(t.adomain)&&(e.meta.advertiserDomains=t.adomain,e.meta.clickUrl=t.adomain[0],e.meta.brandId=t.adomain[0]),t.cat&&Jo(t.cat)&&(e.meta.secondaryCatIds=t.cat,e.meta.primaryCatId=t.cat[0]),t.ext&&t.ext.dsa&&Object.keys(t.ext.dsa).length&&(e.meta.dsa=t.ext.dsa)}(d,t,e.seat),e.ext&&e.ext.buyid&&(d.adserverTargeting={hb_buyid_pubmatic:e.ext.buyid}),t.ext&&t.ext.marketplace&&(d.bidderCode=t.ext.marketplace),o.push(d)}))})));var d=(0,i.A)(t.body,"ext.fledge_auction_configs");if(d)return d=Object.entries(d).map((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];return{bidId:r,config:Object.assign({auctionSignals:{}},i)}})),{bids:o,fledgeAuctionConfigs:d}}catch(e){(0,r.vV)(e)}return o},getUserSyncs:function(e,t,n,r,i){var o,a,s=""+Bo;return n&&(s+="&gdpr="+(n.gdprApplies?1:0),s+="&gdpr_consent="+encodeURIComponent(n.consentString||"")),r&&(s+="&us_privacy="+encodeURIComponent(r)),null!=i&&i.gppString&&null!=i&&null!==(o=i.applicableSections)&&void 0!==o&&o.length&&(s+="&gpp="+encodeURIComponent(i.gppString),s+="&gpp_sid="+encodeURIComponent(null==i||null===(a=i.applicableSections)||void 0===a?void 0:a.join(","))),!0===l.$W.getConfig("coppa")&&(s+="&coppa=1"),e.iframeEnabled?[{type:"iframe",url:"https://ads.pubmatic.com/AdServer/js/user_sync.html?kdntuid=1&p="+s}]:[{type:"image",url:"https://image8.pubmatic.com/AdServer/ImgSync?p="+s}]}};(0,ut.a$)(Ko),(0,n.E)("pubmaticBidAdapter");var $o="spotx",Qo={consented_providers:["3","7","11","12","15","20","22","35","43","46","48","55","57","61","62","66","70","80","83","85","86","89","93","108","122","124","125","126","131","134","135","136","143","144","147","149","153","154","159","161","162","165","167","171","178","184","188","192","195","196","202","209","211","218","221","228","229","230","236","239","241","253","255","259","266","271","272","274","286","291","294","303","308","310","311","313","314","316","317","322","323","327","336","338","340","348","350","358","359","363","367","370","371","384","385","389","393","394","397","398","407","414","415","424","429","430","432","436","438","440","442","443","445","448","449","453","459","479","482","486","491","492","494","495","503","505","510","522","523","528","537","540","550","559","560","568","571","574","575","576","584","585","587","588","590","591","592","595","609","621","624","723","725","733","737","776","780","782","787","797","798","802","803","814","817","820","821","827","829","839","853","864","867","874","899","904","922","926","931","932","933","938","955","973","976","979","981","985","987","991","1003","1024","1025","1027","1028","1029","1033","1034","1040","1047","1048","1051","1052","1053","1054","1062","1063","1067","1072","1085","1092","1095","1097","1099","1100","1107","1126","1127","1143","1149","1152","1162","1166","1167","1170","1171","1172","1188","1192","1199","1201","1204","1205","1211","1212","1215","1220","1225","1226","1227","1230","1232","1236","1241","1248","1250","1252","1268","1275","1276","1284","1286","1298","1301","1307","1312","1313","1317","1329","1336","1344","1345","1356","1362","1365","1375","1403","1409","1411","1415","1416","1419","1423","1440","1442","1449","1451","1455","1456","1468","1496","1503","1509","1512","1514","1517","1520","1525","1540","1547","1548","1555","1558","1570","1575","1577","1579","1583","1584","1591","1598","1603","1608","1613","1616","1626","1631","1633","1638","1642","1648","1651","1652","1653","1660","1665","1667","1669","1671","1674","1677","1678","1682","1684","1697","1703","1705","1716","1720","1721","1722","1725","1732","1733","1735","1739","1741","1745","1750","1753","1760","1765","1769","1776","1780","1782","1786","1791","1794","1799","1800","1801","1810","1827","1831","1832","1834","1837","1840","1843","1844","1845","1858","1859","1863","1866","1870","1872","1875","1878","1880","1882","1883","1889","1892","1896","1898","1899","1902","1905","1911","1922","1928","1929","1934","1942","1943","1944","1945","1958","1960","1962","1963","1964","1967","1968","1978","1985","1986","1987","1998","2003","2007","2012","2013","2027","2035","2038","2039","2044","2047","2052","2056","2059","2062","2064","2068","2070","2072","2078","2079","2084","2088","2090","2095","2100","2103","2107","2109","2113","2115","2121","2127","2130","2133","2137","2140","2141","2145","2147","2150","2156","2166","2170","2171","2176","2177","2179","2183","2186","2192","2198","2202","2205","2214","2216","2219","2220","2222","2223","2224","2225","2227","2228","2234","2238","2247","2251","2253","2262","2264","2271","2276","2278","2279","2282","2290","2292","2295","2299","2305","2306","2310","2311","2312","2315","2320","2325","2328","2331","2334","2335","2336","2337","2343","2346","2354","2357","2358","2359","2366","2370","2373","2376","2377","2380","2382","2387","2389","2392","2394","2400","2403","2405","2406","2407","2410","2411","2413","2414","2415","2416","2418","2422","2425","2427","2435","2437","2440","2441","2447","2453","2459","2461","2462","2464","2467","2468","2472","2477","2481","2484","2486","2492","2493","2496","2497","2498","2499","2504","2506","2510","2511","2512","2517","2526","2527","2531","2532","2534","2542","2544","2552","2555","2559","2563","2564","2567","2568","2569","2571","2572","2573","2575","2577","2579","2583","2584","2586","2589","2595","2596","2597","2601","2604","2605","2609","2610","2612","2614","2621","2622","2624","2628","2629","2632","2634","2636","2639","2643","2645","2646","2647","2649","2650","2651","2652","2656","2657","2658","2660","2661","2662","2663","2664","2669","2670","2673","2676","2677","2678","2681","2682","2684","2685","2686","2689","2690","2691","2695","2698","2699","2702","2704","2705","2706","2707","2709","2710","2713","2714","2727","2729","2739","2758","2765","2766","2767","2768","2770","2771","2772","2776","2777","2778","2779","2780","2783","2784","2786","2787","2791","2792","2793","2797","2798","2801","2802","2803","2805","2808","2809","2810","2811","2812","2813","2814","2817","2818","2824","2826","2827","2829","2830","2831","2832","2834","2836","2838","2840","2842","2843","2844","2850","2851","2852","2854","2858","2860","2862","2864","2865","2866","2867","2868","2869","2871"]},Xo={code:$o,gvlid:165,supportedMediaTypes:[f.G_],isBidRequestValid:function(e){if(e&&"object"!==(0,dt.A)(e.params))return(0,r.vV)($o+": params is not defined or is incorrect in the bidder settings."),!1;if(!(0,i.A)(e,"mediaTypes.video"))return(0,r.vV)($o+": mediaTypes.video is not present in the bidder settings."),!1;var t=(0,i.A)(e,"mediaTypes.video.playerSize");if(!t||!(0,r.cy)(t))return(0,r.vV)($o+": mediaTypes.video.playerSize is not defined in the bidder settings."),!1;if(!(0,r.u5)("channel_id",e.params))return(0,r.vV)($o+": channel_id is not present in bidder params"),!1;if(("outstream"==(0,i.A)(e,"mediaTypes.video.context")||"outstream"==(0,i.A)(e,"params.ad_unit"))&&!(0,r.u5)("outstream_function",e.params)){if(!(0,r.u5)("outstream_options",e.params))return(0,r.vV)($o+": please define outstream_options parameter or override the default SpotX outstream rendering by defining your own Outstream function using field outstream_function."),!1;if(!(0,r.u5)("slot",e.params.outstream_options))return(0,r.vV)($o+": please define parameter slot in outstream_options object in the configuration."),!1}return!0},buildRequests:function(e,t){var n=t.refererInfo.page||t.refererInfo.topmostLocation,a=!!n.match(/^https:/);return e.map((function(e){var s;s=(0,r.u5)("page",e.params)?(0,r.u5)("page",e.params):n;var c=(0,r.u5)("channel_id",e.params),d=null,u=(0,i.A)(e,"mediaTypes.video.playerSize"),p=u[0][0],f=u[0][1],v=a||((0,r.u5)("secure",e.params)?1:0),g={sdk_name:"Prebid 1+",versionOrtb:"2.3"};if(""!=(0,r.u5)("hide_skin",e.params)&&(g.hide_skin=+!!(0,r.u5)("hide_skin",e.params)),""!=(0,r.u5)("ad_volume",e.params)&&(g.ad_volume=(0,r.u5)("ad_volume",e.params)),""!=(0,r.u5)("ad_unit",e.params)&&(g.ad_unit=(0,r.u5)("ad_unit",e.params)),""!=(0,r.u5)("outstream_options",e.params)&&(g.outstream_options=(0,r.u5)("outstream_options",e.params)),""!=(0,r.u5)("outstream_function",e.params)&&(g.outstream_function=(0,r.u5)("outstream_function",e.params)),""!=(0,r.u5)("custom",e.params)&&(g.custom=(0,r.u5)("custom",e.params)),""!=(0,r.u5)("pre_market_bids",e.params)&&(0,r.cy)((0,r.u5)("pre_market_bids",e.params))){var m=(0,r.u5)("pre_market_bids",e.params);for(var h in g.pre_market_bids=[],m){var b=m[h],y="";b.vast_url?y='<?xml version="1.0" encoding="utf-8"?><VAST version="2.0"><Ad><Wrapper><VASTAdTagURI>'+b.vast_url+"</VASTAdTagURI></Wrapper></Ad></VAST>":b.vast_string&&(y=b.vast_string),g.pre_market_bids.push({id:b.deal_id,seatbid:[{bid:[{impid:Date.now(),dealid:b.deal_id,price:b.price,adm:y}]}],cur:b.currency,ext:{event_log:[{}]}})}}var _=(0,r.u5)("mimes",e.params)||(0,i.A)(e,"mediaTypes.video.mimes")||["application/javascript","video/mp4","video/webm"],A={id:e.bidId,secure:v,video:{w:p,h:f,ext:g,mimes:_}};if((0,r.fp)(e.getFloor)){var w=e.getFloor({currency:"USD",mediaType:"video",size:"*"});"USD"===w.currency&&(A.bidfloor=w.floor)}else""!=(0,r.u5)("price_floor",e.params)&&(A.bidfloor=(0,r.u5)("price_floor",e.params));var I=(0,r.u5)("start_delay",e.params)||(0,i.A)(e,"mediaTypes.video.startdelay");I&&(A.video.startdelay=0+Boolean(I));var E=(0,r.u5)("min_duration",e.params)||(0,i.A)(e,"mediaTypes.video.minduration");E&&(A.video.minduration=E);var O=(0,r.u5)("max_duration",e.params)||(0,i.A)(e,"mediaTypes.video.maxduration");O&&(A.video.maxduration=O);var x=(0,r.u5)("placement_type",e.params)||(0,i.A)(e,"mediaTypes.video.placement");x&&(A.video.ext.placement=x);var S=(0,r.u5)("position",e.params)||(0,i.A)(e,"mediaTypes.video.pos");S&&(A.video.ext.pos=S),e.crumbs&&e.crumbs.pubcid&&(d=e.crumbs.pubcid);var C=navigator.language?"language":"userLanguage",T={id:c,imp:A,site:{id:"",page:s,content:"content"},device:{h:screen.height,w:screen.width,dnt:(0,r.l9)()?1:0,language:navigator[C].split("-")[0],make:navigator.vendor?navigator.vendor:"",ua:navigator.userAgent},ext:{wrap_response:1}};l.$W.getConfig("cache")&&l.$W.getConfig("cache.url")&&!0===l.$W.getConfig("cache.ignoreBidderCacheKey")&&(T.ext.wrap_response=0),(0,r.u5)("number_of_ads",e.params)&&(T.ext.number_of_ads=(0,r.u5)("number_of_ads",e.params));var k={};return 1==(0,r.u5)("spotx_all_google_consent",e.params)&&(k.consented_providers_settings=Qo),t&&t.gdprConsent&&(k.consent=t.gdprConsent.consentString,void 0!==t.gdprConsent.gdprApplies&&o(T,"regs.ext.gdpr",t.gdprConsent.gdprApplies?1:0)),t&&t.uspConsent&&o(T,"regs.ext.us_privacy",t.uspConsent),e.userIdAsEids&&(k.eids=e.userIdAsEids,k.eids.forEach((function(e){"uidapi.com"===e.source&&e.uids.forEach((function(e){e.ext=e.ext||{},e.ext.rtiPartner="UID2"}))}))),d&&(k.fpc=d),e&&e.schain&&(T.source={ext:{schain:e.schain}}),(0,r.Im)(k)||(T.user={ext:k}),{method:"POST",url:"https://search.spotxchange.com/openrtb/2.3/dados/"+c+"?src_sys=prebid",data:T,bidRequest:t}}))},interpretResponse:function(e,t){var n=[],o=e.body;return o&&(0,r.cy)(o.seatbid)&&(0,r.bu)(o.seatbid,(function(e){(0,r.bu)(e.bid,(function(e){var a={};for(var s in t.bidRequest.bids)e.impid==t.bidRequest.bids[s].bidId&&(a=t.bidRequest.bids[s]);(0,r.bu)(a.params.pre_market_bids,(function(t){t.deal_id==e.id&&(e.price=t.price,o.cur=t.currency)}));var c={requestId:a.bidId,currency:o.cur||"USD",cpm:e.price,creativeId:e.crid||"",dealId:e.dealid||"",ttl:360,netRevenue:!0,channel_id:o.id,mediaType:f.G_,width:e.w,height:e.h};l.$W.getConfig("cache")&&l.$W.getConfig("cache.url")&&!0===l.$W.getConfig("cache.ignoreBidderCacheKey")?c.vastXml=e.adm:(c.cache_key=e.ext.cache_key,c.vastUrl="https://search.spotxchange.com/ad/vast.html?key="+e.ext.cache_key,c.videoCacheKey=e.ext.cache_key),c.meta=c.meta||{},e&&e.adomain&&e.adomain.length>0&&(c.meta.advertiserDomains=e.adomain);var d=(0,i.A)(a,"mediaTypes.video.context"),u=(0,i.A)(a,"params.ad_unit");if("outstream"==d||"outstream"==u){var v=(0,i.A)(a,"mediaTypes.video.playerSize"),g=p.A4.install({id:0,renderNow:!0,url:"/",config:{adText:"SpotX Outstream Video Ad via Prebid.js",player_width:v[0][0],player_height:v[0][1],content_page_url:(0,i.A)(t,"data.site.page"),ad_mute:+!!(0,i.A)(a,"params.ad_mute"),hide_skin:+!!(0,i.A)(a,"params.hide_skin"),outstream_options:(0,i.A)(a,"params.outstream_options"),outstream_function:(0,i.A)(a,"params.outstream_function")}});try{g.setRender(Yo),g.setEventHandlers({impression:function(){return(0,r.OG)("SpotX outstream video impression event")},loaded:function(){return(0,r.OG)("SpotX outstream video loaded event")},ended:function(){(0,r.OG)("SpotX outstream renderer video event")}})}catch(e){(0,r.JE)("Prebid Error calling setRender or setEventHandlers on renderer",e)}c.renderer=g}n.push(c)}))})),n}};function Yo(e){if(null!=e.renderer.config.outstream_function&&"function"==typeof e.renderer.config.outstream_function){var t=function(e){var t=window.document.createElement("script"),n=Zo(e);return t.type="text/javascript",t.src="https://js.spotx.tv/easi/v1/"+e.channel_id+".js",(0,r.Bg)(t,n),t}(e);e.renderer.config.outstream_function(e,t)}else try{var n=(0,r.u5)("in_iframe",e.renderer.config.outstream_options),i="https://js.spotx.tv/easi/v1/"+e.channel_id+".js",o=Zo(e);if(n&&"IFRAME"==window.document.getElementById(n).nodeName){var a=window.document.getElementById(n),s=a.contentDocument;!s&&a.contentWindow&&(s=a.contentWindow.document),(0,de.R)(i,$o,void 0,s,o)}else(0,de.R)(i,$o,void 0,void 0,o)}catch(e){(0,r.vV)("[SPOTX][renderer] Error:"+e.message)}}function Zo(e){var t=(0,r.u5)("slot",e.renderer.config.outstream_options);(0,r.OG)("[SPOTX][renderer] Handle SpotX outstream renderer");var n={};n["data-spotx_channel_id"]=""+e.channel_id,n["data-spotx_vast_url"]=""+e.vastUrl,n["data-spotx_content_page_url"]=e.renderer.config.content_page_url,n["data-spotx_ad_unit"]="incontent",(0,r.OG)("[SPOTX][renderer] Default behavior"),(0,r.u5)("ad_mute",e.renderer.config.outstream_options)&&(n["data-spotx_ad_mute"]="1"),n["data-spotx_collapse"]="0",n["data-spotx_autoplay"]="1",n["data-spotx_blocked_autoplay_override_mode"]="1",n["data-spotx_video_slot_can_autoplay"]="1",n["data-spotx_content_container_id"]=t;var i=(0,r.u5)("playersize_auto_adapt",e.renderer.config.outstream_options);if(i&&(0,r.Lm)(i)&&!0===i){var o=e.width&&(0,r.Et)(e.width)&&e.height&&(0,r.Et)(e.height)?e.width/e.height:4/3,a=window.document.getElementById(t).clientWidth,s=e.renderer.config.player_width,c=e.renderer.config.player_height,d=0,u=0;a<s&&(c=(s=a)/o),o<=1?(d=Math.round(c*o),u=c):(d=s,u=Math.round(s/o)),n["data-spotx_content_width"]=""+d,n["data-spotx_content_height"]=""+u}var l=(0,r.u5)("custom_override",e.renderer.config.outstream_options);if(l&&(0,r.Qd)(l))for(var p in(0,r.OG)("[SPOTX][renderer] Custom behavior."),l)l.hasOwnProperty(p)&&("channel_id"===p||"vast_url"===p||"content_page_url"===p||"ad_unit"===p?(0,r.JE)("[SPOTX][renderer] Custom behavior: following option cannot be overridden: "+p):n["data-spotx_"+p]=l[p]);return n}(0,ut.a$)(Xo),(0,n.E)("spotxBidAdapter");var ea=(0,n.m)(),ta=(0,g.A_)("sync",(function(){})),na={env:"vp",gdfp_req:1,output:"vast",unviewed_position_start:1},ra={},ia={ri:he.EN};function oa(e,t,n){return(0,i.A)(t,"".concat(n,".description_url"))||encodeURIComponent(ia.ri().page)}function aa(e,n,o){var a=e&&e.adserverTargeting||{},c={},d=n&&n.adUnit;if(d){var l=se.getAllTargeting(d.code);c=l?l[d.code]:{}}var p=Object.assign({},{hb_uuid:e&&e.videoCacheKey},{hb_cache_id:e&&e.videoCacheKey},c,a);u.Ic(s.qY.SET_TARGETING,(0,t.A)({},d.code,p));var f=(0,i.A)(n,"params.cust_params"),v=Object.assign({},p,f),g=encodeURIComponent((0,r.eP)(v));return o&&(g=o+"%26"+g),g}l.$W.getConfig("brandCategoryTranslation.translationFile")&&(0,g.Yn)("registerAdserver").before((function(e){e.call(this,"dfp")})),function(e,t){ea.adServers=ea.adServers||{},ea.adServers[e]=ea.adServers[e]||{},Object.keys(t).forEach((function(n){ea.adServers[e][n]?(0,r.JE)("Attempting to add an already registered function property ".concat(n," for AdServer ").concat(e,".")):ea.adServers[e][n]=t[n]}))}("dfp",{buildVideoUrl:function(t){var n,o,a,s;if(t.params||t.url){var d=t.adUnit,u=t.bid||se.getWinningBids(d.code)[0],l={};if(t.url&&(l=(0,r.Dl)(t.url,{noDecodeWholeURL:!0}),(0,r.Im)(t.params)))return function(e,t,n){var i=oa(0,e,"search");return i&&(e.search.description_url=i),e.search.cust_params=aa(t,n,e.search.cust_params),(0,r.c$)(e)}(l,u,t);var p={correlator:Date.now(),sz:(0,r.kK)((0,i.A)(d,"mediaTypes.video.playerSize")).join("|"),url:encodeURIComponent(location.href)},f=l.search,v=f&&f.sz;v&&(p.sz=v+"|"+p.sz);var g=aa(u,t,f&&f.cust_params),m=Object.assign({},na,l.search,p,t.params,{cust_params:g}),h=oa(0,t,"params");h&&(m.description_url=h);var b=Le.mW.getConsentData();if(b&&("boolean"==typeof b.gdprApplies&&(m.gdpr=Number(b.gdprApplies)),b.consentString&&(m.gdpr_consent=b.consentString),b.addtlConsent&&(m.addtl_consent=b.addtlConsent)),!m.ppid){var y=ta();null!=y&&(m.ppid=y)}var _=null===(n=t.adUnit)||void 0===n||null===(n=n.mediaTypes)||void 0===n?void 0:n.video;Object.entries({plcmt:function(){return null==_?void 0:_.plcmt},min_ad_duration:function(){return(0,r.Et)(null==_?void 0:_.minduration)?1e3*_.minduration:null},max_ad_duration:function(){return(0,r.Et)(null==_?void 0:_.maxduration)?1e3*_.maxduration:null},vpos:function(){var e=null==_?void 0:_.startdelay;if((0,r.Et)(e))return-2===e?"postroll":-1===e||e>0?"midroll":"preroll"},vconp:function(){return Array.isArray(null==_?void 0:_.playbackmethod)&&_.playbackmethod.every((function(e){return 7===e}))?"2":void 0},vpa:function(){if(Array.isArray(null==_?void 0:_.playbackmethod)){var e=_.playbackmethod.some((function(e){return 3===e})),t=_.playbackmethod.some((function(e){return[1,2,4,5,6].includes(e)}));if(e&&!t)return"click";if(t&&!e)return"auto"}},vpmute:function(){if(Array.isArray(null==_?void 0:_.playbackmethod)){var e=_.playbackmethod.some((function(e){return[2,6].includes(e)})),t=_.playbackmethod.some((function(e){return[1,3,4,5].includes(e)}));if(e&&!t)return"1";if(t&&!e)return"0"}}}).forEach((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];if(!m.hasOwnProperty(r)){var o=i();null!=o&&(m[r]=o)}}));var A=null!==(o=null===(a=c.n.index.getBidRequest(t.bid||{}))||void 0===a?void 0:a.ortb2)&&void 0!==o?o:null===(s=c.n.index.getAuction(t.bid||{}))||void 0===s||null===(s=s.getFPD())||void 0===s?void 0:s.global,w=Object.entries({IAB_AUDIENCE_1_1:I(["user.data"],4),IAB_CONTENT_2_2:I(Oe.map((function(e){return"".concat(e,".content.data")})),6)}).map((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];return i.length?{taxonomy:r,values:i}:null})).filter((function(e){return e}));return w.length&&(m.ppsj=btoa(JSON.stringify({PublisherProvidedTaxonomySignals:w}))),(0,r.c$)(Object.assign({protocol:"https",host:"securepubads.g.doubleclick.net",pathname:"/gampad/ads"},l,{search:m}))}function I(e,t){return e.flatMap((function(e){return(0,i.A)(A,e)||[]})).filter((function(e){var n;return(null===(n=e.ext)||void 0===n?void 0:n.segtax)===t})).flatMap((function(e){var t;return null===(t=e.segment)||void 0===t?void 0:t.map((function(e){return e.id}))})).filter((function(e){return e})).filter(r.hj)}(0,r.vV)("A params object or a url is required to use __pwpbjs__.adServers.dfp.buildVideoUrl")},buildAdpodVideoUrl:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.code,o=e.params,a=e.callback;if(o&&a){var s={correlator:Date.now(),sz:function(e){var t=c.n.getAdUnits().filter((function(t){return t.code===e})),n=(0,i.A)(t[0],"mediaTypes.video.playerSize");return(0,r.kK)(n).join("|")}(n),url:encodeURIComponent(location.href)};ra.getTargeting({codes:[n],callback:function(e,i){if(e)a(e,null);else{var c=(0,t.A)((0,t.A)({},ra.TARGETING_KEY_PB_CAT_DUR,void 0),ra.TARGETING_KEY_CACHE_ID,void 0),d={};i[n]&&(d=i[n].reduce((function(e,t){return Object.keys(t)[0]===ra.TARGETING_KEY_PB_CAT_DUR?e[ra.TARGETING_KEY_PB_CAT_DUR]=void 0!==e[ra.TARGETING_KEY_PB_CAT_DUR]?e[ra.TARGETING_KEY_PB_CAT_DUR]+","+t[ra.TARGETING_KEY_PB_CAT_DUR]:t[ra.TARGETING_KEY_PB_CAT_DUR]:Object.keys(t)[0]===ra.TARGETING_KEY_CACHE_ID&&(e[ra.TARGETING_KEY_CACHE_ID]=t[ra.TARGETING_KEY_CACHE_ID]),e}),c));var u=encodeURIComponent((0,r.eP)(d)),l=Object.assign({},na,s,o,{cust_params:u}),p=Le.mW.getConsentData();p&&("boolean"==typeof p.gdprApplies&&(l.gdpr=Number(p.gdprApplies)),p.consentString&&(l.gdpr_consent=p.consentString),p.addtlConsent&&(l.addtl_consent=p.addtlConsent));var f=(0,r.c$)({protocol:"https",host:"securepubads.g.doubleclick.net",pathname:"/gampad/ads",search:l});a(null,f)}}})}else(0,r.vV)("A params object and a callback is required to use pbjs.adServers.dfp.buildAdpodVideoUrl")},getAdpodTargeting:function(e){return ra.getTargeting(e)}}),(0,g.bz)("adpod",ra),(0,n.E)("dfpAdServerVideo");var sa="Invalid schain object found: ",ca=" should be a string",da=" should be an Integer",ua=" should be an object",la=" should be an Array",pa={STRICT:"strict",RELAXED:"relaxed",OFF:"off"},fa=[];function va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}(0,r.bu)(pa,(function(e){return fa.push(e)})),ge.Ay.makeBidRequests.after((function(e,t){var n=l.$W.getConfig("schain"),i=l.$W.getBidderConfig();t.forEach((function(e){var t=e.bidderCode,o=function(e){return i[e]&&i[e].schain||n}(t);e.bids.forEach((function(e){var n=function(e,t){var n=pa.STRICT;if(function(e){return!(void 0===e||!(0,r.Qd)(e)&&((0,r.vV)(sa+"the following schain config will not be used as schain is not an object.",e),1))}(e)){if((0,r.O8)(e.validation)&&-1!=fa.indexOf(e.validation)&&(n=e.validation),n===pa.OFF)return e.config;if(function(e,t){var n="Detected something wrong within an schain config:",i="";function o(e){i+="\n"+e}function a(){!0===t?(0,r.vV)(n,e,i):(0,r.JE)(n,e,i)}if(!(0,r.Qd)(e)&&(o("schain.config"+ua),a(),t))return!1;if((0,r.Et)(e.complete)&&(0,r.Fq)(e.complete)||o("schain.config.complete"+da),(0,r.O8)(e.ver)||o("schain.config.ver"+ca),e.hasOwnProperty("ext")&&((0,r.Qd)(e.ext)||o("schain.config.ext"+ua)),(0,r.cy)(e.nodes))e.nodes.forEach((function(e,t){(0,r.O8)(e.asi)||o("schain.config.nodes[".concat(t,"].asi")+ca),(0,r.O8)(e.sid)||o("schain.config.nodes[".concat(t,"].sid")+ca),(0,r.Et)(e.hp)&&(0,r.Fq)(e.hp)||o("schain.config.nodes[".concat(t,"].hp")+da),e.hasOwnProperty("rid")&&((0,r.O8)(e.rid)||o("schain.config.nodes[".concat(t,"].rid")+ca)),e.hasOwnProperty("name")&&((0,r.O8)(e.name)||o("schain.config.nodes[".concat(t,"].name")+ca)),e.hasOwnProperty("domain")&&((0,r.O8)(e.domain)||o("schain.config.nodes[".concat(t,"].domain")+ca)),e.hasOwnProperty("ext")&&((0,r.Qd)(e.ext)||o("schain.config.nodes[".concat(t,"].ext")+ua))}));else if(o("schain.config.nodes"+la),a(),t)return!1;return!(i.length>0&&(a(),t))}(e.config,!(n!==pa.STRICT)))return e.config;(0,r.vV)(sa+"due to the 'strict' validation setting, this schain config will not be passed to bidder '".concat(t,"'. See above error for details."))}return null}(o,t);n&&(e.schain=(0,r.Go)(n))}))})),e(t)})),Rr({type:Er,name:"sourceExtSchain",fn:function(e,t,n){if(!(0,i.A)(e,"source.ext.schain")){var r=(0,i.A)(n,"bidRequests.0.schain");r&&o(e,"source.ext.schain",r)}}}),(0,n.E)("schain");var ga=[f.D4,f.G_],ma="6.0.0",ha="iframe",ba="pixel",ya={code:"rise",aliases:[{code:"risexchange",gvlid:1043},{code:"openwebxchange",gvlid:280}],gvlid:1043,version:ma,supportedMediaTypes:ga,isBidRequestValid:function(e){return e.params?!!e.params.org||((0,r.JE)("org is a mandatory param for Rise adapter"),!1):((0,r.JE)("no params have been set to Rise adapter"),!1)},buildRequests:function(e,t){var n={},o=e[0],a=o.params.testMode,s=o.params.rtbDomain;return n.params=function(e,t){var n,o,a=window.location.hostname,s=l.$W.getConfig("userSync")||{},c=s.syncEnabled,d=s.filterSettings,u=t.bidderCode,p=e.params,f=t.timeout,v={wrapper_type:"prebidjs",wrapper_vendor:"__pwpbjs__",wrapper_version:"8.45.0",adapter_version:ma,auction_start:(0,r.vE)(),publisher_id:p.org,publisher_name:a,site_domain:a,dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,device_type:(o=navigator.userAgent,/ipad|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(o.toLowerCase())?"5":/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(o.toLowerCase())?"4":/smart[-_\s]?tv|hbbtv|appletv|googletv|hdmi|netcast|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b/i.test(o.toLowerCase())?"3":"1"),ua:navigator.userAgent,is_wrapper:!!p.isWrapper,session_id:p.sessionId||(0,r.u5)("bidderRequestId",e),tmax:f},g=(0,r.u5)("userId",e);g&&(v.userIds=JSON.stringify(g));var m=t.ortb2||{};if(m.site&&(v.site_metadata=JSON.stringify(m.site)),m.user&&(v.user_metadata=JSON.stringify(m.user)),c){var h=function(e,t){var n="image";return e&&["all","iframe"].some((function(n){return wa(e[n],t)}))?ha:e&&e[n]&&!wa(e[n],t)?void 0:ba}(d,u);h&&(v.cs_method=h)}return t.uspConsent&&(v.us_privacy=t.uspConsent),t&&t.gdprConsent&&t.gdprConsent.gdprApplies&&(v.gdpr=t.gdprConsent.gdprApplies,v.gdpr_consent=t.gdprConsent.consentString),t&&t.gppConsent?(v.gpp=t.gppConsent.gppString,v.gpp_sid=t.gppConsent.applicableSections):null!==(n=t.ortb2)&&void 0!==n&&null!==(n=n.regs)&&void 0!==n&&n.gpp&&(v.gpp=t.ortb2.regs.gpp,v.gpp_sid=t.ortb2.regs.gpp_sid),p.ifa&&(v.ifa=p.ifa),e.schain&&(v.schain=function(e){if((0,r.Im)(e))return"";var t="".concat(e.ver,",").concat(e.complete);return e.nodes.forEach((function(e){t+="!",t+="".concat(Aa(e.asi),","),t+="".concat(Aa(e.sid),","),t+="".concat(e.hp?encodeURIComponent(e.hp):"",","),t+="".concat(Aa(e.rid),","),t+="".concat(Aa(e.name),","),t+="".concat(Aa(e.domain))})),t}(e.schain)),t&&t.refererInfo&&(v.referrer=(0,i.A)(t,"refererInfo.ref"),v.page_url=(0,i.A)(t,"refererInfo.page")||(0,i.A)(window,"location.href")),v}(o,t),n.bids=function(e,t){var n=[];return e.length&&e.forEach((function(e){n.push(function(e,t){var n,o=e.params,a=function(e){return e.mediaTypes&&e.mediaTypes.banner}(e)?f.D4:f.G_,s=function(e,t){var n=[];return(0,i.A)(e,"mediaTypes.".concat(t,".sizes"))?n=e.mediaTypes[t].sizes:Array.isArray(e.sizes)&&e.sizes.length>0&&(n=e.sizes),n}(e,a),c=o.currency||l.$W.getConfig("currency.adServerCurrency")||"USD";isNaN(o.floorPrice)&&(o.floorPrice=0);var d={mediaType:a,adUnitCode:(0,r.u5)("adUnitCode",e),sizes:s,currency:c,floorPrice:Math.max(_a(e,a,c),o.floorPrice),bidId:(0,r.u5)("bidId",e),bidderRequestId:(0,r.u5)("bidderRequestId",e),loop:(0,r.u5)("bidderRequestsCount",e),transactionId:null===(n=e.ortb2Imp)||void 0===n||null===(n=n.ext)||void 0===n?void 0:n.tid,coppa:0},u=(0,i.A)(e,"mediaTypes.".concat(a,".pos"));u&&(d.pos=u);var p=(0,i.A)(e,"ortb2Imp.ext.gpid");p&&(d.gpid=p);var v=o.placementId||(0,i.A)(e,"mediaTypes.".concat(a,".name"));v&&(d.placementId=v);var g=(0,i.A)(e,"mediaTypes.".concat(a,".mimes"));g&&(d.mimes=g);var m=(0,i.A)(e,"mediaTypes.".concat(a,".api"));m&&(d.api=m);var h=(0,i.A)(e,"ortb2.device.sua");if(h&&(d.sua=h),(0,i.A)(e,"ortb2.regs.coppa")&&(d.coppa=1),a===f.G_){var b,y=(0,i.A)(e,"mediaTypes.video.playbackmethod");Array.isArray(y)&&(0,r.Fq)(y[0])?b=y[0]:(0,r.Fq)(y)&&(b=y),b&&(d.playbackMethod=b);var _=(0,i.A)(e,"mediaTypes.video.placement");_&&(d.placement=_);var A=(0,i.A)(e,"mediaTypes.video.minduration");A&&(d.minDuration=A);var w=(0,i.A)(e,"mediaTypes.video.maxduration");w&&(d.maxDuration=w);var I=(0,i.A)(e,"mediaTypes.video.skip");I&&(d.skip=I);var E=(0,i.A)(e,"mediaTypes.video.linearity");E&&(d.linearity=E);var O=(0,i.A)(e,"mediaTypes.video.protocols");O&&(d.protocols=O);var x=(0,i.A)(e,"mediaTypes.video.plcmt");x&&(d.plcmt=x)}return d}(e))})),n}(e),{method:"POST",url:Ia(a,s),data:n}},interpretResponse:function(e){var t=e.body,n=[];return t.bids&&t.bids.forEach((function(e){var t={requestId:e.requestId,cpm:e.cpm,currency:e.currency||"USD",width:e.width,height:e.height,ttl:e.ttl||360,creativeId:e.requestId,netRevenue:e.netRevenue||!0,nurl:e.nurl,mediaType:e.mediaType,meta:{mediaType:e.mediaType}};e.mediaType===f.G_?t.vastXml=e.vastXml:e.mediaType===f.D4&&(t.ad=e.ad),e.adomain&&e.adomain.length&&(t.meta.advertiserDomains=e.adomain),n.push(t)})),n},getUserSyncs:function(e,t){var n,i=[],o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return va(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?va(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(e.iframeEnabled&&a.body.params.userSyncURL&&i.push({type:"iframe",url:a.body.params.userSyncURL}),e.pixelEnabled&&(0,r.cy)(a.body.params.userSyncPixels)){var s=a.body.params.userSyncPixels.map((function(e){return{type:"image",url:e}}));i.push.apply(i,(0,M.A)(s))}}}catch(e){o.e(e)}finally{o.f()}return i},onBidWon:function(e){null!=e&&((0,r.fH)("onBidWon:",e),e.hasOwnProperty("nurl")&&e.nurl.length>0&&(0,r.z$)(e.nurl))}};function _a(e,t,n){if(!(0,r.fp)(e.getFloor))return 0;var i=e.getFloor({currency:n,mediaType:t,size:"*"});return i.currency===n&&i.floor?i.floor:0}function Aa(e){return(0,r.Im)(e)?"":encodeURIComponent(e)}function wa(e,t){if(!e)return!1;var n="include"===e.filter,i=(0,r.cy)(e.bidders)?e.bidders:[t];return n&&(0,r.gR)(i,t)}function Ia(e,t){var n=t?"https://".concat(t,"/"):"https://hb.yellowblue.io/";return e?n+"hb-multi-test":n+"hb-multi"}(0,ut.a$)(ya),(0,n.E)("riseBidAdapter");var Ea=new Map;function Oa(t){var n={};function i(e){var t,r,i=JSON.stringify([null===(t=e.source)||void 0===t?void 0:t.toLowerCase(),e.ext]);n.hasOwnProperty(i)?(r=n[i].uids).push.apply(r,(0,M.A)(e.uids)):n[i]=e}return Object.entries(t).forEach((function(t){var n=(0,e.A)(t,2),o=n[0],a=n[1];a=Array.isArray(a)?a:[a],("pubProvidedId"===o?(0,r.Go)(a):a.map((function(e){return function(e,t){var n=Ea.get(t);if(n&&e){var i={};i.source=(0,r.fp)(n.getSource)?n.getSource(e):n.source;var o=(0,r.fp)(n.getValue)?n.getValue(e):e;if((0,r.O8)(o)){var a={id:o,atype:n.atype};if((0,r.fp)(n.getUidExt)){var s=n.getUidExt(e);s&&(a.ext=s)}if(i.uids=[a],(0,r.fp)(n.getEidExt)){var c=n.getEidExt(e);c&&(i.ext=c)}return i}}return null}(e,o)}))).filter((function(e){return null!=e})).forEach(i)})),Object.values(n)}var xa,Sa,Ca,Ta,ka,Da,Ra="User ID",ja=ve.X0,Pa=ve.qk,Ba="_pbjs_id_optout",Ua=(0,ve.CK)("userId"),Na={isAllowed:Ce.io},qa=!1,Ma=[],La=[],Wa={},Fa=[],Va=function(){return null==Da&&(Da=(0,me.K7)()),Da};function Ga(e){return Va().fork().renameWith((function(t){return["userId.mod.".concat(t),"userId.mods.".concat(e,".").concat(t)]}))}function za(e,t){t=t||e.storageMgr;var n="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,r=e.config.storage.name;return function(e,i,o){t.setCookie(r+(e||""),i,o,"Lax",n)}}function Ha(e,t){var n=e.config.storage,i=e.storageMgr;try{var o=new Date(Date.now()+864e5*n.expires).toUTCString(),a=(0,r.Qd)(t)?JSON.stringify(t):t;if(n.type===ja){var s=za(e);s(null,a,o),s("_cst",us(),o),"number"==typeof n.refreshInSeconds&&s("_last",(new Date).toUTCString(),o)}else n.type===Pa&&(i.setDataInLocalStorage("".concat(n.name,"_exp"),o),i.setDataInLocalStorage("".concat(n.name,"_cst"),us()),i.setDataInLocalStorage(n.name,encodeURIComponent(a)),"number"==typeof n.refreshInSeconds&&i.setDataInLocalStorage("".concat(n.name,"_last"),(new Date).toUTCString()))}catch(e){(0,r.vV)(e)}}function Ja(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=e.storageMgr,o=e.config.storage,a=n?"".concat(o.name,"_").concat(n):o.name;try{if(o.type===ja)t=i.getCookie(a);else if(o.type===Pa){var s=i.getDataFromLocalStorage("".concat(o.name,"_exp"));""===s?t=i.getDataFromLocalStorage(a):s&&new Date(s).getTime()-Date.now()>0&&(t=decodeURIComponent(i.getDataFromLocalStorage(a)))}"string"==typeof t&&"{"===t.trim().charAt(0)&&(t=JSON.parse(t))}catch(e){(0,r.vV)(e)}return t}function Ka(e,t,n){t=Va().fork().startTiming("userId.callbacks.total").stopBefore(t);var i=(0,r.U6)((function(){clearTimeout(undefined),t()}),e.length);e.forEach((function(e){var t=Ga(e.submodule.name).startTiming("callback").stopBefore(i);try{e.callback((function(i){i?(e.config.storage&&Ha(e,i),e.idObj=e.submodule.decode(i,e.config),ls($a(n))):(0,r.fH)("".concat(Ra,": ").concat(e.submodule.name," - request id responded with an empty value")),t()}),Ja.bind(null,e))}catch(n){(0,r.vV)("Error in userID module '".concat(e.submodule.name,"':"),n),t()}e.callback=void 0}))}function $a(e){return Array.isArray(e)&&e.length?Xa(e):{}}function Qa(t,n,i){return Object.fromEntries(Object.entries(t.reduce((function(e,t){var o=n(t);return o&&Object.keys(o).forEach((function(n){var a,s=null===(a=Wa[n])||void 0===a?void 0:a.indexOf(i(t)),c={priority:(0,r.Et)(s)?s:-1,value:o[n]};if(e[n]){var d=c.priority>e[n].priority?c:e[n];e[n]=d}else e[n]=c})),e}),{})).map((function(t){var n=(0,e.A)(t,2);return[n[0],n[1].value]})))}function Xa(e){return Qa(e.filter((function(e){return(0,r.Qd)(e.idObj)&&Object.keys(e.idObj).length})),(function(e){return e.idObj}),(function(e){return e.submodule.name}))}var Ya,Za={};function es(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rs()||[],t=Ta&&e.find((function(e){return e.source===Ta}));if(t&&"string"==typeof(0,i.A)(t,"uids.0.id")){var n=t.uids[0].id.replace(/[\W_]/g,"");if(n.length>=32&&n.length<=150)return n;(0,r.JE)("User ID - Googletag Publisher Provided ID for ".concat(Ta," is not between 32 and 150 characters - ").concat(n))}}var ts=(0,me.Ak)("userId",(function(e,t){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=o.delay,s=void 0===a?v.k.timeout:a,c=o.getIds,u=void 0===c?ds:c;v.k.race([u().catch((function(){return null})),s(Ca)]).then((function(){(function(e,t){[e].some((function(e){return!Array.isArray(e)||!e.length}))||e.forEach((function(e){e.bids&&(0,r.cy)(e.bids)&&e.bids.forEach((function(e){var n=function(e,t){return Array.isArray(e)&&e.length&&t?Xa(e.filter((function(e){return!e.config.bidders||!(0,r.cy)(e.config.bidders)||(0,d.mK)(e.config.bidders,t)}))):{}}(t,e.bidder);Object.keys(n).length&&(e.userId=n,e.userIdAsEids=Oa(n))}))}))})(t.adUnits||(0,n.m)().adUnits,xa),Va().join((0,me.BO)(t.metrics),{propagate:!1,includeGroups:!0}),e.call(i,t)}))}));function ns(){return $a(xa)}function rs(){return Oa(ns())}function is(e){return Oa(function(e,n){if(!Array.isArray(e)||!e.length)return{};var i=Xa(e),o=Object.keys(i).find((function(e){var t=Ea.get(e);return(null==t?void 0:t.source)===n||(0,r.fp)(null==t?void 0:t.getSource)&&t.getSource()===n}));return o?(0,t.A)({},o,i[o]):[]}(xa,e))[0]}function os(e,t,n){return Ya().then((function(){var i={};if((0,r.fp)(n)){(0,r.fH)("".concat(Ra," - Getting encrypted signal from custom function : ").concat(n.name," & source : ").concat(e," "));var o=n(e);i[e]=o?as(o):null}else{var a=is(e);(0,r.fH)("".concat(Ra," - Getting encrypted signal for eids :").concat(JSON.stringify(a))),(0,r.Im)(a)||(i[a.source]=!0===t?as(a):a.uids[0].id)}return(0,r.fH)("".concat(Ra," - Fetching encrypted eids: ").concat(i[e])),i[e]}))}function as(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n="";return 1===t&&(n="object"===(0,dt.A)(e)?window.btoa(JSON.stringify(e)):window.btoa(e)),"".concat(t,"||").concat(n)}function ss(){if((0,r.II)()){window.googletag.secureSignalProviders=window.googletag.secureSignalProviders||[];var e=l.$W.getConfig("userSync.encryptedSignalSources");if(e){var t=e.registerDelay||0;setTimeout((function(){e.sources&&e.sources.forEach((function(e){var t=e.source,n=e.encrypt,r=e.customFunc;t.forEach((function(e){window.googletag.secureSignalProviders.push({id:e,collectorFunction:function(){return os(e,n,r)}})}))}))}),t)}else(0,r.JE)("".concat(Ra," - ESP : encryptedSignalSources config not defined under userSync Object"))}}function cs(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).submoduleNames,t=arguments.length>1?arguments[1]:void 0;return Ya({refresh:!0,submoduleNames:e}).then((function(){return t&&(0,r.fp)(t)&&t(),ns()}))}function ds(){return Ya().then((function(){return ns()}),(function(e){return e===Za?Promise.resolve().then(ds):((0,r.vV)("Error initializing userId",e),v.k.reject(e))}))}function us(){for(var e=Number(Le.SL.hash),t=[];e>0;)t.push(String.fromCharCode(255&e)),e>>>=8;return btoa(t.join())}function ls(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ns();if(e&&Ta){var t=es(Oa(e));t&&((0,r.II)()?window.googletag.pubads().setPublisherProvidedId(t):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(t)}))))}}function ps(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Va().fork().measureTime("userId.init.modules",(function(){if(!t.length)return[];if(!(t=t.filter((function(e){return(!e.config.storage||function(e){var t;switch(null===(t=e.config)||void 0===t||null===(t=t.storage)||void 0===t?void 0:t.type){case Pa:if(e.storageMgr.localStorageIsEnabled())return!Ua.getDataFromLocalStorage(Ba)||((0,r.fH)("".concat(Ra," - opt-out localStorage found, storage disabled")),!1);break;case ja:if(e.storageMgr.cookiesAreEnabled())return!Ua.getCookie(Ba)||((0,r.fH)("".concat(Ra," - opt-out cookie found, storage disabled")),!1)}return!1}(e))&&Na.isAllowed(ke.yl,(0,Te.s)(De.fW,e.config.name))}))).length)return(0,r.JE)("".concat(Ra," - no ID module configured")),[];var o=t.reduce((function(e,i){return Ga(i.submodule.name).measureTime("init",(function(){try{(function(e,t,n){var i=Le.mW.getConsentData();if(e.config.storage){var o,a=Ja(e),s=!1;if("number"==typeof e.config.storage.refreshInSeconds){var c=new Date(Ja(e,"last"));s=c&&Date.now()-c.getTime()>1e3*e.config.storage.refreshInSeconds}!a||s||t||function(e){var t=Ja(e,"cst");return!t||t!==us()}(e)?o=e.submodule.getId(e.config,i,a):"function"==typeof e.submodule.extendId&&(o=e.submodule.extendId(e.config,i,a)),(0,r.Qd)(o)&&(o.id&&(Ha(e,o.id),a=o.id),"function"==typeof o.callback&&(e.callback=o.callback)),a&&(e.idObj=e.submodule.decode(a,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var d=e.submodule.getId(e.config,i,void 0);(0,r.Qd)(d)&&("function"==typeof d.callback&&(e.callback=d.callback),d.id&&(e.idObj=e.submodule.decode(d.id,e.config)))}ls($a(n))})(i,n,t),e.push(i)}catch(e){(0,r.vV)("Error in userID module '".concat(i.submodule.name,"':"),e)}return e}))}),[]);return o.length&&function(e){var t=(0,r.YI)().setEidPermissions;"function"==typeof t&&(0,r.cy)(e)&&t(function(e){var t=[];return e.filter((function(e){return(0,r.Qd)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(n){var r=Ea.get(n)||{};(0,i.A)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&r.source&&t.push({source:r.source,bidders:e.config.bidders})}))})),t}(e))}(o),o.forEach(fs.bind(null,e)),o}))}function fs(e,t){for(var n=!1,r=0;r<e.length;r++)if(t.config.name.toLowerCase()===e[r].config.name.toLowerCase()){n=!0,e[r]=t;break}n||e.push(t)}var vs=new Set([Pa,ja]);function gs(){!function(t){Ea.clear(),Object.entries(Qa(t,(function(e){return e.eids}),(function(e){return e.name}))).forEach((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];return Ea.set(r,i)}))}(Fa);var t=function(e){return Array.isArray(e)?e.reduce((function(e,t){return!t||(0,r.xQ)(t.name)||(t.storage&&!(0,r.xQ)(t.storage.type)&&!(0,r.xQ)(t.storage.name)&&vs.has(t.storage.type)||(0,r.Qd)(t.value)?e.push(t):t.storage||t.value||e.push(t)),e}),[]):[]}(La);if(t.length){var i=Fa.filter((function(e){return!(0,d.I6)(Ma,(function(t){return t.name===e.name}))}));Ma.splice(0,Ma.length),i.map((function(e){var n=(0,d.I6)(t,(function(t){return t.name&&(t.name.toLowerCase()===e.name.toLowerCase()||e.aliasName&&t.name.toLowerCase()===e.aliasName.toLowerCase())}));return n&&e.name!==n.name&&(n.name=e.name),e.findRootDomain=ye,n?{submodule:e,config:n,callback:void 0,idObj:void 0,storageMgr:(0,ve.vM)({moduleType:De.fW,moduleName:n.name})}:null})).filter((function(e){return null!==e})).forEach((function(e){return Ma.push(e)})),!qa&&Ma.length&&((0,n.m)().requestBids.before(ts,40),ge.Ay.callDataDeletionRequest.before(ms),ta.after((function(e){return e(es())})),(0,r.fH)("".concat(Ra," - usersync config updated for ").concat(Ma.length," submodules: "),Ma.map((function(e){return e.submodule.name}))),qa=!0)}}function ms(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(0,r.fH)("UserID: received data deletion request; deleting all stored IDs..."),Ma.forEach((function(e){if("function"==typeof e.submodule.onDataDeletionRequest)try{var t;(t=e.submodule).onDataDeletionRequest.apply(t,[e.config,e.idObj].concat(n))}catch(t){(0,r.vV)("Error calling onDataDeletionRequest for ID submodule ".concat(e.submodule.name),t)}!function(e){var t,n,i;switch(null===(t=e.config)||void 0===t||null===(t=t.storage)||void 0===t?void 0:t.type){case ja:var o=za(e,Ua),a=new Date(Date.now()-864e5).toUTCString();n=function(e){return o(e,"",a)},i=["","_last","_cst"];break;case Pa:n=function(t){return Ua.removeDataFromLocalStorage(e.config.storage.name+t)},i=["","_last","_exp","_cst"]}n&&i.forEach((function(e){try{n(e)}catch(e){(0,r.vV)(e)}}))}(e)})),e.apply(this,n)}function hs(e){return function(){return Promise.resolve(e.apply(this,arguments))}}!function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).delay,i=void 0===t?v.k.timeout:t;Ta=void 0,Ma=[],La=[],qa=!1,xa=[],Ya=function(){var e,t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).delay,i=void 0===n?v.k.timeout:n,o=(0,v.v)(),a=(0,v.v)(),c=!1;function d(n){return t=Va().fork(),null!=e&&e.reject(Za),e=(0,v.v)(),v.k.race([n,e.promise]).finally(t.startTiming("userId.total"))}var l=xa,p=Ma;function f(e){return function(){if(l===xa&&p===Ma)return e.apply(void 0,arguments)}}function m(){return Le.SL.promise.finally(t.startTiming("userId.init.consent"))}var h=d(v.k.all([g.Gc,o.promise]).then(m).then(f((function(){ps(l,p)}))).then((function(){return a.promise.finally(t.startTiming("userId.callbacks.pending"))})).then(f((function(){var e=l.filter((function(e){return(0,r.fp)(e.callback)}));if(e.length)return new v.k((function(t){return Ka(e,t,l)}))}))));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refresh,n=void 0!==t&&t,r=e.submoduleNames,g=void 0===r?null:r,b=e.ready;return void 0!==b&&b&&!c&&(c=!0,o.resolve(),Ca>0?a.resolve():u.on(s.qY.AUCTION_END,(function e(){u.AU(s.qY.AUCTION_END,e),i(Sa).then(a.resolve)}))),n&&c&&(h=d(h.catch((function(){return null})).then(m).then(f((function(){var e=ps(l,p.filter((function(e){return null==g||g.includes(e.submodule.name)})),!0).filter((function(e){return null!=e.callback}));if(e.length)return new v.k((function(t){return Ka(e,t,l)}))}))))),h}}({delay:i}),null!=ka&&ka(),Fa=[],ka=e.getConfig("userSync",(function(e){var t=e.userSync;t&&(Ta=t.ppid,t.userIds&&(La=t.userIds,Sa=(0,r.Et)(t.syncDelay)?t.syncDelay:500,Ca=(0,r.Et)(t.auctionDelay)?t.auctionDelay:0,gs(),function(e,t){if(e){var n={},i=new Map(t.map((function(e){return e.submodule.aliasName?[e.submodule.aliasName,e.submodule.name]:[]})));Object.keys(e).forEach((function(t){var o=(0,r.cy)(e[t])?(0,M.A)(e[t]).reverse():[];n[t]=o.map((function(e){return i.has(e)?i.get(e):e}))})),Wa=n}else Wa={}}(t.idPriority,Ma),Ya({ready:!0})))})),(0,n.m)().getUserIds=ns,(0,n.m)().getUserIdsAsEids=rs,(0,n.m)().getEncryptedEidsForSource=hs(os),(0,n.m)().registerSignalSources=ss,(0,n.m)().refreshUserIds=hs(cs),(0,n.m)().getUserIdsAsync=hs(ds),(0,n.m)().getUserIdsAsEidBySource=is}(l.$W),(0,g.xG)("userId",(function(e){(0,d.I6)(Fa,(function(t){return t.name===e.name}))||(Fa.push(e),Le.o2.register(De.fW,e.name,e.gvlid),gs(),Ya({refresh:!0,submoduleNames:[e.name]}))}),{postInstallAllowed:!0}),Rr({type:Er,name:"userExtEids",fn:function(e,t,n){var r=(0,i.A)(n,"bidRequests.0.userIdAsEids");r&&Object.keys(r).length>0&&o(e,"user.ext.eids",r)}}),(0,n.E)("userId");var bs={code:"amazon",supportedMediaTypes:[f.D4,f.G_],isBidRequestValid:function(){return!0},buildRequests:function(){return[]},interpretResponse:function(){return null},onTimeout:function(){return null},onBidWon:function(){return null},onSetTargeting:function(){return null}};(0,ut.a$)(bs);var ys=__webpack_require__(7057),_s={appnexuspsp:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ib.adnxs.com/openrtb2/prebid",noP1Consent:"https://ib.adnxs-simple.com/openrtb2/prebid"},syncEndpoint:{p1Consent:"https://prebid.adnxs.com/pbs/v1/cookie_sync",noP1Consent:"https://prebid.adnxs-simple.com/pbs/v1/cookie_sync"},timeout:1e3},rubicon:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction",noP1Consent:"https://prebid-server.rubiconproject.com/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid-server.rubiconproject.com/cookie_sync",noP1Consent:"https://prebid-server.rubiconproject.com/cookie_sync"},timeout:500},openx:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://prebid.openx.net/openrtb2/auction",noP1Consent:"https://prebid.openx.net/openrtb2/auction"},syncEndpoint:{p1Consent:"https://prebid.openx.net/cookie_sync",noP1Consent:"https://prebid.openx.net/cookie_sync"},timeout:1e3},openwrap:{adapter:"prebidServer",enabled:!0,endpoint:{p1Consent:"https://ow.pubmatic.com/openrtb2/auction?source=pbjs",noP1Consent:"https://ow.pubmatic.com/openrtb2/auction?source=pbjs"},timeout:500}},As=__webpack_require__(6848);function ws(e,t,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t===r)return e;var o=e;try{o=(0,n.m)().convertCurrency(e,t,r)}catch(e){if(!i)throw e}return o}function Is(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return[e.cpm,e.currency]},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ws;return function(r,i){return null==e&&(e=i),n(r,i,e,t)}}();return F((function(n){return t.apply(null,e(n))}))}function Es(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Os(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Os(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Os(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ss(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?xs(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Cs=new Set(["bidderCode","bidderRequestId","uniquePbsTid","bids","timeout"]),Ts=Ur({processors:Jr,context:{netRevenue:!0},imp:function(e,t,n){Object.assign(n,t.pbsData);var r=e(t,n);if((t.bids||[]).forEach((function(e){e.ortb2Imp&&Object.keys(e.ortb2Imp).length>0&&o(r,"ext.prebid.imp.".concat(e.bidder),e.ortb2Imp)})),Object.values(Gr).some((function(e){return r[e]})))return r.secure=n.s2sBidRequest.s2sConfig.secure,r},request:function(e,t,n,i){if(t.length){var a=i.s2sBidRequest,s=i.requestedBidders,c=i.eidPermissions,d=e(t,n,i);return d.tmax=a.s2sConfig.timeout,[d.app,d.dooh,d.site].forEach((function(e){var t;!e||null!==(t=e.publisher)&&void 0!==t&&t.id||o(e,"publisher.id",a.s2sConfig.accountId)})),(0,r.cy)(c)&&c.length>0&&(s&&(0,r.cy)(s)&&(c=c.map((function(e){return Ss(Ss({},e),{},{bidders:e.bidders.filter((function(e){return s.includes(e)}))})}))),o(d,"ext.prebid.data.eidpermissions",c)),i.transmitTids||o(d,"ext.prebid.createtids",!1),d}(0,r.vV)("Request to Prebid Server rejected due to invalid media type(s) in adUnit.")},bidResponse:function(e,t,n){var r,i,o=n.actualBidRequests.get(n.seatbid.seat);null==o&&(o=n.actualBidRequests.get(null)),o&&Object.assign(n,{bidRequest:o,bidderRequest:n.actualBidderRequests.find((function(e){return e.bidderCode===o.bidder}))});var a=e(t,n);return a.requestBidder=null===(r=o)||void 0===r?void 0:r.bidder,null!==(i=a.native)&&void 0!==i&&i.ortb&&(a.adm=a.native.ortb),a.requestTimestamp=n.requestTimestamp,{bid:Object.assign((0,ce.O)(s.XQ.GOOD,{src:s.RW.SRC,bidId:o?o.bidId||o.bid_Id:null,transactionId:n.adUnit.transactionId,adUnitId:n.adUnit.adUnitId,auctionId:n.bidderRequest.auctionId}),a),adUnit:n.adUnit.code}},overrides:(0,t.A)((0,t.A)((0,t.A)({},Or,{id:function(e,t,n,r){t.id=r.impId},params:function(e,t,n,r){var i,o=r.s2sBidRequest.s2sConfig.adapterOptions,a=Es(r.actualBidRequests.values());try{for(a.s();!(i=a.n()).done;){var s=i.value;zr(t,s,r,r),o&&o[s.bidder]&&Object.assign(t.ext.prebid.bidder[s.bidder],o[s.bidder])}}catch(e){a.e(e)}finally{a.f()}},bidfloor:function(e,t,n,r){var i,o,a=z(Is((function(e){return[e.bidfloor,e.bidfloorcur]}))),s=Es(r.actualBidRequests.values());try{for(s.s();!(o=s.n()).done;){var c=o.value,d={};if(e(d,c,r),null==d.bidfloorcur||null==d.bidfloor){i=null;break}i=null==i?d:a(i,d)}}catch(e){s.e(e)}finally{s.f()}null!=i&&Object.assign(t,i)}}),Er,{fpd:function(t,n,i,a){var s,c,d;a.transmitTids&&o(n,"source.tid",i.auctionId),(0,r.D9)(n,null===(s=a.s2sBidRequest.ortb2Fragments)||void 0===s?void 0:s.global),a.s2sBidRequest.s2sConfig.extPrebid&&"object"===(0,dt.A)(a.s2sBidRequest.s2sConfig.extPrebid)&&o(n,"ext.prebid",(0,r.D9)((null===(d=n.ext)||void 0===d?void 0:d.prebid)||{},a.s2sBidRequest.s2sConfig.extPrebid)),a.getRedactor().ortb2(n);var u=Object.entries((null===(c=a.s2sBidRequest.ortb2Fragments)||void 0===c?void 0:c.bidder)||{}).filter((function(t){var n=(0,e.A)(t,1)[0],r=a.s2sBidRequest.s2sConfig.bidders;return a.s2sBidRequest.s2sConfig.allowUnknownBidderCodes||r&&r.includes(n)})).map((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];return{bidders:[r],config:{ortb2:a.getRedactor(r).ortb2(i)}}}));u.length&&o(n,"ext.prebid.bidderconfig",u)},extPrebidAliases:function(e,t,n,r){r.actualBidderRequests.forEach((function(n){return e(t,n,r)}))},sourceExtSchain:function(e,t,n,r){var a,s=(0,i.A)(t,"ext.prebid.schains")||[],c=new Set(s.flatMap((function(e){return e.bidders})));s=Object.values(s.concat(r.actualBidderRequests.filter((function(e){return!c.has(e.bidderCode)})).map((function(e){return{bidders:[e.bidderCode],schain:(0,i.A)(e,"bids.0.schain")}}))).filter((function(e){var t=e.bidders,n=e.schain;return(null==t?void 0:t.length)>0&&n})).reduce((function(e,t){var n=t.bidders,r=t.schain,i=JSON.stringify(r);return e.hasOwnProperty(i)||(e[i]={bidders:new Set,schain:r}),n.forEach((function(t){return e[i].bidders.add(t)})),(null==a||e[i].bidders.size>a.bidders.size)&&(a=e[i]),e}),{})).map((function(e){var t=e.bidders,n=e.schain;return{bidders:Array.from(t),schain:n}})),null!=a&&o(t,"source.ext.schain",a.schain),s.length&&o(t,"ext.prebid.schains",s)}}),Sr,{serverSideStats:function(e,t,n,r){r.actualBidderRequests.forEach((function(i){return e(t,n,Ss(Ss({},r),{},{bidderRequest:i,bidRequests:i.bids}))}))},fledgeAuctionConfigs:function(e,t,n,r){var i=Object.values(r.impContext).flatMap((function(e){return(e.fledgeConfigs||[]).map((function(t){var n=e.actualBidderRequests.find((function(e){return e.bidderCode===t.bidder})),r=e.actualBidRequests.get(t.bidder);return{adUnitCode:e.adUnit.code,ortb2:null==n?void 0:n.ortb2,ortb2Imp:null==r?void 0:r.ortb2Imp,config:t.config}}))}));i.length>0&&(t.fledgeAuctionConfigs=i)}})});function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Ds,Rs,js=l.$W.getConfig,Ps=s.RW.SRC,Bs=0,Us={bidders:Object.freeze([]),timeout:1e3,syncTimeout:1e3,maxBids:1,adapter:"prebidServer",allowUnknownBidderCodes:!1,adapterOptions:{},syncUrlModifier:{},ortbNative:{eventtrackers:[{event:1,methods:[1,2]}]}};function Ns(e,t,n,i,o){if(Ds.length!==Bs){Bs++;var a={},s=js("userSync.filterSettings");if(s){var c=s.all,d=s.iframe||c,u=s.image||c;d&&(a=Object.assign({iframe:d},a)),u&&(a=Object.assign({image:u},a))}var l={uuid:(0,r.lk)(),bidders:e,account:o.accountId,filterSettings:a},p=o.userSyncLimit;(0,r.Et)(p)&&p>0&&(l.limit=p),t&&(l.gdpr=t.gdprApplies?1:0,!1!==t.gdprApplies&&(l.gdpr_consent=t.consentString)),n&&(l.us_privacy=n),i&&(l.gpp_sid=i.applicableSections.join(),l.gpp=i.gppString),"boolean"==typeof o.coopSync&&(l.coopSync=o.coopSync);var f=JSON.stringify(l);(0,oo.RD)(Ws(o.syncEndpoint,t),(function(e){try{qs((e=JSON.parse(e)).bidder_status,o)}catch(e){(0,r.vV)(e)}}),f,{contentType:"text/plain",withCredentials:!0})}}function qs(e,t){if(0!==e.length){var n=e.shift();n.no_cookie?function(e,t,n,i,o){o.syncUrlModifier&&"function"==typeof o.syncUrlModifier[n]&&(t=o.syncUrlModifier[n](e,t,n)),function(e,t,n,i,o){t?"image"===e||"redirect"===e?((0,r.OG)('Invoking image pixel user sync for bidder: "'.concat(n,'"')),(0,r.z$)(t,i,o)):"iframe"===e?((0,r.OG)('Invoking iframe user sync for bidder: "'.concat(n,'"')),(0,r.SG)(t,i,o)):((0,r.vV)('User sync type "'.concat(e,'" not supported for bidder: "').concat(n,'"')),i()):((0,r.vV)('No sync url for bidder "'.concat(n,'": ').concat(t)),i())}(e,t,n,i,o.syncTimeout)}(n.usersync.type,n.usersync.url,n.bidder,qs.bind(null,e,t),t):qs(e,t)}}l.$W.setDefaults({s2sConfig:Us}),js("s2sConfig",(function(e){return function(e){if(e){var t=Array.isArray(e)?e:[e],n=[];return t.every((function(t,i,o){!function(e){["endpoint","syncEndpoint"].forEach((function(t){if((0,r.O8)(e[t])){var n=e[t];e[t]={p1Consent:n,noP1Consent:n}}!(0,r.Qd)(e[t])||e[t].p1Consent&&e[t].noP1Consent||["p1Consent","noP1Consent"].forEach((function(n){e[t][n]||(0,r.JE)("s2sConfig.".concat(t,".").concat(n," not defined. PBS request will be skipped in some P1 scenarios."))}))}))}(e);var a=function(e){if(e.defaultVendor){var t=e.defaultVendor,n=Object.keys(e);if(!_s[t])return(0,r.vV)("Incorrect or unavailable prebid server default vendor option: "+t),!1;Object.keys(_s[t]).forEach((function(r){Us[r]!==e[r]&&(0,d.mK)(n,r)||(e[r]=_s[t][r])}))}return e.enabled="boolean"==typeof e.enabled&&e.enabled}(t);if(!1!==a){var s=function(e){var t=Object.keys(e);if(["accountId","endpoint"].filter((function(e){return!(0,d.mK)(t,e)&&((0,r.vV)(e+" missing in server to server config"),!0)})).length>0)return!1}(t);if(!1!==s)return Array.isArray(t.bidders)&&(o[i].bidders=t.bidders.filter((function(e){return-1===n.indexOf(e)&&(n.push(e),!0)}))),!0}return(0,r.JE)("prebidServer: s2s config is disabled"),!1}))?Ds=t:void 0}}(e.s2sConfig)}));var Ms={};function Ls(e){var t,n,i=function(e,t){if([e,t].every(r.O8))return Ms["".concat(e).concat(t)]}(e.auctionId,e.adId);(0,r.O8)(i)&&((0,r.OG)('Invoking image pixel for wurl on BID_WIN: "'.concat(i,'"')),(0,r.z$)(i),[t=e.auctionId,n=e.adId].every(r.O8)&&(Ms["".concat(t).concat(n)]=void 0))}function Ws(e,t){return(0,lt.C)(t)?e.p1Consent:e.noP1Consent}function Fs(e){var t,n,r;return Array.isArray(e)&&e.length>0&&(t=e[0].gdprConsent,n=e[0].uspConsent,r=e[0].gppConsent),{gdprConsent:t,uspConsent:n,gppConsent:r}}var Vs=(0,g.A_)("sync",(function(t,n,i,o){var a=o.onResponse,s=o.onError,c=o.onBid,u=o.onFledge,p=Fs(n).gdprConsent,f=(0,r.Go)(t.ad_units),v=f.map((function(e){return e.bids.map((function(e){return e.bidder})).filter(r.hj)})).reduce(r.Bq,[]).filter(r.hj),g=t.metrics.measureTime("buildRequests",(function(){return function(t,n,i,o,a){var s,c,d=(0,r.vE)(),u=new Set,p=[],f=(0,ge.K5)(t.s2sConfig),v=(s=(0,As.$p)(f),c={},function(e){return null==e?s:(c.hasOwnProperty(e)||(c[e]=(0,As.$p)((0,Te.s)(De.tW,e))),c[e])});(i=i.map((function(e){return v().bidRequest(e)}))).forEach((function(e){var t=new Map;i.bids=e.bids.map((function(e){return v(e.bidder).bidRequest(e)})),e.bids.forEach((function(i){null!=i.mediaTypes&&(0,r.JE)("Prebid Server adapter does not (yet) support bidder-specific mediaTypes for the same adUnit. Size mapping configuration will be ignored for adUnit: ".concat(e.code,", bidder: ").concat(i.bidder)),t.set(i.bidder,(0,r.D4)(i.bid_id,n))}));for(var o=e.code,a=1;u.has(o);)a++,o="".concat(e.code,"-").concat(a);u.add(o),p.push(Ss(Ss(Ss({},e),{},{adUnitCode:e.code},(0,r.SH)(t.values().next().value||{},["userId","userIdAsEids","schain"])),{},{pbsData:{impId:o,actualBidRequests:t,adUnit:e}}))}));var g=Ss(Ss({},Object.fromEntries(Object.entries(n[0]).filter((function(t){var n=(0,e.A)(t,1)[0];return!Cs.has(n)})))),{},{fledgeEnabled:n.some((function(e){return e.fledgeEnabled}))});return Ts.toORTB({bidderRequest:g,bidRequests:p,context:{currency:l.$W.getConfig("currency.adServerCurrency")||"USD",ttl:t.s2sConfig.defaultTtl||60,requestTimestamp:d,s2sBidRequest:t,requestedBidders:o,actualBidderRequests:n,eidPermissions:a,nativeRequest:t.s2sConfig.ortbNative,getRedactor:v,transmitTids:(0,Ce.io)(ke.VJ,f)}})}(t,n,f,v,Rs)})),m=g&&JSON.stringify(g);(0,r.fH)("BidRequest: "+m);var h=Ws(t.s2sConfig.endpoint,p);if(g&&m&&h){var b=t.metrics.startTiming("net");i(h,{success:function(e){var n;b();try{n=JSON.parse(e);var i=t.metrics.measureTime("interpretResponse",(function(){return function(e,t){return Ts.fromORTB({response:e,request:t})}(n,g)})),o=i.bids,s=i.fledgeAuctionConfigs;o.forEach(c),s&&s.forEach(u)}catch(e){(0,r.vV)(e)}!n||n.status&&(0,d.mK)(n.status,"Error")?((0,r.vV)("error parsing response: ",n?n.status:"not valid JSON"),a(!1,v)):a(!0,v,n)},error:function(){b(),s.apply(this,arguments)}},m,{contentType:"text/plain",withCredentials:!0,browsingTopics:(0,Ce.io)(ke.DL,(0,ge.K5)(t.s2sConfig))})}else(0,r.vV)("PBS request not made. Check endpoints.")}),"processPBSRequest");function Gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zs(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Gs(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}(0,r.YI)().setEidPermissions=function(e){Rs=e},ge.Ay.registerBidAdapter(new function(){var e=new ys.A("prebidServer");return e.callBids=function(e,n,o,a,c){var d=e.metrics=(0,me.BO)((0,i.A)(n,"0.metrics")).newMetrics().renameWith((function(t){return["adapter.s2s.".concat(t),"adapters.s2s.".concat(e.s2sConfig.defaultVendor,".").concat(t)]}));a=d.startTiming("total").stopBefore(a),n.forEach((function(e){return(0,me.BO)(e.metrics).join(d,{continuePropagation:!1})}));var p=Fs(n),f=p.gdprConsent,v=p.uspConsent,g=p.gppConsent;Array.isArray(Ds)&&(e.s2sConfig&&e.s2sConfig.syncEndpoint&&Ws(e.s2sConfig.syncEndpoint,f)&&Ns(e.s2sConfig.bidders.map((function(e){return ge.Ay.aliasRegistry[e]||e})).filter((function(e,t,n){return n.indexOf(e)===t})),f,v,g,e.s2sConfig),Vs(e,n,c,{onResponse:function(t,r,i){t&&n.forEach((function(e){return u.Ic(s.qY.BIDDER_DONE,e)})),function(e,t){var n,r;return(null==e||null===(n=e.extPrebid)||void 0===n?void 0:n.returnallbidstatus)&&(null==t||null===(r=t.ext)||void 0===r?void 0:r.seatnonbid)}(e.s2sConfig,i)&&u.Ic(s.qY.SEAT_NON_BID,{seatnonbid:i.ext.seatnonbid,auctionId:n[0].auctionId,requestedBidders:r,response:i,adapterMetrics:d}),a(!1),function(e,t,n,r){e.forEach((function(e){var i=ge.Ay.getBidAdapter(e);i&&i.registerSyncs&&l.$W.runWithBidder(e,i.registerSyncs.bind(i,[],t,n,r))}))}(r,f,v,g)},onError:function(e,t){(0,r.vV)("Prebid server call failed: '".concat(e,"'"),t),n.forEach((function(e){return u.Ic(s.qY.BIDDER_ERROR,{error:t,bidderRequest:e})})),a(t.timedOut)},onBid:function(t){var n,i,a,c=t.adUnit,d=t.bid,u=d.metrics=e.metrics.fork().renameWith();u.checkpoint("addBidResponse"),null!=d.requestId&&null!=d.requestBidder||e.s2sConfig.allowUnknownBidderCodes?u.measureTime("addBidResponse.validate",(function(){return(0,ut.fn)(c,d)}))?(o(c,d),d.pbsWurl&&(n=d.auctionId,i=d.adId,a=d.pbsWurl,[n,i].every(r.O8)&&(Ms["".concat(n).concat(i)]=a))):o.reject(c,d,s.Tf.INVALID):((0,r.JE)("PBS adapter received bid from unknown bidder (".concat(d.bidder,"), but 's2sConfig.allowUnknownBidderCodes' is not set. Ignoring bid.")),o.reject(c,d,s.Tf.BIDDER_DISALLOWED))},onFledge:function(e){(0,ut.sv)(function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?ks(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ks(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({auctionId:n[0].auctionId},e),e.config)}}))},u.on(s.qY.BID_WON,Ls),Object.assign(this,{callBids:e.callBids,setBidderCode:e.setBidderCode,type:Ps})},"prebidServer"),(0,n.E)("prebidServerBidAdapter");var Hs=ge.S1.CLIENT,Js=ge.S1.SERVER,Ks=zs(zs({},ge.S1),{},{clientTestBidders:new Set});function $s(e){return e&&e.enabled&&e.testing}Ks.bidSource={},Ks.globalRand=Math.random(),Ks.getSourceBidderMap=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=(0,t.A)((0,t.A)({},Js,{}),Hs,{});return e.forEach((function(e){(e.bids||[]).forEach((function(e){n.indexOf(e.bidder)>-1&&!Ks.bidSource[e.bidder]&&(Ks.bidSource[e.bidder]=Js),e.calcSource=e.calcSource||Ks.getSource(e.bidSource),e.finalSource=e.calcSource||Ks.bidSource[e.bidder]||Hs,r[e.finalSource][e.bidder]=!0}))})),Object.keys(Ks.bidSource).forEach((function(e){r[Ks.bidSource[e]][e]=!0})),(0,t.A)((0,t.A)({},Js,Object.keys(r[Js])),Hs,Object.keys(r[Hs]))},Ks.calculateBidSources=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidderControl||{};(e.bidders||[]).forEach((function(e){Ks.bidSource[e]=Ks.getSource(t[e]&&t[e].bidSource)||Js}))},Ks.getSource=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[Js,Hs],n={},r=0;if(t.forEach((function(t){r+=e[t]||0,n[t]=r})),r)for(var i=Ks.globalRand*r,o=0;o<t.length;o++){var a=t[o];if(i<n[a])return a}},ge.Mf.before((function(e,n,i){var o=(0,ge.pX)(i),a=!1;i.forEach((function(e){$s(e)&&(Ks.calculateBidSources(e),Ks.getSourceBidderMap(n,(0,M.A)(o))[Hs].forEach((function(e){return Ks.clientTestBidders.add(e)}))),function(e){return Boolean($s(e)&&e.testServerOnly)}(e)&&function(e,t){return Boolean((0,d.I6)(e,(function(e){return(0,d.I6)(e.bids,(function(e){return(e.bidSource||t.bidderControl&&t.bidderControl[e.bidder])&&e.finalSource===Js}))})))}(n,e)&&((0,r.JE)("testServerOnly: True. All client requests will be suppressed."),a=!0)})),e.bail((0,r.ZA)(n).reduce((function(e,t){return o.has(t)&&e[Js].push(t),a||o.has(t)&&!Ks.clientTestBidders.has(t)||e[Hs].push(t),e}),(0,t.A)((0,t.A)({},Hs,[]),Js,[])))})),ge.tS.before((function(e,t,n){if(null==n)e.bail(t.filter((function(e){return!Ks.clientTestBidders.size||e.finalSource!==Js})));else{var r=(0,ge.pX)(n);e.bail(t.filter((function(e){return r.has(e.bidder)&&(!$s(n)||e.finalSource!==Hs)})))}})),(0,n.E)("s2sTesting");var Qs,Xs,Ys="iab",Zs=Ys,ec=50,tc=!1,nc={iab:function(e){var t,n=e.onSuccess,i=e.onError,o=(t={},{consentDataCallback:function(e,r){r&&e.uspString&&(t.usPrivacy=e.uspString),t.usPrivacy?oc(t,{onSuccess:n,onError:i}):i("Unable to get USP consent string.")}}),a=Ii({apiName:"__uspapi",apiVersion:1,apiArgs:["command","version","callback"]});if(!a)return i("USP CMP not found.");a.isDirect?(0,r.fH)("Detected USP CMP is directly accessible, calling it now..."):(0,r.fH)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now..."),a({command:"getUSPData",callback:o.consentDataCallback}),a({command:"registerDeletion",callback:function(e,t){return(null==t||t)&&ge.Ay.callDataDeletionRequest(e)}}).catch((function(e){(0,r.vV)("Error invoking CMP `registerDeletion`:",e)}))},static:function(e){var t=e.onSuccess,n=e.onError;oc(Qs,{onSuccess:t,onError:n})}};function rc(e){var t=null,n=!1;function r(r,i){if(null!=t&&clearTimeout(t),n=!0,Le.t6.setConsentData(r),null!=e){for(var o=arguments.length,a=new Array(o>2?o-2:0),s=2;s<o;s++)a[s-2]=arguments[s];e.apply(void 0,[i].concat(a))}}if(nc[Zs]){var i={onSuccess:r,onError: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];r.apply(void 0,[null,"".concat(e," Resuming auction without consent data as per consentManagement config.")].concat(n))}};nc[Zs](i),n||(0===ec?oc(void 0,i):t=setTimeout(i.onError.bind(null,"USPAPI workflow exceeded timeout threshold."),ec))}else r(null,"USP framework (".concat(Zs,") is not a supported framework. Aborting consentManagement module and resuming auction."))}var ic=(0,me.Ak)("usp",(function(e,t){var n=this;tc||ac(),rc((function(i){if(null!=i){for(var o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];r.JE.apply(void 0,[i].concat(a))}e.call(n,t)}))}));function oc(e,t){var n=t.onSuccess,r=t.onError;e&&e.usPrivacy?(function(e){e&&e.usPrivacy&&(Xs=e.usPrivacy)}(e),n(Xs)):r("USPAPI returned unexpected value during lookup process.",e)}function ac(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];tc||((0,r.fH)("USPAPI consentManagement module has been activated".concat(e?"":" using default values (api: '".concat(Zs,"', timeout: ").concat(ec,"ms)"))),tc=!0,Le.t6.enable()),rc()}l.$W.getConfig("consentManagement",(function(e){return function(e){(e=e&&e.usp)&&"object"===(0,dt.A)(e)||(0,r.JE)("consentManagement.usp config not defined, using defaults"),e&&(0,r.O8)(e.cmpApi)?Zs=e.cmpApi:(Zs=Ys,(0,r.fH)("consentManagement.usp config did not specify cmpApi. Using system default setting (".concat(Ys,")."))),e&&(0,r.Et)(e.timeout)?ec=e.timeout:(ec=50,(0,r.fH)("consentManagement.usp config did not specify timeout. Using system default setting (".concat(50,")."))),"static"===Zs&&((0,r.Qd)(e.consentData)&&(0,r.Qd)(e.consentData.getUSPData)?(e.consentData.getUSPData.uspString&&(Qs={usPrivacy:e.consentData.getUSPData.uspString}),ec=0):(0,r.vV)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),ac(!0)}(e.consentManagement)})),(0,g.Yn)("requestBids").before(ic,50),Be.before((function(e,t){return e(t.then((function(e){var t=Le.t6.getConsentData();return t&&o(e,"regs.ext.us_privacy",t),e})))})),(0,n.E)("consentManagementUsp");var sc=__webpack_require__(6822),cc=__webpack_require__(9417),dc=__webpack_require__(5361),uc=__webpack_require__(3954);function lc(){return lc="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,uc.A)(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},lc.apply(this,arguments)}var pc,fc,vc=__webpack_require__(2901),gc=__webpack_require__(3029),mc=__webpack_require__(6642);function hc(e,t,n){return t=(0,uc.A)(t),(0,sc.A)(e,bc()?Reflect.construct(t,n||[],(0,uc.A)(e).constructor):t.apply(e,n))}function bc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bc=function(){return!!e})()}function yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _c(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?yc(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ac(e,t,n){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,n)}function wc(e,t){return e.get(Oc(e,t))}function Ic(e,t,n){t||(t=[]);var r=t.length++;return Object.defineProperty({},"_",{set:function(i){t[r]=i,e.apply(n,t)}})}function Ec(e,t,n){return e.set(Oc(e,t),n),n}function Oc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var xc,Sc,Cc,Tc,kc=!1;function Dc(e,t){var n=t.onSuccess,r=t.onError;new v.k((function(t){return t(e())})).then(n,(function(e){e instanceof Rc?r.apply(void 0,[e.message].concat((0,M.A)(e.args))):r("GPP error:",e)}))}var Rc=(0,vc.A)((function e(t,n){(0,gc.A)(this,e),this.message=t,this.args=null==n?[]:[n]})),jc=new WeakMap,Pc=new WeakMap,Bc=new WeakMap,Uc=function(){function n(r,i){var o=this;(0,gc.A)(this,n),Ac(this,jc,void 0),Ac(this,Pc,void 0),Ac(this,Bc,[]),(0,t.A)(this,"initialized",!1),this.apiVersion=this.constructor.apiVersion,this.cmpVersion=i,this.cmp=i;var a=[0,1].map((function(e){return function(t){for(;wc(Bc,o).length;)wc(Bc,o).pop()[e](t)}})),s=(0,e.A)(a,2);Ic(Ec,[jc,this])._=s[0],Ic(Ec,[Pc,this])._=s[1]}return(0,vc.A)(n,[{key:"init",value:function(e){var t=this,n=this.updateWhenReady(e);return this.initialized||(this.initialized=!0,this.cmp({command:"addEventListener",callback:function(e,n){var r;null==n||n?"error"===(null==e||null===(r=e.pingData)||void 0===r?void 0:r.cmpStatus)?wc(Pc,t).call(t,new Rc('CMP status is "error"; please check CMP setup',e)):t.isCMPReady((null==e?void 0:e.pingData)||{})&&t.events.includes(null==e?void 0:e.eventName)&&wc(jc,t).call(t,t.updateConsent(e.pingData)):wc(Pc,t).call(t,new Rc("Received error response from CMP",e))}})),n}},{key:"refresh",value:function(){return this.cmp({command:"ping"}).then(this.updateWhenReady.bind(this))}},{key:"updateConsent",value:function(e){return this.getGPPData(e).then((function(e){if(null==e||(0,r.Im)(e))throw new Rc("Received empty response from CMP",e);return Lc(e)})).then((function(e){return(0,r.fH)("Retrieved GPP consent from CMP:",e),e}))}},{key:"nextUpdate",value:function(){var e=this;return new v.k((function(t,n){wc(Bc,e).push([t,n])}))}},{key:"updateWhenReady",value:function(e){return this.isCMPReady(e)?this.updateConsent(e):this.nextUpdate()}}],[{key:"register",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.apiVersion=e,this.CLIENTS[e]=this,t&&(this.CLIENTS.default=this)}},{key:"init",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ii,r=this.INST;if(!r){var i,o=function(){return i&&(t.INST=null)};r=this.INST=this.ping(n).catch((function(e){throw i=!0,o(),e})),o()}return r.then((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];return[r,r.initialized?r.refresh():r.init(i)]}))}},{key:"ping",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ii,n={apiName:"__gpp",apiArgs:["command","callback","parameter"]},i=t(_c(_c({},n),{},{mode:1}));return new v.k((function(o,a){if(null!=i){var s=!1,c=function(i,c){if(!s)if(null==c||c){if(null!=i){s=!0;var d=null==i?void 0:i.gppVersion,u=e.getClient(d);d!==u.apiVersion?(0,r.JE)("Unrecognized GPP CMP version: ".concat(d,". Continuing using GPP API version ").concat(u,"...")):(0,r.fH)("Using GPP version ".concat(d));var l="1.0"===u.apiVersion?0:2,p=new u(d,t(_c(_c({},n),{},{mode:l})));o([p,i])}}else a(i)};i({command:"ping",callback:c}).then((function(e){return c(e,!0)}),a)}else a(new Rc("GPP CMP not found"))})).finally((function(){i&&i.close()}))}},{key:"getClient",value:function(e){return this.CLIENTS.hasOwnProperty(e)?this.CLIENTS[e]:this.CLIENTS.default}}]),n}();(0,t.A)(Uc,"CLIENTS",{}),(0,t.A)(Uc,"INST",void 0),pc=function(n){function i(){var e;(0,gc.A)(this,i);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e=hc(this,i,[].concat(r)),(0,t.A)((0,cc.A)(e),"events",["sectionChange","cmpStatus"]),e}return(0,dc.A)(i,n),(0,vc.A)(i,[{key:"isCMPReady",value:function(e){return"loaded"===e.cmpStatus}},{key:"getGPPData",value:function(t){var n=this,i=v.k.all((t.supportedAPIs||t.apiSupport||[]).map((function(e){return n.cmp({command:"getSection",parameter:e}).catch((function(t){(0,r.JE)("Could not retrieve GPP section '".concat(e,"'"),t)})).then((function(t){return[e,t]}))}))).then((function(t){return Object.fromEntries(t.filter((function(t){var n=(0,e.A)(t,2);return n[0],null!=n[1]})).map((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1],o=[Object.fromEntries(Object.entries(i).filter((function(t){return"Gpc"!==(0,e.A)(t,1)[0]})))];return null!=i.Gpc&&o.push({SubsectionType:1,Gpc:i.Gpc}),[r,o]})))}));return v.k.all([this.cmp({command:"getGPPData"}),i]).then((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];return Object.assign({},r,{parsedSections:i})}))}}]),i}(Uc),lc((0,uc.A)(pc),"register",pc).call(pc,"1.0"),fc=function(e){function n(){var e;(0,gc.A)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return e=hc(this,n,[].concat(i)),(0,t.A)((0,cc.A)(e),"events",["sectionChange","signalStatus"]),e}return(0,dc.A)(n,e),(0,vc.A)(n,[{key:"isCMPReady",value:function(e){return"ready"===e.signalStatus}},{key:"getGPPData",value:function(e){return v.k.resolve(e)}}]),n}(Uc),lc((0,uc.A)(fc),"register",fc).call(fc,"1.1",!0);var Nc={iab:function(t){var n=t.onSuccess,r=t.onError,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ii;Dc((function(){return Uc.init(i).then((function(t){var n=(0,e.A)(t,2);return n[0],n[1]}))}),{onSuccess:n,onError:r})},static:function(e){return Dc((function(){return Lc(Cc)}),e)}};function qc(e){var t=!1,n=null;function r(r,i,o){if(null!=n&&clearTimeout(n),t=!0,Le.ad.setConsentData(r),"function"==typeof e){for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c<a;c++)s[c-3]=arguments[c];e.apply(void 0,[i,o].concat(s))}}if(Nc.hasOwnProperty(xc)){var i={onSuccess:function(e){return r(e,!1)},onError: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];r.apply(void 0,[null,!0,e].concat(n))}};if(Nc[xc](i),!t){var o=function(){var e=function(e){r(e,!1,"GPP CMP did not load, continuing auction...")};Dc((function(){return Lc(Tc)}),{onSuccess:e,onError:function(){return e(Wc())}})};0===Sc?o():n=setTimeout(o,Sc)}}else r(null,!1,"GPP CMP framework (".concat(xc,") is not a supported framework. Aborting consentManagement module and resuming auction."))}var Mc=(0,me.Ak)("gpp",(function(e,t){var n;n=function(n,i){if(i){var o=r.JE;n&&(o=r.vV,i="".concat(i," Canceling auction as per consentManagement config."));for(var a=arguments.length,s=new Array(a>2?a-2:0),c=2;c<a;c++)s[c-2]=arguments[c];o.apply(void 0,[i].concat(s))}n?(e.stopTiming(),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():(0,r.vV)("Error executing bidsBackHandler")):e.call(this,t)},Tc?((0,r.fH)("User consent information already known. Pulling internally stored information..."),n(!1)):qc(n)}));function Lc(e){if(null!=(null==e?void 0:e.applicableSections)&&!Array.isArray(e.applicableSections)||null!=(null==e?void 0:e.gppString)&&!(0,r.O8)(e.gppString)||null!=(null==e?void 0:e.parsedSections)&&!(0,r.Qd)(e.parsedSections))throw new Rc("CMP returned unexpected value during lookup process.",e);return Wc(e)}function Wc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Tc={gppString:null==e?void 0:e.gppString,applicableSections:(null==e?void 0:e.applicableSections)||[],parsedSections:(null==e?void 0:e.parsedSections)||{},gppData:e},Le.ad.setConsentData(e),Tc}function Fc(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function Vc(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Fc(o,r,i,a,s,"next",e)}function s(e){Fc(o,r,i,a,s,"throw",e)}a(void 0)}))}}l.$W.getConfig("consentManagement",(function(e){return function(e){(e=e&&e.gpp)&&"object"===(0,dt.A)(e)?((0,r.O8)(e.cmpApi)?xc=e.cmpApi:(xc="iab",(0,r.fH)("consentManagement.gpp config did not specify cmp. Using system default setting (".concat("iab",")."))),(0,r.Et)(e.timeout)?Sc=e.timeout:(Sc=1e4,(0,r.fH)("consentManagement.gpp config did not specify timeout. Using system default setting (".concat(1e4,")."))),"static"===xc&&((0,r.Qd)(e.consentData)?(Cc=e.consentData,Sc=0):(0,r.vV)("consentManagement.gpp config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),(0,r.fH)("consentManagement.gpp module has been activated..."),kc||((0,n.m)().requestBids.before(Mc,50),mc.U3.before((function(e,t){return e(Object.assign({gppConsent:Le.ad.getConsentData()},t))}))),kc=!0,Le.ad.enable(),qc()):(0,r.JE)("consentManagement.gpp config not defined, exiting consent manager module")}(e.consentManagement)})),Be.before((function(e,t){return e(t.then((function(e){var t=Le.ad.getConsentData();return t&&(Array.isArray(t.applicableSections)&&o(e,"regs.gpp_sid",t.applicableSections),o(e,"regs.gpp",t.gppString)),e})))})),(0,n.E)("consentManagementGpp");var Gc=__webpack_require__(4756),zc=__webpack_require__.n(Gc);function Hc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jc(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Hc(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Kc(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var $c=30,Qc="id5id",Xc="".concat(Qc,"_privacy"),Yc="html5",Zc="User ID - ID5 submodule: ",ed="https://id5-sync.com/api/config/prebid",td="id5-sync.com",nd=["pbjs-id5id","id5id.1st","id5id"],rd=(0,ve.vM)({moduleType:De.fW,moduleName:"id5Id"}),id={name:"id5Id",gvlid:131,decode:function(e,t){var n={};if(e&&"string"==typeof e.universal_uid){var a={id5id:{uid:e.universal_uid,ext:n=e.ext||n}};switch((0,r.Qd)(n.euid)&&(a.euid={uid:n.euid.uids[0].id,source:n.euid.source,ext:{provider:td}}),(0,i.A)(e,"ab_testing.result")){case"control":(0,r.fH)(Zc+"A/B Testing - user is in the Control Group: ID5 ID is NOT exposed"),o(a,"id5id.ext.abTestingControlGroup",!0);break;case"error":(0,r.vV)(Zc+"A/B Testing ERROR! controlGroupPct must be a number >= 0 and <= 1");break;case"normal":(0,r.fH)(Zc+"A/B Testing - user is NOT in the Control Group"),o(a,"id5id.ext.abTestingControlGroup",!1)}return(0,r.fH)(Zc+"Decoded ID",a),a}},getId:function(e,t,n){if(Id(e)){if(Cd(t))return{callback:function(i){new ad(e,t,n,Le.t6.getConsentData(),Le.ad.getConsentData()).execute().then((function(e){i(e)})).catch((function(e){(0,r.vV)(Zc+"getId fetch encountered an error",e),i()}))}};(0,r.fH)(Zc+"Skipping ID5 local storage write because no consent given.")}},extendId:function(e,t,n){return Cd(t)?(xd(Id(e)?e.params.partner:0),(0,r.fH)(Zc+"using cached ID",n),n):((0,r.fH)(Zc+"No consent given for ID5 local storage writing, skipping nb increment."),n)},eids:{id5id:{getValue:function(e){return e.uid},source:td,atype:1,getUidExt:function(e){if(e.ext)return e.ext}},euid:{getValue:function(e){return e.uid},getSource:function(e){return e.source},atype:3,getUidExt:function(e){if(e.ext)return e.ext}}}},od=new WeakSet,ad=function(){function e(t,n,r,i,o){var a,s;(0,gc.A)(this,e),function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(a=this,s=od),s.add(a),this.submoduleConfig=t,this.gdprConsentData=n,this.cacheIdObj=r,this.usPrivacyData=i,this.gppData=o}var t;return(0,vc.A)(e,[{key:"execute",value:(t=Vc(zc().mark((function e(){var t;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=Kc(od,this,fd).call(this),!Kc(od,this,sd).call(this)){e.next=14;break}return e.prev=2,e.next=5,Kc(od,this,cd).call(this,t);case 5:return e.abrupt("return",e.sent);case 8:return e.prev=8,e.t0=e.catch(2),(0,r.vV)(Zc+"Error while performing ID5 external module flow. Continuing with regular flow.",e.t0),e.abrupt("return",Kc(od,this,ld).call(this,t));case 12:e.next=15;break;case 14:return e.abrupt("return",Kc(od,this,ld).call(this,t));case 15:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(){return t.apply(this,arguments)})}]),e}();function sd(){return"string"==typeof this.submoduleConfig.params.externalModuleUrl}function cd(e){return dd.apply(this,arguments)}function dd(){return(dd=Vc(zc().mark((function e(t){var n;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ad(this.submoduleConfig.params.externalModuleUrl);case 2:return e.next=4,t;case 4:return n=e.sent,e.abrupt("return",Kc(od,this,ud).call(this).fetchId5Id(n,this.submoduleConfig.params,(0,he.EN)(),this.gdprConsentData,this.usPrivacyData,this.gppData));case 6:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function ud(){return window.id5Prebid&&window.id5Prebid.integration}function ld(e){return pd.apply(this,arguments)}function pd(){return(pd=Vc(zc().mark((function e(t){var n,r,i;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return n=e.sent,e.next=5,Kc(od,this,gd).call(this,n.extensionsCall);case 5:return r=e.sent,e.next=8,Kc(od,this,hd).call(this,n.fetchCall,r);case 8:return i=e.sent,e.abrupt("return",Kc(od,this,_d).call(this,i));case 10:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function fd(){return vd.apply(this,arguments)}function vd(){return(vd=Vc(zc().mark((function e(){var t,n,i;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.submoduleConfig.params.configUrl||ed,e.next=3,(0,oo.hd)(t,{method:"POST",body:JSON.stringify(this.submoduleConfig)});case 3:if((n=e.sent).ok){e.next=6;break}throw new Error("Error while calling config endpoint: ",n);case 6:return e.next=8,n.json();case 8:return i=e.sent,(0,r.fH)(Zc+"config response received from the server",i),e.abrupt("return",i);case 11:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function gd(e){return md.apply(this,arguments)}function md(){return(md=Vc(zc().mark((function e(t){var n,i,o,a,s;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==t){e.next=2;break}return e.abrupt("return",void 0);case 2:return n=t.url,i=t.method||"GET",o="GET"===i?void 0:JSON.stringify(t.body||{}),e.next=7,(0,oo.hd)(n,{method:i,body:o});case 7:if((a=e.sent).ok){e.next=10;break}throw new Error("Error while calling extensions endpoint: ",a);case 10:return e.next=12,a.json();case 12:return s=e.sent,(0,r.fH)(Zc+"extensions response received from the server",s),e.abrupt("return",s);case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hd(e,t){return bd.apply(this,arguments)}function bd(){return(bd=Vc(zc().mark((function e(t,n){var i,o,a,s,c;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.url,o=t.overrides||{},a=JSON.stringify(Jc(Jc(Jc({},Kc(od,this,yd).call(this)),o),{},{extensions:n})),e.next=5,(0,oo.hd)(i,{method:"POST",body:a,credentials:"include"});case 5:if((s=e.sent).ok){e.next=8;break}throw new Error("Error while calling fetch endpoint: ",s);case 8:return e.next=10,s.json();case 10:return c=e.sent,(0,r.fH)(Zc+"fetch response received from the server",c),e.abrupt("return",c);case 13:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function yd(){var e,t,n,i=this.submoduleConfig.params,o=this.gdprConsentData&&"boolean"==typeof this.gdprConsentData.gdprApplies&&this.gdprConsentData.gdprApplies?1:0,a=(0,he.EN)(),s=this.cacheIdObj&&this.cacheIdObj.signature?this.cacheIdObj.signature:(nd.forEach((function(t){rd.getCookie(t)&&(e=(0,r.$l)(rd.getCookie(t))||e)})),e&&e.signature||""),c=(n=xd(t=i.partner),Od(t,0),n),d={partner:i.partner,gdpr:o,nbPage:c,o:"pbjs",tml:a.topmostLocation,ref:a.ref,cu:a.canonicalUrl,top:a.reachedTop?1:0,u:a.stack[0]||window.location.href,v:"8.45.0",storage:this.submoduleConfig.storage,localStorage:rd.localStorageIsEnabled()?1:0};!o||void 0===this.gdprConsentData.consentString||(0,r.Im)(this.gdprConsentData.consentString)||(0,r.xQ)(this.gdprConsentData.consentString)||(d.gdpr_consent=this.gdprConsentData.consentString),void 0===this.usPrivacyData||(0,r.Im)(this.usPrivacyData)||(0,r.xQ)(this.usPrivacyData)||(d.us_privacy=this.usPrivacyData),this.gppData&&(d.gpp_string=this.gppData.gppString,d.gpp_sid=this.gppData.applicableSections),void 0===s||(0,r.xQ)(s)||(d.s=s),void 0===i.pd||(0,r.xQ)(i.pd)||(d.pd=i.pd),void 0===i.provider||(0,r.xQ)(i.provider)||(d.provider=i.provider);var u=i.abTesting||{enabled:!1};return u.enabled&&(d.ab_testing={enabled:!0,control_group_pct:u.controlGroupPct}),d}function _d(e){try{e.privacy&&Sd(Xc,JSON.stringify(e.privacy),$c)}catch(e){(0,r.vV)(Zc+"Error while writing privacy info into local storage.",e)}return e}function Ad(e){return wd.apply(this,arguments)}function wd(){return(wd=Vc(zc().mark((function e(t){return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new v.k((function(e,n){if(window.id5Prebid)e();else try{(0,de.R)(t,"id5",e)}catch(e){n(e)}})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Id(e){if(!e||!e.params||!e.params.partner)return(0,r.vV)(Zc+"partner required to be defined"),!1;var t=e.params.partner;if("string"==typeof t||t instanceof String){var n=parseInt(t);if(isNaN(n)||n<0)return(0,r.vV)(Zc+"partner required to be a number or a String parsable to a positive integer"),!1;e.params.partner=n}else if("number"!=typeof t)return(0,r.vV)(Zc+"partner required to be a number or a String parsable to a positive integer"),!1;return e.storage&&e.storage.type&&e.storage.name?(e.storage.type!==Yc&&(0,r.JE)(Zc+"storage type recommended to be '".concat(Yc,"'. In a future release this may become a strict requirement")),e.storage.name!==Qc&&(0,r.JE)(Zc+"storage name recommended to be '".concat(Qc,"'. In a future release this may become a strict requirement")),!0):((0,r.vV)(Zc+"storage required to be set"),!1)}function Ed(e){return"".concat(Qc,"_").concat(e,"_nb")}function Od(e,t){Sd(Ed(e),t,$c)}function xd(e){var t=function(e){var t,n,r=(t=Ed(e),""===(n=rd.getDataFromLocalStorage("".concat(t,"_exp")))||n&&new Date(n).getTime()-Date.now()>0?rd.getDataFromLocalStorage(t):(rd.removeDataFromLocalStorage(t),null));return r?parseInt(r):0}(e)+1;return Od(e,t),t}function Sd(e,t,n){rd.setDataInLocalStorage("".concat(e,"_exp"),function(e){return new Date(Date.now()+864e5*e).toUTCString()}(n)),rd.setDataInLocalStorage("".concat(e),t)}function Cd(e){var t=e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies,n=(0,i.A)(e,"vendorData.purpose.consents.1"),r=(0,i.A)(e,"vendorData.vendor.consents.".concat(131..toString()));return!!(!t||n&&r)}(0,g.bz)("userId",id),(0,n.E)("id5IdSystem");var Td="identityLink",kd=(0,ve.vM)({moduleType:De.fW,moduleName:Td}),Dd="_lr_env",Rd={name:Td,gvlid:97,decode:function(e){return{idl_env:e}},getId:function(e,t){var n=e&&e.params||{};if(n&&"string"==typeof n.pid){var i=t&&"boolean"==typeof t.gdprApplies&&t.gdprApplies?1:0,o=i?t.consentString:"";if(!i||o&&""!==o){var a=Le.ad.getConsentData(),s=!(!a||!a.gppString)&&a.gppString,c=!!(a&&a.gppString&&a.applicableSections.length>0&&-1!==a.applicableSections[0])&&a.applicableSections[0],d=s&&c,u="https://api.rlcdn.com/api/identity/envelope?pid=".concat(n.pid).concat(i?"&ct=4&cv="+o:"").concat(d?"&gpp="+s+"&gpp_sid="+c:"");return{callback:function(e){if(window.ats&&window.ats.retrieveEnvelope)r.fH("identityLink: ATS exists!"),window.ats.retrieveEnvelope((function(t){t?(r.fH("identityLink: An envelope can be retrieved from ATS!"),Pd(!0),e(JSON.parse(t).envelope)):jd(u,e,n)}));else{var t=(i=kd.getCookie(Dd)||kd.getDataFromLocalStorage(Dd))?window.atob(i):void 0;t?(r.fH("identityLink: LiveRamp envelope successfully retrieved from storage!"),e(JSON.parse(t).envelope)):jd(u,e,n)}var i}}}r.fH("identityLink: Consent string is required to call envelope API.")}else r.vV("identityLink: requires partner id to be defined")},eids:{idl_env:{source:"liveramp.com",atype:3}}};function jd(e,t,n){var i,o={success:function(e){var n;if(e)try{n=JSON.parse(e)}catch(e){r.fH(e)}t(n&&n.envelope?n.envelope:"")},error:function(e){r.fH("identityLink: identityLink: ID fetch encountered an error",e),t()}};n.notUse3P||kd.getCookie("_lr_retry_request")||((i=new Date).setTime(i.getTime()+36e5),kd.setCookie("_lr_retry_request","true",i.toUTCString()),r.fH("identityLink: A 3P retrieval is attempted!"),Pd(!1),(0,oo.RD)(e,o,void 0,{method:"GET",withCredentials:!0}))}function Pd(e){var t=new Date;t.setTime(t.getTime()+2592e6),kd.setCookie("_lr_env_src_ats",e,t.toUTCString())}function Bd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ud(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Bd(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Nd(e){return!!("object"===(0,dt.A)(e)&&null!==e&&e.advertising_token&&e.identity_expires&&e.refresh_from&&e.refresh_token&&e.refresh_expires)}(0,g.bz)("userId",Rd),(0,n.E)("identityLinkIdSystem");var qd,Md=function(){function e(t,n,r,i){(0,gc.A)(this,e),this._baseUrl=t.baseUrl,this._clientVersion=n,this._logInfo=r,this._logWarn=i}return(0,vc.A)(e,[{key:"createArrayBuffer",value:function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}},{key:"hasStatusResponse",value:function(e){return"object"===(0,dt.A)(e)&&e&&e.status}},{key:"isValidRefreshResponse",value:function(e){return this.hasStatusResponse(e)&&("optout"===e.status||"expired_token"===e.status||"success"===e.status&&e.body&&Nd(e.body))}},{key:"ResponseToRefreshResult",value:function(e){return this.isValidRefreshResponse(e)?"success"===e.status?{status:e.status,identity:e.body}:e:"Response didn't contain a valid status"}},{key:"callRefreshApi",value:function(e){var t,n,r=this,i=this._baseUrl+"/v2/token/refresh",o=new Promise((function(e,r){t=e,n=r}));return this._logInfo("Sending refresh request",e),(0,oo.RD)(i,{success:function(i){try{if(e.refresh_response_key){r._logInfo("Decrypting refresh API response");var o=r.createArrayBuffer(atob(i));window.crypto.subtle.importKey("raw",r.createArrayBuffer(atob(e.refresh_response_key)),{name:"AES-GCM"},!1,["decrypt"]).then((function(e){r._logInfo("Imported decryption key"),window.crypto.subtle.decrypt({name:"AES-GCM",iv:o.slice(0,12),tagLength:128},e,o.slice(12)).then((function(e){var i=String.fromCharCode.apply(String,(0,M.A)(new Uint8Array(e)));r._logInfo("Decrypted to:",i);var o=JSON.parse(i),a=r.ResponseToRefreshResult(o);"string"==typeof a?n(a):t(a)}),(function(e){return r._logWarn("Call to UID2 API failed",e)}))}),(function(e){return r._logWarn("Call to UID2 API failed",e)}))}else{r._logInfo("No response decryption key available, assuming unencrypted JSON");var a=JSON.parse(i),s=r.ResponseToRefreshResult(a);"string"==typeof s?n(s):t(s)}}catch(e){n(i)}},error:function(e,i){try{r._logInfo("Error status, assuming unencrypted JSON");var o=JSON.parse(i.responseText),a=r.ResponseToRefreshResult(o);"string"==typeof a?n(a):t(a)}catch(t){n(e)}}},e.refresh_token,{method:"POST",customHeaders:{"X-UID2-Client-Version":this._clientVersion}}),o}}]),e}(),Ld=function(){function e(t,n,r,i){(0,gc.A)(this,e),this._storage=t,this._preferLocalStorage=n,this._storageName=r,this._logInfo=i}return(0,vc.A)(e,[{key:"readCookie",value:function(e){return this._storage.cookiesAreEnabled()?this._storage.getCookie(e):null}},{key:"readLocalStorage",value:function(e){return this._storage.localStorageIsEnabled()?this._storage.getDataFromLocalStorage(e):null}},{key:"readModuleCookie",value:function(){return this.parseIfContainsBraces(this.readCookie(this._storageName))}},{key:"writeModuleCookie",value:function(e){this._storage.setCookie(this._storageName,JSON.stringify(e),Date.now()+864e5)}},{key:"readModuleStorage",value:function(){return this.parseIfContainsBraces(this.readLocalStorage(this._storageName))}},{key:"writeModuleStorage",value:function(e){this._storage.setDataInLocalStorage(this._storageName,JSON.stringify(e))}},{key:"readProvidedCookie",value:function(e){return JSON.parse(this.readCookie(e))}},{key:"parseIfContainsBraces",value:function(e){return null!=e&&e.includes("{")?JSON.parse(e):e}},{key:"storeValue",value:function(e){this._preferLocalStorage?this.writeModuleStorage(e):this.writeModuleCookie(e)}},{key:"getStoredValueWithFallback",value:function(){var e=this._preferLocalStorage?"local storage":"cookie",t=(this._preferLocalStorage?this.readModuleStorage:this.readModuleCookie).bind(this),n=(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){var o=r();if(o&&"object"===(0,dt.A)(o))return this._logInfo("".concat(e," contained a basic token, but found a refreshable token fallback. Copying the fallback value to ").concat(e,".")),n(o),o}}else{var a=r();if(a)return this._logInfo("".concat(e," was empty, but found a fallback value.")),"object"===(0,dt.A)(a)&&(this._logInfo("Copying the fallback value to ".concat(e,".")),n(a)),a}return i}}]),e}();function Wd(e,t,n,r,i,o){return i("UID2 base url provided: ",e),new Md({baseUrl:e},n,i,o).callRefreshApi(t).then((function(e){i("Refresh endpoint responded with:",e);var n={originalToken:t,latestToken:e.identity},o=r.getStoredValueWithFallback();return null!=o&&o.originalIdentity&&(n.originalIdentity=o.originalIdentity),r.storeValue(n),n}))}qd={isCSTGOptionsValid:function(e,t){if("object"!==(0,dt.A)(e)||null===e)return t("CSTG opts must be an object"),!1;var n=e;if("string"!=typeof n.serverPublicKey)return t("CSTG opts.serverPublicKey must be a string"),!1;var r=/^(UID2|EUID)-X-[A-Z]-.+/;return r.test(n.serverPublicKey)?"string"!=typeof n.subscriptionId?(t("CSTG opts.subscriptionId must be a string"),!1):0!==n.subscriptionId.length||(t("CSTG opts.subscriptionId is empty"),!1):(t("CSTG opts.serverPublicKey must match the regular expression ".concat(r)),!1)},getValidIdentity:function(e,t){if(e.emailHash)return Fd.isBase64Hash(e.emailHash)?{email_hash:e.emailHash}:void t("CSTG opts.emailHash is invalid");if(e.phoneHash)return Fd.isBase64Hash(e.phoneHash)?{phone_hash:e.phoneHash}:void t("CSTG opts.phoneHash is invalid");if(e.email){var n=Fd.normalizeEmail(e.email);return void 0===n?void t("CSTG opts.email is invalid"):{email:n}}return e.phone?Fd.isNormalizedPhone(e.phone)?{phone:e.phone}:void t("CSTG opts.phone is invalid"):void 0},isStoredTokenInvalid:function(e,t,n,r){if(t){if("optout"===t.latestToken)return!0;var i=Object.values(e)[0];if(!this.isStoredTokenFromSameIdentity(t,i))return n("CSTG supplied new identity - ignoring stored value.",t.originalIdentity,e),!0}return!1},generateTokenAndStore:function(e,t,n,r,i,o){var a=this;return Vc(zc().mark((function s(){var c,d,u;return zc().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:return i("UID2 cstg opts provided: ",JSON.stringify(t)),c=new Vd({baseUrl:e,cstg:t},i,o),s.next=4,c.generateToken(n);case 4:return d=s.sent,i("CSTG endpoint responded with:",d),u={originalIdentity:a.encodeOriginalIdentity(n),latestToken:d.identity},r.storeValue(u),s.abrupt("return",u);case 9:case"end":return s.stop()}}),s)})))()},isStoredTokenFromSameIdentity:function(e,t){return!!e.originalIdentity&&(0,r.PB)(t,e.originalIdentity.salt)===e.originalIdentity.identity},encodeOriginalIdentity:function(e){var t=Object.values(e)[0],n=Math.floor(Math.random()*Math.pow(2,32));return{identity:(0,r.PB)(t,n),salt:n}}};var Fd=function(){function e(){(0,gc.A)(this,e)}return(0,vc.A)(e,null,[{key:"isBase64Hash",value:function(e){if(!e||44!==e.length)return!1;try{return btoa(atob(e))===e}catch(e){return!1}}},{key:"isNormalizedPhone",value:function(e){return/^\+[0-9]{10,15}$/.test(e)}},{key:"normalizeEmail",value:function(e){if(e&&e.length){var t=e.trim().toLowerCase();if(!(t.indexOf(" ")>0)){var n=this.splitEmailIntoAddressAndDomain(t);if(n){var r=n.address,i=n.domain,o=this.isGmail(i),a=this.normalizeAddressPart(r,o,o);return a?"".concat(a,"@").concat(i):void 0}}}}},{key:"splitEmailIntoAddressAndDomain",value:function(e){var t=e.split("@");if(2===t.length&&!t.some((function(e){return""===e})))return{address:t[0],domain:t[1]}}},{key:"isGmail",value:function(e){return e===this.GMAIL_DOMAIN}},{key:"dropExtension",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.EMAIL_EXTENSION_SYMBOL;return e.split(t)[0]}},{key:"normalizeAddressPart",value:function(e,t,n){var r=e;return t&&(r=r.replaceAll(this.EMAIL_DOT,"")),n&&(r=this.dropExtension(r)),r}}]),e}();(0,t.A)(Fd,"EMAIL_EXTENSION_SYMBOL","+"),(0,t.A)(Fd,"EMAIL_DOT","."),(0,t.A)(Fd,"GMAIL_DOMAIN","gmail.com");var Vd=function(){function e(t,n,r){(0,gc.A)(this,e),this._baseUrl=t.baseUrl,this._serverPublicKey=t.cstg.serverPublicKey,this._subscriptionId=t.cstg.subscriptionId,this._optoutCheck=t.cstg.optoutCheck,this._logInfo=n,this._logWarn=r}var t,n,r;return(0,vc.A)(e,[{key:"hasStatusResponse",value:function(e){return"object"===(0,dt.A)(e)&&e&&e.status}},{key:"isCstgApiSuccessResponse",value:function(e){return this.hasStatusResponse(e)&&"success"===e.status&&Nd(e.body)}},{key:"isCstgApiOptoutResponse",value:function(e){return this.hasStatusResponse(e)&&"optout"===e.status}},{key:"isCstgApiClientErrorResponse",value:function(e){return this.hasStatusResponse(e)&&"client_error"===e.status&&"string"==typeof e.message}},{key:"isCstgApiForbiddenResponse",value:function(e){return this.hasStatusResponse(e)&&"invalid_http_origin"===e.status&&"string"==typeof e.message}},{key:"stripPublicKeyPrefix",value:function(e){return e.substring(9)}},{key:"generateCstgRequest",value:(r=Vc(zc().mark((function e(t){var n,r;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!("email_hash"in t)&&!("phone_hash"in t)){e.next=2;break}return e.abrupt("return",t);case 2:if(!("email"in t)){e.next=7;break}return e.next=5,zd.hash(t.email);case 5:return n=e.sent,e.abrupt("return",{email_hash:n});case 7:if(!("phone"in t)){e.next=12;break}return e.next=10,zd.hash(t.phone);case 10:return r=e.sent,e.abrupt("return",{phone_hash:r});case 12:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"generateToken",value:(n=Vc(zc().mark((function e(t){var n,r,i,o,a,s,c,d,u,l;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.generateCstgRequest(t);case 2:return n=e.sent,r=Ud({optout_check:this._optoutCheck},n),this._logInfo("Building CSTG request for",r),e.next=7,Gd.build(this.stripPublicKeyPrefix(this._serverPublicKey));case 7:return i=e.sent,o=new TextEncoder,a=Date.now(),e.next=12,i.encrypt(o.encode(JSON.stringify(r)),o.encode(JSON.stringify([a])));case 12:return s=e.sent,c=s.iv,d=s.ciphertext,e.next=17,zd.exportPublicKey(i.clientPublicKey);case 17:return u=e.sent,l={payload:zd.bytesToBase64(new Uint8Array(d)),iv:zd.bytesToBase64(new Uint8Array(c)),public_key:zd.bytesToBase64(new Uint8Array(u)),timestamp:a,subscription_id:this._subscriptionId},e.abrupt("return",this.callCstgApi(l,i));case 20:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"callCstgApi",value:(t=Vc(zc().mark((function e(t,n){var r,i,o,a,s=this;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this._baseUrl+"/v2/token/client-generate",a=new Promise((function(e,t){i=e,o=t})),this._logInfo("Sending CSTG request",t),(0,oo.RD)(r,{success:function(){var e=Vc(zc().mark((function e(t,r){var a,c,d,u;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,a=zd.base64ToBytes(t),e.next=4,n.decrypt(a.slice(0,12),a.slice(12));case 4:c=e.sent,d=(new TextDecoder).decode(c),u=JSON.parse(d),s.isCstgApiSuccessResponse(u)?i({status:"success",identity:u.body}):s.isCstgApiOptoutResponse(u)?i({status:"optout",identity:"optout"}):o("API error: Response body was invalid for HTTP status 200: ".concat(d)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),o(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(t,n){return e.apply(this,arguments)}}(),error:function(e,t){try{if(400===t.status){var n=JSON.parse(t.responseText);s.isCstgApiClientErrorResponse(n)?o("Client error: ".concat(n.message)):o("API error: Response body was invalid for HTTP status 400: ".concat(t.responseText))}else if(403===t.status){var r=JSON.parse(t.responseText);s.isCstgApiForbiddenResponse(t)?o("Forbidden: ".concat(r.message)):o("API error: Response body was invalid for HTTP status 403: ".concat(t.responseText))}else o("API error: Unexpected HTTP status ".concat(t.status,": ").concat(e))}catch(t){o(e)}}},JSON.stringify(t),{method:"POST"}),e.abrupt("return",a);case 5:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}(),Gd=function(){function e(t,n){(0,gc.A)(this,e),this._clientPublicKey=t,this._sharedKey=n}var t,n,r;return(0,vc.A)(e,[{key:"encrypt",value:(r=Vc(zc().mark((function e(t,n){var r,i;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=window.crypto.getRandomValues(new Uint8Array(12)),e.next=3,window.crypto.subtle.encrypt({name:"AES-GCM",iv:r,additionalData:n},this._sharedKey,t);case 3:return i=e.sent,e.abrupt("return",{iv:r,ciphertext:i});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"decrypt",value:(n=Vc(zc().mark((function e(t,n){return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.crypto.subtle.decrypt({name:"AES-GCM",iv:t},this._sharedKey,n));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"clientPublicKey",get:function(){return this._clientPublicKey}}],[{key:"build",value:(t=Vc(zc().mark((function t(n){var r,i,o;return zc().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,zd.generateKeyPair(e._namedCurve);case 2:return r=t.sent,t.next=5,zd.importPublicKey(n,this._namedCurve);case 5:return i=t.sent,t.next=8,zd.deriveKey(i,r.privateKey);case 8:return o=t.sent,t.abrupt("return",new e(r.publicKey,o));case 10:case"end":return t.stop()}}),t,this)}))),function(e){return t.apply(this,arguments)})}]),e}();(0,t.A)(Gd,"_namedCurve","P-256");var zd=function(){function e(){(0,gc.A)(this,e)}var t,n,r,i;return(0,vc.A)(e,null,[{key:"base64ToBytes",value:function(e){var t=atob(e);return Uint8Array.from(t,(function(e){return e.codePointAt(0)}))}},{key:"bytesToBase64",value:function(e){var t=Array.from(e,(function(e){return String.fromCodePoint(e)})).join("");return btoa(t)}},{key:"generateKeyPair",value:(i=Vc(zc().mark((function e(t){var n;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={name:"ECDH",namedCurve:t},e.abrupt("return",window.crypto.subtle.generateKey(n,!1,["deriveKey"]));case 2:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"importPublicKey",value:(r=Vc(zc().mark((function e(t,n){var r;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={name:"ECDH",namedCurve:n},e.abrupt("return",window.crypto.subtle.importKey("spki",this.base64ToBytes(t),r,!1,[]));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"exportPublicKey",value:function(e){return window.crypto.subtle.exportKey("spki",e)}},{key:"deriveKey",value:(n=Vc(zc().mark((function e(t,n){return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.crypto.subtle.deriveKey({name:"ECDH",public:t},n,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"]));case 1:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"hash",value:(t=Vc(zc().mark((function e(t){var n;return zc().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t));case 2:return n=e.sent,e.abrupt("return",this.bytesToBase64(new Uint8Array(n)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();(0,n.E)("uid2IdSystem_shared");var Hd={uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}}};function Jd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var Kd="uid2",$d="PrebidJS-".concat("8.45.0","-UID2Module-").concat("1.1"),Qd="UID2: ";function Xd(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(void 0,[t+" "].concat(r))}}var Yd=Xd(r.fH,Qd),Zd=Xd(r.JE,Qd),eu=(0,ve.vM)({moduleType:De.fW,moduleName:Kd}),tu={name:Kd,decode:function(e){var t=function(e){return"string"==typeof e?(Yd("Found server-only token. Refresh is unavailable for this token."),{uid2:{id:e}}):Date.now()<e.latestToken.identity_expires?{uid2:{id:e.latestToken.advertising_token}}:null}(e);return Yd("UID2 decode returned",t),t},getId:function(e,n){var r,i,o,a,s,c,d,u;if(!0!==(null==n?void 0:n.gdprApplies)){var l,p,f,v={apiBaseUrl:null!==(r=null==e||null===(i=e.params)||void 0===i?void 0:i.uid2ApiBase)&&void 0!==r?r:"https://prod.uidapi.com",paramToken:null==e||null===(o=e.params)||void 0===o?void 0:o.uid2Token,serverCookieName:null!==(a=null==e||null===(s=e.params)||void 0===s?void 0:s.uid2Cookie)&&void 0!==a?a:null==e||null===(c=e.params)||void 0===c?void 0:c.uid2ServerCookie,storage:null!==(d=null==e||null===(u=e.params)||void 0===u?void 0:u.storage)&&void 0!==d?d:"localStorage",clientId:$d,internalStorage:"__uid2_advertising_token"};v.cstg=function(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Jd(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jd(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({serverPublicKey:null==e||null===(l=e.params)||void 0===l?void 0:l.serverPublicKey,subscriptionId:null==e||null===(p=e.params)||void 0===p?void 0:p.subscriptionId},function(e){for(var n=0,r=["emailHash","phoneHash","email","phone"];n<r.length;n++){var i=r[n];if(e.hasOwnProperty(i))return(0,t.A)({},i,e[i])}return{}}(null!==(f=null==e?void 0:e.params)&&void 0!==f?f:{})),Yd("UID2 configuration loaded and mapped.",v);var g=function(e,t,n,r){var i,o,a,s=null,c="cookie"!==e.storage,d=new Ld(t,c,e.internalStorage,n);n("Module is using ".concat(c?"local storage":"cookies"," for internal storage."));var u=qd&&qd.isCSTGOptionsValid(e.cstg,r);u?(n("Module is using client-side token generation."),s=null):e.paramToken?(s=e.paramToken,n("Read token from params",s)):e.serverCookieName&&(s=d.readProvidedCookie(e.serverCookieName),n("Read token from server-supplied cookie",s));var l,p,f=d.getStoredValueWithFallback();if(n("Loaded module-stored tokens:",f),f&&"string"==typeof f){if(!s&&!u)return n("Returning legacy cookie value."),{id:f};n("Discarding superseded legacy cookie."),f=null}if(s&&f&&(null===(l=f.originalToken)||void 0===l?void 0:l.advertising_token)!==s.advertising_token&&(n("Server supplied new token - ignoring stored value.",null===(p=f.originalToken)||void 0===p?void 0:p.advertising_token,s.advertising_token),f=null),u){var v=qd.getValidIdentity(e.cstg,r);if(v&&(f&&qd.isStoredTokenInvalid(v,f,n,r)&&(f=null),!f||Date.now()>f.latestToken.refresh_expires)){var g=qd.generateTokenAndStore(e.apiBaseUrl,e.cstg,v,d,n,r);return n("Generate token using CSTG"),{callback:function(e){g.then((function(t){n("Token generation responded, passing the new token on.",t),e(t)}))}}}}var m=!(null!==(i=f)&&void 0!==i&&i.latestToken)||s&&s.identity_expires>f.latestToken.identity_expires,h=m?s:f.latestToken;if(n("UID2 module selected latest token",m,h),!h||Date.now()>h.refresh_expires)return n("Newest available token is expired and not refreshable."),{id:null};if(Date.now()>h.identity_expires){var b=Wd(e.apiBaseUrl,h,e.clientId,d,n,r);return n("Token is expired but can be refreshed, attempting refresh."),{callback:function(e){b.then((function(t){n("Refresh reponded, passing the updated token on.",t),e(t)}))}}}Date.now()>h.refresh_from&&(n("Refreshing token in background with low priority."),Wd(e.apiBaseUrl,h,e.clientId,d,n,r));var y,_={originalToken:null!==(o=s)&&void 0!==o?o:null===(a=f)||void 0===a?void 0:a.originalToken,latestToken:h};return u&&(_.originalIdentity=null===(y=f)||void 0===y?void 0:y.originalIdentity),d.storeValue(_),{id:_}}(v,eu,Yd,Zd);return Yd("UID2 getId returned",g),g}Zd("UID2 is not intended for use where GDPR applies. The UID2 module will not run.")},eids:Hd};(0,g.bz)("userId",tu),(0,n.E)("uid2IdSystem");var nu,ru="panoramaId",iu="".concat(ru,"_expiry"),ou="_cc_id",au="lotamePanoramaId",su=(0,ve.vM)({moduleType:De.fW,moduleName:au});function cu(e){var t=null;if(su.cookiesAreEnabled()&&(t=su.getCookie(e,void 0)),su.hasLocalStorage()&&null===t){var n=su.getDataFromLocalStorage("".concat(e,"_exp"),void 0);(""===n||null===n||n&&new Date(parseInt(n,10)).getTime()-Date.now()>0)&&(t=su.getDataFromLocalStorage(e,void 0))}return t}function du(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,r.vE)()+6048e5;if(e&&t){var i=new Date(n).toUTCString();su.cookiesAreEnabled()&&su.setCookie(e,t,i,"Lax",nu,void 0),su.hasLocalStorage()&&(su.setDataInLocalStorage("".concat(e,"_exp"),String(n),void 0),su.setDataInLocalStorage(e,t,void 0))}}function uu(e){if(e){if(su.cookiesAreEnabled()){var t=new Date(0).toUTCString();su.setCookie(e,"",t,"Lax",nu,void 0)}su.hasLocalStorage()&&su.removeDataFromLocalStorage(e,void 0)}}var lu={name:au,gvlid:95,decode:function(e,t){return(0,r.O8)(e)?{lotamePanoramaId:e}:void 0},getId:function(e,t,n){nu=lu.findRootDomain();var i=(e&&e.params||{}).clientId,o=!(0,r.Im)(i),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t={data:cu(ru),expiryTimestampMs:0,clientExpiryTimestampMs:0};try{if(e){var n=cu("".concat(iu,"_").concat(e));(0,r.O8)(n)&&(t.clientExpiryTimestampMs=parseInt(n,10))}var i=cu(iu);(0,r.O8)(i)&&(t.expiryTimestampMs=parseInt(i,10))}catch(e){(0,r.vV)(e)}return t}(i),s=Date.now()>a.expiryTimestampMs;if(o&&Date.now()<a.clientExpiryTimestampMs)return{id:void 0,reason:"NO_CLIENT_CONSENT"};if(!s)return{id:a.data};var c,d,u=(su.cookiesAreEnabled()&&(c=su.getCookie(ou,void 0)),!c&&su.hasLocalStorage()&&(c=su.getDataFromLocalStorage(ou,void 0)),c),l=Le.t6.getConsentData();return void 0===l||(0,r.Im)(l)||(0,r.xQ)(l)||(d=l),d||(d=cu("us_privacy")),{callback:function(e){var n,a={};u&&(a.fp=u),t&&((0,r.Lm)(t.gdprApplies)&&(a.gdpr_applies=t.gdprApplies),n=t.consentString),n||(n=cu("eupubconsent-v2")),n||(n=cu("euconsent-v2")),n&&(a.gdpr_consent=n),d&&(a.us_privacy=d),o&&(a.c=i);var s=(0,r.c$)({protocol:"https",host:navigator.userAgent&&-1!=navigator.userAgent.indexOf("Safari")&&-1==navigator.userAgent.indexOf("Chrome")?"c.ltmsphrcl.net":"id.crwdcntrl.net",pathname:"/id",search:(0,r.Im)(a)?void 0:a});(0,oo.RD)(s,(function(t){var n;if(t)try{var a=JSON.parse(t),s=!((0,r.cy)(a.errors)&&-1!==a.errors.indexOf(111));if(o)if(s)uu("".concat(iu,"_").concat(i));else if((0,r.O8)(a.no_consent)&&"CLIENT"===a.no_consent)return du("".concat(iu,"_").concat(i),a.expiry_ts,a.expiry_ts),void e();du(iu,a.expiry_ts,a.expiry_ts),(0,r.O8)(a.profile_id)?(s&&function(e){if(su.cookiesAreEnabled()){var t=new Date((0,r.vE)()+23328e6).toUTCString();su.setCookie(ou,e,t,"Lax",nu,void 0)}su.hasLocalStorage()&&su.setDataInLocalStorage(ou,e,void 0)}(a.profile_id),(0,r.O8)(a.core_id)?(du(ru,a.core_id,a.expiry_ts),n=a.core_id):uu(ru)):(s&&uu(ou),uu(ru))}catch(e){(0,r.vV)(e)}e(n)}),void 0,{method:"GET",withCredentials:!0})}}},eids:{lotamePanoramaId:{source:"crwdcntrl.net",atype:1}}};(0,g.bz)("userId",lu),(0,n.E)("lotamePanoramaIdSystem");var pu=(0,ve.vM)({moduleType:De.fW,moduleName:"sharedId"}),fu="cookie",vu="html5",gu="_pubcid_optout",mu="PublisherCommonId";function hu(e,t){if(t===fu)return pu.getCookie(e);if(t===vu&&pu.hasLocalStorage()){var n=pu.getDataFromLocalStorage("".concat(e,"_exp"));if(!n)return pu.getDataFromLocalStorage(e);if(new Date(n).getTime()-Date.now()>0)return pu.getDataFromLocalStorage(e)}}function bu(e,t){return function(n,r){t?yu(t,e,(function(){n(r()||e)}))():n(e)}}function yu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;if(e){var i=(0,r.Dl)(e);i.search.id=encodeURIComponent("pubcid:"+t);var o=(0,r.c$)(i);return function(){(0,r.z$)(o,n)}}}function _u(){return!!(pu.cookiesAreEnabled()&&hu(gu,fu)||pu.hasLocalStorage()&&hu(gu,vu))}var Au={name:"sharedId",aliasName:"pubCommonId",gvlid:Le.B1,decode:function(e,t){if(!_u())return(0,r.fH)(" Decoded value PubCommonId "+e),{pubcid:e};(0,r.fH)("PubCommonId decode: Has opted-out")},getId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>2?arguments[2]:void 0;if(_u())(0,r.fH)("PubCommonId: Has opted-out");else{if(!Le.et.getCoppa()){var n=e.params,i=void 0===n?{}:n,o=i.create,a=void 0===o||o,s=i.pixelUrl,c=t;if(!c){try{"object"===(0,dt.A)(window[mu])&&(c=window[mu].getId())}catch(e){}c||(c=a&&(0,r.N9)()?(0,r.lk)():void 0)}return{id:c,callback:bu(c,s)}}(0,r.fH)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId")}},extendId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>2?arguments[2]:void 0;if(_u())return(0,r.fH)("PubCommonId: Has opted-out"),{id:void 0};if(Le.et.getCoppa())(0,r.fH)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");else{var n=e.params,i=void 0===n?{}:n,o=i.extend,a=void 0!==o&&o,s=i.pixelUrl;if(a)return s?{callback:yu(s,t)}:{id:t}}},domainOverride:function(e,t){return function(){for(var t,n,r=document.domain.split("."),i="_gd".concat(Date.now(),"_").concat("sharedId"),o=0;o<r.length;o++){var a=r.slice(o).join(".");if(e.setCookie(i,"1",void 0,void 0,a),n=e.getCookie(i),e.setCookie(i,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,a),"1"!==n)return t;t=a}}}(pu),eids:{pubcid:{source:"pubcid.org",atype:1}}};(0,g.bz)("userId",Au),(0,n.E)("sharedIdSystem");var wu={name:"fabrickId",decode:function(e){return e&&e.fabrickId?{fabrickId:e.fabrickId}:void 0},getId:function(e,t,n){try{var i=e&&e.params||{};if(window.fabrickMod1&&window.fabrickMod1(i,t,n),!i||!i.apiKey||"string"!=typeof i.apiKey)return void(0,r.vV)("fabrick submodule requires an apiKey.");try{var o=function(e){return e.url?e.url:"https://fid.agkn.com/f?"}(i),a=Object.keys(i);for(var s in a){var c=a[s];if(!("url"===c||"refererInfo"===c||c.length>3&&"max"===c.substring(0,3))){var d=i[c];if(Array.isArray(d))for(var u in d)"string"!=typeof d[u]&&"number"!=typeof d[u]||(o+="".concat(c,"=").concat(d[u],"&"));else"string"!=typeof d&&"number"!=typeof d||(o+="".concat(c,"=").concat(d,"&"))}}o=o.slice(0,-1);var l=function(e){return e.refererInfo?e.refererInfo:(0,he.EN)()}(i),p=new Map;return Iu(p,l.topmostLocation),l.stack&&l.stack[0]&&Iu(p,l.stack[0]),Iu(p,l.canonicalUrl),Iu(p,window.location.href),p.forEach((function(e){o=function(e,t,n,r){var i=r&&r.maxUrlLen||2e3,o=r&&r.maxRefLen||1e3,a=r&&r.maxSpaceAvailable||50;if(n&&e.length<i-a){var s=i-e.length;return s>o&&(s=o),(n="&".concat("r","=").concat(encodeURIComponent(n))).length>=s&&("%"===(n=n.substring(0,s)).charAt(n.length-1)?n=n.substring(0,s-1):"%"===n.charAt(n.length-2)&&(n=n.substring(0,s-2))),"".concat(e).concat(n)}return e}(o,0,e,i)})),{callback:function(e){var a={success:function(o){if(window.fabrickMod2)return window.fabrickMod2(e,o,i,t,n);var a;if(o)try{a=JSON.parse(o)}catch(e){(0,r.vV)(e),a={}}e(a)},error:function(t){(0,r.vV)("fabrickId fetch encountered an error",t),e()}};(0,oo.RD)(o,a,null,{method:"GET",withCredentials:!0})}}}catch(e){(0,r.vV)("fabrickIdSystem encountered an error",e)}}catch(e){(0,r.vV)("fabrickIdSystem encountered an error",e)}},eids:{fabrickId:{source:"neustar.biz",atype:1}}};function Iu(e,t){if(t){var n=t.split("?")[0];if(e.has(n)){var r=e.get(n);t.length>r.length&&e.set(n,t)}else e.set(n,t)}}(0,g.bz)("userId",wu),(0,n.E)("fabrickIdSystem");var Eu="33acrossId",Ou="33acrossIdFp",xu=(0,ve.vM)({moduleType:De.fW,moduleName:Eu});function Su(e){if(xu.cookiesAreEnabled()){var t=new Date(0).toUTCString();xu.setCookie(e,"",t,"Lax")}xu.removeDataFromLocalStorage(e)}var Cu={name:Eu,gvlid:58,decode:function(e){return(0,t.A)({},Eu,{envelope:e})},getId:function(e,t){var n=e.params,i=void 0===n?{}:n,o=e.storage;if("string"==typeof i.pid){if(!0!==(null==t?void 0:t.gdprApplies)){var a=i.pid,s=i.storeFpid,c=i.apiUrl,d=void 0===c?"https://lexicon.33across.com/v1/envelope":c;return{callback:function(e){(0,oo.g4)(1e4)(d,{success:function(t){var n={};try{n=function(e){return e.succeeded?e.data.envelope?{envelope:e.data.envelope,fp:e.data.fp}:((0,r.OG)("".concat(Eu,": No envelope was received")),{}):("Cookied User"==e.error?(0,r.OG)("".concat(Eu,": Unsuccessful response").concat(" ",e.error)):(0,r.vV)("".concat(Eu,": Unsuccessful response").concat(" ",e.error)),{})}(JSON.parse(t))}catch(e){(0,r.vV)("".concat(Eu,": ID reading error:"),e)}n.envelope||Su(Eu),s&&function(e){e?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n.type===ve.X0&&xu.cookiesAreEnabled()){var r=864e5*n.expires,i=new Date(Date.now()+r);xu.setCookie(e,t,i.toUTCString(),"Lax")}else n.type===ve.qk&&xu.setDataInLocalStorage(e,t)}(Ou,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}):Su(Ou)}(n.fp,o),e(n.envelope)},error:function(t){(0,r.vV)("".concat(Eu,": ID error response"),t),e()}},function(e,t,n){var r=Le.t6.getConsentData(),i=Le.et.getCoppa(),o=Le.ad.getConsentData(),a={pid:e,gdpr:0,src:"pbjs",ver:"8.45.0",coppa:Number(i)};if(r&&(a.us_privacy=r),o){var s=o.gppString,c=void 0===s?"":s,d=o.applicableSections,u=void 0===d?[]:d;a.gpp=c,a.gpp_sid=encodeURIComponent(u.join(","))}null!=t&&t.consentString&&(a.gdpr_consent=t.consentString);var l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.type===ve.X0&&xu.cookiesAreEnabled()?xu.getCookie(e):t.type===ve.qk?xu.getDataFromLocalStorage(e):void 0}(Ou,n);return l&&(a.fp=encodeURIComponent(l)),a}(a,t,o),{method:"GET",withCredentials:!0})}}}(0,r.JE)("".concat(Eu,": Submodule cannot be used where GDPR applies"))}else(0,r.vV)("".concat(Eu,": Submodule requires a partner ID to be defined"))},eids:{"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}}}};(0,g.bz)("userId",Cu),(0,n.E)("33acrossIdSystem");var Tu="pairId",ku="pairId",Du=(0,ve.vM)({moduleType:De.fW,moduleName:Tu});function Ru(e){return Du.localStorageIsEnabled()?Du.getDataFromLocalStorage(e):null}function ju(e){return Du.cookiesAreEnabled()?Du.getCookie(e):null}var Pu={name:Tu,gvlid:755,decode:function(e){return e&&Array.isArray(e)?{pairId:e}:void 0},getId:function(e){var t=Ru(ku)||ju(ku),n=[];if(t&&"string"==typeof t)try{n=n.concat(JSON.parse(atob(t)))}catch(e){(0,r.fH)(e)}var i=e&&e.params||{};if(i&&i.liveramp){var o=i.liveramp.storageKey||"_lr_pairId",a=Ru(o)||ju(o);try{var s=JSON.parse(atob(a));n=n.concat(s.envelope)}catch(e){(0,r.fH)(e)}}if(0!=n.length)return{id:n};(0,r.fH)("PairId not found.")},eids:{pairId:{source:"google.com",atype:571187}}};(0,g.bz)("userId",Pu),(0,n.E)("pairIdSystem");var Bu=__webpack_require__(4966);const Uu=Bu.DQ;function Nu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qu(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Nu(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Bu.qO,Bu.iq,Bu.Lp,Bu.Bt;var Mu={tdid:{source:"adserver.org",atype:1,getValue:function(e){return e.id?e.id:e},getUidExt:function(e){return qu(qu({},{rtiPartner:"TDID"}),e.ext)}}};function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wu(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Lu(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lu(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var Fu="liveIntentId",Vu="liveintent.com",Gu=(0,ve.vM)({moduleType:De.fW,moduleName:Fu}),zu={nonId:!0},Hu={ajaxGet:function(e,t,n,r){(0,oo.g4)(r)(e,{success:t,error:n},void 0,{method:"GET",withCredentials:!0})},pixelGet:function(e,t){return(0,r.z$)(e,t)}},Ju=!1,Ku=null;function $u(){Ju=!0}function Qu(t){function n(t){return Object.entries(t).flatMap((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];return"boolean"==typeof i&&i?[r]:[]}))}return"object"===(0,dt.A)(t)?n(Wu(Wu({},zu),t)):n(zu)}function Xu(e){if(Ku)return Ku;var t={publisherId:(e=e||{}).publisherId||"any",requestedAttributes:Qu(e.requestedAttributesOverrides)};e.url&&(t.url=e.url),t.ajaxTimeout=e.ajaxTimeout||5e3;var n=function(e){var t={};return(e=e||{}).appId&&(t.appId=e.appId),e.fpiStorageStrategy&&(t.storageStrategy=e.fpiStorageStrategy),e.fpiExpirationDays&&(t.expirationDays=e.fpiExpirationDays),e.collectorUrl&&(t.collectorUrl=e.collectorUrl),t.ajaxTimeout=e.ajaxTimeout||5e3,t}(e.liCollectConfig);!n.appId&&e.distributorId?(n.distributorId=e.distributorId,t.source=e.distributorId):t.source=e.partner||"prebid",n.wrapperName="prebid",n.trackerVersion="8.45.0",n.identityResolutionConfig=t,n.identifiersToResolve=e.identifiersToResolve||[],n.fireEventDelay=e.fireEventDelay;var r=Le.t6.getConsentData();r&&(n.usPrivacyString=r);var i=Le.mW.getConsentData();i&&(n.gdprApplies=i.gdprApplies,n.gdprConsent=i.consentString);var o=Le.ad.getConsentData();return o&&(n.gppString=o.gppString,n.gppApplicableSections=o.applicableSections),Ku=Zu.getInitializer()(n,Gu,Hu),e.emailHash&&Ku.push({hash:e.emailHash}),Ku}function Yu(){if(!Ju&&Ku){var e=Ku.config.fireEventDelay||500;setTimeout((function(){window.liQ_instances.forEach((function(e){return e.eventBus.once("pre_lips",$u)})),!Ju&&Ku&&Ku.fire()}),e)}}var Zu={moduleMode:"standard",name:Fu,setModuleMode:function(e){this.moduleMode=e},getInitializer:function(){var e=this;return function(t,n,r){return Uu(t,n,r,e.moduleMode)}},decode:function(e,t){var n=t&&t.params||{};return Ku||Xu(n),Yu(),function(e){var t={},n=e.nonId||e.unifiedId;return n&&(e.lipbid=n,delete e.unifiedId,t.lipb=e),e.uid2&&(t.uid2={id:e.uid2,ext:{provider:Vu}}),e.bidswitch&&(t.bidswitch={id:e.bidswitch,ext:{provider:Vu}}),e.medianet&&(t.medianet={id:e.medianet,ext:{provider:Vu}}),e.magnite&&(t.magnite={id:e.magnite,ext:{provider:Vu}}),e.index&&(t.index={id:e.index,ext:{provider:Vu}}),e.openx&&(t.openx={id:e.openx,ext:{provider:Vu}}),e.pubmatic&&(t.pubmatic={id:e.pubmatic,ext:{provider:Vu}}),e.sovrn&&(t.sovrn={id:e.sovrn,ext:{provider:Vu}}),e.thetradedesk&&(t.lipb=Wu(Wu({},t.lipb),{},{tdid:e.thetradedesk}),t.tdid={id:e.thetradedesk,ext:{rtiPartner:"TDID",provider:(0,he.EN)().domain||Vu}},delete t.lipb.thetradedesk),t}(e)},getId:function(e){var t=Xu(e&&e.params||{});if(t)return Yu(),{callback:function(e){t.resolve((function(t){e(t)}),(function(t){(0,r.vV)("".concat(Fu,": ID fetch encountered an error: "),t),e()}))}}},eids:Wu(Wu(Wu({},Mu),Hd),{},{lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},bidswitch:{source:"bidswitch.net",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}},medianet:{source:"media.net",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}},magnite:{source:"rubiconproject.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}},index:{source:"liveintent.indexexchange.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}},openx:{source:"openx.net",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}},pubmatic:{source:"pubmatic.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}},sovrn:{source:"liveintent.sovrn.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}}})};(0,g.bz)("userId",Zu),(0,n.E)("liveIntentIdSystem");var el={ajax:oo.RD},tl=Object.values(s.qY).filter((function(e){return e!==s.qY.AUCTION_DEBUG})),nl="atsAnalytics",rl=(0,ve.vM)({moduleType:De.Tn,moduleName:nl}),il=[],ol=[],al=[{test:/googlebot/i,name:"Googlebot"},{test:/opera/i,name:"Opera"},{test:/opr\/|opios/i,name:"Opera"},{test:/SamsungBrowser/i,name:"Samsung Internet for Android"},{test:/Whale/i,name:"NAVER Whale Browser"},{test:/MZBrowser/i,name:"MZ Browser"},{test:/focus/i,name:"Focus"},{test:/swing/i,name:"Swing"},{test:/coast/i,name:"Opera Coast"},{test:/opt\/\d+(?:.?_?\d+)+/i,name:"Opera Touch"},{test:/yabrowser/i,name:"Yandex Browser"},{test:/ucbrowser/i,name:"UC Browser"},{test:/Maxthon|mxios/i,name:"Maxthon"},{test:/epiphany/i,name:"Epiphany"},{test:/puffin/i,name:"Puffin"},{test:/sleipnir/i,name:"Sleipnir"},{test:/k-meleon/i,name:"K-Meleon"},{test:/micromessenger/i,name:"WeChat"},{test:/qqbrowser/i,name:/qqbrowserlite/i.test(window.navigator.userAgent)?"QQ Browser Lite":"QQ Browser"},{test:/msie|trident/i,name:"Internet Explorer"},{test:/\sedg\//i,name:"Microsoft Edge"},{test:/edg([ea]|ios)/i,name:"Microsoft Edge"},{test:/vivaldi/i,name:"Vivaldi"},{test:/seamonkey/i,name:"SeaMonkey"},{test:/sailfish/i,name:"Sailfish"},{test:/silk/i,name:"Amazon Silk"},{test:/phantom/i,name:"PhantomJS"},{test:/slimerjs/i,name:"SlimerJS"},{test:/blackberry|\bbb\d+/i,name:"BlackBerry"},{test:/(web|hpw)[o0]s/i,name:"WebOS Browser"},{test:/bada/i,name:"Bada"},{test:/tizen/i,name:"Tizen"},{test:/qupzilla/i,name:"QupZilla"},{test:/firefox|iceweasel|fxios/i,name:"Firefox"},{test:/electron/i,name:"Electron"},{test:/MiuiBrowser/i,name:"Miui"},{test:/chromium/i,name:"Chromium"},{test:/chrome|crios|crmo/i,name:"Chrome"},{test:/GSA/i,name:"Google Search"},{test:/android/i,name:"Android Browser"},{test:/playstation 4/i,name:"PlayStation 4"},{test:/safari|applewebkit/i,name:"Safari"}],sl=["Safari","Chrome","Firefox","Microsoft Edge"];function cl(){var e=ul.getUserAgent();try{var t=al.filter((function(t){return t.test.test(e)})),n=t&&t.length?t[0].name:"";return sl.indexOf(n)>=0?n:"Unknown"}catch(e){(0,r.vV)("ATS Analytics - Error while checking user browser!",e)}}function dl(e){try{var t={Data:e},n=JSON.stringify(t);(0,r.fH)("ATS Analytics - tried to send analytics data!"),(0,oo.RD)("https://analytics.rlcdn.com",(function(){(0,r.fH)("ATS Analytics - events sent successfully!")}),n,{method:"POST",contentType:"application/json"})}catch(e){(0,r.vV)("ATS Analytics - request encounter an error: ",e)}}var ul=Object.assign(function(t){var n,i,o,a,c,d=t.url,l=t.analyticsType,p=t.global,f=t.handler,v=[],g=!1,m=(a=!1,c=function(){if(!a){a=!0;try{for(var e=0,t=0;v.length>0;){e++;var n=v.length;if(v.shift()(),v.length>=n?t++:t=0,t>=10)return(0,r.vV)("Detected probable infinite loop, discarding events",v),void(v.length=0)}(0,r.OG)("".concat(i," analytics: processed ").concat(e," events"))}finally{a=!1}}},function(){null!=o&&(clearTimeout(o),o=null),o=setTimeout(c,100)});return Object.defineProperties({track:function(e){var t=e.eventType,n=e.args;"bundle"===this.getAdapterType()&&window[p](f,t,n),"endpoint"===this.getAdapterType()&&h.apply(void 0,arguments)},enqueue:b,enableAnalytics:y,disableAnalytics:function(){Object.entries(n||{}).forEach((function(t){var n=(0,e.A)(t,2),r=n[0],i=n[1];u.AU(r,i)})),this.enableAnalytics=this._oldEnable?this._oldEnable:y,g=!1},getAdapterType:function(){return l},getGlobal:function(){return p},getHandler:function(){return f},getUrl:function(){return d}},{enabled:{get:function(){return g}}});function h(e){var t=e.eventType,n=e.args,r=e.callback;el.ajax(d,r,JSON.stringify({eventType:t,args:n}))}function b(e){var t=this,n=e.eventType,r=e.args;v.push((function(){t.track({eventType:n,args:r})})),m()}function y(e){var t=this;i=null==e?void 0:e.provider;var o,a,c,d,l,f=this;if("object"!==(0,dt.A)(e)||"object"!==(0,dt.A)(e.options)||void 0===e.options.sampling||Math.random()<parseFloat(e.options.sampling)){var v=(a=(o=e||{}).includeEvents,c=void 0===a?tl:a,d=o.excludeEvents,l=void 0===d?[]:d,new Set(Object.values(s.qY).filter((function(e){return c.includes(e)})).filter((function(e){return!l.includes(e)}))));u.kQ().forEach((function(e){if(e&&v.has(e.eventType)){var t=e.eventType,n=e.args;b.call(f,{eventType:t,args:n})}})),n=Object.fromEntries(Array.from(v).map((function(e){var n=function(n){return t.enqueue({eventType:e,args:n})};return u.on(e,n),[e,n]})))}else(0,r.OG)('Analytics adapter for "'.concat(p,'" disabled by sampling'));this._oldEnable=this.enableAnalytics,this.enableAnalytics=function(){return(0,r.OG)('Analytics adapter for "'.concat(p,'" already enabled, unnecessary call to `enableAnalytics`.'))},g=!0}}({analyticsType:"endpoint"}),{track:function(e){var t=e.eventType,n=e.args;void 0!==n&&ul.callHandler(t,n)}});ul.originEnableAnalytics=ul.enableAnalytics,ul.shouldFireRequest=function(e){if(0!==e){var t=100===Math.floor(100*Math.random()+1);return(0,r.fH)("ATS Analytics - Should Fire Request: ",t),t}return(0,r.fH)("ATS Analytics - Should Fire Request: ",!1),!1},ul.getUserAgent=function(){return window.navigator.userAgent},ul.setSamplingCookie=function(e){var t=new Date;t.setTime(t.getTime()+864e5),rl.setCookie("_lr_sampling_rate",e,t.toUTCString())},ul.enableAnalytics=function(e){if(e.options.pid){ul.context={events:[],pid:e.options.pid,bidWonTimeout:e.options.bidWonTimeout};var t=e.options;(0,r.fH)("ATS Analytics - adapter enabled! "),ul.originEnableAnalytics(t)}else(0,r.vV)("ATS Analytics - Publisher ID (pid) option is not defined. Analytics won't work")},ul.callHandler=function(e,t){if(e===s.qY.BID_REQUESTED?il=il.concat(function(e){var t="true"===rl.getCookie("_lr_env_src_ats");return e.bids.map((function(n){return{envelope_source:t,has_envelope:!!n.userId&&!!n.userId.idl_env,bidder:n.bidder,bid_id:n.bidId,auction_id:e.auctionId,user_browser:cl(),user_platform:navigator.platform,auction_start:new Date(e.auctionStart).toJSON(),domain:window.location.hostname,pid:ul.context.pid,adapter_version:3,bid_won:!1}}))}(t)):e===s.qY.BID_RESPONSE&&ol.push(function(e){return{bid_id:e.requestId,response_time_stamp:new Date(e.responseTimestamp).toJSON(),currency:e.currency,cpm:e.cpm,net_revenue:e.netRevenue}}(t)),e===s.qY.AUCTION_END){var i=ul.context.bidWonTimeout?ul.context.bidWonTimeout:2e3,o=[];setTimeout((function(){var e=(0,n.m)().getAllWinningBids();if((0,r.fH)("ATS Analytics - winning bids: ",e),il.length){var t={};ol.length?(o=il.filter((function(e){return ol.filter((function(t){e.bid_id===t.bid_id&&Object.assign(e,t)}))})),e.length&&(o=o.filter((function(n){return e.filter((function(e){t.bid_id=e.requestId,t.bid_won=!0,n.bid_id===t.bid_id&&Object.assign(n,t)}))})))):o=il;try{var i=rl.getCookie("_lr_sampling_rate");i?ul.shouldFireRequest(parseInt(i))&&((0,r.fH)("ATS Analytics - events to send: ",o),dl(o)):function(e){(0,r.fH)("ATS Analytics - preflight request!"),(0,oo.RD)("https://check.analytics.rlcdn.com/check/"+ul.context.pid,{success:function(t){var n=JSON.parse(t);(0,r.fH)("ATS Analytics - Sampling Rate: ",n);var i=n.samplingRate;ul.setSamplingCookie(i);var o=Number(i);t&&i&&ul.shouldFireRequest(o)&&((0,r.fH)("ATS Analytics - events to send: ",e),dl(e))},error:function(){ul.setSamplingCookie(0),(0,r.fH)("ATS Analytics - Sampling Rate Request Error!")}},void 0,{method:"GET",crossOrigin:!0})}(o),o=[]}catch(e){(0,r.vV)("ATS Analytics - preflight request encounter an error: ",e)}}}),i)}},ge.Ay.registerAnalyticsAdapter({adapter:ul,code:nl,gvlid:97}),(0,n.E)("atsAnalyticsAdapter");var ll=[],pl=(0,me.Ak)("fpd",(function(e,t){var n=this;(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.global,n=void 0===t?{}:t,i=e.bidder,o=void 0===i?{}:i,a=l.$W.getConfig("firstPartyData")||{},s=v.k.resolve({global:n,bidder:o});return ll.sort((function(e,t){return(e.queue||1)-(t.queue||1)})).forEach((function(e){s=s.then((function(t){var n=t.global,i=t.bidder;return v.k.resolve(e.processFpd(a,{global:n,bidder:i})).catch((function(t){return(0,r.vV)("Error in FPD module ".concat(e.name),t),{}})).then((function(e){return{global:e.global||n,bidder:e.bidder||i}}))}))})),s})(t.ortb2Fragments).then((function(r){Object.assign(t.ortb2Fragments,r),e.call(n,t)}))}));(0,g.xG)("firstPartyData",(function(e){ll.push(e)})),(0,g.Yn)("startAuction").before(pl,10),(0,n.E)("fpdModule");var fl=void 0,vl={},gl=!1,ml=function(e,t){!function(e){var t=vl.customGptSlotMatching;if((0,r.II)()){var n=e.reduce((function(e,t){return e[t.code]=e[t.code]||[],e[t.code].push(t),e}),{});window.googletag.pubads().getSlots().forEach((function(e){var i,a=(0,d.I6)(Object.keys(n),t?t(e):(0,r.iC)(e));if(a){var s={name:"gam",adslot:(i=e.getAdUnitPath(),(l.$W.getConfig("gptPreAuction")||{}).mcmEnabled?i.replace(/(^\/\d*),\d*\//,"$1/"):i)};n[a].forEach((function(e){var t;o(e,"ortb2Imp.ext.data.adserver",Object.assign({},null===(t=e.ortb2Imp)||void 0===t||null===(t=t.ext)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.adserver,s))}))}}))}}(t);var n=vl,a=n.useDefaultPreAuction,s=n.customPreAuction;t.forEach((function(e){e.ortb2Imp=e.ortb2Imp||{},e.ortb2Imp.ext=e.ortb2Imp.ext||{},e.ortb2Imp.ext.data=e.ortb2Imp.ext.data||{};var t=e.ortb2Imp.ext;if(s||a){var n,o=(0,i.A)(t,"data.adserver.adslot");s?n=s(e,o):a&&(n=function(e,t){var n=e.ortb2Imp.ext.data;if(n.pbadslot)return n.pbadslot;if((0,r.II)()){var i=window.googletag.pubads().getSlots().filter((function(e){return e.getAdUnitPath()===t}));if(0!==i.length)return 1===i.length?t:"".concat(t,"#").concat(e.code)}}(e,o)),n&&(t.gpid=t.data.pbadslot=n)}else{var c=function(e){var t=e.ortb2Imp.ext.data,n=vl.customPbAdSlot;if(!t.pbadslot)if(n)t.pbadslot=n(e.code,(0,i.A)(t,"adserver.adslot"));else{try{var r=document.getElementById(e.code);if(r.dataset.adslotid)return void(t.pbadslot=r.dataset.adslotid)}catch(e){}if(!(0,i.A)(t,"adserver.adslot"))return t.pbadslot=e.code,!0;t.pbadslot=t.adserver.adslot}}(e);t.gpid||c||(t.gpid=t.data.pbadslot)}}));for(var c=arguments.length,u=new Array(c>2?c-2:0),p=2;p<c;p++)u[p-2]=arguments[p];return e.call.apply(e,[fl,t].concat(u))},hl=function(e){vl=(0,r.Up)(e,["enabled",function(e){return!1!==e},"customGptSlotMatching",function(e){return"function"==typeof e&&e},"customPbAdSlot",function(e){return"function"==typeof e&&e},"customPreAuction",function(e){return"function"==typeof e&&e},"useDefaultPreAuction",function(e){return!0===e}]),vl.enabled?gl||((0,g.Yn)("makeBidRequests").before(ml),gl=!0):((0,r.fH)("".concat("GPT Pre-Auction",": Turning off module")),vl={},(0,g.Yn)("makeBidRequests").getHooks({hook:ml}).remove(),gl=!1)};function bl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yl(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?bl(Object(r),!0).forEach((function(n){(0,t.A)(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bl(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}l.$W.getConfig("gptPreAuction",(function(e){return hl(e.gptPreAuction)})),hl({}),(0,n.E)("gptPreAuction");var _l="PAAPI",Al=[],wl=new WeakSet;function Il(){var e=new WeakMap;return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c.n.index.getAuction({auctionId:t});if(null!=r)return e.has(r)||e.set(r,n),e.get(r)}}(0,g.xG)("paapi",(function(e){Al.push(e),e.init&&e.init({getPAAPIConfig:Cl})}));var El=Il(),Ol=Il(),xl={},Sl={};function Cl(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.auctionId,r=t.adUnitCode,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={},a=n&&Ol(n);return Object.keys(null!==(e=null!=n?a:xl)&&void 0!==e?e:[]).forEach((function(e){var t,s=xl[e],c=null!=a?a:s&&Ol(s);(null!=r?r:e)===e&&(null!=a&&a.hasOwnProperty(e)?t=a[e]:null==n&&null!=c&&c.hasOwnProperty(e)&&(t=c[e]),t&&!wl.has(t)?(o[e]=t,wl.add(t)):i&&(o[e]=null))})),o}function Tl(){return"runAdAuction"in navigator&&"joinAdInterestGroup"in navigator}function kl(){var e,t,n,r,i=l.$W.getCurrentBidder(),o=Sl.enabled&&(null==i||!(null!==(e=Sl.bidders)&&void 0!==e&&e.length)||(null===(t=Sl.bidders)||void 0===t?void 0:t.includes(i)));return{enabled:null!==(n=l.$W.getConfig("fledgeEnabled"))&&void 0!==n?n:o,ae:null!==(r=l.$W.getConfig("defaultForSlots"))&&void 0!==r?r:o?Sl.defaultForSlots:void 0}}["paapi","fledgeForGpt"].forEach((function(e){l.$W.getConfig(e,(function(t){var n,i;n=t[e],"paapi"!==(i=e)&&(0,r.JE)("'".concat(i,"' configuration options will be renamed to 'paapi'; consider using setConfig({paapi: [...]}) instead")),n&&!0===n.enabled?(Sl=n,(0,r.fH)("".concat(_l," enabled (browser ").concat(Tl()?"supports":"does NOT support"," runAdAuction)"),n)):(Sl={},(0,r.fH)("".concat(_l," disabled"),n))}))})),(0,g.Yn)("addComponentAuction").before((function(e,t,n){if(kl().enabled){var i=t.adUnitCode,o=t.auctionId,a=t.ortb2,s=t.ortb2Imp,c=El(o);null!=c?(u={ortb2:a,ortb2Imp:s},(d=n).auctionSignals=(0,r.D9)({},{prebid:u},d.auctionSignals),!c.hasOwnProperty(i)&&(c[i]=[]),c[i].push(n)):(0,r.JE)(_l,"Received component auction config for auction that has closed (auction '".concat(o,"', adUnit '").concat(i,"')"),n)}var d,u;e(t,n)})),(0,g.Yn)("makeBidRequests").after((function(e,t){Tl()&&t.forEach((function(e){l.$W.runWithBidder(e.bidderCode,(function(){var t=kl(),n=t.enabled,r=t.ae;Object.assign(e,{fledgeEnabled:n}),e.bids.forEach((function(e){var t,n;o(e,"ortb2Imp.ext.ae",null!==(t=null===(n=e.ortb2Imp)||void 0===n||null===(n=n.ext)||void 0===n?void 0:n.ae)&&void 0!==t?t:r)}))}))})),e(t)})),u.on(s.qY.AUCTION_END,(function(t){var n=t.auctionId,i=t.bidsReceived,a=t.bidderRequests,s=t.adUnitCodes,c=t.adUnits,d=Object.fromEntries((null==c?void 0:c.map((function(e){return[e.code,e]})))||[]),u=null==a?void 0:a.flatMap((function(e){return e.bids})),l={};(s||[]).forEach((function(e){l[e]=null,!xl.hasOwnProperty(e)&&(xl[e]=null)})),Object.entries(El(n)||{}).forEach((function(t){var a,s,c=(0,e.A)(t,2),p=c[0],f=c[1],v=function(e){return e.adUnitCode===p},g=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(n.length>0){var i=n.reduce(H(Is((function(e){return[e.cpm,e.currency]}))));e=i.cpm,t=i.currency}else{var a=r.map((function(e){return"function"==typeof e.getFloor&&e.getFloor()})).filter((function(e){return e})),s=a.length&&a.reduce(z(Is((function(e){return[e.floor,e.currency]}))));e=null==s?void 0:s.floor,t=null==s?void 0:s.currency}var c={};return e&&(o(c,"auctionSignals.prebid.bidfloor",e),t&&o(c,"auctionSignals.prebid.bidfloorcur",t)),c}(null==i?void 0:i.filter(v),null==u?void 0:u.filter(v));l[p]=yl(yl({},g),{},{componentAuctions:f.map((function(e){return(0,r.D9)({},g,e)}))});var m=null===(a=(0,r.kK)(null===(s=d[p])||void 0===s||null===(s=s.mediaTypes)||void 0===s||null===(s=s.banner)||void 0===s?void 0:s.sizes))||void 0===a||null===(a=a[0])||void 0===a?void 0:a.split("x");m&&(l[p].requestedSize={width:m[0],height:m[1]}),xl[p]=n})),Ol(n,l),Al.forEach((function(e){var t;return null===(t=e.onAuctionConfig)||void 0===t?void 0:t.call(e,n,l,(function(e){return null!=l[e]&&wl.add(l[e])}))}))})),(0,n.m)().getPAAPIConfig=function(e){return Cl(e)},Rr({type:Or,name:"impExtAe",fn:function(e,t,n){var r,i;null!==(r=e.ext)&&void 0!==r&&r.ae&&!n.bidderRequest.fledgeEnabled&&(null===(i=e.ext)||void 0===i||delete i.ae)}}),Rr({type:Sr,name:"extPrebidFledge",fn:function(e,t,n){var i;((null===(i=t.ext)||void 0===i||null===(i=i.prebid)||void 0===i||null===(i=i.fledge)||void 0===i?void 0:i.auctionconfigs)||[]).forEach((function(e){var t,i=n.impContext[e.impid];null!=i&&null!==(t=i.imp)&&void 0!==t&&null!==(t=t.ext)&&void 0!==t&&t.ae?(i.fledgeConfigs=i.fledgeConfigs||[],i.fledgeConfigs.push(e)):(0,r.JE)("Received fledge auction configuration for an impression that was not in the request or did not ask for it",e,null==i?void 0:i.imp)}))},dialects:[Tr]}),Rr({type:Sr,name:"fledgeAuctionConfigs",priority:-1,fn:function(e,t,n){var r=Object.values(n.impContext).flatMap((function(e){return(e.fledgeConfigs||[]).map((function(t){return{bidId:e.bidRequest.bidId,config:t.config}}))}));r.length>0&&(e.fledgeAuctionConfigs=r)},dialects:[Tr]}),(0,n.E)("paapi");var Dl,Rl="fledgeForGpt",jl=!0;Object.entries((0,t.A)((0,t.A)({},Rl,Rl),"paapi","paapi.gpt")).forEach((function(t){var n=(0,e.A)(t,2),r=n[0],o=n[1],a="".concat(o,".autoconfig");l.$W.getConfig(r,(function(e){jl=(0,i.A)(e,a,!0)}))}));var Pl,Bl=(Pl={},function(t,n){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=pn(t);if(o&&o.setConfig){var a,s=null!==(a=Pl[t])&&void 0!==a?a:{},c=Object.fromEntries(n.map((function(e){return[e.seller,e]}))),d=Object.keys(c);i?(c=Object.assign(s,c),s=Object.fromEntries(d.map((function(e){return[e,null]})))):d.forEach((function(e){s[e]=null})),Object.keys(s).length?Pl[t]=s:delete Pl[t];var u=Object.entries(c).map((function(t){var n=(0,e.A)(t,2);return{configKey:n[0],auctionConfig:n[1]}}));u.length>0&&(o.setConfig({componentAuction:u}),(0,r.fH)(Rl,"register component auction configs for: ".concat(t,": ").concat(o.getAdUnitPath()),n))}else n.length>0&&(0,r.JE)(Rl,"unable to register component auction config for ".concat(t),n)});(0,n.m)().setPAAPIConfigForGPT=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return Dl(e,!0)},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bl;return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=!1;Object.entries(t(i)||{}).forEach((function(t){var r=(0,e.A)(t,2),i=r[0],a=r[1];null!=a&&(o=!0),n(i,(null==a?void 0:a.componentAuctions)||[],!0)})),o||(0,r.fH)("".concat(Rl,": No component auctions available to set"))}}(),(0,g.bz)("paapi",{name:"gpt",onAuctionConfig:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Bl;return function(n,r,i){jl&&Object.entries(r).forEach((function(n){var r,o=(0,e.A)(n,2),a=o[0],s=o[1];t(a,null!==(r=null==s?void 0:s.componentAuctions)&&void 0!==r?r:[]),i(a)}))}}(),init:function(e){Dl=e.getPAAPIConfig}}),(0,n.E)("fledgeForGpt");var Ul=!1,Nl=[],ql={maxTopicCaller:4,bidders:[{bidder:"pubmatic",iframeURL:"https://ads.pubmatic.com/AdServer/js/topics/topics_frame.html"},{bidder:"rtbhouse",iframeURL:"https://topics.authorizedvault.com/topicsapi.html"},{bidder:"openx",iframeURL:"https://pa.openx.net/topics_frame.html"},{bidder:"improvedigital",iframeURL:"https://hb.360yield.com/privacy-sandbox/topics.html"},{bidder:"onetag",iframeURL:"https://onetag-sys.com/static/topicsapi.html"},{bidder:"taboola",iframeURL:"https://cdn.taboola.com/libtrc/static/topics/taboola-prebid-browsing-topics.html"},{bidder:"discovery",iframeURL:"https://api.popin.cc/topic/prebid-topics-frame.html"},{bidder:"undertone",iframeURL:"https://creative-p.undertone.com/spk-public/topics_frame.html"}]},Ml=(0,ve.CK)("topicsFpd"),Ll="prebid:topics",Wl="lastUpdated",Fl={1:600,2:601,3:602,4:603};function Vl(e,t){return t.reduce((function(t,n){var r=n[e];return t.hasOwnProperty(r)||(t[r]=[]),t[r].push(n),t}),{})}function Gl(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fl;return Object.entries(Vl("taxonomyVersion",n)).filter((function(t){var n=(0,e.A)(t,1)[0];return!!i.hasOwnProperty(n)||((0,r.JE)('Unrecognized taxonomyVersion from Topics API: "'.concat(n,'"; topic will be ignored')),!1)})).flatMap((function(n){var r=(0,e.A)(n,2),o=r[0],a=r[1];return Object.entries(Vl("modelVersion",a)).map((function(n){var r=(0,e.A)(n,2),a=r[0],s=r[1],c={ext:{segtax:i[o],segclass:a},segment:s.map((function(e){return{id:e.topic.toString()}}))};return null!=t&&(c.name=t),c}))}))}function zl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return"browsingTopics"in e&&e.featurePolicy.allowsFeature("browsing-topics")}var Hl=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=null;try{zl(e)&&(t=v.k.resolve(e.browsingTopics()))}catch(e){(0,r.vV)("Could not call topics API",e)}return null==t&&(t=v.k.resolve([])),t}().then((function(e){return Gl((0,he.EN)().domain,e)}));function Jl(){var e=[],t=(l.$W.getConfig("userSync.topics")||ql).bidders||[],n=new Map((0,r.$l)(Ml.getDataFromLocalStorage(Ll)));return n&&n.forEach((function(r,i){var o=t.find((function(e){var t=e.bidder;return i===t}));o&&(0,Ce.io)(ke.qX,(0,Te.s)(De.tW,i))&&(Ql(r[Wl],(null==o?void 0:o.expiry)||21)?(n.delete(i),Ml.setDataInLocalStorage(Ll,JSON.stringify((0,M.A)(n)))):Object.keys(r).forEach((function(t){t!==Wl&&e.push(r[t])})))})),e}function Kl(e){if(e&&e.data)try{var t=(0,r.$l)(e.data);if((0,d.mK)(Nl,e.origin)&&t&&t.segment&&!(0,r.Im)(t.segment.topics)){var n=t.segment,i=n.domain,o=n.topics,a=n.bidder,s=Gl(i,o);s&&$l(a,s)}}catch(e){}}function $l(e,n){var i=new Map((0,r.$l)(Ml.getDataFromLocalStorage(Ll))),o=(0,t.A)({},Wl,(new Date).getTime());n.forEach((function(e){o[e.ext.segclass]=e})),i.set(e,o),Ml.setDataInLocalStorage(Ll,JSON.stringify((0,M.A)(i)))}function Ql(e,t){var n=(new Date).getTime();return Math.ceil((n-e)/864e5)>t}function Xl(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(zl(e)){var t,n,i=l.$W.getConfig("userSync.topics")||ql;if(i){window.addEventListener("message",Kl,!1);var o=(t=i.bidders||[],n=i.maxTopicCaller||1,(0,M.A)(t).sort((function(){return.5-Math.random()})).slice(0,n));o&&o.forEach((function(t){var n,i=t.bidder,o=t.iframeURL,a=t.fetchUrl,s=t.fetchRate;if(i&&o){var c=e.createElement("iframe");c.name="ifrm_".concat(i),c.src="".concat(o,"?bidder=").concat(i),c.style.display="none",n=new URL(o).origin,Nl.push(n),o&&e.documentElement.appendChild(c)}if(i&&a){var d=new Map((0,r.$l)(Ml.getDataFromLocalStorage(Ll))).get(i);(!d||d&&Ql(d[Wl],s||1))&&window.fetch("".concat(a,"?bidder=").concat(i),{browsingTopics:!0}).then((function(e){return e.json()})).then((function(e){if(e&&e.segment&&!(0,r.Im)(e.segment.topics)){var t=e.segment,n=t.domain,i=t.topics,o=t.bidder,a=Gl(n,i);a&&$l(o,a)}}))}}))}else(0,r.JE)("Topics config not defined under userSync Object")}}(0,g.bz)("firstPartyData",{name:"topics",queue:1,processFpd:function(e,t){var n=t.global,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).data,o=void 0===i?Hl:i;return Ul||(Xl(),Ul=!0),o.then((function(e){return(e=[].concat(e,Jl())).length&&(0,r.D9)(n,{user:{data:e}}),{global:n}}))}}),(0,n.E)("topicsFpdModule"),ct.processQueue()})()})();