content.lwadm.com Open in urlscan Pro
2600:9000:211e:ca00:1b:7f5c:2c80:93a1  Public Scan

URL: https://content.lwadm.com/lw/6.26.0.1/prebid.js
Submission: On October 14 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

/* prebid.js v6.26.0
Updated : 2022-05-26*/
/*! For license information please see prebid-core.js.LICENSE.txt */
!function(){var e,n={4877:function(e,n,t){"use strict";t.d(n,{Pd:function(){return d},Th:function(){return u},_U:function(){return s}});var r=t(6996),i=t(9853),o=t(265),a=t(1879),c="outstream";function u(e){var n=this,t=e.url,o=e.config,a=e.id,u=e.callback,d=e.loaded,s=e.adUnitCode;this.url=t,this.config=o,this.handlers={},this.id=a,this.loaded=d,this.cmd=[],this.push=function(e){"function"==typeof e?n.loaded?e.call():n.cmd.push(e):(0,i.H)("Commands given to Renderer.push must be wrapped in a function")},this.callback=u||function(){n.loaded=!0,n.process()},this.render=function(){var e=this,n=arguments,o=function(){e._render?e._render.apply(e,n):(0,i.yN)("No render function was provided, please use .setRender on the renderer")};f(s)?((0,i.yN)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(s)),o()):(this.cmd.unshift(o),(0,r.B)(t,c,this.callback,this.documentContext))}.bind(this)}function d(e){return!(!e||!e.url)}function s(e,n,t){var r=null;e.config&&e.config.documentResolver&&(r=e.config.documentResolver(n,document,t)),r||(r=document),e.documentContext=r,e.render(n,e.documentContext)}function f(e){var n=pbjs.adUnits,t=(0,a.sE)(n,(function(n){return n.code===e}));if(!t)return!1;var r=(0,o.Z)(t,"renderer"),i=!!(r&&r.url&&r.render),c=(0,o.Z)(t,"mediaTypes.video.renderer"),u=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||u&&!0!==c.backupOnly)}u.install=function(e){return new u({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},u.prototype.getConfig=function(){return this.config},u.prototype.setRender=function(e){this._render=e},u.prototype.setEventHandlers=function(e){this.handlers=e},u.prototype.handleVideoEvent=function(e){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),(0,i.ji)("Prebid Renderer event for id ".concat(n," type ").concat(t))},u.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.H)("Error processing Renderer command: ",e)}}},7263:function(e,n,t){"use strict";t.d(n,{f:function(){return a}});var r=t(265),i={};function o(e,n,t){var r=function(e,n){var t=i[e]=i[e]||{bidders:{}};return n?t.bidders[n]=t.bidders[n]||{}:t}(e,t);return r[n]=(r[n]||0)+1,r[n]}var a={incrementRequestsCounter:function(e){return o(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,n){return o(e,"requestsCounter",n)},incrementBidderWinsCounter:function(e,n){return o(e,"winsCounter",n)},getRequestsCounter:function(e){return(0,r.Z)(i,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,n){return(0,r.Z)(i,"".concat(e,".bidders.").concat(n,".requestsCounter"))||0},getBidderWinsCounter:function(e,n){return(0,r.Z)(i,"".concat(e,".bidders.").concat(n,".winsCounter"))||0}}},7602:function(e,n,t){"use strict";t.d(n,{VP:function(){return $},ZP:function(){return ie},rp:function(){return Y},uV:function(){return ne},nX:function(){return X}});var r=t(9853),i=t(265),o=t(1269),a=t(9017),c=t(1125),u=t(5755),d=t(8962),s=t(3494),f=t(1879),l=t(7263),p=t(2661);function g(e){return g="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},g(e)}function v(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}function y(e,n){return y=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e},y(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=m(e);if(n){var i=m(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return h(this,t)}}function h(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function w(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function C(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function A(e,n,t){return n&&C(e.prototype,n),t&&C(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(e,n,t){!function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,n),n.set(e,t)}function E(e,n){return function(e,n){return n.get?n.get.call(e):n.value}(e,O(e,n,"get"))}function T(e,n,t){return function(e,n,t){if(n.set)n.set.call(e,t);else{if(!n.writable)throw new TypeError("attempted to set read only private field");n.value=t}}(e,O(e,n,"set"),t),t}function O(e,n,t){if(!n.has(e))throw new TypeError("attempted to "+t+" private field on non-instance");return n.get(e)}var I=new WeakMap,j=new WeakMap,k=new WeakMap,B=new WeakMap,U=new WeakMap,P=function(){function e(){var n,t;w(this,e),S(this,I,{writable:!0,value:void 0}),S(this,j,{writable:!0,value:void 0}),S(this,k,{writable:!0,value:void 0}),S(this,B,{writable:!0,value:void 0}),S(this,U,{writable:!0,value:void 0}),t=void 0,(n="generatedTime")in this?Object.defineProperty(this,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[n]=t,this.reset()}return A(e,[{key:"reset",value:function(){var e=this;T(this,k,new Promise((function(n){T(e,B,(function(t){T(e,U,!0),T(e,j,t),n(t)}))}))),T(this,I,!1),T(this,j,null),T(this,U,!1),this.generatedTime=null}},{key:"enable",value:function(){T(this,I,!0)}},{key:"enabled",get:function(){return E(this,I)}},{key:"ready",get:function(){return E(this,U)}},{key:"promise",get:function(){return E(this,U)?Promise.resolve(E(this,j)):(E(this,I)||E(this,B).call(this,null),E(this,k))}},{key:"setConsentData",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,r.AB)();this.generatedTime=n,E(this,B).call(this,e)}},{key:"getConsentData",value:function(){return E(this,j)}}]),e}(),_=function(e){v(t,e);var n=b(t);function t(){return w(this,t),n.apply(this,arguments)}return A(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(P),R=function(e){v(t,e);var n=b(t);function t(){return w(this,t),n.apply(this,arguments)}return A(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:(0,r.d8)(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}}]),t}(P),N=t(2319),x=t(5644);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function q(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){F(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function H(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function F(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function M(){return M=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},M.apply(this,arguments)}var z="client",W="server",Z={},K=Z.bidderRegistry={},L=Z.aliasRegistry={},G=[];d.vc.getConfig("s2sConfig",(function(e){e&&e.s2sConfig&&(G=(0,r.kJ)(e.s2sConfig)?e.s2sConfig:[e.s2sConfig])}));var J={},V=(0,s.z3)("sync",(function(e){var n=e.bidderCode,t=e.auctionId,o=e.bidderRequestId,a=e.adUnits,c=e.src;return a.reduce((function(e,a){return e.push(a.bids.filter((function(e){return e.bidder===n})).reduce((function(e,n){var u=null==(n=M({},n,(0,r.iG)(a,["nativeParams","ortb2Imp","mediaType","renderer","storedAuctionResponse"]))).mediaTypes?a.mediaTypes:n.mediaTypes;return(0,r.FS)(u)?n=M({},n,{mediaTypes:u}):(0,r.H)("mediaTypes is not correctly configured for adunit ".concat(a.code)),e.push(M({},n,{adUnitCode:a.code,transactionId:a.transactionId,sizes:(0,i.Z)(u,"banner.sizes")||(0,i.Z)(u,"video.playerSize")||[],bidId:n.bid_id||(0,r._d)(),bidderRequestId:o,auctionId:t,src:c,bidRequestsCount:l.f.getRequestsCounter(a.code),bidderRequestsCount:l.f.getBidderRequestsCounter(a.code,n.bidder),bidderWinsCount:l.f.getBidderWinsCounter(a.code,n.bidder)})),e}),[])),e}),[]).reduce(r.xH,[]).filter((function(e){return""!==e}))}),"getBids"),Q=(0,s.z3)("sync",(function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?ne:r;if(null==n)return e;var o=i(n);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit"),Y=new R,X=new _,$={getCoppa:function(){return!!d.vc.getConfig("coppa")}},ee=(0,s.z3)("sync",(function(e,n){return(0,o.UB)(e,n)}),"setupAdUnitMediaTypes");function ne(e){(0,r.kJ)(e)||(e=[e]);var n=new Set([null]);return e.filter((function(e){return e&&e.enabled})).flatMap((function(e){return e.bidders})).forEach((function(e){return n.add(e)})),n}var te=(0,s.z3)("sync",(function(e,n){var t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.getS2SBidders,a=void 0===o?ne:o,c=a(n);return(0,r.pP)(e).reduce((function(e,n){return e[c.has(n)?W:z].push(n),e}),(F(t={},z,[]),F(t,W,[]),t))}),"partitionBidders");function re(e,n,t){try{var i=K[e].getSpec();i&&i[n]&&"function"==typeof i[n]&&((0,r.PN)("Invoking ".concat(e,".").concat(n)),d.vc.runWithBidder(e,r.ak.call(i[n],i,t)))}catch(t){(0,r.yN)("Error calling ".concat(n," of ").concat(e))}}Z.makeBidRequests=(0,s.z3)("sync",(function(e,n,t,i,o){N.j8(x.FP.BEFORE_REQUEST_BIDS,e),(0,a.Fb)(e),e=ee(e,o);var c=te(e,G),u=c.client,s=c.server;d.vc.getConfig("bidderSequence")===d.FD&&(u=(0,r.TV)(u));var l=(0,p.n)(),g=[];G.forEach((function(i){if(i&&i.enabled){var o=function(e,n){var t=(0,r.I8)(e);return t.forEach((function(e){e.bids=Q(e.bids,n).map((function(e){return e.bid_id=(0,r._d)(),e}))})),t.filter((function(e){return 0!==e.bids.length}))}(e,i),a=(0,r.DO)();s.forEach((function(e){var c=(0,r._d)(),u={bidderCode:e,auctionId:t,bidderRequestId:c,uniquePbsTid:a,bids:V({bidderCode:e,auctionId:t,bidderRequestId:c,adUnits:(0,r.I8)(o),src:x.os.YZ}),auctionStart:n,timeout:i.timeout,src:x.os.YZ,refererInfo:l};0!==u.bids.length&&g.push(u)})),o.forEach((function(e){var n=e.bids.filter((function(e){return(0,f.sE)(g,(function(n){return(0,f.sE)(n.bids,(function(n){return n.bidId===e.bid_id}))}))}));e.bids=n})),g.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=o.filter((function(e){return e.bids.length>0})))}))}}));var v=function(e){var n=(0,r.I8)(e);return n.forEach((function(e){e.bids=Q(e.bids,null)})),n.filter((function(e){return 0!==e.bids.length}))}(e);return u.forEach((function(e){var a=(0,r._d)(),c={bidderCode:e,auctionId:t,bidderRequestId:a,bids:V({bidderCode:e,auctionId:t,bidderRequestId:a,adUnits:(0,r.I8)(v),labels:o,src:"client"}),auctionStart:n,timeout:i,refererInfo:l},u=K[e];u||(0,r.H)("Trying to make a request for bidder that does not exist: ".concat(e)),u&&c.bids&&0!==c.bids.length&&g.push(c)})),Y.getConsentData()&&g.forEach((function(e){e.gdprConsent=Y.getConsentData()})),X.getConsentData()&&g.forEach((function(e){e.uspConsent=X.getConsentData()})),g}),"makeBidRequests"),Z.callBids=function(e,n,t,i,o,a,c){if(n.length){var s=(y=n.reduce((function(e,n){return e[Number(void 0!==n.src&&n.src===x.os.YZ)].push(n),e}),[[],[]]),b=2,function(e){if(Array.isArray(e))return e}(y)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw i}}return o}}(y,b)||function(e,n){if(e){if("string"==typeof e)return H(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?H(e,n):void 0}}(y,b)||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.")}()),f=s[0],l=s[1],p=[];l.forEach((function(e){for(var n=-1,t=0;t<p.length;++t)if(e.uniquePbsTid===p[t].uniquePbsTid){n=t;break}n<=-1&&p.push(e)}));var g=0,v=(0,r.DO)();G.forEach((function(e){if(e&&p[g]&&ne(e).has(p[g].bidderCode)){var n=(0,u.O)(a,o?{request:o.request.bind(null,"s2s"),done:o.done}:void 0),c=e.bidders,d=K[e.adapter],s=p[g].uniquePbsTid,f=p[g].adUnitsS2SCopy,y=l.filter((function(e){return e.uniquePbsTid===s}));if(d){var b={tid:v,ad_units:f,s2sConfig:e};if(b.ad_units.length){var h=y.map((function(e){return e.start=(0,r.AB)(),i.bind(e)})),m=(0,r.pP)(b.ad_units).filter((function(e){return c.includes(e)}));(0,r.ji)("CALLING S2S HEADER BIDDERS ==== ".concat(m.length>0?m.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),y.forEach((function(e){N.j8(x.FP.BID_REQUESTED,q(q({},e),{},{tid:v}))})),d.callBids(b,l,t,(function(){return h.forEach((function(e){return e()}))}),n)}}else(0,r.H)("missing "+e.adapter);g++}})),f.forEach((function(e){e.start=(0,r.AB)();var n=K[e.bidderCode];d.vc.runWithBidder(e.bidderCode,(function(){(0,r.ji)("CALLING BIDDER"),N.j8(x.FP.BID_REQUESTED,e)}));var s=(0,u.O)(a,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),f=i.bind(e);try{d.vc.runWithBidder(e.bidderCode,r.ak.call(n.callBids,n,e,t,f,s,c,d.vc.callbackWithBidder(e.bidderCode)))}catch(n){(0,r.H)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:n,bidRequest:e}),f()}}))}else(0,r.yN)("callBids executed with no bidRequests.  Were they filtered by labels or sizing?");var y,b},Z.videoAdapters=[],Z.registerBidAdapter=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.supportedMediaTypes,o=void 0===i?[]:i;e&&n?"function"==typeof e.callBids?(K[n]=e,(0,f.q9)(o,"video")&&Z.videoAdapters.push(n),(0,f.q9)(o,"native")&&a.Sg.push(n)):(0,r.H)("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):(0,r.H)("bidAdapter or bidderCode not specified")},Z.aliasBidAdapter=function(e,n,t){if(void 0===K[n]){var i=K[e];if(void 0===i){var o=[];G.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,f.q9)(r,n)?L[n]=e:o.push(e)}})),o.forEach((function(e){(0,r.H)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var u,d=function(e){var n=[];return(0,f.q9)(Z.videoAdapters,e)&&n.push("video"),(0,f.q9)(a.Sg,e)&&n.push("native"),n}(e);if(i.constructor.prototype!=Object.prototype)(u=new i.constructor).setBidderCode(n);else{var s=i.getSpec(),l=t&&t.gvlid,p=t&&t.skipPbsAliasing;u=(0,c.PZ)(M({},s,{code:n,gvlid:l,skipPbsAliasing:p})),L[n]=e}Z.registerBidAdapter(u,n,{supportedMediaTypes:d})}catch(n){(0,r.H)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,r.ji)('alias name "'+n+'" has been already specified.')},Z.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code,i=e.gvlid;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,J[t]={adapter:n,gvlid:i}):(0,r.H)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n        analytics adapter must implement an enableAnalytics() function')):(0,r.H)("Prebid Error: analyticsAdapter or analyticsCode not specified")},Z.enableAnalytics=function(e){(0,r.kJ)(e)||(e=[e]),(0,r.yi)(e,(function(e){var n=J[e.provider];n&&n.adapter?n.adapter.enableAnalytics(e):(0,r.H)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},Z.getBidAdapter=function(e){return K[e]},Z.getAnalyticsAdapter=function(e){return J[e]},Z.callTimedOutBidders=function(e,n,t){n=n.map((function(n){return n.params=(0,r.S0)(e,n.adUnitCode,n.bidder),n.timeout=t,n})),n=(0,r.vM)(n,"bidder"),Object.keys(n).forEach((function(e){re(e,"onTimeout",n[e])}))},Z.callBidWonBidder=function(e,n,t){n.params=(0,r.S0)(t,n.adUnitCode,n.bidder),l.f.incrementBidderWinsCounter(n.adUnitCode,n.bidder),re(e,"onBidWon",n)},Z.callSetTargetingBidder=function(e,n){re(e,"onSetTargeting",n)},Z.callBidViewableBidder=function(e,n){re(e,"onBidViewable",n)},Z.callBidderError=function(e,n,t){re(e,"onBidderError",{error:n,bidderRequest:t})};var ie=Z},1125:function(e,n,t){"use strict";function r(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}t.d(n,{Q1:function(){return U},PZ:function(){return j},dX:function(){return I}});var i=t(7602),o=t(8962),a=t(1477),c=t(7112),u=t(9017),d=t(1929),s=t(5644),f=t(2319),l=t(1879),p=t(5755),g=t(9853),v=t(265),y=t(8265),b=t(3494),h=t(5849),m=t(4766),w=t(9624);function C(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return A(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?A(e,n):void 0}}(e,n)||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.")}()}function A(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function S(e){return S="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},S(e)}function E(){return E=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},E.apply(this,arguments)}var T=(0,h.eA)("bidderFactory"),O=["cpm","ttl","creativeId","netRevenue","currency"];function I(e){var n=Array.isArray(e.supportedMediaTypes)?{supportedMediaTypes:e.supportedMediaTypes}:void 0;function t(e){var t=j(e);i.ZP.registerBidAdapter(t,e.code,n)}t(e),Array.isArray(e.aliases)&&e.aliases.forEach((function(n){var r,o,a=n;(0,g.PO)(n)&&(a=n.code,r=n.gvlid,o=n.skipPbsAliasing),i.ZP.aliasRegistry[a]=e.code,t(E({},e,{code:a,gvlid:r,skipPbsAliasing:o}))}))}function j(e){return E(new r(e.code),{getSpec:function(){return Object.freeze(e)},registerSyncs:n,callBids:function(r,c,p,v,y,b){if(Array.isArray(r.bids)){var h={},C=[],A=r.bids.filter(t);if(0!==A.length){var S={};A.forEach((function(e){S[e.bidId]=e,e.adUnitCode||(e.adUnitCode=e.placementCode)})),k(e,A,r,v,b,{onRequest:function(e){return f.j8(s.FP.BEFORE_BIDDER_HTTP,r,e)},onResponse:function(n){y(e.code),C.push(n)},onError:function(n,t){y(e.code),i.ZP.callBidderError(e.code,t,r),f.j8(s.FP.BIDDER_ERROR,{error:t,bidderRequest:r}),(0,g.H)("Server call for ".concat(e.code," failed: ").concat(n," ").concat(t.status,". Continuing without bids."))},onBid:function(n){var t,r,i,o,f=S[n.requestId];if(f){if(n.adapterCode=f.bidder,t=n.bidderCode,r=f.bidder,i=w.S.get(r,"allowAlternateBidderCodes"),o=w.S.get(r,"allowedAlternateBidderCodes"),t&&r&&r!==t&&(void 0!==i&&!i||(0,g.kJ)(o)&&"*"!==o[0]&&!o.includes(t)))return void(0,g.yN)("".concat(n.bidderCode," is not a registered partner or known bidder of ").concat(f.bidder,", hence continuing without bid. If you wish to support this bidder, please mark allowAlternateBidderCodes as true in bidderSettings."));n.originalCpm=n.cpm,n.originalCurrency=n.currency,n.meta=n.meta||E({},n[f.bidder]);var p=E((0,a.m)(s.Q_.Q,f),n);!function(e,n){h[e]=!0,function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?m.K.index:t;function i(){var e=Object.keys(n);return O.every((function(t){return(0,l.q9)(e,t)&&!(0,l.q9)([void 0,null],n[t])}))}function o(e){return"Invalid bid from ".concat(n.bidderCode,". Ignoring bid: ").concat(e)}return e?n?i()?"native"!==n.mediaType||(0,u.r4)(n,{index:r})?"video"!==n.mediaType||(0,d.Dn)(n,{index:r})?!("banner"===n.mediaType&&!P(e,n,{index:r}))||((0,g.H)(o("Banner bids require a width and height")),!1):((0,g.H)(o("Video bid does not have required vastUrl or renderer property")),!1):((0,g.H)(o("Native bid missing some required properties.")),!1):((0,g.H)(o("Bidder ".concat(n.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1):((0,g.yN)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):((0,g.yN)("No adUnitCode was supplied to addBidResponse."),!1)}(e,n)&&c(e,n)}(f.adUnitCode,p)}else(0,g.yN)("Bidder ".concat(e.code," made bid for unknown request ID: ").concat(n.requestId,". Ignoring."))},onCompletion:T})}else T()}function T(){p(),o.vc.runWithBidder(e.code,(function(){f.j8(s.FP.BIDDER_DONE,r),n(C,r.gdprConsent,r.uspConsent)}))}}});function n(n,t,r){B(e,n,t,r)}function t(n){return!!e.isBidRequestValid(n)||((0,g.yN)("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(n))),!1)}}var k=(0,b.z3)("sync",(function(e,n,t,r,i,o){var a=o.onRequest,c=o.onResponse,u=o.onError,d=o.onBid,s=o.onCompletion,f=e.buildRequests(n,t);if(f&&0!==f.length){Array.isArray(f)||(f=[f]);var l=(0,g.yx)(s,f.length);f.forEach((function(n){var t,o=i((function(t,r){try{t=JSON.parse(t)}catch(e){}var i;t={body:t,headers:{get:r.getResponseHeader.bind(r)}},c(t);try{i=e.interpretResponse(t,n)}catch(n){return(0,g.H)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,n),void l()}i&&((0,g.kJ)(i)?i.forEach(d):d(i)),l()})),s=i((function(e,n){u(e,n),l()}));switch(a(n),n.method){case"GET":r("".concat(n.url).concat((t=n.data)?"?".concat("object"===S(t)?(0,g.Re)(t):t):""),{success:o,error:s},void 0,E({method:"GET",withCredentials:!0},n.options));break;case"POST":r(n.url,{success:o,error:s},"string"==typeof n.data?n.data:JSON.stringify(n.data),E({method:"POST",contentType:"text/plain",withCredentials:!0},n.options));break;default:(0,g.yN)("Skipping invalid request from ".concat(e.code,". Request type ").concat(n.type," must be GET or POST")),l()}}))}else s()}),"processBidderRequests"),B=(0,b.z3)("async",(function(e,n,t,r){var a=o.vc.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(a||!i.ZP.aliasRegistry[e.code])){var u=o.vc.getConfig("userSync.filterSettings"),d=e.getUserSyncs({iframeEnabled:!(!u||!u.iframe&&!u.all),pixelEnabled:!(!u||!u.image&&!u.all)},n,t,r);d&&(Array.isArray(d)||(d=[d]),d.forEach((function(n){c.k_.registerSync(n.type,e.code,n.url)})))}}),"registerSyncs");function U(e,n){var t=i.ZP.getBidAdapter(e);if(t.getSpec().getMappingFileInfo){var r=t.getSpec().getMappingFileInfo(),o=r.localStorageKey?r.localStorageKey:t.getBidderCode(),a=T.getDataFromLocalStorage(o);if(a){try{a=JSON.parse(a)}catch(n){(0,g.H)("Failed to parse ".concat(e," mapping data stored in local storage"))}return a.mapping[n]?a.mapping[n]:null}}}function P(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?m.K.index:r;if((n.width||0===parseInt(n.width,10))&&(n.height||0===parseInt(n.height,10)))return n.width=parseInt(n.width,10),n.height=parseInt(n.height,10),!0;var o=i.getBidRequest(n),a=i.getMediaTypes(n),c=o&&o.sizes||a&&a.banner&&a.banner.sizes,u=(0,g.sF)(c);if(1===u.length){var d=u[0].split("x"),s=C(d,2),f=s[0],l=s[1];return n.width=parseInt(f,10),n.height=parseInt(l,10),!0}return!1}(0,b.v5)("checkAdUnitSetup").before((function(e,n){if(!o.vc.getConfig("adpod.brandCategoryExclusion"))return e.call(this,n);n.filter((function(e){return(0,v.Z)(e,"mediaTypes.video.context")===y.Oh})).map((function(e){return e.bids.map((function(e){return e.bidder}))})).reduce(g.xH,[]).filter(g.tT).forEach((function(e){var n=i.ZP.getBidAdapter(e);if(n.getSpec().getMappingFileInfo){var t=n.getSpec().getMappingFileInfo(),r=t.refreshInDays?t.refreshInDays:1,o=t.localStorageKey?t.localStorageKey:n.getSpec().code,a=T.getDataFromLocalStorage(o);try{(!(a=a?JSON.parse(a):void 0)||(0,g.AB)()>a.lastUpdated+24*r*60*60*1e3)&&(0,p.h)(t.url,{success:function(n){try{n=JSON.parse(n);var t={lastUpdated:(0,g.AB)(),mapping:n.mapping};T.setDataInLocalStorage(o,JSON.stringify(t))}catch(n){(0,g.H)("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){(0,g.H)("Failed to load ".concat(e," bidder translation file"))}})}catch(n){(0,g.H)("Failed to parse ".concat(e," bidder translation mapping file"))}}})),e.call(this,n)}))},6996:function(e,n,t){"use strict";t.d(n,{B:function(){return c}});var r=t(1879),i=t(9853),o=new WeakMap,a=["adloox","criteo","outstream","adagio","browsi","brandmetrics","justtag"];function c(e,n,t,c){if(n&&e){if((0,r.q9)(a,n)){c||(c=document);var u=f(c,e);if(u)return t&&"function"==typeof t&&(u.loaded?t():u.callbacks.push(t)),u.tag;var d=o.get(c)||{},s={loaded:!1,tag:null,callbacks:[]};return d[e]=s,o.set(c,d),t&&"function"==typeof t&&s.callbacks.push(t),(0,i.yN)("module ".concat(n," is loading external JavaScript")),function(n,t,r){r||(r=document);var o=r.createElement("script");o.type="text/javascript",o.async=!0;var a=f(r,e);return a&&(a.tag=o),o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,t())}:o.onload=function(){t()},o.src=n,(0,i.jC)(o,r),o}(e,(function(){s.loaded=!0;try{for(var e=0;e<s.callbacks.length;e++)s.callbacks[e]()}catch(e){(0,i.H)("Error executing callback","adloader.js:loadExternalScript",e)}}),c)}(0,i.H)("".concat(n," not whitelisted for loading external JavaScript"))}else(0,i.H)("cannot load external script without url and moduleCode");function f(e,n){var t=o.get(e);return t&&t[n]?t[n]:null}}},5755:function(e,n,t){"use strict";t.d(n,{O:function(){return u},h:function(){return c}});var r=t(8962),i=t(9853);function o(){return o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o.apply(this,arguments)}function a(e){return a="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},a(e)}var c=u();function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3e3,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.request,c=n.done;return function(n,u,d){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var f,l=s.method||(d?"POST":"GET"),p=document.createElement("a");p.href=n;var g="object"===a(u)&&null!==u?u:{success:function(){(0,i.ji)("xhr success")},error:function(e){(0,i.H)("xhr error",null,e)}};if("function"==typeof u&&(g.success=u),(f=new window.XMLHttpRequest).onreadystatechange=function(){if(4===f.readyState){"function"==typeof c&&c(p.origin);var e=f.status;e>=200&&e<300||304===e?g.success(f.responseText,f):g.error(f.statusText,f)}},r.vc.getConfig("disableAjaxTimeout")||(f.ontimeout=function(){(0,i.H)("  xhr timeout after ",f.timeout,"ms")}),"GET"===l&&d){var v=(0,i.en)(n,s);o(v.search,d),n=(0,i.Q2)(v)}f.open(l,n,!0),r.vc.getConfig("disableAjaxTimeout")||(f.timeout=e),s.withCredentials&&(f.withCredentials=!0),(0,i.yi)(s.customHeaders,(function(e,n){f.setRequestHeader(n,e)})),s.preflight&&f.setRequestHeader("X-Requested-With","XMLHttpRequest"),f.setRequestHeader("Content-Type",s.contentType||"text/plain"),"function"==typeof t&&t(p.origin),"POST"===l&&d?f.send(d):f.send()}catch(e){(0,i.H)("xhr construction",e),"object"===a(u)&&null!==u&&u.error(e)}}}},9964:function(e,n,t){"use strict";t.d(n,{mv:function(){return T},Yt:function(){return B},e0:function(){return U},LX:function(){return F},vO:function(){return k}});var r=t(9853),i=t(265),o=t(5553),a=t(9017),c=t(5755),u=t(8962),d=t(4766);function s(e,n){var t=n?"<![CDATA[".concat(n,"]]>"):"";return'<VAST version="3.0">\n    <Ad>\n      <Wrapper>\n        <AdSystem>prebid.org wrapper</AdSystem>\n        <VASTAdTagURI><![CDATA['.concat(e,"]]></VASTAdTagURI>\n        <Impression>").concat(t,"</Impression>\n        <Creatives></Creatives>\n      </Wrapper>\n    </Ad>\n  </VAST>")}function f(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?d.K.index:t,i=e.vastXml?e.vastXml:s(e.vastUrl,e.vastImpUrl),o=r.getAuction(e),a={type:"xml",value:i,ttlseconds:Number(e.ttl)};return u.vc.getConfig("cache.vasttrack")&&(a.bidder=e.bidder,a.bidid=e.requestId,a.aid=e.auctionId),null!=o&&(a.timestamp=o.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(a.key=e.customCacheKey),a}var l=t(4877),p=t(7112),g=t(3494),v=t(1879),y=t(1929),b=t(8265),h=t(9624),m=t(2319),w=t(7602),C=t(5644);function A(e){return A="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},A(e)}function S(){return S=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},S.apply(this,arguments)}var E=p.k_.syncUsers,T="completed";m.on(C.FP.BID_ADJUSTMENT,(function(e){!function(e){var n=e.bidderCode,t=e.cpm,i=h.S.get(n||null,"bidCpmAdjustment");if(i&&"function"==typeof i)try{t=i(e.cpm,S({},e))}catch(e){(0,r.H)("Error during bid adjustment","bidmanager.js",e)}t>=0&&(e.cpm=t)}(e)}));var O={},I={},j=[];function k(e){var n,t,i,o,a=e.adUnits,c=e.adUnitCodes,s=e.callback,f=e.cbTimeout,l=e.labels,p=e.auctionId,g=a,y=l,b=c,h=[],A=[],S=[],k=p||(0,r.DO)(),_=s,x=f,q=[],H=new Set;function F(){return{auctionId:k,timestamp:n,auctionEnd:t,auctionStatus:i,adUnits:g,adUnitCodes:b,labels:y,bidderRequests:h,noBids:S,bidsReceived:A,winningBids:q,timeout:x}}function M(e,n){if(n&&clearTimeout(o),void 0===t){var c=[];e&&((0,r.ji)("Auction ".concat(k," timedOut")),d=H,(c=h.map((function(e){return(e.bids||[]).filter((function(e){return!d.has(e.bidder)}))})).reduce(r.xH,[])).length&&m.j8(C.FP.BID_TIMEOUT,c)),i=T,t=Date.now(),m.j8(C.FP.AUCTION_END,F()),P(g,(function(){try{if(null!=_){var n=b,t=A.filter(r.ak.call(r.IK,this,n)).reduce(z,{});_.apply(pbjs,[t,e,k]),_=null}}catch(e){(0,r.H)("Error executing bidsBackHandler",null,e)}finally{c.length&&w.ZP.callTimedOutBidders(a,c,x);var i=u.vc.getConfig("userSync")||{};i.enableOverride||E(i.syncDelay)}}))}var d}function W(){u.vc.resetBidder(),(0,r.PN)("Bids Received for Auction with id: ".concat(k),A),i=T,M(!1,!0)}function Z(e){H.add(e)}function K(e){var n=this;e.forEach((function(e){var n;n=e,h=h.concat(n)}));var t={},a={bidRequests:e,run:function(){var a,f;a=M.bind(null,!0),f=setTimeout(a,x),o=f,i="inProgress",m.j8(C.FP.AUCTION_INIT,F());var l=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,i=void 0===t?d.K.index:t,o=0,a=!1,c=new Set,s={},f={};function l(e,n){null==f[e]&&(f[e]=Promise.resolve()),f[e]=f[e].then((function(){return Promise.resolve(n).catch((function(){}))}))}function p(e,t){var r=e.timeout;(null==r||r>n.getTimeout())&&(r=n.getTimeout());var i=n.getAuctionStart()+r-Date.now(),o=f[e.bidderRequestId],a=f[""];(null!=o||null!=a)&&i>0?Promise.race([new Promise((function(e){return setTimeout(e,i)})),Promise.resolve(a).then((function(){return o}))]).then(t):t()}function g(){o--,a&&0===o&&e()}function y(e,t){s[t.requestId]=!0,o++;var r=D({adUnitCode:e,bid:t,auctionId:n.getAuctionId()});"video"===r.mediaType?N(n,r,g):(R(n,r),g())}function b(){var t=n.getBidRequests(),i=u.vc.getConfig("auctionOptions");if(c.add(this),i&&!(0,r.xb)(i)){var d=i.secondaryBidders;d&&!t.every((function(e){return(0,v.q9)(d,e.bidderCode)}))&&(t=t.filter((function(e){return!(0,v.q9)(d,e.bidderCode)})))}a=t.every((function(e){return c.has(e)})),this.bids.forEach((function(e){s[e.bidId]||(n.addNoBid(e),m.j8(C.FP.NO_BID,e))})),a&&0===o&&e()}return{addBidResponse:function(e,n){var t=i.getBidderRequest(n);l(t&&t.bidderRequestId||"",B.call({dispatch:y},e,n))},adapterDone:function(){p(this,b.bind(this))}}}(W,n);w.ZP.callBids(g,e,l.addBidResponse,l.adapterDone,{request:function(e,n){s(O,n),s(t,e),I[e]||(I[e]={SRA:!0,origin:n}),t[e]>1&&(I[e].SRA=!1)},done:function(e){O[e]--,j[0]&&c(j[0])&&j.shift()}},x,Z)}};function c(e){var n=!0,t=u.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===C.os.YZ?"s2s":e.bidderCode;return I[i]&&(!1===I[i].SRA&&(r=Math.min(e.bids.length,t)),O[I[i].origin]+r>t&&(n=!1)),!n})),n&&e.run(),n}function s(e,n){void 0===e[n]?e[n]=1:e[n]++}c(a)||((0,r.yN)("queueing auction due to limited endpoint capacity"),j.push(a))}return{addBidReceived:function(e){A=A.concat(e)},addNoBid:function(e){S=S.concat(e)},executeCallback:M,callBids:function(){i="started",n=Date.now();var e=w.ZP.makeBidRequests(g,n,k,x,y);(0,r.PN)("Bids Requested for Auction with id: ".concat(k),e),e.length<1?((0,r.yN)("No valid bid requests returned for auction"),W()):U.call({dispatch:K,context:this},e)},addWinningBid:function(e){q=q.concat(e),w.ZP.callBidWonBidder(e.bidder,e,a)},setBidTargeting:function(e){w.ZP.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return q},getAuctionStart:function(){return n},getTimeout:function(){return x},getAuctionId:function(){return k},getAuctionStatus:function(){return i},getAdUnits:function(){return g},getAdUnitCodes:function(){return b},getBidRequests:function(){return h},getBidsReceived:function(){return A},getNoBids:function(){return S}}}var B=(0,g.z3)("sync",(function(e,n){this.dispatch.call(null,e,n)}),"addBidResponse"),U=(0,g.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),P=(0,g.z3)("async",(function(e,n){n&&n()}),"bidsBackCallback");function _(e,n){n.timeToRespond>e.getTimeout()+u.vc.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function R(e,n){var t,r,i;t=n,i=!0===h.S.get(t.bidderCode,"allowZeroCpmBids")?t.cpm>=0:t.cpm>0,t.bidderCode&&(i||t.dealId)&&(r=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?d.K.index:t;if(!n)return{};var i=r.getBidRequest(n),o={},c=F(n.mediaType,e);return M(o,c,n,i),e&&h.S.getOwn(e,C.k2.xn)&&(M(o,h.S.ownSettingsFor(e),n,i),n.sendStandardTargeting=h.S.get(e,"sendStandardTargeting")),n.native&&(o=S({},o,(0,a.Ur)(n))),o}(t.bidderCode,t)),t.adserverTargeting=S(t.adserverTargeting||{},r),m.j8(C.FP.BID_RESPONSE,n),e.addBidReceived(n),_(e,n)}function N(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=o.index,c=void 0===a?d.K.index:a,s=!0,f=(0,i.Z)(c.getMediaTypes({requestId:n.originalRequestId||n.requestId,transactionId:n.transactionId}),"video"),l=f&&(0,i.Z)(f,"context");u.vc.getConfig("cache.url")&&l!==y.gZ&&(!n.videoCacheKey||u.vc.getConfig("cache.ignoreBidderCacheKey")?(s=!1,x(e,n,t,f)):n.vastUrl||((0,r.H)("videoCacheKey specified but not required vastUrl for video bid"),s=!1)),s&&(R(e,n),t())}var x=(0,g.z3)("async",(function(e,n,t,i){var o,a;o=function(i,o){var a;i?((0,r.yN)("Failed to save to the video cache: ".concat(i,". Video bid must be discarded.")),_(e,n)):""===o[0].uuid?((0,r.yN)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),_(e,n)):(n.videoCacheKey=o[0].uuid,n.vastUrl||(n.vastUrl=(a=n.videoCacheKey,"".concat(u.vc.getConfig("cache.url"),"?uuid=").concat(a))),R(e,n),t())},a={puts:[n].map(f)},(0,c.h)(u.vc.getConfig("cache.url"),function(e){return{success:function(n){var t;try{t=JSON.parse(n).responses}catch(n){return void e(n,[])}t?e(null,t):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(n,t){e(new Error("Error storing video ad in the cache: ".concat(n,": ").concat(JSON.stringify(t))),[])}}}(o),JSON.stringify(a),{contentType:"text/plain",withCredentials:!0})}),"callPrebidCache");function D(e){var n=e.adUnitCode,t=e.bid,i=e.auctionId,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=a.index,s=void 0===c?d.K.index:c,f=s.getBidderRequest(t),p=f&&f.start||t.requestTimestamp,g=S({},t,{auctionId:i,responseTimestamp:(0,r.AB)(),requestTimestamp:p,cpm:parseFloat(t.cpm)||0,bidder:t.bidderCode,adUnitCode:n});g.timeToRespond=g.responseTimestamp-g.requestTimestamp,m.j8(C.FP.BID_ADJUSTMENT,g);var v=s.getAdUnit(g).renderer,y=g.mediaType,b=s.getMediaTypes(g),h=b&&b[y],w=h&&h.renderer,E=null;w&&w.url&&w.render&&(!0!==w.backupOnly||!t.renderer)?E=w:v&&v.url&&v.render&&(!0!==v.backupOnly||!t.renderer)&&(E=v),E&&(g.renderer=l.Th.install({url:E.url,config:E.options}),g.renderer.setRender(E.render));var T=q(t.mediaType,b,u.vc.getConfig("mediaTypePriceGranularity")),O=(0,o.D)(g.cpm,"object"===A(T)?T:u.vc.getConfig("customPriceBucket"),u.vc.getConfig("currency.granularityMultiplier"));return g.pbLg=O.low,g.pbMg=O.med,g.pbHg=O.high,g.pbAg=O.auto,g.pbDg=O.dense,g.pbCg=O.custom,g}function q(e,n,t){if(e&&t){if(e===b.pX){var r=(0,i.Z)(n,"".concat(b.pX,".context"),"instream");if(t["".concat(b.pX,"-").concat(r)])return t["".concat(b.pX,"-").concat(r)]}return t[e]}}function H(e,n){return{key:e,val:"function"==typeof n?function(e,t){return n(e,t)}:function(e){return(0,r.NA)(e,n)}}}function F(e,n){var t=C.TD,o=S({},h.S.settingsFor(null));if(o[C.k2.xn]||(o[C.k2.xn]=function(){var e,n=C.TD;return[H(n.BIDDER,"bidderCode"),H(n.AD_ID,"adId"),H(n.PRICE_BUCKET,(function(n){var t=e||function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,t=void 0===n?d.K.index:n,r=q(e.mediaType,t.getMediaTypes(e),u.vc.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&r?"string"==typeof r?r:"custom":u.vc.getConfig("priceGranularity")}(n);return t===C.Ql.B7?n.pbAg:t===C.Ql.uN?n.pbDg:t===C.Ql.yE?n.pbLg:t===C.Ql.M2?n.pbMg:t===C.Ql.lj?n.pbHg:t===C.Ql.qN?n.pbCg:void 0})),H(n.SIZE,"size"),H(n.DEAL,"dealId"),H(n.SOURCE,"source"),H(n.FORMAT,"mediaType"),H(n.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?e.meta.advertiserDomains[0]:""}))]}()),"video"===e){var a=o[C.k2.xn].slice();if(o[C.k2.xn]=a,[t.UUID,t.CACHE_ID].forEach((function(e){void 0===(0,v.sE)(a,(function(n){return n.key===e}))&&a.push(H(e,"videoCacheKey"))})),u.vc.getConfig("cache.url")&&(!n||!1!==h.S.get(n,"sendStandardTargeting"))){var c=(0,r.en)(u.vc.getConfig("cache.url"));void 0===(0,v.sE)(a,(function(e){return e.key===t.CACHE_HOST}))&&a.push(H(t.CACHE_HOST,(function(e){return(0,i.Z)(e,"adserverTargeting.".concat(t.CACHE_HOST))?e.adserverTargeting[t.CACHE_HOST]:c.hostname})))}}return o}function M(e,n,t,i){var o=n[C.k2.xn];return t.size=t.getSize(),(0,r.yi)(o,(function(o){var a=o.key,c=o.val;if(e[a]&&(0,r.yN)("The key: "+a+" is being overwritten"),(0,r.LQ)(c))try{c=c(t,i)}catch(e){(0,r.H)("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&a!==C.TD.DEAL||!(0,r.jH)(c)&&null!=c?e[a]=c:(0,r.PN)("suppressing empty key '"+a+"' from adserver targeting")})),e}function z(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}},4766:function(e,n,t){"use strict";t.d(n,{K:function(){return d}});var r=t(9853),i=t(9964),o=t(1879);function a(){return a=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},a.apply(this,arguments)}function c(e){a(this,{getAuction:function(n){var t=n.auctionId;if(null!=t)return e().find((function(e){return e.getAuctionId()===t}))},getAdUnit:function(n){var t=n.transactionId;if(null!=t)return e().flatMap((function(e){return e.getAdUnits()})).find((function(e){return e.transactionId===t}))},getMediaTypes:function(e){var n=e.transactionId,t=e.requestId;if(null!=t){var r=this.getBidRequest({requestId:t});if(null!=r&&(null==n||r.transactionId===n))return r.mediaTypes}else if(null!=n){var i=this.getAdUnit({transactionId:n});if(null!=i)return i.mediaTypes}},getBidderRequest:function(n){var t=n.requestId,r=n.bidderRequestId;if(null!=t||null!=r){var i=e().flatMap((function(e){return e.getBidRequests()}));return null!=r&&(i=i.filter((function(e){return e.bidderRequestId===r}))),null==t?i[0]:i.find((function(e){return e.bids&&null!=e.bids.find((function(e){return e.bidId===t}))}))}},getBidRequest:function(n){var t=n.requestId;if(null!=t)return e().flatMap((function(e){return e.getBidRequests()})).flatMap((function(e){return e.bids})).find((function(e){return e&&e.bidId===t}))}})}var u=t(5644),d=function(){var e=[],n={addWinningBid:function(n){var t=(0,o.sE)(e,(function(e){return e.getAuctionId()===n.auctionId}));t?(n.status=u.UE.fe,t.addWinningBid(n)):(0,r.yN)("Auction not found when adding winning bid")},getAllWinningBids:function(){return e.map((function(e){return e.getWinningBids()})).reduce(r.xH,[])},getBidsRequested:function(){return e.map((function(e){return e.getBidRequests()})).reduce(r.xH,[])},getNoBids:function(){return e.map((function(e){return e.getNoBids()})).reduce(r.xH,[])},getBidsReceived:function(){return e.map((function(e){if(e.getAuctionStatus()===i.mv)return e.getBidsReceived()})).reduce(r.xH,[]).filter((function(e){return e}))},getAllBidsForAdUnitCode:function(n){return e.map((function(e){return e.getBidsReceived()})).reduce(r.xH,[]).filter((function(e){return e&&e.adUnitCode===n}))},getAdUnits:function(){return e.map((function(e){return e.getAdUnits()})).reduce(r.xH,[])},getAdUnitCodes:function(){return e.map((function(e){return e.getAdUnitCodes()})).reduce(r.xH,[]).filter(r.tT)},createAuction:function(n){var t=n.adUnits,r=n.adUnitCodes,o=n.callback,a=n.cbTimeout,c=n.labels,u=n.auctionId,d=(0,i.vO)({adUnits:t,adUnitCodes:r,callback:o,cbTimeout:a,labels:c,auctionId:u});return function(n){e.push(n)}(d),d},findBidByAdId:function(n){return(0,o.sE)(e.map((function(e){return e.getBidsReceived()})).reduce(r.xH,[]),(function(e){return e.adId===n}))},getStandardBidderAdServerTargeting:function(){return(0,i.LX)()[u.k2.xn]},setStatusForBids:function(t,r){var i=n.findBidByAdId(t);if(i&&(i.status=r),i&&r===u.UE.CK){var a=(0,o.sE)(e,(function(e){return e.getAuctionId()===i.auctionId}));a&&a.setBidTargeting(i)}},getLastAuctionId:function(){return e.length&&e[e.length-1].getAuctionId()},clearAllAuctions:function(){e.length=0}};return n.index=new c((function(){return e})),n}()},9624:function(e,n,t){"use strict";t.d(n,{S:function(){return f}});var r=t(265),i=t(9853),o=t(2528),a=t(5644);function c(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,n,t){if(!n.has(e))throw new TypeError("attempted to get private field on non-instance");return t}var d=new WeakSet;function s(e){return null==e?this.defaultScope:e}var f=new(function(){function e(n,t){var r,i;!function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,e),function(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(r=this,i=d),i.add(r),this.getSettings=n,this.defaultScope=t}var n,t;return n=e,(t=[{key:"get",value:function(e,n){var t=this.getOwn(e,n);return void 0===t&&(t=this.getOwn(null,n)),t}},{key:"getOwn",value:function(e,n){return e=u(this,d,s).call(this,e),(0,r.Z)(this.getSettings(),"".concat(e,".").concat(n))}},{key:"getScopes",value:function(){var e=this;return Object.keys(this.getSettings()).filter((function(n){return n!==e.defaultScope}))}},{key:"settingsFor",value:function(e){return(0,i.Ee)({},this.ownSettingsFor(null),this.ownSettingsFor(e))}},{key:"ownSettingsFor",value:function(e){return e=u(this,d,s).call(this,e),this.getSettings()[e]||{}}}])&&c(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),e}())((function(){return(0,o.R)().bidderSettings||{}}),a.k2.zF)},1477:function(e,n,t){"use strict";t.d(n,{m:function(){return o}});var r=t(9853);function i(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.src,i=void 0===t?"client":t,o=n.bidder,a=void 0===o?"":o,c=n.bidId,u=n.transactionId,d=n.auctionId,s=i,f=e||0;function l(){switch(f){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}this.bidderCode=a,this.width=0,this.height=0,this.statusMessage=l(),this.adId=(0,r._d)(),this.requestId=c,this.transactionId=u,this.auctionId=d,this.mediaType="banner",this.source=s,this.getStatusCode=function(){return f},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,auctionId:this.auctionId}}}function o(e,n){return new i(e,n)}},8962:function(e,n,t){"use strict";t.d(n,{FD:function(){return v},vc:function(){return m}});var r=t(5553),i=t(1879),o=t(9853),a=t(265),c=t(5644),u=["fpd"];function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e){return f="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},f(e)}function l(){return l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(this,arguments)}var p="TRUE"===(0,o.rD)(c.f).toUpperCase(),g=window.location.origin,v="random",y={};y[v]=!0,y.fixed=!0;var b=v,h={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},m=function(){var e,n,t,c=[],v=null;function m(){e={};var a={_debug:p,get debug(){return this._debug},set debug(e){this._debug=e},_bidderTimeout:3e3,get bidderTimeout(){return this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:g,get publisherDomain(){return this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_priceGranularity:h.MEDIUM,set priceGranularity(e){u(e)&&("string"==typeof e?this._priceGranularity=c(e)?e:h.MEDIUM:(0,o.PO)(e)&&(this._customPriceBucket=e,this._priceGranularity=h.CUSTOM,(0,o.ji)("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_mediaTypePriceGranularity:{},get mediaTypePriceGranularity(){return this._mediaTypePriceGranularity},set mediaTypePriceGranularity(e){var n=this;this._mediaTypePriceGranularity=Object.keys(e).reduce((function(t,r){return u(e[r])?"string"==typeof e?t[r]=c(e[r])?e[r]:n._priceGranularity:(0,o.PO)(e)&&(t[r]=e[r],(0,o.ji)("Using custom price granularity for ".concat(r))):(0,o.yN)("Invalid price granularity for media type: ".concat(r)),t}),{})},_sendAllBids:!0,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},_useBidCache:!1,get useBidCache(){return this._useBidCache},set useBidCache(e){this._useBidCache=e},_deviceAccess:!0,get deviceAccess(){return this._deviceAccess},set deviceAccess(e){this._deviceAccess=e},_bidderSequence:b,get bidderSequence(){return this._bidderSequence},set bidderSequence(e){y[e]?this._bidderSequence=e:(0,o.yN)("Invalid order: ".concat(e,". Bidder Sequence was not set."))},_timeoutBuffer:400,get timeoutBuffer(){return this._timeoutBuffer},set timeoutBuffer(e){this._timeoutBuffer=e},_disableAjaxTimeout:!1,get disableAjaxTimeout(){return this._disableAjaxTimeout},set disableAjaxTimeout(e){this._disableAjaxTimeout=e},_maxNestedIframes:10,get maxNestedIframes(){return this._maxNestedIframes},set maxNestedIframes(e){this._maxNestedIframes=e},_auctionOptions:{},get auctionOptions(){return this._auctionOptions},set auctionOptions(e){(function(e){if(!(0,o.PO)(e))return(0,o.yN)("Auction Options must be an object"),!1;for(var n=0,t=Object.keys(e);n<t.length;n++){var r=t[n];if("secondaryBidders"!==r&&"suppressStaleRender"!==r)return(0,o.yN)("Auction Options given an incorrect param: ".concat(r)),!1;if("secondaryBidders"===r){if(!(0,o.kJ)(e[r]))return(0,o.yN)("Auction Options ".concat(r," must be of type Array")),!1;if(!e[r].every(o.d8))return(0,o.yN)("Auction Options ".concat(r," must be only string")),!1}else if("suppressStaleRender"===r&&!(0,o.jn)(e[r]))return(0,o.yN)("Auction Options ".concat(r," must be of type boolean")),!1}return!0})(e)&&(this._auctionOptions=e)}};function c(e){return(0,i.sE)(Object.keys(h),(function(n){return e===h[n]}))}function u(e){if(!e)return(0,o.H)("Prebid Error: no value passed to `setPriceGranularity()`"),!1;if("string"==typeof e)c(e)||(0,o.yN)("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if((0,o.PO)(e)&&!(0,r.t)(e))return(0,o.H)("Invalid custom price value passed to `setPriceGranularity()`"),!1;return!0}n&&T(Object.keys(n).reduce((function(e,t){return n[t]!==a[t]&&(e[t]=a[t]||{}),e}),{})),n=a,t={}}function w(){if(v&&t&&(0,o.PO)(t[v])){var e=t[v],r=new Set(Object.keys(n).concat(Object.keys(e)));return(0,i.Oc)(r).reduce((function(t,r){return void 0===e[r]?t[r]=n[r]:void 0===n[r]?t[r]=e[r]:(0,o.PO)(e[r])?t[r]=(0,o.Ee)({},n[r],e[r]):t[r]=e[r],t}),{})}return l({},n)}function C(e){var n={};return Object.keys(e).forEach((function(t){var r="context"===t?"site":t;n[r]="site"===r||"user"===r?Object.keys(e[t]).reduce((function(n,r){return"data"===r?(0,o.Ee)(n,{ext:{data:e[t][r]}}):(0,o.Ee)(n,s({},r,e[t][r])),n}),{}):e[t]})),n}function A(e){var n={};return Object.keys(e).filter((function(e){return"context"===e})).forEach((function(t){Object.keys(e[t]).forEach((function(r){"data"===r?(0,o.Ee)(n,{ext:{data:e[t][r]}}):"object"!==f(e[t][r])||Array.isArray(e[t][r])?(0,o.Ee)(n,{ext:{data:s({},r.toLowerCase(),e[t][r])}}):Object.keys(e[t][r]).forEach((function(i){(0,o.Ee)(n,{ext:{data:s({},r.toLowerCase(),s({},i.toLowerCase(),e[t][r][i]))}})}))}))})),n}function S(t){if((0,o.PO)(t)){var r=Object.keys(t),i={};r.forEach((function(r){var a="fpd"===r?"ortb2":r,c="fpd"===r?C(t[r]):t[r];(0,o.PO)(e[a])&&(0,o.PO)(c)&&(c=l({},e[a],c)),i[a]=n[a]=c})),T(i)}else(0,o.H)("setConfig options must be an object")}function E(e,n){var t=n;if("string"!=typeof e&&(t=e,e="*"),"function"==typeof t){var r={topic:e,callback:t};return c.push(r),function(){c.splice(c.indexOf(r),1)}}(0,o.H)("listener must be a function")}function T(e){var n=Object.keys(e);c.filter((function(e){return(0,i.q9)(n,e.topic)})).forEach((function(n){n.callback(s({},n.topic,e[n.topic]))})),c.filter((function(e){return"*"===e.topic})).forEach((function(n){return n.callback(e)}))}function O(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{r(e),e.bidders.forEach((function(r){t[r]||(t[r]={}),Object.keys(e.config).forEach((function(i){var a="fpd"===i?"ortb2":i,c="fpd"===i?C(e.config[i]):e.config[i];if((0,o.PO)(c)){var u=n?o.Ee:Object.assign;t[r][a]=u({},t[r][a]||{},c)}else t[r][a]=c}))}))}catch(e){(0,o.H)(e)}function r(e){if(!(0,o.PO)(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,o.PO)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function I(e,n){v=e;try{return n()}finally{j()}}function j(){v=null}return m(),{getCurrentBidder:function(){return v},resetBidder:j,getConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?(0,a.Z)(w(),e):w()}return E.apply(void 0,arguments)},readConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0],n=(0,o.I8)(w());return e?(0,a.Z)(n,e):n}return E.apply(void 0,arguments)},setConfig:S,mergeConfig:function(e){if((0,o.PO)(e)){var n=Object.keys(e).reduce((function(n,t){var r=w()[t]||{};return n[t]=(0,o.Ee)(r,e[t]),n}),{});return S(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){s(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}({},n)),n}(0,o.H)("mergeConfig input must be an object")},setDefaults:function(t){(0,o.PO)(e)?(l(e,t),l(n,t)):(0,o.H)("defaults must be an object")},resetConfig:m,runWithBidder:I,callbackWithBidder:function(e){return function(n){return function(){if("function"==typeof n){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return I(e,o.ak.call.apply(o.ak,[n,this].concat(r)))}(0,o.yN)("config.callbackWithBidder callback is not a function")}}},setBidderConfig:O,getBidderConfig:function(){return t},mergeBidderConfig:function(e){return O(e,!0)},convertAdUnitFpd:function(e){var n=[];return e.forEach((function(e){var t;e.fpd?(e.ortb2Imp?(0,o.Ee)(e.ortb2Imp,A(e.fpd)):e.ortb2Imp=A(e.fpd),n.push(((t=e).fpd,function(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(t,u)))):n.push(e)})),n},getLegacyFpd:function(e){if("object"===f(e)){var n={};return Object.keys(e).forEach((function(t){var r="site"===t?"context":t;n[r]="context"===r||"user"===r?Object.keys(e[t]).filter((function(e){return"data"!==e})).reduce((function(n,r){return"ext"===r?(0,o.Ee)(n,e[t][r]):(0,o.Ee)(n,s({},r,e[t][r])),n}),{}):e[t]})),n}},getLegacyImpFpd:function(e){if("object"===f(e)){var n={};return(0,a.Z)(e,"ext.data")&&Object.keys(e.ext.data).forEach((function(t){"pbadslot"===t?(0,o.Ee)(n,{context:{pbAdSlot:e.ext.data[t]}}):"adserver"===t?(0,o.Ee)(n,{context:{adServer:e.ext.data[t]}}):(0,o.Ee)(n,{context:{data:s({},t,e.ext.data[t])}})})),n}}}}()},5553:function(e,n,t){"use strict";t.d(n,{D:function(){return s},t:function(){return l}});var r=t(1879),i=t(9853),o={buckets:[{max:5,increment:.5}]},a={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},u={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},d={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function s(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":f(e,o,t),med:""===r?"":f(e,a,t),high:""===r?"":f(e,c,t),auto:""===r?"":f(e,d,t),dense:""===r?"":f(e,u,t),custom:""===r?"":f(e,n,t)}}function f(e,n,t){var i="";if(!l(n))return i;var o=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),a=0,c=(0,r.sE)(n.buckets,(function(n){if(e>o.max*t){var r=n.precision;void 0===r&&(r=2),i=(n.max*t).toFixed(r)}else{if(e<=n.max*t&&e>=a*t)return n.min=a,n;a=n.max}}));return c&&(i=function(e,n,t){var r=void 0!==n.precision?n.precision:2,i=n.increment*t,o=n.min*t,a=Math.pow(10,r+2),c=(e*a-o*a)/(i*a),u=Math.floor(c)*i+o;return(u=Number(u.toFixed(10))).toFixed(r)}(e,c,t)),i}function l(e){if((0,i.xb)(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){e.max&&e.increment||(n=!1)})),n}},2319:function(e,n,t){"use strict";t.d(n,{S1:function(){return p},j8:function(){return v},on:function(){return l},vw:function(){return g}});var r=t(9853),i=t(5644);function o(){return o=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},o.apply(this,arguments)}var a=Array.prototype.slice,c=Array.prototype.push,u=r.HA(i.FP,(function(e){return e})),d=i.aI,s=[],f=function(){var e={},n={};function t(n,t){r.ji("Emitting event for: "+n);var i=t[0]||{},o=i[d[n]],a=e[n]||{que:[]},u=r.HA(a,(function(e,n){return n})),f=[];s.push({eventType:n,args:i,id:o,elapsedTime:r.bd()}),o&&r.r3(u,o)&&c.apply(f,a[o].que),c.apply(f,a.que),r.yi(f,(function(e){if(e)try{e.apply(null,t)}catch(e){r.H("Error executing handler:","events.js",e)}}))}return n.on=function(n,t,i){if(function(e){return r.r3(u,e)}(n)){var o=e[n]||{que:[]};i?(o[i]=o[i]||{que:[]},o[i].que.push(t)):o.que.push(t),e[n]=o}else r.H("Wrong event name : "+n+" Valid event names :"+u)},n.emit=function(e){var n=a.call(arguments,1);t(e,n)},n.off=function(n,t,i){var o=e[n];r.xb(o)||r.xb(o.que)&&r.xb(o[i])||i&&(r.xb(o[i])||r.xb(o[i].que))||(i?r.yi(o[i].que,(function(e){var n=o[i].que;e===t&&n.splice(n.indexOf(e),1)})):r.yi(o.que,(function(e){var n=o.que;e===t&&n.splice(n.indexOf(e),1)})),e[n]=o)},n.get=function(){return e},n.getEvents=function(){var e=[];return r.yi(s,(function(n){var t=o({},n);e.push(t)})),e},n}();r.u2(f.emit.bind(f));var l=f.on,p=f.off,g=(f.get,f.getEvents),v=f.emit},3494:function(e,n,t){"use strict";t.d(n,{Bx:function(){return g},Cd:function(){return s},bA:function(){return p},v5:function(){return f},z3:function(){return u}});var r=t(1432),i=t.n(r),o=t(9367);function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return c(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,n):void 0}}(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.")}()}function c(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var u=i()({ready:i().SYNC|i().ASYNC|i().QUEUE}),d=(0,o.v)();u.ready=function(){var e=u.ready;return function(){try{return e.apply(u,arguments)}finally{d.resolve()}}}();var s=d.promise,f=u.get,l={};function p(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.postInstallAllowed,i=void 0!==r&&r;u("async",(function(t){t.forEach((function(e){return n.apply(void 0,a(e))})),i&&(l[e]=n)}),e)([])}function g(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];var i=l[e];if(i)return i.apply(void 0,t);f(e).before((function(e,n){n.push(t),e(n)}))}},8265:function(e,n,t){"use strict";t.d(n,{B5:function(){return r},Mk:function(){return o},Oh:function(){return a},pX:function(){return i}});var r="native",i="video",o="banner",a="adpod"},9017:function(e,n,t){"use strict";t.d(n,{Fb:function(){return v},JL:function(){return w},Sg:function(){return l},Ur:function(){return h},e6:function(){return b},eK:function(){return m},r4:function(){return y},xc:function(){return p}});var r=t(265),i=t(9853),o=t(1879),a=t(4766),c=t(5644);function u(e){return u="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},u(e)}function d(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?d(Object(t),!0).forEach((function(n){f(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var l=[],p=Object.keys(c.FY).map((function(e){return c.FY[e]})),g={image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}};function v(e){e.forEach((function(e){var n,t,a=e.nativeParams||(0,r.Z)(e,"mediaTypes.native");a&&(e.nativeParams=(n=a)&&n.type&&((t=n.type)&&(0,o.q9)(Object.keys(g),t)||((0,i.H)("".concat(t," nativeParam is not supported")),0))?g[n.type]:n)}))}function y(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?a.K.index:t;if(!(0,r.Z)(e,"native.clickUrl"))return!1;var c=i.getAdUnit(e).nativeParams;if(!c)return!0;var u=Object.keys(c).filter((function(e){return c[e].required})),d=Object.keys(e.native).filter((function(n){return e.native[n]}));return u.every((function(e){return(0,o.q9)(d,e)}))}function b(e,n){var t;return"click"===e.action?t=n.native&&n.native.clickTrackers:(t=n.native&&n.native.impressionTrackers,n.native&&n.native.javascriptTrackers&&(0,i.$8)(n.native.javascriptTrackers)),(t||[]).forEach(i.hq),e.action}function h(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?a.K.index:t,o={},c=i.getAdUnit(e);(0,r.Z)(c,"nativeParams.rendererUrl")?e.native.rendererUrl=C(c.nativeParams.rendererUrl):(0,r.Z)(c,"nativeParams.adTemplate")&&(e.native.adTemplate=C(c.nativeParams.adTemplate));var u=!1!==(0,r.Z)(c,"nativeParams.sendTargetingKeys"),d=A(c),f=s(s({},e.native),e.native.ext);return delete f.ext,Object.keys(f).forEach((function(n){var t=d[n],i=C(e.native[n])||C((0,r.Z)(e,"native.ext.".concat(n)));if("adTemplate"!==n&&t&&i){var a=(0,r.Z)(c,"nativeParams.".concat(n,".sendId"));"boolean"!=typeof a&&(a=(0,r.Z)(c,"nativeParams.ext.".concat(n,".sendId"))),a&&(i="".concat(t,":").concat(e.adId));var s=(0,r.Z)(c,"nativeParams.".concat(n,".sendTargetingKeys"));"boolean"!=typeof s&&(s=(0,r.Z)(c,"nativeParams.ext.".concat(n,".sendTargetingKeys"))),("boolean"==typeof s?s:u)&&(o[t]=i)}})),o}function m(e,n){var t={message:"assetResponse",adId:e.adId,assets:[]};return n.native.hasOwnProperty("adTemplate")&&(t.adTemplate=C(n.native.adTemplate)),n.native.hasOwnProperty("rendererUrl")&&(t.rendererUrl=C(n.native.rendererUrl)),e.assets.forEach((function(e){var r=(0,i.V9)(c.FY,e),o=C(n.native[r]);t.assets.push({key:r,value:o})})),t}function w(e,n){var t={message:"assetResponse",adId:e.adId,assets:[]};return Object.keys(n.native).forEach((function(e,r){if("adTemplate"===e&&n.native[e])t.adTemplate=C(n.native[e]);else if("rendererUrl"===e&&n.native[e])t.rendererUrl=C(n.native[e]);else if("ext"===e)Object.keys(n.native[e]).forEach((function(r){if(n.native[e][r]){var i=C(n.native[e][r]);t.assets.push({key:r,value:i})}}));else if(n.native[e]&&c.FY.hasOwnProperty(e)){var i=C(n.native[e]);t.assets.push({key:e,value:i})}})),t}function C(e){return"object"===u(e)&&e.url?e.url:e}function A(e){var n={};return(0,r.Z)(e,"nativeParams.ext")&&Object.keys(e.nativeParams.ext).forEach((function(e){n[e]="hb_native_".concat(e)})),s(s({},c.FY),n)}},1879:function(e,n,t){"use strict";function r(e,n,t){return e&&e.includes(n,t)||!1}function i(){return Array.from.apply(Array,arguments)}function o(e,n,t){return e&&e.find(n,t)}t.d(n,{Oc:function(){return i},q9:function(){return r},sE:function(){return o}})},2528:function(e,n,t){"use strict";function r(){return window.pbjs}t.d(n,{R:function(){return r}}),window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[],window._pbjsGlobals=window._pbjsGlobals||[],window._pbjsGlobals.push("pbjs")},2661:function(e,n,t){"use strict";t.d(n,{n:function(){return o}});var r=t(8962),i=t(9853),o=function(e){function n(e){var n=r.vc.getConfig("pageUrl");if(n)return n;try{var t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}return function(){var t,o,a,c=[],u=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(e),d=r.vc.getConfig("maxNestedIframes"),s=!1,f=0,l=!1,p=!1;do{var g=t,v=p,y=void 0,b=!1,h=null;p=!1,t=t?t.parent:e;try{y=t.location.href||null}catch(e){b=!0}if(b)if(v){var m=g.context;try{o=h=m.sourceUrl,l=!0,t===e.top&&(s=!0),m.canonicalUrl&&(a=m.canonicalUrl)}catch(e){}}else{(0,i.yN)("Trying to access cross domain iframe. Continuing without referrer and location");try{var w=g.document.referrer;w&&(h=w,t===e.top&&(s=!0))}catch(e){}!h&&u&&u[f-1]&&(h=u[f-1]),h&&!l&&(o=h)}else{if(y&&(o=h=y,l=!1,t===e.top)){s=!0;var C=n(t.document);C&&(a=C)}t.context&&t.context.sourceUrl&&(p=!0)}c.push(h),f++}while(t!==e.top&&f<d);return c.reverse(),{referer:o||null,reachedTop:s,isAmp:l,numIframes:f-1,stack:c,canonicalUrl:a||null}}}(window)},1269:function(e,n,t){"use strict";t.d(n,{UB:function(){return p},lO:function(){return s}});var r=t(8962),i=t(9853),o=t(265),a=t(1879);function c(e){return c="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},c(e)}var u=[];function d(e,n){return e.labelAll?{labelAll:!0,labels:e.labelAll,activeLabels:n}:{labelAll:!1,labels:e.labelAny,activeLabels:n}}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,t=l(n);return!t.shouldFilter||!!t.sizesSupported[e]}function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.labels,t=void 0===n?[]:n,r=e.labelAll,c=void 0!==r&&r,d=e.activeLabels,s=void 0===d?[]:d,f=arguments.length>1?arguments[1]:void 0,p=arguments.length>2?arguments[2]:void 0,g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u,v=l(g);f=(0,i.PO)(f)?(0,i.I8)(f):p?{banner:{sizes:p}}:{};var y=(0,o.Z)(f,"banner.sizes");v.shouldFilter&&y&&(f.banner.sizes=y.filter((function(e){return v.sizesSupported[e]})));var b=Object.keys(f),h={active:b.every((function(e){return"banner"!==e}))||b.some((function(e){return"banner"===e}))&&(0,o.Z)(f,"banner.sizes.length")>0&&(0===t.length||!c&&(t.some((function(e){return v.labels[e]}))||t.some((function(e){return(0,a.q9)(s,e)})))||c&&t.reduce((function(e,n){return e?v.labels[n]||(0,a.q9)(s,n):e}),!0)),mediaTypes:f};return y&&y.length!==f.banner.sizes.length&&(h.filterResults={before:y,after:f.banner.sizes}),h}function l(e){return e.reduce((function(e,n){if("object"===c(n)&&"string"==typeof n.mediaQuery&&n.mediaQuery.length>0){var t=!1;try{t=(0,i.Zy)().matchMedia(n.mediaQuery).matches}catch(e){(0,i.yN)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),t=matchMedia(n.mediaQuery).matches}t&&(Array.isArray(n.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach((function(t){return(n[t]||[]).forEach((function(n){return e[t][n]=!0}))})))}else(0,i.yN)('sizeConfig rule missing required property "mediaQuery"');return e}),{labels:{},sizesSupported:{},shouldFilter:!1})}function p(e,n){return e.reduce((function(e,t){var r=f(d(t,n),t.mediaTypes,t.sizes),o=r.active,a=r.mediaTypes,c=r.filterResults;return o?(c&&(0,i.PN)('Size mapping filtered adUnit "'.concat(t.code,'" banner sizes from '),c.before,"to ",c.after),t.mediaTypes=a,t.bids=t.bids.reduce((function(e,r){var o=f(d(r,n),t.mediaTypes),a=o.active,c=o.mediaTypes,u=o.filterResults;return a?(u&&((0,i.PN)('Size mapping filtered adUnit "'.concat(t.code,'" bidder "').concat(r.bidder,'" banner sizes from '),u.before,"to ",u.after),r.mediaTypes=c),e.push(r)):(0,i.PN)('Size mapping deactivated adUnit "'.concat(t.code,'" bidder "').concat(r.bidder,'"')),e}),[]),e.push(t)):(0,i.PN)('Size mapping disabled adUnit "'.concat(t.code,'"')),e}),[])}r.vc.getConfig("sizeConfig",(function(e){return function(e){u=e}(e.sizeConfig)}))},5849:function(e,n,t){"use strict";t.d(n,{Ld:function(){return u},S6:function(){return s},df:function(){return l},eA:function(){return f}});var r=t(3494),i=t(9853),o=t(1879),a=t(9624),c=["core","prebid-module"],u=[];function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.gvlid,t=e.moduleName,r=e.bidderCode,d=e.moduleType,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=f.bidderSettings,p=void 0===l?a.S:l;function g(){if(null==r)return!1;var e=p.get(r,"storageAllowed");return null!=e&&!e}function v(e){return(0,o.q9)(c,d)?e({valid:!0}):g()?((0,i.PN)("bidderSettings denied access to device storage for bidder '".concat(r,"'")),e({valid:!1})):(s(n,r||t,{hasEnforcementHook:!1},(function(n){if(n&&n.hasEnforcementHook)a=e(n);else{var t={hasEnforcementHook:!1,valid:(0,i.wn)()};a=e(t)}})),a);var a}var y=function(e,n,t,r,i,o){var a=function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",c=t&&""!==t?" ;expires=".concat(t):"",u=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(n)).concat(c,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(u)}};if(!o||"function"!=typeof o)return v(a);u.push((function(){var e=v(a);o(e)}))},b=function(e,n){var t=function(n){if(n&&n.valid){var t=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null};if(!n||"function"!=typeof n)return v(t);u.push((function(){var e=v(t);n(e)}))},h=function(e){var n=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};if(!e||"function"!=typeof e)return v(n);u.push((function(){var t=v(n);e(t)}))},m=function(e){var n=function(e){return!(!e||!e.valid||!(0,i.IG)()&&(window.document.cookie="prebid.cookieTest",-1===window.document.cookie.indexOf("prebid.cookieTest")))};if(!e||"function"!=typeof e)return v(n);u.push((function(){var t=v(n);e(t)}))},w=function(e,n,t){var r=function(t){t&&t.valid&&S()&&window.localStorage.setItem(e,n)};if(!t||"function"!=typeof t)return v(r);u.push((function(){var e=v(r);t(e)}))},C=function(e,n){var t=function(n){return n&&n.valid&&S()?window.localStorage.getItem(e):null};if(!n||"function"!=typeof n)return v(t);u.push((function(){var e=v(t);n(e)}))},A=function(e,n){var t=function(n){n&&n.valid&&S()&&window.localStorage.removeItem(e)};if(!n||"function"!=typeof n)return v(t);u.push((function(){var e=v(t);n(e)}))},S=function(e){var n=function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){(0,i.H)("Local storage api disabled")}return!1};if(!e||"function"!=typeof e)return v(n);u.push((function(){var t=v(n);e(t)}))},E=function(e,n){var t=function(n){if(n&&n.valid){var t=[];if((0,i.wn)())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&&t.push(decodeURIComponent(o.slice(a+1)))}return t}};if(!n||"function"!=typeof n)return v(t);u.push((function(){var e=v(t);n(e)}))};return{setCookie:y,getCookie:b,localStorageIsEnabled:h,cookiesAreEnabled:m,setDataInLocalStorage:w,getDataFromLocalStorage:C,removeDataFromLocalStorage:A,hasLocalStorage:S,findSimilarCookies:E}}var s=(0,r.z3)("async",(function(e,n,t,r){r(t)}),"validateStorageEnforcement");function f(e){return d({moduleName:e,moduleType:"core"})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.gvlid,t=e.moduleName,r=e.bidderCode;if(arguments.length>1||arguments.length>0&&!(0,i.PO)(arguments[0]))throw new Error("Invalid invocation for getStorageManager");return d({gvlid:n,moduleName:t,bidderCode:r})}},7112:function(e,n,t){"use strict";t.d(n,{k_:function(){return l}});var r=t(9853),i=t(8962),o=t(1879),a=t(5849);function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw i}}return o}}(e,n)||function(e,n){if(e){if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?u(e,n):void 0}}(e,n)||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.")}()}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function d(){return d=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},d.apply(this,arguments)}i.vc.setDefaults({userSync:(0,r.I8)({syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:0})});var s=(0,a.eA)("usersync"),f=!(0,r.fr)()&&s.cookiesAreEnabled(),l=function(e){var n={},t={image:[],iframe:[]},a=new Set,u={},s={image:!0,iframe:!1},f=e.config;function l(){if(f.syncEnabled&&e.browserSupportsCookies){try{s.iframe&&p(t.iframe,(function(e){var n=c(e,2),i=n[0],o=n[1];(0,r.ji)("Invoking iframe user sync for bidder: ".concat(i)),(0,r.Vs)(o),function(e,n){"livewrapped"!==n&&(e.image=e.image.filter((function(e){return e[0]!==n})))}(t,i)})),s.image&&p(t.image,(function(e){var n=c(e,2),t=n[0],i=n[1];(0,r.ji)("Invoking image pixel user sync for bidder: ".concat(t)),(0,r.hq)(i)}))}catch(e){return(0,r.H)("Error firing user syncs",e)}t={image:[],iframe:[]}}}function p(e,n){(0,r.TV)(e).forEach((function(e){n(e),a.add(e[0])}))}return i.vc.getConfig("userSync",(function(e){if(e.userSync){var n=e.userSync.filterSettings;(0,r.PO)(n)&&(n.image||n.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}f=d(f,e.userSync)})),n.registerSync=function(e,i,o){return a.has(i)?(0,r.ji)('already fired syncs for "'.concat(i,'", ignoring registerSync call')):f.syncEnabled&&(0,r.kJ)(t[e])?i?0!==f.syncsPerBidder&&Number(u[i])>=f.syncsPerBidder?(0,r.yN)('Number of user syncs exceeded for "'.concat(i,'"')):n.canBidderRegisterSync(e,i)?(t[e].push([i,o]),void(u=function(e,n){return e[n]?e[n]+=1:e[n]=1,e}(u,i))):(0,r.yN)('Bidder "'.concat(i,'" not permitted to register their "').concat(e,'" userSync pixels.')):(0,r.yN)("Bidder is required for registering sync"):(0,r.yN)('User sync type "'.concat(e,'" not supported'))},n.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(l,Number(e));l()},n.triggerUserSyncs=function(){f.enableOverride&&n.syncUsers()},n.canBidderRegisterSync=function(e,n){return!f.filterSettings||!function(e,n){var t=f.filterSettings;if(function(e,n){if(e.all&&e[n])return(0,r.yN)('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(n,'" in userSync config.  You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var t=e.all?e.all:e[n],i=e.all?"all":n;if(!t)return!1;var o=t.filter,a=t.bidders;return o&&"include"!==o&&"exclude"!==o?((0,r.yN)('UserSync "filterSettings.'.concat(i,".filter\" setting '").concat(o,"' is not a valid option; use either 'include' or 'exclude'.")),!1):!!("*"===a||Array.isArray(a)&&a.length>0&&a.every((function(e){return(0,r.d8)(e)&&"*"!==e})))||((0,r.yN)('Detected an invalid setup in userSync "filterSettings.'.concat(i,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1)}(t,e)){s[e]=!0;var i=t.all?t.all:t[e],a="*"===i.bidders?[n]:i.bidders,c={include:function(e,n){return!(0,o.q9)(e,n)},exclude:function(e,n){return(0,o.q9)(e,n)}};return c[i.filter||"include"](a,n)}return!s[e]}(e,n)},n}({config:i.vc.getConfig("userSync"),browserSupportsCookies:f})},9853:function(e,n,t){"use strict";t.d(n,{$8:function(){return ge},$u:function(){return V},AB:function(){return xe},An:function(){return P},Bq:function(){return nn},DO:function(){return U},EE:function(){return T},Ee:function(){return gn},FS:function(){return We},G2:function(){return Xe},H:function(){return K},HA:function(){return ue},HC:function(){return rn},I8:function(){return Ue},IG:function(){return He},IK:function(){return Be},K$:function(){return Ie},LQ:function(){return X},NA:function(){return Ce},Ob:function(){return N},P$:function(){return Ke},PN:function(){return W},PO:function(){return te},Q2:function(){return ln},RI:function(){return de},R_:function(){return pe},Re:function(){return R},S0:function(){return Ze},SG:function(){return ye},T9:function(){return Ee},TV:function(){return ke},U:function(){return Ye},V9:function(){return Ae},Vs:function(){return ve},W$:function(){return yn},X4:function(){return Te},XV:function(){return cn},Yp:function(){return sn},ZH:function(){return Oe},Zy:function(){return H},_R:function(){return vn},_d:function(){return B},ak:function(){return j},bd:function(){return De},d5:function(){return un},d8:function(){return $},dj:function(){return bn},e7:function(){return F},eB:function(){return J},ei:function(){return en},en:function(){return fn},ew:function(){return Re},fr:function(){return _e},fz:function(){return $e},hj:function(){return ne},hl:function(){return on},hq:function(){return le},iG:function(){return ze},jC:function(){return se},jH:function(){return oe},ji:function(){return z},jn:function(){return re},kJ:function(){return ee},ky:function(){return Ve},oV:function(){return Le},or:function(){return Qe},pP:function(){return Se},pw:function(){return x},qp:function(){return L},r3:function(){return ce},rD:function(){return Q},s:function(){return q},sF:function(){return D},t0:function(){return _},tT:function(){return he},u2:function(){return C},uh:function(){return tn},vM:function(){return Me},wn:function(){return qe},xH:function(){return me},x_:function(){return Ne},xb:function(){return ie},yL:function(){return Pe},yN:function(){return Z},yi:function(){return ae},yo:function(){return an},yx:function(){return Fe},zE:function(){return we},zV:function(){return Je}});var r=t(8962),i=t(7079),o=t.n(i),a=t(1879),c=t(5644);function u(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(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.")}()}function d(e,n){if(e){if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?s(e,n):void 0}}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function l(){return l=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},l.apply(this,arguments)}function p(e){return p="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},p(e)}var g,v=Object.prototype.toString,y=Boolean(window.console),b=Boolean(y&&window.console.log),h=Boolean(y&&window.console.info),m=Boolean(y&&window.console.warn),w=Boolean(y&&window.console.error);function C(e){g=e}function A(){null!=g&&g.apply(void 0,arguments)}var S={checkCookieSupport:He,createTrackPixelIframeHtml:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return e?(n&&(e=encodeURI(e)),t&&(t='sandbox="'.concat(t,'"')),"<iframe ".concat(t,' id="').concat(B(),'"\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:F,getWindowTop:H,getWindowLocation:M,insertUserSyncIframe:ve,insertElement:se,isFn:X,triggerPixel:le,logError:K,logWarn:Z,logMessage:z,logInfo:W,parseQS:dn,formatQS:sn,deepEqual:pn},E={};function T(){return E}var O,I={},j=function(e,n){return n}.bind(null,1,I)()===I?Function.prototype.bind:function(e){var n=this,t=Array.prototype.slice.call(arguments,1);return function(){return n.apply(e,t.concat(Array.prototype.slice.call(arguments)))}},k=(O=0,function(){return++O});function B(){return k()+Math.random().toString(16).substr(2)}function U(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,U)}function P(e,n){return n&&n[e]?n[e]:""}function _(e,n,t){return t?e+n+"="+encodeURIComponent(t)+"&":e}function R(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n.replace(/&$/,"")}function N(e){return e&&Object.getOwnPropertyNames(e).length>0?(n=e,Object.keys(n)).map((function(n){return"".concat(n,"=").concat(encodeURIComponent(Ce(e,n)))})).join("&"):"";var n}function x(e){if(e){var n=[];if(e.mediaTypes&&e.mediaTypes.banner&&Array.isArray(e.mediaTypes.banner.sizes)){var t=e.mediaTypes.banner.sizes;Array.isArray(t[0])?n=t:n.push(t)}else Array.isArray(e.sizes)&&(Array.isArray(e.sizes[0])?n=e.sizes:n.push(e.sizes));return n}}function D(e){var n=[];if("string"==typeof e){var t=e.split(","),r=/^(\d)+x(\d)+$/i;if(t)for(var i in t)de(t,i)&&t[i].match(r)&&n.push(t[i])}else if("object"===p(e)){var o=e.length;if(o>0)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])n.push(q(e));else for(var a=0;a<o;a++)n.push(q(e[a]))}return n}function q(e){if(function(e){return ee(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}(e))return e[0]+"x"+e[1]}function H(){return window.top}function F(){return window.self}function M(){return window.location}function z(){J()&&b&&console.log.apply(console,G(arguments,"MESSAGE:"))}function W(){J()&&h&&console.info.apply(console,G(arguments,"INFO:"))}function Z(){J()&&m&&console.warn.apply(console,G(arguments,"WARNING:")),A(c.FP.AUCTION_DEBUG,{type:"WARNING",arguments:arguments})}function K(){J()&&w&&console.error.apply(console,G(arguments,"ERROR:")),A(c.FP.AUCTION_DEBUG,{type:"ERROR",arguments:arguments})}function L(e){function n(n){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];n.apply(void 0,[e].concat(r))}}return{logError:n(K),logWarn:n(Z),logMessage:n(z),logInfo:n(W)}}function G(e,n){e=[].slice.call(e);var t=r.vc.getCurrentBidder();return n&&e.unshift(n),t&&e.unshift(i("#aaa")),e.unshift(i("#3b88c3")),e.unshift("%cPrebid"+(t?"%c".concat(t):"")),e;function i(e){return"display: inline-block; color: #fff; background: ".concat(e,"; padding: 1px 4px; border-radius: 3px;")}}function J(){return!!r.vc.getConfig("debug")}function V(){var e=document.createElement("iframe");return e.id=B(),e.height=0,e.width=0,e.border="0px",e.hspace="0",e.vspace="0",e.marginWidth="0",e.marginHeight="0",e.style.border="0",e.scrolling="no",e.frameBorder="0",e.src="about:blank",e.style.display="none",e}function Q(e){return dn(M().search)[e]||""}function Y(e,n){return v.call(e)==="[object "+n+"]"}function X(e){return Y(e,"Function")}function $(e){return Y(e,"String")}function ee(e){return Y(e,"Array")}function ne(e){return Y(e,"Number")}function te(e){return Y(e,"Object")}function re(e){return Y(e,"Boolean")}function ie(e){if(!e)return!0;if(ee(e)||$(e))return!(e.length>0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0}function oe(e){return $(e)&&(!e||0===e.length)}function ae(e,n){if(!ie(e)){if(X(e.forEach))return e.forEach(n,this);var t=0,r=e.length;if(r>0)for(;t<r;t++)n(e[t],t,e);else for(t in e)hasOwnProperty.call(e,t)&&n.call(this,e[t],t)}}function ce(e,n){if(ie(e))return!1;if(X(e.indexOf))return-1!==e.indexOf(n);for(var t=e.length;t--;)if(e[t]===n)return!0;return!1}function ue(e,n){if(ie(e))return[];if(X(e.map))return e.map(n);var t=[];return ae(e,(function(r,i){t.push(n(r,i,e))})),t}function de(e,n){return e.hasOwnProperty?e.hasOwnProperty(n):void 0!==e[n]&&e.constructor.prototype[n]!==e[n]}function se(e,n,t,r){var i;n=n||document,i=t?n.getElementsByTagName(t):n.getElementsByTagName("head");try{if((i=i.length?i:n.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(e,o)}}catch(e){}}function fe(e,n){var t=null;return new Promise((function(r){var i=function n(){e.removeEventListener("load",n),e.removeEventListener("error",n),null!=t&&window.clearTimeout(t),r()};e.addEventListener("load",i),e.addEventListener("error",i),null!=n&&(t=window.setTimeout(i,n))}))}function le(e,n,t){var r=new Image;n&&S.isFn(n)&&fe(r,t).then(n),r.src=e}function pe(e){var n=e.source,t=e.burl;n===c.os.YZ&&t&&S.triggerPixel(t)}function ge(e){if(e){var n=document.createElement("iframe");n.id=B(),n.width=0,n.height=0,n.hspace="0",n.vspace="0",n.marginWidth="0",n.marginHeight="0",n.style.display="none",n.style.height="0px",n.style.width="0px",n.scrolling="no",n.frameBorder="0",n.allowtransparency="true",S.insertElement(n,document,"body"),n.contentWindow.document.open(),n.contentWindow.document.write(e),n.contentWindow.document.close()}}function ve(e,n,t){var r=S.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),i=document.createElement("div");i.innerHTML=r;var o=i.firstChild;n&&S.isFn(n)&&fe(o,t).then(n),S.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 be(e,n,t){return null==n?t:$(n)?n:ne(n)?n.toString():void S.logWarn("Unsuported type for param: "+e+" required type: String")}function he(e,n,t){return t.indexOf(e)===n}function me(e,n){return e.concat(n)}function we(e,n){var t;if(e)return n.some((function(n){var r=(0,a.sE)(n.bids,(function(n){return["bidId","adId","bid_id"].some((function(t){return n[t]===e}))}));return r&&(t=r),r})),t}function Ce(e,n){return e[n]}function Ae(e,n){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n)return t}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(me,[])})).reduce(me,[]).filter(he)}function Ee(){if(window.googletag&&X(window.googletag.pubads)&&X(window.googletag.pubads().getSlots))return!0}function Te(){if(window.apntag&&X(window.apntag.getTag))return!0}var Oe=je("timeToRespond",(function(e,n){return e>n})),Ie=je("responseTimestamp",(function(e,n){return e>n}));function je(e,n){return function(t,r){return t.cpm===r.cpm?n(t[e],r[e])?r:t:t.cpm<r.cpm?r:t}}function ke(e){for(var n=e.length;n>0;){var t=Math.floor(Math.random()*n),r=e[--n];e[n]=e[t],e[t]=r}return e}function Be(e,n){return(0,a.q9)(e,n&&n.adUnitCode)}function Ue(e){return o()(e)}function Pe(){try{return S.getWindowSelf()!==S.getWindowTop()}catch(e){return!0}}function _e(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)}function Re(e,n){if(e)return e.replace(/\$\{AUCTION_PRICE\}/g,n)}function Ne(e,n){if(e&&n&&"string"==typeof n)return e.replace(/\${CLICKTHROUGH}/g,n)}function xe(){return(new Date).getTime()}function De(){return window.performance&&window.performance.now&&window.performance.now()||0}function qe(){return!1!==r.vc.getConfig("deviceAccess")}function He(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function Fe(e,n){if(n<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(n));var t=0;return function(){++t===n&&e.apply(this,arguments)}}function Me(e,n){return e.reduce((function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e}),{})}function ze(e,n){return n.filter((function(n){return e[n]})).reduce((function(n,t){return l(n,f({},t,e[t]))}),{})}function We(e){var n=["banner","native","video"];return!!Object.keys(e).every((function(e){return(0,a.q9)(n,e)}))&&(!e.video||!e.video.context||(0,a.q9)(["instream","outstream","adpod"],e.video.context))}function Ze(e,n,t){return e.filter((function(e){return e.code===n})).map((function(e){return e.bids})).reduce(me,[]).filter((function(e){return e.bidder===t})).map((function(e){return e.params||{}}))}function Ke(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function Le(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}je("responseTimestamp",(function(e,n){return e<n}));var Ge=function(e,n){return e.getAdUnitPath()===n||e.getSlotElementId()===n};function Je(e){return function(n){return Ge(e,n)}}function Ve(e){var n;return Ee()&&(n=(0,a.sE)(window.googletag.pubads().getSlots(),function(e){return function(n){return Ge(n,e)}}(e))),n?{gptSlot:n.getAdUnitPath(),divId:n.getSlotElementId()}:{}}function Qe(e,n){var t=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n    ".concat(e.code," is a ").concat(t," ad unit\n    containing bidders that don't support ").concat(t,": ").concat(n,".\n    This bidder won't fetch demand.\n  ")}function Ye(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Xe(e){return e.replace(/(?:^|\.?)([A-Z])/g,(function(e,n){return"_"+n.toLowerCase()})).replace(/^_/,"")}function $e(e){return Object.keys(e).reduce((function(n,t){return void 0!==e[t]&&(n[t]=e[t]),n}),{})}function en(e,n){return"object"!==p(e)?{}:n.reduce((function(t,r,i){if("function"==typeof r)return t;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var c=e[r];return"function"==typeof n[i+1]&&(c=n[i+1](c,t)),void 0!==c&&(t[o]=c),t}),{})}function nn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keywords",t=[];return ae(e,(function(e,r){if(ee(e)){var i=[];ae(e,(function(e){((e=be(n+"."+r,e))||""===e)&&i.push(e)})),e=i}else{if(!$(e=be(n+"."+r,e)))return;e=[e]}t.push({key:r,value:e})})),t}function tn(e,n){return Object.keys(e).forEach((function(t){var r,i;n[t]&&(X(e[t])?n[t]=e[t](n[t]):n[t]=(r=e[t],i=n[t],"string"===r?i&&i.toString():"number"===r?Number(i):i),isNaN(n[t])&&delete n.key)})),n}function rn(e,n){return ee(e)&&(!n||e.length===n)&&e.every((function(e){return Ye(e)}))}function on(e,n){for(var t=[],r=0;r<n;r++){var i=te(e)?Ue(e):e;t.push(i)}return t}function an(e,n){for(var t=[],r=0;r<Math.ceil(e.length/n);r++){var i=r*n,o=i+n;t.push(e.slice(i,o))}return t}function cn(e){return Math.min.apply(Math,u(e))}function un(e){return Math.max.apply(Math,u(e))}function dn(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,n){var t,r,i=(t=n.split("="),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,o=[],a=!0,c=!1;try{for(t=t.call(e);!(a=(r=t.next()).done)&&(o.push(r.value),!n||o.length!==n);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==t.return||t.return()}finally{if(c)throw i}}return o}}(t,r)||d(t,r)||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.")}()),o=i[0],a=i[1];return/\[\]$/.test(o)?(e[o=o.replace("[]","")]=e[o]||[],e[o].push(a)):e[o]=a||"",e}),{}):{}}function sn(e){return Object.keys(e).map((function(n){return Array.isArray(e[n])?e[n].map((function(e){return"".concat(n,"[]=").concat(e)})).join("&"):"".concat(n,"=").concat(e[n])})).join("&")}function fn(e,n){var t=document.createElement("a");n&&"noDecodeWholeURL"in n&&n.noDecodeWholeURL?t.href=e:t.href=decodeURIComponent(e);var r=n&&"decodeSearchAsString"in n&&n.decodeSearchAsString;return{href:t.href,protocol:(t.protocol||"").replace(/:$/,""),hostname:t.hostname,port:+t.port,pathname:t.pathname.replace(/^(?!\/)/,"/"),search:r?t.search:S.parseQS(t.search||""),hash:(t.hash||"").replace(/^#/,""),host:t.host||window.location.host}}function ln(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(S.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}function pn(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.checkTypes,i=void 0!==r&&r;if(e===n)return!0;if("object"!==p(e)||null===e||"object"!==p(n)||null===n||i&&e.constructor!==n.constructor)return!1;if(Object.keys(e).length!==Object.keys(n).length)return!1;for(var o in e){if(!n.hasOwnProperty(o))return!1;if(!pn(e[o],n[o],{checkTypes:i}))return!1}return!0}function gn(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];if(!t.length)return e;var i=t.shift();if(te(e)&&te(i)){var o=function(n){te(i[n])?(e[n]||l(e,f({},n,{})),gn(e[n],i[n])):ee(i[n])?e[n]?ee(e[n])&&i[n].forEach((function(t){for(var r=1,i=0;i<e[n].length;i++)if(pn(e[n][i],t)){r=0;break}r&&e[n].push(t)})):l(e,f({},n,u(i[n]))):l(e,f({},n,i[n]))};for(var a in i)o(a)}return gn.apply(void 0,[e].concat(t))}function vn(e){for(var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=function(e,n){if(X(Math.imul))return Math.imul(e,n);var t=(4194303&e)*(n|=0);return 4290772992&e&&(t+=(4290772992&e)*n|0),0|t},i=3735928559^t,o=1103547991^t,a=0;a<e.length;a++)i=r(i^(n=e.charCodeAt(a)),2654435761),o=r(o^n,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 yn(e){return e?e.defaultView:null}function bn(e){try{return JSON.parse(e)}catch(e){}}},9367:function(e,n,t){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.promiseFactory,t=void 0===n?function(e){return new Promise(e)}:n,r={};function i(e){return function(n){"function"==typeof r[e]?r[e](n):r[e]||(r[e]=!0,r[2]=n)}}return{promise:t((function(e,n){null!=r[0]?e(r[2]):null!=r[1]?n(r[2]):(r[0]=e,r[1]=n)})),resolve:i(0),reject:i(1)}}t.d(n,{v:function(){return r}})},1929:function(e,n,t){"use strict";t.d(n,{Dn:function(){return s},LD:function(){return d},gZ:function(){return u}});var r=t(265),i=t(9853),o=t(8962),a=t(3494),c=t(4766),u="outstream",d="instream";function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,i=void 0===t?c.K.index:t,o=(0,r.Z)(i.getMediaTypes(e),"video"),a=o&&(0,r.Z)(o,"context"),u=i.getAdUnit(e);return f(e,u,o,a)}var f=(0,a.z3)("sync",(function(e,n,t,r){return t&&r!==u?o.vc.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):((0,i.H)('\n        This bid contains only vastXml and will not work when a prebid cache url is not specified.\n        Try enabling prebid cache with pbjs.setConfig({ cache: {url: "..."} });\n      '),!1):r!==u||!!(e.renderer||n&&n.renderer||t.renderer)}),"checkVideoBidSetup")},265:function(e,n,t){"use strict";function r(e,n,t,r,i){for(n=n.split?n.split("."):n,r=0;r<n.length;r++)e=e?e[n[r]]:i;return e===i?t:e}t.d(n,{Z:function(){return r}})},1432:function(e){a.SYNC=1,a.ASYNC=2,a.QUEUE=4;var n=Object.freeze({useProxy:!0,ready:0}),t=new WeakMap,r="2,1,0"===[1].reduce((function(e,n,t){return[e,n,t]}),2).toString()?Array.prototype.reduce:function(e,n){var t,r=Object(this),i=r.length>>>0,o=0;if(n)t=n;else{for(;o<i&&!(o in r);)o++;t=r[o++]}for(;o<i;)o in r&&(t=e(t,r[o],o,r)),o++;return t};function i(e,n){return Array.prototype.slice.call(e,n)}var o=Object.assign||function(e){return r.call(i(arguments,1),(function(e,n){return n&&Object.keys(n).forEach((function(t){e[t]=n[t]})),e}),e)};function a(e){var c,u={},d=[];function s(e,n){return"function"==typeof e?g.call(null,"sync",e,n):"string"==typeof e&&"function"==typeof n?g.apply(null,arguments):"object"==typeof e?f.apply(null,arguments):void 0}function f(e,n,t){var r=!0;void 0===n&&(n=Object.getOwnPropertyNames(e),r=!1);var i={},o=["constructor"];do{(n=n.filter((function(n){return!("function"!=typeof e[n]||-1!==o.indexOf(n)||n.match(/^_/))}))).forEach((function(n){var r=n.split(":"),o=r[0],a=r[1]||"sync";if(!i[o]){var c=e[o];i[o]=e[o]=g(a,c,t?[t,o]:void 0)}})),e=Object.getPrototypeOf(e)}while(r&&e);return i}function l(e){var n=Array.isArray(e)?e:e.split(".");return r.call(n,(function(t,r,i){var o=t[r],a=!1;return o||(i===n.length-1?(c||d.push((function(){a||console.warn("fun-hooks: referenced '"+e+"' but it was never created")})),t[r]=p((function(e){t[r]=e,a=!0}))):t[r]={})}),u)}function p(e){var n=[],r=[],i=function(){},a={before:function(e,t){return u.call(this,n,"before",e,t)},after:function(e,n){return u.call(this,r,"after",e,n)},getHooks:function(e){var t=n.concat(r);"object"==typeof e&&(t=t.filter((function(n){return Object.keys(e).every((function(t){return n[t]===e[t]}))})));try{o(t,{remove:function(){return t.forEach((function(e){e.remove()})),this}})}catch(e){console.error("error adding `remove` to array, did you modify Array.prototype?")}return t},removeAll:function(){return this.getHooks().remove()}},c={install:function(t,o,a){this.type=t,i=a,a(n,r),e&&e(o)}};return t.set(a.after,c),a;function u(e,t,o,a){var c={hook:o,type:t,priority:a||10,remove:function(){var t=e.indexOf(c);-1!==t&&(e.splice(t,1),i(n,r))}};return e.push(c),e.sort((function(e,n){return n.priority-e.priority})),i(n,r),this}}function g(n,r,u){var s=r.after&&t.get(r.after);if(s){if(s.type!==n)throw"fun-hooks: recreated hookable with different type";return r}var f,g,v=u?l(u):p(),y={get:function(e,n){return v[n]||Reflect.get.apply(Reflect,arguments)}};return c||d.push(b),e.useProxy&&"function"==typeof Proxy&&Proxy.revocable?g=new Proxy(r,y):(g=function(){return y.apply?y.apply(r,this,i(arguments)):r.apply(this,arguments)},o(g,v)),t.get(g.after).install(n,g,(function(e,t){var r,o=[];function a(e){o.push(e.hook)}e.length||t.length?(e.forEach(a),r=o.push(void 0)-1,t.forEach(a),f=function(e,t,a){var c,u=0,d="async"===n&&"function"==typeof a[a.length-1]&&a.pop();function s(e){"sync"===n?c=e:d&&d.apply(null,arguments)}function f(e){if(o[u]){var r=i(arguments);return f.bail=s,r.unshift(f),o[u++].apply(t,r)}"sync"===n?c=e:d&&d.apply(null,arguments)}return o[r]=function(){var r=i(arguments,1);"async"===n&&d&&(delete f.bail,r.push(f));var o=e.apply(t,r);"sync"===n&&f(o)},f.apply(null,a),c}):f=void 0,b()})),g;function b(){!c&&("sync"!==n||e.ready&a.SYNC)&&("async"!==n||e.ready&a.ASYNC)?"sync"!==n&&e.ready&a.QUEUE?y.apply=function(){var e=arguments;d.push((function(){g.apply(e[1],e[2])}))}:y.apply=function(){throw"fun-hooks: hooked function not ready"}:y.apply=f}}return(e=o({},n,e)).ready?s.ready=function(){c=!0,function(e){for(var n;n=e.shift();)n()}(d)}:c=!0,s.get=l,s}e.exports=a},7079:function(e){e.exports=function e(n){var t=Array.isArray(n)?[]:{};for(var r in n){var i=n[r];t[r]=i&&"object"==typeof i?e(i):i}return t}},5644:function(e){"use strict";e.exports=JSON.parse('{"k2":{"xn":"adserverTargeting","zF":"standard"},"f":"pbjs_debug","Q_":{"Q":1,"H":2},"FP":{"AUCTION_INIT":"auctionInit","AUCTION_END":"auctionEnd","BID_ADJUSTMENT":"bidAdjustment","BID_TIMEOUT":"bidTimeout","BID_REQUESTED":"bidRequested","BID_RESPONSE":"bidResponse","NO_BID":"noBid","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"},"q_":{"PREVENT_WRITING_ON_MAIN_DOCUMENT":"preventWritingOnMainDocument","NO_AD":"noAd","EXCEPTION":"exception","CANNOT_FIND_AD":"cannotFindAd","MISSING_DOC_OR_ADID":"missingDocOrAdid"},"aI":{"bidWon":"adUnitCode"},"Ql":{"yE":"low","M2":"medium","lj":"high","B7":"auto","uN":"dense","qN":"custom"},"TD":{"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"},"kF":{"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"},"FY":{"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"},"os":{"YZ":"s2s"},"UE":{"CK":"targetingSet","fe":"rendered","G9":"bidRejected"}}')}},t={};function r(e){var i=t[e];if(void 0!==i)return i.exports;var o=t[e]={exports:{}};return n[e](o,o.exports,r),o.exports}r.m=n,e=[],r.O=function(n,t,i,o){if(!t){var a=1/0;for(s=0;s<e.length;s++){t=e[s][0],i=e[s][1],o=e[s][2];for(var c=!0,u=0;u<t.length;u++)(!1&o||a>=o)&&Object.keys(r.O).every((function(e){return r.O[e](t[u])}))?t.splice(u--,1):(c=!1,o<a&&(a=o));if(c){e.splice(s--,1);var d=i();void 0!==d&&(n=d)}}return n}o=o||0;for(var s=e.length;s>0&&e[s-1][2]>o;s--)e[s]=e[s-1];e[s]=[t,i,o]},r.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(n,{a:n}),n},r.d=function(e,n){for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},function(){var e={602:0};r.O.j=function(n){return 0===e[n]};var n=function(n,t){var i,o,a=t[0],c=t[1],u=t[2],d=0;if(a.some((function(n){return 0!==e[n]}))){for(i in c)r.o(c,i)&&(r.m[i]=c[i]);if(u)var s=u(r)}for(n&&n(t);d<a.length;d++)o=a[d],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(s)},t=self.pbjsChunk=self.pbjsChunk||[];t.forEach(n.bind(null,0)),t.push=n.bind(null,t.push.bind(t))}();var i={};!function(){"use strict";var e=r(2528),n=r(9853),t=r(265),i=r(2319),o=r(9017),a=r(5644),c=r(4766),u=r(1879),d=r(4877),s=r(8962),f=a.FP,l=f.AD_RENDER_FAILED,p=f.AD_RENDER_SUCCEEDED;function g(e){var t=e.reason,r=e.message,o=e.bid,a=e.id,c={reason:t,message:r};o&&(c.bid=o),a&&(c.adId=a),(0,n.H)(r),i.j8(l,c)}function v(e){var n=e.doc,t=e.bid,r=e.id,o={doc:n};t&&(o.bid=t),r&&(o.adId=r),i.j8(p,o)}var y=a.FP.BID_WON,b=a.FP.STALE_RENDER,h={"Prebid Request":function(e,r,o){if(null!=o){if(o.status!==a.UE.fe||((0,n.yN)("Ad id ".concat(o.adId," has been rendered before")),i.j8(b,o),!(0,t.Z)(s.vc.getConfig("auctionOptions"),"suppressStaleRender"))){try{!function(e,t){var r=e.adId,i=e.ad,o=e.adUrl,a=e.width,c=e.height,u=e.renderer,s=e.cpm,f=e.originalCpm;(0,d.Pd)(u)?(0,d._U)(u,e):r&&(w(e),t({message:"Prebid Response",ad:(0,n.ew)(i,f||s),adUrl:(0,n.ew)(o,f||s),adId:r,width:a,height:c}))}(o,e)}catch(e){return void g({reason:a.q_.EXCEPTION,message:e.message,id:r.adId,bid:o})}c.K.addWinningBid(o),i.j8(y,o)}}else g({reason:a.q_.CANNOT_FIND_AD,message:"Cannot find ad '".concat(r.adId,"' for cross-origin render request"),id:r.adId})},"Prebid Native":function(e,t,r){if(null!=r)switch(t.action){case"assetRequest":e((0,o.eK)(t,r));break;case"allAssetRequest":e((0,o.JL)(t,r));break;case"resizeNativeHeight":r.height=t.height,r.width=t.width,w(r);break;default:if("click"===(0,o.e6)(t,r))return;c.K.addWinningBid(r),i.j8(y,r)}else(0,n.H)("Cannot find ad '".concat(t.adId,"' for x-origin event request"))},"Prebid Event":function(e,t,r){if(null!=r)if(r.status===a.UE.fe)switch(t.event){case a.FP.AD_RENDER_FAILED:g({bid:r,id:t.adId,reason:t.info.reason,message:t.info.message});break;case a.FP.AD_RENDER_SUCCEEDED:v({doc:null,bid:r,id:t.adId});break;default:(0,n.H)("Received x-origin event request for unsupported event: '".concat(t.event,"' (adId: '").concat(t.adId,"')"))}else(0,n.yN)("Received x-origin event request without corresponding render request for ad '".concat(t.adId,"'"));else(0,n.H)("Cannot find ad '".concat(t.adId,"' for x-origin event request"))}};function m(e){var t=e.message?"message":"data",r={};try{r=JSON.parse(e[t])}catch(e){return}if(r&&r.adId&&r.message){var i=(0,u.sE)(c.K.getBidsReceived(),(function(e){return e.adId===r.adId}));h.hasOwnProperty(r.message)&&h[r.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,n.H)(e),new Error(e)}:e.ports.length>0?function(n){e.ports[0].postMessage(JSON.stringify(n))}:function(n){e.source.postMessage(JSON.stringify(n),e.origin)}}(e),r,i)}}function w(e){var t=e.adId,r=e.adUnitCode,i=e.width,o=e.height;["div","iframe"].forEach((function(e){var a=function(e){var i=function(e,t){return(0,n.T9)()?function(e){var n=(0,u.sE)(window.googletag.pubads().getSlots(),(function(n){return(0,u.sE)(n.getTargetingKeys(),(function(t){return(0,u.q9)(n.getTargeting(t),e)}))}));return n?n.getSlotElementId():null}(e):(0,n.X4)()?function(e){var n=window.apntag.getTag(e);return n&&n.targetId}(t):t}(t,r),o=document.getElementById(i);return o&&o.querySelector(e)}(e+':not([style*="display: none"])');if(a){var c=a.style;c.width=i+"px",c.height=o+"px"}else(0,n.yN)("Unable to locate matching page element for adUnitCode ".concat(r,".  Can't resize it to ad's dimensions.  Please review setup."))}))}var C=r(7112),A=r(1269),S=r(8265),E=r(3494),T=r(9624);function O(){return O=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},O.apply(this,arguments)}function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function j(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return k(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?k(e,n):void 0}}(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.")}()}function k(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}var B=[],U="targetingControls.allowTargetingKeys",P="targetingControls.addTargetingKeys",_='Only one of "'.concat(U,'" or "').concat(P,'" can be set'),R=Object.keys(a.TD).map((function(e){return a.TD[e]})),N=function(e){return e.responseTimestamp+1e3*e.ttl-1e3>(0,n.AB)()},x=function(e){return e&&(e.status&&!(0,u.q9)([a.UE.fe],e.status)||!e.status)},D=(0,E.z3)("sync",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!i){var o=[],a=s.vc.getConfig("sendBidsControl.dealPrioritization"),c=(0,n.vM)(e,"adUnitCode");return Object.keys(c).forEach((function(e){var i=[],u=(0,n.vM)(c[e],"bidderCode");Object.keys(u).forEach((function(e){return i.push(u[e].reduce(t))})),r>0?(i=a?i.sort(q(!0)):i.sort((function(e,n){return n.cpm-e.cpm})),o.push.apply(o,j(i.slice(0,r)))):o.push.apply(o,j(i))})),o}return e}));function q(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(n,t){return void 0!==n.adserverTargeting.hb_deal&&void 0===t.adserverTargeting.hb_deal?-1:void 0===n.adserverTargeting.hb_deal&&void 0!==t.adserverTargeting.hb_deal?1:e?t.cpm-n.cpm:t.adserverTargeting.hb_pb-n.adserverTargeting.hb_pb}}var H,F,M=function(e){var r={},i={};function c(e,t){return e.adserverTargeting&&t&&((0,n.kJ)(t)&&(0,u.q9)(t,e.adUnitCode)||"string"==typeof t&&e.adUnitCode===t)}function d(e,t){if(!0===s.vc.getConfig("targetingControls.alwaysIncludeDeals")){var r=R.concat(o.xc);return D(t,n.ZH).map((function(n){if(n.dealId&&c(n,e))return I({},n.adUnitCode,k(n,r.filter((function(e){return void 0!==n.adserverTargeting[e]}))))})).filter((function(e){return e}))}return[]}function f(e,t){var r=O({},a.TD,a.FY),i=Object.keys(r),o={};(0,n.PN)("allowTargetingKeys - allowed keys [ ".concat(t.map((function(e){return r[e]})).join(", ")," ]")),e.map((function(e){var n=Object.keys(e)[0],a=e[n].filter((function(e){var n=Object.keys(e)[0],a=0===i.filter((function(e){return 0===n.indexOf(r[e])})).length||(0,u.sE)(t,(function(e){var t=r[e];return 0===n.indexOf(t)}));return o[n]=!a,a}));e[n]=a}));var c=Object.keys(o).filter((function(e){return o[e]}));return(0,n.PN)("allowTargetingKeys - removed keys [ ".concat(c.join(", ")," ]")),e.filter((function(e){return e[Object.keys(e)[0]].length>0}))}function l(e,t){var r=(0,n.I8)(e);return Object.keys(r).map((function(e){return{adUnitCode:e,adserverTargeting:r[e]}})).sort(q()).reduce((function(e,i,o,a){var c,u=(c=i.adserverTargeting,Object.keys(c).reduce((function(e,n){return e+"".concat(n,"%3d").concat(encodeURIComponent(c[n]),"%26")}),""));o+1===a.length&&(u=u.slice(0,-3));var d=i.adUnitCode,s=u.length;return s<=t?(t-=s,(0,n.PN)("AdUnit '".concat(d,"' auction keys comprised of ").concat(s," characters.  Deducted from running threshold; new limit is ").concat(t),r[d]),e[d]=r[d]):(0,n.yN)("The following keys for adUnitCode '".concat(d,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.\nThe key-set size was ").concat(s,", the current allotted amount was ").concat(t,".\n"),r[d]),o+1===a.length&&0===Object.keys(e).length&&(0,n.H)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars).  Please review setup and consider adjusting."),e}),{})}function p(e){var n=e.map((function(e){return I({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return I({},Object.keys(e)[0],e[Object.keys(e)[0]].join(","))})).reduce((function(e,n){return O(n,e)}),{}))})).reduce((function(e,n){var t=Object.keys(n)[0];return e[t]=O({},e[t],n[t]),e}),{});return n}function g(t){return"string"==typeof t?[t]:(0,n.kJ)(t)?t:e.getAdUnitCodes()||[]}function v(){var r=e.getBidsReceived();if(s.vc.getConfig("useBidCache")){var o=s.vc.getConfig("bidCacheFilterFunction");"function"==typeof o&&(r=r.filter((function(e){return i[e.adUnitCode]===e.auctionId||!!o(e)})))}else r=r.filter((function(e){return i[e.adUnitCode]===e.auctionId}));return r=r.filter((function(e){return(0,t.Z)(e,"video.context")!==S.Oh})).filter((function(e){return"banner"!==e.mediaType||(0,A.lO)([e.width,e.height])})).filter(x).filter(N),D(r,n.K$)}function y(e,n){var t=r.getWinningBids(e,n),i=b();return t=t.map((function(e){return I({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(n){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===i.indexOf(n)})).reduce((function(n,t){var r=[e.adserverTargeting[t]],i=I({},t.substring(0,20),r);if(t===a.TD.DEAL){var o=I({},"".concat(t,"_").concat(e.bidderCode).substring(0,20),r);return[].concat(j(n),[i,o])}return[].concat(j(n),[i])}),[]))})),t}function b(){return e.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(R).filter(n.tT)}function h(e,t,r,i){return Object.keys(t.adserverTargeting).filter(m()).forEach((function(r){e.length&&e.filter(function(e){return function(n){return n.adUnitCode===t.adUnitCode&&n.adserverTargeting[e]}}(r)).forEach(function(e){return function(r){(0,n.kJ)(r.adserverTargeting[e])||(r.adserverTargeting[e]=[r.adserverTargeting[e]]),r.adserverTargeting[e]=r.adserverTargeting[e].concat(t.adserverTargeting[e]).filter(n.tT),delete t.adserverTargeting[e]}}(r))})),e.push(t),e}function m(){var e=b().concat(o.xc);return function(n){return-1===e.indexOf(n)}}function w(e){return I({},e.adUnitCode,Object.keys(e.adserverTargeting).filter(m()).map((function(n){return I({},n.substring(0,20),[e.adserverTargeting[n]])})))}function C(e,n){return n.filter((function(n){return(0,u.q9)(e,n.adUnitCode)})).map((function(e){return O({},e)})).reduce(h,[]).map(w).filter((function(e){return e}))}function E(e,t){var r=R.concat(o.xc),i=s.vc.getConfig("sendBidsControl.bidLimit"),u=D(t,n.ZH,i),d=s.vc.getConfig("targetingControls.allowSendAllBidsTargetingKeys"),f=d?d.map((function(e){return a.TD[e]})):r;return u.map((function(n){if(c(n,e))return I({},n.adUnitCode,k(n,r.filter((function(e){return void 0!==n.adserverTargeting[e]&&-1!==f.indexOf(e)}))))})).filter((function(e){return e}))}function k(e,n){return n.map((function(n){return I({},"".concat(n,"_").concat(e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}function H(r){function i(e){return(0,t.Z)(e,a.k2.xn)}return e.getAdUnits().filter((function(e){return(0,u.q9)(r,e.code)&&i(e)})).map((function(e){return I({},e.code,function(e){var t=i(e);return Object.keys(t).map((function(e){return(0,n.d8)(t[e])&&(t[e]=t[e].split(",").map((function(e){return e.trim()}))),(0,n.kJ)(t[e])||(t[e]=[t[e]]),I({},e,t[e])}))}(e))}))}return r.setLatestAuctionForAdUnit=function(e,n){i[e]=n},r.resetPresetTargeting=function(t,r){if((0,n.T9)()){var i=g(t),o=e.getAdUnits().filter((function(e){return(0,u.q9)(i,e.code)})),a=B.reduce((function(e,n){return e[n]=null,e}),{});window.googletag.pubads().getSlots().forEach((function(e){var t=(0,n.LQ)(r)&&r(e);o.forEach((function(r){(r.code===e.getAdUnitPath()||r.code===e.getSlotElementId()||(0,n.LQ)(t)&&t(r.code))&&e.updateTargetingFromMap(a)}))}))}},r.resetPresetTargetingAST=function(e){g(e).forEach((function(e){var n=window.apntag.getTag(e);if(n&&n.keywords){var t=Object.keys(n.keywords),r={};t.forEach((function(e){(0,u.q9)(B,e.toLowerCase())||(r[e]=n.keywords[e])})),window.apntag.modifyTag(e,{keywords:r})}}))},r.getAllTargeting=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v(),r=g(e),i=y(r,t).concat(C(r,t)).concat(s.vc.getConfig("enableSendAllBids")?E(r,t):d(r,t)).concat(H(r));i.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===B.indexOf(Object.keys(e)[0])&&(B=Object.keys(e).concat(B))}))}))}));var o=Object.keys(O({},a.kF,a.FY)),c=s.vc.getConfig(U),u=s.vc.getConfig(P);if(null!=u&&null!=c)throw new Error(_);c=null!=u?o.concat(u):c||o,Array.isArray(c)&&c.length>0&&(i=f(i,c)),i=p(i);var b=s.vc.getConfig("targetingControls.auctionKeyMaxChars");return b&&((0,n.PN)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(b," characters.  Running checks on auction keys...")),i=l(i,b)),r.forEach((function(e){i[e]||(i[e]={})})),i},s.vc.getConfig("targetingControls",(function(e){null!=(0,t.Z)(e,U)&&null!=(0,t.Z)(e,P)&&(0,n.H)(_)})),r.setTargetingForGPT=function(e,t){window.googletag.pubads().getSlots().forEach((function(r){Object.keys(e).filter(t?t(r):(0,n.zV)(r)).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,n.ji)("Attempting to set targeting-map for slot: ".concat(r.getSlotElementId()," with targeting-map:"),e[t]),r.updateTargetingFromMap(e[t])}))}))},r.getWinningBids=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v(),r=g(e);return t.filter((function(e){return(0,u.q9)(r,e.adUnitCode)})).filter((function(e){return!0===T.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0})).map((function(e){return e.adUnitCode})).filter(n.tT).map((function(e){return t.filter((function(n){return n.adUnitCode===e?n:null})).reduce(n.ZH)}))},r.setTargetingForAst=function(e){var t=r.getAllTargeting(e);try{r.resetPresetTargetingAST(e)}catch(e){(0,n.H)("unable to reset targeting for AST"+e)}Object.keys(t).forEach((function(e){return Object.keys(t[e]).forEach((function(r){if((0,n.ji)("Attempting to set targeting for targetId: ".concat(e," key: ").concat(r," value: ").concat(t[e][r])),(0,n.d8)(t[e][r])||(0,n.kJ)(t[e][r])){var i={};r.search(/pt[0-9]/)<0?i[r.toUpperCase()]=t[e][r]:i[r]=t[e][r],window.apntag.setKeywords(e,i,{overrideKeyValue:!0})}}))}))},r.isApntagDefined=function(){if(window.apntag&&(0,n.LQ)(window.apntag.setKeywords))return!0},r}(c.K),z=r(9964),W=(0,n.qp)("DEBUG:"),Z=W.logWarn,K=W.logMessage,L="pbjs:debugging",G=[function(e){V(),function(e){H=ne.bind(e),z.Yt.before(H,5),F=te.bind(e),z.e0.before(F,5)}(e)}],J=[V];function V(){z.Yt.getHooks({hook:H}).remove(),z.e0.getHooks({hook:F}).remove()}function Q(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s.vc.setConfig({debug:!0}),G.forEach((function(n){return n(e)})),K("bidder overrides enabled".concat(n?" from session":""))}function Y(){J.forEach((function(e){return e()})),K("bidder overrides disabled")}function X(e,n,t){return!(!e.bidder||e.bidder===n)||!(!e.adUnitCode||e.adUnitCode===t)}function $(e,n){return Array.isArray(e)&&-1===e.indexOf(n)}function ee(e,n,t){return Object.keys(e).filter((function(e){return-1===["adUnitCode","bidder"].indexOf(e)})).reduce((function(n,r){return K("bidder overrides changed '".concat(n.adUnitCode,"/").concat(n.bidderCode,"' ").concat(t,".").concat(r," from '").concat(n[r],".js' to '").concat(e[r],"'")),n[r]=e[r],n.isDebug=!0,n}),n)}function ne(e,n,t){var r=this;$(r.bidders,t.bidderCode)?Z("bidder '".concat(t.bidderCode,"' excluded from auction by bidder overrides")):(Array.isArray(r.bids)&&r.bids.forEach((function(e){X(e,t.bidderCode,n)||ee(e,t,"bidder")})),e(n,t))}function te(e,n){var t=this,r=n.filter((function(e){return!$(t.bidders,e.bidderCode)||(Z("bidRequest '".concat(e.bidderCode,"' excluded from auction by bidder overrides")),!1)}));Array.isArray(t.bidRequests)&&r.forEach((function(e){t.bidRequests.forEach((function(n){e.bids.forEach((function(t){X(n,e.bidderCode,t.adUnitCode)||ee(n,t,"bidRequest")}))}))})),e(r)}var re=(0,E.z3)("sync",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.sessionStorage,r=void 0===t?window.sessionStorage:t;if(e.enabled)try{r.setItem(L,JSON.stringify(e))}catch(e){}else try{r.removeItem(L)}catch(e){}}));s.vc.getConfig("debugging",(function(e){return function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).sessionStorage,t=void 0===n?window.sessionStorage:n;re(e,{sessionStorage:t}),e.enabled?Q(e):Y()}(e.debugging)}));var ie=r(7263),oe=r(1477),ae=r(5849),ce=r(7602);function ue(){return ue=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ue.apply(this,arguments)}var de=(0,e.R)(),se=C.k_.triggerUserSyncs,fe=a.FP,le=fe.ADD_AD_UNITS,pe=fe.BID_WON,ge=fe.REQUEST_BIDS,ve=fe.SET_TARGETING,ye=fe.STALE_RENDER,be=a.q_,he=be.PREVENT_WRITING_ON_MAIN_DOCUMENT,me=be.NO_AD,we=be.EXCEPTION,Ce=be.CANNOT_FIND_AD,Ae=be.MISSING_DOC_OR_ADID,Se={bidWon:function(e){var t=c.K.getBidsRequested().map((function(e){return e.bids.map((function(e){return e.adUnitCode}))})).reduce(n.xH).filter(n.tT);if((0,n.r3)(t,e))return!0;(0,n.H)('The "'+e+'" placement is not defined.')}};function Ee(e,n,t){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=n,e.defaultView.frameElement.height=t)}function Te(e,t){var r=[];return(0,n.kJ)(e)&&(t?e.length===t:e.length>0)&&(e.every((function(e){return(0,n.HC)(e,2)}))?r=e:(0,n.HC)(e,2)&&r.push(e)),r}function Oe(e,r){var o=(0,t.Z)(e,"mediaTypes.".concat(r,".pos"));if(!(0,n.hj)(o)||isNaN(o)||!isFinite(o)){var c="Value of property 'pos' on ad unit ".concat(e.code," should be of type: Number");(0,n.yN)(c),i.j8(a.FP.AUCTION_DEBUG,{type:"WARNING",arguments:c}),delete e.mediaTypes[r].pos}return e}!function(e){var n;try{e=e||window.sessionStorage,n=JSON.parse(e.getItem(L))}catch(e){}n&&Q(n,!0)}(),de.bidderSettings=de.bidderSettings||{},de.libLoaded=!0,de.version="v6.26.0",(0,n.PN)("Prebid.js v6.26.0 loaded"),de.installedModules=de.installedModules||[],de.adUnits=de.adUnits||[],de.triggerUserSyncs=se;var Ie=(0,E.z3)("sync",(function(e){var t=[];return e.forEach((function(e){if(null!=(e=function(e){var t=function(n){return"adUnit.code '".concat(e.code,"' ").concat(n)},r=e.mediaTypes,i=e.bids;return null==i||(0,n.kJ)(i)?null==i&&null==e.ortb2Imp?((0,n.H)(t("has no 'adUnit.bids' and no 'adUnit.ortb2Imp'. Removing adUnit from auction")),null):r&&0!==Object.keys(r).length?(null==e.ortb2Imp||null!=i&&0!==i.length||(e.bids=[{bidder:null}],(0,n.ji)(t("defines 'adUnit.ortb2Imp' with no 'adUnit.bids'; it will be seen only by S2S adapters"))),e):((0,n.H)(t("does not define a 'mediaTypes' object.  This is a required field for the auction, so this adUnit has been removed.")),null):((0,n.H)(t("defines 'adUnit.bids' that is not an array. Removing adUnit from auction")),null)}(e))){var r,i,o,a=e.mediaTypes;a.banner&&(r=function(e){var t=(0,n.I8)(e),r=t.mediaTypes.banner,i=Te(r.sizes);return i.length>0?(r.sizes=i,t.sizes=i):((0,n.H)("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}(e),a.banner.hasOwnProperty("pos")&&(r=Oe(r,"banner"))),a.video&&(i=function(e){var t=(0,n.I8)(e),r=t.mediaTypes.video;if(r.playerSize){var i="number"==typeof r.playerSize[0]?2:1,o=Te(r.playerSize,i);o.length>0?(2===i&&(0,n.PN)("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),r.playerSize=o,t.sizes=o):((0,n.H)("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}(r||e),a.video.hasOwnProperty("pos")&&(i=Oe(i,"video"))),a.native&&(o=function(e){var t=(0,n.I8)(e),r=t.mediaTypes.native;return r.image&&r.image.sizes&&!Array.isArray(r.image.sizes)&&((0,n.H)("Please use an array of sizes for native.image.sizes field.  Removing invalid mediaTypes.native.image.sizes property from request."),delete t.mediaTypes.native.image.sizes),r.image&&r.image.aspect_ratios&&!Array.isArray(r.image.aspect_ratios)&&((0,n.H)("Please use an array of sizes for native.image.aspect_ratios field.  Removing invalid mediaTypes.native.image.aspect_ratios property from request."),delete t.mediaTypes.native.image.aspect_ratios),r.icon&&r.icon.sizes&&!Array.isArray(r.icon.sizes)&&((0,n.H)("Please use an array of sizes for native.icon.sizes field.  Removing invalid mediaTypes.native.icon.sizes property from request."),delete t.mediaTypes.native.icon.sizes),t}(i||r||e));var c=ue({},r,i,o);t.push(c)}})),t}),"checkAdUnitSetup");function je(e){var t=c.K[e]().filter(n.ak.call(n.IK,this,c.K.getAdUnitCodes())),r=c.K.getLastAuctionId();return t.map((function(e){return e.adUnitCode})).filter(n.tT).map((function(e){return t.filter((function(n){return n.auctionId===r&&n.adUnitCode===e}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return n={},r={bids:e},(t=e[0].adUnitCode)in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n;var n,t,r})).reduce((function(e,n){return ue(e,n)}),{})}function ke(e,t,r){var i=t.querySelector(r);e.parentNode&&e.parentNode===i||(0,n.jC)(e,t,r)}de.getAdserverTargetingForAdUnitCodeStr=function(e){if((0,n.PN)("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=de.getAdserverTargetingForAdUnitCode(e);return(0,n.Ob)(t)}(0,n.ji)("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},de.getHighestUnusedBidResponseForAdUnitCode=function(e){if(e){var t=c.K.getAllBidsForAdUnitCode(e).filter(x).filter(N);return t.length?t.reduce(n.ZH):{}}(0,n.ji)("Need to call getHighestUnusedBidResponseForAdUnitCode with adunitCode")},de.getAdserverTargetingForAdUnitCode=function(e){return de.getAdserverTargeting(e)[e]},de.getAdserverTargeting=function(e){return(0,n.PN)("Invoking pbjs.getAdserverTargeting",arguments),M.getAllTargeting(e)},de.getConsentMetadata=function(){return(0,n.PN)("Invoking pbjs.getConsentMetadata"),{gdpr:ce.rp.getConsentMeta(),usp:ce.nX.getConsentMeta(),coppa:!!s.vc.getConfig("coppa")}},de.getNoBids=function(){return(0,n.PN)("Invoking pbjs.getNoBids",arguments),je("getNoBids")},de.getNoBidsForAdUnitCode=function(e){return{bids:c.K.getNoBids().filter((function(n){return n.adUnitCode===e}))}},de.getBidResponses=function(){return(0,n.PN)("Invoking pbjs.getBidResponses",arguments),je("getBidsReceived")},de.getBidResponsesForAdUnitCode=function(e){return{bids:c.K.getBidsReceived().filter((function(n){return n.adUnitCode===e}))}},de.setTargetingForGPTAsync=function(e,t){if((0,n.PN)("Invoking pbjs.setTargetingForGPTAsync",arguments),(0,n.T9)()){var r=M.getAllTargeting(e);M.resetPresetTargeting(e,t),M.setTargetingForGPT(r,t),Object.keys(r).forEach((function(e){Object.keys(r[e]).forEach((function(n){"hb_adid"===n&&c.K.setStatusForBids(r[e][n],a.UE.CK)}))})),i.j8(ve,r)}else(0,n.H)("window.googletag is not defined on the page")},de.setTargetingForAst=function(e){(0,n.PN)("Invoking pbjs.setTargetingForAn",arguments),M.isApntagDefined()?(M.setTargetingForAst(e),i.j8(ve,M.getAllTargeting())):(0,n.H)("window.apntag is not defined on the page")},de.renderAd=(0,E.z3)("async",(function(e,r,o){if((0,n.PN)("Invoking pbjs.renderAd",arguments),(0,n.ji)("Calling renderAd with adId :"+r),e&&r)try{var u=c.K.findBidByAdId(r);if(u){var f=!0;if(u&&u.status===a.UE.fe&&((0,n.yN)("Ad id ".concat(u.adId," has been rendered before")),i.j8(ye,u),(0,t.Z)(s.vc.getConfig("auctionOptions"),"suppressStaleRender")&&(f=!1)),f){if(u.ad=(0,n.ew)(u.ad,u.originalCpm||u.cpm),u.adUrl=(0,n.ew)(u.adUrl,u.originalCpm||u.cpm),o&&o.clickThrough){var l=o.clickThrough;u.ad=(0,n.x_)(u.ad,l),u.adUrl=(0,n.x_)(u.adUrl,l)}c.K.addWinningBid(u),i.j8(pe,u);var p=u.height,y=u.width,b=u.ad,h=u.mediaType,m=u.adUrl,w=u.renderer,C=document.createComment("Creative ".concat(u.creativeId," served by ").concat(u.bidder," Prebid.js Header Bidding"));if((0,n.jC)(C,e,"html"),(0,d.Pd)(w))(0,d._U)(w,u,e),ke(C,e,"html"),v({doc:e,bid:u,id:r});else if(e===document&&!(0,n.yL)()||"video"===h){var A="Error trying to write ad. Ad render call ad id ".concat(r," was prevented from writing to the main document.");g({reason:he,message:A,bid:u,id:r})}else if(b)e.write(b),e.close(),Ee(e,y,p),ke(C,e,"html"),(0,n.R_)(u),v({doc:e,bid:u,id:r});else if(m){var S=(0,n.$u)();S.height=p,S.width=y,S.style.display="inline",S.style.overflow="hidden",S.src=m,(0,n.jC)(S,e,"body"),Ee(e,y,p),ke(C,e,"html"),(0,n.R_)(u),v({doc:e,bid:u,id:r})}else{var E="Error trying to write ad. No ad for bid response id: ".concat(r);g({reason:me,message:E,bid:u,id:r})}}}else{var T="Error trying to write ad. Cannot find ad by given id : ".concat(r);g({reason:Ce,message:T,id:r})}}catch(e){var O="Error trying to write ad Id :".concat(r," to the page:").concat(e.message);g({reason:we,message:O,id:r})}else{var I="Error trying to write ad Id :".concat(r," to the page. Missing document or adId");g({reason:Ae,message:I,id:r})}})),de.removeAdUnit=function(e){(0,n.PN)("Invoking pbjs.removeAdUnit",arguments),e?((0,n.kJ)(e)?e:[e]).forEach((function(e){for(var n=de.adUnits.length-1;n>=0;n--)de.adUnits[n].code===e&&de.adUnits.splice(n,1)})):de.adUnits=[]},de.requestBids=(0,E.z3)("async",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,r=e.timeout,o=e.adUnits,a=e.adUnitCodes,d=e.labels,f=e.auctionId;i.j8(ge);var l=r||s.vc.getConfig("bidderTimeout");o=o&&s.vc.convertAdUnitFpd((0,n.kJ)(o)?o:[o])||de.adUnits,(0,n.PN)("Invoking pbjs.requestBids",arguments);var p=(0,ce.uV)(s.vc.getConfig("s2sConfig")||[]);if(o=Ie(o),a&&a.length?o=o.filter((function(e){return(0,u.q9)(a,e.code)})):a=o&&o.map((function(e){return e.code})),o.forEach((function(e){var t=Object.keys(e.mediaTypes||{banner:"banner"}),r=e.bids.map((function(e){return e.bidder})),i=ce.ZP.bidderRegistry,o=r.filter((function(e){return!p.has(e)}));e.transactionId=(0,n.DO)(),o.forEach((function(r){var o=i[r],a=o&&o.getSpec&&o.getSpec(),c=a&&a.supportedMediaTypes||["banner"];t.some((function(e){return(0,u.q9)(c,e)}))?ie.f.incrementBidderRequestsCounter(e.code,r):((0,n.yN)((0,n.or)(e,r)),e.bids=e.bids.filter((function(e){return e.bidder!==r})))})),ie.f.incrementRequestsCounter(e.code)})),o&&0!==o.length){var g=c.K.createAuction({adUnits:o,adUnitCodes:a,callback:t,cbTimeout:l,labels:d,auctionId:f}),v=o.length;v>15&&(0,n.PN)("Current auction ".concat(g.getAuctionId()," contains ").concat(v," adUnits."),o),a.forEach((function(e){return M.setLatestAuctionForAdUnit(e,g.getAuctionId())})),g.callBids()}else if((0,n.ji)("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){(0,n.H)("Error executing bidsBackHandler",null,e)}})),de.requestBids.before((function(e,n){function t(e){for(var n;n=e.shift();)n()}t(ae.Ld),t(Be),e.call(this,n)}),49),de.addAdUnits=function(e){(0,n.PN)("Invoking pbjs.addAdUnits",arguments),de.adUnits.push.apply(de.adUnits,s.vc.convertAdUnitFpd((0,n.kJ)(e)?e:[e])),i.j8(le)},de.onEvent=function(e,t,r){(0,n.PN)("Invoking pbjs.onEvent",arguments),(0,n.LQ)(t)?!r||Se[e].call(null,r)?i.on(e,t,r):(0,n.H)('The id provided is not valid for event "'+e+'" and no handler was set.'):(0,n.H)('The event handler provided is not a function and was not set on event "'+e+'".')},de.offEvent=function(e,t,r){(0,n.PN)("Invoking pbjs.offEvent",arguments),r&&!Se[e].call(null,r)||i.S1(e,t,r)},de.getEvents=function(){return(0,n.PN)("Invoking pbjs.getEvents"),i.vw()},de.registerBidAdapter=function(e,t){(0,n.PN)("Invoking pbjs.registerBidAdapter",arguments);try{ce.ZP.registerBidAdapter(e(),t)}catch(e){(0,n.H)("Error registering bidder adapter : "+e.message)}},de.registerAnalyticsAdapter=function(e){(0,n.PN)("Invoking pbjs.registerAnalyticsAdapter",arguments);try{ce.ZP.registerAnalyticsAdapter(e)}catch(e){(0,n.H)("Error registering analytics adapter : "+e.message)}},de.createBid=function(e){return(0,n.PN)("Invoking pbjs.createBid",arguments),(0,oe.m)(e)};var Be=[],Ue=(0,E.z3)("async",(function(e){e&&!(0,n.xb)(e)?((0,n.PN)("Invoking pbjs.enableAnalytics for: ",e),ce.ZP.enableAnalytics(e)):(0,n.H)("pbjs.enableAnalytics should be called with option {}")}),"enableAnalyticsCb");function Pe(e){e.forEach((function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){(0,n.H)("Error processing command :","prebid.js",e)}}))}de.enableAnalytics=function(e){Be.push(Ue.bind(this,e))},de.aliasBidder=function(e,t,r){(0,n.PN)("Invoking pbjs.aliasBidder",arguments),e&&t?ce.ZP.aliasBidAdapter(e,t,r):(0,n.H)("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},de.getAllWinningBids=function(){return c.K.getAllWinningBids()},de.getAllPrebidWinningBids=function(){return c.K.getBidsReceived().filter((function(e){return e.status===a.UE.CK}))},de.getHighestCpmBids=function(e){return M.getWinningBids(e)},de.markWinningBidAsUsed=function(e){var t=[];e.adUnitCode&&e.adId?t=c.K.getBidsReceived().filter((function(n){return n.adId===e.adId&&n.adUnitCode===e.adUnitCode})):e.adUnitCode?t=M.getWinningBids(e.adUnitCode):e.adId?t=c.K.getBidsReceived().filter((function(n){return n.adId===e.adId})):(0,n.yN)("Improper use of markWinningBidAsUsed. It needs an adUnitCode or an adId to function."),t.length>0&&(t[0].status=a.UE.fe)},de.getConfig=s.vc.getConfig,de.readConfig=s.vc.readConfig,de.mergeConfig=s.vc.mergeConfig,de.mergeBidderConfig=s.vc.mergeBidderConfig,de.setConfig=s.vc.setConfig,de.setBidderConfig=s.vc.setBidderConfig,de.que.push((function(){window.addEventListener("message",m,!1)})),de.cmd.push=function(e){if("function"==typeof e)try{e.call()}catch(e){(0,n.H)("Error processing command :",e.message,e.stack)}else(0,n.H)("Commands written into pbjs.cmd.push must be wrapped in a function")},de.que.push=de.cmd.push,de.processQueue=function(){E.z3.ready(),Pe(de.que),Pe(de.cmd)}}(),i=r.O(i)}();
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[514],{2643:function(t,e,r){var n=r(1879),i=r(9853),a=r(265),o=r(8962),s=r(1125),u=r(6996),c=r(1582),d=r(5849),p=r(2661),f=r(2224),m=r(8265),l=r(4877),h=r(1929),y=r(2528);function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){b(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function b(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var A,I,T,O="adagio",D="Adagio:",x=[m.Mk,m.B5,m.pX],w="adagioScript",S=(0,d.df)({gvlid:617,bidderCode:O}),k={mimes:function(t){return Array.isArray(t)&&t.length>0&&t.every((function(t){return"string"==typeof t}))},minduration:function(t){return(0,i.U)(t)},maxduration:function(t){return(0,i.U)(t)},protocols:function(t){return Array.isArray(t)&&t.every((function(t){return-1!==[1,2,3,4,5,6,7,8,9,10].indexOf(t)}))},w:function(t){return(0,i.U)(t)},h:function(t){return(0,i.U)(t)},startdelay:function(t){return(0,i.U)(t)},placement:function(t){return Array.isArray(t)&&t.every((function(t){return-1!==[1,2,3,4,5].indexOf(t)}))},linearity:function(t){return-1!==[1,2].indexOf(t)},skip:function(t){return-1!==[0,1].indexOf(t)},skipmin:function(t){return(0,i.U)(t)},skipafter:function(t){return(0,i.U)(t)},sequence:function(t){return(0,i.U)(t)},battr:function(t){return Array.isArray(t)&&t.every((function(t){return-1!==Array.from({length:17},(function(t,e){return e+1})).indexOf(t)}))},maxextended:function(t){return(0,i.U)(t)},minbitrate:function(t){return(0,i.U)(t)},maxbitrate:function(t){return(0,i.U)(t)},boxingallowed:function(t){return-1!==[0,1].indexOf(t)},playbackmethod:function(t){return Array.isArray(t)&&t.every((function(t){return-1!==[1,2,3,4,5,6].indexOf(t)}))},playbackend:function(t){return-1!==[1,2,3].indexOf(t)},delivery:function(t){return-1!==[1,2,3].indexOf(t)},pos:function(t){return-1!==[0,1,2,3,4,5,6,7].indexOf(t)},api:function(t){return Array.isArray(t)&&t.every((function(t){return-1!==[1,2,3,4,5,6].indexOf(t)}))}},E=(T={},{clearFeatures:function(){I=void 0},clearExchangeData:function(){T={}},getOrSetGlobalFeatures:function(){return I||(I={page_dimensions:B().toString(),viewport_dimensions:q().toString(),user_timestamp:(Math.floor((new Date).getTime()/1e3)-60*(new Date).getTimezoneOffset()).toString(),dom_loading:V().toString()}),I},prepareExchangeData:function(t){var e=JSON.parse(t,(function(t,e){if("_"!==t.charAt(0)||""===t)return e})),r=(0,a.Z)(e,"session.rnd"),n=!1;N.isNewSession(e)&&(n=!0,r=Math.random());var o={session:{new:n,rnd:r}};(0,i.Ee)(T,e,o),N.enqueue({action:"session",ts:Date.now(),data:T})},getExchangeData:function(){return T}});function U(){try{if((0,i.Zy)().location.href)return!0}catch(t){return!1}}function C(){return A||(0,i.e7)()}function R(){var t=(0,i.e7)();return!(!t.$sf||!t.$sf.ext)}function j(t){var e=N.isRendererPreferredFromPublisher(t)?"other":"adagio";return"other"===e&&(0,i.yN)("".concat(D," renderer.backupOnly has not been set. Adagio recommends to use its own player to get expected behavior.")),e}var N={enqueue:function(t){var e=N.getCurrentWindow();e.ADAGIO=e.ADAGIO||{},e.ADAGIO.queue=e.ADAGIO.queue||[],e.ADAGIO.queue.push(t)},getPageviewId:function(){var t=N.getCurrentWindow();return t.ADAGIO=t.ADAGIO||{},t.ADAGIO.pageviewId=t.ADAGIO.pageviewId||(0,i.DO)(),t.ADAGIO.pageviewId},getDevice:function(){var t=navigator.language?"language":"userLanguage";return{userAgent:navigator.userAgent,language:navigator[t],dnt:(0,i.oV)()?1:0,geo:{},js:1}},getSite:function(t){var e=t.refererInfo;return{domain:(0,i.en)(e.referer).hostname||"",page:e.referer||"",referrer:U()?(0,i.Zy)().document.referrer||"":(0,i.e7)().document.referrer||"",top:e.reachedTop}},getElementFromTopWindow:function t(e,r){try{if((0,i.Zy)()===r)return e.getAttribute("id")||e.setAttribute("id","adg-".concat((0,i._d)())),e;var n=r.frameElement,a=n.getBoundingClientRect(),o=e.getBoundingClientRect();return a.width===o.width&&a.height===o.height&&t(n,r.parent)}catch(t){return(0,i.yN)("".concat(D),t),!1}},getRefererInfo:p.n,adagioScriptFromLocalStorageCb:function(t){try{if(!t)return void(0,i.yN)("".concat(D," script not found."));var e=/^(\/\/ hash: (.+)\n)(.+\n)$/;if(e.test(t)){var r=t.match(e),n=r[2],a=r[3];(0,c.T)(a,n,"AL16XT44Sfp+8SHVF1UdC7hydPSMVLMhsYknKDdwqq+0ToDSJrP0+Qh0ki9JJI2uYm/6VEYo8TJED9WfMkiJ4vf02CW3RvSWwc35bif2SK1L8Nn/GfFYr/2/GG/Rm0vUsv+vBHky6nuuYls20Og0HDhMgaOlXoQ/cxMuiy5QSktp",65537)?((0,i.PN)("".concat(D," start script.")),Function(t)()):((0,i.yN)("".concat(D," invalid script found.")),S.removeDataFromLocalStorage(w))}else(0,i.yN)("".concat(D," no hash found.")),S.removeDataFromLocalStorage(w)}catch(t){(0,i.H)(D,t)}},getCurrentWindow:C,canAccessTopWindow:U,isRendererPreferredFromPublisher:function(t){var e=(0,a.Z)(t,"renderer"),r=!!(e&&e.url&&e.render),n=(0,a.Z)(t,"mediaTypes.video.renderer"),i=!!(n&&n.url&&n.render);return!!(r&&!0!==e.backupOnly||i&&!0!==n.backupOnly)},isNewSession:function(t){var e=Date.now(),r=(0,a.Z)(t,"session",{}),n=r.lastActivityTime,o=r.vwSmplg;return!(0,i.hj)(n)||!(0,i.hj)(o)||e-n>18e5}};function P(t){t.renderer.push((function(){"function"==typeof window.ADAGIO.outstreamPlayer?window.ADAGIO.outstreamPlayer(t):(0,i.H)("".concat(D," Adagio outstream player is not defined"))}))}function M(t,e){if(t.params=t.params||{},!t.params[e]){var r=o.vc.getConfig("adagio")||{},n=o.vc.getConfig("ortb2"),i=r[e]||(0,a.Z)(n,"site.ext.data.".concat(e),null);i&&(t.params[e]=i)}}function Z(t){var e=o.vc.getConfig("adagio")||{};t.params=t.params||{},e.siteId&&(t.params.organizationId=e.siteId.split(":")[0],t.params.site=e.siteId.split(":")[1]),!0!==e.useAdUnitCodeAsPlacement&&!0!==t.params.useAdUnitCodeAsPlacement||(t.params.placement=t.adUnitCode),t.params.adUnitElementId=(0,a.Z)(t,"ortb2Imp.ext.data.elementId",null)||t.params.adUnitElementId,t.params.adUnitElementId||(!0===e.useAdUnitCodeAsAdUnitElementId||!0===t.params.useAdUnitCodeAsAdUnitElementId?t.params.adUnitElementId=t.adUnitCode:t.params.adUnitElementId=function(t){var e=(0,i.ky)(t);if(e.divId)return e.divId}(t.adUnitCode)),M(t,"environment"),M(t,"pagetype"),M(t,"category"),M(t,"subcategory")}function B(){if(R()||!U())return"";var t=(0,i.Zy)(),e=t.document.querySelector("body");if(!e)return"";var r=t.document.documentElement,n=Math.max(e.scrollWidth,e.offsetWidth,r.clientWidth,r.scrollWidth,r.offsetWidth),a=Math.max(e.scrollHeight,e.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);return"".concat(n,"x").concat(a)}function q(){if(!R()&&!U())return"";var t={w:0,h:0};if(R()){var e=(0,i.e7)();if("function"!=typeof e.$sf.ext.geom)return(0,i.yN)(D,"Unable to compute from safeframe api."),"";var r=e.$sf.ext.geom();if(!r||!r.win)return(0,i.yN)(D,"Unable to compute from safeframe api. Missing `geom().win` property"),"";t.w=Math.round(r.w),t.h=Math.round(r.h)}else{var n=(0,i.Zy)();t.w=n.innerWidth,t.h=n.innerHeight}return"".concat(t.w,"x").concat(t.h)}function z(t){if(!t)return"";if(!R()&&!U())return"";var e={x:0,y:0};if(R()){var r=(0,i.e7)();if("function"!=typeof r.$sf.ext.geom)return(0,i.yN)(D,"Unable to compute from safeframe api."),"";var n=r.$sf.ext.geom();if(!n||!n.self)return(0,i.yN)(D,"Unable to compute from safeframe api. Missing `geom().self` property"),"";e.x=Math.round(n.t),e.y=Math.round(n.l)}else{if(!U())return"";var a,o=(0,i.Zy)(),s=o.document;if(!0===(0,i.yL)()){var u=(0,i.e7)(),c=u.document.getElementById(t);a=N.getElementFromTopWindow(c,u)}else a=o.document.getElementById(t);if(!a)return"";var d=a.getBoundingClientRect(),p=s.documentElement,f=s.body,m=s.clientTop||f.clientTop||0,l=s.clientLeft||f.clientLeft||0,h=o.pageYOffset||p.scrollTop||f.scrollTop,y=o.pageXOffset||p.scrollLeft||f.scrollLeft,g=o.getComputedStyle(a,null).display||"block";"none"===g&&(a.style=a.style||{},a.style.display="block",d=a.getBoundingClientRect(),a.style.display=g),e.x=Math.round(d.left+y-l),e.y=Math.round(d.top+h-m)}return"".concat(e.x,"x").concat(e.y)}function G(t,e){return e.bids&&e.bids.length&&(0,n.sE)(e.bids,(function(e){return e.adUnitCode===t})).bidderRequestsCount||1}function V(){var t,e=-1;if((t=U()?(0,i.Zy)().performance:(0,i.e7)().performance)&&t.timing&&t.timing.navigationStart>0){var r=t.timing.domLoading-t.timing.navigationStart;r>0&&(e=r)}return e}function F(t){var e,r=C();r.ADAGIO=r.ADAGIO||{},r.ADAGIO.pbjsAdUnits=r.ADAGIO.pbjsAdUnits.filter((function(e){return e.code!==t.adUnitCode})),t.features&&t.features.print_number?e=t.features.print_number:t.params.features&&t.params.features.print_number&&(e=t.params.features.print_number),r.ADAGIO.pbjsAdUnits.push({code:t.adUnitCode,mediaTypes:t.mediaTypes||{},sizes:t.mediaTypes&&t.mediaTypes.banner&&Array.isArray(t.mediaTypes.banner.sizes)?t.mediaTypes.banner.sizes:t.sizes,bids:[{bidder:t.bidder,params:t.params}],auctionId:t.auctionId,pageviewId:N.getPageviewId(),printNumber:e,localPbjs:"pbjs",localPbjsRef:(0,y.R)()}),r.ADAGIO.adUnits[t.adUnitCode]={auctionId:t.auctionId,pageviewId:N.getPageviewId(),printNumber:e}}var H={code:O,gvlid:617,supportedMediaTypes:x,isBidRequestValid:function(t){return t.params=t.params||{},Z(t),!!(t.params.organizationId&&t.params.site&&t.params.placement)||((0,i.yN)("".concat(D," at least one required param is missing.")),!1)},buildRequests:function(t,e){var r,n="https:"===location.protocol?1:0,s=N.getDevice(),u=N.getSite(e),c=N.getPageviewId(),d=function(t){if(!(0,a.Z)(t,"gdprConsent"))return!1;var e=t.gdprConsent,r=e.apiVersion,n=e.gdprApplies,o=e.consentString,s=e.allowAuctionWithoutConsent;return(0,i.fz)({apiVersion:r,consentString:o,consentRequired:n?1:0,allowAuctionWithoutConsent:s?1:0})}(e)||{},p=function(t){return!!(0,a.Z)(t,"uspConsent")&&{uspConsent:t.uspConsent}}(e)||{},l={required:!0===o.vc.getConfig("coppa")?1:0},y=(r=t[0],(0,a.Z)(r,"schain")),g=function(t){if((0,a.Z)(t,"userId"))return(0,f.HQ)(t.userId)}(t[0])||[],b=(0,i.HA)(t,(function(t){var r=v(v({},E.getOrSetGlobalFeatures()),{},{print_number:G(t.adUnitCode,e).toString(),adunit_position:z(t.params.adUnitElementId)});Object.keys(r).forEach((function(t){""===r[t]&&delete r[t]})),t.features=r,N.enqueue({action:"features",ts:Date.now(),data:{features:t.features,params:t.params,adUnitCode:t.adUnitCode}});var n=function(t){if(!(0,i.LQ)(t.getFloor))return!1;var e=[],r=function(r,n){var a=t.getFloor({currency:"USD",mediaType:r,size:n});e.push((0,i.fz)({mt:r,s:(0,i.kJ)(n)?"".concat(n[0],"x").concat(n[1]):void 0,f:isNaN(a.floor)||"USD"!==a.currency?void 0:a.floor}))};return Object.keys(t.mediaTypes).forEach((function(e){if(-1!==x.indexOf(e)){var n=e===m.pX?"playerSize":"sizes";t.mediaTypes[e][n]&&t.mediaTypes[e][n].length?(0,i.kJ)(t.mediaTypes[e][n][0])?t.mediaTypes[e][n].forEach((function(t){r(e,[t[0],t[1]])})):r(e,[t.mediaTypes[e][n][0],t.mediaTypes[e][n][1]]):r(e,"*")}})),e}(t);if((0,i.kJ)(n)&&n.length){if(t.floors=n,(0,a.Z)(t,"mediaTypes.banner")){var o=t.mediaTypes.banner,s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r={size:e,floor:null},n=t.floors.filter((function(t){return t.mt===m.Mk})),i=n.find((function(t){return t.s===e.join("x")}));return r.floor=n?i?i.f:n[0].f:null,r};t.mediaTypes.banner.bannerSizes=(0,i.kJ)(o.sizes[0])?o.sizes.map((function(t){return s(t)})):s(o.sizes)}if((0,a.Z)(t,"mediaTypes.video")){var u=t.mediaTypes.video,c=t.floors.filter((function(t){return t.mt===m.pX})),d=u.playerSize&&(0,i.kJ)(u.playerSize[0])?u.playerSize[0]:u.playerSize,p=d?c.find((function(t){return t.s===d.join("x")})):void 0;t.mediaTypes.video.floor=c?p?p.f:c[0].f:null}if((0,a.Z)(t,"mediaTypes.native")){var f=t.floors.filter((function(t){return t.mt===m.B5}));f.length&&(t.mediaTypes.native.floor=f[0].f)}}return(0,a.Z)(t,"mediaTypes.video")&&function(t){var e=(0,a.Z)(t,"mediaTypes.video",{}),r=(0,a.Z)(t,"params.video",{}),n={};if(Array.isArray(e.playerSize)){var o=Array.isArray(e.playerSize[0])?e.playerSize[0]:e.playerSize;n.w=o[0],n.h=o[1]}var s=v(v(v({},n),e),r);s.context&&s.context===h.gZ&&(t.mediaTypes.video.playerName=j(t)),Object.keys(k).forEach((function(e){s.hasOwnProperty(e)&&(k[e](s[e])?t.mediaTypes.video[e]=s[e]:(delete t.mediaTypes.video[e],(0,i.yN)("".concat(D," The OpenRTB video param ").concat(e," has been skipped due to misformating. Please refer to OpenRTB 2.5 spec."))))}))}(t),F(t),t})),A=b.reduce((function(t,e){var r=(0,i.I8)(e);return r.params.organizationId=r.params.organizationId.toString(),delete r.floorData,delete r.params.siteId,delete r.userId,delete r.userIdAsEids,t[r.params.organizationId]=t[r.params.organizationId]||[],t[r.params.organizationId].push(r),t}),{});return(0,i.HA)(Object.keys(A),(function(t){return{method:"POST",url:"https://mp.4dex.io/prebid",data:{id:(0,i.DO)(),organizationId:t,secure:n,device:s,site:u,pageviewId:c,adUnits:A[t],data:E.getExchangeData(),regs:{gdpr:d,coppa:l,ccpa:p},schain:y,user:{eids:g},prebidVersion:"6.26.0",featuresVersion:"1"},options:{contentType:"text/plain"}}}))},interpretResponse:function(t,e){var r=[];try{var o=t.body;o&&(o.data&&N.enqueue({action:"ssp-data",ts:Date.now(),data:o.data}),o.bids&&o.bids.forEach((function(t){var o=(0,n.sE)(e.data.adUnits,(function(e){return e.bidId===t.requestId}));if(o){if(t.meta=(0,a.Z)(t,"meta",{}),t.meta.mediaType=t.mediaType,t.meta.advertiserDomains=Array.isArray(t.aDomain)&&t.aDomain.length?t.aDomain:[],t.mediaType===m.pX){var s=(0,a.Z)(o,"mediaTypes.video.context");!t.vastUrl&&t.vastXml&&(t.vastUrl="data:text/xml;charset=utf-8;base64,"+btoa(t.vastXml.replace(/\\"/g,'"'))),s===h.gZ&&(t.renderer=l.Th.install({id:t.requestId,adUnitCode:t.adUnitCode,url:t.urlRenderer||"https://script.4dex.io/outstream-player.js",config:v(v({},(0,a.Z)(o,"mediaTypes.video")),(0,a.Z)(t,"outstream",{}))}),t.renderer.setRender(P))}t.mediaType===m.B5&&function(t){if(t.admNative&&Array.isArray(t.admNative.assets)){var e={};t.admNative.assets.forEach((function(t){var r,n;t.title?e.title=t.title.text:t.data?(r=t.data,(n={1:"sponsoredBy",2:"body",3:"rating",4:"likes",5:"downloads",6:"price",7:"salePrice",8:"phone",9:"address",10:"body2",11:"displayUrl",12:"cta"}).hasOwnProperty(r.type)&&"string"==typeof r.value&&(e[n[r.type]]=r.value)):t.img&&(1===t.img.type?e.icon={url:t.img.url,width:t.img.w,height:t.img.h}:e.image={url:t.img.url,width:t.img.w,height:t.img.h})})),t.admNative.link&&(t.admNative.link.url&&(e.clickUrl=t.admNative.link.url),Array.isArray(t.admNative.link.clicktrackers)&&(e.clickTrackers=t.admNative.link.clicktrackers)),Array.isArray(t.admNative.eventtrackers)?(e.impressionTrackers=[],t.admNative.eventtrackers.forEach((function(t){if(1===t.event)switch(t.method){case 1:e.impressionTrackers.push(t.url);break;case 2:e.javascriptTrackers='<script src="'.concat(t.url,'"><\/script>')}}))):(e.impressionTrackers=Array.isArray(t.admNative.imptrackers)?t.admNative.imptrackers:[],t.admNative.jstracker&&(e.javascriptTrackers=t.admNative.jstracker)),t.admNative.privacy&&(e.privacyLink=t.admNative.privacy),t.admNative.ext&&(e.ext={},t.admNative.ext.bvw&&(e.ext.adagio_bvw=t.admNative.ext.bvw)),t.native=e}else(0,i.H)("".concat(D," Invalid native response"))}(t),t.site=o.params.site,t.placement=o.params.placement,t.pagetype=o.params.pagetype,t.category=o.params.category,t.subcategory=o.params.subcategory,t.environment=o.params.environment}r.push(t)})))}catch(t){(0,i.H)(t)}return r},getUserSyncs:function(t,e){return!(!e.length||""===e[0].body||!e[0].body.userSyncs)&&e[0].body.userSyncs.map((function(t){return{type:"p"===t.t?"image":"iframe",url:t.u}}))},transformBidParams:function(t,e,r,i){var o=(0,n.sE)(i,(function(t){return"adagio"===t.bidderCode})),s=(0,n.sE)(o.bids,(function(t){return t.adUnitCode===r.code}));if(e){Z(s),s.params.auctionId=(0,a.Z)(o,"auctionId");var u=E.getOrSetGlobalFeatures();s.params.features=v(v({},u),{},{print_number:G(s.adUnitCode,o).toString(),adunit_position:z(s.params.adUnitElementId)}),s.params.pageviewId=N.getPageviewId(),s.params.prebidVersion="6.26.0",s.params.data=E.getExchangeData(),(0,a.Z)(s,"mediaTypes.video.context")===h.gZ&&(s.params.playerName=j(s)),F(s)}return s.params}};!function(){U()&&(A=U()?(0,i.Zy)():(0,i.e7)());var t=N.getCurrentWindow();t.ADAGIO=t.ADAGIO||{},t.ADAGIO.adUnits=t.ADAGIO.adUnits||{},t.ADAGIO.pbjsAdUnits=t.ADAGIO.pbjsAdUnits||[],t.ADAGIO.queue=t.ADAGIO.queue||[],t.ADAGIO.versions=t.ADAGIO.versions||{},t.ADAGIO.versions.pbjs="6.26.0",t.ADAGIO.isSafeFrameWindow=R(),S.getDataFromLocalStorage("adagio",(function(t){try{E.prepareExchangeData(t)}catch(t){(0,i.H)(D,t)}})),S.getDataFromLocalStorage(w,(function(t){N.adagioScriptFromLocalStorageCb(t)})),S.localStorageIsEnabled((function(t){if(t)(0,u.B)("https://script.4dex.io/localstore.js",O);else try{window.localStorage.removeItem(w),window.localStorage.removeItem("adagio")}catch(t){(0,i.PN)("".concat(D," unable to clear Adagio scripts from localstorage."))}}))}(),(0,s.dX)(H),window.pbjs.installedModules.push("adagioBidAdapter")},2224:function(t,e,r){r.d(e,{HQ:function(){return s},Pv:function(){return u},UR:function(){return a}});var n=r(9853),i=r(265),a={trustpid:{source:"trustpid.com",atype:1,getValue:function(t){return t}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(t){return t.uid},source:"id5-sync.com",atype:1,getUidExt:function(t){if(t.ext)return t.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(t){return t.uid},getUidExt:function(t){if(t.ext)return t.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(t){return t.eid?t.eid:t.ccpaOptout?"":null},getUidExt:function(t){var e=(0,n.ei)(t,["ibaOptout","ccpaOptout"]);if(Object.keys(e).length)return e}},idl_env:{source:"liveramp.com",atype:3},lipb:{getValue:function(t){return t.lipbid},source:"liveintent.com",atype:3,getEidExt:function(t){if(Array.isArray(t.segments)&&t.segments.length)return{segments:t.segments}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(t){return t.id},getUidExt:function(t){return t&&t.keyID?{keyID:t.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(t){return t.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(t){return t.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(t){return t.envelope}},gravitompId:{source:"gravito.net",atype:1}};function o(t,e){var r=a[e];if(r&&t){var i={};i.source=r.source;var o=(0,n.LQ)(r.getValue)?r.getValue(t):t;if((0,n.d8)(o)){var s={id:o,atype:r.atype};if((0,n.LQ)(r.getUidExt)){var u=r.getUidExt(t);u&&(s.ext=u)}if(i.uids=[s],(0,n.LQ)(r.getEidExt)){var c=r.getEidExt(t);c&&(i.ext=c)}return i}}return null}function s(t){var e=[];for(var r in t)if(t.hasOwnProperty(r))if("pubProvidedId"===r)e=e.concat(t.pubProvidedId);else{var n=o(t[r],r);n&&e.push(n)}return e}function u(t){var e=[];return t.filter((function(t){return(0,n.PO)(t.idObj)&&Object.keys(t.idObj).length})).forEach((function(t){Object.keys(t.idObj).forEach((function(r){(0,i.Z)(t,"config.bidders")&&Array.isArray(t.config.bidders)&&(0,i.Z)(a,r+".source")&&e.push({source:a[r].source,bidders:t.config.bidders})}))})),e}},4611:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t){null!==t&&this.fromHexString(t)}return t.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var t,e=!1,r="",n=this.t,i=this.DB-n*this.DB%4;if(n-- >0)for(i<this.DB&&(t=this[n]>>i)>0&&(e=!0,r=d(t));n>=0;)i<4?(t=(this[n]&(1<<i)-1)<<4-i,t|=this[--n]>>(i+=this.DB-4)):(t=this[n]>>(i-=4)&15,i<=0&&(i+=this.DB,--n)),t>0&&(e=!0),e&&(r+=d(t));return e?r:"0"},t.prototype.fromHexString=function(e){if(null!==e){this.t=0,this.s=0;for(var r=e.length,n=!1,i=0;--r>=0;){var a=c(e,r);a<0?"-"==e.charAt(r)&&(n=!0):(n=!1,0==i?this[this.t++]=a:i+4>this.DB?(this[this.t-1]|=(a&(1<<this.DB-i)-1)<<i,this[this.t++]=a>>this.DB-i):this[this.t-1]|=a<<i,(i+=4)>=this.DB&&(i-=this.DB))}this.clamp(),n&&t.ZERO.subTo(this,this)}},t.prototype.negate=function(){var e=i();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.mod=function(e){var r=i();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,n=this.DB-r,i=(1<<n)-1,a=Math.floor(t/this.DB),o=this.s<<r&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>n|o,o=(this[s]&i)<<r;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},t.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var n=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,n,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},t.prototype.multiplyTo=function(e,r){var n=this.abs(),i=e.abs(),a=n.t;for(r.t=a+i.t;--a>=0;)r[a]=0;for(a=0;a<i.t;++a)r[a+n.t]=n.am(0,i[a],r,a,0,n.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.divRemTo=function(e,r,n){var o=e.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=r&&r.fromHexString("0"),void(null!=n&&this.copyTo(n));null==n&&(n=i());var u=i(),c=this.s,d=e.s,p=this.DB-a(o[o.t-1]);p>0?(o.lShiftTo(p,u),s.lShiftTo(p,n)):(o.copyTo(u),s.copyTo(n));var f=u.t,m=u[f-1];if(0!=m){var l=m*(1<<this.F1)+(f>1?u[f-2]>>this.F2:0),h=this.FV/l,y=(1<<this.F1)/l,g=1<<this.F2,v=n.t,b=v-f,A=null==r?i():r;for(u.dlShiftTo(b,A),n.compareTo(A)>=0&&(n[n.t++]=1,n.subTo(A,n)),t.ONE.dlShiftTo(f,A),A.subTo(u,u);u.t<f;)u[u.t++]=0;for(;--b>=0;){var I=n[--v]==m?this.DM:Math.floor(n[v]*h+(n[v-1]+g)*y);if((n[v]+=u.am(0,I,n,b,0,f))<I)for(u.dlShiftTo(b,A),n.subTo(A,n);n[v]<--I;)n.subTo(A,n)}null!=r&&(n.drShiftTo(f,r),c!=d&&t.ZERO.subTo(r,r)),n.t=f,n.clamp(),p>0&&n.rShiftTo(p,n),c<0&&t.ZERO.subTo(n,n)}}},t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var n=t%this.DB,i=this.DB-n,a=(1<<n)-1;e[0]=this[r]>>n;for(var o=r+1;o<this.t;++o)e[o-r-1]|=(this[o]&a)<<i,e[o-r]=this[o]>>n;n>0&&(e[this.t-r-1]|=(this.s&a)<<i),e.t=this.t-r,e.clamp()}},t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.subTo=function(t,e){for(var r=0,n=0,i=Math.min(t.t,this.t);r<i;)n+=this[r]-t[r],e[r++]=n&this.DM,n>>=this.DB;if(t.t<this.t){for(n-=t.s;r<this.t;)n+=this[r],e[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<t.t;)n-=t[r],e[r++]=n&this.DM,n>>=this.DB;n-=t.s}e.s=n<0?-1:0,n<-1?e[r++]=this.DV+n:n>0&&(e[r++]=n),e.t=r,e.clamp()},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new p(e):new f(e),this.exp(t,r)},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var n=i(),o=i(),s=r.convert(this),u=a(e)-1;for(s.copyTo(n);--u>=0;)if(r.sqrTo(n,o),(e&1<<u)>0)r.mulTo(o,s,n);else{var c=n;n=o,o=c}return r.revert(n)},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},t.prototype.am1=function(t,e,r,n,i,a){for(;--a>=0;){var o=e*this[t++]+r[n]+i;i=Math.floor(o/67108864),r[n++]=67108863&o}return i},t.prototype.am2=function(t,e,r,n,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var u=32767&this[t],c=this[t++]>>15,d=s*u+c*o;i=((u=o*u+((32767&d)<<15)+r[n]+(1073741823&i))>>>30)+(d>>>15)+s*c+(i>>>30),r[n++]=1073741823&u}return i},t.prototype.am3=function(t,e,r,n,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var u=16383&this[t],c=this[t++]>>14,d=s*u+c*o;i=((u=o*u+((16383&d)<<14)+r[n]+i)>>28)+(d>>14)+s*c,r[n++]=268435455&u}return i},t}();function i(){return new n(null)}function a(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}e.BigInteger=n,e.nbi=i,e.nbits=a;var o,s,u=[];for(o="0".charCodeAt(0),s=0;s<=9;++s)u[o++]=s;for(o="a".charCodeAt(0),s=10;s<36;++s)u[o++]=s;for(o="A".charCodeAt(0),s=10;s<36;++s)u[o++]=s;function c(t,e){var r=u[t.charCodeAt(e)];return null==r?-1:r}function d(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}e.intAt=c,e.int2char=d,e.b64toHex=function(t){var e,r="",n=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(e));a<0||(0==n?(r+=d(a>>2),i=3&a,n=1):1==n?(r+=d(i<<2|a>>4),i=15&a,n=2):2==n?(r+=d(i),r+=d(a>>2),i=3&a,n=3):(r+=d(i<<2|a>>4),r+=d(15&a),n=0))}return 1==n&&(r+=d(i<<2)),r},e.removeExtraSymbols=function(t){return t.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var p=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),f=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=i();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(n.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=i();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],n=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,n,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function m(t){var e=i();return e.fromHexString(t.toString()),e}e.nbv=m,n.ZERO=m(0),n.ONE=m(1),"Microsoft Internet Explorer"==navigator.appName?(n.prototype.am=n.prototype.am2,r=30):"Netscape"!=navigator.appName?(n.prototype.am=n.prototype.am1,r=26):(n.prototype.am=n.prototype.am3,r=28),n.prototype.DB=r,n.prototype.DM=(1<<r)-1,n.prototype.DV=1<<r,n.prototype.FV=Math.pow(2,52),n.prototype.F1=52-r,n.prototype.F2=2*r-52},4950:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.hash=function(e){e=t.utf8Encode(e||"");for(var r=[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],n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=(e+=String.fromCharCode(128)).length/4+2,a=Math.ceil(i/16),o=new Array(a),s=0;s<a;s++){o[s]=new Array(16);for(var u=0;u<16;u++)o[s][u]=e.charCodeAt(64*s+4*u)<<24|e.charCodeAt(64*s+4*u+1)<<16|e.charCodeAt(64*s+4*u+2)<<8|e.charCodeAt(64*s+4*u+3)<<0}var c=8*(e.length-1)/Math.pow(2,32),d=8*(e.length-1)>>>0;for(o[a-1][14]=Math.floor(c),o[a-1][15]=d,s=0;s<a;s++){for(var p=new Array(64),f=0;f<16;f++)p[f]=o[s][f];for(f=16;f<64;f++)p[f]=t.q1(p[f-2])+p[f-7]+t.q0(p[f-15])+p[f-16]>>>0;var m=n[0],l=n[1],h=n[2],y=n[3],g=n[4],v=n[5],b=n[6],A=n[7];for(f=0;f<64;f++){var I=A+t.z1(g)+t.Ch(g,v,b)+r[f]+p[f],T=t.z0(m)+t.Maj(m,l,h);A=b,b=v,v=g,g=y+I>>>0,y=h,h=l,l=m,m=I+T>>>0}n[0]=n[0]+m>>>0,n[1]=n[1]+l>>>0,n[2]=n[2]+h>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+g>>>0,n[5]=n[5]+v>>>0,n[6]=n[6]+b>>>0,n[7]=n[7]+A>>>0}var O=new Array(n.length);for(A=0;A<n.length;A++)O[A]=("00000000"+n[A].toString(16)).slice(-8);return O.join("")},t.utf8Encode=function(t){try{return(new TextEncoder).encode(t).reduce((function(t,e){return t+String.fromCharCode(e)}),"")}catch(e){return unescape(encodeURIComponent(t))}},t.ROTR=function(t,e){return e>>>t|e<<32-t},t.z0=function(e){return t.ROTR(2,e)^t.ROTR(13,e)^t.ROTR(22,e)},t.z1=function(e){return t.ROTR(6,e)^t.ROTR(11,e)^t.ROTR(25,e)},t.q0=function(e){return t.ROTR(7,e)^t.ROTR(18,e)^e>>>3},t.q1=function(e){return t.ROTR(17,e)^t.ROTR(19,e)^e>>>10},t.Ch=function(t,e,r){return t&e^~t&r},t.Maj=function(t,e,r){return t&e^t&r^e&r},t}();e.Sha256=r},1582:function(t,e,r){var n=r(4611),i=r(4950);e.T=function(t,e,r,a){var o=new n.BigInteger(n.b64toHex(e)),s=new n.BigInteger(n.b64toHex(r)),u=o.modPowInt(a,s);return n.removeExtraSymbols(u.toHexString())===i.Sha256.hash(t)}}},function(t){t(t.s=2643)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[645],{4666:function(e,r,t){var n=t(1125),i=t(8265),a=t(9853),o=t(265),d=t(4806),s=t(8962),u=t(4877);function p(e,r){if(e){if("string"==typeof e)return c(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,r):void 0}}function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function l(e){return l="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},l(e)}var f=s.vc.getConfig,m={0:"title",2:"icon",3:"image",5:"sponsoredBy",4:"body",1:"cta"},y={title:{id:0,name:"title"},icon:{id:2,type:1,name:"img"},image:{id:3,type:3,name:"img"},sponsoredBy:{id:5,name:"data",type:1},body:{id:4,name:"data",type:2},cta:{id:1,type:12,name:"data"}},v={code:"adf",aliases:[{code:"adformOpenRTB",gvlid:50},{code:"adform",gvlid:50}],gvlid:50,supportedMediaTypes:[i.B5,i.Mk,i.pX],isBidRequestValid:function(e){var r=e.params||{},t=r.mid,n=r.inv,i=r.mname;return!!(t||n&&i)},buildRequests:function(e,r){var t,n,i=f("ortb2")||{},u=i.user;"object"===l(f("app"))?(t=f("app")||{},i.app&&(0,a.Ee)(t,i.app)):(n=f("site")||{},i.site&&(0,a.Ee)(n,i.site),n.page||(n.page=r.refererInfo.referer));var c=f("device")||{};c.w=c.w||window.innerWidth,c.h=c.h||window.innerHeight,c.ua=c.ua||navigator.userAgent;var m=b(e,"params.adxDomain")||"adx.adform.net",v=b(e,"params.pt")||b(e,"params.priceType")||"net",g=e[0].transactionId,w=b(e,"params.test"),S=f("currency.adServerCurrency"),x=S&&[S],A=b(e,"userIdAsEids"),I=b(e,"schain"),T=e.map((function(e,r){e.netRevenue=v;var t=e.getFloor?e.getFloor({currency:S||"USD"}):{},n=t.floor,i=t.currency,d=e.params,s={id:r+1,tagid:d.mid,bidfloor:n,bidfloorcur:i,ext:{bidder:{inv:d.inv,mname:d.mname}}},u=(0,a.HA)(e.nativeParams,(function(e,r){var t=y[r],n={required:1&e.required};if(t){var i,a,o,d;n.id=t.id;var s=e.aspect_ratios;if(s&&s[0]&&(i=(s=s[0]).min_width||0,a=s.ratio_height*i/s.ratio_width|0),e.sizes){var u=h(e.sizes);o=u[0],d=u[1]}return n[t.name]={len:e.len,type:t.type,wmin:i,hmin:a,w:o,h:d},n}})).filter(Boolean);u.length&&(s.native={request:{assets:u}});var c=(0,o.Z)(e,"mediaTypes.banner");if(c&&c.sizes){var l=(0,a.sF)(c.sizes).map((function(e){var r,t,n=(r=e.split("x"),t=2,function(e){if(Array.isArray(e))return e}(r)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,i,a=[],o=!0,d=!1;try{for(t=t.call(e);!(o=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);o=!0);}catch(e){d=!0,i=e}finally{try{o||null==t.return||t.return()}finally{if(d)throw i}}return a}}(r,t)||p(r,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.")}()),i=n[0],a=n[1];return{w:parseInt(i,10),h:parseInt(a,10)}}));s.banner={format:l}}var f=(0,o.Z)(e,"mediaTypes.video");return f&&(s.video=f),s})),k={id:r.auctionId,site:n,app:t,user:u,device:c,source:{tid:g,fd:1},ext:{pt:v},cur:x,imp:T};return w&&(k.is_debug=!!w,k.test=1),s.vc.getConfig("coppa")&&(0,d.Z)(k,"regs.coppa",1),void 0!==(0,o.Z)(r,"gdprConsent.gdprApplies")&&((0,d.Z)(k,"user.ext.consent",r.gdprConsent.consentString),(0,d.Z)(k,"regs.ext.gdpr",1&r.gdprConsent.gdprApplies)),r.uspConsent&&(0,d.Z)(k,"regs.ext.us_privacy",r.uspConsent),A&&(0,d.Z)(k,"user.ext.eids",A),I&&(0,d.Z)(k,"source.ext.schain",I),{method:"POST",url:"https://"+m+"/adx/openrtb",data:JSON.stringify(k),options:{contentType:"application/json"},bids:e}},interpretResponse:function(e,r){var t=r.bids;if(e.body){var n=e.body,a=n.seatbid,d=n.cur,s=h(a.map((function(e){return e.bid}))).reduce((function(e,r){return e[r.impid-1]=r,e}),[]);return t.map((function(e,r){var t=s[r];if(t){var n=(0,o.Z)(t,"ext.prebid.type"),a={requestId:e.bidId,cpm:t.price,creativeId:t.crid,ttl:360,netRevenue:"net"===e.netRevenue,currency:d,mediaType:n,width:t.w,height:t.h,dealId:t.dealid,meta:{mediaType:n,advertiserDomains:t.adomain}};return t.native?a.native=function(e){var r=e.native,t=r.assets,n=r.link,i=r.imptrackers,a=r.jstracker,o={clickUrl:n.url,clickTrackers:n.clicktrackers||void 0,impressionTrackers:i||void 0,javascriptTrackers:a?[a]:void 0};return t.forEach((function(e){var r=m[e.id],t=r&&e[y[r].name];t&&(o[r]=t.text||t.value||{url:t.url,width:t.w,height:t.h})})),o}(t):a[n===i.pX?"vastXml":"ad"]=t.adm,e.renderer||n!==i.pX||"outstream"!==(0,o.Z)(e,"mediaTypes.video.context")||(a.renderer=u.Th.install({id:e.bidId,url:"https://s2.adform.net/banners/scripts/video/outstream/render.js",adUnitCode:e.adUnitCode}),a.renderer.setRender(g)),a}})).filter(Boolean)}}};function b(e,r){for(var t,n=0;n<e.length;n++)if(t=(0,o.Z)(e[n],r))return t}function h(e){var r;return(r=[]).concat.apply(r,function(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(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.")}()}(e))}function g(e){e.renderer.push((function(){window.Adform.renderOutstream(e)}))}(0,n.dX)(v),window.pbjs.installedModules.push("adfBidAdapter")},4806:function(e,r,t){function n(e,r,t){r.split&&(r=r.split("."));for(var n,i=0,a=r.length,o=e;i<a;++i)n=o[r[i]],o=o[r[i]]=i===a-1?t:null!=n?n:!~r[i+1].indexOf(".")&&+r[i+1]>-1?[]:{}}t.d(r,{Z:function(){return n}})}},function(e){e(e.s=4666)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[380],{8422:function(t,n,e){var r=e(8265),i=e(1125),a=e(9853);function o(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return d(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,n):void 0}}(t)||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.")}()}function d(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}var u={code:"adpone",supportedMediaTypes:[r.Mk],isBidRequestValid:function(t){return!!t.params.placementId&&!!t.bidId&&"adpone"===t.bidder},buildRequests:function(t,n){return t.map((function(t){var e="https://rtb.adpone.com/bid-request?pid="+t.params.placementId,r={at:1,id:t.bidId,imp:t.sizes.map((function(n,e){return{id:t.bidId+"_"+e,banner:{w:n[0],h:n[1]}}}))};return n&&n.gdprConsent&&(e+="&gdpr_applies="+n.gdprConsent.gdprApplies,e+="&consentString="+n.gdprConsent.consentString),{method:"POST",url:e,data:r,options:{withCredentials:!0}}}))},interpretResponse:function(t,n){if(!t||!t.body)return[];var e=[];return t.body.seatbid.forEach((function(r){r.bid.length&&(e=[].concat(o(e),o(r.bid.filter((function(t){return t.price>0})).map((function(e){var r={id:e.id,requestId:n.data.id,cpm:e.price,ad:e.adm,width:e.w||0,height:e.h||0,currency:t.body.cur||"EUR",netRevenue:!0,ttl:300,creativeId:e.crid||0};return e.meta&&e.meta.adomain&&e.meta.adomain.length>0&&(r.meta={},r.meta.advertiserDomains=e.meta.adomain),r})))))})),e},onBidWon:function(t){var n=JSON.stringify(t),e=window.btoa(n);(0,a.hq)("https://rtb.adpone.com/prebid/analytics?q=".concat(e))}};(0,i.dX)(u),window.pbjs.installedModules.push("adponeBidAdapter")}},function(t){t(t.s=8422)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[343],{9720:function(e,t,r){var i=r(265),n=r(9853),a=r(1125),o=r(8962),c=r(2224),s=r(1879),d=r(8265);function u(e){return u="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},u(e)}function p(){return p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},p.apply(this,arguments)}var l="USD",m={image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1},cta:{required:!1}},f={code:"adyoulike",gvlid:259,supportedMediaTypes:[d.Mk,d.B5,d.pX],aliases:["ayl"],isBidRequestValid:function(e){var t=I(h(e)),r=t.width>0&&t.height>0;return e.params&&e.params.placement&&(r||e.mediaTypes&&e.mediaTypes.native)},buildRequests:function(e,t){var r=!1,n={Version:"1.0",Bids:e.reduce((function(e,t){var n,a=(n=t,(0,i.Z)(n,"mediaTypes.banner")?d.Mk:(0,i.Z)(n,"mediaTypes.video")?d.pX:(0,i.Z)(n,"mediaTypes.native")?d.B5:void 0),o=h(t),c=I(o);if(e[t.bidId]={},e[t.bidId].PlacementID=t.params.placement,e[t.bidId].TransactionID=t.transactionId,e[t.bidId].Width=c.width,e[t.bidId].Height=c.height,e[t.bidId].AvailableSizes=o.join(","),"function"==typeof t.getFloor&&(e[t.bidId].Pricing=function(e,t,r){var i=e.getFloor({currency:l,mediaType:r,size:[t.width,t.height]});if(!isNaN(i.floor)&&i.currency===l)return i.floor}(t,c,a)),a===d.B5){var s=t.mediaTypes.native;"image"===s.type&&(s=p({},m,s)),s.clickUrl={required:!0},e[t.bidId].Native=s}if(a===d.pX){r=!0,e[t.bidId].Video=t.mediaTypes.video;var u=t.mediaTypes.video.playerSize;Array.isArray(u)&&!Array.isArray(u[0])&&(e[t.bidId].Video.playerSize=[u])}return e}),{}),PageRefreshed:y()};t.gdprConsent&&(n.gdprConsent={consentString:t.gdprConsent.consentString,consentRequired:"boolean"==typeof t.gdprConsent.gdprApplies?t.gdprConsent.gdprApplies:null}),t.uspConsent&&(n.uspConsent=t.uspConsent),(0,i.Z)(t,"userId")&&(n.userId=(0,c.HQ)(t.userId));var a=JSON.stringify(n);return{method:"POST",url:g(e,t,r),data:a,options:{withCredentials:!0}}},interpretResponse:function(e,t){var r=[],n={};try{n=JSON.parse(t.data).Bids}catch(e){}return e.body.forEach((function(e){var t=function(e,t){if(e&&(e.Ad||e.Native||e.Vast)){var r=t&&t[e.BidID];r&&(e.Width&&"0"!==e.Width||(e.Width=r.Width),e.Height&&"0"!==e.Height||(e.Height=r.Height));var n={requestId:e.BidID,ttl:3600,creativeId:e.CreativeID,cpm:e.Price,netRevenue:!0,currency:l,meta:e.Meta||{advertiserDomains:[]}},a=e.Vast;return a?(n.width=e.Width,n.height=e.Height,n.vastXml=window.atob(a),n.mediaType="video"):r.Native?(n.native=function(e,t){if("object"===u(e.Native))return e.Native;var r={},n={},a={};if("string"==typeof e.Ad){n=JSON.parse(e.Ad.match(/\/\*PREBID\*\/(.*)\/\*PREBID\*\//)[1]),a=n.Content.Preview.Text;var o=n.TrackingPrefix+"/pixel?event_kind=IMPRESSION&attempt="+n.Attempt,c=n.TrackingPrefix+"/pixel?event_kind=INSERTION&attempt="+n.Attempt;n.Campaign&&(o+="&campaign="+n.Campaign,c+="&campaign="+n.Campaign),r.clickUrl=n.TrackingPrefix+"/ar?event_kind=CLICK&attempt="+n.Attempt+"&campaign="+n.Campaign+"&url="+encodeURIComponent(n.Content.Landing.Url),n.OnEvents?(r.clickTrackers=C(n.OnEvents.CLICK),r.impressionTrackers=C(n.OnEvents.IMPRESSION),r.javascriptTrackers=C(n.OnEvents.IMPRESSION,!0)):r.impressionTrackers=[],r.impressionTrackers.push(o,c)}return Object.keys(t).map((function(o,c){switch(o){case"title":r[o]=a.TITLE;break;case"body":r[o]=a.DESCRIPTION;break;case"cta":r[o]=a.CALLTOACTION;break;case"sponsoredBy":r[o]=n.Content.Preview.Sponsor.Name;break;case"image":var s=t.image.sizes||[];s.length||(s[0]=e.Width||300,s[1]=e.Height||250);var d=k(n,(0,i.Z)(n,"Content.Preview.Thumbnail.Image"),s[0],s[1]);d&&(r[o]={url:d,width:s[0],height:s[1]});break;case"icon":var u=t.icon.sizes||[];u.length||(u[0]=50,u[1]=50);var p=k(n,(0,i.Z)(n,"Content.Preview.Sponsor.Logo.Resource"),u[0],u[1]);p&&(r[o]={url:p,width:u[0],height:u[1]});break;case"privacyIcon":r[o]=k(n,(0,i.Z)(n,"Content.Preview.Credit.Logo.Resource"),25,25);break;case"privacyLink":r[o]=(0,i.Z)(n,"Content.Preview.Credit.Url")}})),r}(e,r.Native),n.mediaType="native"):(n.width=e.Width,n.height=e.Height,n.ad=e.Ad),n}}(e,n);t&&r.push(t)})),r}};function y(){try{if(performance&&performance.navigation)return performance.navigation.type===performance.navigation.TYPE_RELOAD}catch(e){}return!1}function g(e,t,r){var i=function(e){var t=(0,s.sE)(e,(function(e){return e.params.DC}));return t?"-"+t.params.DC:""}(e),a=r?"/hb-api/prebid-video/v1":"/hb-api/prebid/v1";return(0,n.Q2)({protocol:"https",host:"".concat("hb-api").concat(i,".omnitagjs.com"),pathname:a,search:v(t)})}function v(e){var t={};if(e){var r=e.refererInfo;r&&(t.RefererUrl=encodeURIComponent(r.referer),r.numIframes>0&&(t.SafeFrame=!0))}var i=function(){var e;if(window.self!==window.top)try{e=window.top.document.head.querySelector('link[rel="canonical"][href]')}catch(e){}else e=document.head.querySelector('link[rel="canonical"][href]');return e?e.href:""}();i&&(t.CanonicalUrl=encodeURIComponent(i));var n=o.vc.getConfig("publisherDomain");return n&&(t.PublisherDomain=encodeURIComponent(n)),t}function h(e){var t=e.sizes||[];return e.mediaTypes&&e.mediaTypes.banner&&(t=e.mediaTypes.banner.sizes||[]),e.params&&Array.isArray(e.params.size)&&(t=e.params.size,Array.isArray(t[0])||(t=[t])),(0,n.sF)(t)}function I(e){var t={},r=e[0];if("string"!=typeof r)return t;var i=r.toUpperCase().split("X"),n=parseInt(i[0],10);n&&(t.width=n);var a=parseInt(i[1],10);return a&&(t.height=a),t}function b(e){return e?"https://blobs.omnitagjs.com/blobs/"+e.substr(16,2)+"/"+e.substr(16)+"/"+e:""}function k(e,t,r,i){var n="";if(t&&t.Kind)switch(t.Kind){case"INTERNAL":n=b(t.Data.Internal.BlobReference.Uid);break;case"EXTERNAL":var a=e.DynamicPrefix,o=t.Data.External.Url;if((o=(o=o.replace(/\[height\]/i,""+i)).replace(/\[width\]/i,""+r)).indexOf(a)>=0){var c=/.*url=([^&]*)/gm.exec(o);(n=c?c[1]:"")||(n=b(/.*key=([^&]*)/gm.exec(o)[1]))}else n=o}return n}function C(e,t){var r=[];return e?(e.map((function(e,i){(t&&"JAVASCRIPT_URL"===e.Kind||!t&&"PIXEL_URL"===e.Kind)&&r.push(e.Url)})),r):r}(0,a.dX)(f),window.pbjs.installedModules.push("adyoulikeBidAdapter")},2224:function(e,t,r){r.d(t,{HQ:function(){return c},Pv:function(){return s},UR:function(){return a}});var i=r(9853),n=r(265),a={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){return e.uid},getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,i.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},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}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},gravitompId:{source:"gravito.net",atype:1}};function o(e,t){var r=a[t];if(r&&e){var n={};n.source=r.source;var o=(0,i.LQ)(r.getValue)?r.getValue(e):e;if((0,i.d8)(o)){var c={id:o,atype:r.atype};if((0,i.LQ)(r.getUidExt)){var s=r.getUidExt(e);s&&(c.ext=s)}if(n.uids=[c],(0,i.LQ)(r.getEidExt)){var d=r.getEidExt(e);d&&(n.ext=d)}return n}}return null}function c(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else{var i=o(e[r],r);i&&t.push(i)}return t}function s(e){var t=[];return e.filter((function(e){return(0,i.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){(0,n.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,n.Z)(a,r+".source")&&t.push({source:a[r].source,bidders:e.config.bidders})}))})),t}}},function(e){e(e.s=9720)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[864],{3231:function(e,r,a){var t=a(9853),n=a(265),i=a(4877),o=a(8962),s=a(1125),d=a(8265),p=a(4766),u=a(1879),c=a(1929),l=a(5849),m=a(9624);function f(e){return f="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},f(e)}function v(){return v=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},v.apply(this,arguments)}function b(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return g(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?g(e,r):void 0}}(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.")}()}function g(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,t=new Array(r);a<r;a++)t[a]=e[a];return t}var y="appnexus",h=["id","minduration","maxduration","skippable","playback_method","frameworks","context","skipoffset"],_=["minduration","maxduration","skip","skipafter","playbackmethod","api"],k=["age","externalUid","segments","gender","dnt","language"],I=["geo","device_id"],C=["enabled","dongle","member_id","debug_timeout"],w={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}},x={body:"description",body2:"desc2",cta:"ctatext",image:{serverName:"main_image",requiredParams:{required:!0}},icon:{serverName:"icon",requiredParams:{required:!0}},sponsoredBy:"sponsored_by",privacyLink:"privacy_link",salePrice:"saleprice",displayUrl:"displayurl"},E=/\/\/cdn\.adnxs\.com\/v|\/\/cdn\.adnxs\-simple\.com\/v/,S=(0,l.df)({gvlid:32,bidderCode:y}),T={code:y,gvlid:32,aliases:[{code:"appnexusAst",gvlid:32},{code:"brealtime"},{code:"emxdigital",gvlid:183},{code:"pagescience"},{code:"defymedia"},{code:"gourmetads"},{code:"matomy"},{code:"featureforward"},{code:"oftmedia"},{code:"districtm",gvlid:144},{code:"adasta"},{code:"beintoo",gvlid:618},{code:"xhb"}],supportedMediaTypes:[d.Mk,d.pX,d.B5],isBidRequestValid:function(e){return!!(e.params.placementId||e.params.member&&e.params.invCode)},buildRequests:function(e,r){var a=e.map(P),i=(0,u.sE)(e,U),s={};!0===o.vc.getConfig("coppa")&&(s={coppa:!0}),i&&Object.keys(i.params.user).filter((function(e){return(0,u.q9)(k,e)})).forEach((function(e){var r=(0,t.G2)(e);if("segments"===e&&(0,t.kJ)(i.params.user[e])){var a=[];i.params.user[e].forEach((function(e){(0,t.hj)(e)?a.push({id:e}):(0,t.PO)(e)&&a.push(e)})),s[r]=a}else"segments"!==e&&(s[r]=i.params.user[e])}));var d,p=(0,u.sE)(e,N);p&&p.params&&p.params.app&&(d={},Object.keys(p.params.app).filter((function(e){return(0,u.q9)(I,e)})).forEach((function(e){return d[e]=p.params.app[e]})));var c,l=(0,u.sE)(e,Z);l&&l.params&&p.params.app&&p.params.app.id&&(c={appid:l.params.app.id});var m={},f={},v=S.getCookie("apn_prebid_debug")||null;if(v)try{m=JSON.parse(v)}catch(e){(0,t.H)("AppNexus Debug Auction Cookie Error:\n\n"+e)}else{var g=(0,u.sE)(e,z);g&&g.debug&&(m=g.debug)}m&&m.enabled&&Object.keys(m).filter((function(e){return(0,u.q9)(C,e)})).forEach((function(e){f[e]=m[e]}));var y=(0,u.sE)(e,B),h=y?parseInt(y.params.member,10):0,_=e[0].schain,w=(0,u.sE)(e,J),x={tags:b(a),user:s,sdk:{source:"pbjs",version:"6.26.0"},schain:_};w&&(x.iab_support={omidpn:"Appnexus",omidpv:"6.26.0"}),h>0&&(x.member_id=h),p&&(x.device=d),l&&(x.app=c);var E=o.vc.getConfig("appnexusAuctionKeywords");if((0,t.PO)(E)){var T=(0,t.Bq)(E);T.length>0&&T.forEach(j),x.keywords=T}if(o.vc.getConfig("adpod.brandCategoryExclusion")&&(x.brand_category_uniqueness=!0),f.enabled&&(x.debug=f,(0,t.PN)("AppNexus Debug Auction Settings:\n\n"+JSON.stringify(f,null,4))),r&&r.gdprConsent&&(x.gdpr_consent={consent_string:r.gdprConsent.consentString,consent_required:r.gdprConsent.gdprApplies},r.gdprConsent.addtlConsent&&-1!==r.gdprConsent.addtlConsent.indexOf("~"))){var O=r.gdprConsent.addtlConsent,A=O.substring(O.indexOf("~")+1);x.gdpr_consent.addtl_consent=A.split(".").map((function(e){return parseInt(e,10)}))}if(r&&r.uspConsent&&(x.us_privacy=r.uspConsent),r&&r.refererInfo){var R={rd_ref:encodeURIComponent(r.refererInfo.referer),rd_top:r.refererInfo.reachedTop,rd_ifs:r.refererInfo.numIframes,rd_stk:r.refererInfo.stack.map((function(e){return encodeURIComponent(e)})).join(",")},X=o.vc.getConfig("pageUrl");(0,t.d8)(X)&&""!==X&&(R.rd_can=X),x.referrer_detection=R}if((0,u.sE)(e,D)&&e.filter(D).forEach((function(e){var r=function(e,r){var a=r.mediaTypes.video,n=a.durationRangeSec,i=a.requireExactDuration,o=function(e){var r=e.adPodDurationSec,a=e.durationRangeSec,n=e.requireExactDuration,i=(0,t.XV)(a),o=Math.floor(r/i);return n?Math.max(o,a.length):o}(r.mediaTypes.video),s=(0,t.d5)(n),d=e.filter((function(e){return e.uuid===r.bidId})),p=t.hl.apply(void 0,b(d).concat([o]));if(i){var u=Math.ceil(o/n.length),c=(0,t.yo)(p,u);n.forEach((function(e,r){c[r].map((function(r){M(r,"minduration",e),M(r,"maxduration",e)}))}))}else p.map((function(e){return M(e,"maxduration",s)}));return p}(a,e),n=x.tags.filter((function(r){return r.uuid!==e.bidId}));x.tags=[].concat(b(n),b(r))})),e[0].userId){var H=[];L(H,(0,n.Z)(e[0],"userId.flocId.id"),"chrome.com",null),L(H,(0,n.Z)(e[0],"userId.criteoId"),"criteo.com",null),L(H,(0,n.Z)(e[0],"userId.netId"),"netid.de",null),L(H,(0,n.Z)(e[0],"userId.idl_env"),"liveramp.com",null),L(H,(0,n.Z)(e[0],"userId.tdid"),"adserver.org","TDID"),L(H,(0,n.Z)(e[0],"userId.uid2.id"),"uidapi.com","UID2"),e[0].userId.pubProvidedId&&e[0].userId.pubProvidedId.forEach((function(e){e.uids.forEach((function(r){H.push({source:e.source,id:r.id})}))})),H.length&&(x.eids=H)}a[0].publisher_id&&(x.publisher_id=a[0].publisher_id);var V=function(e,r){var a=[],n={withCredentials:!0},i="https://ib.adnxs.com/ut/v3/prebid";if(q(r)||(i="https://ib.adnxs-simple.com/ut/v3/prebid"),"TRUE"!==(0,t.rD)("apn_test").toUpperCase()&&!0!==o.vc.getConfig("apn_test")||(n.customHeaders={"X-Is-Test":1}),e.tags.length>15){var s=(0,t.I8)(e);(0,t.yo)(e.tags,15).forEach((function(e){s.tags=e;var t=JSON.stringify(s);a.push({method:"POST",url:i,data:t,bidderRequest:r,options:n})}))}else{var d=JSON.stringify(e);a={method:"POST",url:i,data:d,bidderRequest:r,options:n}}return a}(x,r);return V},interpretResponse:function(e,r){var a=this,o=r.bidderRequest;e=e.body;var p=[];if(!e||e.error){var l="in response for ".concat(o.bidderCode," adapter");return e&&e.error&&(l+=": ".concat(e.error)),(0,t.H)(l),p}if(e.tags&&e.tags.forEach((function(e){var r,l=(r=e)&&r.ads&&r.ads.length&&(0,u.sE)(r.ads,(function(e){return e.rtb}));if(l&&(!0===m.S.get(o.bidderCode,"allowZeroCpmBids")?l.cpm>=0:l.cpm>0)&&(0,u.q9)(a.supportedMediaTypes,l.ad_type)){var f=function(e,r,a){var o=(0,t.zE)(e.uuid,[a]),p={requestId:e.uuid,cpm:r.cpm,creativeId:r.creative_id,dealId:r.deal_id,currency:"USD",netRevenue:!0,ttl:300,adUnitCode:o.adUnitCode,appnexus:{buyerMemberId:r.buyer_member_id,dealPriority:r.deal_priority,dealCode:r.deal_code}};if(r.adomain&&(p.meta=v({},p.meta,{advertiserDomains:[]})),r.advertiser_id&&(p.meta=v({},p.meta,{advertiserId:r.advertiser_id})),r.buyer_member_id&&(p.meta=v({},p.meta,{dchain:function(e){return{ver:"1.0",complete:0,nodes:[{bsid:e.buyer_member_id.toString()}]}}(r)})),r.brand_id&&(p.meta=v({},p.meta,{brandId:r.brand_id})),r.rtb.video)switch(v(p,{width:r.rtb.video.player_width,height:r.rtb.video.player_height,vastImpUrl:r.notify_url,ttl:3600}),(0,n.Z)(o,"mediaTypes.video.context")){case d.Oh:var l=(0,s.Q1)(o.bidder,r.brand_category_id);p.meta=v({},p.meta,{primaryCatId:l});var m=r.deal_priority;p.video={context:d.Oh,durationSeconds:Math.floor(r.rtb.video.duration_ms/1e3),dealTier:m},p.vastUrl=r.rtb.video.asset_url;break;case c.gZ:if(p.adResponse=e,p.adResponse.ad=p.adResponse.ads[0],p.adResponse.ad.video=p.adResponse.ad.rtb.video,p.vastXml=r.rtb.video.content,r.renderer_url){var f=(0,u.sE)(a.bids,(function(r){return r.bidId===e.uuid})),b=(0,n.Z)(f,"mediaTypes.video.renderer.options");b||(b=(0,n.Z)(f,"renderer.options")),p.renderer=function(e,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.Th.install({id:r.renderer_id,url:r.renderer_url,config:a,loaded:!1,adUnitCode:e});try{n.setRender(X)}catch(e){(0,t.yN)("Prebid Error calling setRender on renderer",e)}return n.setEventHandlers({impression:function(){return(0,t.ji)("AppNexus outstream video impression event")},loaded:function(){return(0,t.ji)("AppNexus outstream video loaded event")},ended:function(){(0,t.ji)("AppNexus outstream renderer video event"),document.querySelector("#".concat(e)).style.display="none"}}),n}(p.adUnitCode,r,b)}break;case c.LD:p.vastUrl=r.notify_url+"&redir="+encodeURIComponent(r.rtb.video.asset_url)}else if(r.rtb[d.B5]){var g=r.rtb[d.B5],y=r.viewability.config.replace("src=","data-src="),h=g.javascript_trackers;null==h?h=y:(0,t.d8)(h)?h=[h,y]:h.push(y),p[d.B5]={title:g.title,body:g.desc,body2:g.desc2,cta:g.ctatext,rating:g.rating,sponsoredBy:g.sponsored,privacyLink:g.privacy_link,address:g.address,downloads:g.downloads,likes:g.likes,phone:g.phone,price:g.price,salePrice:g.saleprice,clickUrl:g.link.url,displayUrl:g.displayurl,clickTrackers:g.link.click_trackers,impressionTrackers:g.impression_trackers,javascriptTrackers:h},g.main_img&&(p.native.image={url:g.main_img.url,height:g.main_img.height,width:g.main_img.width}),g.icon&&(p.native.icon={url:g.icon.url,height:g.icon.height,width:g.icon.width})}else{v(p,{width:r.rtb.banner.width,height:r.rtb.banner.height,ad:r.rtb.banner.content});try{if(r.rtb.trackers)for(var _=0;_<r.rtb.trackers[0].impression_urls.length;_++){var k=r.rtb.trackers[0].impression_urls[_],I=(0,t.SG)(k);p.ad+=I}}catch(e){(0,t.H)("Error appending tracking pixel",e)}}return p}(e,l,o);f.mediaType=function(e){var r=e.ad_type;return r===d.pX?d.pX:r===d.B5?d.B5:d.Mk}(l),p.push(f)}})),e.debug&&e.debug.debug_info){var f="AppNexus Debug Auction for Prebid\n\n"+e.debug.debug_info;f=f.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,t.ji)("https://console.appnexus.com/docs/understanding-the-debug-auction"),(0,t.ji)(f)}return p},getMappingFileInfo:function(){return{url:"https://acdn.adnxs-simple.com/prebid/appnexus-mapping/mappings.json",refreshInDays:2}},getUserSyncs:function(e,r,a){if(e.iframeEnabled&&q({gdprConsent:a}))return[{type:"iframe",url:"https://acdn.adnxs.com/dmp/async_usersync.html"}]},transformBidParams:function(e,r,a,i){var s=t.Bq;if(!0===r){var d=null,p=o.vc.getConfig("s2sConfig");(0,t.PO)(p)?d=(0,n.Z)(p,"endpoint.p1Consent"):(0,t.kJ)(p)&&p.forEach((function(e){(0,u.q9)(e.bidders,a.bids[0].bidder)&&(d=(0,n.Z)(e,"endpoint.p1Consent"))})),d&&d.match("/openrtb2/prebid")&&(s=V)}return e=(0,t.uh)({member:"string",invCode:"string",placementId:"number",keywords:s,publisherId:"number"},e),r&&(e.use_pmt_rule="boolean"==typeof e.usePaymentRule&&e.usePaymentRule,e.usePaymentRule&&delete e.usePaymentRule,O(e.keywords)&&e.keywords.forEach(j),Object.keys(e).forEach((function(r){var a=(0,t.G2)(r);a!==r&&(e[a]=e[r],delete e[r])}))),e},onBidWon:function(e){e.native&&function(e){var r=function(e){var r;if((0,t.d8)(e)&&A(e))r=e;else if((0,t.kJ)(e))for(var a=0;a<e.length;a++){var n=e[a];A(n)&&(r=n)}return r}(e.native.javascriptTrackers);if(r)for(var a="pbjs_adid="+e.adId+";pbjs_auc="+e.adUnitCode,n=function(e){var r=e.indexOf('src="')+5,a=e.indexOf('"',r);return e.substring(r,a)}(r),i=n.replace("dom_id=%native_dom_id%",a),o=document.getElementsByTagName("iframe"),s=!1,d=0;d<o.length&&!s;d++){var p=o[d];try{var u=p.contentDocument||p.contentWindow.document;if(u)for(var c=u.getElementsByTagName("script"),l=0;l<c.length&&!s;l++){var m=c[l];m.getAttribute("data-src")==n&&(m.setAttribute("src",i),m.setAttribute("data-src",""),m.removeAttribute&&m.removeAttribute("data-src"),s=!0)}}catch(e){if(!(e instanceof DOMException&&"SecurityError"===e.name))throw e}}}(e)}};function O(e){return!!((0,t.kJ)(e)&&e.length>0)}function j(e){O(e.value)&&""===e.value[0]&&delete e.value}function A(e){var r=e.match(E),a=null!=r&&r.length>=1,t=e.match("trk.js"),n=null!=t&&t.length>=1;return e.startsWith("<script")&&n&&a}function q(e){var r=!0;return e&&e.gdprConsent&&e.gdprConsent.gdprApplies&&2===e.gdprConsent.apiVersion&&(r=!(!0!==(0,n.Z)(e.gdprConsent,"vendorData.purpose.consents.1"))),r}function P(e){var r={};r.sizes=R(e.sizes),r.primary_size=r.sizes[0],r.ad_types=[],r.uuid=e.bidId,e.params.placementId?r.id=parseInt(e.params.placementId,10):r.code=e.params.invCode,r.allow_smaller_sizes=e.params.allowSmallerSizes||!1,r.use_pmt_rule=e.params.usePaymentRule||!1,r.prebid=!0,r.disable_psa=!0;var a=function(e){if(!(0,t.LQ)(e.getFloor))return e.params.reserve?e.params.reserve:null;var r=e.getFloor({currency:"USD",mediaType:"*",size:"*"});return(0,t.PO)(r)&&!isNaN(r.floor)&&"USD"===r.currency?r.floor:null}(e);if(a&&(r.reserve=a),e.params.position)r.position={above:1,below:2}[e.params.position]||0;else{var i=(0,n.Z)(e,"mediaTypes.banner.pos")||(0,n.Z)(e,"mediaTypes.video.pos");0!==i&&1!==i&&3!==i||(r.position=3===i?2:i)}if(e.params.trafficSourceCode&&(r.traffic_source_code=e.params.trafficSourceCode),e.params.privateSizes&&(r.private_sizes=R(e.params.privateSizes)),e.params.supplyType&&(r.supply_type=e.params.supplyType),e.params.pubClick&&(r.pubclick=e.params.pubClick),e.params.extInvCode&&(r.ext_inv_code=e.params.extInvCode),e.params.publisherId&&(r.publisher_id=parseInt(e.params.publisherId,10)),e.params.externalImpId&&(r.external_imp_id=e.params.externalImpId),!(0,t.xb)(e.params.keywords)){var o=(0,t.Bq)(e.params.keywords);o.length>0&&o.forEach(j),r.keywords=o}var s,c,l=(0,n.Z)(e,"ortb2Imp.ext.data.pbadslot");if(l&&(r.gpid=l),(e.mediaType===d.B5||(0,n.Z)(e,"mediaTypes.".concat(d.B5)))&&(r.ad_types.push(d.B5),0===r.sizes.length&&(r.sizes=R([1,1])),e.nativeParams)){var m=(s=e.nativeParams,c={},Object.keys(s).forEach((function(e){var r=x[e]&&x[e].serverName||x[e]||e,a=x[e]&&x[e].requiredParams;if(c[r]=v({},a,s[e]),(r===x.image.serverName||r===x.icon.serverName)&&c[r].sizes){var n=c[r].sizes;((0,t.HC)(n)||(0,t.kJ)(n)&&n.length>0&&n.every((function(e){return(0,t.HC)(e)})))&&(c[r].sizes=R(c[r].sizes))}r===x.privacyLink&&(c.privacy_supported=!0)})),c);r[d.B5]={layouts:[m]}}var f=(0,n.Z)(e,"mediaTypes.".concat(d.pX)),b=(0,n.Z)(e,"mediaTypes.video.context");r.hb_source=f&&"adpod"===b?7:1,(e.mediaType===d.pX||f)&&r.ad_types.push(d.pX),(e.mediaType===d.pX||f&&"outstream"!==b)&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter((function(e){return(0,u.q9)(h,e)})).forEach((function(a){switch(a){case"context":case"playback_method":var n=e.params.video[a];n=(0,t.kJ)(n)?n[0]:n,r.video[a]=w[a][n];break;case"frameworks":break;default:r.video[a]=e.params.video[a]}})),e.params.video.frameworks&&(0,t.kJ)(e.params.video.frameworks)&&(r.video_frameworks=e.params.video.frameworks)),f&&(r.video=r.video||{},Object.keys(f).filter((function(e){return(0,u.q9)(_,e)})).forEach((function(e){switch(e){case"minduration":case"maxduration":"number"!=typeof r.video[e]&&(r.video[e]=f[e]);break;case"skip":"boolean"!=typeof r.video.skippable&&(r.video.skippable=1===f[e]);break;case"skipafter":"number"!=typeof r.video.skipoffset&&(r.video.skippoffset=f[e]);break;case"playbackmethod":if("number"!=typeof r.video.playback_method){var a=f[e];(a=(0,t.kJ)(a)?a[0]:a)>=1&&a<=4&&(r.video.playback_method=a)}break;case"api":if(!r.video_frameworks&&(0,t.kJ)(f[e])){var n=f[e].map((function(e){var r=4===e?5:5===e?4:e;if(r>=1&&r<=5)return r})).filter((function(e){return e}));r.video_frameworks=n}}}))),e.renderer&&(r.video=v({},r.video,{custom_renderer_present:!0})),e.params.frameworks&&(0,t.kJ)(e.params.frameworks)&&(r.banner_frameworks=e.params.frameworks);var g=(0,u.sE)(p.K.getAdUnits(),(function(r){return e.transactionId===r.transactionId}));return g&&g.mediaTypes&&g.mediaTypes.banner&&r.ad_types.push(d.Mk),0===r.ad_types.length&&delete r.ad_types,r}function R(e){var r=[],a={};if((0,t.kJ)(e)&&2===e.length&&!(0,t.kJ)(e[0]))a.width=parseInt(e[0],10),a.height=parseInt(e[1],10),r.push(a);else if("object"===f(e))for(var n=0;n<e.length;n++){var i=e[n];(a={}).width=parseInt(i[0],10),a.height=parseInt(i[1],10),r.push(a)}return r}function U(e){return!!e.params.user}function B(e){return!!parseInt(e.params.member,10)}function N(e){if(e.params)return!!e.params.app}function Z(e){return e.params&&e.params.app?!!e.params.app.id:!!e.params.app}function z(e){return!!e.debug}function D(e){return e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context===d.Oh}function J(e){var r=!1,a=e.params,n=e.params.video;return a.frameworks&&(0,t.kJ)(a.frameworks)&&(r=(0,u.q9)(e.params.frameworks,6)),!r&&n&&n.frameworks&&(0,t.kJ)(n.frameworks)&&(r=(0,u.q9)(e.params.video.frameworks,6)),r}function M(e,r,a){(0,t.xb)(e.video)&&(e.video={}),e.video[r]=a}function X(e,r){!function(e){try{var r=document.getElementById(e).querySelectorAll("div[id^='google_ads']");r[0]&&r[0].style.setProperty("display","none")}catch(e){}}(e.adUnitCode),function(e){try{var r=document.getElementById(e).querySelectorAll("script[id^='sas_script']");r[0].nextSibling&&"iframe"===r[0].nextSibling.localName&&r[0].nextSibling.style.setProperty("display","none")}catch(e){}}(e.adUnitCode),e.renderer.push((function(){((0,t.W$)(r)||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()},H.bind(null,e))}))}function H(e,r,a){e.renderer.handleVideoEvent({id:r,eventName:a})}function L(e,r,a,t){return r&&(t?e.push({source:a,id:r,rti_partner:t}):e.push({source:a,id:r})),e}function V(e){var r="";return Object.keys(e).forEach((function(a){(0,t.d8)(e[a])?""!==e[a]?r+="".concat(a,"=").concat(e[a],","):r+="".concat(a,","):(0,t.kJ)(e[a])&&(""===e[a][0]?r+="".concat(a,","):e[a].forEach((function(e){r+="".concat(a,"=").concat(e,",")})))})),r=r.substring(0,r.length-1)}(0,s.dX)(T),window.pbjs.installedModules.push("appnexusBidAdapter")}},function(e){e(e.s=3231)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[881],{759:function(e,t,r){var n=r(265),i=r(4806),a=r(9853),o=r(1879),c=r(1125),s=r(8265),d=r(8962),u=r(4877),p=r(2224);function l(){return l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function m(e){return m="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},m(e)}var b=window.location.search.match(/bbpbs_debug=true/),y={BIDDER_CODE:"bluebillywig",AUCTION_URL:"$$URL_STARTpbs.bluebillywig.com/openrtb2/auction?pub=$$PUBLICATION",SYNC_URL:"$$URL_STARTpbs.bluebillywig.com/static/cookie-sync.html?pub=$$PUBLICATION",RENDERER_URL:"https://$$PUBLICATION.bbvms.com/r/$$RENDERER.js",DEFAULT_TIMEOUT:5e3,DEFAULT_TTL:300,DEFAULT_WIDTH:768,DEFAULT_HEIGHT:432,DEFAULT_NET_REVENUE:!0,VIDEO_PARAMS:["mimes","minduration","maxduration","protocols","w","h","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext"]},f=d.vc.getConfig,g={addSiteAppDevice:function(e,t){"object"===m(f("app"))?e.app=f("app"):(e.site={},"object"===m(f("site"))&&(e.site=f("site")),t&&(e.site.page=t)),"object"===m(f("device"))&&(e.device=f("device")),e.device||(e.device={}),e.device.w||(e.device.w=window.innerWidth),e.device.h||(e.device.h=window.innerHeight)},addSchain:function(e,t){var r=(0,n.Z)(t,"0.schain");r&&(e.source.ext={schain:r})},addCurrency:function(e){var t=f("currency.adServerCurrency");t&&"string"==typeof t?e.cur=[t]:Array.isArray(t)&&t.length&&(e.cur=[t[0]])},addUserIds:function(e,t){var r=(0,n.Z)(t,"0.userId"),a=(0,p.HQ)(r);a.length&&(0,i.Z)(e,"user.ext.eids",a)},substituteUrl:function(e,t,r){return e.replace("$$URL_START",b?"https://dev.":"https://").replace("$$PUBLICATION",t).replace("$$RENDERER",r)},getAuctionUrl:function(e){return g.substituteUrl(y.AUCTION_URL,e)},getSyncUrl:function(e){return g.substituteUrl(y.SYNC_URL,e)},getRendererUrl:function(e,t){return g.substituteUrl(y.RENDERER_URL,e,t)},transformVideoParams:function(e,t){var r=(e=(0,a.I8)(e)).playerSize||[y.DEFAULT_WIDTH,y.DEFAULT_HEIGHT];return Array.isArray(r[0])&&(r=r[0]),e.w=r[0],e.h=r[1],e.placement=3,t&&(e=l(e,t)),Object.keys(e).forEach((function(t){-1===y.VIDEO_PARAMS.indexOf(t)&&delete e[t]})),e},transformRTBToPrebidProps:function(e,t){var r={cpm:e.price,currency:t.cur,netRevenue:y.DEFAULT_NET_REVENUE,bidId:e.impid,requestId:e.impid,creativeId:e.crid,mediaType:s.pX,width:e.w||y.DEFAULT_WIDTH,height:e.h||y.DEFAULT_HEIGHT,ttl:y.DEFAULT_TTL},i=(0,n.Z)(e,"ext.prebid.targeting"),a=(0,n.Z)(e,"ext.prebid.cache");return a&&"object"===m(a.vastXml)&&a.vastXml.cacheId&&a.vastXml.url?(r.videoCacheKey=a.vastXml.cacheId,r.vastUrl=a.vastXml.url):i&&i.hb_uuid&&i.hb_cache_host&&i.hb_cache_path&&(r.videoCacheKey=i.hb_uuid,r.vastUrl="https://".concat(i.hb_cache_host).concat(i.hb_cache_path,"?uuid=").concat(i.hb_uuid)),e.adm&&(r.ad=e.adm,r.vastXml=e.adm),r.vastUrl||!e.nurl||e.adm||(r.vastUrl=e.nurl),r.meta=e.meta||{},e.adomain&&(r.meta.advertiserDomains=e.adomain),r}},h={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)if(window.bluebillywig&&window.bluebillywig.renderers){var r=h.getRendererId(e.publicationName,e.rendererCode),n=document.getElementById(e.adUnitCode),i=(0,o.sE)(window.bluebillywig.renderers,(function(e){return e._id===r}));i?i.bootstrap(t,n,e.rendererSettings||{}):(0,a.yN)("".concat(y.BIDDER_CODE,": Couldn't find a renderer with ").concat(r))}else(0,a.yN)("".concat(y.BIDDER_CODE,": renderer code failed to initialize..."));else(0,a.yN)("".concat(y.BIDDER_CODE,": No vastXml or vastUrl on bid, bailing..."))},newRenderer:function(e,t){var r=u.Th.install({url:e,loaded:!1,adUnitCode:t});try{r.setRender(h.outstreamRender)}catch(e){(0,a.yN)("".concat(y.BIDDER_CODE,": Error tying to setRender on renderer"),e)}return r},outstreamRender:function(e){e.renderer.push((function(){h.bootstrapPlayer(e)}))},getRendererId:function(e,t){return"".concat(e,"-").concat(t)}},v={code:y.BIDDER_CODE,supportedMediaTypes:[s.pX],syncStore:{bidders:[]},isBidRequestValid:function(e){if(!e.params)return(0,a.H)("".concat(y.BIDDER_CODE,": no params set on bid. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("publicationName")||"string"!=typeof e.params.publicationName)return(0,a.H)("".concat(y.BIDDER_CODE,": no publicationName specified in bid params, or it's not a string. Rejecting bid: "),e),!1;if(!/^\w+\.?\w+$/.test(e.params.publicationName))return(0,a.H)("".concat(y.BIDDER_CODE,": publicationName must be in format 'publication' or 'publication.environment'. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("rendererCode")||"string"!=typeof e.params.rendererCode)return(0,a.H)("".concat(y.BIDDER_CODE,": no rendererCode was specified in bid params. Rejecting bid: "),e),!1;if(!/^[\w+_]+$/.test(e.params.rendererCode))return(0,a.H)("".concat(y.BIDDER_CODE,": rendererCode must be alphanumeric, including underscores. Rejecting bid: "),e),!1;if(!e.params.accountId)return(0,a.H)("".concat(y.BIDDER_CODE,": no accountId specified in bid params. Rejecting bid: "),e),!1;if(!e.params.hasOwnProperty("connections"))return(0,a.H)("".concat(y.BIDDER_CODE,": no connections specified in bid. Rejecting bid: "),e),!1;if(!Array.isArray(e.params.connections))return(0,a.H)("".concat(y.BIDDER_CODE,": connections is not of type array. Rejecting bid: "),e),!1;for(var t=0;t<e.params.connections.length;t++)if(!e.params.hasOwnProperty(e.params.connections[t]))return(0,a.H)("".concat(y.BIDDER_CODE,": connection specified in params.connections, but not configured in params. Rejecting bid: "),e),!1;return!e.params.hasOwnProperty("video")||null!==e.params.video&&"object"===m(e.params.video)?!e.params.hasOwnProperty("rendererSettings")||null!==e.params.rendererSettings&&"object"===m(e.params.rendererSettings)?e.hasOwnProperty("mediaTypes")&&e.mediaTypes.hasOwnProperty(s.pX)?e.mediaTypes[s.pX].hasOwnProperty("context")?"outstream"===e.mediaTypes[s.pX].context||((0,a.H)("".concat(y.BIDDER_CODE,': video.context is invalid, must be "outstream". Rejecting bid: '),e),!1):((0,a.H)("".concat(y.BIDDER_CODE,": no context specified in bid. Rejecting bid: "),e),!1):((0,a.H)("".concat(y.BIDDER_CODE,": mediaTypes or mediaTypes.video is not specified. Rejecting bid: "),e),!1):((0,a.H)("".concat(y.BIDDER_CODE,": params.rendererSettings must be of type object. Rejecting bid: "),e),!1):((0,a.H)("".concat(y.BIDDER_CODE,": params.video must be of type object. Rejecting bid: "),e),!1)},buildRequests:function(e,t){var r=this,a=[];e.forEach((function(e){r.syncStore.publicationName||(r.syncStore.publicationName=e.params.publicationName),r.syncStore.accountId||(r.syncStore.accountId=e.params.accountId);var t=e.params.connections.reduce((function(t,n){return t[n]=e.params[n],-1===r.syncStore.bidders.indexOf(n)&&r.syncStore.bidders.push(n),t}),{}),i=g.transformVideoParams((0,n.Z)(e,"mediaTypes.video"),(0,n.Z)(e,"params.video"));a.push({id:e.bidId,ext:t,secure:"https"===window.location.protocol?1:0,video:i})}));var o={id:t.auctionId,source:{tid:t.auctionId},tmax:y.DEFAULT_TIMEOUT,imp:a,test:b?1:0,ext:{prebid:{targeting:{includewinners:!0,includebidderkeys:!1}}}};if(t.gdprConsent){var c=0;"boolean"==typeof t.gdprConsent.gdprApplies&&(c=t.gdprConsent.gdprApplies?1:0),(0,i.Z)(o,"regs.ext.gdpr",c),(0,i.Z)(o,"user.ext.consent",t.gdprConsent.consentString)}return t.uspConsent&&((0,i.Z)(o,"regs.ext.us_privacy",t.uspConsent),this.syncStore.uspConsent=t.uspConsent),1==f("coppa")&&(0,i.Z)(o,"regs.coppa",1),g.addSiteAppDevice(o,t.refererInfo&&t.refererInfo.referer),g.addSchain(o,e),g.addCurrency(o),g.addUserIds(o,e),{method:"POST",url:g.getAuctionUrl(e[0].params.publicationName),data:JSON.stringify(o),bidderRequest:t}},interpretResponse:function(e,t){if(!(e=e.body||{}).hasOwnProperty("seatbid")||!Array.isArray(e.seatbid))return[];var r=[];return e.seatbid.forEach((function(n){n.bid&&Array.isArray(n.bid)&&n.bid.forEach((function(n){n=g.transformRTBToPrebidProps(n,e);var i=(0,o.sE)(t.bidderRequest.bids,(function(e){return e.bidId===n.bidId})).params;n.publicationName=i.publicationName,n.rendererCode=i.rendererCode,n.accountId=i.accountId,n.rendererSettings=i.rendererSettings;var a=g.getRendererUrl(n.publicationName,n.rendererCode);n.renderer=h.newRenderer(a,n.adUnitCode),r.push(n)}))})),r},getUserSyncs:function(e,t,r){if(!e.iframeEnabled)return[];var n=[];return r.gdprApplies&&n.push("gdpr=".concat(r.gdprApplies?1:0)),r.gdprApplies&&r.consentString&&n.push("gdpr_consent=".concat(r.consentString)),this.syncStore.uspConsent&&n.push("usp_consent=".concat(this.syncStore.uspConsent)),n.push("accountId=".concat(this.syncStore.accountId)),n.push("bidders=".concat(btoa(JSON.stringify(this.syncStore.bidders)))),n.push("cb=".concat(Date.now(),"-").concat(Math.random().toString().replace(".",""))),b&&n.push("bbpbs_debug=true"),[{type:"iframe",url:"".concat(g.getSyncUrl(this.syncStore.publicationName),"&").concat(n.join("&"))}]}};(0,c.dX)(v),window.pbjs.installedModules.push("bluebillywigBidAdapter")},2224:function(e,t,r){r.d(t,{HQ:function(){return c},Pv:function(){return s},UR:function(){return a}});var n=r(9853),i=r(265),a={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){return e.uid},getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,n.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},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}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},gravitompId:{source:"gravito.net",atype:1}};function o(e,t){var r=a[t];if(r&&e){var i={};i.source=r.source;var o=(0,n.LQ)(r.getValue)?r.getValue(e):e;if((0,n.d8)(o)){var c={id:o,atype:r.atype};if((0,n.LQ)(r.getUidExt)){var s=r.getUidExt(e);s&&(c.ext=s)}if(i.uids=[c],(0,n.LQ)(r.getEidExt)){var d=r.getEidExt(e);d&&(i.ext=d)}return i}}return null}function c(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else{var n=o(e[r],r);n&&t.push(n)}return t}function s(e){var t=[];return e.filter((function(e){return(0,n.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){(0,i.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,i.Z)(a,r+".source")&&t.push({source:a[r].source,bidders:e.config.bidders})}))})),t}},4806:function(e,t,r){function n(e,t,r){t.split&&(t=t.split("."));for(var n,i=0,a=t.length,o=e;i<a;++i)n=o[t[i]],o=o[t[i]]=i===a-1?r:null!=n?n:!~t[i+1].indexOf(".")&&+t[i+1]>-1?[]:{}}r.d(t,{Z:function(){return n}})}},function(e){e(e.s=759)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[948],{4236:function(t,e,n){var r=n(9853),i=n(4806),o=n(1125),d=n(8265),a=n(8962);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}var u="brightcom",h={code:u,supportedMediaTypes:[d.Mk],isBidRequestValid:function(t){return t.bidder===u&&void 0!==t.params&&void 0!==t.params.publisherId},buildRequests:function(t,e){try{var n="";e&&e.refererInfo&&(n=e.refererInfo.referer);var o=[],d=(0,r.An)("publisherId",t[0].params);(0,r.yi)(t,(function(t){var e=t.mediaTypes&&t.mediaTypes.banner&&t.mediaTypes.banner.sizes||t.sizes,n=(e=(e=(0,r.kJ)(e)&&(0,r.kJ)(e[0])?e:[e]).filter((function(t){return(0,r.kJ)(t)}))).map((function(t){return{w:parseInt(t[0],10),h:parseInt(t[1],10)}})),i=document.getElementById(t.adUnitCode),d=n.reduce((function(t,e){return e.h*e.w<t.h*t.w?e:t})),a=function(t){return!function(){try{return(0,r.e7)()!==(0,r.Zy)()}catch(t){return!0}}()&&null!==t}(i)?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.w,o=n.h;return"visible"===(0,r.Zy)().document.visibilityState?c(t,e,{w:i,h:o}):0}(i,(0,r.Zy)(),d):"na",s=isNaN(a)?a:Math.round(a),u={id:t.bidId,banner:{format:n,ext:{viewability:s}},tagid:String(t.adUnitCode)},h=function(t){if(!(0,r.LQ)(t.getFloor))return t.params.bidFloor?t.params.bidFloor:null;var e=t.getFloor({currency:"USD",mediaType:"*",size:"*"});return(0,r.PO)(e)&&!isNaN(e.floor)&&"USD"===e.currency?e.floor:null}(t);h&&(u.bidfloor=h),o.push(u)}));var s={id:(0,r._d)(),imp:o,site:{domain:(0,r.en)(n).host,page:n,publisher:{id:d}},device:{devicetype:/(ios|ipod|ipad|iphone|android)/i.test(navigator.userAgent)?1:/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(navigator.userAgent)?3:2,w:screen.width,h:screen.height},tmax:a.vc.getConfig("bidderTimeout")};return e&&e.gdprConsent&&((0,i.Z)(s,"regs.ext.gdpr",+e.gdprConsent.gdprApplies),(0,i.Z)(s,"user.ext.consent",e.gdprConsent.consentString)),{method:"POST",url:"https://brightcombid.marphezis.com/hb",data:JSON.stringify(s),options:{contentType:"text/plain",withCredentials:!1}}}catch(n){(0,r.H)(n,{bidReqs:t,bidderRequest:e})}},interpretResponse:function(t){if(!t.body||"object"!=s(t.body))return(0,r.yN)("Brightcom server returned empty/non-json response: "+JSON.stringify(t.body)),[];var e=t.body,n=e.id,i=e.seatbid;try{var o=[];return n&&i&&i.length>0&&i[0].bid&&i[0].bid.length>0&&i[0].bid.map((function(t){var e,n;o.push({requestId:t.impid,cpm:parseFloat(t.price),width:parseInt(t.w),height:parseInt(t.h),creativeId:t.crid||t.id,currency:"USD",netRevenue:!0,mediaType:d.Mk,ad:(e=t,n=e.adm,"nurl"in e&&(n+=(0,r.SG)(e.nurl)),n),ttl:60,meta:{advertiserDomains:t&&t.adomain?t.adomain:[]}})})),o}catch(t){(0,r.H)(t,{id:n,seatbid:i})}},getUserSyncs:function(t,e,n){return[]}};function p(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.w,r=e.h,i=t.getBoundingClientRect(),o=i.width,d=i.height,a=i.left,s=i.top,u=i.right,h=i.bottom;return(0===o||0===d)&&n&&r&&(o=n,d=r,u=a+n,h=s+r),{width:o,height:d,left:a,top:s,right:u,bottom:h}}function l(t){for(var e={left:t[0].left,right:t[0].right,top:t[0].top,bottom:t[0].bottom},n=1;n<t.length;++n){if(e.left=Math.max(e.left,t[n].left),e.right=Math.min(e.right,t[n].right),e.left>=e.right)return null;if(e.top=Math.max(e.top,t[n].top),e.bottom=Math.min(e.bottom,t[n].bottom),e.top>=e.bottom)return null}return e.width=e.right-e.left,e.height=e.bottom-e.top,e}function c(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.w,i=n.h,o=p(t,{w:r,h:i}),d=l([{left:0,top:0,right:e.innerWidth,bottom:e.innerHeight},o]);return null!==d?d.width*d.height/(o.width*o.height)*100:0}(0,o.dX)(h),window.pbjs.installedModules.push("brightcomBidAdapter")},4806:function(t,e,n){function r(t,e,n){e.split&&(e=e.split("."));for(var r,i=0,o=e.length,d=t;i<o;++i)r=d[e[i]],d=d[e[i]]=i===o-1?n:null!=r?r:!~e[i+1].indexOf(".")&&+e[i+1]>-1?[]:{}}n.d(e,{Z:function(){return r}})}},function(t){t(t.s=4236)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[391],{2902:function(e,t,r){var n=r(4806),i=r(9853),o=r(1125),a=r(8265),c=r(8962),s=r(2224);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},u.apply(this,arguments)}var d={code:"connectad",gvlid:138,aliases:["connectadrealtime"],supportedMediaTypes:[a.Mk],isBidRequestValid:function(e){return!(!e.params.networkId||!e.params.siteId)},buildRequests:function(e,t){var r={method:"POST",url:"",data:"",bidRequest:[]};if(e.length<1)return r;var i,o=u({placements:[],time:Date.now(),user:{},url:t.refererInfo&&t.refererInfo.referer?t.refererInfo.referer:window.location.href,referrer:window.document.referrer,referrer_info:t.refererInfo,screensize:[window.screen.width,window.screen.height].join("x"),dnt:"yes"==navigator.doNotTrack||"1"==navigator.doNotTrack||"1"==navigator.msDoNotTrack?1:0,language:navigator.language,ua:navigator.userAgent,pversion:"6.26.0"});return!0===c.vc.getConfig("coppa")&&(0,n.Z)(o,"user.coppa",1),e[0].schain&&(0,n.Z)(o,"source.ext.schain",e[0].schain),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(i=t.gdprConsent.gdprApplies?1:0),(0,n.Z)(o,"user.ext.gdpr",i),(0,n.Z)(o,"user.ext.consent",t.gdprConsent.consentString)),t.uspConsent&&(0,n.Z)(o,"user.ext.us_privacy",t.uspConsent),e[0].userId&&(0,n.Z)(o,"user.ext.eids",(0,s.HQ)(e[0].userId)),e.map((function(e){var t,r,n,i,a=u({id:e.transactionId,divName:e.bidId,pisze:e.mediaTypes.banner.sizes[0]||e.sizes[0],sizes:e.mediaTypes.banner.sizes,adTypes:(n=e.mediaTypes.banner.sizes||e.sizes,i=[],n.forEach((function(e){var t=p.indexOf(e[0]+"x"+e[1]);t>=0&&i.push(t)})),i),bidfloor:(t=e,r={},"function"==typeof t.getFloor&&(r=t.getFloor({currency:"USD",mediaType:"banner",size:"*"})),r.floor||t.params.bidfloor||t.params.floorprice||0),siteId:e.params.siteId,networkId:e.params.networkId});a.networkId&&a.siteId&&o.placements.push(a)})),r.data=JSON.stringify(o),r.bidRequest=e,r.url="https://i.connectad.io/api/v2",r},interpretResponse:function(e,t,r){var n,i,o,a=[];i=t.bidRequest,e=(e||{}).body;for(var c=0;c<i.length;c++)if(n={},o=i[c].bidId,e){var s=e.decisions&&e.decisions[o],u=s&&s.pricing&&s.pricing.clearPrice;s&&u&&(n.requestId=o,n.cpm=u,n.width=s.width,n.height=s.height,n.dealid=s.dealid||null,n.meta={advertiserDomains:s&&s.adomain?s.adomain:[]},n.ad=f(s),n.currency="USD",n.creativeId=s.adId,n.ttl=360,n.netRevenue=!0,a.push(n))}return a},transformBidParams:function(e,t){return(0,i.uh)({siteId:"number",networkId:"number"},e)},getUserSyncs:function(e,t,r,n){var o="https://cdn.connectad.io/connectmyusers.php?";if(r&&(o=(0,i.t0)(o,"gdpr",r.gdprApplies?1:0)),r&&"string"==typeof r.consentString&&(o=(0,i.t0)(o,"gdpr_consent",r.consentString)),n&&(o=(0,i.t0)(o,"us_privacy",n)),!0===c.vc.getConfig("coppa")&&(o=(0,i.t0)(o,"coppa",1)),e.iframeEnabled)return[{type:"iframe",url:o}];(0,i.yN)("Bidder ConnectAd: Please activate iFrame Sync")}},p=[null,"120x90","200x200","468x60","728x90","300x250","160x600","120x600","300x100","180x150","336x280","240x400","234x60","88x31","120x60","120x240","125x125","220x250","250x250","250x90","0x0","200x90","300x50","320x50","320x480","185x185","620x45","300x125","800x250","980x120","980x150","320x150","300x300","200x600","320x500","320x320"];function f(e){return e.contents&&e.contents[0]&&e.contents[0].body}p[77]="970x90",p[123]="970x250",p[43]="300x600",p[286]="970x66",p[3230]="970x280",p[429]="486x60",p[374]="700x500",p[934]="300x1050",p[1578]="320x100",p[331]="320x250",p[3301]="320x267",p[2730]="728x250",(0,o.dX)(d),window.pbjs.installedModules.push("connectadBidAdapter")},2224:function(e,t,r){r.d(t,{HQ:function(){return c},Pv:function(){return s},UR:function(){return o}});var n=r(9853),i=r(265),o={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){return e.uid},getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,n.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},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}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},gravitompId:{source:"gravito.net",atype:1}};function a(e,t){var r=o[t];if(r&&e){var i={};i.source=r.source;var a=(0,n.LQ)(r.getValue)?r.getValue(e):e;if((0,n.d8)(a)){var c={id:a,atype:r.atype};if((0,n.LQ)(r.getUidExt)){var s=r.getUidExt(e);s&&(c.ext=s)}if(i.uids=[c],(0,n.LQ)(r.getEidExt)){var u=r.getEidExt(e);u&&(i.ext=u)}return i}}return null}function c(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else{var n=a(e[r],r);n&&t.push(n)}return t}function s(e){var t=[];return e.filter((function(e){return(0,n.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){(0,i.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,i.Z)(o,r+".source")&&t.push({source:o[r].source,bidders:e.config.bidders})}))})),t}},4806:function(e,t,r){function n(e,t,r){t.split&&(t=t.split("."));for(var n,i=0,o=t.length,a=e;i<o;++i)n=a[t[i]],a=a[t[i]]=i===o-1?r:null!=n?n:!~t[i+1].indexOf(".")&&+t[i+1]>-1?[]:{}}r.d(t,{Z:function(){return n}})}},function(e){e(e.s=2902)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[266],{1654:function(n,e,t){var o=t(9853),a=t(8962),r=t(7602),i=t(1879);function c(n){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},c(n)}function s(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,o)}return t}function d(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?s(Object(t),!0).forEach((function(e){l(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function l(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var u,f,p,g,v,m={value:!0,definedInConfig:!1},C=0,b=!1,y={iab:function(n){var e=n.onSuccess,t=n.onError,a=n.width,r=n.height;function c(n,a){(0,o.PN)("Received a response from CMP",n),a?!1!==n.gdprApplies&&"tcloaded"!==n.eventStatus&&"useractioncomplete"!==n.eventStatus||P(n,{onSuccess:e,onError:t}):t("CMP unable to register callback function.  Please check CMP setup.")}var s=function(){var n={};function a(){n.getConsentData&&n.getVendorConsents&&((0,o.PN)("Received all requested responses from CMP",n),P(n,{onSuccess:e,onError:t}))}return{consentDataCallback:function(e){n.getConsentData=e,a()},vendorConsentsCallback:function(e){n.getVendorConsents=e,a()}}}(),d={},u=function(){for(var n,e,t=window;!n;){try{if("function"==typeof t.__tcfapi||"function"==typeof t.__cmp){"function"==typeof t.__tcfapi?(C=2,e=t.__tcfapi):(C=1,e=t.__cmp),n=t;break}}catch(n){}try{if(t.frames.__tcfapiLocator){C=2,n=t;break}}catch(n){}try{if(t.frames.__cmpLocator){C=1,n=t;break}}catch(n){}if(t===window.top)break;t=t.parent}return{cmpFrame:n,cmpFunction:e}}(),f=u.cmpFrame,p=u.cmpFunction;if(!f)return t("CMP not found.");function g(n,e){window.$sf.ext.register(a,r,(function(t,o){if("cmpReturn"===t){var a="getConsentData"===n?o.vendorConsentData:o.vendorConsents;e(a)}})),window.$sf.ext.cmp(n)}function v(n,e,t){var o=2===C?"__tcfapi":"__cmp",a="".concat(o,"Call");function r(n){var e="".concat(o,"Return"),t="string"==typeof n.data&&(0,i.q9)(n.data,e)?JSON.parse(n.data):n.data;if(t[e]&&t[e].callId){var a=t[e];void 0!==d[a.callId]&&d[a.callId](a.returnValue,a.success)}}2===C?(window[o]=function(n,t,o,r){var i=Math.random()+"",c=l({},a,{command:n,version:t,parameter:r,callId:i});d[i]=o,e.postMessage(c,"*")},window.addEventListener("message",r,!1),window[o](n,C,t)):(window[o]=function(n,t,o){var r=Math.random()+"",i=l({},a,{command:n,parameter:t,callId:r});d[r]=o,e.postMessage(i,"*")},window.addEventListener("message",r,!1),window[o](n,void 0,t))}(0,o.LQ)(p)?((0,o.PN)("Detected CMP API is directly accessible, calling it now..."),1===C?(p("getConsentData",null,s.consentDataCallback),p("getVendorConsents",null,s.vendorConsentsCallback)):2===C&&p("addEventListener",C,c)):1===C&&window.$sf&&window.$sf.ext&&"function"==typeof window.$sf.ext.cmp?((0,o.PN)("Detected Prebid.js is encased in a SafeFrame and CMP is registered, calling it now..."),g("getConsentData",s.consentDataCallback),g("getVendorConsents",s.vendorConsentsCallback)):((0,o.PN)("Detected CMP is outside the current iframe where Prebid.js is located, calling it now..."),1===C?(v("getConsentData",f,s.consentDataCallback),v("getVendorConsents",f,s.vendorConsentsCallback)):2===C&&v("addEventListener",f,c))},static:function(n){var e=n.onSuccess,t=n.onError;P(g,{onSuccess:e,onError:t})}};function w(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=!1,a=null;function c(e,t,i){if(null!=a&&clearTimeout(a),o=!0,r.rp.setConsentData(e),null!=n){for(var c=arguments.length,s=new Array(c>3?c-3:0),d=3;d<c;d++)s[d-3]=arguments[d];n.apply(void 0,[t,i].concat(s))}}if((0,i.q9)(Object.keys(y),u)){var s={onSuccess:function(n){return c(n,!1)},onError:function(n){var e=null,t=!0;m.value&&1===C&&(e=D(void 0),t=!1);for(var o=arguments.length,a=new Array(o>1?o-1:0),r=1;r<o;r++)a[r-1]=arguments[r];c.apply(void 0,[e,t,n].concat(a))}};y[u](d({width:e,height:t},s)),o||(0===f?P(void 0,s):a=setTimeout((function(){2===C?c(D(void 0),!1,"No response from CMP, continuing auction..."):s.onError("CMP workflow exceeded timeout threshold.")}),f))}else c(null,!1,"CMP framework (".concat(u,") is not a supported framework.  Aborting consentManagement module and resuming auction."))}function h(n,e){!function(){if(v)return(0,o.PN)("User consent information already known.  Pulling internally stored information..."),function(n){n(!1)};var n=e.adUnits||pbjs.adUnits,t=1,a=1;if(Array.isArray(n)&&n.length>0){var r,i,c=(0,o.pw)(n[0]);t=(null==c||null===(r=c[0])||void 0===r?void 0:r[0])||1,a=(null==c||null===(i=c[0])||void 0===i?void 0:i[1])||1}return function(n){w(n,t,a)}}()((function(t,a){if(a){var r=o.yN;1!==C||t?t&&(r=o.H,a="".concat(a," Canceling auction as per consentManagement config.")):a="".concat(a," 'allowAuctionWithoutConsent' activated.");for(var i=arguments.length,c=new Array(i>2?i-2:0),s=2;s<i;s++)c[s-2]=arguments[s];r.apply(void 0,[a].concat(c))}t?"function"==typeof e.bidsBackHandler?e.bidsBackHandler():(0,o.H)("Error executing bidsBackHandler"):n.call(this,e)}))}function P(n,e){var t=e.onSuccess,a=e.onError;"static"===u&&2==(C=n.getConsentData?1:n.getTCData?2:0)&&(n=n.getTCData);var r=1===C?function(n){var e=n&&n.getConsentData&&n.getConsentData.gdprApplies;return!("boolean"==typeof e&&(!0!==e||(0,o.d8)(n.getConsentData.consentData)&&(0,o.PO)(n.getVendorConsents)&&Object.keys(n.getVendorConsents).length>1))}:2===C?function(){var e=n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:p,t=n&&n.tcString;return!("boolean"==typeof e&&(!0!==e||(0,o.d8)(t)))}:null;(0,o.LQ)(r)?r(n)?a("CMP returned unexpected value during lookup process.",n):t(D(n)):a("Unable to derive CMP version to process data.  Consent object does not conform to TCF v1 or v2 specs.",n)}function D(n){return 1===C?v={consentString:n?n.getConsentData.consentData:void 0,vendorData:n?n.getVendorConsents:void 0,gdprApplies:n?n.getConsentData.gdprApplies:p}:(v={consentString:n?n.tcString:void 0,vendorData:n||void 0,gdprApplies:n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:p},n&&n.addtlConsent&&(0,o.d8)(n.addtlConsent)&&(v.addtlConsent=n.addtlConsent)),v.apiVersion=C,v}a.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&(n.gdpr||n.usp?n.gdpr:n))&&"object"===c(n)?((0,o.d8)(n.cmpApi)?u=n.cmpApi:(u="iab",(0,o.PN)("consentManagement config did not specify cmp.  Using system default setting (".concat("iab",")."))),(0,o.hj)(n.timeout)?f=n.timeout:(f=1e4,(0,o.PN)("consentManagement config did not specify timeout.  Using system default setting (".concat(1e4,")."))),"boolean"==typeof n.allowAuctionWithoutConsent&&(m.value=n.allowAuctionWithoutConsent,m.definedInConfig=!0),p=!0===n.defaultGdprScope,(0,o.PN)("consentManagement module has been activated..."),"static"===u&&((0,o.PO)(n.consentData)?(g=n.consentData,f=0):(0,o.H)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),b||pbjs.requestBids.before(h,50),b=!0,r.rp.enable(),w(),m.definedInConfig&&2===C?(0,o.yN)("'allowAuctionWithoutConsent' ignored for TCF 2"):m.definedInConfig||1!==C||(0,o.PN)("'allowAuctionWithoutConsent' using system default: (".concat(!0,")."))):(0,o.yN)("consentManagement config not defined, exiting consent manager")}(n.consentManagement)})),window.pbjs.installedModules.push("consentManagement")}},function(n){n(n.s=1654)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[160],{1366:function(n,t,e){var a=e(9853),o=e(8962),c=e(7602);function i(n){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},i(n)}var s,r,u,l,p=!1,f={iab:function(n){var t,e=n.onSuccess,o=n.onError,c=(t={},{consentDataCallback:function(n,a){a&&n.uspString&&(t.usPrivacy=n.uspString),t.usPrivacy?m(t,{onSuccess:e,onError:o}):o("Unable to get USP consent string.")}}),i={},s=function(){for(var n,t,e=window;!n;){try{if("function"==typeof e.__uspapi){t=e.__uspapi,n=e;break}}catch(n){}try{if(e.frames.__uspapiLocator){n=e;break}}catch(n){}if(e===window.top)break;e=e.parent}return{uspapiFrame:n,uspapiFunction:t}}(),r=s.uspapiFrame,u=s.uspapiFunction;if(!r)return o("USP CMP not found.");(0,a.LQ)(u)?((0,a.PN)("Detected USP CMP is directly accessible, calling it now..."),u("getUSPData",1,c.consentDataCallback)):((0,a.PN)("Detected USP CMP is outside the current iframe where Prebid.js is located, calling it now..."),function(n,t,e){window.__uspapi=function(n,e,a){var o=Math.random()+"",c={__uspapiCall:{command:n,version:e,callId:o}};i[o]=a,t.postMessage(c,"*")},window.addEventListener("message",(function(n){var t=n&&n.data&&n.data.__uspapiReturn;t&&t.callId&&void 0!==i[t.callId]&&(i[t.callId](t.returnValue,t.success),delete i[t.callId])}),!1),window.__uspapi("getUSPData",1,e)}(0,r,c.consentDataCallback))},static:function(n){var t=n.onSuccess,e=n.onError;m(u,{onSuccess:t,onError:e})}};function d(n){var t=null,e=!1;function a(a,o){if(null!=t&&clearTimeout(t),e=!0,c.nX.setConsentData(a),null!=n){for(var i=arguments.length,s=new Array(i>2?i-2:0),r=2;r<i;r++)s[r-2]=arguments[r];n.apply(void 0,[o].concat(s))}}if(f[s]){var o={onSuccess:a,onError:function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];a.apply(void 0,[null,"".concat(n," Resuming auction without consent data as per consentManagement config.")].concat(e))}};f[s](o),e||(0===r?m(void 0,o):t=setTimeout(o.onError.bind(null,"USPAPI workflow exceeded timeout threshold."),r))}else a(null,"USP framework (".concat(s,") is not a supported framework. Aborting consentManagement module and resuming auction."))}function g(n,t){var e=this;d((function(o){if(null!=o){for(var c=arguments.length,i=new Array(c>1?c-1:0),s=1;s<c;s++)i[s-1]=arguments[s];a.yN.apply(void 0,[o].concat(i))}n.call(e,t)}))}function m(n,t){var e=t.onSuccess,a=t.onError;n&&n.usPrivacy?(function(n){n&&n.usPrivacy&&(l=n.usPrivacy)}(n),e(l)):a("USPAPI returned unexpected value during lookup process.",n)}o.vc.getConfig("consentManagement",(function(n){return function(n){(n=n&&n.usp)&&"object"===i(n)?((0,a.d8)(n.cmpApi)?s=n.cmpApi:(s="iab",(0,a.PN)("consentManagement.usp config did not specify cmpApi. Using system default setting (".concat("iab",")."))),(0,a.hj)(n.timeout)?r=n.timeout:(r=50,(0,a.PN)("consentManagement.usp config did not specify timeout. Using system default setting (".concat(50,")."))),(0,a.PN)("USPAPI consentManagement module has been activated..."),"static"===s&&((0,a.PO)(n.consentData)&&(0,a.PO)(n.consentData.getUSPData)?(n.consentData.getUSPData.uspString&&(u={usPrivacy:n.consentData.getUSPData.uspString}),r=0):(0,a.H)("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),p||pbjs.requestBids.before(g,50),p=!0,c.nX.enable(),d()):(0,a.yN)("consentManagement.usp config not defined, exiting usp consent manager")}(n.consentManagement)})),window.pbjs.installedModules.push("consentManagementUsp")}},function(n){n(n.s=1366)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[406],{6201:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){var _src_utils_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9853),_src_utils_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(265),_src_adloader_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6996),_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1125),_src_config_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8962),_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8265),_src_polyfill_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1879),criteo_direct_rsa_validate_build_verify_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1582),_src_storageManager_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5849);function _extends(){return _extends=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},_extends.apply(this,arguments)}var GVLID=91,ADAPTER_VERSION=34,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__.df)({gvlid:GVLID,bidderCode:BIDDER_CODE}),LOG_PREFIX="Criteo: ",FAST_BID_VERSION_PLACEHOLDER="%FAST_BID_VERSION%",FAST_BID_VERSION_CURRENT=117,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",FAST_BID_PUBKEY_E=65537,FAST_BID_PUBKEY_N="ztQYwCE5BU7T9CDM5he6rKoabstXRmkzx54zFPZkWbK530dwtLBDeaWBMxHBUT55CYyboR/EZ4efghPi3CoNGfGWezpjko9P6p2EwGArtHEeS4slhu/SpSIFMjG6fdrpRoNuIAMhq1Z+Pr/+HOd1pThFKeGFr2/NhtAg+TXAzaU=",spec={code:BIDDER_CODE,gvlid:GVLID,supportedMediaTypes:[_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.Mk,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.pX,_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5],isBidRequestValid:function(t){return!(!t||!t.params||!t.params.zoneId&&!t.params.networkId||hasVideoMediaType(t)&&!hasValidVideoMediaType(t))},buildRequests:function(t,e){var r,i,s,a,o=_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("ortb2")||{};_extends(e,{publisherExt:null===(r=o.site)||void 0===r?void 0:r.ext,userExt:null===(i=o.user)||void 0===i?void 0:i.ext,ceh:_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("criteo.ceh")});var n=_src_config_js__WEBPACK_IMPORTED_MODULE_3__.vc.getConfig("criteo.fastBidVersion"),_=canFastBid(n);if(!publisherTagAvailable()&&_){window.Criteo=window.Criteo||{},window.Criteo.usePrebidEvents=!1,tryGetCriteoFastBid();var p=getFastBidUrl(n);setTimeout((function(){(0,_src_adloader_js__WEBPACK_IMPORTED_MODULE_4__.B)(p,BIDDER_CODE)}),e.timeout)}if(publisherTagAvailable()){var d=new Criteo.PubTag.Adapters.Prebid(PROFILE_ID_PUBLISHERTAG,ADAPTER_VERSION,t,e,"6.26.0");s=d.buildCdbUrl(),a=d.buildCdbRequest()}else{var u=buildContext(t,e);s=buildCdbUrl(u),a=buildCdbRequest(u,t,e)}if(a)return{method:"POST",url:s,data:a,bidRequests:t}},interpretResponse:function(t,e){var r=t.body||t;if(publisherTagAvailable()){var i=Criteo.PubTag.Adapters.Prebid.GetAdapter(e);if(i)return i.interpretResponse(r,e)}var s=[];return r&&r.slots&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.kJ)(r.slots)&&r.slots.forEach((function(i){var a,o,n,_,p=(0,_src_polyfill_js__WEBPACK_IMPORTED_MODULE_6__.sE)(e.bidRequests,(function(t){return t.adUnitCode===i.impid&&(!t.params.zoneId||parseInt(t.params.zoneId)===i.zoneid)})),d=p.bidId,u={requestId:d,adId:i.bidId||(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__._d)(),cpm:i.cpm,currency:i.currency,netRevenue:!0,ttl:i.ttl||60,creativeId:i.creativecode,width:i.width,height:i.height,dealId:i.dealCode};if(null!==(a=r.ext)&&void 0!==a&&null!==(o=a.paf)&&void 0!==o&&o.transmission&&null!==(n=i.ext)&&void 0!==n&&null!==(_=n.paf)&&void 0!==_&&_.content_id){var c={content_id:i.ext.paf.content_id,transmission:t.ext.paf.transmission};u.meta=_extends({},u.meta,{paf:c})}i.adomain&&(u.meta=_extends({},u.meta,{advertiserDomains:i.adomain})),i.native?p.params.nativeCallback?u.ad=createNativeAd(d,i.native,p.params.nativeCallback):(u.native=createPrebidNativeAd(i.native),u.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5):i.video?(u.vastUrl=i.displayurl,u.mediaType=_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.pX):u.ad=i.creative,s.push(u)})),s},onTimeout:function(t){if(publisherTagAvailable()&&Array.isArray(t)){var e=[];t.forEach((function(t){-1===e.indexOf(t.auctionId)&&(e.push(t.auctionId),Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidTimeout())}))}},onBidWon:function(t){publisherTagAvailable()&&t&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleBidWon(t)},onSetTargeting:function(t){publisherTagAvailable()&&Criteo.PubTag.Adapters.Prebid.GetAdapter(t.auctionId).handleSetTargeting(t)}};function publisherTagAvailable(){return"undefined"!=typeof Criteo&&Criteo.PubTag&&Criteo.PubTag.Adapters&&Criteo.PubTag.Adapters.Prebid}function buildContext(t,e){var r="";e&&e.refererInfo&&(r=e.refererInfo.referer);var i=(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.en)(r).search,s={url:r,debug:"1"===i.pbt_debug,noLog:"1"===i.pbt_nolog,amp:!1};return t.forEach((function(t){"amp"===t.params.integrationMode&&(s.amp=!0)})),s}function buildCdbUrl(t){var e=CDB_ENDPOINT;return e+="?profileId="+PROFILE_ID_INLINE,e+="&av="+String(ADAPTER_VERSION),e+="&wv="+encodeURIComponent("6.26.0"),e+="&cb="+String(Math.floor(99999999999*Math.random())),t.amp&&(e+="&im=1"),t.debug&&(e+="&debug=1"),t.noLog&&(e+="&nolog=1"),e}function checkNativeSendId(t){return!(t.nativeParams&&(t.nativeParams.image&&(!0!==t.nativeParams.image.sendId||!0===t.nativeParams.image.sendTargetingKeys)||t.nativeParams.icon&&(!0!==t.nativeParams.icon.sendId||!0===t.nativeParams.icon.sendTargetingKeys)||t.nativeParams.clickUrl&&(!0!==t.nativeParams.clickUrl.sendId||!0===t.nativeParams.clickUrl.sendTargetingKeys)||t.nativeParams.displayUrl&&(!0!==t.nativeParams.displayUrl.sendId||!0===t.nativeParams.displayUrl.sendTargetingKeys)||t.nativeParams.privacyLink&&(!0!==t.nativeParams.privacyLink.sendId||!0===t.nativeParams.privacyLink.sendTargetingKeys)||t.nativeParams.privacyIcon&&(!0!==t.nativeParams.privacyIcon.sendId||!0===t.nativeParams.privacyIcon.sendTargetingKeys)))}function buildCdbRequest(t,e,r){var i,s,a={publisher:{url:t.url,ext:r.publisherExt},slots:e.map((function(t){i=t.params.networkId||i,s=t.schain||s;var e={impid:t.adUnitCode,transactionid:t.transactionId,auctionId:t.auctionId};if(t.params.zoneId&&(e.zoneid=t.params.zoneId),(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Z)(t,"ortb2Imp.ext")&&(e.ext=t.ortb2Imp.ext),t.params.ext&&(e.ext=_extends({},e.ext,t.params.ext)),t.params.publisherSubId&&(e.publishersubid=t.params.publisherSubId),t.params.nativeCallback||(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Z)(t,"mediaTypes.".concat(_src_mediaTypes_js__WEBPACK_IMPORTED_MODULE_2__.B5))?(e.native=!0,checkNativeSendId(t)||(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.yN)(LOG_PREFIX+"all native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, displayUrl, privacyLink, privacyIcon)"),e.sizes=parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Z)(t,"mediaTypes.banner.sizes"),parseNativeSize)):e.sizes=parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Z)(t,"mediaTypes.banner.sizes"),parseSize),hasVideoMediaType(t)){var r={playersizes:parseSizes((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Z)(t,"mediaTypes.video.playerSize"),parseSize),mimes:t.mediaTypes.video.mimes,protocols:t.mediaTypes.video.protocols,maxduration:t.mediaTypes.video.maxduration,api:t.mediaTypes.video.api,skip:t.mediaTypes.video.skip,placement:t.mediaTypes.video.placement,minduration:t.mediaTypes.video.minduration,playbackmethod:t.mediaTypes.video.playbackmethod,startdelay:t.mediaTypes.video.startdelay},a=t.params.video;void 0!==a&&(r.skip=r.skip||a.skip||0,r.placement=r.placement||a.placement,r.minduration=r.minduration||a.minduration,r.playbackmethod=r.playbackmethod||a.playbackmethod,r.startdelay=r.startdelay||a.startdelay||0),e.video=r}return e}))};return i&&(a.publisher.networkid=i),s&&(a.source={ext:{schain:s}}),a.user={ext:r.userExt},r&&r.ceh&&(a.user.ceh=r.ceh),r&&r.gdprConsent&&(a.gdprConsent={},void 0!==r.gdprConsent.gdprApplies&&(a.gdprConsent.gdprApplies=!!r.gdprConsent.gdprApplies),a.gdprConsent.version=r.gdprConsent.apiVersion,void 0!==r.gdprConsent.consentString&&(a.gdprConsent.consentData=r.gdprConsent.consentString)),r&&r.uspConsent&&(a.user.uspIab=r.uspConsent),a}function parseSizes(t,e){return null==t?[]:Array.isArray(t[0])?t.map((function(t){return e(t)})):[e(t)]}function parseSize(t){return t[0]+"x"+t[1]}function parseNativeSize(t){return void 0===t[0]&&void 0===t[1]?"2x2":t[0]+"x"+t[1]}function hasVideoMediaType(t){return void 0!==(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Z)(t,"mediaTypes.video")}function hasValidVideoMediaType(t){var e=!0;if(["mimes","playerSize","maxduration","protocols","api","skip","placement","playbackmethod"].forEach((function(r){void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Z)(t,"mediaTypes.video."+r)&&void 0===(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_7__.Z)(t,"params.video."+r)&&(e=!1,(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.H)("Criteo Bid Adapter: mediaTypes.video."+r+" is required"))})),e){var r=t.mediaTypes.video.placement||t.params.video.placement;if("instream"==t.mediaTypes.video.context&&1===r)return!0;if("outstream"==t.mediaTypes.video.context&&1!==r)return!0}return!1}function createPrebidNativeAd(t){return{sendTargetingKeys:!1,title:t.products[0].title,body:t.products[0].description,sponsoredBy:t.advertiser.description,icon:t.advertiser.logo,image:t.products[0].image,clickUrl:t.products[0].click_url,privacyLink:t.privacy.optout_click_url,privacyIcon:t.privacy.optout_image_url,cta:t.products[0].call_to_action,price:t.products[0].price,impressionTrackers:t.impression_pixels.map((function(t){return t.url}))}}function createNativeAd(t,e,r){var i="criteo_prebid_native_slots";return window[i]=window[i]||{},window[i][t]={callback:r,payload:e},'\n<script type="text/javascript">\nfor (var i = 0; i < 10; ++i) {\n var slots = window.parent.'.concat(i,';\n  if(!slots){continue;}\n  var responseSlot = slots["').concat(t,'"];\n  responseSlot.callback(responseSlot.payload);\n  break;\n}\n<\/script>')}function canFastBid(t){return t!==FAST_BID_VERSION_NONE}function getFastBidUrl(t){var e;return t===FAST_BID_VERSION_LATEST?e="":t?(String(t).split(".")[0]<102&&(0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.yN)("Specifying a Fastbid version which is not supporting version selection."),e="."+t):e="."+FAST_BID_VERSION_CURRENT,PUBLISHER_TAG_URL_TEMPLATE.replace(FAST_BID_VERSION_PLACEHOLDER,e)}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_5__.yN)("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__.T)(publisherTag,publisherTagHash,FAST_BID_PUBKEY_N,FAST_BID_PUBKEY_E)?((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.PN)("Using Criteo FastBid"),eval(publisherTag)):((0,_src_utils_js__WEBPACK_IMPORTED_MODULE_5__.yN)("Invalid Criteo FastBid found"),storage.removeDataFromLocalStorage(fastBidStorageKey))}}}catch(t){}}(0,_src_adapters_bidderFactory_js__WEBPACK_IMPORTED_MODULE_8__.dX)(spec),window.pbjs.installedModules.push("criteoBidAdapter")},4611:function(t,e){var r;Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){null!==t&&this.fromHexString(t)}return t.prototype.toHexString=function(){if(this.s<0)return"-"+this.negate().toHexString();var t,e=!1,r="",i=this.t,s=this.DB-i*this.DB%4;if(i-- >0)for(s<this.DB&&(t=this[i]>>s)>0&&(e=!0,r=d(t));i>=0;)s<4?(t=(this[i]&(1<<s)-1)<<4-s,t|=this[--i]>>(s+=this.DB-4)):(t=this[i]>>(s-=4)&15,s<=0&&(s+=this.DB,--i)),t>0&&(e=!0),e&&(r+=d(t));return e?r:"0"},t.prototype.fromHexString=function(e){if(null!==e){this.t=0,this.s=0;for(var r=e.length,i=!1,s=0;--r>=0;){var a=p(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==s?this[this.t++]=a:s+4>this.DB?(this[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this[this.t++]=a>>this.DB-s):this[this.t-1]|=a<<s,(s+=4)>=this.DB&&(s-=this.DB))}this.clamp(),i&&t.ZERO.subTo(this,this)}},t.prototype.negate=function(){var e=s();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.mod=function(e){var r=s();return this.abs().divRemTo(e,null,r),this.s<0&&r.compareTo(t.ZERO)>0&&e.subTo(r,r),r},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.lShiftTo=function(t,e){for(var r=t%this.DB,i=this.DB-r,s=(1<<i)-1,a=Math.floor(t/this.DB),o=this.s<<r&this.DM,n=this.t-1;n>=0;--n)e[n+a+1]=this[n]>>i|o,o=(this[n]&s)<<r;for(n=a-1;n>=0;--n)e[n]=0;e[a]=o,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.dlShiftTo=function(t,e){var r;for(r=this.t-1;r>=0;--r)e[r+t]=this[r];for(r=t-1;r>=0;--r)e[r]=0;e.t=this.t+t,e.s=this.s},t.prototype.squareTo=function(t){for(var e=this.abs(),r=t.t=2*e.t;--r>=0;)t[r]=0;for(r=0;r<e.t-1;++r){var i=e.am(r,e[r],t,2*r,0,1);(t[r+e.t]+=e.am(r+1,2*e[r],t,2*r+1,i,e.t-r-1))>=e.DV&&(t[r+e.t]-=e.DV,t[r+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(r,e[r],t,2*r,0,1)),t.s=0,t.clamp()},t.prototype.multiplyTo=function(e,r){var i=this.abs(),s=e.abs(),a=i.t;for(r.t=a+s.t;--a>=0;)r[a]=0;for(a=0;a<s.t;++a)r[a+i.t]=i.am(0,s[a],r,a,0,i.t);r.s=0,r.clamp(),this.s!=e.s&&t.ZERO.subTo(r,r)},t.prototype.divRemTo=function(e,r,i){var o=e.abs();if(!(o.t<=0)){var n=this.abs();if(n.t<o.t)return null!=r&&r.fromHexString("0"),void(null!=i&&this.copyTo(i));null==i&&(i=s());var _=s(),p=this.s,d=e.s,u=this.DB-a(o[o.t-1]);u>0?(o.lShiftTo(u,_),n.lShiftTo(u,i)):(o.copyTo(_),n.copyTo(i));var c=_.t,l=_[c-1];if(0!=l){var h=l*(1<<this.F1)+(c>1?_[c-2]>>this.F2:0),f=this.FV/h,m=(1<<this.F1)/h,v=1<<this.F2,E=i.t,T=E-c,y=null==r?s():r;for(_.dlShiftTo(T,y),i.compareTo(y)>=0&&(i[i.t++]=1,i.subTo(y,i)),t.ONE.dlShiftTo(c,y),y.subTo(_,_);_.t<c;)_[_.t++]=0;for(;--T>=0;){var D=i[--E]==l?this.DM:Math.floor(i[E]*f+(i[E-1]+v)*m);if((i[E]+=_.am(0,D,i,T,0,c))<D)for(_.dlShiftTo(T,y),i.subTo(y,i);i[E]<--D;)i.subTo(y,i)}null!=r&&(i.drShiftTo(c,r),p!=d&&t.ZERO.subTo(r,r)),i.t=c,i.clamp(),u>0&&i.rShiftTo(u,i),p<0&&t.ZERO.subTo(i,i)}}},t.prototype.rShiftTo=function(t,e){e.s=this.s;var r=Math.floor(t/this.DB);if(r>=this.t)e.t=0;else{var i=t%this.DB,s=this.DB-i,a=(1<<i)-1;e[0]=this[r]>>i;for(var o=r+1;o<this.t;++o)e[o-r-1]|=(this[o]&a)<<s,e[o-r]=this[o]>>i;i>0&&(e[this.t-r-1]|=(this.s&a)<<s),e.t=this.t-r,e.clamp()}},t.prototype.drShiftTo=function(t,e){for(var r=t;r<this.t;++r)e[r-t]=this[r];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.subTo=function(t,e){for(var r=0,i=0,s=Math.min(t.t,this.t);r<s;)i+=this[r]-t[r],e[r++]=i&this.DM,i>>=this.DB;if(t.t<this.t){for(i-=t.s;r<this.t;)i+=this[r],e[r++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;r<t.t;)i-=t[r],e[r++]=i&this.DM,i>>=this.DB;i-=t.s}e.s=i<0?-1:0,i<-1?e[r++]=this.DV+i:i>0&&(e[r++]=i),e.t=r,e.clamp()},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.modPowInt=function(t,e){var r;return r=t<256||e.isEven()?new u(e):new c(e),this.exp(t,r)},t.prototype.exp=function(e,r){if(e>4294967295||e<1)return t.ONE;var i=s(),o=s(),n=r.convert(this),_=a(e)-1;for(n.copyTo(i);--_>=0;)if(r.sqrTo(i,o),(e&1<<_)>0)r.mulTo(o,n,i);else{var p=i;i=o,o=p}return r.revert(i)},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var r=this.t;if(0!=(e=r-t.t))return this.s<0?-e:e;for(;--r>=0;)if(0!=(e=this[r]-t[r]))return e;return 0},t.prototype.am1=function(t,e,r,i,s,a){for(;--a>=0;){var o=e*this[t++]+r[i]+s;s=Math.floor(o/67108864),r[i++]=67108863&o}return s},t.prototype.am2=function(t,e,r,i,s,a){for(var o=32767&e,n=e>>15;--a>=0;){var _=32767&this[t],p=this[t++]>>15,d=n*_+p*o;s=((_=o*_+((32767&d)<<15)+r[i]+(1073741823&s))>>>30)+(d>>>15)+n*p+(s>>>30),r[i++]=1073741823&_}return s},t.prototype.am3=function(t,e,r,i,s,a){for(var o=16383&e,n=e>>14;--a>=0;){var _=16383&this[t],p=this[t++]>>14,d=n*_+p*o;s=((_=o*_+((16383&d)<<14)+r[i]+s)>>28)+(d>>14)+n*p,r[i++]=268435455&_}return s},t}();function s(){return new i(null)}function a(t){var e,r=1;return 0!=(e=t>>>16)&&(t=e,r+=16),0!=(e=t>>8)&&(t=e,r+=8),0!=(e=t>>4)&&(t=e,r+=4),0!=(e=t>>2)&&(t=e,r+=2),0!=(e=t>>1)&&(t=e,r+=1),r}e.BigInteger=i,e.nbi=s,e.nbits=a;var o,n,_=[];for(o="0".charCodeAt(0),n=0;n<=9;++n)_[o++]=n;for(o="a".charCodeAt(0),n=10;n<36;++n)_[o++]=n;for(o="A".charCodeAt(0),n=10;n<36;++n)_[o++]=n;function p(t,e){var r=_[t.charCodeAt(e)];return null==r?-1:r}function d(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}e.intAt=p,e.int2char=d,e.b64toHex=function(t){var e,r="",i=0,s=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(t.charAt(e));a<0||(0==i?(r+=d(a>>2),s=3&a,i=1):1==i?(r+=d(s<<2|a>>4),s=15&a,i=2):2==i?(r+=d(s),r+=d(a>>2),s=3&a,i=3):(r+=d(s<<2|a>>4),r+=d(15&a),i=0))}return 1==i&&(r+=d(s<<2)),r},e.removeExtraSymbols=function(t){return t.replace(/^1f+00/,"").replace("3031300d060960864801650304020105000420","")};var u=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),c=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=s();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(i.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=s();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var r=32767&t[e],i=r*this.mpl+((r*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[r=e+this.m.t]+=this.m.am(0,i,t,e,0,this.m.t);t[r]>=t.DV;)t[r]-=t.DV,t[++r]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,r){t.multiplyTo(e,r),this.reduce(r)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function l(t){var e=s();return e.fromHexString(t.toString()),e}e.nbv=l,i.ZERO=l(0),i.ONE=l(1),"Microsoft Internet Explorer"==navigator.appName?(i.prototype.am=i.prototype.am2,r=30):"Netscape"!=navigator.appName?(i.prototype.am=i.prototype.am1,r=26):(i.prototype.am=i.prototype.am3,r=28),i.prototype.DB=r,i.prototype.DM=(1<<r)-1,i.prototype.DV=1<<r,i.prototype.FV=Math.pow(2,52),i.prototype.F1=52-r,i.prototype.F2=2*r-52},4950:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t.hash=function(e){e=t.utf8Encode(e||"");for(var r=[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],i=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],s=(e+=String.fromCharCode(128)).length/4+2,a=Math.ceil(s/16),o=new Array(a),n=0;n<a;n++){o[n]=new Array(16);for(var _=0;_<16;_++)o[n][_]=e.charCodeAt(64*n+4*_)<<24|e.charCodeAt(64*n+4*_+1)<<16|e.charCodeAt(64*n+4*_+2)<<8|e.charCodeAt(64*n+4*_+3)<<0}var p=8*(e.length-1)/Math.pow(2,32),d=8*(e.length-1)>>>0;for(o[a-1][14]=Math.floor(p),o[a-1][15]=d,n=0;n<a;n++){for(var u=new Array(64),c=0;c<16;c++)u[c]=o[n][c];for(c=16;c<64;c++)u[c]=t.q1(u[c-2])+u[c-7]+t.q0(u[c-15])+u[c-16]>>>0;var l=i[0],h=i[1],f=i[2],m=i[3],v=i[4],E=i[5],T=i[6],y=i[7];for(c=0;c<64;c++){var D=y+t.z1(v)+t.Ch(v,E,T)+r[c]+u[c],b=t.z0(l)+t.Maj(l,h,f);y=T,T=E,E=v,v=m+D>>>0,m=f,f=h,h=l,l=D+b>>>0}i[0]=i[0]+l>>>0,i[1]=i[1]+h>>>0,i[2]=i[2]+f>>>0,i[3]=i[3]+m>>>0,i[4]=i[4]+v>>>0,i[5]=i[5]+E>>>0,i[6]=i[6]+T>>>0,i[7]=i[7]+y>>>0}var P=new Array(i.length);for(y=0;y<i.length;y++)P[y]=("00000000"+i[y].toString(16)).slice(-8);return P.join("")},t.utf8Encode=function(t){try{return(new TextEncoder).encode(t).reduce((function(t,e){return t+String.fromCharCode(e)}),"")}catch(e){return unescape(encodeURIComponent(t))}},t.ROTR=function(t,e){return e>>>t|e<<32-t},t.z0=function(e){return t.ROTR(2,e)^t.ROTR(13,e)^t.ROTR(22,e)},t.z1=function(e){return t.ROTR(6,e)^t.ROTR(11,e)^t.ROTR(25,e)},t.q0=function(e){return t.ROTR(7,e)^t.ROTR(18,e)^e>>>3},t.q1=function(e){return t.ROTR(17,e)^t.ROTR(19,e)^e>>>10},t.Ch=function(t,e,r){return t&e^~t&r},t.Maj=function(t,e,r){return t&e^t&r^e&r},t}();e.Sha256=r},1582:function(t,e,r){var i=r(4611),s=r(4950);e.T=function(t,e,r,a){var o=new i.BigInteger(i.b64toHex(e)),n=new i.BigInteger(i.b64toHex(r)),_=o.modPowInt(a,n);return i.removeExtraSymbols(_.toHexString())===s.Sha256.hash(t)}}},function(t){t(t.s=6201)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[73],{8253:function(o,e,n){var t=n(9853),c=n(5755),r=n(2661),i=n(3494),a="criteo",d=(0,n(5849).df)({gvlid:91,moduleName:a}),l="cto_bidid",s="cto_bundle",u=new Date(0).toString(),p=new Date((0,t.AB)()+33696e6).toString();function f(o){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,t.en)(o,{noDecodeWholeURL:!0});return e?"".concat(n.hostname):"".concat(n.protocol,"://").concat(n.hostname).concat(n.port?":"+n.port:"","/")}function b(o){return d.getCookie(o)||d.getDataFromLocalStorage(o)}function g(o,e,n){o&&e&&(d.setDataInLocalStorage(o,e),h(o,e,p,n,!0))}function h(o,e,n,t,c){for(var r=t.split("."),i=0;i<r.length;++i){var a=r.slice(r.length-i-1,r.length).join(".");try{if(d.setCookie(o,e,n,null,"."+a),c){var l=d.getCookie(o);if(l&&l===e)break}}catch(o){}}}var m={name:a,gvlid:91,decode:function(o){return o},getId:function(o,e){var n=e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies?e.consentString:void 0,i={bundle:b(s),bidId:b(l)};return{id:i.bidId?{criteoId:i.bidId}:void 0,callback:function(o){return function(o,e,n){var i=d.cookiesAreEnabled(),a=d.localStorageIsEnabled(),p=f((0,r.n)().referer),b=f(document.location.href,!0),m="undefined"!=typeof criteo_pubtag,I=function(o,e,n,t,c,r,i){return"https://gum.criteo.com/sid/json?origin=prebid"+"".concat(o?"&topUrl="+encodeURIComponent(o):"")+"".concat(e?"&domain="+encodeURIComponent(e):"")+"".concat(n?"&bundle="+encodeURIComponent(n):"")+"".concat(i?"&gdprString="+encodeURIComponent(i):"")+"".concat(t?"&cw=1":"")+"".concat(r?"&pbt=1":"")+"".concat(c?"&lsw=1":"")}(p,b,o.bundle,i,a,m,e),v={success:function(o){var e=JSON.parse(o);if(e.acwsUrl?("string"==typeof e.acwsUrl?[e.acwsUrl]:e.acwsUrl).forEach((function(o){return(0,t.hq)(o)})):e.bundle&&g(s,e.bundle,b),e.bidId){g(l,e.bidId,b);var c={criteoId:e.bidId};n(c)}else h(l,"",u,b,!0),d.removeDataFromLocalStorage("cto_bidid"),n()},error:function(o){(0,t.H)("criteoIdSystem: unable to sync user id",o),n()}};(0,c.h)(I,v,void 0,{method:"GET",contentType:"application/json",withCredentials:!0})}(i,n,o)}}}};(0,i.Bx)("userId",m),window.pbjs.installedModules.push("criteoIdSystem")}},function(o){o(o.s=8253)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[226],{3452:function(e,n,r){var o=r(9853),c=r(2528),t=r(1477),i=r(5644),s=r(5755),u=r(8962),a=r(3494),f=r(9367);function d(e){return d="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},d(e)}var l,y="https://cdn.jsdelivr.net/gh/prebid/currency-file@1/latest.json?date=$$TODAY$$",v=[],p={},g=!1,h=!0,b="USD",C=!1,m={},S={},R=function(){var e;function n(){e=(0,f.v)()}return n(),{done:function(){return e.resolve()},reset:n,promise:function(){return e.promise}}}();function N(e){l?((0,o.yN)(e),(0,o.yN)("Currency failed loading rates, falling back to currency.defaultRates")):(0,o.H)(e)}function w(e){p={},C=!0,(0,o.PN)("Installing addBidResponse decorator for currency module",arguments),(0,c.R)().convertCurrency=function(e,n,r){return parseFloat(e)*P(n,r)},(0,a.v5)("addBidResponse").before(j,100),h?(h=!1,(0,s.h)(e,{success:function(e){try{m=JSON.parse(e),(0,o.PN)("currencyRates set to "+JSON.stringify(m)),g=!0,F(),R.done()}catch(n){N("Failed to parse currencyRates response: "+e)}},error:function(){N.apply(void 0,arguments),R.done()}})):R.done()}function D(){(0,o.PN)("Uninstalling addBidResponse decorator for currency module",arguments),(0,a.v5)("addBidResponse").getHooks({hook:j}).remove(),delete(0,c.R)().convertCurrency,b="USD",p={},C=!1,g=!1,h=!0,m={},S={}}function j(e,n,r){if(!r)return e.call(this,n);var c=r.bidderCode||r.bidder;if(S[c]){var s=S[c];r.currency&&s!==r.currency?(0,o.yN)("Currency default '".concat(c,": ").concat(s,"' ignored. adapter specified '").concat(r.currency,"'")):r.currency=s}if(r.currency||((0,o.yN)('Currency not specified on bid.  Defaulted to "USD"'),r.currency="USD"),r.getCpmInNewCurrency=function(e){return(parseFloat(this.cpm)*P(this.currency,e)).toFixed(3)},r.currency===b)return e.call(this,n,r);v.push(function(e,n,r){return function(){var c=r[1];if(void 0!==c&&"currency"in c&&"cpm"in c){var s=c.currency;try{var u=P(s);1!==u&&(c.cpm=(parseFloat(c.cpm)*u).toFixed(4),c.currency=b)}catch(e){(0,o.yN)("Returning NO_BID, getCurrencyConversion threw error: ",e),r[1]=(0,t.m)(i.Q_.H,c.getIdentifiers())}}return e.apply(n,r)}}(e,this,[n,r])),!C||g?F():e.bail(R.promise())}function F(){for(;v.length>0;)v.shift()()}function P(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,c=null,t="".concat(e,"->").concat(r);if(t in p)c=p[t],(0,o.ji)("Using conversionCache value "+c+" for "+t);else if(!1===C){if("USD"!==e)throw new Error("Prebid currency support has not been enabled and fromCurrency is not USD");c=1}else if(e===r)c=1;else if(e in m.conversions){if(!(r in(n=m.conversions[e])))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");c=n[r],(0,o.PN)("getCurrencyConversion using direct "+e+" to "+r+" conversionRate "+c)}else if(r in m.conversions){if(!(e in(n=m.conversions[r])))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");c=U(1/n[e],4),(0,o.PN)("getCurrencyConversion using reciprocal "+e+" to "+r+" conversionRate "+c)}else{var i=Object.keys(m.conversions)[0];if(!(e in m.conversions[i]))throw new Error("Specified fromCurrency '"+e+"' not found in the currency rates file");var s=1/m.conversions[i][e];if(!(r in m.conversions[i]))throw new Error("Specified adServerCurrency in config '"+r+"' not found in the currency rates file");var u=m.conversions[i][r];c=U(s*u,4),(0,o.PN)("getCurrencyConversion using intermediate "+e+" thru "+i+" to "+r+" conversionRate "+c)}return t in p||((0,o.ji)("Adding conversionCache value "+c+" for "+t),p[t]=c),c}function U(e,n){for(var r=1,o=0;o<n;o++)r+="0";return Math.round(e*r)/r}u.vc.getConfig("currency",(function(e){return function(e){var n=y;if("object"===d(e.rates)&&(m.conversions=e.rates,g=!0,h=!1),"object"===d(e.defaultRates)&&(l=e.defaultRates,m.conversions=l,g=!0),"string"==typeof e.adServerCurrency){(0,o.PN)("enabling currency support",arguments),b=e.adServerCurrency,e.conversionRateFile&&((0,o.PN)("currency using override conversionRateFile:",e.conversionRateFile),n=e.conversionRateFile);var r=n.indexOf("$$TODAY$$");if(-1!==r){var c=new Date,t="".concat(c.getMonth()+1),i="".concat(c.getDate());t.length<2&&(t="0".concat(t)),i.length<2&&(i="0".concat(i));var s="".concat(c.getFullYear()).concat(t).concat(i);n="".concat(n.substring(0,r)).concat(s).concat(n.substring(r+9,n.length))}w(n)}else(0,o.PN)("disabling currency support"),D();"object"===d(e.bidderCurrencyDefault)&&(S=e.bidderCurrencyDefault)}(e.currency)})),window.pbjs.installedModules.push("currency")}},function(e){e(e.s=3452)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[286],{932:function(e,r,i){var t=i(9853),n=i(265),a=i(1125),d=i(8265),o=i(4877),s=i(1879);function u(){return u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e},u.apply(this,arguments)}var p="emx_digital",c="https://js.brealtime.com/outstream/1.30.0/bundle.js",l="USD",m=[{key:"idl_env",source:"liveramp.com",rtiPartner:"idl",queryParam:"idl"},{key:"uid2.id",source:"uidapi.com",rtiPartner:"UID2",queryParam:"uid2"}],g={validateSizes:function(e){return(0,t.kJ)(e)&&void 0!==e[0]?e.every((function(e){return(0,t.kJ)(e)&&2===e.length})):((0,t.yN)("emx_digital: Sizes should be an array"),!1)},checkVideoContext:function(e){return e&&e.mediaTypes&&e.mediaTypes.video&&e.mediaTypes.video.context&&("instream"===e.mediaTypes.video.context||"outstream"===e.mediaTypes.video.context)},buildBanner:function(e){var r=[];return r=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes?e.mediaTypes.banner.sizes:e.sizes,g.validateSizes(r)||((0,t.yN)("emx_digital: could not detect mediaType banner sizes. Assigning to bid sizes instead"),r=e.sizes),{format:r.map((function(e){return{w:e[0],h:e[1]}})),w:r[0][0],h:r[0][1]}},formatVideoResponse:function(e,r,i){return e.vastXml=r.adm,i.bidderRequest&&i.bidderRequest.bids&&i.bidderRequest.bids.length>0&&(0,s.sE)(i.bidderRequest.bids,(function(r){return e.requestId&&r.bidId&&e.requestId===r.bidId&&r.mediaTypes&&r.mediaTypes.video&&"outstream"===r.mediaTypes.video.context}))&&(e.renderer=g.createRenderer(e,{id:r.id,url:c})),e},isMobile:function(){return/(ios|ipod|ipad|iphone|android)/i.test(navigator.userAgent)},isConnectedTV:function(){return/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(navigator.userAgent)},getDevice:function(){return{ua:navigator.userAgent,js:1,dnt:"yes"===navigator.doNotTrack||"1"===navigator.doNotTrack||"1"===navigator.msDoNotTrack?1:0,h:screen.height,w:screen.width,devicetype:g.isMobile()?1:g.isConnectedTV()?3:2,language:navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage}},cleanProtocols:function(e){return e.protocols&&(0,s.q9)(e.protocols,7)&&((0,t.yN)("emx_digital: VAST 4.0 is currently not supported. This protocol has been filtered out of the request."),e.protocols=e.protocols.filter((function(e){return 7!==e}))),e},outstreamRender:function(e){e.renderer.push((function(){var r=e&&e.params&&e.params[0]&&e.params[0].video?e.params[0].video:{};window.emxVideoQueue=window.emxVideoQueue||[],window.queueEmxVideo({id:e.adUnitCode,adsResponses:e.vastXml,options:r}),window.emxVideoReady&&window.videojs&&window.emxVideoReady()}))},createRenderer:function(e,r){var i=o.Th.install({id:r.id,url:c,loaded:!1});try{i.setRender(g.outstreamRender)}catch(e){(0,t.yN)("Prebid Error calling setRender on renderer",e)}return i},buildVideo:function(e){var r=u(e.mediaTypes.video,e.params.video);return(0,t.kJ)(e.mediaTypes.video.playerSize[0])?(r.w=e.mediaTypes.video.playerSize[0][0],r.h=e.mediaTypes.video.playerSize[0][1]):(r.w=e.mediaTypes.video.playerSize[0],r.h=e.mediaTypes.video.playerSize[1]),g.cleanProtocols(r)},parseResponse:function(e){try{return decodeURIComponent(e.replace(/%(?![0-9][0-9a-fA-F]+)/g,"%25"))}catch(e){(0,t.H)("emx_digitalBidAdapter","error",e)}},getReferrer:function(){try{return window.top.document.referrer}catch(e){return document.referrer}},getSite:function(e){return{domain:(0,t.en)(e.referer).hostname,page:e.referer,ref:g.getReferrer()}},getGdpr:function(e,r){return e.gdprConsent&&(r.regs={ext:{gdpr:!0===e.gdprConsent.gdprApplies?1:0}}),e.gdprConsent&&e.gdprConsent.gdprApplies&&(r.user={ext:{consent:e.gdprConsent.consentString}}),r},getSupplyChain:function(e,r){return e.bids[0]&&e.bids[0].schain&&(r.source={ext:{schain:e.bids[0].schain}}),r},getEids:function(e){return m.map(g.getUserId(e)).filter((function(e){return e}))},getUserId:function(e){return function(r){var i=r.key,t=r.source,a=r.rtiPartner,d=(0,n.Z)(e,"userId.".concat(i));return d?g.formatEid(d,t,a):null}},formatEid:function(e,r,i){return{source:r,uids:[{id:e,ext:{rtiPartner:i}}]}}},v={code:p,gvlid:183,supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){if(!e||!e.params)return(0,t.yN)("emx_digital: Missing bid or bid params."),!1;if(e.bidder!==p)return(0,t.yN)('emx_digital: Must use "emx_digital" as bidder code.'),!1;if(!e.params.tagid||!(0,t.d8)(e.params.tagid))return(0,t.yN)("emx_digital: Missing tagid param or tagid present and not type String."),!1;var r;if(e.mediaTypes&&e.mediaTypes.banner){if(r=e.mediaTypes.banner.sizes?e.mediaTypes.banner.sizes:e.sizes,!g.validateSizes(r))return(0,t.yN)("emx_digital: Missing sizes in bid"),!1}else if(e.mediaTypes&&e.mediaTypes.video){if(!g.checkVideoContext(e))return(0,t.yN)("emx_digital: Missing video context: instream or outstream"),!1;if(!e.mediaTypes.video.playerSize)return(0,t.yN)("emx_digital: Missing video playerSize"),!1}return!0},buildRequests:function(e,r){var i=[],a="https://hb.emxdgt.com?t="+(r.timeout||"")+"&ts="+Date.now()+"&src=pbjs",d=location.protocol.indexOf("https")>-1?1:0,o=g.getDevice(),s=g.getSite(r.refererInfo);(0,t.yi)(e,(function(e){var r=(0,t.An)("tagid",e.params),a=parseFloat(function(e){if(!(0,t.LQ)(e.getFloor))return parseFloat((0,t.An)("bidfloor",e.params));var r=e.getFloor({currency:l,mediaType:"*",size:"*"});return(0,t.PO)(r)&&!isNaN(r.floor)&&"USD"===r.currency?r.floor:null}(e))||0,o=!!e.mediaTypes.video,s={id:e.bidId,tid:e.transactionId,tagid:r,secure:d},p=(0,n.Z)(e,"ortb2Imp.ext.data.adserver.adslot");p||(p=(0,n.Z)(e,"ortb2Imp.ext.data.pbadslot")),p&&(s.ext={gpid:p.toString()});var c=u(s,o?{video:g.buildVideo(e)}:{banner:g.buildBanner(e)},a>0?{bidfloor:a,bidfloorcur:l}:{});i.push(c)}));var p={id:r.auctionId,imp:i,device:o,site:s,cur:l,version:"1.5.1"};if(p=g.getGdpr(r,u({},p)),p=g.getSupplyChain(r,u({},p)),r&&r.uspConsent&&(p.us_privacy=r.uspConsent),r.userId){var c=g.getEids(r);c.length>0&&(p.user&&p.user.ext?p.user.ext.eids=c:p.user={ext:{eids:c}})}return{method:"POST",url:a,data:JSON.stringify(p),options:{withCredentials:!0},bidderRequest:r}},interpretResponse:function(e,r){var i=[],t=e.body||{};return t.seatbid&&t.seatbid.length>0&&t.seatbid[0].bid&&t.seatbid.forEach((function(e){e=e.bid[0];var t=!1,n=g.parseResponse(e.adm)||"",a={requestId:e.id,cpm:e.price,width:e.w,height:e.h,creativeId:e.crid||e.id,dealId:e.dealid||null,currency:"USD",netRevenue:!0,ttl:e.ttl,ad:n};e.adm&&e.adm.indexOf("<?xml version=")>-1&&(t=!0,a=g.formatVideoResponse(a,u({},e),r)),a.mediaType=t?d.pX:d.Mk,e.adomain&&e.adomain.length&&(a.meta={advertiserDomains:e.adomain}),i.push(a)})),i},getUserSyncs:function(e,r,i,t){var n=[];if(e.iframeEnabled){var a="https://biddr.brealtime.com/check.html";i&&"string"==typeof i.consentString&&("boolean"==typeof i.gdprApplies?a+="?gdpr=".concat(Number(i.gdprApplies),"&gdpr_consent=").concat(i.consentString):a+="?gdpr_consent=".concat(i.consentString)),n.push({type:"iframe",url:a})}return n}};(0,a.dX)(v),window.pbjs.installedModules.push("emx_digitalBidAdapter")}},function(e){e(e.s=932)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[401],{8564:function(n,t,e){var r=e(9853),o=e(2528),i=e(1125);function a(n){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},a(n)}var c="eplanning",u=(0,e(5849).df)({bidderCode:c}),d=Math.random(),s=["ci","sv","t","ml","sn"],f="pbsr_",p="pbvi_",m=window.navigator.userAgent.match(/(mobile)|(ip(hone|ad))|(android)|(blackberry)|(nokia)|(phone)|(opera\smini)/i),l=["1x1","300x50","320x50","300x250"],h=["1x1","970x90","970x250","160x600","300x600","728x90","300x250"],v={code:c,isBidRequestValid:function(n){return Boolean(n.params.ci)||Boolean(n.params.t)},buildRequests:function(n,t){var e,r,i,c,m,l=function(n){if(function(n){for(var t=0;t<n.length;t++)if(n[t].params.t)return!0;return!1}(n))return function(n){var t;return n.forEach((function(n){return t=t||n.params.isv})),{t:!0,isv:t||"i.e-planning.net"}}(n.filter((function(n){return n.params.t})));var t={};return n.forEach((function(n){s.forEach((function(e){n.params[e]&&!t[e]&&(t[e]=n.params[e])}))})),t}(n),h=function(){try{return window.top.document.charset||window.top.document.characterSet}catch(n){return document.charset||document.characterSet}}(),v=function(n,t){var e,r=(e={},n.forEach((function(n){var t=b(n,!0);e[t]=e[t]?e[t]:[],e[t].push(n)})),e),o={str:"",vs:"",map:{}};return o.str=Object.keys(r).map((function(n){return r[n].map((function(n,e){var r;return o.vs+=function(n){var t,e="";return u.hasLocalStorage()?(t=function(n){var t=u.getDataFromLocalStorage(f+n.adUnitCode)||0,e=u.getDataFromLocalStorage(p+n.adUnitCode)||0,r=t>0?e/t:0;return{render:t,ratio:window.parseInt(10*r,10)}}(n),e+=t.render>=4?t.ratio.toString(16):"F"):e+="F",e}(n),r=t?function(n){return n.replace(/_|\.|-|\//g,"").replace(/\)\(|\(|\)|:/g,"_").replace(/^_+|_+$/g,"")}(n.adUnitCode):n.params&&n.params.sn||b(n,!0)+"_"+e,o.map[r]=n.bidId,r+":"+b(n)})).join("+")})).join("+"),o}(n,l.ml),g=t.refererInfo.referer;if(l.t)e="https://"+l.isv+"/layers/t_pbjs_2.json",r={};else{e="https://"+(l.sv||"pbjs.e-planning.net")+"/pbjs/1/"+l.ci+"/1/"+function(n){var t=document.createElement("a");return t.href=n,t.hostname}(g)+"/ROS";var w=t.refererInfo.referer.reachedTop?window.top.document.referrer:t.refererInfo.referer;if(u.hasLocalStorage()&&(i=[],n.forEach((function(n){var t=document.getElementById(n.adUnitCode);t?y(t):i.push(n.adUnitCode)})),i.length&&(c=i,m=new MutationObserver((function(n,t){n&&Array.isArray(n)&&n.forEach((function(n){n&&n.addedNodes&&Array.isArray(n.addedNodes)&&n.addedNodes.forEach((function(n){var e=c.indexOf(n.id);e>=0&&(y(n),c.splice(e,1),c.length||t.disconnect())}))}))})),document.addEventListener("DOMContentLoaded",(function(n){m.observe(document.body,{childList:!0,subtree:!0,characterData:!0})})))),r={rnd:d,e:v.str,ur:g||"file",pbv:"6.26.0",ncb:"1",vs:v.vs},h&&(r.crs=h),w&&(r.fr=w),t&&t.gdprConsent&&void 0!==t.gdprConsent.gdprApplies&&(r.gdpr=t.gdprConsent.gdprApplies?"1":"0",void 0!==t.gdprConsent.consentString&&(r.gdprcs=t.gdprConsent.consentString)),t&&t.uspConsent&&(r.ccpa=t.uspConsent),(0,o.R)().getUserIds&&"function"==typeof(0,o.R)().getUserIds){var S=(0,o.R)().getUserIds();for(var x in S)r["e_"+x]="object"===a(S[x])?encodeURIComponent(JSON.stringify(S[x])):encodeURIComponent(S[x])}}return{method:"GET",url:e,data:r,adUnitToBidId:v.map}},interpretResponse:function(n,t){var e=n.body,o=[];return e&&!(0,r.xb)(e.sp)&&e.sp.forEach((function(n){(0,r.xb)(n.a)||n.a.forEach((function(e){var r={requestId:t.adUnitToBidId[n.k],cpm:e.pr,width:e.w,height:e.h,ad:e.adm,ttl:120,creativeId:e.crid,netRevenue:!0,currency:"USD"};e.adom&&(r.meta={advertiserDomains:e.adom}),o.push(r)}))})),o},getUserSyncs:function(n,t){var e=[],o=!(0,r.xb)(t)&&t[0].body;return o&&!(0,r.xb)(o.cs)&&o.cs.forEach((function(t){"string"==typeof t&&n.pixelEnabled?e.push({type:"image",url:t}):"object"===a(t)&&t.ifr&&n.iframeEnabled&&e.push({type:"iframe",url:t.u})})),e}};function g(n,t){var e=(0,r.e7)().innerWidth<=1024||window.orientation||m?l:h,o=e.indexOf(n),i=e.indexOf(t);return o>-1?i>-1&&o<i?1:-1:i>-1?1:0}function b(n,t){var e,o=n.sizes&&n.sizes.length?(e=n.sizes,(0,r.sF)(e).sort(g)):[];return o.length?t?o[0]:o.join(","):"1x1"}function y(n){var t;(t={name:n.id,div:n}).div&&(w(f+t.name),function(){var n;function t(n,t,e){var r=0;return function(n,t,e){return t>n||e<0}(n,t,e)||(r=function(n){return n<0}(t)?e/(e-t):function(n,t){return t<n}(n,e)?1:(n-t)/(e-t)),r}function e(t){return n}function r(n){var r=n.getBoundingClientRect();return function(n){return t(e().innerHeight,n.top,n.bottom)}(r)*function(n){return t(e().innerWidth,n.left,n.right)}(r)>.5}function o(n){var t=n.style,e=n.parentNode;return!(t&&0===parseFloat(t.opacity))&&(!e||o(e))}function i(n){return null!=n}function a(t){return function(t){try{n=t&&window.document.body.contains(t)?window:window.top.document.body.contains(t)?top:void 0}catch(n){}}(t),function(){try{return window===window.top||window.frameElement}catch(n){}}()&&i(e())&&function(){try{return e().top.document.hasFocus()}catch(n){}}()&&((c=t).offsetHeight>0&&c.offsetWidth>0)&&function(n){return"hidden"!==e().getComputedStyle(n).visibility}(t)&&o(t)&&r(t)&&(!i(e().frameElement)||a(e().frameElement));var c}return{isVisible:a,onView:function n(t,e,r){var o=a(e)?t+1:0;5===o?r():setTimeout(n.bind(this,o,e,r),200)}.bind(this,0)}}().onView(t.div,w.bind(void 0,p+t.name)))}function w(n){var t;try{t=(t=u.getDataFromLocalStorage(n))?window.parseInt(t,10)+1:1,u.setDataInLocalStorage(n,t)}catch(n){return!1}return!0}(0,i.dX)(v),window.pbjs.installedModules.push("eplanningBidAdapter")}},function(n){n(n.s=8564)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[618],{5954:function(e,r,t){var n=t(265),a=t(9853),o=t(4806),i=t(5755),s=t(3494),c=t(2661),p=t(5849),d=t(7602),u="id5id",g="".concat(u,"_privacy"),m="html5",l="User ID - ID5 submodule: ",f=["pbjs-id5id","id5id.1st","id5id"],b=(0,p.df)({gvlid:131,moduleName:"id5Id"}),v={name:"id5Id",gvlid:131,decode:function(e,r){var t=0;if(e&&"string"==typeof e.universal_uid){var i={id5id:{uid:e.universal_uid,ext:{linkType:t=e.link_type||t}}};switch((0,n.Z)(e,"ab_testing.result")){case"control":(0,a.PN)(l+"A/B Testing - user is in the Control Group: ID5 ID is NOT exposed"),(0,o.Z)(i,"id5id.ext.abTestingControlGroup",!0);break;case"error":(0,a.H)(l+"A/B Testing ERROR! controlGroupPct must be a number >= 0 and <= 1");break;case"normal":(0,a.PN)(l+"A/B Testing - user is NOT in the Control Group"),(0,o.Z)(i,"id5id.ext.abTestingControlGroup",!1)}return(0,a.PN)(l+"Decoded ID",i),i}},getId:function(e,r,t){if(h(e)){var o,s="https://id5-sync.com/g/v2/".concat(e.params.partner,".json"),p=r&&"boolean"==typeof r.gdprApplies&&r.gdprApplies?1:0,u=d.nX.getConsentData(),v=(0,c.n)(),I=t&&t.signature?t.signature:(f.forEach((function(e){b.getCookie(e)&&(o=(0,a.dj)(b.getCookie(e))||o)})),o&&o.signature||""),C={partner:e.params.partner,gdpr:p,nbPage:_(e.params.partner),o:"pbjs",rf:v.referer,top:v.reachedTop?1:0,u:v.stack[0]||window.location.href,v:"6.26.0"};!p||void 0===r.consentString||(0,a.xb)(r.consentString)||(0,a.jH)(r.consentString)||(C.gdpr_consent=r.consentString),void 0===u||(0,a.xb)(u)||(0,a.jH)(u)||(C.us_privacy=u),void 0===I||(0,a.jH)(I)||(C.s=I),void 0===e.params.pd||(0,a.jH)(e.params.pd)||(C.pd=e.params.pd),void 0===e.params.provider||(0,a.jH)(e.params.provider)||(C.provider=e.params.provider);var N=function(e){return(0,n.Z)(e,"params.abTesting",{enabled:!1})}(e);return!0===N.enabled&&(C.ab_testing={enabled:!0,control_group_pct:N.controlGroupPct}),{callback:function(r){var t={success:function(t){var n,o;if(t)try{n=JSON.parse(t),(0,a.PN)(l+"response received from the server",n),D(e.params.partner,0),n.privacy&&k(g,JSON.stringify(n.privacy),30),e.storage.type===m&&(o=e.params.partner,(0,a.PN)(l+"removing legacy cookies"),f.forEach((function(e){b.setCookie("".concat(e)," ",y(-1)),b.setCookie("".concat(e,"_nb")," ",y(-1)),b.setCookie("".concat(e,"_").concat(o,"_nb")," ",y(-1)),b.setCookie("".concat(e,"_last")," ",y(-1))})))}catch(e){(0,a.H)(l+e)}r(n)},error:function(e){(0,a.H)(l+"getId fetch encountered an error",e),r()}};(0,a.PN)(l+"requesting an ID from the server",C),(0,i.h)(s,t,JSON.stringify(C),{method:"POST",withCredentials:!0})}}}},extendId:function(e,r,t){return h(e),_(e&&e.params&&e.params.partner||0),(0,a.PN)(l+"using cached ID",t),t}};function h(e){return e&&e.params&&e.params.partner&&"number"==typeof e.params.partner?e.storage&&e.storage.type&&e.storage.name?(e.storage.type!==m&&(0,a.yN)(l+"storage type recommended to be '".concat(m,"'. In a future release this may become a strict requirement")),e.storage.name!==u&&(0,a.yN)(l+"storage name recommended to be '".concat(u,"'. In a future release this may become a strict requirement")),!0):((0,a.H)(l+"storage required to be set"),!1):((0,a.H)(l+"partner required to be defined as a number"),!1)}function y(e){return new Date(Date.now()+864e5*e).toUTCString()}function I(e){return"".concat(u,"_").concat(e,"_nb")}function D(e,r){k(I(e),r,30)}function _(e){var r=function(e){var r,t,n=(r=I(e),""===(t=b.getDataFromLocalStorage("".concat(r,"_exp")))||t&&new Date(t).getTime()-Date.now()>0?b.getDataFromLocalStorage(r):(b.removeDataFromLocalStorage(r),null));return n?parseInt(n):0}(e)+1;return D(e,r),r}function k(e,r,t){b.setDataInLocalStorage("".concat(e,"_exp"),y(t)),b.setDataInLocalStorage("".concat(e),r)}(0,s.Bx)("userId",v),window.pbjs.installedModules.push("id5IdSystem")},4806:function(e,r,t){function n(e,r,t){r.split&&(r=r.split("."));for(var n,a=0,o=r.length,i=e;a<o;++a)n=i[r[a]],i=i[r[a]]=a===o-1?t:null!=n?n:!~r[a+1].indexOf(".")&&+r[a+1]>-1?[]:{}}t.d(r,{Z:function(){return n}})}},function(e){e(e.s=5954)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[130],{3806:function(e,t,r){var i=r(9853),n=r(4806),a=r(265),d=r(1125),o=r(8962),s=r(8265),c=r(4877),u=r(2224);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){return y="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},y(e)}var f="improvedigital",v={DEFAULT_MIMES:["video/mp4"],SUPPORTED_PROPERTIES:["mimes","minduration","maxduration","protocols","w","h","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext"],PLACEMENT_TYPE:{INSTREAM:1,OUTSTREAM:3}},b={VERSION:"1.2",ASSET_TYPES:{TITLE:"title",IMG:"img",DATA:"data"},ASSETS:{title:{id:0,name:"title",assetType:"title",default:{len:140}},sponsoredBy:{id:1,name:"sponsoredBy",assetType:"data",type:1},icon:{id:2,name:"icon",assetType:"img",type:2},body:{id:3,name:"body",assetType:"data",type:2},image:{id:4,name:"image",assetType:"img",type:3},rating:{id:5,name:"rating",assetType:"data",type:3},likes:{id:6,name:"likes",assetType:"data",type:4},downloads:{id:7,name:"downloads",assetType:"data",type:5},price:{id:8,name:"price",assetType:"data",type:6},salePrice:{id:9,name:"salePrice",assetType:"data",type:7},phone:{id:10,name:"phone",assetType:"data",type:8},address:{id:11,name:"address",assetType:"data",type:9},body2:{id:12,name:"body2",assetType:"data",type:10},displayUrl:{id:13,name:"displayUrl",assetType:"data",type:11},cta:{id:14,name:"cta",assetType:"data",type:12}},getAssetById:function(e){return Object.values(this.ASSETS).find((function(t){return e===t.id}))}},g={code:f,gvlid:253,aliases:["id"],supportedMediaTypes:[s.Mk,s.B5,s.pX],syncStore:{extendMode:!1,placementId:null},isBidRequestValid:function(e){return!!(e&&e.params&&(e.params.placementId||e.params.placementKey&&e.params.publisherId))},buildRequests:function(e,t){var r={cur:[o.vc.getConfig("currency.adServerCurrency")||"USD"],ext:{improvedigital:{sdk:{name:"pbjs",version:"6.26.0"}}}};r.device="object"===y(o.vc.getConfig("device"))?o.vc.getConfig("device"):{},r.device.w=r.device.w||window.innerWidth,r.device.h=r.device.h||window.innerHeight,(0,i.oV)()&&(r.device.dnt=1);var d=o.vc.getConfig("coppa");if("boolean"==typeof d&&(0,n.Z)(r,"regs.coppa",Number(d)),t){var s=(0,a.Z)(t,"gdprConsent");if(s){"boolean"==typeof s.gdprApplies&&(0,n.Z)(r,"regs.ext.gdpr",Number(s.gdprApplies)),(0,n.Z)(r,"user.ext.consent",s.consentString);var c=(0,a.Z)(s,"addtlConsent");if(c&&-1!==c.indexOf("~")){var p=c.substring(c.indexOf("~")+1);p&&(0,n.Z)(r,"user.ext.consented_providers_settings.consented_providers",p.split(".").map((function(e){return parseInt(e,10)})))}}t.timeout&&(r.tmax=parseInt(t.timeout)),"undefined"!==y(t.uspConsent)&&(0,n.Z)(r,"regs.ext.us_privacy",t.uspConsent)}h.buildSiteOrApp(r,t);var l=e[0];if((0,n.Z)(r,"source.ext.schain",l.schain),(0,n.Z)(r,"source.tid",l.transactionId),this.syncStore.placementId=this.syncStore.placementId||l.params.placementId,l.userId){var m=(0,u.HQ)(l.userId);(0,n.Z)(r,"user.ext.eids",m.length?m:void 0)}return h.buildServerRequests(r,e,t)},interpretResponse:function(e,t){var r=t.bidderRequest;if(!Array.isArray((0,a.Z)(e,"body.seatbid")))return[];var n=[];return e.body.seatbid.forEach((function(t){Array.isArray(t.bid)&&t.bid.forEach((function(t){if(t.adm&&t.price&&!t.hasOwnProperty("errorCode")){var d=(0,i.zE)(t.impid,[r]),o=(0,a.Z)(t,"ext.".concat(f),{}),s={requestId:t.impid,cpm:t.price,creativeId:t.crid,currency:e.body.cur.toUpperCase()||"USD",dealId:"string"==typeof o.buying_type&&"rtb"!==o.buying_type?o.line_item_id:void 0,meta:{advertiserDomains:t.adomain?t.adomain:[]},netRevenue:o.is_net||!1,ttl:300};E.buildAd(s,d,t),I.addBidData({bidRequest:d,bid:s}),n.push(s)}}))})),n},getUserSyncs:function(e,t,r,i){if(!0===o.vc.getConfig("coppa")||!S.hasPurpose1Consent(r))return[];var n=[];if(!this.syncStore.extendMode&&e.pixelEnabled||!e.iframeEnabled)e.pixelEnabled&&t.forEach((function(e){(0,a.Z)(e,"body.ext.".concat(f,".sync"),[]).forEach((function(e){n.some((function(t){return t.url===e}))||n.push({type:"image",url:e})}))}));else{var d=r||{},s=d.gdprApplies,c=d.consentString;n.push({type:"iframe",url:"https://hb.360yield.com/prebid-universal-creative/load-cookie.html"+"?placement_id=".concat(this.syncStore.placementId)+(this.syncStore.extendMode?"&pbs=1":"")+("boolean"==typeof s?"&gdpr=".concat(Number(s)):"")+(c?"&gdpr_consent=".concat(c):"")+(i?"&us_privacy=".concat(encodeURIComponent(i)):"")})}return n}};(0,d.dX)(g);var h={buildServerRequests:function(e,t,r){var a=this,d=!0===o.vc.getConfig("improvedigital.extend"),s=[],c=!0===o.vc.getConfig("improvedigital.singleRequest"),u=[],p=[];function l(t,a,d){var o=(0,i.I8)(e);return o.imp=t,o.id=(0,i._d)(),a&&(0,n.Z)(o,"source.tid",a),{method:"POST",url:d?"https://pbs.360yield.com/openrtb2/auction":"https://ad.360yield.com/pb",data:JSON.stringify(o),bidderRequest:r}}return t.map((function(e){var t=a.isExtendModeEnabled(d,e.params),r=a.buildImp(e,t);c?t?u.push(r):p.push(r):s.push(l([r],e.transactionId,t))})),c?(u.length&&s.push(l(u,null,!0)),p.length&&s.push(l(p,null,!1)),s):s},isExtendModeEnabled:function(e,t){var r="boolean"==typeof t.extend?t.extend:e;return r&&!g.syncStore.extendMode&&(g.syncStore.extendMode=!0),r},buildImp:function(e,t){var r={id:(0,i.An)("bidId",e)||(0,i._d)(),secure:Number("https:"===window.location.protocol)},d=this.getBidFloor(e)||(0,i.An)("bidFloor",e.params);if(d){var o=(0,i.An)("bidFloorCur",e.params)||"USD";(0,n.Z)(r,"bidfloor",d),(0,n.Z)(r,"bidfloorcur",o?o.toUpperCase():void 0)}var s=t?"ext.prebid.bidder.improvedigital":"ext.bidder",c=(0,i.An)("placementId",e.params);c?((0,n.Z)(r,"".concat(s,".placementId"),c),t&&(0,n.Z)(r,"ext.prebid.storedrequest.id",""+c)):((0,n.Z)(r,"".concat(s,".publisherId"),(0,i.An)("publisherId",e.params)),(0,n.Z)(r,"".concat(s,".placementKey"),(0,i.An)("placementKey",e.params))),(0,n.Z)(r,"".concat(s,".keyValues"),(0,i.An)("keyValues",e.params)||void 0);var u=(0,a.Z)(e,"ortb2Imp.ext.gpid")||(0,a.Z)(e,"ortb2Imp.ext.data.pbadslot")||(0,a.Z)(e,"ortb2Imp.ext.data.adserver.adslot");(0,n.Z)(r,"ext.gpid",u),(0,a.Z)(e,"ortb2Imp.instl")&&(r.instl=1);var p=(0,a.Z)(e,"mediaTypes.video");if(p&&(r.video=this.buildVideoRequest(e),(0,n.Z)(r,"ext.is_rewarded_inventory",1===p.rewarded||1===(0,a.Z)(p,"ext.rewarded")||void 0)),(0,a.Z)(e,"mediaTypes.banner")&&(r.banner=this.buildBannerRequest(e)),(0,a.Z)(e,"mediaTypes.native")){var l=this.buildNativeRequest(e);l&&(r.native=l)}return r},buildVideoRequest:function(e){var t=(0,i.I8)(e.mediaTypes.video),r=(0,i.I8)((0,a.Z)(e,"params.video",{})),n=l(l({},t),r);if(Array.isArray(n.playerSize)){var d=Array.isArray(n.playerSize[0])?n.playerSize[0]:n.playerSize;n.w=d[0],n.h=d[1]}return n.placement=this.isOutstreamVideo(e)?v.PLACEMENT_TYPE.OUTSTREAM:v.PLACEMENT_TYPE.INSTREAM,n.mimes||(n.mimes=v.DEFAULT_MIMES),1!==n.skip&&(delete n.skipmin,delete n.skipafter,0!==n.skip&&((0,i.yN)("video.skip: invalid value '".concat(n.skip,"'. Expected 0 or 1")),delete n.skip)),Object.keys(n).forEach((function(e){-1===v.SUPPORTED_PROPERTIES.indexOf(e)&&delete n[e]})),n},buildBannerRequest:function(e){var t={};return!0===o.vc.getConfig("improvedigital.usePrebidSizes")&&e.sizes&&(t.format=e.sizes.map((function(e){return{w:e[0],h:e[1]}}))),t},buildNativeRequest:function(e){var t=e.nativeParams;if(!t)return null;for(var r={assets:[]},n=0,d=Object.keys(t);n<d.length;n++){var o=d[n],s=b.ASSETS[o];if(s){var c=t[o],u={id:s.id,required:Number(c.required)};switch(s.assetType){case b.ASSET_TYPES.TITLE:u.title={len:c.len||s.default.len};break;case b.ASSET_TYPES.DATA:u.data=(0,i.fz)({type:s.type,len:c.len});break;case b.ASSET_TYPES.IMG:u.img=(0,i.fz)({type:s.type,w:(0,a.Z)(c,"sizes.0"),h:(0,a.Z)(c,"sizes.1"),wmin:(0,a.Z)(c,"aspect_ratios.0.min_width"),hmin:(0,a.Z)(c,"aspect_ratios.0.min_height")});break;default:return}r.assets.push(u)}}return r.assets.length?{ver:b.VERSION,request:JSON.stringify(r)}:((0,i.yN)("No native assets recognized. Ignoring native ad request"),null)},isOutstreamVideo:function(e){return"outstream"===(0,a.Z)(e,"mediaTypes.video.context")},getBidFloor:function(e){if(!(0,i.LQ)(e.getFloor))return null;var t=e.getFloor({currency:"USD",mediaType:"*",size:"*"});return(0,i.PO)(t)&&!isNaN(t.floor)&&"USD"===t.currency?t.floor:null},buildSiteOrApp:function(e,t){var r={},n=o.vc.getConfig("app")||{},d=o.vc.getConfig("ortb2.app")||{};if((0,i.Ee)(r,n,d),0!==Object.keys(r).length)e.app=r;else{var s={},c=o.vc.getConfig("pageUrl")||(0,a.Z)(t,"refererInfo.referer");c&&(s.page=c,s.domain=(0,i.en)(c).hostname);var u=o.vc.getConfig("site")||{},p=o.vc.getConfig("ortb2.site")||{};(0,i.Ee)(s,u,p),e.site=s}}},E={buildAd:function(e,t,r){t.mediaTypes&&1===Object.keys(t.mediaTypes).length?(0,a.Z)(t,"mediaTypes.video")?this.buildVideoAd(e,t,r):(0,a.Z)(t,"mediaTypes.banner")?this.buildBannerAd(e,t,r):(0,a.Z)(t,"mediaTypes.native")&&this.buildNativeAd(e,t,r):-1!==r.adm.search(/^(<\?xml|<vast)/i)?this.buildVideoAd(e,t,r):"{"===r.adm[0]?this.buildNativeAd(e,t,r):this.buildBannerAd(e,t,r)},buildVideoAd:function(e,t,r){e.mediaType=s.pX,e.vastXml=r.adm,h.isOutstreamVideo(t)&&(e.adResponse={content:e.vastXml},e.renderer=T.createRenderer(t))},buildBannerAd:function(e,t,r){e.mediaType=s.Mk,e.ad=r.adm,e.width=r.w,e.height=r.h},buildNativeAd:function(e,t,r){e.mediaType=s.B5;var i=JSON.parse(r.adm),n={clickUrl:(0,a.Z)(i,"link.url"),clickTrackers:(0,a.Z)(i,"link.clicktrackers"),privacyLink:i.privacy};i.eventtrackers?(n.impressionTrackers=[],i.eventtrackers.forEach((function(e){if(1===e.event)switch(e.method){case 1:n.impressionTrackers.push(e.url);break;case 2:n.javascriptTrackers='<script src="'.concat(e.url,'"><\/script>')}}))):(n.impressionTrackers=i.imptrackers||[],n.javascriptTrackers=i.jstracker),i.assets.map((function(e){var t=b.getAssetById(e.id);switch(t.assetType){case b.ASSET_TYPES.TITLE:n.title=e.title.text;break;case b.ASSET_TYPES.DATA:n[t.name]=e.data.value;break;case b.ASSET_TYPES.IMG:n[t.name]={url:e.img.url,width:e.img.w,height:e.img.h}}})),e.native=n}},T={RENDERER_URL:"https://acdn.adnxs.com/video/outstream/ANOutstreamVideo.js",createRenderer:function(e){var t=c.Th.install({id:e.adUnitCode,url:this.RENDERER_URL,config:(0,a.Z)(e,"renderer.options"),adUnitCode:e.adUnitCode});try{t.setRender(this.render)}catch(e){(0,i.yN)("Prebid Error calling setRender on renderer",e)}return t},render:function(e){e.renderer.push((function(){window.ANOutstreamVideo.renderAd({sizes:[e.width,e.height],targetId:e.adUnitCode,adResponse:e.adResponse,rendererOptions:e.renderer.getConfig()},T.handleRendererEvents.bind(null,e))}))},handleRendererEvents:function(e,t,r){e.renderer.handleVideoEvent({id:t,eventName:r})}},I={RENDERER_URL:"https://razr.improvedigital.com/renderer.js",addBidData:function(e){var t=e.bid,r=e.bidRequest;this.isValidBid(t)&&(t.renderer=c.Th.install({url:this.RENDERER_URL,config:{bidRequest:r}}),t.renderer.setRender(this.render))},isValidBid:function(e){return e&&/razr:\/\//.test(e.ad)},render:function(e){var t=e.renderer.getConfig().bidRequest,r={type:"prebid",bidRequest:t,bid:e,config:(0,i.Ee)({},o.vc.getConfig("improvedigital.rendererConfig"),(0,a.Z)(t,"params.rendererConfig"))},n=window.razr=window.razr||{};n.queue=n.queue||[],n.queue.push(r)}},S={hasPurpose1Consent:function(e){return!e||!e.gdprApplies||2!==e.apiVersion||!0===(0,a.Z)(e,"vendorData.purpose.consents.1")}};window.pbjs.installedModules.push("improvedigitalBidAdapter")},2224:function(e,t,r){r.d(t,{HQ:function(){return o},Pv:function(){return s},UR:function(){return a}});var i=r(9853),n=r(265),a={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){return e.uid},getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,i.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},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}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},gravitompId:{source:"gravito.net",atype:1}};function d(e,t){var r=a[t];if(r&&e){var n={};n.source=r.source;var d=(0,i.LQ)(r.getValue)?r.getValue(e):e;if((0,i.d8)(d)){var o={id:d,atype:r.atype};if((0,i.LQ)(r.getUidExt)){var s=r.getUidExt(e);s&&(o.ext=s)}if(n.uids=[o],(0,i.LQ)(r.getEidExt)){var c=r.getEidExt(e);c&&(n.ext=c)}return n}}return null}function o(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else{var i=d(e[r],r);i&&t.push(i)}return t}function s(e){var t=[];return e.filter((function(e){return(0,i.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){(0,n.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,n.Z)(a,r+".source")&&t.push({source:a[r].source,bidders:e.config.bidders})}))})),t}},4806:function(e,t,r){function i(e,t,r){t.split&&(t=t.split("."));for(var i,n=0,a=t.length,d=e;n<a;++n)i=d[t[n]],d=d[t[n]]=n===a-1?r:null!=i?i:!~t[n+1].indexOf(".")&&+t[n+1]>-1?[]:{}}r.d(t,{Z:function(){return i}})}},function(e){e(e.s=3806)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[209],{5626:function(e,t,n){var r=n(9853),i=n(1125),s=n(5849);function o(e){return o="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},o(e)}var a={BIDDER_CODE:"invibes",BID_ENDPOINT:".videostep.com/Bid/VideoAdContent",BID_SUBDOMAIN:"https://bid",SYNC_ENDPOINT:"https://k.r66net.com/GetUserSync",TIME_TO_LIVE:300,DEFAULT_CURRENCY:"EUR",PREBID_VERSION:8,METHOD:"GET",INVIBES_VENDOR_ID:436,USERID_PROVIDERS:["pubcid","pubProvidedId","uid2","zeotapIdPlus","id5id"],META_TAXONOMY:["networkId","networkName","agencyId","agencyName","advertiserId","advertiserName","advertiserDomains","brandId","brandName","primaryCatId","secondaryCatIds","mediaType"]},d=(0,s.df)({gvlid:a.INVIBES_VENDOR_ID,bidderCode:a.BIDDER_CODE}),u={code:a.BIDDER_CODE,gvlid:a.INVIBES_VENDOR_ID,isBidRequestValid:function(e){return"object"===o(e.params)&&null!=e.params.placementId},buildRequests:function(e,t){var n,r,i,s=[],o=[],u=(t=t||{}).auctionStart||Date.now();e.forEach((function(e){e.startTime=(new Date).getTime(),s.push(e.params.placementId),o.push(e.adUnitCode),i=i||e.params.domainId,n=n||e.params.customEndpoint,l=l||e.params.customUserSync,r=r||e.userId})),c.optIn=c.optIn||function(e){if(e&&e.vendorData){if(c.GdprModuleInstalled=!0,c.gdpr_consent=(d=e.vendorData).purpose&&d.purpose.consents&&null!=d.tcString?d.tcString:d.consentData,!e.vendorData.gdprApplies||e.vendorData.hasGlobalConsent){var t;for(t=0;t<c.purposes.length;++t)c.purposes[t]=!0;for(t=0;t<c.legitimateInterests.length;++t)c.legitimateInterests[t]=!0;return 2}var n=function(e){return e.purpose&&e.purpose.consents?e.purpose.consents:e.purposeConsents?e.purposeConsents:null}(e.vendorData);if(null==n)return 0;var r=function(e){return e.purpose&&e.purpose.consents?10:5}(e.vendorData);if(!N(n,c.purposes,r))return 0;N(function(e){return e.purpose&&e.purpose.legitimateInterests?e.purpose.legitimateInterests:null}(e.vendorData),c.legitimateInterests,10);var i=a.INVIBES_VENDOR_ID.toString(10),s=function(e){return e.vendor&&e.vendor.consents?e.vendor.consents:e.vendorConsents?e.vendorConsents:null}(e.vendorData),o=!0===function(e){return e.vendor&&e.vendor.legitimateInterests?e.vendor.legitimateInterests:{}}(e.vendorData)[i];return null==s||null==s[i]?4:!1===s[i]&&!1===o?0:2}var d;return c.GdprModuleInstalled=!1,0}(t.gdprConsent),c.visitId=c.visitId||b();var f,m,h=function(){var e={};try{e=JSON.parse(localStorage.ivbs)}catch(e){}for(var t,n=/[\\?&]([^=]+)=([^\\?&#]+)/g;null!=(t=n.exec(window.location.href));)t.index===n.lastIndex&&n.lastIndex++,e[t[1].toLowerCase()]=t[2];return e}(),O=((f=r)&&a.USERID_PROVIDERS.forEach((function(e){f[e]&&((m=m||{})[e]=f[e])})),m),C={placementIds:s,adUnitCodes:o,auctionStartTime:u,bidVersion:a.PREBID_VERSION};O&&(C.userId=O);var S={location:g(p),videoAdHtmlId:b(),showFallback:"0"===h.advs,ivbsCampIdsLocal:y("IvbsCampIdsLocal"),bidParamsJson:JSON.stringify(C),capCounts:D(),pcids:Object.keys(c.pushedCids).join(","),vId:c.visitId,width:p.innerWidth,height:p.innerHeight,oi:c.optIn,kw:E,purposes:c.purposes.toString(),li:c.legitimateInterests.toString(),tc:c.gdpr_consent,isLocalStorageEnabled:d.hasLocalStorage()},A=y("ivbsdid");if(!A){var P=c.getCookie("ivbsdid");if(P)try{var B=JSON.parse(P);A=B.id?B.id:B}catch(e){}}A&&(S.lId=A);var T="videoaddebug,advs,bvci,bvid,istop,trybvid,trybvci".split(",");for(var R in h)if(h.hasOwnProperty(R)){var _=h[R];(T.indexOf(R)>-1||/^vs|^invib/i.test(R))&&(S[R]=_)}var M=function(e,t,n){if(null!=e)return e;if(null!=t)return v(t-1e3);if(n.length>0)for(var r=0;r<n.length;r++){var i=I(n[r]);if(null!=i)return v(i)}return v(1)}(n,i,s);return{method:a.METHOD,url:M,data:S,options:{withCredentials:!0},bidRequests:e}},interpretResponse:function(e,t){return function(e,t){if(null==t||0===t.length)return(0,r.PN)("Invibes Adapter - No bids have been requested"),[];if(!e)return(0,r.PN)("Invibes Adapter - Bid response is empty"),[];var n;if((e=(e=e.body||e).videoAdContentResult||e).ShouldSetLId&&e.LId&&(c.optIn&&c.purposes[0]||!e.PrivacyPolicyRule||!e.TcModel||!e.TcModel.PurposeConsents||(c.optIn=e.PrivacyPolicyRule,c.purposes=e.TcModel.PurposeConsents),n=e.LId,c.optIn&&c.purposes[0]&&d.setDataInLocalStorage("ivbsdid",n)),"object"===o(c.bidResponse)){if(!0!==e.MultipositionEnabled)return(0,r.PN)("Invibes Adapter - Bid response already received. Invibes only responds to one bid request per user visit"),[];c.bidResponse.AdPlacements=c.bidResponse.AdPlacements.concat(e.AdPlacements)}else c.bidResponse=e;for(var i=[],s=0;s<t.length;s++){var a=t[s],u=!0===e.UseAdUnitCode?a.params.placementId+"_"+a.adUnitCode:a.params.placementId;if(c.placementBids.indexOf(u)>-1)(0,r.PN)("Invibes Adapter - Placement was previously bid on "+u);else{var l=null;if(null!=e.AdPlacements)for(var p=0;p<e.AdPlacements.length;p++){var v=e.AdPlacements[p].BidModel;if(null!=v&&v.PlacementId==u){l=e.AdPlacements[p];break}}else{var I=e.BidModel;null!=I&&I.PlacementId==u&&(l=e)}var m=f(a,l,e.MultipositionEnabled,u);null!==m&&(c.placementBids.push(u),i.push(m))}}return i}(e,null!=t?t.bidRequests:null)},getUserSyncs:function(e){if(e.iframeEnabled)return{type:"iframe",url:function(){var e=l||a.SYNC_ENDPOINT;e+="?visitId="+c.visitId,e+="&optIn="+c.optIn;var t=y("ivbsdid");if(!t){var n=c.getCookie("ivbsdid");if(n)try{var r=JSON.parse(n);t=r.id?r.id:r}catch(e){}}return t&&(e+="&ivbsdid="+encodeURIComponent(t)),e}()}}};(0,i.dX)(u);var l,p=function(){var e=window;try{for(;top!==e;)e.parent.location.href.length&&(e=e.parent)}catch(e){}return e}(),c=p.invibes=p.invibes||{};function f(e,t,n,i){if(null===t||null===t.BidModel)return(0,r.PN)("Invibes Adapter - Placement not configured for bidding "+i),null;var s=t.BidModel,o=t.Ads;if(!Array.isArray(o)||o.length<1)return null!=t.AdReason&&(0,r.PN)("Invibes Adapter - No ads "+t.AdReason),(0,r.PN)("Invibes Adapter - No ads available"),null;var d=o[0],u=function(e){for(var t=[0,0],n=0;n<e.length;n++)e[n][0]*e[n][1]>t[0]*t[1]&&(t=e[n]);return t}(e.sizes);if(!0===n&&Object.keys(c.pushedCids).length>0){if(null!=d.Blcids&&d.Blcids.length>0&&Object.keys(c.pushedCids).some((function(e){return d.Blcids.indexOf(parseInt(e))>-1})))return(0,r.PN)("Invibes Adapter - Ad blacklists pushed ids"),null;if(Object.keys(c.pushedCids).some((function(e){return c.pushedCids[e].indexOf(d.Cid)>-1})))return(0,r.PN)("Invibes Adapter - Ad is blacklisted"),null}c.pushedCids[d.Cid]=d.Blcids||[];var l=Date.now();return(0,r.PN)("Bid auction started at "+s.AuctionStartTime+" . Invibes registered the bid at "+l+" ; bid request took a total of "+(l-s.AuctionStartTime)+" ms."),{requestId:e.bidId,cpm:d.BidPrice,width:s.Width||u[0],height:s.Height||u[1],creativeId:d.VideoExposedId,currency:s.Currency||a.DEFAULT_CURRENCY,netRevenue:!0,ttl:a.TIME_TO_LIVE,ad:h(s),meta:m(s.Meta)}}function v(e){return e<2?a.BID_SUBDOMAIN+a.BID_ENDPOINT:a.BID_SUBDOMAIN+e+a.BID_ENDPOINT}function I(e){if(null==e)return null;var t=/_ivbs([0-9]+)/g.exec(e);return null!=t&&null!=t[1]?parseInt(t[1]):null}function m(e){var t={};if(null!=e)for(var n=0;n<a.META_TAXONOMY.length;n++)e.hasOwnProperty(a.META_TAXONOMY[n])&&(t[a.META_TAXONOMY[n]]=e[a.META_TAXONOMY[n]]);return t}function b(){return Math.round(1e12*Math.random()).toString(36).substring(0,10)}function g(e){return e.location.href.substring(0,300).split(/[?#]/)[0]}function h(e){return"<html>\n        <head><script type='text/javascript'>inDapIF=true;<\/script></head>\n          <body style='margin : 0; padding: 0;'>\n          creativeHtml\n          </body>\n        </html>".replace("creativeHtml",e.CreativeHtml)}function y(e){if(!c.GdprModuleInstalled||c.optIn&&c.purposes[0])return d.getDataFromLocalStorage(e)||""}function D(){var e="ivvcap";if(!c.optIn||!c.purposes[0])return"";var t=function(){try{return JSON.parse(d.getDataFromLocalStorage(e))||{}}catch(e){return{}}};return function(){!function(){var n=(new Date).getTime(),r=t(),i=!1;Object.keys(r).forEach((function(e){r[e][1]<=n&&(delete r[e],i=!0)})),i&&function(t){d.setDataInLocalStorage(e,JSON.stringify(t))}(r)}();var n=t();return Object.keys(n).filter((function(e){return n.hasOwnProperty(e)})).sort().map((function(e){return[e,n[e][0]]}))}().map((function(e){return e.join("=")})).join(",")}function N(e,t,n){if(e instanceof Array){for(var r=0;r<n&&r<e.length;r++)t[r]=!(!1===e[r]||"false"===e[r]||null==e[r]);return!0}if("object"===o(e)&&null!==e){var i=0;for(var s in e){if(i===n)break;if(e.hasOwnProperty(s)){var a=parseInt(s);isNaN(a)?t[i]=!(!1===e[s]||"false"===e[s]||null==e[s]):t[a-1]=!(!1===e[s]||"false"===e[s]||null==e[s]),i++}}return!0}return!1}c.purposes=c.purposes||[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],c.legitimateInterests=c.legitimateInterests||[!1,!1,!1,!1,!1,!1,!1,!1,!1,!1],c.placementBids=c.placementBids||[],c.pushedCids=c.pushedCids||{},c.Uid={generate:function(){var e=parseInt("zzzzzz",36),t=function(){return Math.floor(Math.random()*e).toString(36)};return t()+t()}},c.getCookie=function(e){if(d.cookiesAreEnabled()&&(!c.GdprModuleInstalled||c.optIn&&c.purposes[0]))return d.getCookie(e)};var E=function(){var e=document.getElementsByTagName("head")[0],t=e?e.getElementsByTagName("meta"):[];function n(e,t){var n=e.replace(/[<>~|\\"`!@#$%^&*()=+?]/g,""),r=n.split(/[\s,;.:]+/).filter((function(e,t,n){return""!==e&&n.indexOf(e)===t}));n="";for(var i=0;i<r.length;i++){if((n+=r[i]).length>=t)return n;i<r.length-1&&(n+=",")}return n}function r(e,r,i){e=e||"keywords",r=r||100;for(var s=i=i||"",o=0;o<t.length;o++){if(t[o].name&&t[o].name.toLowerCase()===e.toLowerCase())return n(i+","+t[o].content||"",r);t[o].name&&t[o].name.toLowerCase().indexOf(e.toLowerCase())>-1&&(s=i+","+t[o].content||"")}return n(s,r)}var i=r("keywords",300);return(!i||i.length<292)&&(!(i=r("description",300,i))||i.length<292)&&(i=function(t,r){return t=t||300,n((r=r||"")+","+((document.title||e)&&e.getElementsByTagName("title")[0]?e.getElementsByTagName("title")[0].innerHTML:""),t)}(300,i)),i}();window.pbjs.installedModules.push("invibesBidAdapter")}},function(e){e(e.s=5626)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[155],{5189:function(e,r,t){var i=t(265),n=t(9853),a=t(4806),o=t(8265),d=t(8962),s=t(5644),c=t(5849),u=t(2319),p=t(1879),f=t(1125),l=t(1929),m=t(4877);function y(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||I(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.")}()}function v(e){return v="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},v(e)}function g(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function b(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?g(Object(t),!0).forEach((function(r){h(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function h(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function x(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=I(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}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,o=!0,d=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){d=!0,a=e},f:function(){try{o||null==t.return||t.return()}finally{if(d)throw a}}}}function I(e,r){if(e){if("string"==typeof e)return O(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?O(e,r):void 0}}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,i=new Array(r);t<r;t++)i[t]=e[t];return i}var w="ix",S="roundel",P=[o.Mk,o.pX],Z=8e3,k=[300,250],j={JPY:1},z={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"]},A={"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":"","trustpid.com":""},T=["britepoolid","lipbid","criteoId","merkleId","parrableId","connectid","tapadId","quantcastId","flocId","pubProvidedId"],E=["mimes","minduration","maxduration"],C=["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"],X="ixdiag",R=!1,B=(0,c.df)({gvlid:10,bidderCode:w});function D(e){var r=N(e),t=(0,i.Z)(e,"mediaTypes.video"),a=(0,i.Z)(e,"params.video");if(_(t,a).length)return{};for(var d in r.video=a?(0,n.I8)(e.params.video):{},t)-1===C.indexOf(d)||r.video.hasOwnProperty(d)||(r.video[d]=t[d]);if(r.video.minduration>r.video.maxduration)return(0,n.H)("IX Bid Adapter: video minduration [".concat(r.video.minduration,"] cannot be greater than video maxduration [").concat(r.video.maxduration,"]"),{bidder:w,code:9}),{};var s=a&&a.context||t&&t.context;if(s&&!r.video.hasOwnProperty("placement")&&(s===l.LD?r.video.placement=1:s===l.gZ?r.video.placement=4:(0,n.yN)("IX Bid Adapter: Video context '".concat(s,"' is not supported"))),!r.video.w||!r.video.h){var c=H((0,i.Z)(r,"video.playerSize"))||H((0,i.Z)(e,"params.size"));if(!c)return(0,n.yN)("IX Bid Adapter: Video size is missing in [mediaTypes.video] missing"),{};r.video.w=c[0],r.video.h=c[1],(0,i.Z)(r,"ext.sid")||(r.ext.sid=(0,n.s)(c))}return U(e,r,o.pX),r}function N(e){var r={};return r.id=e.bidId,r.ext={},r.ext.siteID=e.params.siteId.toString(),!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||(r.ext.sid=String(e.params.id)),r}function U(e,r,t){var i=null,a=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(i={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),(0,n.LQ)(e.getFloor)){var o="*",d="*";if(t&&(0,n.r3)(P,t)){var s=r[t];o=t,d=[s.w,s.h]}try{a=e.getFloor({mediaType:o,size:d})}catch(e){(0,n.yN)("priceFloors module call getFloor failed, error : ",e)}}a?(r.bidfloor=a.floor,r.bidfloorcur=a.currency,r.ext.fl="p"):i&&(r.bidfloor=i.floor,r.bidfloorcur=i.currency,r.ext.fl="x")}function F(e,r,t){var a={},d=!(!(0,i.Z)(e,"exp")||!(0,n.U)(e.exp)),s=(0,i.Z)(e,"dealid")||(0,i.Z)(e,"ext.dealid");return j.hasOwnProperty(r)?a.cpm=e.price/j[r]:a.cpm=e.price/100,a.requestId=e.impid,s&&(a.dealId=s),a.netRevenue=!0,a.currency=r,a.creativeId=e.hasOwnProperty("crid")?e.crid:"-",2==e.mtype?a.vastXml=e.adm:e.ext&&e.ext.vasturl&&(a.vastUrl=e.ext.vasturl),e.ext&&e.ext.vasturl||2==e.mtype?(a.width=t.video.w,a.height=t.video.h,a.mediaType=o.pX,a.mediaTypes=t.mediaTypes,a.ttl=d?e.exp:3600):(a.ad=e.adm,a.width=e.w,a.height=e.h,a.mediaType=o.Mk,a.ttl=d?e.exp:300),a.meta={},a.meta.networkId=(0,i.Z)(e,"ext.dspid"),a.meta.brandId=(0,i.Z)(e,"ext.advbrandid"),a.meta.brandName=(0,i.Z)(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(a.meta.advertiserDomains=e.adomain),a}function q(e){return Array.isArray(e)&&2===e.length&&(0,n.U)(e[0])&&(0,n.U)(e[1])}function M(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(q(e))return e[0]===r[0]&&e[1]===r[1];for(var t=0;t<e.length;t++)if(e[t][0]===r[0]&&e[t][1]===r[1])return!0;return!1}function _(e,r){var t=[];e||(0,n.yN)("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");var i,a=x(E);try{for(a.s();!(i=a.n()).done;){var o=i.value,d=e&&e.hasOwnProperty(o),s=r&&r.hasOwnProperty(o);d||s||t.push("IX Bid Adapter: ".concat(o," is not included in either the adunit or params level"))}}catch(e){a.e(e)}finally{a.f()}var c=e&&e.hasOwnProperty("protocol"),u=e&&e.hasOwnProperty("protocols"),p=r&&r.hasOwnProperty("protocol"),f=r&&r.hasOwnProperty("protocols");return c||u||p||f||t.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),t}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return q(e)?e:!!q(e[0])&&e[0]}function J(e,r,t){if(e)return b(b({},(0,p.sE)(t,(function(r){return r.bidId===e}))),(0,p.sE)(r,(function(r){return r.id===e})))}function L(e,r,t,s){var c="https://htlb.casalemedia.com/cygnus",u=function(e,r){var t=[],a={};if((0,n.kJ)(e)){var o,d=x(e);try{for(d.s();!(o=d.n()).done;){var s=o.value;A.hasOwnProperty(s.source)&&(0,i.Z)(s,"uids.0")&&(a[s.source]=!0,""!=A[s.source]&&(s.uids[0].ext={rtiPartner:A[s.source]}),delete s.uids[0].atype,t.push(s))}}catch(e){d.e(e)}finally{d.f()}}if(r&&r.id&&r.version){var c={source:"chrome.com",uids:[{id:r.id,ext:{rtiPartner:"flocId",ver:r.version}}]};t.push(c),a["chrome.com"]=!0}return{toSend:t,seenSources:a}}((0,i.Z)(e,"0.userIdAsEids"),(0,i.Z)(e,"0.userId.flocId")),p=u.toSend,f=function(){var e=d.vc.getConfig("pageUrl");try{return new URL(e).href}catch(r){return void(0,n.yN)("IX Bid Adapter: invalid pageUrl config property value set: ".concat(e))}}()||(0,i.Z)(r,"refererInfo.referer");if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo){var l=window.headertag.getIdentityInfo();if(l&&"object"===v(l))for(var m in l)if(l.hasOwnProperty(m)){var g=l[m];!g.responsePending&&g.data&&"object"===v(g.data)&&Object.keys(g.data).length&&!u.seenSources[g.data.source]&&p.push(g.data)}}if(r&&r.bidderCode===S&&!u.seenSources["liveramp.com"])return[];var h={};h.id=e[0].bidderRequestId.toString(),h.site={},h.ext={},h.ext.source="prebid",h.ext.ixdiag={},h.ext.ixdiag.msd=0,h.ext.ixdiag.msi=0,h.imp=[],h.at=1;var I=function(e){for(var r=e.map((function(e){return e.transactionId})).filter((function(e,r,t){return t.indexOf(e)===r})),t={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"6.26.0",userIds:V(e[0]),url:window.location.href.split("?")[0]},n=function(n){o=e.filter((function(e){return e.transactionId===r[n]}))[0],(0,i.Z)(o,"mediaTypes")&&(Object.keys(o.mediaTypes).length>1&&t.mfu++,(0,i.Z)(o,"mediaTypes.native")&&t.nu++,(0,i.Z)(o,"mediaTypes.banner")&&t.bu++,"outstream"===(0,i.Z)(o,"mediaTypes.video.context")&&(t.ou++,re(o)&&(t.ren=!0)),"instream"===(0,i.Z)(o,"mediaTypes.video.context")&&t.iu++,t.allu++)},a=0;a<r.length;a++){var o;n(a)}return t}(e);for(var O in I)h.ext.ixdiag[O]=I[O];var P=function(){if(B.localStorageIsEnabled()){var e,r={};try{e=JSON.parse(B.getDataFromLocalStorage(X)||"{}")}catch(e){return(0,n.H)("ix can not read ixdiag from localStorage."),null}return Object.keys(e).forEach((function(t){Object.keys(e[t]).forEach((function(i){"number"==typeof e[t][i]&&(r[i]=r[i]?r[i]+e[t][i]:e[t][i])}))})),r}}();if((0,n.xb)(P)||(h.ext.ixdiag.err=P),e[0].schain&&(h.source={ext:{schain:e[0].schain}}),p.length>0&&(h.user={},h.user.eids=p),document.referrer&&""!==document.referrer&&(h.site.ref=document.referrer),r){if(r.gdprConsent){var k=r.gdprConsent;k.hasOwnProperty("gdprApplies")&&(h.regs={ext:{gdpr:k.gdprApplies?1:0}}),k.hasOwnProperty("consentString")&&(h.user=h.user||{},h.user.ext={consent:k.consentString||""},k.hasOwnProperty("addtlConsent")&&k.addtlConsent&&(h.user.ext.consented_providers_settings={consented_providers:k.addtlConsent}))}r.uspConsent&&(0,a.Z)(h,"regs.ext.us_privacy",r.uspConsent),f&&(h.site.page=f)}d.vc.getConfig("coppa")&&(0,a.Z)(h,"regs.coppa",1);var j={};j.s=e[0].params.siteId,j.v=s,j.ac="j",j.sd=1,8.1===s&&(j.nf=1);var T=r&&r.bidderCode||"ix",E=d.vc.getConfig(T),C=[],R=0,D=Object.keys(t),N="".concat(c).concat((0,n.Re)(b(b({},j),{},{r:JSON.stringify(h)}))).length;if(N>Z)return(0,n.H)("IX Bid Adapter: Base request size has exceeded maximum request size.",{bidder:w,code:7}),C;var U=N,F=0,q=!1;if(E){if("object"===v(E.firstPartyData)){var M=E.firstPartyData,_="?";for(var H in M)M.hasOwnProperty(H)&&(_+="".concat(encodeURIComponent(H),"=").concat(encodeURIComponent(M[H]),"&"));_=_.slice(0,-1),(F=encodeURIComponent(_).length)<Z?("page"in h.site?h.site.page+=_:h.site.page=_,U+=F):(0,n.H)("IX Bid Adapter: IX config FPD request size has exceeded maximum request size.",{bidder:w,code:6})}"number"==typeof E.timeout&&(j.t=E.timeout),"boolean"==typeof E.detectMissingSizes?h.ext.ixdiag.dms=E.detectMissingSizes:h.ext.ixdiag.dms=!0}for(var J=function(r){if(U>=Z||C.length>=4)return"break";for(var i=t[D[r]],s=i.missingCount,u=void 0===s?0:s,p=i.missingImps,f=void 0===p?[]:p,l=i.ixImps,m=!1,v=Z-U,g={ixImps:void 0===l?[]:l,missingBannerImpressions:f},x=Object.keys(g).map((function(e){return g[e]})).filter((function(e){return Array.isArray(e)})).reduce((function(e,r){return e.concat.apply(e,y(r))}),[]),I=encodeURIComponent(JSON.stringify({impressionObjects:x})).length;x.length&&I>v;)m=!0,x.pop(),I=encodeURIComponent(JSON.stringify({impressionObjects:x})).length;var O=t[D[r]].gpid,S=t[D[r]].dfp_ad_unit_code;if(x.length&&o.Mk in x[0]){var P=x[0],k={id:P.id,banner:{topframe:P.banner.topframe,format:x.map((function(e){var r=e.banner;return{w:r.w,h:r.h,ext:e.ext}}))}};(S||O)&&(k.ext={},k.ext.dfp_ad_unit_code=S,k.ext.gpid=O),"bidfloor"in x[0]&&(k.bidfloor=x[0].bidfloor),"bidfloorcur"in x[0]&&(k.bidfloorcur=x[0].bidfloorcur),h.imp.push(k),h.ext.ixdiag.msd+=u,h.ext.ixdiag.msi+=f.length}else{var A;x.forEach((function(e){return(0,a.Z)(e,"ext.gpid",O)})),(A=h.imp).push.apply(A,y(x))}U+=I;var T=d.vc.getConfig("ortb2")||{};if(!(0,n.xb)(T)&&!q){h.ext.ixdiag.fpd=!0;var E=b({},T.site||T.context);Object.keys(E).forEach((function(e){-1===z.SITE.indexOf(e)&&delete E[e]}));var X=b({},T.user);Object.keys(X).forEach((function(e){-1===z.USER.indexOf(e)&&delete X[e]}));var B=(0,n.I8)(h);if(B.site=(0,n.Ee)({},B.site,E),B.user=(0,n.Ee)({},B.user,X),"".concat(c).concat((0,n.Re)(b(b({},j),{},{r:JSON.stringify(B)}))).length<Z){h.site=(0,n.Ee)({},h.site,E),h.user=(0,n.Ee)({},h.user,X),q=!0;var F=encodeURIComponent(JSON.stringify(b(b({},E),X))).length;U+=F}else(0,n.H)("IX Bid Adapter: FPD request size has exceeded maximum request size.",{bidder:w,code:8})}var M=r===D.length-1;if(m||M){var _=(0,n.I8)(j);M&&!R||(h.ext.ixdiag.sn=R,_.sn=R),R++,_.r=JSON.stringify(h),C.push({method:"GET",url:c,data:_,validBidRequests:e}),U=N,h.imp=[],h.ext.ixdiag.msd=0,h.ext.ixdiag.msi=0,q=!1}},L=0;L<D.length&&"break"!==J(L);L++);return C}function V(e){var r=e.userId||{};return T.filter((function(e){return r[e]}))}function G(e,r){if(r)for(var t=0;t<e.length;t++){var i=e[t];if(r[0]===i[0]&&r[1]===i[1]){e.splice(t,1);break}}}function $(e,r){var t=D(e);0!=Object.keys(t).length&&(r[e.transactionId]={},r[e.transactionId].ixImps=[],r[e.transactionId].ixImps.push(t),r[e.transactionId].gpid=(0,i.Z)(e,"ortb2Imp.ext.gpid"))}function Q(e,r,t){var a=b(b({},{detectMissingSizes:!0}),d.vc.getConfig("ix")),s=function(e){var r=N(e);r.banner={};var t=(0,i.Z)(e,"params.size");return t&&(r.banner.w=t[0],r.banner.h=t[1],(0,i.Z)(r,"ext.sid")||(r.ext.sid=(0,n.s)(t))),r.banner.topframe=(0,n.yL)()?0:1,U(e,r,o.Mk),r}(e),c=M((0,i.Z)(e,"mediaTypes.banner.sizes"),(0,i.Z)(e,"params.size"));t.hasOwnProperty(e.transactionId)||(t[e.transactionId]={}),t[e.transactionId].gpid=(0,i.Z)(e,"ortb2Imp.ext.gpid"),t[e.transactionId].dfp_ad_unit_code=(0,i.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),c&&(t[e.transactionId].hasOwnProperty("ixImps")||(t[e.transactionId].ixImps=[]),t[e.transactionId].ixImps.push(s)),a.hasOwnProperty("detectMissingSizes")&&a.detectMissingSizes&&function(e,r,t){var a=e.transactionId;if(r.hasOwnProperty(a)){var o=[];r[a].hasOwnProperty("missingSizes")&&(o=r[a].missingSizes),G(o,e.params.size),r[a].missingSizes=o}else if((0,i.Z)(e,"mediaTypes.banner.sizes")){var d=(0,n.I8)(e.mediaTypes.banner.sizes);G(d,e.params.size);var s={missingSizes:d,impression:t};r[a]=s}}(e,r,s)}function Y(e,r,t){var i=(0,n.I8)(r);return i.ext.sid=(0,n.s)(t),i.banner.w=t[0],i.banner.h=t[1],U(e,i,o.Mk),i}function K(e){if("ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===w){var r={hasEnforcementHook:!1,valid:(0,n.wn)()};(0,c.S6)(10,w,r,(function(r){r.valid&&function(e){if(B.localStorageIsEnabled()){var r;try{r=JSON.parse(B.getDataFromLocalStorage(X)||"{}")}catch(e){(0,n.yN)("ix can not read ixdiag from localStorage.")}var t=new Date;if(Object.keys(r).map((function(e){var i=new Date(e);i.setDate(i.getDate()+7)-t<0&&delete r[e]})),"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===w){var i=t.toISOString().slice(0,10),a=e.arguments[1].code;a&&(r[i]=r[i]||{},Number(r[i][a])||(r[i][a]=0),r[i][a]++)}B.setDataInLocalStorage(X,JSON.stringify(r))}}(e)}))}}function W(e){e.renderer.push((function(){var r=e.adUnitCode,t=document.getElementById(r)?r:(0,n.ky)(r).divId;t?window.createIXPlayer(t,e):(0,n.yN)("IX Bid Adapter: adUnitCode: ".concat(t," not found on page."))}))}function ee(e,r){var t=m.Th.install({id:e,url:r,loaded:!1});try{t.setRender(W)}catch(e){return(0,n.yN)("Prebid Error calling setRender on renderer",e),null}return r?t:((0,n.yN)("Outstream renderer URL not found"),null)}function re(e){if("outstream"!==(0,i.Z)(e,"mediaTypes.video.context"))return!1;var r=(0,i.Z)(e,"mediaTypes.video.renderer");return r||(r=(0,i.Z)(e,"renderer")),!("object"===v(r)&&r.url&&r.render)||r.backupOnly}var te={code:w,gvlid:10,aliases:[{code:S,gvlid:10,skipPbsAliasing:!1}],supportedMediaTypes:P,isBidRequestValid:function(e){R||(u.on(s.FP.AUCTION_DEBUG,K),u.on(s.FP.AD_RENDER_FAILED,K),R=!0);var r,t,a=(0,i.Z)(e,"params.video"),o=(0,i.Z)(e,"params.size"),d=(0,i.Z)(e,"mediaTypes.banner.sizes"),c=(0,i.Z)(e,"mediaTypes.video"),p=(0,i.Z)(e,"mediaTypes.video.playerSize"),f=e.params.hasOwnProperty("bidFloor"),m=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!(0,n.r3)(P,e.mediaType))return(0,n.yN)("IX Bid Adapter: media type is not supported."),!1;if((0,i.Z)(e,"mediaTypes.banner")&&!d)return!1;if(o){var y=H(o);if(!y)return(0,n.H)("IX Bid Adapter: size has invalid format.",{bidder:w,code:1}),!1;if(!M(e.sizes,y)&&!M(p,y)&&!M(d,y))return(0,n.H)("IX Bid Adapter: bid size is not included in ad unit sizes or player size.",{bidder:w,code:2}),!1}if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return(0,n.H)("IX Bid Adapter: siteId must be string or number type.",{bidder:w,code:4}),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return(0,n.H)("IX Bid Adapter: siteId must valid value",{bidder:w,code:4}),!1;if((f||m)&&!(f&&m&&(r=e.params.bidFloor,t=e.params.bidFloorCur,Boolean("number"==typeof r&&"string"==typeof t&&t.match(/^[A-Z]{3}$/)))))return(0,n.H)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format.",{bidder:w,code:5}),!1;if(c&&a){var v=_(c,a);if(v.length)return v.forEach((function(e){(0,n.H)(e,{bidder:w,code:3})})),!1}var g=D(e).video;if((0,i.Z)(e,"mediaTypes.video.context")===l.gZ&&re(e)&&g){var b=(0,i.Z)(g,"playerSize")[0];if(!(b[0]>=k[0]&&b[1]>=k[1]))return(0,n.H)("IX Bid Adapter: ".concat(p," is an invalid size for IX outstream renderer")),!1}return!0},buildRequests:function(e,r){var t=[],n={},a={},d={},s={};for(var c in e.forEach((function(e){var r=Object.keys((0,i.Z)(e,"mediaTypes",{}));switch(function(e){return(0,i.Z)(e,"mediaTypes.video")&&D(e).video?o.pX:o.Mk}(e)){case o.Mk:Q(e,s,n);break;case o.pX:$(e,a)}(0,p.q9)(r,o.Mk)&&(0,p.q9)(r,o.pX)&&(d[e.transactionId]=e)})),Object.keys(d).forEach((function(e){var r=d[e];n[e]||Q(r,s,n),a[e]||$(r,a)})),s)if(s.hasOwnProperty(c)){var u=s[c].missingSizes;n.hasOwnProperty(c)||(n[c]={}),n[c].hasOwnProperty("missingImps")||(n[c].missingImps=[],n[c].missingCount=0);for(var f=s[c].impression,l=0;l<u.length;l++){var m=Y(e[0],f,u[l]);n[c].missingImps.push(m),n[c].missingCount++}}return Object.keys(n).length>0&&t.push.apply(t,y(L(e,r,n,7.2))),Object.keys(a).length>0&&t.push.apply(t,y(L(e,r,a,8.1))),t},interpretResponse:function(e,r){var t=[],a=null;if(!e.hasOwnProperty("body")||!e.body.hasOwnProperty("seatbid"))return t;for(var d=e.body,s=d.seatbid,c=0;c<s.length;c++)if(s[c].hasOwnProperty("bid")){for(var u=s[c].bid,p=JSON.parse(r.data.r),f=0;f<u.length;f++){var l=J(u[f].impid,p.imp,r.validBidRequests);if((a=F(u[f],d.cur,l)).mediaType===o.pX&&re(l)){var m=(0,i.Z)(d,"ext.videoplayerurl");if(a.renderer=ee(u[f].bidId,m),!a.renderer)continue}t.push(a)}if((0,i.Z)(p,"ext.ixdiag.err")&&B.localStorageIsEnabled())try{B.removeDataFromLocalStorage(X)}catch(e){(0,n.H)("ix can not clear ixdiag from localStorage.")}}return t},transformBidParams:function(e,r){return(0,n.uh)({siteID:"number"},e)},getUserSyncs:function(e,r){return e.iframeEnabled?[{type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"}]:[]}};(0,f.dX)(te),window.pbjs.installedModules.push("ixBidAdapter")},4806:function(e,r,t){function i(e,r,t){r.split&&(r=r.split("."));for(var i,n=0,a=r.length,o=e;n<a;++n)i=o[r[n]],o=o[r[n]]=n===a-1?t:null!=i?i:!~r[n+1].indexOf(".")&&+r[n+1]>-1?[]:{}}t.d(r,{Z:function(){return i}})}},function(e){e(e.s=5189)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[848],{5502:function(e,n,r){var t=r(1125),i=r(265);function a(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||o(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.")}()}function o(e,n){if(e){if("string"==typeof e)return u(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,n):void 0}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var r=0,t=new Array(n);r<n;r++)t[r]=e[r];return t}var s={code:"justpremium",gvlid:62,time:6e4,isBidRequestValid:function(e){return!!(e&&e.params&&e.params.zone)},buildRequests:function(e,n){var r,t,a=(r={},t={},e.forEach((function(e){var n=e.params,i=n.zone;if(1!==r[i]){var a=n.allow||n.formats||[],o=n.exclude||[];if(0===a.length&&0===o.length)return r[n.zone]=1;r[i]=r[i]||[[],{}],r[i][0]=function(e){for(var n=e.concat(),r=0;r<n.length;++r)for(var t=r+1;t<n.length;++t)n[r]===n[t]&&n.splice(t--,1);return n}(r[i][0].concat(a)),o.forEach((function(e){r[i][1][e]?r[i][1][e]++:r[i][1][e]=1})),t[i]=t[i]||0,o.length&&t[i]++}})),Object.keys(t).forEach((function(e){if(1!==r[e]){var n=[];Object.keys(r[e][1]).forEach((function(i){r[e][1][i]===t[e]&&n.push(i)})),r[e][1]=n}})),Object.keys(r).forEach((function(e){1!==r[e]&&r[e][1].length&&(r[e][0].forEach((function(n){var t=r[e][1].indexOf(n);t>-1&&r[e][1].splice(t,1)})),r[e][0].length=0),1===r[e]||r[e][0].length||r[e][1].length||(r[e]=1)})),r),u=function(){var e;try{e=window.top}catch(n){e=window}return{screenWidth:e.screen.width,screenHeight:e.screen.height,innerWidth:e.innerWidth,innerHeight:e.innerHeight}}(),s=function(){if(!window.top)return null;var e,n=new URLSearchParams(window.top.location.search);return function(e){return 0===Object.keys(e).length?null:e}((e={ggAdbuyid:n.get("gg_adbuyid"),ggDealid:n.get("gg_dealid"),ggEadbuyid:n.get("gg_eadbuyid")},Object.fromEntries(Object.entries(e).filter((function(e){var n,r,t=(r=2,function(e){if(Array.isArray(e))return e}(n=e)||function(e,n){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,i,a=[],o=!0,u=!1;try{for(r=r.call(e);!(o=(t=r.next()).done)&&(a.push(t.value),!n||a.length!==n);o=!0);}catch(e){u=!0,i=e}finally{try{o||null==r.return||r.return()}finally{if(u)throw i}}return a}}(n,r)||o(n,r)||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.")}());return t[0],null!=t[1]})))))}(),c={zone:e.map((function(e){return parseInt(e.params.zone)})).filter((function(e,n,r){return r.indexOf(e)===n})),referer:n.refererInfo.referer,sw:u.screenWidth,sh:u.screenHeight,ww:u.innerWidth,wh:u.innerHeight,c:a,id:e[0].params.zone,sizes:{},ggExt:s};e.forEach((function(e){var n=e.params.zone,r=c.sizes;r[n]=r[n]||[],r[n].push.apply(r[n],e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes)})),(0,i.Z)(e[0],"userId.pubcid")?c.pubcid=(0,i.Z)(e[0],"userId.pubcid"):(0,i.Z)(e[0],"crumbs.pubcid")&&(c.pubcid=(0,i.Z)(e[0],"crumbs.pubcid")),c.uids=e[0].userId,n&&n.gdprConsent&&(c.gdpr_consent={consent_string:n.gdprConsent.consentString,consent_required:"boolean"!=typeof n.gdprConsent.gdprApplies||n.gdprConsent.gdprApplies}),n&&n.uspConsent&&(c.us_privacy=n.uspConsent),c.version={prebid:"6.26.0",jp_adapter:"1.8.3"},e[0].schain&&(c.schain=e[0].schain);var d=JSON.stringify(c);return{method:"POST",url:"https://pre.ads.justpremium.com/v/2.0/t/xhr?i="+ +new Date,data:d,bids:e}},interpretResponse:function(e,n){var r=e.body,t=[];return n.bids.forEach((function(e){var n=function(e,n){var r=e.zone;if(n[r])for(var t=n[r].length;t--;)if(c(e,n[r][t]))return n[r].splice(t,1).pop();return!1}(e.params,r.bid);if(n){var i=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes&&e.mediaTypes.banner.sizes.length&&e.mediaTypes.banner.sizes[0]||[],a={requestId:e.bidId,creativeId:n.id,width:i[0]||n.width,height:i[1]||n.height,ad:n.adm,cpm:n.price,netRevenue:!0,currency:n.currency||"USD",ttl:n.ttl||s.time,format:n.format,meta:{advertiserDomains:n.adomain&&n.adomain.length>0?n.adomain:[]}};n.ext&&n.ext.pg&&(a.adserverTargeting={hb_deal_justpremium:"jp_pg"}),t.push(a)}})),t},getUserSyncs:function(e,n,r,t){var i="https://pre.ads.justpremium.com/v/1.0/t/sync?_c=a"+Math.random().toString(36).substring(7)+Date.now(),o=[];if(r&&"boolean"==typeof r.gdprApplies&&r.gdprApplies&&r.consentString&&(i=i+"&consentString="+encodeURIComponent(r.consentString)),t&&(i=i+"&usPrivacy="+encodeURIComponent(t)),e.iframeEnabled&&o.push({type:"iframe",url:i}),e.pixelEnabled&&0!==n.length){var u=n.map((function(e){var n;return null==e||null===(n=e.body)||void 0===n?void 0:n.pxs})).reduce((function(e,n){return e.concat(n)}),[]).filter((function(e){return void 0!==e}));o=[].concat(a(o),a(u))}return o}};function c(e,n){var r=n.format;return e.allow&&e.allow.length?e.allow.indexOf(r)>-1:!e.exclude||!e.exclude.length||e.exclude.indexOf(r)<0}(0,t.dX)(s),window.pbjs.installedModules.push("justpremiumBidAdapter")}},function(e){e(e.s=5502)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[397],{7527:function(t,e,n){var a=n(9853),i=n(5755),r=n(5644),o=n(2319);function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}var d=r.FP,c=d.AUCTION_INIT,l=d.AUCTION_END,p=d.REQUEST_BIDS,f=d.BID_REQUESTED,b=d.BID_TIMEOUT,I=d.BID_RESPONSE,y=d.NO_BID,E=d.BID_WON,g=d.BID_ADJUSTMENT,v=d.BIDDER_DONE,m=d.SET_TARGETING,h=d.AD_RENDER_FAILED,T=d.AD_RENDER_SUCCEEDED,D=d.AUCTION_DEBUG,A=d.ADD_AD_UNITS,U=d.BILLABLE_EVENT,S="endpoint",w="bundle",_=n(7602);function P(){return P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},P.apply(this,arguments)}var N,O=(0,n(2528).R)(),C={auctions:{}},R=P(function(t){var e,n=t.url,r=t.analyticsType,d=t.global,_=t.handler,P=[],N=0,O=!0;return function(){if(O){for(var t=0;t<P.length;t++)P[t]();P.push=function(t){t()},O=!1}(0,a.ji)("event count sent to ".concat(d,": ").concat(N))}(),{track:function(t){var e=t.eventType,n=t.args;this.getAdapterType()===w&&window[d](_,e,n),this.getAdapterType()===S&&C.apply(void 0,arguments)},enqueue:R,enableAnalytics:q,disableAnalytics:function(){(0,a.yi)(e,(function(t,e){o.S1(e,t)})),this.enableAnalytics=this._oldEnable?this._oldEnable:q},getAdapterType:function(){return r},getGlobal:function(){return d},getHandler:function(){return _},getUrl:function(){return n}};function C(t){var e=t.eventType,a=t.args,r=t.callback;(0,i.h)(n,r,JSON.stringify({eventType:e,args:a}))}function R(t){var e=t.eventType,n=t.args,a=this;d&&window[d]&&e&&n?this.track({eventType:e,args:n}):P.push((function(){N++,a.track({eventType:e,args:n})}))}function q(t){var n,i=this,r=this;"object"!==u(t)||"object"!==u(t.options)||void 0===t.options.sampling||Math.random()<parseFloat(t.options.sampling)?(o.vw().forEach((function(t){if(t){var e=t.eventType,n=t.args;e!==b&&R.call(r,{eventType:e,args:n})}})),s(n={},p,(function(t){return i.enqueue({eventType:p,args:t})})),s(n,f,(function(t){return i.enqueue({eventType:f,args:t})})),s(n,I,(function(t){return i.enqueue({eventType:I,args:t})})),s(n,y,(function(t){return i.enqueue({eventType:y,args:t})})),s(n,b,(function(t){return i.enqueue({eventType:b,args:t})})),s(n,E,(function(t){return i.enqueue({eventType:E,args:t})})),s(n,g,(function(t){return i.enqueue({eventType:g,args:t})})),s(n,v,(function(t){return i.enqueue({eventType:v,args:t})})),s(n,m,(function(t){return i.enqueue({eventType:m,args:t})})),s(n,l,(function(t){return i.enqueue({eventType:l,args:t})})),s(n,h,(function(t){return i.enqueue({eventType:h,args:t})})),s(n,T,(function(t){return i.enqueue({eventType:T,args:t})})),s(n,D,(function(t){return i.enqueue({eventType:D,args:t})})),s(n,A,(function(t){return i.enqueue({eventType:A,args:t})})),s(n,U,(function(t){return i.enqueue({eventType:U,args:t})})),s(n,c,(function(e){e.config="object"===u(t)&&t.options||{},i.enqueue({eventType:c,args:e})})),e=n,(0,a.yi)(e,(function(t,e){o.on(e,t)}))):(0,a.ji)('Analytics adapter for "'.concat(d,'" disabled by sampling')),this._oldEnable=this.enableAnalytics,this.enableAnalytics=function(){return(0,a.ji)('Analytics adapter for "'.concat(d,'" already enabled, unnecessary call to `enableAnalytics`.'))}}}({EMPTYURL:"",ANALYTICSTYPE:"endpoint"}),{track:function(t){var e=t.eventType,n=t.args,i=(0,a.AB)();switch((0,a.PN)("LIVEWRAPPED_EVENT:",[e,n]),e){case r.FP.AUCTION_INIT:(0,a.PN)("LIVEWRAPPED_AUCTION_INIT:",n),C.auctions[n.auctionId]={bids:{},bidAdUnits:{}};break;case r.FP.BID_REQUESTED:(0,a.PN)("LIVEWRAPPED_BID_REQUESTED:",n),C.auctions[n.auctionId].timeStamp=n.start,n.bids.forEach((function(t){var e;C.auctions[n.auctionId].gdprApplies=n.gdprConsent?n.gdprConsent.gdprApplies:void 0,C.auctions[n.auctionId].gdprConsent=n.gdprConsent?n.gdprConsent.consentString:void 0;var i=document.getElementById(t.adUnitCode),r=i?i.getAttribute("data-adunitid"):void 0;r=null!=r?r:void 0,t.lwflr&&(e=t.lwflr.flr,e=(t.lwflr.bflrs?t.lwflr.bflrs[t.bidder]:void 0)||e),C.auctions[n.auctionId].bids[t.bidId]={bidder:t.bidder,adUnit:t.adUnitCode,adUnitId:r,isBid:!1,won:!1,timeout:!1,sendStatus:0,readyToSend:0,start:n.start,lwFloor:e,floorData:t.floorData,auc:t.auc,buc:t.buc,lw:t.lw},(0,a.PN)(t)})),(0,a.PN)(R.requestEvents);break;case r.FP.BID_RESPONSE:(0,a.PN)("LIVEWRAPPED_BID_RESPONSE:",n);var o=C.auctions[n.auctionId].bids[n.requestId];o.isBid=n.getStatusCode()===r.Q_.Q,o.width=n.width,o.height=n.height,o.cpm=n.cpm,o.originalCpm=O.convertCurrency(n.originalCpm,n.originalCurrency,n.currency),o.ttr=n.timeToRespond,o.readyToSend=1,o.mediaType="native"==n.mediaType?2:"video"==n.mediaType?4:1,o.floorData=n.floorData,o.meta=n.meta,o.ttr||(o.ttr=i-o.start),C.auctions[n.auctionId].bidAdUnits[o.adUnit]||(C.auctions[n.auctionId].bidAdUnits[o.adUnit]={sent:0,lw:o.lw,adUnitId:o.adUnitId,timeStamp:C.auctions[n.auctionId].timeStamp});break;case r.FP.BIDDER_DONE:(0,a.PN)("LIVEWRAPPED_BIDDER_DONE:",n),n.bids.forEach((function(t){var e=C.auctions[t.auctionId].bids[t.bidId||t.requestId];e.ttr||(e.ttr=i-e.start),e.readyToSend=1}));break;case r.FP.BID_WON:(0,a.PN)("LIVEWRAPPED_BID_WON:",n);var s=C.auctions[n.auctionId].bids[n.requestId];s.won=!0,s.floorData=n.floorData,s.rUp=n.rUp,s.meta=n.meta,s.dealId=n.dealId,0!=s.sendStatus&&R.sendEvents();break;case r.FP.AD_RENDER_FAILED:(0,a.PN)("LIVEWRAPPED_AD_RENDER_FAILED:",n);var u=C.auctions[n.bid.auctionId].bids[n.bid.requestId];u.adRenderFailed=!0,u.reason=n.reason,u.message=n.message,0!=u.sendStatus&&R.sendEvents();break;case r.FP.BID_TIMEOUT:(0,a.PN)("LIVEWRAPPED_BID_TIMEOUT:",n),n.forEach((function(t){C.auctions[t.auctionId].bids[t.bidId].timeout=!0}));break;case r.FP.AUCTION_END:(0,a.PN)("LIVEWRAPPED_AUCTION_END:",n),setTimeout((function(){R.sendEvents()}),500)}}});function q(){try{return(0,a.Zy)().I12C&&1===(0,a.Zy)().I12C.Morph}catch(t){}}function B(t,e){var n=[];return Object.keys(C.auctions).forEach((function(a){Object.keys(C.auctions[a].bids).forEach((function(i){var r=C.auctions[a],o=k(t,r),s=j(e,a),u=r.bids[i];4&u.sendStatus||!u.won||(u.sendStatus|=4,n.push({timeStamp:r.timeStamp,adUnit:u.adUnit,adUnitId:u.adUnitId,bidder:u.bidder,width:u.width,height:u.height,cpm:u.cpm,orgCpm:u.originalCpm,mediaType:u.mediaType,gdpr:o,floor:u.lwFloor?u.lwFloor:u.floorData?u.floorData.floorValue:void 0,floorCur:u.floorData?u.floorData.floorCurrency:void 0,auctionId:s,auc:u.auc,buc:u.buc,lw:u.lw,rUp:u.rUp,meta:u.meta,dealId:u.dealId}))}))})),n}function k(t,e){var n=0;for(n=0;n<t.length&&(t[n].gdprApplies!=e.gdprApplies||t[n].gdprConsent!=e.gdprConsent);n++);return n==t.length&&(t[n]={gdprApplies:e.gdprApplies,gdprConsent:e.gdprConsent}),n}function j(t,e){var n=0;for(n=0;n<t.length&&t[n]!=e;n++);return n==t.length&&(t[n]=e),n}function F(t){var e=[];return Object.keys(C.auctions).forEach((function(n){var a=j(t,n);Object.keys(C.auctions[n].bids).forEach((function(t){var i=C.auctions[n],r=i.bids[t];8&r.sendStatus||!r.timeout||(r.sendStatus|=8,e.push({bidder:r.bidder,adUnit:r.adUnit,adUnitId:r.adUnitId,timeStamp:i.timeStamp,auctionId:a,auc:r.auc,buc:r.buc,lw:r.lw}))}))})),e}function L(t){var e=[];return Object.keys(C.auctions).forEach((function(n){var a=j(t,n);Object.keys(C.auctions[n].bids).forEach((function(t){var i=C.auctions[n],r=i.bids[t];16&r.sendStatus||!r.adRenderFailed||(r.sendStatus|=16,e.push({bidder:r.bidder,adUnit:r.adUnit,adUnitId:r.adUnitId,timeStamp:i.timeStamp,auctionId:a,auc:r.auc,buc:r.buc,lw:r.lw,rsn:r.reason,msg:r.message}))}))})),e}R.originEnableAnalytics=R.enableAnalytics,R.allRequestEvents=[],R.enableAnalytics=function(t){N=t.options,R.originEnableAnalytics(t)},R.sendEvents=function(){var t,e,n,a,r=function(){var t=[],e=[],n=[];return Object.keys(C.auctions).forEach((function(a){var i=C.auctions[a],r=k(e,i),o=j(n,a);Object.keys(C.auctions[a].bids).forEach((function(e){var n=i.bids[e];1&n.sendStatus||(n.sendStatus|=1,t.push({timeStamp:i.timeStamp,adUnit:n.adUnit,adUnitId:n.adUnitId,bidder:n.bidder,gdpr:r,floor:n.lwFloor,auctionId:o,auc:n.auc,buc:n.buc,lw:n.lw}))}))})),{gdpr:e,auctionIds:n,sentRequests:t}}(),o={publisherId:N.publisherId,gdpr:r.gdpr,auctionIds:r.auctionIds,requests:r.sentRequests,responses:(e=r.gdpr,n=r.auctionIds,a=[],Object.keys(C.auctions).forEach((function(t){Object.keys(C.auctions[t].bids).forEach((function(i){var r=C.auctions[t],o=k(e,r),s=j(n,t),u=r.bids[i];!u.readyToSend||2&u.sendStatus||u.timeout||(u.sendStatus|=2,a.push({timeStamp:r.timeStamp,adUnit:u.adUnit,adUnitId:u.adUnitId,bidder:u.bidder,width:u.width,height:u.height,cpm:u.cpm,orgCpm:u.originalCpm,ttr:u.ttr,IsBid:u.isBid,mediaType:u.mediaType,gdpr:o,floor:u.lwFloor?u.lwFloor:u.floorData?u.floorData.floorValue:void 0,floorCur:u.floorData?u.floorData.floorCurrency:void 0,auctionId:s,auc:u.auc,buc:u.buc,lw:u.lw,meta:u.meta}))}))})),a),wins:B(r.gdpr,r.auctionIds),timeouts:F(r.auctionIds),bidAdUnits:(t=[],Object.keys(C.auctions).forEach((function(e){var n=C.auctions[e];Object.keys(n.bidAdUnits).forEach((function(e){var a=n.bidAdUnits[e];a.sent||(a.sent=1,t.push({adUnit:e,adUnitId:a.adUnitId,timeStamp:a.timeStamp,lw:a.lw}))}))})),t),rf:L(r.auctionIds),rcv:q()};0==o.requests.length&&0==o.responses.length&&0==o.wins.length&&0==o.timeouts.length&&0==o.rf.length||(0,i.h)(N.endpoint||"https://lwadm.com/analytics/10",void 0,JSON.stringify(o),{method:"POST"})},_.ZP.registerAnalyticsAdapter({adapter:R,code:"livewrapped"}),window.pbjs.installedModules.push("livewrappedAnalyticsAdapter")}},function(t){t(t.s=7527)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[499],{5984:function(e,r,t){var n=t(9853),i=t(265),a=t(1125),o=t(8962),d=t(1879),s=t(8265),u=t(5849);function p(e){return p="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},p(e)}function c(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var f="livewrapped",l=(0,u.df)({bidderCode:f}),m={code:f,supportedMediaTypes:[s.Mk,s.B5,s.pX],gvlid:919,isBidRequestValid:function(e){return void 0!==(e.params.adUnitId||(e.params.adUnitName||e.adUnitCode||e.placementCode)&&e.params.publisherId)},buildRequests:function(e,r){var t=(0,d.sE)(e,v),i=(0,d.sE)(e,U),a=(0,d.sE)(e,b),s=(0,d.sE)(e,h),u=(0,d.sE)(e,y),f=(0,d.sE)(e,g),m=(0,d.sE)(e,I),T=(0,d.sE)(e,C),R=(0,d.sE)(e,w),q=(0,d.sE)(e,E),O=(0,d.sE)(e,A),X=(0,d.sE)(e,S),x=e[0].schain,D=o.vc.getConfig("ortb2"),N=function(e){var r=e[0];if(r&&r.userIdAsEids)return{user:{ext:{eids:r.userIdAsEids}}}}(e);u=u?u.params.bidUrl:"https://lwadm.com/ad",f=f?f.params.url:function(){if("object"===p(o.vc.getConfig("app")))return o.vc.getConfig("app").domain}()||function(e){var r=e&&e.refererInfo&&e.refererInfo.referer;return o.vc.getConfig("pageUrl")||r}(r),m=m?m.params.test:void 0;var P=e.map(j);N&&(D=(0,n.Ee)((0,n.Ee)({},D||{}),N));var H,J,V={auctionId:s?s.auctionId:void 0,publisherId:a?a.params.publisherId:void 0,userId:t?t.params.userId:i?i.crumbs.pubcid:void 0,url:f,test:m,seats:T?T.params.seats:void 0,deviceId:R?R.params.deviceId:void 0,ifa:q?q.params.ifa:z(),bundle:O?O.params.bundle:k(),width:(J=o.vc.getConfig("device"),"object"===p(J)&&J.width?J.width:window.innerWidth),height:B(),tid:X?X.params.tid:void 0,version:"1.4",gdprApplies:r.gdprConsent?r.gdprConsent.gdprApplies:void 0,gdprConsent:r.gdprConsent?r.gdprConsent.consentString:void 0,coppa:M(),usPrivacy:r.uspConsent,cookieSupport:!(0,n.fr)()&&l.cookiesAreEnabled(),rcv:Z(),adRequests:(H=P,function(e){if(Array.isArray(e))return c(e)}(H)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(H)||function(e,r){if(e){if("string"==typeof e)return c(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?c(e,r):void 0}}(H)||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.")}()),rtbData:D,schain:x};return o.vc.getConfig().debug&&(V.dbg=!0),{method:"POST",url:u,data:JSON.stringify(V)}},interpretResponse:function(e){var r=[];return e.body.dbg&&window.livewrapped&&window.livewrapped.s2sDebug&&window.livewrapped.s2sDebug(e.body.dbg),e.body.ads.forEach((function(t){var n={requestId:t.bidId,bidderCode:f,cpm:t.cpmBid,width:t.width,height:t.height,ad:t.tag,ttl:t.ttl,creativeId:t.creativeId,netRevenue:!0,currency:e.body.currency,meta:t.meta};t.native&&(n.native=t.native,n.mediaType=s.B5),t.video&&(n.mediaType=s.pX,n.vastXml=t.tag),r.push(n)})),r},getUserSyncs:function(e,r){if(0==r.length)return[];var t=[];return(r[0].body.pixels||[]).forEach((function(r){e.pixelEnabled&&"Redirect"==r.type&&t.push({type:"image",url:r.url}),e.iframeEnabled&&"Iframe"==r.type&&t.push({type:"iframe",url:r.url})})),t}};function v(e){return!!e.params.userId}function b(e){return!!e.params.publisherId}function g(e){return!!e.params.url}function y(e){return!!e.params.bidUrl}function h(e){return!!e.auctionId}function I(e){return!!e.params.test}function C(e){return!!e.params.seats}function w(e){return!!e.params.deviceId}function E(e){return!!e.params.ifa}function A(e){return!!e.params.bundle}function S(e){return!!e.params.tid}function U(e){return!!e.crumbs&&!!e.crumbs.pubcid}function j(e){var r={adUnitId:e.params.adUnitId,callerAdUnitId:e.params.adUnitName||e.adUnitCode||e.placementCode,bidId:e.bidId,transactionId:e.transactionId,formats:T(e).map(R),options:e.params.options};return void 0!==e.auc&&(r.auc=e.auc),r.native=(0,i.Z)(e,"mediaTypes.native"),r.video=(0,i.Z)(e,"mediaTypes.video"),(r.native||r.video)&&(0,i.Z)(e,"mediaTypes.banner")&&(r.banner=!0),r}function T(e){return(0,i.Z)(e,"mediaTypes.banner.sizes")?e.mediaTypes.banner.sizes:Array.isArray(e.sizes)&&e.sizes.length>0?e.sizes:[]}function R(e){return{width:e[0],height:e[1]}}function Z(){try{return(0,n.Zy)().I12C&&1===(0,n.Zy)().I12C.Morph}catch(e){}}function k(){if("object"===p(o.vc.getConfig("app")))return o.vc.getConfig("app").bundle}function z(){if("object"===p(o.vc.getConfig("device")))return o.vc.getConfig("device").ifa}function B(){var e=o.vc.getConfig("device");return"object"===p(e)&&e.height?e.height:window.innerHeight}function M(){if("boolean"==typeof o.vc.getConfig("coppa"))return o.vc.getConfig("coppa")}(0,a.dX)(m),window.pbjs.installedModules.push("livewrappedBidAdapter")}},function(e){e(e.s=5984)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[622],{9909:function(e,n,t){var i=t(9853),s=t(1125),r=t(8265),o="https://statics.nextmillmedia.com/load-cookie.html?v=4",d={code:"nextMillennium",supportedMediaTypes:[r.Mk],isBidRequestValid:function(e){return!!(e.params.placement_id&&(0,i.d8)(e.params.placement_id)||e.params.group_id&&(0,i.d8)(e.params.group_id))},buildRequests:function(e,n){var t=[];return window.nmmRefreshCounts=window.nmmRefreshCounts||{},(0,i.yi)(e,(function(e){window.nmmRefreshCounts[e.adUnitCode]=window.nmmRefreshCounts[e.adUnitCode]||0;var s={id:e.auctionId,ext:{prebid:{storedrequest:{id:a(e)}},nextMillennium:{refresh_count:window.nmmRefreshCounts[e.adUnitCode]++}}},r=n&&n.gdprConsent,o=n&&n.uspConsent;(r||o)&&(s.regs={ext:{}},o&&(s.regs.ext.us_privacy=o),r&&(void 0!==r.gdprApplies&&(s.regs.ext.gdpr=r.gdprApplies?1:0),void 0!==r.consentString&&(s.user={ext:{consent:r.consentString}})));var d=(0,i.en)((0,i.Zy)().location.href).search,p=d.pbs&&"test"===d.pbs;t.push({method:"POST",url:p?"https://test.pbs.nextmillmedia.com/openrtb2/auction":"https://pbs.nextmillmedia.com/openrtb2/auction",data:JSON.stringify(s),options:{contentType:"application/json",withCredentials:!0},bidId:e.bidId})})),t},interpretResponse:function(e,n){var t=e.body,s=[];return(0,i.yi)(t.seatbid,(function(e){(0,i.yi)(e.bid,(function(e){s.push({requestId:n.bidId,cpm:e.price,width:e.w,height:e.h,creativeId:e.adid,currency:t.cur,netRevenue:!1,ttl:360,meta:{advertiserDomains:e.adomain||[]},ad:e.adm})}))})),s},getUserSyncs:function(e,n,t,s){if(e.iframeEnabled){var r=t&&t.gdprApplies?"".concat(o,"&gdpr=1&gdpr_consent=").concat(t.consentString):o,d=[];return n&&(0,i.yi)(n,(function(e){e&&e.body&&e.body.ext&&e.body.ext.responsetimemillis&&(0,i.yi)(Object.keys(e.body.ext.responsetimemillis),(function(e){return d.push(e)}))})),d.length&&(r+="&bidders=".concat(d.join(","))),[{type:"iframe",url:r}]}}};function a(e){var n=(0,i.An)("group_id",e.params),t=(0,i.An)("placement_id",e.params);if(!n)return t;var s=p(window),r=[];e.mediaTypes&&(e.mediaTypes.banner&&(r=e.mediaTypes.banner.sizes&&e.mediaTypes.banner.sizes[0]),e.mediaTypes.video&&(r=e.mediaTypes.video.playerSize));var o=s&&s.location&&s.location.host||"";return"g".concat(n,";").concat(r.join("x"),";").concat(o)}function p(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(n>10)return e;try{if(e.parent.document)return p(e.parent.window,++n)}catch(n){return e}}(0,s.dX)(d),window.pbjs.installedModules.push("nextMillenniumBidAdapter")}},function(e){e(e.s=9909)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[532],{6306:function(e,t,r){var n=r(8265),i=r(1929),o=r(4877),a=r(1879),d=r(5849),c=r(1125),s=r(2224),u=r(9853);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){f(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g="https://onetag-sys.com/usync/",m="onetag",y=(0,d.df)({gvlid:241,bidderCode:m});function h(e){return void 0!==e.mediaTypes&&void 0!==e.mediaTypes.video}function v(e,t){if(e===n.Mk)return k(t).length>0;if(e===n.pX&&h(t)){var r=t.mediaTypes.video.context;if("outstream"===r||"instream"===r)return O(t).length>0}return!1}function b(e){try{return void 0!==e.document.hidden?e.document.hidden:void 0!==e.document.msHidden?e.document.msHidden:void 0!==e.document.webkitHidden?e.document.webkitHidden:null}catch(e){return null}}function I(e){var t=e.params;this.adUnitCode=e.adUnitCode,this.bidId=e.bidId,this.bidderRequestId=e.bidderRequestId,this.auctionId=e.auctionId,this.transactionId=e.transactionId,this.pubId=t.pubId,this.ext=t.ext,t.pubClick&&(this.click=t.pubClick),t.dealId&&(this.dealId=t.dealId);var r=function(e){var t=document.getElementById(e);try{for(var r=t.getBoundingClientRect(),n=r.top,i=r.left,o=r.width,a=r.height,d=t.ownerDocument.defaultView,c={top:n+d.pageYOffset,left:i+d.pageXOffset,width:o,height:a},s=d.frameElement;null!=s;){var u=s.getBoundingClientRect(),p=u.top,l=u.left;c.top+=p+d.pageYOffset,c.left+=l+d.pageXOffset,s=(d=d.parent).frameElement}return c}catch(e){return null}}(e.adUnitCode);r&&(this.coords=r)}function w(){try{if(null!=window.performance&&null!=window.performance.timing){var e={},t=window.performance.timing;return e.pageLoadTime=t.loadEventEnd-t.navigationStart,e.connectTime=t.responseEnd-t.requestStart,e.renderTime=t.domComplete-t.domLoading,e}}catch(e){return null}return null}function O(e){var t=e.mediaTypes.video.playerSize;return void 0!==t&&Array.isArray(t)&&t.length>0?x(t):[]}function k(e){return void 0!==e.mediaTypes&&void 0!==e.mediaTypes.banner&&void 0!==e.mediaTypes.banner.sizes&&Array.isArray(e.mediaTypes.banner.sizes)&&e.mediaTypes.banner.sizes.length>0?x(e.mediaTypes.banner.sizes):!h(e)&&e.sizes&&Array.isArray(e.sizes)?x(e.sizes):[]}function x(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];t.push({width:n[0],height:n[1]})}return t}var T={code:m,gvlid:241,supportedMediaTypes:[n.Mk,n.pX],isBidRequestValid:function(e){return void 0!==e&&void 0!==e.params&&"string"==typeof e.params.pubId&&(v(n.Mk,e)||v(n.pX,e))},buildRequests:function(e,t){var r,i,o,a,d,c,p=l({bids:(a=e,d=a.filter((function(e){return h(e)})).map((function(e){var t={};return I.call(t,e),t.context=e.mediaTypes.video.context,t.playerSize=O(e),t.mediaTypeInfo=(0,u.I8)(e.mediaTypes.video),t.type=n.pX,t})),c=a.filter((function(e){return v(n.Mk,e)})).map((function(e){var t={};return I.call(t,e),t.sizes=k(e),t.type=n.Mk,t.mediaTypeInfo=(0,u.I8)(e.mediaTypes.banner),t})),d.concat(c))},(r=function(){var e=window,t=window.parent,r=0;try{for(;e!==e.parent;)(t=e.parent).location.href,e=e.parent}catch(n){r=t===e.top?1:2}return{topmostFrame:e,currentFrameNesting:r}}(),i=r.topmostFrame,o=r.currentFrameNesting,{location:i.location.href,referrer:""!==i.document.referrer?i.document.referrer:null,ancestorOrigin:window.location.ancestorOrigins&&window.location.ancestorOrigins.length>0?window.location.ancestorOrigins[window.location.ancestorOrigins.length-1]:null,masked:o,wWidth:i.innerWidth,wHeight:i.innerHeight,oWidth:i.outerWidth,oHeight:i.outerHeight,sWidth:i.screen.width,sHeight:i.screen.height,aWidth:i.screen.availWidth,aHeight:i.screen.availHeight,sLeft:"screenLeft"in i?i.screenLeft:i.screenX,sTop:"screenTop"in i?i.screenTop:i.screenY,xOffset:i.pageXOffset,yOffset:i.pageYOffset,docHidden:b(i),docHeight:i.document.body?i.document.body.scrollHeight:null,hLength:history.length,timing:w(),version:{prebid:"6.26.0",adapter:"1.1.0"}}));t&&t.gdprConsent&&(p.gdprConsent={consentString:t.gdprConsent.consentString,consentRequired:t.gdprConsent.gdprApplies}),t&&t.uspConsent&&(p.usPrivacy=t.uspConsent),e&&0!==e.length&&e[0].userId&&(p.userId=(0,s.HQ)(e[0].userId));try{y.hasLocalStorage()&&(p.onetagSid=y.getDataFromLocalStorage("onetag_sid"))}catch(e){}return{method:"POST",url:"https://onetag-sys.com/prebid-request",data:JSON.stringify(p)}},interpretResponse:function(e,t){var r=e.body,d=[],c=JSON.parse(t.data);return!r||r.nobid&&!0===r.nobid?d:r.bids&&Array.isArray(r.bids)&&0!==r.bids.length?(r.bids.forEach((function(e){var t={requestId:e.requestId,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.creativeId,dealId:null==e.dealId?e.dealId:"",currency:e.currency,netRevenue:e.netRevenue||!1,mediaType:e.mediaType,meta:{mediaType:e.mediaType,advertiserDomains:e.adomain},ttl:e.ttl||300};if(e.mediaType===n.Mk)t.ad=e.ad;else if(e.mediaType===n.pX){var r=(0,a.sE)(c.bids,(function(t){return t.bidId===e.requestId&&t.type===n.pX})),s=r.context,u=r.adUnitCode;s===i.LD?(t.vastUrl=e.vastUrl,t.videoCacheKey=e.videoCacheKey):s===i.gZ&&(t.vastXml=e.ad,t.vastUrl=e.vastUrl,e.rendererUrl&&(t.renderer=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.Th.install({id:e.requestId,url:e.rendererUrl,config:t,adUnitCode:e.adUnitCode,loaded:!1});try{r.setRender((function(t){var r=t.renderer,n=t.width,i=t.height,o=t.vastXml,a=t.adUnitCode;r.push((function(){window.onetag.Player.init(l(l({},e),{},{width:n,height:i,vastXml:o,nodeId:a,config:r.getConfig()}))}))}))}catch(e){}return r}(l(l({},e),{},{adUnitCode:u}))))}d.push(t)})),d):d},getUserSyncs:function(e,t,r,n){var i=[],o="";return r&&("boolean"==typeof r.gdprApplies&&(o+="&gdpr="+(r.gdprApplies?1:0)),"string"==typeof r.consentString&&(o+="&gdpr_consent="+r.consentString)),n&&"string"==typeof n&&(o+="&us_privacy="+n),e.iframeEnabled&&i.push({type:"iframe",url:g+"?cb="+(new Date).getTime()+o}),e.pixelEnabled&&i.push({type:"image",url:g+"?tag=img"+o}),i}};(0,c.dX)(T),window.pbjs.installedModules.push("onetagBidAdapter")},2224:function(e,t,r){r.d(t,{HQ:function(){return d},Pv:function(){return c},UR:function(){return o}});var n=r(9853),i=r(265),o={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){return e.uid},getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=(0,n.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:3},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}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},gravitompId:{source:"gravito.net",atype:1}};function a(e,t){var r=o[t];if(r&&e){var i={};i.source=r.source;var a=(0,n.LQ)(r.getValue)?r.getValue(e):e;if((0,n.d8)(a)){var d={id:a,atype:r.atype};if((0,n.LQ)(r.getUidExt)){var c=r.getUidExt(e);c&&(d.ext=c)}if(i.uids=[d],(0,n.LQ)(r.getEidExt)){var s=r.getEidExt(e);s&&(i.ext=s)}return i}}return null}function d(e){var t=[];for(var r in e)if(e.hasOwnProperty(r))if("pubProvidedId"===r)t=t.concat(e.pubProvidedId);else{var n=a(e[r],r);n&&t.push(n)}return t}function c(e){var t=[];return e.filter((function(e){return(0,n.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(r){(0,i.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,i.Z)(o,r+".source")&&t.push({source:o[r].source,bidders:e.config.bidders})}))})),t}}},function(e){e(e.s=6306)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[534],{498:function(e,t,n){var r=n(265),i=n(9853),a=n(4806),o=n(8962),d=n(1125),s=n(8265),c=n(1879);function u(e){return u="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},u(e)}function p(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 l=[s.Mk,s.pX],m=["startdelay","mimes","minduration","maxduration","startdelay","skippable","playbackmethod","api","protocols","boxingallowed","linearity","delivery","protocol","placement","minbitrate","maxbitrate"],f={britepoolid:"britepoolid",criteoId:"criteoid",fabrickId:"nuestarid",haloId:"audigentid",id5id:"id5id",idl_env:"lre",IDP:"zeotapid",idxId:"idxid",intentIqId:"intentiqid",lipb:"lipbid",lotamePanoramaId:"lotameid",merkleId:"merkleid",netId:"netid",parrableId:"parrableid",pubcid:"pubcid",quantcastId:"quantcastid",tapadId:"tapadid",tdid:"ttduuid",uid2:"uid2",flocId:"floc",admixerId:"admixerid",deepintentId:"deepintentid",dmdId:"dmdid",nextrollId:"nextrollid",novatiq:"novatiqid",mwOpenLinkId:"mwopenlinkid",dapId:"dapid",amxId:"amxid",kpuid:"kpuid",publinkId:"publinkid",naveggId:"naveggid",imuid:"imuid",adtelligentId:"adtelligentid"},h={code:"openx",gvlid:69,supportedMediaTypes:l,isBidRequestValid:function(e){var t=e.params.delDomain||e.params.platform;return(0,r.Z)(e,"mediaTypes.banner")&&t?!!e.params.unit||(0,r.Z)(e,"mediaTypes.banner.sizes.length")>0:!(!e.params.unit||!t)},buildRequests:function(e,t){if(0===e.length)return[];var n,a,d=[],u=function(e){return e.reduce((function(e,t){var n;return n=t,(0,r.Z)(n,"mediaTypes.video")&&!(0,r.Z)(n,"mediaTypes.banner")||n.mediaType===s.pX?e[0].push(t):e[1].push(t),e}),[[],[]])}(e),l=(a=2,function(e){if(Array.isArray(e))return e}(n=u)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a=[],o=!0,d=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(e){d=!0,i=e}finally{try{o||null==n.return||n.return()}finally{if(d)throw i}}return a}}(n,a)||function(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}(n,a)||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.")}()),f=l[0],h=l[1];return h.length>0&&d.push(function(e,t){var n=[],a=!1,d=b(e,t),c=(0,i.HA)(e,(function(e){return e.params.unit}));return d.aus=(0,i.HA)(e,(function(e){return(0,i.sF)(e.mediaTypes.banner.sizes).join(",")})).join("|"),d.divids=(0,i.HA)(e,(function(e){return encodeURIComponent(e.adUnitCode)})).join(","),d.aucs=(0,i.HA)(e,(function(e){var t=(0,r.Z)(e,"ortb2Imp.ext.data.pbadslot");return encodeURIComponent(t||"")})).join(","),c.some((function(e){return e}))&&(d.auid=c.join(",")),e.some((function(e){return e.params.doNotTrack}))&&(d.ns=1),(!0===o.vc.getConfig("coppa")||e.some((function(e){return e.params.coppa})))&&(d.tfcd=1),e.forEach((function(e){if(e.params.customParams){var t=(0,i.HA)(Object.keys(e.params.customParams),(function(t){return function(e,t){var n=t[e];return(0,i.kJ)(n)&&(n=n.join(",")),(e.toLowerCase()+"="+n.toLowerCase()).replace("+",".").replace("/","_")}(t,e.params.customParams)})),r=window.btoa(t.join("&"));a=!0,n.push(r)}else n.push("")})),a&&(d.tps=n.join(",")),y(d,s.Mk,e),{method:"GET",url:d.ph?"https://u.openx.net/w/1.0/arj":"https://".concat(e[0].params.delDomain,"/w/1.0/arj"),data:d,payload:{bids:e,startTime:new Date}}}(h,t)),f.length>0&&f.forEach((function(e){d.push(function(e,t){var n=function(e,t){var n,a,o=(0,r.Z)(e,"mediaTypes.video"),d=b([e],t),u=(0,r.Z)(e,"params.video")||{},p=(0,r.Z)(e,"mediaTypes.video.context"),l=(0,r.Z)(e,"mediaTypes.video.playerSize");(0,i.kJ)(e.sizes)&&2===e.sizes.length&&!(0,i.kJ)(e.sizes[0])?(n=parseInt(e.sizes[0],10),a=parseInt(e.sizes[1],10)):(0,i.kJ)(e.sizes)&&(0,i.kJ)(e.sizes[0])&&2===e.sizes[0].length?(n=parseInt(e.sizes[0][0],10),a=parseInt(e.sizes[0][1],10)):(0,i.kJ)(l)&&2===l.length&&(n=parseInt(l[0],10),a=parseInt(l[1],10));var f={w:n,h:a},h=e.params.video||e.params.openrtb||{};h.openrtb&&(h=h.openrtb),(0,i.kJ)(h.imp)&&(h=h.imp[0].video),Object.keys(h).filter((function(e){return(0,c.q9)(m,e)})).forEach((function(e){return f[e]=h[e]})),Object.keys(o).filter((function(e){return(0,c.q9)(m,e)})).forEach((function(e){return f[e]=o[e]}));var v={imp:[{video:f}]};d.openrtb=JSON.stringify(v),d.auid=e.params.unit,d.vwd=n||u.vwd,d.vht=a||u.vht,"outstream"===p&&(d.vos="101"),u.mimes&&(d.vmimes=u.mimes),e.params.test&&(d.vtest=1);var g=(0,r.Z)(e,"ortb2Imp.ext.data.pbadslot");return g&&(d.aucs=encodeURIComponent(g)),y(d,s.pX,[e]),d}(e,t);return{method:"GET",url:n.ph?"https://u.openx.net/v/1.0/avjp":"https://".concat(e.params.delDomain,"/v/1.0/avjp"),data:n,payload:{bid:e,startTime:new Date}}}(e,t))})),d},interpretResponse:function(e,t){var n=e.body,r=function(e){return/avjp$/.test(e.url)?s.pX:s.Mk}(t);return r===s.pX?function(e,t){var n=t.bid,r=(t.startTime,[]);if(void 0!==e&&""!==e.vastUrl&&e.pub_rev>0){var a=(0,i.en)(e.vastUrl).search||{},o={};o.requestId=n.bidId,e.deal_id&&(o.dealId=e.deal_id),o.ttl=300,o.netRevenue=!0,o.currency=e.currency,o.cpm=parseInt(e.pub_rev,10)/1e3,o.width=parseInt(e.width,10),o.height=parseInt(e.height,10),o.creativeId=e.adid,o.vastUrl=e.vastUrl,o.mediaType=s.pX,e.ph=a.ph,e.colo=a.colo,e.ts=a.ts,r.push(o)}return r}(n,t.payload):function(e,t){for(var n=t.bids,r=(t.startTime,e.ads.ad),i=[],a=0;a<r.length;a++){var o=r[a],d=parseInt(o.idx,10),s={};if(s.requestId=n[d].bidId,o.pub_rev){s.cpm=Number(o.pub_rev)/1e3;var c=o.creative[0];c&&(s.width=c.width,s.height=c.height),s.creativeId=c.id,s.ad=o.html,o.deal_id&&(s.dealId=o.deal_id),s.ttl=300,s.netRevenue=!0,s.currency=o.currency,o.tbd&&(s.tbd=o.tbd),s.ts=o.ts,s.meta={},o.brand_id&&(s.meta.brandId=o.brand_id),o.adomain&&length(o.adomain)>0?s.meta.advertiserDomains=o.adomain:s.meta.advertiserDomains=[],o.adv_id&&(s.meta.dspid=o.adv_id),i.push(s)}}return i}(n,t.payload)},getUserSyncs:function(e,t,n,i){if(e.iframeEnabled||e.pixelEnabled){var a=e.iframeEnabled?"iframe":"image",o=(0,r.Z)(t,"0.body.ads.pixels")||(0,r.Z)(t,"0.body.pixels")||function(e,t){var n=[];return e&&(n.push("gdpr="+(e.gdprApplies?1:0)),n.push("gdpr_consent="+encodeURIComponent(e.consentString||""))),t&&n.push("us_privacy="+encodeURIComponent(t)),"".concat("https://u.openx.net/w/1.0/pd").concat(n.length>0?"?"+n.join("&"):"")}(n,i);return[{type:a,url:o}]}},transformBidParams:function(e,t){return(0,i.uh)({unit:"string",customFloor:"number"},e)}};function v(e){var t,n,r,i=window,a=document,o=a.documentElement;if(e){try{i=window.top,a=window.top.document}catch(e){return}o=a.documentElement,r=a.body,t=i.innerWidth||o.clientWidth||r.clientWidth,n=i.innerHeight||o.clientHeight||r.clientHeight}else o=a.documentElement,t=i.innerWidth||o.clientWidth,n=i.innerHeight||o.clientHeight;return"".concat(t,"x").concat(n)}function b(e,t){var n,d=(0,i.yL)();n={ju:o.vc.getConfig("pageUrl")||t.refererInfo.referer,ch:document.charSet||document.characterSet,res:"".concat(screen.width,"x").concat(screen.height,"x").concat(screen.colorDepth),ifr:d,tz:(new Date).getTimezoneOffset(),tws:v(d),be:1,bc:e[0].params.bc||"".concat("hb_pb","_").concat("3.0.3"),dddid:(0,i.HA)(e,(function(e){return e.transactionId})).join(","),nocache:(new Date).getTime()};var s=g("ortb2.user.data");s.length>0&&(n.sm=s);var c,u,p,l,m,h=g("ortb2.site.content.data");if(h.length>0&&(n.scsm=h),e[0].params.platform&&(n.ph=e[0].params.platform),t.gdprConsent){var b=t.gdprConsent;void 0!==b.consentString&&(n.gdpr_consent=b.consentString),void 0!==b.gdprApplies&&(n.gdpr=b.gdprApplies?1:0),"iab"===o.vc.getConfig("consentManagement.cmpApi")&&(n.x_gdpr_f=1)}return t&&t.uspConsent&&(n.us_privacy=t.uspConsent),(0,r.Z)(e[0],"crumbs.pubcid")&&(0,a.Z)(e[0],"userId.pubcid",(0,r.Z)(e[0],"crumbs.pubcid")),c=n,u=e[0].userId,(0,i.yi)(u,(function(e,t){var n=f[t];if(f.hasOwnProperty(t))switch(t){case"merkleId":case"flocId":case"uid2":c[n]=e.id;break;case"lipb":if(c[n]=e.lipbid,Array.isArray(e.segments)&&e.segments.length>0){var r="liveintent:"+e.segments.join("|");c.sm="".concat(c.sm?c.sm+",":"").concat(r)}break;case"parrableId":c[n]=e.eid;break;case"id5id":c[n]=e.uid;break;case"novatiq":c[n]=e.snowflake;break;default:c[n]=e}})),n=c,e[0].schain&&(n.schain=(p=e[0].schain,"".concat(p.ver,",").concat(p.complete,"!").concat((l=p.nodes,m=["asi","sid","hp","rid","name","domain"],l.map((function(e){return m.map((function(t){return e[t]||""})).join(",")})).join("!"))))),n}function g(e){var t=o.vc.getConfig(e);if(!Array.isArray(t)||!t.length)return"";var n=t.filter((function(e){return Array.isArray(e.segment)&&e.segment.length>0&&void 0!==e.name&&e.name.length>0})).reduce((function(e,t){var n="object"===u(t.ext)&&t.ext.segtax?"".concat(t.name,"/").concat(t.ext.segtax):t.name;return e[n]=(e[n]||[]).concat(t.segment.map((function(e){return e.id}))),e}),{});return Object.keys(n).map((function(e,t){return e+":"+n[e].join("|")})).join(",")}function y(e,t,n){var r=[],i=!1;n.forEach((function(e){var n=function(e,t){var n={},r=o.vc.getConfig("currency.adServerCurrency")||"USD";"function"==typeof e.getFloor&&(n=e.getFloor({currency:r,mediaType:t,size:"*"}));var i=n.floor||e.params.customFloor||0;return Math.round(1e3*i)}(e,t);n?(r.push(n),i=!0):r.push(0)})),i&&(e.aumfs=r.join(","))}(0,d.dX)(h),window.pbjs.installedModules.push("openxBidAdapter")},4806:function(e,t,n){function r(e,t,n){t.split&&(t=t.split("."));for(var r,i=0,a=t.length,o=e;i<a;++i)r=o[t[i]],o=o[t[i]]=i===a-1?n:null!=r?r:!~t[i+1].indexOf(".")&&+t[i+1]>-1?[]:{}}n.d(t,{Z:function(){return r}})}},function(e){e(e.s=498)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[60],{9295:function(e,t,n){var r=n(9853),o=n(265),i=n(4806),a=n(2528),c=n(8962),u=n(5755),l=n(2319),s=n(5644),f=n(3494),d=n(1477),m=n(1879),p=n(2661),h=n(9624),y=n(4766),v=["modelGroups"];function g(e){return g="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},g(e)}function b(){return b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}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 j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var C,S="Price Floors",F=(0,u.O)(1e4),R=["gptSlot","adUnitCode","size","domain","mediaType"],T=!1,w=!1,P={},x=[],D={};function I(e,t){return Math.ceil((parseFloat(e)*Math.pow(10,t)).toFixed(1))/Math.pow(10,t)}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.index,o=void 0===r?y.K.index:r;return(null==e?void 0:e.adUnitCode)||o.getAdUnit(t).code}var Z={size:function(e,t){return(0,r.s)(t.size)||"*"},mediaType:function(e,t){return t.mediaType||"banner"},gptSlot:function(e,t){return function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,n=(void 0===t?y.K.index:t).getAdUnit({transactionId:e});return"gam"===(0,o.Z)(n,"ortb2Imp.ext.data.adserver.name")&&n.ortb2Imp.ext.data.adserver.adslot}((e||t).transactionId)||(0,r.ky)(U(e,t)).gptSlot},domain:function(e,t){return C||(n=(0,p.n)().referer,C=(0,r.en)(n,{noDecodeWholeURL:!0}).hostname);var n},adUnitCode:function(e,t){return U(e,t)}};function M(e,t,n){return e.reduce((function(e,r){var o=Z[r](t,n)||"*";return e.push("*"===o?["*"]:[o.toLowerCase(),"*"]),e}),[])}function E(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=M((0,o.Z)(e,"schema.fields")||[],t,n);if(!r.length)return{matchingFloor:e.default};var a=r.map((function(e){return e[0]})).join("-"),c=(0,o.Z)(e,"matchingInputs.".concat(a));if(c)return j({},c);var u=A(r,(0,o.Z)(e,"schema.delimiter")||"|"),l=(0,m.sE)(u,(function(t){return e.values.hasOwnProperty(t)})),s={floorMin:e.floorMin||0,floorRuleValue:isNaN(e.values[l])?e.default:e.values[l],matchingData:u[0],matchingRule:l};return"number"==typeof(0,o.Z)(t,"ortb2Imp.ext.prebid.floorMin")&&(s.floorMin=t.ortb2Imp.ext.prebid.floorMin),s.matchingFloor=Math.max(s.floorMin,s.floorRuleValue),(0,i.Z)(e,"matchingInputs.".concat(a),j({},s)),s}function A(e,t){return e.reduce((function(e,n){var r=[];return e.map((function(e){n.map((function(n){r.push(e+t+n)}))})),r})).sort((function(e,t){return e.split("*").length-t.split("*").length}))}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=h.S.get(e,"bidCpmAdjustment");return r?parseFloat(r(t,j(j({},n),{},{cpm:t}))):parseFloat(t)}function N(e,t){var n=Math.pow(10,10);return e*n/(t*n)*(e*n)/n}var V={banner:function(e){return(0,o.Z)(e,"mediaTypes.banner.sizes")||[]},video:function(e){return(0,o.Z)(e,"mediaTypes.video.playerSize")||[]},native:function(e){return(0,o.Z)(e,"mediaTypes.native.image.sizes")?[(0,o.Z)(e,"mediaTypes.native.image.sizes")]:[]}};function z(e,t){var n=Object.keys(e.mediaTypes||{});return"*"===t.mediaType&&1===n.length&&(t.mediaType=n[0]),"*"===t.size&&-1!==n.indexOf(t.mediaType)&&V[t.mediaType]&&1===V[t.mediaType](e).length&&(t.size=V[t.mediaType](e)[0]),t}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{currency:"USD",mediaType:"*",size:"*"},t=this,n=D[t.auctionId];if(!n||n.skipped)return{};e=z(t,e);var o=E(n.data,j({},t),{mediaType:e.mediaType,size:e.size}),i=e.currency||n.data.currency;if(o.matchingFloor&&i!==n.data.currency)try{o.matchingFloor=(0,a.R)().convertCurrency(o.matchingFloor,n.data.currency,i)}catch(e){(0,r.yN)("".concat(S,": Unable to get currency conversion for getFloor for bidder ").concat(t.bidder,". You must have currency module enabled with defaultRates in your currency config")),i=n.data.currency}if(n.enforcement.bidAdjustment&&o.matchingFloor){var c=B(t.bidder,o.matchingFloor);o.matchingFloor=c?N(o.matchingFloor,c):o.matchingFloor}return o.matchingFloor?{floor:I(o.matchingFloor,4),currency:i}:{}}function G(e,t){var n=(0,r.I8)(e);return n.schema.delimiter=e.schema.delimiter||"|",n.values=function(e,t){var n=e.schema.fields,r=e.schema.delimiter,o=t&&-1===n.indexOf("adUnitCode")&&n.unshift("adUnitCode");return Object.keys(e.values).reduce((function(n,i){return n[(o?"".concat(t).concat(r).concat(i):i).toLowerCase()]=e.values[i],n}),{})}(n,t),n.currency=n.currency||"USD",n}function H(e,t){var n=(0,r.I8)(P);if(2===(0,o.Z)(n,"data.floorsSchemaVersion")){var i=n.data,a=i.modelGroups,c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(i,v);n.data=b(c,function(e,t){for(var n=Math.floor(Math.random()*t+1),r=0;r<e.length;r++)if((n-=e[r].modelWeight)<=0)return e[r]}(a,c.modelWeightSum))}var u=0===Object.keys((0,o.Z)(n,"data.values")||{}).length;if(n.data=u?function(e){return e.reduce((function(e,t){if(L(t.floors))if(e.values){var n=G(t.floors,t.code).values;b(e.values,n)}else(e=G(t.floors,t.code)).location="adUnit";return e}),{})}(e):G(n.data),0===Object.keys((0,o.Z)(n,"data.values")||{}).length)n.skipped=!0;else{var l=(0,r.rD)("pbjs_skipRate")||n.skipRate,s=100*Math.random()<parseFloat(l);n.skipped=s}return n.hasOwnProperty("floorMin")&&(n.data.floorMin=n.floorMin),function(e,t,n){e.forEach((function(e){e.bids.forEach((function(e){t.skipped?delete e.getFloor:e.getFloor=q,e.auctionId=n,e.floorData={skipped:t.skipped,skipRate:t.skipRate,floorMin:t.floorMin,modelVersion:(0,o.Z)(t,"data.modelVersion"),modelWeight:(0,o.Z)(t,"data.modelWeight"),modelTimestamp:(0,o.Z)(t,"data.modelTimestamp"),location:(0,o.Z)(t,"data.location","noData"),floorProvider:t.floorProvider,fetchStatus:P.fetchStatus}}))}))}(e,n,t),n}function W(e){e.hasExited||(x=x.filter((function(t){return t.timer!==e.timer})),e.reqBidsConfigObj.auctionId=e.reqBidsConfigObj.auctionId||(0,r.DO)(),D[e.reqBidsConfigObj.auctionId]=H(e.reqBidsConfigObj.adUnits||(0,a.R)().adUnits,e.reqBidsConfigObj.auctionId),e.nextFn.apply(e.context,[e.reqBidsConfigObj]),e.hasExited=!0)}function J(e){return t=(0,o.Z)(e,"schema.fields"),!!(Array.isArray(t)&&t.length>0&&t.every((function(e){return-1!==R.indexOf(e)}))||((0,r.H)("".concat(S,": Fields recieved do not match allowed fields")),0))&&(n=e,i=e.schema.fields.length,a=e.schema.delimiter||"|","object"===g(n.values)&&(n.values=Object.keys(n.values).reduce((function(e,t){return function(e,t,n,r){return"string"==typeof e&&e.split(r).length===n&&"number"==typeof t}(t,n.values[t],i,a)&&(e[t]=n.values[t]),e}),{}),Object.keys(n.values).length>0));var t,n,i,a}var K={1:function(e){return J(e)},2:function(e){return!(!Array.isArray(e.modelGroups)||0===e.modelGroups.length)&&(e.modelWeightSum=0,e.modelGroups.every((function(t){return!("number"!=typeof t.modelWeight||!J(t)||(e.modelWeightSum+=t.modelWeight,0))})))}};function L(e){return"object"===g(e)&&(e.floorsSchemaVersion=e.floorsSchemaVersion||1,"function"!=typeof K[e.floorsSchemaVersion]?((0,r.H)("".concat(S,": Unknown floorsSchemaVersion: "),e.floorsSchemaVersion),!1):K[e.floorsSchemaVersion](e))}function _(e,t){if(e&&"object"===g(e)&&L(e))return(0,r.PN)("".concat(S,": A ").concat(t," set the auction floor data set to "),e),j(j({},e),{},{location:t});(0,r.H)("".concat(S,": The floors data did not contain correct values"),e)}function Q(e,t){var n={reqBidsConfigObj:t,context:this,nextFn:e,haveExited:!1,timer:null};P.auctionDelay>0&&T?(n.timer=setTimeout((function(){(0,r.yN)("".concat(S,": Fetch attempt did not return in time for auction")),P.fetchStatus="timeout",W(n)}),P.auctionDelay),x.push(n)):W(n)}function Y(){x.forEach((function(e){clearTimeout(e.timer),W(e)})),x=[]}function X(e){var t;T=!1,P.fetchStatus="success";try{t=JSON.parse(e)}catch(n){t=e}var n=_(t,"fetch");n&&(P.data=n,P.skipRate=(0,r.hj)(n.skipRate)?n.skipRate:P.skipRate,P.floorProvider=n.floorProvider||P.floorProvider),Y()}function $(e){T=!1,P.fetchStatus="error",(0,r.H)("".concat(S,": Fetch errored with: "),e),Y()}function ee(e,t,n){var i=D[n.auctionId];if(!i||!n||i.skipped)return e.call(this,t,n);var c,u=y.K.index.getBidRequest(n),l=E(i.data,u,j(j({},n),{},{size:[n.width,n.height]}));if(!l.matchingFloor)return(0,r.yN)("".concat(S,": unable to determine a matching price floor for bidResponse"),n),e.call(this,t,n);var f=i.data.currency.toUpperCase(),m=n.currency||"USD";if(f===m.toUpperCase())c=n.cpm;else if(n.originalCurrency&&f===n.originalCurrency.toUpperCase())c=n.originalCpm;else try{c=(0,a.R)().convertCurrency(n.cpm,m.toUpperCase(),f)}catch(o){return(0,r.H)("".concat(S,": Unable do get currency conversion for bidResponse to Floor Currency. Do you have Currency module enabled? ").concat(n)),e.call(this,t,n)}if(function(e,t,n,r){n.floorData={floorValue:t.matchingFloor,floorRule:t.matchingRule,floorRuleValue:t.floorRuleValue,floorCurrency:e.data.currency,cpmAfterAdjustments:r,enforcements:j({},e.enforcement),matchedFields:{}},e.data.schema.fields.forEach((function(r,o){var i=t.matchingData.split(e.data.schema.delimiter)[o];n.floorData.matchedFields[r]=i}))}(i,l,n,c=B(n.bidderCode,c,n)),function(e,t,n){var r=!1!==(0,o.Z)(e,"enforcement.enforceJS"),i=!0===(0,o.Z)(e,"enforcement.floorDeals")||!n.dealId,a=n.floorData.cpmAfterAdjustments<t.matchingFloor;return r&&a&&i}(i,l,n)){var p=(0,d.m)(s.Q_.H,n.getIdentifiers());return b(p,(0,r.ei)(n,["floorData","width","height","mediaType","currency","originalCpm","originalCurrency","getCpmInNewCurrency"])),p.status=s.UE.G9,p.cpm=0,(0,r.yN)("".concat(S,": ").concat(p.bidderCode,"'s Bid Response for ").concat(t," was rejected due to floor not met"),n),e.call(this,t,p)}return e.call(this,t,n)}c.vc.getConfig("floors",(function(e){return function(e){var t;(P=(0,r.ei)(e,["floorMin","enabled",function(e){return!1!==e},"auctionDelay",function(e){return e||0},"floorProvider",function(t){return(0,o.Z)(e,"data.floorProvider",t)},"endpoint",function(e){return e||{}},"skipRate",function(){return isNaN((0,o.Z)(e,"data.skipRate"))?e.skipRate||0:e.data.skipRate},"enforcement",function(e){return(0,r.ei)(e||{},["enforceJS",function(e){return!1!==e},"enforcePBS",function(e){return!0===e},"floorDeals",function(e){return!0===e},"bidAdjustment",function(e){return!1!==e}])},"additionalSchemaFields",function(e){return"object"===g(e)&&Object.keys(e).length>0?(t=e,void Object.keys(t).forEach((function(e){-1===R.indexOf(e)&&"function"==typeof t[e]&&(R.push(e),Z[e]=t[e])}))):void 0;var t},"data",function(e){return e&&_(e,"setConfig")||P.data}])).enabled?((t=P.endpoint).url&&!T?"GET"!==(t.method||"GET")?(0,r.H)("".concat(S,": 'GET' is the only request method supported at this time!")):(F(t.url,{success:X,error:$},null,{method:"GET"}),T=!0):T&&(0,r.yN)("".concat(S,": A fetch is already occuring. Skipping.")),w||(l.on(s.FP.AUCTION_END,(function(e){setTimeout((function(){return delete D[e.auctionId]}),3e3)})),(0,a.R)().requestBids.before(Q,50),(0,f.v5)("addBidResponse").before(ee,(0,r.eB)()?4:50),w=!0)):((0,r.PN)("".concat(S,": Turning off module")),P={},D={},(0,f.v5)("addBidResponse").getHooks({hook:ee}).remove(),(0,a.R)().requestBids.getHooks({hook:Q}).remove(),w=!1)}(e.floors)})),window.pbjs.installedModules.push("priceFloors")},4806:function(e,t,n){function r(e,t,n){t.split&&(t=t.split("."));for(var r,o=0,i=t.length,a=e;o<i;++o)r=a[t[o]],a=a[t[o]]=o===i-1?n:null!=r?r:!~t[o+1].indexOf(".")&&+t[o+1]>-1?[]:{}}n.d(t,{Z:function(){return r}})}},function(e){e(e.s=9295)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[126],{8139:function(e,r,t){var a=t(9853),i=t(265),n=t(4806),s=t(1125),o=t(8265),d=t(8962),p=t(4877),c=t(9624);function u(){return u=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},u.apply(this,arguments)}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,a)}return t}function m(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function f(e){return f="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},f(e)}var h="PubMatic: ",g="USD",b=void 0,y="https://pubmatic.bbvms.com/r/".concat("$RENDERER",".js"),v={kadpageurl:"",gender:"",yob:"",lat:"",lon:"",wiid:"",profId:"",verId:""},E="number",I="array",w={mimes:I,minduration:E,maxduration:E,startdelay:E,playbackmethod:I,api:I,protocols:I,w:E,h:E,battr:I,linearity:E,placement:E,minbitrate:E,maxbitrate:E,skip:E},P={TITLE:{ID:1,KEY:"title",TYPE:0},IMAGE:{ID:2,KEY:"image",TYPE:0},ICON:{ID:3,KEY:"icon",TYPE:0},SPONSOREDBY:{ID:4,KEY:"sponsoredBy",TYPE:1},BODY:{ID:5,KEY:"body",TYPE:2},CLICKURL:{ID:6,KEY:"clickUrl",TYPE:0},VIDEO:{ID:7,KEY:"video",TYPE:0},EXT:{ID:8,KEY:"ext",TYPE:0},DATA:{ID:9,KEY:"data",TYPE:0},LOGO:{ID:10,KEY:"logo",TYPE:0},SPONSORED:{ID:11,KEY:"sponsored",TYPE:1},DESC:{ID:12,KEY:"data",TYPE:2},RATING:{ID:13,KEY:"rating",TYPE:3},LIKES:{ID:14,KEY:"likes",TYPE:4},DOWNLOADS:{ID:15,KEY:"downloads",TYPE:5},PRICE:{ID:16,KEY:"price",TYPE:6},SALEPRICE:{ID:17,KEY:"saleprice",TYPE:7},PHONE:{ID:18,KEY:"phone",TYPE:8},ADDRESS:{ID:19,KEY:"address",TYPE:9},DESC2:{ID:20,KEY:"desc2",TYPE:10},DISPLAYURL:{ID:21,KEY:"displayurl",TYPE:11},CTA:{ID:22,KEY:"cta",TYPE:12}},O=[{id:P.SPONSOREDBY.ID,required:!0,data:{type:1}},{id:P.TITLE.ID,required:!0},{id:P.IMAGE.ID,required:!0}],T={1:"PMP",5:"PREF",6:"PMPG"},D={bootstrapPlayer:function(e){var r={code:e.adUnitCode};if(e.vastXml?r.vastXml=e.vastXml:e.vastUrl&&(r.vastUrl=e.vastUrl),e.vastXml||e.vastUrl){for(var t,i=D.getRendererId("pubmatic",e.rendererCode),n=document.getElementById(e.adUnitCode),s=0;s<window.bluebillywig.renderers.length;s++)if(window.bluebillywig.renderers[s]._id===i){t=window.bluebillywig.renderers[s];break}t?t.bootstrap(r,n):(0,a.yN)("".concat(h,": Couldn't find a renderer with ").concat(i))}else(0,a.yN)("".concat(h,": No vastXml or vastUrl on bid, bailing..."))},newRenderer:function(e,r){var t=y.replace("$RENDERER",e),i=p.Th.install({url:t,loaded:!1,adUnitCode:r});try{i.setRender(D.outstreamRender)}catch(e){(0,a.yN)("".concat(h,": Error tying to setRender on renderer"),e)}return i},outstreamRender:function(e){e.renderer.push((function(){D.bootstrapPlayer(e)}))},getRendererId:function(e,r){return"".concat(e,"-").concat(r)}},x=[o.Mk,o.pX,o.B5],k=0,S=!1,N={},Y={};function C(e,r){if(!(0,a.d8)(r))return r&&(0,a.yN)("PubMatic: Ignoring param key: "+e+", expects string-value, found "+f(r)),b;switch(e){case"pmzoneid":return r.split(",").slice(0,50).map((function(e){return e.trim()})).join();case"kadfloor":case"lat":case"lon":return parseFloat(r)||b;case"yob":return parseInt(r)||b;default:return r}}function R(e,r,t){var i,n="Ignoring param key: "+e+", expects "+t+", found "+f(r);switch(t){case"boolean":i=a.jn;break;case E:i=a.hj;break;case"string":i=a.d8;break;case I:i=a.kJ}return i(r)?r:((0,a.yN)(h+n),b)}function M(e,r){var t=e.KEY;return{id:e.ID,required:r[t].required?1:0,data:{type:e.TYPE,len:r[t].len,ext:r[t].ext}}}function z(e){var r={assets:[]};for(var t in e){if(e.hasOwnProperty(t)){var i={};if(!(r.assets&&r.assets.length>0&&r.assets.hasOwnProperty(t)))switch(t){case P.TITLE.KEY:e[t].len||e[t].length?i={id:P.TITLE.ID,required:e[t].required?1:0,title:{len:e[t].len||e[t].length,ext:e[t].ext}}:(0,a.yN)("PubMatic: Error: Title Length is required for native ad: "+JSON.stringify(e));break;case P.IMAGE.KEY:e[t].sizes&&e[t].sizes.length>0?i={id:P.IMAGE.ID,required:e[t].required?1:0,img:{type:3,w:e[t].w||e[t].width||(e[t].sizes?e[t].sizes[0]:b),h:e[t].h||e[t].height||(e[t].sizes?e[t].sizes[1]:b),wmin:e[t].wmin||e[t].minimumWidth||(e[t].minsizes?e[t].minsizes[0]:b),hmin:e[t].hmin||e[t].minimumHeight||(e[t].minsizes?e[t].minsizes[1]:b),mimes:e[t].mimes,ext:e[t].ext}}:(0,a.yN)("PubMatic: Error: Image sizes is required for native ad: "+JSON.stringify(e));break;case P.ICON.KEY:e[t].sizes&&e[t].sizes.length>0?i={id:P.ICON.ID,required:e[t].required?1:0,img:{type:1,w:e[t].w||e[t].width||(e[t].sizes?e[t].sizes[0]:b),h:e[t].h||e[t].height||(e[t].sizes?e[t].sizes[1]:b)}}:(0,a.yN)("PubMatic: Error: Icon sizes is required for native ad: "+JSON.stringify(e));break;case P.VIDEO.KEY:i={id:P.VIDEO.ID,required:e[t].required?1:0,video:{minduration:e[t].minduration,maxduration:e[t].maxduration,protocols:e[t].protocols,mimes:e[t].mimes,ext:e[t].ext}};break;case P.EXT.KEY:i={id:P.EXT.ID,required:e[t].required?1:0};break;case P.LOGO.KEY:i={id:P.LOGO.ID,required:e[t].required?1:0,img:{type:2,w:e[t].w||e[t].width||(e[t].sizes?e[t].sizes[0]:b),h:e[t].h||e[t].height||(e[t].sizes?e[t].sizes[1]:b)}};break;case P.SPONSOREDBY.KEY:case P.BODY.KEY:case P.RATING.KEY:case P.LIKES.KEY:case P.DOWNLOADS.KEY:case P.PRICE.KEY:case P.SALEPRICE.KEY:case P.PHONE.KEY:case P.ADDRESS.KEY:case P.DESC2.KEY:case P.DISPLAYURL.KEY:case P.CTA.KEY:i=M(Y[t],e)}}i&&i.id&&(r.assets[r.assets.length]=i)}var n=O.length,s=0;return O.forEach((function(e){for(var t=r.assets.length,a=0;a<t;a++)if(e.id==r.assets[a].id){s++;break}})),S=n!=s,r}function K(e){var r,t=e.mediaTypes.banner.sizes,i=[];if(t!==b&&(0,a.kJ)(t)){if(r={},e.params.width||e.params.height)r.w=e.params.width,r.h=e.params.height;else{if(0===t.length)return r=b,(0,a.yN)("PubMatic: Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),r;r.w=parseInt(t[0][0],10),r.h=parseInt(t[0][1],10),t=t.splice(1,t.length-1)}t.length>0&&(i=[],t.forEach((function(e){e.length>1&&i.push({w:e[0],h:e[1]})})),i.length>0&&(r.format=i)),r.pos=0,r.topframe=(0,a.yL)()?0:1}else(0,a.yN)("PubMatic: Error: mediaTypes.banner.size missing for adunit: "+e.params.adUnit+". Ignoring the banner impression in the adunit."),r=b;return r}function A(e){var r,t=(0,a.Ee)((0,i.Z)(e.mediaTypes,"video"),e.params.video);if(t!==b){for(var n in r={},function(e,r){(0,i.Z)(e,"placement")||(0,a.yN)("Video.Placement param missing for "+r)}(t,e.adUnitCode),w)t.hasOwnProperty(n)&&(r[n]=R(n,t[n],w[n]));(0,a.kJ)(e.mediaTypes.video.playerSize[0])?(r.w=parseInt(e.mediaTypes.video.playerSize[0][0],10),r.h=parseInt(e.mediaTypes.video.playerSize[0][1],10)):(0,a.hj)(e.mediaTypes.video.playerSize[0])&&(r.w=parseInt(e.mediaTypes.video.playerSize[0],10),r.h=parseInt(e.mediaTypes.video.playerSize[1],10))}else r=b,(0,a.yN)("PubMatic: Error: Video config params missing for adunit: "+e.params.adUnit+" with mediaType set as video. Ignoring video impression in the adunit.");return r}function j(e,r,t){var a=r.rtd&&r.rtd.jwplayer&&r.rtd.jwplayer.targeting||void 0,i="";if(void 0!==a&&""!==a&&a.hasOwnProperty("segments")){var n,s=a.segments.length;i+="jw-id="+a.content.id;for(var o=0;o<s;o++)i+="|jw-"+a.segments[o]+"=1";t?void 0===e.dctr||0==e.dctr.length?e.dctr=i:e.dctr+="|"+i:(n=e.ext)&&void 0===n.key_val?n.key_val=i:n.key_val+="|"+i}}function U(e,r){var t=null,a=(0,i.Z)(e,"0.userId.flocId");return a&&a.id&&(t=2===r?{id:"FLOC",name:"FLOC",ext:{ver:a.version},segment:[{id:a.id,name:"chrome.com",value:a.id.toString()}]}:{source:"chrome.com",uids:[{atype:1,id:a.id,ext:{ver:a.version}}]}),t}function q(e,r){(r=r.filter((function(e){return"string"==typeof e||((0,a.yN)("PubMatic: acat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,r,t){return t.indexOf(e)===r}))).length>0&&((0,a.yN)("PubMatic: acat: Selected: ",r),e.ext.acat=r)}function L(e){return!0===(0,a.kJ)(e)&&e.length>0}(0,a.yi)(P,(function(e){N[e.ID]=e.KEY})),(0,a.yi)(P,(function(e){Y[e.KEY]=e}));var B={code:"pubmatic",gvlid:76,supportedMediaTypes:[o.Mk,o.pX,o.B5],isBidRequestValid:function(e){if(e&&e.params){if(!(0,a.d8)(e.params.publisherId))return(0,a.yN)("PubMatic: 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(o.pX)){var r=(0,i.Z)(e.mediaTypes,"video.mimes"),t=(0,i.Z)(e,"params.video.mimes");if(!1===L(r)&&!1===L(t))return(0,a.yN)("PubMatic: 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[o.pX].hasOwnProperty("context"))return(0,a.H)("".concat(h,": no context specified in bid. Rejecting bid: "),e),!1;if("outstream"===e.mediaTypes[o.pX].context&&!(0,a.d8)(e.params.outstreamAU)&&!e.hasOwnProperty("renderer")&&!e.mediaTypes[o.pX].hasOwnProperty("renderer"))return e.mediaTypes.hasOwnProperty(o.Mk)||e.mediaTypes.hasOwnProperty(o.B5)?(delete e.mediaTypes[o.pX],(0,a.yN)("".concat(h,': for "outstream" bids either outstreamAU parameter must be provided or ad unit supplied renderer is required. Rejecting mediatype Video of bid: '),e),!0):((0,a.H)("".concat(h,': 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,r){var t,s,p,y,E;r&&r.refererInfo&&(E=r.refererInfo);var I,w=function(e){return{pageURL:e&&e.referer?e.referer:window.location.href,refURL:window.document.referrer}}(E),P=function(e){return{id:""+(new Date).getTime(),at:1,cur:[g],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:{}}}(w),O="",T=[],D=[],x=[];if(e.forEach((function(e){if((I=(0,a.I8)(e)).params.adSlot=I.params.adSlot||"",function(e){var r;e.params.adUnit="",e.params.adUnitIndex="0",e.params.width=0,e.params.height=0,e.params.adSlot=(r=e.params.adSlot,(0,a.d8)(r)?r.replace(/^\s+/g,"").replace(/\s+$/g,""):(r&&(0,a.yN)("pubmatic: adSlot must be a string. Ignoring adSlot"),""));var t=e.params.adSlot,i=t.split(":");if(t=i[0],2==i.length&&(e.params.adUnitIndex=i[1]),i=t.split("@"),e.params.adUnit=i[0],i.length>1){if(2!=(i=i[1].split("x")).length)return void(0,a.yN)("PubMatic: 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(o.Mk)&&e.mediaTypes.banner.hasOwnProperty("sizes")){for(var n=0,s=[];n<e.mediaTypes.banner.sizes.length;n++)2===e.mediaTypes.banner.sizes[n].length&&s.push(e.mediaTypes.banner.sizes[n]);e.mediaTypes.banner.sizes=s,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))}}(I),I.mediaTypes&&I.mediaTypes.hasOwnProperty("video")||I.params.hasOwnProperty("video"));else if(!(I.hasOwnProperty("mediaTypes")&&I.mediaTypes.hasOwnProperty(o.B5)||0!==I.params.width||0!==I.params.height))return void(0,a.yN)("PubMatic: Skipping the non-standard adslot: ",I.params.adSlot,JSON.stringify(I));w.pubId=w.pubId||I.params.publisherId,(w=function(e,r){var t,i,n;for(t in r.kadpageurl||(r.kadpageurl=r.pageURL),v)v.hasOwnProperty(t)&&(i=e[t])&&("object"===f(n=v[t])&&(i=n.f(i,r)),(0,a.d8)(i)?r[t]=i:(0,a.yN)("PubMatic: Ignoring param : "+t+" with value : "+v[t]+", expects string-value, found "+f(i)));return r}(I.params,w)).transactionId=I.transactionId,""===O?O=I.params.currency||b:I.params.hasOwnProperty("currency")&&O!==I.params.currency&&(0,a.yN)("PubMatic: Currency specifier ignored. Only one currency permitted."),I.params.currency=O,I.params.hasOwnProperty("dctr")&&(0,a.d8)(I.params.dctr)&&T.push(I.params.dctr),I.params.hasOwnProperty("bcat")&&(0,a.kJ)(I.params.bcat)&&(D=D.concat(I.params.bcat)),I.params.hasOwnProperty("acat")&&(0,a.kJ)(I.params.acat)&&(x=x.concat(I.params.acat));var r=function(e,r){var t,s,p={},c={},u=e.hasOwnProperty("sizes")?e.sizes:[],y="",v=[];if(function(e,r){r.params.deals&&((0,a.kJ)(r.params.deals)?r.params.deals.forEach((function(r){(0,a.d8)(r)&&r.length>3?(e.pmp||(e.pmp={private_auction:0,deals:[]}),e.pmp.deals.push({id:r})):(0,a.yN)("PubMatic: Error: deal-id present in array bid.params.deals should be a strings with more than 3 charaters length, deal-id ignored: "+r)})):(0,a.yN)("PubMatic: Error: bid.params.deals should be an array of strings."))}(p={id:e.bidId,tagid:e.params.adUnit||void 0,bidfloor:C("kadfloor",e.params.kadfloor),secure:1,ext:{pmZoneId:C("pmzoneid",e.params.pmzoneid)},bidfloorcur:e.params.currency?C("currency",e.params.currency):g},e),function(e,r){var t,i="";if(r.params.dctr)if(i=r.params.dctr,(0,a.d8)(i)&&i.length>0){var n=i.split("|");i="",n.forEach((function(e){i+=e.length>0?e.trim()+"|":""})),t=i.length,"|"===i.substring(t,t-1)&&(i=i.substring(0,t-1)),e.ext.key_val=i.trim()}else(0,a.yN)("PubMatic: Ignoring param : dctr with value : "+i+", expects string-value, found empty or non-string value")}(p,e),j(p,e),e.hasOwnProperty("mediaTypes"))for(y in e.mediaTypes)switch(y){case o.Mk:(t=K(e))!==b&&(p.banner=t);break;case o.B5:c.request=JSON.stringify(z(e.nativeParams)),S?(0,a.yN)("PubMatic: 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."):p.native=c;break;case o.pX:(s=A(e))!==b&&(p.video=s)}else t={pos:0,w:e.params.width,h:e.params.height,topframe:(0,a.yL)()?0:1},(0,a.kJ)(u)&&u.length>1&&((u=u.splice(1,u.length-1)).forEach((function(e){v.push({w:e[0],h:e[1]})})),t.format=v),p.banner=t;return function(e,r){var t=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach((function(r){m(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}({},(0,i.Z)(r,"ortb2Imp.ext.data"));Object.keys(t).forEach((function(r){"pbadslot"===r?"string"==typeof t[r]&&t[r]&&(0,n.Z)(e,"ext.data.pbadslot",t[r]):"adserver"===r?["name","adslot"].forEach((function(r){var a=(0,i.Z)(t,"adserver.".concat(r));"string"==typeof a&&a&&((0,n.Z)(e,"ext.data.adserver.".concat(r.toLowerCase()),a),"adslot"===r&&(0,n.Z)(e,"ext.dfp_ad_unit_code",a))})):(0,n.Z)(e,"ext.data.".concat(r),t[r])}))}(p,e),function(e,r){var t=-1;"function"!=typeof r.getFloor||d.vc.getConfig("pubmatic.disableFloors")||[o.Mk,o.pX,o.B5].forEach((function(i){if(e.hasOwnProperty(i)){var n=[];"banner"===i&&(e[i].w&&e[i].h&&n.push([e[i].w,e[i].h]),(0,a.kJ)(e[i].format)&&e[i].format.forEach((function(e){return n.push([e.w,e.h])}))),0===n.length&&n.push("*"),n.forEach((function(n){var s=r.getFloor({currency:e.bidfloorcur,mediaType:i,size:n});if((0,a.PN)(h,"floor from floor module returned for mediatype:",i," and size:",n," is: currency",s.currency,"floor",s.floor),"object"===f(s)&&s.currency===e.bidfloorcur&&!isNaN(parseInt(s.floor))){var o=parseFloat(s.floor);(0,a.PN)(h,"floor from floor module:",o,"previous floor value",t,"Min:",Math.min(o,t)),t=-1===t?o:Math.min(o,t),(0,a.PN)(h,"new floor value:",t)}}))}})),e.bidfloor&&((0,a.PN)(h,"floor from floor module:",t,"impObj.bidfloor",e.bidfloor,"Max:",Math.max(t,e.bidfloor)),t=Math.max(t,e.bidfloor)),e.bidfloor=!isNaN(t)&&t>0?t:b,(0,a.PN)(h,"new impObj.bidfloor value:",e.bidfloor)}(p,e),p.hasOwnProperty(o.Mk)||p.hasOwnProperty(o.B5)||p.hasOwnProperty(o.pX)?p:b}(I);r&&P.imp.push(r)})),0!=P.imp.length){var N,Y;P.site.publisher.id=w.pubId.trim(),k=w.pubId.trim(),P.ext.wrapper={},P.ext.wrapper.profile=parseInt(w.profId)||b,P.ext.wrapper.version=parseInt(w.verId)||b,P.ext.wrapper.wiid=w.wiid||r.auctionId,P.ext.wrapper.wv="prebid_prebid_6.26.0",P.ext.wrapper.transactionId=w.transactionId,P.ext.wrapper.wp="pbjs",r&&r.bidderCode&&(P.ext.allowAlternateBidderCodes=c.S.get(r.bidderCode,"allowAlternateBidderCodes"),P.ext.allowedAlternateBidderCodes=c.S.get(r.bidderCode,"allowedAlternateBidderCodes")),P.user.gender=w.gender?w.gender.trim():b,P.user.geo={},P.user.geo.lat=C("lat",w.lat),P.user.geo.lon=C("lon",w.lon),P.user.yob=C("yob",w.yob),P.device.geo=P.user.geo,P.site.page=w.kadpageurl.trim()||P.site.page.trim(),P.site.domain=(N=P.site.page,(Y=document.createElement("a")).href=N,Y.hostname),"object"===f(d.vc.getConfig("content"))&&(P.site.content=d.vc.getConfig("content")),"object"===f(d.vc.getConfig("device"))&&(P.device=u(P.device,d.vc.getConfig("device"))),(0,n.Z)(P,"source.tid",w.transactionId),-1!==window.location.href.indexOf("pubmaticTest=true")&&(P.test=1),e[0].schain&&(0,n.Z)(P,"source.ext.schain",e[0].schain),r&&r.gdprConsent&&((0,n.Z)(P,"user.ext.consent",r.gdprConsent.consentString),(0,n.Z)(P,"regs.ext.gdpr",r.gdprConsent.gdprApplies?1:0)),r&&r.uspConsent&&(0,n.Z)(P,"regs.ext.us_privacy",r.uspConsent),!0===d.vc.getConfig("coppa")&&(0,n.Z)(P,"regs.coppa",1),function(e,r){var t=(0,i.Z)(r,"0.userIdAsEids"),s=U(r,1);s&&(t||(t=[]),t.push(s)),(0,a.kJ)(t)&&t.length>0&&(0,n.Z)(e,"user.eids",t)}(P,e),function(e,r){var t=U(r,2);t&&(e.user||(e.user={}),e.user.data||(e.user.data=[]),e.user.data.push(t))}(P,e);var R=d.vc.getConfig("ortb2")||{};if(R.site&&(0,a.Ee)(P,{site:R.site}),R.user&&(0,a.Ee)(P,{user:R.user}),R.bcat&&(D=D.concat(R.bcat)),null!==(t=R.ext)&&void 0!==t&&null!==(s=t.prebid)&&void 0!==s&&null!==(p=s.bidderparams)&&void 0!==p&&null!==(y=p[r.bidderCode])&&void 0!==y&&y.acat){var M=R.ext.prebid.bidderparams[r.bidderCode].acat;q(P,M)}else x.length&&q(P,x);return function(e,r){(r=r.filter((function(e){return"string"==typeof e||((0,a.yN)("PubMatic: bcat: Each category should be a string, ignoring category: "+e),!1)})).map((function(e){return e.trim()})).filter((function(e,r,t){if(e.length>3)return t.indexOf(e)===r;(0,a.yN)("PubMatic: bcat: Each category should have a value of a length of more than 3 characters, ignoring category: "+e)}))).length>0&&((0,a.yN)("PubMatic: bcat: Selected: ",r),e.bcat=r)}(P,D),"object"===f(d.vc.getConfig("app"))&&(P.app=d.vc.getConfig("app"),P.app.publisher=P.site.publisher,P.app.ext=P.site.ext||b,"object"!==f(P.app.content)&&(P.app.content=P.site.content||b),delete P.site),{method:"POST",url:"https://hbopenbid.pubmatic.com/translator?source=prebid-client",data:JSON.stringify(P),bidderRequest:r}}},interpretResponse:function(e,r){var t=[],i=g,n=JSON.parse(r.data),s=n.site&&n.site.ref?n.site.ref:"";try{e.body&&e.body.seatbid&&(0,a.kJ)(e.body.seatbid)&&(i=e.body.cur||i,e.body.seatbid.forEach((function(e){e.bid&&(0,a.kJ)(e.bid)&&e.bid.forEach((function(d){var p={requestId:d.impid,cpm:(parseFloat(d.price)||0).toFixed(2),width:d.w,height:d.h,creativeId:d.crid||d.id,dealId:d.dealid,currency:i,netRevenue:!0,ttl:300,referrer:s,ad:d.adm,pm_seat:e.seat||null,pm_dspid:d.ext&&d.ext.dspid?d.ext.dspid:null,partnerImpId:d.id||""};n.imp&&n.imp.length>0&&n.imp.forEach((function(e){if(d.impid===e.id)switch(function(e,r){if(e.ext&&null!=e.ext.bidtype)r.mediaType=x[e.ext.bidtype];else{(0,a.PN)("PubMatic: bid.ext.bidtype does not exist, checking alternatively for mediaType");var t=e.adm,i="",n=new RegExp(/VAST\s+version/);if(t.indexOf('span class="PubAPIAd"')>=0)r.mediaType=o.Mk;else if(n.test(t))r.mediaType=o.pX;else try{(i=JSON.parse(t.replace(/\\/g,"")))&&i.native&&(r.mediaType=o.B5)}catch(e){(0,a.yN)("PubMatic: Error: Cannot parse native reponse for ad response: "+t)}}}(d,p),p.mediaType){case o.Mk:break;case o.pX:p.width=d.hasOwnProperty("w")?d.w:e.video.w,p.height=d.hasOwnProperty("h")?d.h:e.video.h,p.vastXml=d.adm,function(e,r){var t,a,i;if(r.bidderRequest&&r.bidderRequest.bids){for(var n=0;n<r.bidderRequest.bids.length;n++)r.bidderRequest.bids[n].bidId===e.requestId&&(t=r.bidderRequest.bids[n].params,a=r.bidderRequest.bids[n].mediaTypes[o.pX].context,i=r.bidderRequest.bids[n].adUnitCode);a&&"outstream"===a&&t&&t.outstreamAU&&i&&(e.rendererCode=t.outstreamAU,e.renderer=D.newRenderer(e.rendererCode,i))}}(p,r);break;case o.B5:!function(e,r){if(r.native={},e.hasOwnProperty("adm")){var t="";try{t=JSON.parse(e.adm.replace(/\\/g,""))}catch(e){return void(0,a.yN)("PubMatic: Error: Cannot parse native reponse for ad response: "+r.adm)}if(t&&t.native&&t.native.assets&&t.native.assets.length>0){r.mediaType=o.B5;for(var i=0,n=t.native.assets.length;i<n;i++)switch(t.native.assets[i].id){case P.TITLE.ID:r.native.title=t.native.assets[i].title&&t.native.assets[i].title.text;break;case P.IMAGE.ID:r.native.image={url:t.native.assets[i].img&&t.native.assets[i].img.url,height:t.native.assets[i].img&&t.native.assets[i].img.h,width:t.native.assets[i].img&&t.native.assets[i].img.w};break;case P.ICON.ID:r.native.icon={url:t.native.assets[i].img&&t.native.assets[i].img.url,height:t.native.assets[i].img&&t.native.assets[i].img.h,width:t.native.assets[i].img&&t.native.assets[i].img.w};break;case P.SPONSOREDBY.ID:case P.BODY.ID:case P.LIKES.ID:case P.DOWNLOADS.ID:case P.PRICE:case P.SALEPRICE.ID:case P.PHONE.ID:case P.ADDRESS.ID:case P.DESC2.ID:case P.CTA.ID:case P.RATING.ID:case P.DISPLAYURL.ID:r.native[N[t.native.assets[i].id]]=t.native.assets[i].data&&t.native.assets[i].data.value}r.native.clickUrl=t.native.link&&t.native.link.url,r.native.clickTrackers=t.native.link&&t.native.link.clicktrackers||[],r.native.impressionTrackers=t.native.imptrackers||[],r.native.jstracker=t.native.jstracker||[],r.width||(r.width=0),r.height||(r.height=0)}}}(d,p)}})),d.ext&&d.ext.deal_channel&&(p.dealChannel=T[d.ext.deal_channel]||null),p.meta={},d.ext&&d.ext.dspid&&(p.meta.networkId=d.ext.dspid),d.ext&&d.ext.advid&&(p.meta.buyerId=d.ext.advid),d.adomain&&d.adomain.length>0&&(p.meta.advertiserDomains=d.adomain,p.meta.clickUrl=d.adomain[0]),e.ext&&e.ext.buyid&&(p.adserverTargeting={hb_buyid_pubmatic:e.ext.buyid}),d.ext&&d.ext.marketplace&&(p.bidderCode=d.ext.marketplace),t.push(p)}))})))}catch(e){(0,a.H)(e)}return t},getUserSyncs:function(e,r,t,a){var i=""+k;return t&&(i+="&gdpr="+(t.gdprApplies?1:0),i+="&gdpr_consent="+encodeURIComponent(t.consentString||"")),a&&(i+="&us_privacy="+encodeURIComponent(a)),!0===d.vc.getConfig("coppa")&&(i+="&coppa=1"),e.iframeEnabled?[{type:"iframe",url:"https://ads.pubmatic.com/AdServer/js/user_sync.html?kdntuid=1&p="+i}]:[{type:"image",url:"https://image8.pubmatic.com/AdServer/ImgSync?p="+i}]},transformBidParams:function(e,r,t,i){return j(e,t.bids[0],!0),(0,a.uh)({publisherId:"string",adSlot:"string"},e)}};(0,s.dX)(B),window.pbjs.installedModules.push("pubmaticBidAdapter")},4806:function(e,r,t){function a(e,r,t){r.split&&(r=r.split("."));for(var a,i=0,n=r.length,s=e;i<n;++i)a=s[r[i]],s=s[r[i]]=i===n-1?t:null!=a?a:!~r[i+1].indexOf(".")&&+r[i+1]>-1?[]:{}}t.d(r,{Z:function(){return a}})}},function(e){e(e.s=8139)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[979],{6898:function(e,r,t){var n=t(9853),a=t(265),i=t(1125),s=t(4877);function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},o.apply(this,arguments)}var u=["cp","ct","cf","video","battr","bcat","badv","bidfloor"],d={code:"pulsepoint",gvlid:81,aliases:["pulseLite","pulsepointLite"],supportedMediaTypes:["banner","native","video"],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.cp&&e.params.ct)},buildRequests:function(e,r){return{method:"POST",url:"https://bid.contextweb.com/header/ortb?src=prebid",data:{id:e[0].bidderRequestId,imp:e.map((function(e){return function(e){return{id:e.bidId,banner:p(e),native:m(e),tagid:e.params.ct.toString(),video:c(e),bidfloor:T(e),ext:l(e)}}(e)})),site:g(e,r),app:h(e),device:{ua:navigator.userAgent,language:navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage},bcat:e[0].params.bcat,badv:e[0].params.badv,user:w(e[0],r),regs:O(r),source:(t=e[0].schain,t?{ext:{schain:t}}:null)},bidderRequest:r};var t},interpretResponse:function(e,r){return function(e,r){var t={},i={},o={},u=r.body;e.data.imp.forEach((function(e){t[e.id]=e})),u&&u.seatbid.forEach((function(e){return e.bid.forEach((function(e){i[e.impid]=e}))})),e.bidderRequest&&e.bidderRequest.bids&&e.bidderRequest.bids.forEach((function(e){o[e.bidId]=e}));var d=[];return Object.keys(t).forEach((function(e){if(i[e]){var r={requestId:e,cpm:i[e].price,creative_id:i[e].crid,creativeId:i[e].crid,adId:e,ttl:i[e].exp||20,netRevenue:!0,currency:u.cur||"USD",meta:{advertiserDomains:i[e].adomain||[]}};t[e].video?(o[e]&&"outstream"===(0,a.Z)(o[e],"mediaTypes.video.context")&&(r.renderer=(p=(0,a.Z)(o[e],"renderer.options"),c=(0,a.Z)(i[e],"ext.outstream"),(l=s.Th.install({url:c.rendererUrl,config:{defaultOptions:c.config,rendererOptions:p,type:c.type},loaded:!1})).setRender((function(e){e.renderer.push((function(){var r=e.renderer.getConfig();(new window.PulsePointOutstreamRenderer).render({adUnitCode:e.adUnitCode,vastXml:e.vastXml,type:r.type,defaultOptions:r.defaultOptions,rendererOptions:p})}))})),l)),r.vastXml=i[e].adm,r.mediaType="video",r.width=i[e].w,r.height=i[e].h):t[e].banner?(r.ad=i[e].adm,r.width=i[e].w||t[e].banner.w,r.height=i[e].h||t[e].banner.h):t[e].native&&(r.native=function(e,r){if(e.native){var t=function(e){try{if(e)return JSON.parse(e)}catch(e){(0,n.H)("pulsepointLite.safeParse","ERROR",e)}return null}(r.adm),a={};if(t&&t.native&&t.native.assets)return t.native.assets.forEach((function(e){a.title=e.title?e.title.text:a.title,a.body=e.data&&2===e.data.type?e.data.value:a.body,a.sponsoredBy=e.data&&1===e.data.type?e.data.value:a.sponsoredBy,a.image=e.img&&3===e.img.type?e.img.url:a.image,a.icon=e.img&&1===e.img.type?e.img.url:a.icon})),t.native.link&&(a.clickUrl=encodeURIComponent(t.native.link.url)),a.impressionTrackers=t.native.imptrackers,a}return null}(t[e],i[e]),r.mediaType="native"),d.push(r)}var p,c,l})),d}(r,e)},getUserSyncs:function(e){return e.iframeEnabled?[{type:"iframe",url:"https://bh.contextweb.com/visitormatch"}]:e.pixelEnabled?[{type:"image",url:"https://bh.contextweb.com/visitormatch/prebid"}]:void 0},transformBidParams:function(e,r){return(0,n.uh)({cf:"string",cp:"number",ct:"number"},e)}};function p(e){var r=function(e){var r=(0,a.Z)(e,"mediaTypes.banner.sizes");return r&&(0,n.kJ)(r)?r.filter((function(e){return(0,n.kJ)(e)&&2===e.length})).map((function(e){return{w:e[0],h:e[1]}})):null}(e),t=function(e,r){if(e.params.cf){var t=e.params.cf.toUpperCase().split("X");return[parseInt(e.params.cw||t[0],10),parseInt(e.params.ch||t[1],10)]}return r&&r.length>0?[r[0].w,r[0].h]:[1,1]}(e,r);return e.mediaTypes&&e.mediaTypes.banner?{w:t[0],h:t[1],battr:e.params.battr,format:r}:null}function c(e){return e.params.video?o({},e.params.video,e.mediaTypes&&e.mediaTypes.video?e.mediaTypes.video:{},{battr:e.params.battr}):null}function l(e){var r={},t={};return u.forEach((function(e){return t[e]=1})),Object.keys(e.params).forEach((function(n){t[n]||(r[n]=e.params[n])})),Object.keys(r).length>0?{prebid:r}:null}function m(e){if(e.nativeParams){var r=[];return f(r,(t=r.length+1,(n=e.nativeParams.title)?{id:t,required:n.required?1:0,title:{len:n.len||100}}:null)),f(r,b(r.length+1,e.nativeParams.body,2,200)),f(r,b(r.length+1,e.nativeParams.sponsoredBy,1,50)),f(r,v(r.length+1,e.nativeParams.icon,1,50,50)),f(r,v(r.length+1,e.nativeParams.image,3,150,150)),{request:JSON.stringify({assets:r}),ver:"1.1",battr:e.params.battr}}var t,n;return null}function f(e,r){r&&e.push(r)}function v(e,r,t,n,a){return r?{id:e,required:r.required?1:0,img:{type:t,wmin:r.wmin||n,hmin:r.hmin||a}}:null}function b(e,r,t,n){return r?{id:e,required:r.required?1:0,data:{type:t,len:r.len||n}}:null}function g(e,r){var t=e&&e.length>0?e[0].params.cp:"0";return e[0].params.app?null:{publisher:{id:t.toString()},ref:y(),page:r&&r.refererInfo?r.refererInfo.referer:""}}function h(e){var r=e&&e.length>0?e[0].params.cp:"0",t=e[0].params.app;return t?{publisher:{id:r.toString()},bundle:t.bundle,storeurl:t.storeUrl,domain:t.domain}:null}function y(){try{return window.top.document.referrer}catch(e){return document.referrer}}function w(e,r){var t={};if(r&&r.gdprConsent&&(t.consent=r.gdprConsent.consentString),e){var n=e.userIdAsEids;n&&(t.eids=n)}return{ext:t}}function O(e){if(e.gdprConsent||e.uspConsent){var r={};return e.gdprConsent&&(r.gdpr=e.gdprConsent.gdprApplies?1:0),e.uspConsent&&(r.us_privacy=e.uspConsent),{ext:r}}return null}function T(e){var r=e.params.bidfloor;if((0,n.LQ)(e.getFloor)){var t=e.getFloor({mediaType:e.mediaTypes.banner?"banner":e.mediaTypes.video?"video":"Native",size:"*",currency:"USD"});t&&t.floor&&(r=t.floor)}return r}(0,i.dX)(d),window.pbjs.installedModules.push("pulsepointBidAdapter")}},function(e){e(e.s=6898)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[967],{1336:function(e,t,n){var i=n(3494),r=n(5849),o=n(9853),a=n(7602),s="__qca",c=864e5,d="p-KceJUEvXN48CE",p="https://pixel.quantserve.com/pixel",u=["1","10"],l=["1"],f=["1"],g=a.rp.getConsentData(),v=a.nX.getConsentData(),h=(0,r.df)();function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:392;if(!window._qevents&&e&&""!=e){var n,i,r=h.getCookie(s),a="0",u=I.findRootDomain(),l=new Date,f="";if(!r){var m=l.getTime(),C=new Date(m+t*c).toGMTString(),w=Math.round(2147483647*Math.random());r="B0-".concat(w,"-").concat(m),a="1",h.setCookie(s,r,C,"/",u,null)}n="&fpan=".concat(a,"&fpa=").concat(r),i="&gdpr=0",g&&"boolean"==typeof g.gdprApplies&&g.gdprApplies&&(i="gdpr=1&gdpr_consent=".concat(g.consentString)),v&&"string"==typeof v&&(f="&us_privacy=".concat(v));var D=p+"?d="+u+"&client_id="+e+"&a="+d+f+i+n;(0,o.hq)(D)}}var I={name:"quantcastId",gvlid:"11",decode:function(e){return e},getId:function(e){var t,n=h.getCookie(s);if(a.VP.getCoppa()||(t=v)&&"string"==typeof t&&4==t.length&&"Y"==t.charAt(1)&&"Y"==t.charAt(2)||!function(e){if(e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies){if(!e.vendorData)return!1;if(1===e.apiVersion)return!1;if(2===e.apiVersion)return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=e.gdprApplies,i=e.purpose,r=e.vendor,o=r&&r.consents&&r.consents[11],a=r&&r.legitimateInterests&&r.legitimateInterests[11],s=e.publisher?e.publisher.restrictions:{};return!n||t.map((function(e){var t=!!i.consents&&i.consents[e],n=!!i.legitimateInterests&&i.legitimateInterests[e],r=s&&s[e]?s[e][11]:null;return!(0===r||(!o||!t||2===r||-1==l.indexOf(e)&&1!==r)&&(1===r||!a||!n||-1!=f.indexOf(e)||-1!=l.indexOf(e)&&2!==r))})).reduce((function(e,t){return e&&t}),!0)}(e.vendorData)}return!0}(g)){var i=new Date(0).toUTCString(),r=I.findRootDomain();return(0,o.PN)("QuantcastId: Necessary consent not present for Id, exiting QuantcastId"),void h.setCookie(s,"",i,"/",r,null)}var c=e&&e.params||{},d=e&&e.storage||{},p=c.clientId||"",C=d.expires||392;return"complete"===document.readyState?m(p,C):window.addEventListener("load",(function(){m(p,C)})),{id:n?{quantcastId:n}:void 0}}};(0,i.Bx)("userId",I),window.pbjs.installedModules.push("quantcastIdSystem")}},function(e){e(e.s=1336)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[522],{7671:function(e,r,t){var n=t(9853),i=t(1125),a=t(8962),o=t(8265);function s(e){return s="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},s(e)}var u={code:"readpeak",supportedMediaTypes:[o.B5,o.Mk],isBidRequestValid:function(e){return!!(e&&e.params&&e.params.publisherId)},buildRequests:function(e,r){var n=a.vc.getConfig("currency"),i=n&&n.adServerCurrency||"USD",o={id:e[0].bidderRequestId,imp:e.map((function(e){return function(e){var r;if("function"==typeof e.getFloor){var t=e.getFloor({currency:"USD",mediaType:"native",size:"*"});r="USD"===t.currency?t.floor:void 0}var n={id:e.bidId,bidfloor:r||e.params.bidfloor||0,bidfloorcur:(r?"USD":e.params.bidfloorcur)||"USD",tagId:e.params.tagId||"0"};return e.mediaTypes.native?n.native=function(e){if(e.nativeParams){var r=[];return d(r,function(e,r,t){return r?{id:1,required:r.required?1:0,title:{len:r.len||70}}:null}(0,e.nativeParams.title)),d(r,(2,t=e.nativeParams.image,3,n=e.nativeParams.wmin||150,i=e.nativeParams.hmin||150,t?{id:2,required:t.required?1:0,img:{type:3,wmin:t.wmin||n,hmin:t.hmin||i}}:null)),d(r,p(3,e.nativeParams.sponsoredBy,1,50)),d(r,p(4,e.nativeParams.body,2,120)),d(r,p(5,e.nativeParams.cta,12,50)),{request:JSON.stringify({assets:r}),ver:"1.1"}}var t,n,i;return null}(e):e.mediaTypes.banner&&(n.banner=function(e){var r=e.mediaTypes.banner.sizes||e.sizes;return{format:r.map((function(e){return{w:e[0],h:e[1]}})),w:r[0][0],h:r[0][1]}}(e)),n}(e)})),site:c(e,r),app:l(e),device:{ua:navigator.userAgent,language:navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage,devicetype:/(ios|ipod|ipad|iphone|android)/i.test(t.g.navigator.userAgent)?1:/(smart[-]?tv|hbbtv|appletv|googletv|hdmi|netcast\.tv|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b)/i.test(t.g.navigator.userAgent)?3:2},cur:[i],source:{fd:1,tid:e[0].transactionId,ext:{prebid:"6.26.0"}}};return r.gdprConsent&&(o.user={ext:{consent:r.gdprConsent.consentString||""}},o.regs={ext:{gdpr:void 0===r.gdprConsent.gdprApplies||r.gdprConsent.gdprApplies}}),{method:"POST",url:"https://app.readpeak.com/header/prebid",data:JSON.stringify(o)}},interpretResponse:function(e,r){return function(e,r){var t={},i={};if(!r.body)return[];r=r.body,m(e.data).imp.forEach((function(e){t[e.id]=e})),r&&r.seatbid.forEach((function(e){return e.bid.forEach((function(e){i[e.impid]=e}))}));var a=[];return Object.keys(t).forEach((function(e){if(i[e]){var s={requestId:e,cpm:i[e].price,creativeId:i[e].crid,ttl:300,netRevenue:!0,mediaType:t[e].native?o.B5:o.Mk,currency:r.cur};t[e].native?s.native=function(e,r){if(e&&e.native){var t=m(r.adm),i={};if(t&&t.assets){t.assets.forEach((function(e){i.title=e.title?e.title.text:i.title,i.body=e.data&&4===e.id?e.data.value:i.body,i.sponsoredBy=e.data&&3===e.id?e.data.value:i.sponsoredBy,i.image=e.img&&2===e.id?{url:e.img.url,width:e.img.w||750,height:e.img.h||500}:i.image,i.cta=e.data&&5===e.id?e.data.value:i.cta})),t.link&&(i.clickUrl=encodeURIComponent(t.link.url));var a=t.imptrackers||[];return a.unshift((0,n.ew)(r.burl,r.price)),i.impressionTrackers=a,i}}return null}(t[e],i[e]):t[e].banner&&(s.ad=i[e].adm,s.width=i[e].w,s.height=i[e].h),i[e].adomain&&(s.meta={advertiserDomains:i[e].adomain}),a.push(s)}})),a}(r,e)}};function d(e,r){r&&e.push(r)}function p(e,r,t,n){return r?{id:e,required:r.required?1:0,data:{type:t,len:r.len||n}}:null}function c(e,r){var t=a.vc.getConfig("pageUrl")||r&&r.refererInfo&&r.refererInfo.referer,i=e&&e.length>0?e[0].params.publisherId:"0",o=e&&e.length>0?e[0].params.siteId:"0";if(!e[0].params.app)return{publisher:{id:i.toString(),domain:a.vc.getConfig("publisherDomain")},id:o?o.toString():i.toString(),page:t,domain:t&&(0,n.en)(t).hostname||a.vc.getConfig("publisherDomain")}}function l(e){var r=e&&e.length>0?e[0].params.publisherId:"0",t=e[0].params.app;if(t)return{publisher:{id:r.toString()},bundle:t.bundle,storeurl:t.storeUrl,domain:t.domain}}function m(e){try{if(e)return"object"===s(e)?e:JSON.parse(e)}catch(e){(0,n.H)("readpeakBidAdapter.safeParse","ERROR",e)}return null}(0,i.dX)(u),window.pbjs.installedModules.push("readpeakBidAdapter")}},function(e){e(e.s=7671)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[773],{3224:function(e,r,t){var i=t(9853),n=t(265),a=t(8265),s=t(1125),u=t(1879);function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function o(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){c(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function c(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var p=["prebid-eu","prebid-us","prebid-asia"],l=["USD"],m=[a.Mk,a.B5],f={ICON:1,MAIN:3},h={TITLE:1,IMAGE:2,ICON:3,BODY:4,SPONSORED:5,CTA:6},g={SPONSORED:1,DESC:2,CTA_TEXT:12},b={code:"rtbhouse",supportedMediaTypes:m,gvlid:16,isBidRequestValid:function(e){return!(!(0,u.q9)(p,e.params.region)||!e.params.publisherId)},buildRequests:function(e,r){var t,n,a={id:e[0].auctionId,imp:e.map((function(e){return function(e){var r={id:e.bidId,banner:y(e),native:O(e),tagid:e.adUnitCode.toString()},t=function(e){var r=[];return"function"==typeof e.getFloor&&Object.keys(e.mediaTypes).forEach((function(t){(0,u.q9)(m,t)&&r.push(e.getFloor({currency:l[0],mediaType:t,size:e.sizes||"*"}).floor)})),r.length>0?Math.max.apply(Math,r):parseFloat(e.params.bidfloor)}(e);return t&&(r.bidfloor=t),r}(e)})),site:v(e,r),cur:l,test:e[0].params.test||0,source:(t=e[0],n={tid:t.transactionId},n)};if(r&&r.gdprConsent&&r.gdprConsent.gdprApplies){var s=r.gdprConsent.consentString?r.gdprConsent.consentString.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,""):"",d=r.gdprConsent.gdprApplies?1:0;a.regs={ext:{gdpr:d}},a.user={ext:{consent:s}}}if(e[0].schain){var c=function(e){return e?function(e){if(!e.nodes)return!1;var r=["asi","sid","hp"];return e.nodes.every((function(e){return r.every((function(r){return e[r]}))}))}(e)?e:((0,i.H)("RTB House: required schain params missing"),null):null}(e[0].schain);c&&(a.ext={schain:c})}if(e[0].userIdAsEids){var p={eids:e[0].userIdAsEids};a.user&&a.user.ext?a.user.ext=o(o({},a.user.ext),p):a.user={ext:p}}return{method:"POST",url:"https://"+e[0].params.region+".creativecdn.com/bidder/prebid/bids",data:JSON.stringify(a)}},interpretResponse:function(e,r){var t=e.body;if(!(0,i.kJ)(t))return[];var n=[];return t.forEach((function(e){0!==e.price&&(0===e.adm.indexOf("{")?n.push(function(e){return{requestId:e.impid,mediaType:a.B5,cpm:e.price,creativeId:e.adid,width:1,height:1,ttl:55,meta:{advertiserDomains:e.adomain},netRevenue:!0,currency:"USD",native:(r=e.adm,t=JSON.parse(r).native,i={clickUrl:encodeURIComponent(t.link.url),impressionTrackers:t.imptrackers},t.assets.forEach((function(e){switch(e.id){case h.TITLE:i.title=e.title.text;break;case h.IMAGE:i.image={url:encodeURIComponent(e.img.url),width:e.img.w,height:e.img.h};break;case h.ICON:i.icon={url:encodeURIComponent(e.img.url),width:e.img.w,height:e.img.h};break;case h.BODY:i.body=e.data.value;break;case h.SPONSORED:i.sponsoredBy=e.data.value;break;case h.CTA:i.cta=e.data.value}})),i)};var r,t,i}(e)):n.push(function(e){return{requestId:e.impid,mediaType:a.Mk,cpm:e.price,creativeId:e.adid,ad:e.adm,width:e.w,height:e.h,ttl:55,meta:{advertiserDomains:e.adomain},netRevenue:!0,currency:"USD"}}(e)))})),n}};function y(e){if("banner"===e.mediaType||(0,n.Z)(e,"mediaTypes.banner")||!e.mediaType&&!e.mediaTypes){var r=e.sizes||e.mediaTypes.banner.sizes;return{w:r[0][0],h:r[0][1],format:r.map((function(e){return{w:e[0],h:e[1]}}))}}}function v(e,r){var t="unknown",n=null;e&&e.length>0&&(t=e[0].params.publisherId,n=e[0].params.channel&&e[0].params.channel.toString().slice(0,50));var a={publisher:{id:t.toString()},page:r.refererInfo.referer,name:(0,i.P$)()};return n&&(a.channel=n),a}function O(e){if("native"===e.mediaType||(0,n.Z)(e,"mediaTypes.native"))return{request:{assets:T(e)},ver:"1.1"}}function T(e){var r=e.nativeParams||(0,n.Z)(e,"mediaTypes.native"),t=[];return r.title&&t.push({id:h.TITLE,required:r.title.required?1:0,title:{len:r.title.len||25}}),r.image&&t.push({id:h.IMAGE,required:r.image.required?1:0,img:I(r.image,f.MAIN)}),r.icon&&t.push({id:h.ICON,required:r.icon.required?1:0,img:I(r.icon,f.ICON)}),r.sponsoredBy&&t.push({id:h.SPONSORED,required:r.sponsoredBy.required?1:0,data:{type:g.SPONSORED,len:r.sponsoredBy.len}}),r.body&&t.push({id:h.BODY,required:r.body.request?1:0,data:{type:g.DESC,len:r.body.len}}),r.cta&&t.push({id:h.CTA,required:r.cta.required?1:0,data:{type:g.CTA_TEXT,len:r.cta.len}}),t}function I(e,r){var t={type:r};if(e.aspect_ratios){var i=e.aspect_ratios[0],n=i.min_width||100;t.wmin=n,t.hmin=n/i.ratio_width*i.ratio_height}if(e.sizes){var a=Array.isArray(e.sizes[0])?e.sizes[0]:e.sizes;t.w=a[0],t.h=a[1]}return t}(0,s.dX)(b),window.pbjs.installedModules.push("rtbhouseBidAdapter")}},function(e){e(e.s=3224)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[187],{6476:function(e,t,r){var i=r(9853),n=r(265),o=r(4806),a=r(1125),s=r(8962),c=r(8265),d=r(1879),u=r(4877),p=r(2528);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){g(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},m.apply(this,arguments)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var i,n,o=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(i=r.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,n=e}finally{try{a||null==r.return||r.return()}finally{if(s)throw n}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(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.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return b="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},b(e)}var x={};s.vc.getConfig("rubicon",(function(e){(0,i.Ee)(x,e.rubicon)}));var h={1:"468x60",2:"728x90",5:"120x90",7:"125x125",8:"120x600",9:"160x600",10:"300x600",13:"200x200",14:"250x250",15:"300x250",16:"336x280",17:"240x400",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",39:"750x100",40:"750x200",41:"750x300",42:"2x4",43:"320x50",44:"300x50",48:"300x300",53:"1024x768",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",64:"580x500",65:"640x480",66:"930x600",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",85:"300x120",90:"548x150",94:"970x310",95:"970x100",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",105:"250x800",108:"320x240",113:"1000x300",117:"320x100",125:"800x250",126:"200x600",144:"980x600",145:"980x150",152:"1000x250",156:"640x320",159:"320x250",179:"250x600",195:"600x300",198:"640x360",199:"640x200",213:"1030x590",214:"980x360",221:"1x1",229:"320x180",230:"2000x1400",232:"580x400",234:"6x6",251:"2x2",256:"480x820",257:"400x600",258:"500x200",259:"998x200",264:"970x1000",265:"1920x1080",274:"1800x200",278:"320x500",282:"320x400",288:"640x380",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"};(0,i.yi)(h,(function(e,t){return h[e]=t}));var _={code:"rubicon",gvlid:52,supportedMediaTypes:[c.Mk,c.pX],isBidRequestValid:function(e){if("object"!==b(e.params))return!1;for(var t=0,r=["accountId","siteId","zoneId"];t<r.length;t++)if(e.params[r[t]]=parseInt(e.params[r[t]]),isNaN(e.params[r[t]]))return(0,i.H)("Rubicon: wrong format of accountId or siteId or zoneId."),!1;var o=O(e,!0);return!!o&&("video"!==o||function(e){var t=!0,r=Object.prototype.toString.call([]),o={mimes:r,protocols:r,linearity:Object.prototype.toString.call(0),api:r};return Object.keys(o).forEach((function(r){Object.prototype.toString.call((0,n.Z)(e,"mediaTypes.video."+r))!==o[r]&&(t=!1,(0,i.H)("Rubicon: mediaTypes.video."+r+" is required and must be of type: "+o[r]))})),t}(e))},buildRequests:function(e,t){var r=[],a=e.filter((function(e){return"video"===O(e)})).map((function(e){e.startTime=(new Date).getTime();var r,a={id:e.transactionId,test:s.vc.getConfig("debug")?1:0,cur:["USD"],source:{tid:e.transactionId},tmax:t.timeout,imp:[{exp:s.vc.getConfig("s2sConfig.defaultTtl"),id:e.adUnitCode,secure:1,ext:g({},e.bidder,e.params),video:(0,n.Z)(e,"mediaTypes.video")||{}}],ext:{prebid:{channel:{name:"pbjs",version:pbjs.version},cache:{vastxml:{returnCreative:!0===x.returnVast}},targeting:{includewinners:!0,includebidderkeys:!1,pricegranularity:(r=s.vc,{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:r.getConfig("customPriceBucket")&&r.getConfig("customPriceBucket").buckets}[r.getConfig("priceGranularity")]})},bidders:{rubicon:{integration:x.int_type||"pbjs"}}}}};"rubicon"!==e.bidder&&(a.ext.prebid.aliases=g({},e.bidder,"rubicon"));var d,u,l,f,v=(0,p.R)().installedModules;if(!v||v.length&&-1===v.indexOf("rubiconAnalyticsAdapter")||(0,o.Z)(a,"ext.prebid.analytics",{rubicon:{"client-analytics":!0}}),"function"!=typeof e.getFloor||x.disableFloors)d=parseFloat((0,n.Z)(e,"params.floor"));else{var y;try{y=e.getFloor({currency:"USD",mediaType:"video",size:C(e,"video")})}catch(e){(0,i.H)("Rubicon: getFloor threw an error: ",e)}d="object"!==b(y)||"USD"!==y.currency||isNaN(parseInt(y.floor))?void 0:parseFloat(y.floor)}isNaN(d)||(a.imp[0].bidfloor=d),"object"===b(e.floorData)&&(a.ext.prebid.floors={enabled:!1}),a.imp[0].ext[e.bidder].video.size_id=(l=e,f=parseInt((0,n.Z)(l,"params.video.size_id")),isNaN(f)?"outstream"===(0,n.Z)(l,"mediaTypes.".concat(c.pX,".context"))?203:201:f),function(e,t,r){e&&("object"===b(s.vc.getConfig("app"))?e.app=s.vc.getConfig("app"):e.site={page:j(t,r)},"object"===b(s.vc.getConfig("device"))&&(e.device=s.vc.getConfig("device")),t.params.video.language&&["site","device"].forEach((function(r){e[r]&&("site"===r?e[r].content=m({language:t.params.video.language},e[r].content):e[r]=m({language:t.params.video.language},e[r]))})))}(a,e,t),function(e,t){"object"===b(e.imp[0].video)&&void 0===e.imp[0].video.skip&&(e.imp[0].video.skip=t.params.video.skip),"object"===b(e.imp[0].video)&&void 0===e.imp[0].video.skipafter&&(e.imp[0].video.skipafter=t.params.video.skipdelay),"object"===b(e.imp[0].video)&&void 0===e.imp[0].video.pos&&("atf"===t.params.position?e.imp[0].video.pos=1:"btf"===t.params.position&&(e.imp[0].video.pos=3));var r=C(t,"video");e.imp[0].video.w=r[0],e.imp[0].video.h=r[1]}(a,e),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(u=t.gdprConsent.gdprApplies?1:0),(0,o.Z)(a,"regs.ext.gdpr",u),(0,o.Z)(a,"user.ext.consent",t.gdprConsent.consentString)),t.uspConsent&&(0,o.Z)(a,"regs.ext.us_privacy",t.uspConsent);var h=(0,n.Z)(t,"bids.0.userIdAsEids");h&&h.length&&(0,o.Z)(a,"user.ext.eids",h);var _=s.vc.getConfig("user.id");_&&(0,o.Z)(a,"user.id",_),!0===s.vc.getConfig("coppa")&&(0,o.Z)(a,"regs.coppa",1),e.schain&&S(e.schain)&&(0,o.Z)(a,"source.ext.schain",e.schain);var k=s.vc.getConfig("multibid");return k&&(0,o.Z)(a,"ext.prebid.multibid",k.reduce((function(e,t){var r={};return Object.keys(t).forEach((function(e){r[e.toLowerCase()]=t[e]})),e.push(r),e}),[])),I(e,c.pX,a),e.storedAuctionResponse&&(0,o.Z)(a.imp[0],"ext.prebid.storedauctionresponse.id",e.storedAuctionResponse.toString()),(0,o.Z)(a.imp[0],"ext.prebid.auctiontimestamp",t.auctionStart),{method:"POST",url:"https://".concat(x.videoHost||"prebid-server",".rubiconproject.com/openrtb2/auction"),data:a,bidRequest:e}}));if(!0!==x.singleRequest)r=a.concat(e.filter((function(e){return"banner"===O(e)})).map((function(e){var r=_.createSlotParams(e,t);return{method:"GET",url:"https://".concat(x.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:_.getOrderedParams(r).reduce((function(e,t){var n=r[t];return(0,i.d8)(n)&&""!==n||(0,i.hj)(n)?"".concat(e).concat(R(t,n),"&"):e}),"")+"slots=1&rand=".concat(Math.random()),bidRequest:e}})));else{var d=e.filter((function(e){return"banner"===O(e)})).reduce((function(e,t){return(e[t.params.siteId]=e[t.params.siteId]||[]).push(t),e}),{});r=a.concat(Object.keys(d).reduce((function(e,r){var n;return(n=d[r],10,n.map((function(e,t){return t%10==0?n.slice(t,t+10):null})).filter((function(e){return e}))).forEach((function(r){var n=_.combineSlotUrlParams(r.map((function(e){return _.createSlotParams(e,t)})));e.push({method:"GET",url:"https://".concat(x.bannerHost||"fastlane",".rubiconproject.com/a/api/fastlane.json"),data:_.getOrderedParams(n).reduce((function(e,t){var r=n[t];return(0,i.d8)(r)&&""!==r||(0,i.hj)(r)?"".concat(e).concat(R(t,r),"&"):e}),"")+"slots=".concat(r.length,"&rand=").concat(Math.random()),bidRequest:r})})),e}),[]))}return r},getOrderedParams:function(e){var t=/^tg_v/,r=/^tg_i/,i=/^eid_|^tpid_/,n=["account_id","site_id","zone_id","size_id","alt_size_ids","p_pos","gdpr","gdpr_consent","us_privacy","rp_schain"].concat(Object.keys(e).filter((function(e){return i.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 r.test(e)}))).concat(["tk_flint","x_source.tid","l_pb_bid_id","x_source.pchain","p_screen_res","rp_floor","rp_secure","tk_user_key"]);return n.concat(Object.keys(e).filter((function(e){return-1===n.indexOf(e)})))},combineSlotUrlParams:function(e){if(1===e.length)return e[0];var t=e.reduce((function(t,r,i){return Object.keys(r).forEach((function(n){t.hasOwnProperty(n)||(t[n]=new Array(e.length)),t[n].splice(i,1,r[n])})),t}),{}),r=new RegExp("^([^;]*)(;\\1)+$");return Object.keys(t).forEach((function(e){var i=t[e].join(";"),n=i.match(r);t[e]=n?n[1]:i})),t},createSlotParams:function(e,t){e.startTime=(new Date).getTime();var r=e.params,o=C(e,"banner"),a=v(r.latLong||[],2),u=a[0],p=a[1],l={account_id:r.accountId,site_id:r.siteId,zone_id:r.zoneId,size_id:o[0],alt_size_ids:o.slice(1).join(",")||void 0,rp_floor:(r.floor=parseFloat(r.floor))>=.01?r.floor:void 0,rp_secure:"1",tk_flint:"".concat(x.int_type||"pbjs_lite","_v6.26.0"),"x_source.tid":e.transactionId,l_pb_bid_id:e.bidId,"x_source.pchain":r.pchain,p_screen_res:[window.screen.width,window.screen.height].join("x"),tk_user_key:r.userId,"p_geo.latitude":isNaN(parseFloat(u))?void 0:parseFloat(u).toFixed(4),"p_geo.longitude":isNaN(parseFloat(p))?void 0:parseFloat(p).toFixed(4),"tg_fl.eid":e.code,rf:j(e,t)};if("function"==typeof e.getFloor&&!x.disableFloors){var f;try{f=e.getFloor({currency:"USD",mediaType:"banner",size:"*"})}catch(e){(0,i.H)("Rubicon: getFloor threw an error: ",e)}l.rp_hard_floor="object"!==b(f)||"USD"!==f.currency||isNaN(parseInt(f.floor))?void 0:f.floor}var m={1:"atf",3:"btf"}[(0,n.Z)(e,"mediaTypes.banner.pos")]||"";l.p_pos="atf"===r.position||"btf"===r.position?r.position:m;var y=s.vc.getConfig("user.id");return y&&(l.ppuid=y),e.userIdAsEids&&e.userIdAsEids.forEach((function(e){try{if("adserver.org"===e.source?(l.tpid_tdid=e.uids[0].id,l["eid_adserver.org"]=e.uids[0].id):"liveintent.com"===e.source?(l["tpid_liveintent.com"]=e.uids[0].id,l["eid_liveintent.com"]=e.uids[0].id,e.ext&&Array.isArray(e.ext.segments)&&e.ext.segments.length&&(l["tg_v.LIseg"]=e.ext.segments.join(","))):"liveramp.com"===e.source?l.x_liverampidl=e.uids[0].id:"id5-sync.com"===e.source?l["eid_id5-sync.com"]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype,"^").concat(e.uids[0].ext&&e.uids[0].ext.linkType||""):l["eid_".concat(e.source)]="".concat(e.uids[0].id,"^").concat(e.uids[0].atype||""),!l.ppuid){var t=(0,d.sE)(e.uids,(function(e){return e.ext&&"ppuid"===e.ext.stype}));t&&t.id&&(l.ppuid=t.id)}}catch(t){(0,i.yN)("Rubicon: error reading eid:",e,t)}})),t.gdprConsent&&("boolean"==typeof t.gdprConsent.gdprApplies&&(l.gdpr=Number(t.gdprConsent.gdprApplies)),l.gdpr_consent=t.gdprConsent.consentString),t.uspConsent&&(l.us_privacy=encodeURIComponent(t.uspConsent)),l.rp_maxbids=t.bidLimit||1,I(e,c.Mk,l),!0===s.vc.getConfig("coppa")&&(l.coppa=1),e.schain&&S(e.schain)&&(l.rp_schain=_.serializeSupplyChain(e.schain)),l},serializeSupplyChain:function(e){if(!S(e))return"";var t=e.ver,r=e.complete,i=e.nodes;return"".concat(t,",").concat(r,"!").concat(_.serializeSupplyChainNodes(i))},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(e,t){var r=t.bidRequest;if(!(e=e.body)||"object"!==b(e))return[];if(e.seatbid){var a=(0,n.Z)(e,"ext.errors.rubicon");Array.isArray(a)&&a.length>0&&(0,i.yN)("Rubicon: Error in video response");var s=[];return e.seatbid.forEach((function(t){(t.bid||[]).forEach((function(a){var d={requestId:r.bidId,currency:e.cur||"USD",creativeId:a.crid,cpm:a.price||0,bidderCode:t.seat,ttl:300,netRevenue:!1!==x.netRevenue,width:a.w||(0,n.Z)(r,"mediaTypes.video.w")||(0,n.Z)(r,"params.video.playerWidth"),height:a.h||(0,n.Z)(r,"mediaTypes.video.h")||(0,n.Z)(r,"params.video.playerHeight")};a.id&&(d.seatBidId=a.id),a.dealid&&(d.dealId=a.dealid),a.adomain&&(0,o.Z)(d,"meta.advertiserDomains",Array.isArray(a.adomain)?a.adomain:[a.adomain]),(0,n.Z)(a,"ext.bidder.rp.advid")&&(0,o.Z)(d,"meta.advertiserId",a.ext.bidder.rp.advid);var p=(0,n.Z)(e,"ext.responsetimemillis.rubicon");if(r&&p&&(r.serverResponseTimeMs=p),(0,n.Z)(a,"ext.prebid.type")===c.pX){d.mediaType=c.pX,(0,o.Z)(d,"meta.mediaType",c.pX);var l=(0,n.Z)(a,"ext.prebid.targeting");l&&"object"===b(l)&&(d.adserverTargeting=l),a.ext.prebid.cache&&"object"===b(a.ext.prebid.cache.vastXml)&&a.ext.prebid.cache.vastXml.cacheId&&a.ext.prebid.cache.vastXml.url?(d.videoCacheKey=a.ext.prebid.cache.vastXml.cacheId,d.vastUrl=a.ext.prebid.cache.vastXml.url):l&&l.hb_uuid&&l.hb_cache_host&&l.hb_cache_path&&(d.videoCacheKey=l.hb_uuid,d.vastUrl="https://".concat(l.hb_cache_host).concat(l.hb_cache_path,"?uuid=").concat(l.hb_uuid)),a.adm&&(d.vastXml=a.adm),a.nurl&&(d.vastUrl=a.nurl),!d.vastUrl&&a.nurl&&(d.vastUrl=a.nurl),"outstream"===(0,n.Z)(r,"mediaTypes.video.context").toLowerCase()&&(d.renderer=function(e){var t=u.Th.install({id:e.adId,url:x.rendererUrl||"https://video-outstream.rubiconproject.com/apex-2.2.1.js",config:x.rendererConfig||{},loaded:!1,adUnitCode:e.adUnitCode});try{t.setRender(k)}catch(e){(0,i.yN)("Prebid Error calling setRender on renderer",e)}return t}(d))}else(0,i.yN)("Rubicon: video response received non-video media type");s.push(d)}))})),s}var d,p=e.ads,l=0;return"object"!==b(r)||Array.isArray(r)||"video"!==O(r)||"object"!==b(p)||(p=p[r.adUnitCode]),!Array.isArray(p)||p.length<1?[]:p.reduce((function(t,n,o){if(n.impression_id&&d===n.impression_id?l++:d=n.impression_id,"ok"!==n.status)return t;var a,s,u=Array.isArray(r)?r[o-l]:r;if(u&&"object"===b(u)){var p={requestId:u.bidId,currency:"USD",creativeId:n.creative_id||"".concat(n.network||"","-").concat(n.advertiser||""),cpm:n.cpm||0,dealId:n.deal,ttl:300,netRevenue:!1!==x.netRevenue,rubicon:{advertiserId:n.advertiser,networkId:n.network},meta:{advertiserId:n.advertiser,networkId:n.network,mediaType:c.Mk}};if(n.creative_type&&(p.mediaType=n.creative_type),n.adomain&&(p.meta.advertiserDomains=Array.isArray(n.adomain)?n.adomain:[n.adomain]),n.creative_type===c.pX)p.width=u.params.video.playerWidth,p.height=u.params.video.playerHeight,p.vastUrl=n.creative_depot_url,p.impression_id=n.impression_id,p.videoCacheKey=n.impression_id;else{p.ad=(a=n.script,s=n.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 f=v(h[n.size_id].split("x").map((function(e){return Number(e)})),2);p.width=f[0],p.height=f[1]}p.rubiconTargeting=(Array.isArray(n.targeting)?n.targeting:[]).reduce((function(e,t){return e[t.key]=t.values[0],e}),{rpfl_elemid:u.adUnitCode}),t.push(p)}else(0,i.H)("Rubicon: bidRequest undefined at index position:".concat(o),r,e);return t}),[]).sort((function(e,t){return(t.cpm||0)-(e.cpm||0)}))},getUserSyncs:function(e,t,r,n){if(!Z&&e.iframeEnabled){var o={};return r&&("boolean"==typeof r.gdprApplies&&(o.gdpr=Number(r.gdprApplies)),"string"==typeof r.consentString&&(o.gdpr_consent=r.consentString)),n&&(o.us_privacy=encodeURIComponent(n)),o=Object.keys(o).length?"?".concat((0,i.Yp)(o)):"",Z=!0,{type:"iframe",url:"https://".concat(x.syncHost||"eus",".rubiconproject.com/usync.html")+o}}},transformBidParams:function(e,t){return(0,i.uh)({accountId:"number",siteId:"number",zoneId:"number"},e)}};function j(e,t){var r=s.vc.getConfig("pageUrl");return e.params.referrer?r=e.params.referrer:r||(r=t.refererInfo.referer),e.params.secure?r.replace(/^http:/i,"https:"):r}function k(e){var t,r=document.getElementById(e.adUnitCode);(t=r.querySelector("div[id^='google_ads']"))&&t.style.setProperty("display","none"),function(e){var t=e.querySelector("script[id^='sas_script']"),r=t&&t.nextSibling;r&&"iframe"===r.localName&&r.style.setProperty("display","none")}(r);var i=e.renderer.getConfig();e.renderer.push((function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:r,align:i.align||"center",position:i.position||"append"},closeButton:i.closeButton||!1,label:i.label||void 0,collapse:i.collapse||!0})}))}function C(e,t){var r=e.params;if("video"===t){var o=[];return r.video&&r.video.playerWidth&&r.video.playerHeight?o=[r.video.playerWidth,r.video.playerHeight]:Array.isArray((0,n.Z)(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(r.sizes)?a=r.sizes:void 0!==(0,n.Z)(e,"mediaTypes.banner.sizes")?a=A(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?a=A(e.sizes):(0,i.yN)("Rubicon: no sizes are setup or found"),function(e){var t=[15,2,9];return e.sort((function(e,r){var i=t.indexOf(e),n=t.indexOf(r);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-r}))}(a)}function I(e,t,r){var o={user:{ext:{data:f({},e.params.visitor)}},site:{ext:{data:f({},e.params.inventory)}}};e.params.keywords&&(o.site.keywords=(0,i.kJ)(e.params.keywords)?e.params.keywords.join(","):e.params.keywords);var a=(0,i.Ee)({},s.vc.getConfig("ortb2")||{},o),d=(0,n.Z)(e.ortb2Imp,"ext.data")||{},u=(0,n.Z)(e,"ortb2Imp.ext.gpid"),p={user:[4],site:[1,2,5,6]},l={user:"tg_v.",site:"tg_i.",adserver:"tg_i.dfp_ad_unit_code",pbadslot:"tg_i.pbadslot",keywords:"kw"},m=function(e,t,r){if("data"===t&&Array.isArray(e))return e.filter((function(e){return e.segment&&(0,n.Z)(e,"ext.segtax")&&p[r]&&-1!==p[r].indexOf((0,n.Z)(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();if("object"!==b(e)||Array.isArray(e)){if(void 0!==e)return Array.isArray(e)?e.filter((function(e){if("object"!==b(e)&&void 0!==e)return e.toString();(0,i.yN)("Rubicon: Filtered value: ",e,"for key",t,": Expected value to be string, integer, or an array of strings/ints")})).toString():e.toString()}else(0,i.yN)("Rubicon: Filtered FPD key: ",t,": Expected value to be string, integer, or an array of strings/ints")},v=function(e,t,i){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=m(e,i,t),a=l[i]&&n?"".concat(l[i]):"data"===i?"".concat(l[t],"iab"):"".concat(l[t]).concat(i);r[a]=r[a]?r[a].concat(",",o):o};t===c.Mk?(["site","user"].forEach((function(e){Object.keys(a[e]).forEach((function(t){"site"===e&&"content"===t&&a[e][t].data?v(a[e][t].data,e,"data"):"ext"!==t?v(a[e][t],e,t):a[e][t].data&&Object.keys(a[e].ext.data).forEach((function(t){v(a[e].ext.data[t],e,t,!1)}))}))})),Object.keys(d).forEach((function(e){"adserver"!==e?v(d[e],"site",e):"gam"===d[e].name&&v(d[e].adslot,name,e)})),u&&(r.p_gpid=u),r["tg_i.pbadslot"]&&delete r["tg_i.dfp_ad_unit_code"]):(Object.keys(d).length&&(0,i.Ee)(r.imp[0].ext,{data:d}),u&&(r.imp[0].ext.gpid=u),(0,i.Ee)(r,a))}function A(e){return(0,i.sF)(e).reduce((function(e,t){var r=parseInt(h[t],10);return r&&e.push(r),e}),[])}function w(e){return"object"===b((0,n.Z)(e,"params.video"))&&void 0!==(0,n.Z)(e,"mediaTypes.".concat(c.pX))}function O(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return w(e)?-1===["outstream","instream"].indexOf((0,n.Z)(e,"mediaTypes.".concat(c.pX,".context")))?void(t&&(0,i.H)("Rubicon: mediaTypes.video.context must be outstream or instream")):C(e,"video").length<2?void(t&&(0,i.H)("Rubicon: could not determine the playerSize of the video")):(t&&(0,i.ji)("Rubicon: making video request for adUnit",e.adUnitCode),"video"):0===C(e,"banner").length?void(t&&(0,i.H)("Rubicon: could not determine the sizes for banner request")):(t&&(0,i.ji)("Rubicon: making banner request for adUnit",e.adUnitCode),"banner")}function S(e){var t=!1,r=["asi","sid","hp"];return e.nodes?((t=e.nodes.reduce((function(e,t){return e?r.every((function(e){return t.hasOwnProperty(e)})):e}),!0))||(0,i.H)("Rubicon: required schain params missing"),t):t}function R(e,t){return"rp_schain"===e?"rp_schain=".concat(t):"".concat(e,"=").concat(encodeURIComponent(t))}var Z=!1;(0,a.dX)(_),window.pbjs.installedModules.push("rubiconBidAdapter")},4806:function(e,t,r){function i(e,t,r){t.split&&(t=t.split("."));for(var i,n=0,o=t.length,a=e;n<o;++n)i=a[t[n]],a=a[t[n]]=n===o-1?r:null!=i?i:!~t[n+1].indexOf(".")&&+t[n+1]>-1?[]:{}}r.d(t,{Z:function(){return i}})}},function(e){e(e.s=6476)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[225],{3019:function(n,i,o){var c=o(8962),e=o(7602),t=o(9853),a="Invalid schain object found: ",s=" should be a string",d=" should be an Integer",f=" should be an object",r={STRICT:"strict",RELAXED:"relaxed",OFF:"off"},h=[];(0,t.yi)(r,(function(n){return h.push(n)})),e.ZP.makeBidRequests.after((function(n,i){var o=c.vc.getConfig("schain"),e=c.vc.getBidderConfig();i.forEach((function(n){var i=n.bidderCode,c=function(n){return e[n]&&e[n].schain||o}(i);n.bids.forEach((function(n){var o=function(n,i){var o=r.STRICT;if(function(n){return!(void 0===n||!(0,t.PO)(n)&&((0,t.H)(a+"the following schain config will not be used as schain is not an object.",n),1))}(n)){if((0,t.d8)(n.validation)&&-1!=h.indexOf(n.validation)&&(o=n.validation),o===r.OFF)return n.config;if(function(n,i){var o="Detected something wrong within an schain config:",c="";function e(n){c+="\n"+n}function a(){!0===i?(0,t.H)(o,n,c):(0,t.yN)(o,n,c)}if(!(0,t.PO)(n)&&(e("schain.config"+f),a(),i))return!1;if((0,t.hj)(n.complete)&&(0,t.U)(n.complete)||e("schain.config.complete"+d),(0,t.d8)(n.ver)||e("schain.config.ver"+s),(0,t.RI)(n,"ext")&&((0,t.PO)(n.ext)||e("schain.config.ext"+f)),(0,t.kJ)(n.nodes))n.nodes.forEach((function(n,i){(0,t.d8)(n.asi)||e("schain.config.nodes[".concat(i,"].asi")+s),(0,t.d8)(n.sid)||e("schain.config.nodes[".concat(i,"].sid")+s),(0,t.hj)(n.hp)&&(0,t.U)(n.hp)||e("schain.config.nodes[".concat(i,"].hp")+d),(0,t.RI)(n,"rid")&&((0,t.d8)(n.rid)||e("schain.config.nodes[".concat(i,"].rid")+s)),(0,t.RI)(n,"name")&&((0,t.d8)(n.name)||e("schain.config.nodes[".concat(i,"].name")+s)),(0,t.RI)(n,"domain")&&((0,t.d8)(n.domain)||e("schain.config.nodes[".concat(i,"].domain")+s)),(0,t.RI)(n,"ext")&&((0,t.PO)(n.ext)||e("schain.config.nodes[".concat(i,"].ext")+f))}));else if(e("schain.config.nodes should be an Array"),a(),i)return!1;return!(c.length>0&&(a(),i))}(n.config,!(o!==r.STRICT)))return n.config;(0,t.H)(a+"due to the 'strict' validation setting, this schain config will not be passed to bidder '".concat(i,"'.  See above error for details."))}return null}(c,i);o&&(n.schain=o)}))})),n(i)})),window.pbjs.installedModules.push("schain")}},function(n){n(n.s=3019)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[972],{2871:function(o,e,t){var n=t(9853),i=t(3494),r=t(7602);function a(o){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},a(o)}var d=(0,t(5849).df)({gvlid:887,moduleName:"pubCommonId"}),u="cookie",c="html5",m="_pubcid_optout",f="PublisherCommonId";function l(o,e){if(e===u)return d.getCookie(o);if(e===c&&d.hasLocalStorage()){var t=d.getDataFromLocalStorage("".concat(o,"_exp"));if(!t)return d.getDataFromLocalStorage(o);if(new Date(t).getTime()-Date.now()>0)return d.getDataFromLocalStorage(o)}}function s(o,e){return function(t){"function"==typeof e&&e(),t(o)}}function p(o){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(o){var t=(0,n.en)(o);t.search.id=encodeURIComponent("pubcid:"+e);var i=(0,n.Q2)(t);return function(){(0,n.hq)(i)}}}function v(){return!!(d.cookiesAreEnabled()&&l(m,u)||d.hasLocalStorage()&&l(m,c))}var b={name:"sharedId",aliasName:"pubCommonId",gvlid:887,decode:function(o,e){if(!v())return(0,n.PN)(" Decoded value PubCommonId "+o),{pubcid:o};(0,n.PN)("PubCommonId decode: Has opted-out")},getId:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(v())(0,n.PN)("PubCommonId: Has opted-out");else{var t=r.VP.getCoppa();if(!t){var i=o.params,d=(i=void 0===i?{}:i).create,u=void 0===d||d,c=i.pixelUrl,m=e;if(!m){try{"object"===a(window[f])&&(m=window[f].getId())}catch(o){}m||(m=u&&(0,n.wn)()?(0,n.DO)():void 0)}var l=p(c,m);return{id:m,callback:s(m,l)}}(0,n.PN)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId")}},extendId:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>2?arguments[2]:void 0;if(v())return(0,n.PN)("PubCommonId: Has opted-out"),{id:void 0};var t=r.VP.getCoppa();if(t)(0,n.PN)("PubCommonId: IDs not provided for coppa requests, exiting PubCommonId");else{var i=o.params,a=(i=void 0===i?{}:i).extend,d=void 0!==a&&a,u=i.pixelUrl;if(d){if(u){var c=p(u,e);return{callback:c}}return{id:e}}}},domainOverride:function(){for(var o,e,t=document.domain.split("."),n="_gd".concat(Date.now()),i=0;i<t.length;i++){var r=t.slice(i).join(".");if(d.setCookie(n,"1",void 0,void 0,r),e=d.getCookie(n),d.setCookie(n,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,r),"1"!==e)return o;o=r}}};(0,i.Bx)("userId",b),window.pbjs.installedModules.push("sharedIdSystem")}},function(o){o(o.s=2871)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[215],{2139:function(e,r,t){var a=t(265),i=t(9853),o=t(8265),n=t(8962),d=t(2224),s=t(1125),u={code:"smartadserver",gvlid:45,aliases:["smart"],supportedMediaTypes:[o.Mk,o.pX],isBidRequestValid:function(e){return!!(e.params&&e.params.siteId&&e.params.pageId&&e.params.formatId)},serializeSupplyChain:function(e){if(!e||!e.nodes)return null;var r=["asi","sid","hp","rid","name","domain"];return"".concat(e.ver,",").concat(e.complete,"!")+e.nodes.map((function(e){return r.map((function(r){return e[r]?encodeURIComponent(e[r]):""})).join(",")})).join("!")},adaptBannerSizes:function(e){return e.map((function(e){return{w:e[0],h:e[1]}}))},fillPayloadForVideoBidRequest:function(e,r,t){var a=r.playerSize[0];e.isVideo="instream"===r.context,e.mediaType=o.pX,e.videoData={videoProtocol:this.getProtocolForVideoBidRequest(r,t),playerWidth:a[0],playerHeight:a[1],adBreak:this.getStartDelayForVideoBidRequest(r,t)}},getProtocolForVideoBidRequest:function(e,r){return void 0!==r&&r.protocol?r.protocol:void 0!==e&&Array.isArray(e.protocols)?Math.max.apply(Math,e.protocols):null},getStartDelayForVideoBidRequest:function(e,r){if(void 0!==r&&r.startDelay)return r.startDelay;if(void 0!==e){if(0==e.startdelay)return 1;if(-1==e.startdelay)return 2;if(-2==e.startdelay)return 3}return 2},createServerRequest:function(e,r){return{method:"POST",url:(void 0!==r?r:"https://prg.smartadserver.com")+"/prebid/v1",data:JSON.stringify(e)}},buildRequests:function(e,r){var t=n.vc.getConfig("currency.adServerCurrency");return e.reduce((function(e,o){var s={siteid:o.params.siteId,pageid:o.params.pageId,formatid:o.params.formatId,currencyCode:t,bidfloor:o.params.bidfloor||u.getBidFloor(o,t),targeting:o.params.target&&""!==o.params.target?o.params.target:void 0,buid:o.params.buId&&""!==o.params.buId?o.params.buId:void 0,appname:o.params.appName&&""!==o.params.appName?o.params.appName:void 0,ckid:o.params.ckId||0,tagId:o.adUnitCode,pageDomain:r&&r.refererInfo&&r.refererInfo.referer?r.refererInfo.referer:void 0,transactionId:o.transactionId,timeout:n.vc.getConfig("bidderTimeout"),bidId:o.bidId,prebidVersion:"6.26.0",schain:u.serializeSupplyChain(o.schain)};r&&r.gdprConsent&&(s.addtl_consent=r.gdprConsent.addtlConsent,s.gdpr_consent=r.gdprConsent.consentString,s.gdpr=r.gdprConsent.gdprApplies),o&&o.userId&&(s.eids=(0,d.HQ)(o.userId)),r&&r.uspConsent&&(s.us_privacy=r.uspConsent);var c=(0,a.Z)(o,"mediaTypes.video"),p=(0,a.Z)(o,"mediaTypes.banner"),l=c&&("instream"===c.context||"outstream"===c.context);if(!l&&p)s.sizes=u.adaptBannerSizes(p.sizes),e.push(u.createServerRequest(s,o.params.domain));else if(l&&!p)u.fillPayloadForVideoBidRequest(s,c,o.params.video),e.push(u.createServerRequest(s,o.params.domain));else if(l&&p){var m=(0,i.I8)(s);u.fillPayloadForVideoBidRequest(m,c,o.params.video),e.push(u.createServerRequest(m,o.params.domain)),s.sizes=u.adaptBannerSizes(p.sizes),e.push(u.createServerRequest(s,o.params.domain))}else e.push({});return e}),[])},interpretResponse:function(e,r){var t=[],a=e.body;try{if(a&&!a.isNoAd){var n=JSON.parse(r.data),d={requestId:n.bidId,cpm:a.cpm,width:a.width,height:a.height,creativeId:a.creativeId,dealId:a.dealId,currency:a.currency,netRevenue:a.isNetCpm,ttl:a.ttl,dspPixels:a.dspPixels,meta:{advertiserDomains:a.adomain?a.adomain:[]}};n.mediaType===o.pX?(d.mediaType=o.pX,d.vastUrl=a.adUrl,d.vastXml=a.ad,d.content=a.ad):(d.adUrl=a.adUrl,d.ad=a.ad),t.push(d)}}catch(e){(0,i.H)("Error while parsing smart server response",e)}return t},getBidFloor:function(e,r){if(!(0,i.LQ)(e.getFloor))return 0;var t=e.getFloor({currency:r||"USD",mediaType:"*",size:"*"});return(0,i.PO)(t)&&!isNaN(t.floor)?t.floor:0},getUserSyncs:function(e,r){var t=[];return e.iframeEnabled&&r.length>0&&null!=r[0].body.cSyncUrl?t.push({type:"iframe",url:r[0].body.cSyncUrl}):e.pixelEnabled&&r.length>0&&void 0!==r[0].body.dspPixels&&r[0].body.dspPixels.forEach((function(e){t.push({type:"image",url:e})})),t}};(0,s.dX)(u),window.pbjs.installedModules.push("smartadserverBidAdapter")},2224:function(e,r,t){t.d(r,{HQ:function(){return d},Pv:function(){return s},UR:function(){return o}});var a=t(9853),i=t(265),o={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){return e.uid},getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var r=(0,a.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(r).length)return r}},idl_env:{source:"liveramp.com",atype:3},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}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},gravitompId:{source:"gravito.net",atype:1}};function n(e,r){var t=o[r];if(t&&e){var i={};i.source=t.source;var n=(0,a.LQ)(t.getValue)?t.getValue(e):e;if((0,a.d8)(n)){var d={id:n,atype:t.atype};if((0,a.LQ)(t.getUidExt)){var s=t.getUidExt(e);s&&(d.ext=s)}if(i.uids=[d],(0,a.LQ)(t.getEidExt)){var u=t.getEidExt(e);u&&(i.ext=u)}return i}}return null}function d(e){var r=[];for(var t in e)if(e.hasOwnProperty(t))if("pubProvidedId"===t)r=r.concat(e.pubProvidedId);else{var a=n(e[t],t);a&&r.push(a)}return r}function s(e){var r=[];return e.filter((function(e){return(0,a.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(t){(0,i.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,i.Z)(o,t+".source")&&r.push({source:o[t].source,bidders:e.config.bidders})}))})),r}}},function(e){e(e.s=2139)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[540],{9860:function(e,t,r){var a=r(9853),n=r(265),i=r(4877),s=r(1125),o=r(8265);function d(e){return d="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},d(e)}var p={code:"smartx",supportedMediaTypes:[o.pX],isBidRequestValid:function(e){if(e&&"object"!==d(e.params))return(0,a.H)("smartx: params is not defined or is incorrect in the bidder settings."),!1;if(!(0,n.Z)(e,"mediaTypes.video"))return(0,a.H)("smartx: mediaTypes.video is not present in the bidder settings."),!1;var t=(0,n.Z)(e,"mediaTypes.video.playerSize");if(!t||!(0,a.kJ)(t))return(0,a.H)("smartx: mediaTypes.video.playerSize is not defined in the bidder settings."),!1;if(!(0,a.An)("tagId",e.params))return(0,a.H)("smartx: tagId is not present in bidder params"),!1;if(!(0,a.An)("publisherId",e.params))return(0,a.H)("smartx: publisherId is not present in bidder params"),!1;if(!(0,a.An)("siteId",e.params))return(0,a.H)("smartx: siteId is not present in bidder params"),!1;if("outstream"===(0,n.Z)(e,"mediaTypes.video.context")){if(!(0,a.An)("outstream_options",e.params))return(0,a.H)("smartx: outstream_options parameter is not defined"),!1;if(!(0,a.An)("slot",e.params.outstream_options))return(0,a.H)("smartx: slot parameter is not defined in outstream_options object in the configuration"),!1}return!0},buildRequests:function(e,t){var r=t.refererInfo.referer,i=!!r.match(/^https:/);return e.map((function(e){var s=(0,a.An)("tagId",e.params),o=(0,a.An)("publisherId",e.params),d=function(e){var t=(0,a.An)("bidfloor",e.params),r=(0,a.An)("bidfloorcur",e.params)||"EUR";if(!t&&(0,a.LQ)(e.getFloor)){var n=e.getFloor({currency:r,mediaType:"*",size:"*"});(0,a.PO)(n)&&!isNaN(n.floor)&&n.currency===r&&(t=n.floor)}return t}(e)||0,p=(0,a.An)("bidfloorcur",e.params)||"EUR",m=(0,a.An)("siteId",e.params),u=(0,a.An)("domain",e.params),c=(0,a.An)("cat",e.params)||[""],l=null,f=(0,n.Z)(e,"mediaTypes.video.playerSize"),b=f[0][0],v=f[0][1],g=+(i||((0,a.An)("secure",e.params)?1:0)),y=(0,a.An)("mimes",e.params)||["application/javascript","video/mp4","video/webm"],h=(0,a.An)("linearity",e.params)||1,A=(0,a.An)("minduration",e.params)||0,x=(0,a.An)("maxduration",e.params)||500,_=(0,a.An)("startdelay",e.params)||0,S=(0,a.An)("minbitrate",e.params)||0,T=(0,a.An)("maxbitrate",e.params)||3500,I=(0,a.An)("delivery",e.params)||[2],w=(0,a.An)("pos",e.params)||1,R=(0,a.An)("api",e.params)||[2],k=(0,a.An)("protocols",e.params)||[2,3,5,6],j=1;"outstream"===(0,n.Z)(e,"mediaTypes.video.context")&&(j=3);var C=[{id:e.bidId,secure:g,bidfloor:d,bidfloorcur:p,video:{w:b,h:v,mimes:y,linearity:h,minduration:A,maxduration:x,startdelay:_,protocols:k,minbitrate:S,maxbitrate:T,delivery:I,pos:w,placement:j,api:R,ext:{sdk_name:"Prebid 1+"}},tagid:s,ext:{"smart.bidpricetype":1}}];e.crumbs&&e.crumbs.pubcid&&(l=e.crumbs.pubcid);var H=navigator.language?"language":"userLanguage",X={h:screen.height,w:screen.width,dnt:(0,a.oV)()?1:0,language:navigator[H].split("-")[0],make:navigator.vendor?navigator.vendor:"",ua:navigator.userAgent},Z=(0,a.An)("at",e.params)||2,O=(0,a.An)("cur",e.params)||["EUR"],E={id:(0,a.DO)(),imp:C,site:{id:m,page:r,cat:c,domain:u,publisher:{id:o},content:{ext:{prebid:{name:"pbjs",version:"6.26.0"}}}},device:X,at:Z,cur:O,ext:{}},q={};if(t&&t.gdprConsent&&(q.consent=t.gdprConsent.consentString,void 0!==t.gdprConsent.gdprApplies&&(E.regs={ext:{gdpr:t.gdprConsent.gdprApplies?1:0}})),l&&(q.fpc=l),(0,a.xb)(q)||(E.user={ext:q}),(0,a.An)("data",e.params.user)){for(var P=[],z=0;z<e.params.user.data.length;z++)if("empty"!==(e.params.user.data[z].name||"empty")){var U=e.params.user.data[z].name,B=e.params.user.data[z].segment[0].value||"empty";P.push({id:U,name:U,segment:{name:U,value:B}})}E.user={ext:q,data:P}}return{method:"POST",url:"https://bid.sxp.smartclip.net/bid/1000",data:E,bidRequest:t,options:{contentType:"application/json",customHeaders:{"x-openrtb-version":"2.3"}}}}))},interpretResponse:function(e,t){var r=[],s=e.body;return s&&(0,a.kJ)(s.seatbid)&&(0,a.yi)(s.seatbid,(function(e){(0,a.yi)(e.bid,(function(e){var d={};for(var p in t.bidRequest.bids)e.impid==t.bidRequest.bids[p].bidId&&(d=t.bidRequest.bids[p]);(0,a.yi)(d.params.pre_market_bids,(function(t){t.deal_id==e.id&&(e.price=t.price,s.cur=t.currency)}));var u={requestId:d.bidId,currency:s.cur||"USD",cpm:e.price,creativeId:e.crid||"",ttl:360,netRevenue:!0,vastContent:e.adm,vastXml:e.adm,mediaType:o.pX,width:e.w,height:e.h};if(u.meta=u.meta||{},e&&e.adomain&&e.adomain.length>0&&(u.meta.advertiserDomains=e.adomain),"outstream"===(0,n.Z)(d,"mediaTypes.video.context")){var c=(0,n.Z)(d,"mediaTypes.video.playerSize"),l=i.Th.install({id:0,url:"https://dco.smartclip.net/?plc=7777778",config:{adText:"SmartX Outstream Video Ad via Prebid.js",player_width:c[0][0],player_height:c[0][1],content_page_url:(0,n.Z)(t,"data.site.page"),ad_mute:+!!(0,n.Z)(d,"params.ad_mute"),hide_skin:+!!(0,n.Z)(d,"params.hide_skin"),outstream_options:(0,n.Z)(d,"params.outstream_options")}});try{l.setRender(m),l.setEventHandlers({impression:function(){return(0,a.ji)("SmartX outstream video impression event")},loaded:function(){return(0,a.ji)("SmartX outstream video loaded event")},ended:function(){return(0,a.ji)("SmartX outstream renderer video event")}})}catch(e){(0,a.yN)("Prebid Error calling setRender or setEventHandlers on renderer",e)}u.renderer=l}r.push(u)}))})),r}};function m(e){var t=(0,a.An)("minAdWidth",e.renderer.config.outstream_options)||290,r=(0,a.An)("maxAdWidth",e.renderer.config.outstream_options)||900,n=(0,a.An)("startOpen",e.renderer.config.outstream_options),i=(0,a.An)("endingScreen",e.renderer.config.outstream_options),s=(0,a.An)("title",e.renderer.config.outstream_options),o=(0,a.An)("skipOffset",e.renderer.config.outstream_options),d=(0,a.An)("desiredBitrate",e.renderer.config.outstream_options),p=(0,a.An)("visibilityThreshold",e.renderer.config.outstream_options),m=(0,a.An)("slot",e.renderer.config.outstream_options)||e.adUnitCode;(0,a.ji)("[SMARTX][renderer] Handle SmartX outstream renderer");var u={minAdWidth:t,maxAdWidth:r,onStartCallback:function(e,t){try{window.sc_smartIntxtStart(t)}catch(e){}},onCappedCallback:function(e,t){try{window.sc_smartIntxtNoad(t)}catch(e){}},onEndCallback:function(e,t){try{window.sc_smartIntxtEnd(t)}catch(e){}}};"true"==n?u.startOpen=!0:"false"==n&&(u.startOpen=!1),"true"==i?u.endingScreen=!0:"false"==i&&(u.endingScreen=!1),(s||"string"==typeof e.renderer.config.outstream_options.title&&""==e.renderer.config.outstream_options.title)&&(u.title=s),o&&(u.skipOffset=o),d&&(u.desiredBitrate=d),p&&(u.visibilityThreshold=p),u.adResponse=e.vastContent;var c='[id="'+m+'"]';try{new OutstreamPlayer(c,u)}catch(e){(0,a.H)("[SMARTX][renderer] Error caught: "+e)}return u}(0,s.dX)(p),window.pbjs.installedModules.push("smartxBidAdapter")}},function(e){e(e.s=9860)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[771],{5841:function(e,r,t){var n=t(9853),i=t(265),o=t(4806),a=t(1125),u=t(8265),c=t(2224),s=t(8962);function d(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function p(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){f(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function f(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var l={mimes:function(e){return Array.isArray(e)&&e.length>0&&e.every((function(e){return"string"==typeof e}))},minduration:function(e){return(0,n.U)(e)},maxduration:function(e){return(0,n.U)(e)},protocols:function(e){return Array.isArray(e)&&e.every((function(e){return e>=1&&e<=10}))},w:function(e){return(0,n.U)(e)},h:function(e){return(0,n.U)(e)},startdelay:function(e){return(0,n.U)(e)},placement:function(e){return(0,n.U)(e)&&e>=1&&e<=5},linearity:function(e){return-1!==[1,2].indexOf(e)},skip:function(e){return-1!==[0,1].indexOf(e)},skipmin:function(e){return(0,n.U)(e)},skipafter:function(e){return(0,n.U)(e)},sequence:function(e){return(0,n.U)(e)},battr:function(e){return Array.isArray(e)&&e.every((function(e){return e>=1&&e<=17}))},maxextended:function(e){return(0,n.U)(e)},minbitrate:function(e){return(0,n.U)(e)},maxbitrate:function(e){return(0,n.U)(e)},boxingallowed:function(e){return-1!==[0,1].indexOf(e)},playbackmethod:function(e){return Array.isArray(e)&&e.every((function(e){return e>=1&&e<=6}))},playbackend:function(e){return-1!==[1,2,3].indexOf(e)},delivery:function(e){return Array.isArray(e)&&e.every((function(e){return e>=1&&e<=3}))},pos:function(e){return(0,n.U)(e)&&e>=1&&e<=7},api:function(e){return Array.isArray(e)&&e.every((function(e){return e>=1&&e<=6}))}},y={context:function(e){return e!==u.Oh},mimes:l.mimes,minduration:l.minduration,maxduration:l.maxduration,protocols:l.protocols},m={code:"sovrn",supportedMediaTypes:[u.Mk,u.pX],gvlid:13,isBidRequestValid:function(e){var r,t=null==e||null===(r=e.mediaTypes)||void 0===r?void 0:r.video;return!(!e.params.tagid||isNaN(parseFloat(e.params.tagid))||!isFinite(e.params.tagid)||t&&!Object.keys(y).every((function(e){return y[e](t[e])})))},buildRequests:function(e,r){try{var t,a,u,d,f=[],y=[];(0,n.yi)(e,(function(e){!u&&e.userId&&(u=(0,c.HQ)(e.userId)).forEach((function(e){e.uids&&e.uids[0]&&("criteo.com"===e.source&&(d=e.uids[0].id),y.push({source:e.source,uid:e.uids[0].id}))})),e.schain&&(a=a||e.schain),t=t||(0,n.An)("iv",e.params);var r=e.getFloor&&"function"==typeof e.getFloor?e.getFloor({currency:"USD",mediaType:e.mediaTypes&&e.mediaTypes.banner?"banner":"video",size:"*"}):{};r.floor=r.floor||(0,n.An)("bidfloor",e.params);var o={adunitcode:e.adUnitCode,id:e.bidId,tagid:String((0,n.An)("tagid",e.params)),bidfloor:r.floor};if((0,i.Z)(e,"mediaTypes.banner")){var s=(0,i.Z)(e,"mediaTypes.banner.sizes")||e.sizes,m=(s=(s=(0,n.kJ)(s)&&(0,n.kJ)(s[0])?s:[s]).filter((function(e){return(0,n.kJ)(e)}))).map((function(e){return{w:parseInt(e[0],10),h:parseInt(e[1],10)}}));o.banner={format:m,w:1,h:1}}(0,i.Z)(e,"mediaTypes.video")&&(o.video=function(e){var r={},t=(0,i.Z)(e,"mediaTypes.video",{}),o=(0,i.Z)(e,"params.video",{}),a={};if(Array.isArray(t.playerSize)){var u=Array.isArray(t.playerSize[0])?t.playerSize[0]:t.playerSize;a.w=u[0],a.h=u[1]}var c=p(p(p({},a),t),o);return Object.keys(l).forEach((function(e){c.hasOwnProperty(e)&&(l[e](c[e])?r[e]=c[e]:(0,n.yN)("The OpenRTB video param ".concat(e," has been skipped due to misformating. Please refer to OpenRTB 2.5 spec.")))})),r}(e)),o.ext=(0,n.An)("ext",e.ortb2Imp)||void 0;var g=(0,n.An)("segments",e.params);g&&(o.ext=o.ext||{},o.ext.deals=g.split(",").map((function(e){return e.trim()}))),f.push(o)}));var m=(0,n.I8)(s.vc.getConfig("ortb2")),g=m.site||{};g.page=r.refererInfo.referer,g.domain=(0,n.en)(g.page).hostname;var b={id:(0,n._d)(),imp:f,site:g,user:m.user||{}};a&&(b.source={ext:{schain:a}}),r.gdprConsent&&((0,o.Z)(b,"regs.ext.gdpr",+r.gdprConsent.gdprApplies),(0,o.Z)(b,"user.ext.consent",r.gdprConsent.consentString)),r.uspConsent&&(0,o.Z)(b,"regs.ext.us_privacy",r.uspConsent),u&&((0,o.Z)(b,"user.ext.eids",u),(0,o.Z)(b,"user.ext.tpid",y),d&&(0,o.Z)(b,"user.ext.prebid_criteoid",d));var v="https://ap.lijit.com/rtb/bid?src=prebid_prebid_6.26.0";return t&&(v+="&iv=".concat(t)),{method:"POST",url:v,data:JSON.stringify(b),options:{contentType:"text/plain"}}}catch(e){(0,n.H)("Could not build bidrequest, error deatils:",e)}},interpretResponse:function(e){var r=e.body,t=r.id,i=r.seatbid;if(!t||!i||!Array.isArray(i))return[];try{return i.filter((function(e){return e})).map((function(e){return e.bid.map((function(e){var r,t={requestId:e.impid,cpm:parseFloat(e.price),width:parseInt(e.w),height:parseInt(e.h),creativeId:e.crid||e.id,dealId:e.dealid||null,currency:"USD",netRevenue:!0,mediaType:e.nurl?u.Mk:u.pX,ttl:(null===(r=e.ext)||void 0===r?void 0:r.ttl)||90,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]}};return e.nurl?t.ad=decodeURIComponent("".concat(e.adm,'<img src="').concat(e.nurl,'">')):t.vastXml=decodeURIComponent(e.adm),t}))})).flat()}catch(e){return(0,n.H)("Could not interpret bidresponse, error details:",e),e}},getUserSyncs:function(e,r,t,n){try{var o=[];if(r&&0!==r.length){if(e.iframeEnabled){var a=r.filter((function(e){return(0,i.Z)(e,"body.ext.iid")})).map((function(e){return e.body.ext.iid})),u=[];t&&t.gdprApplies&&"string"==typeof t.consentString&&u.push(["gdpr_consent",t.consentString]),n&&u.push(["us_privacy",n]),a[0]&&(u.push(["informer",a[0]]),o.push({type:"iframe",url:"https://ap.lijit.com/beacon?"+u.map((function(e){return e.join("=")})).join("&")}))}e.pixelEnabled&&r.filter((function(e){return(0,i.Z)(e,"body.ext.sync.pixels")})).reduce((function(e,r){return e.concat(r.body.ext.sync.pixels)}),[]).map((function(e){return e.url})).forEach((function(e){return o.push({type:"image",url:e})}))}return o}catch(e){return[]}}};(0,a.dX)(m),window.pbjs.installedModules.push("sovrnBidAdapter")},2224:function(e,r,t){t.d(r,{HQ:function(){return u},Pv:function(){return c},UR:function(){return o}});var n=t(9853),i=t(265),o={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){return e.uid},getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var r=(0,n.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(r).length)return r}},idl_env:{source:"liveramp.com",atype:3},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}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},gravitompId:{source:"gravito.net",atype:1}};function a(e,r){var t=o[r];if(t&&e){var i={};i.source=t.source;var a=(0,n.LQ)(t.getValue)?t.getValue(e):e;if((0,n.d8)(a)){var u={id:a,atype:t.atype};if((0,n.LQ)(t.getUidExt)){var c=t.getUidExt(e);c&&(u.ext=c)}if(i.uids=[u],(0,n.LQ)(t.getEidExt)){var s=t.getEidExt(e);s&&(i.ext=s)}return i}}return null}function u(e){var r=[];for(var t in e)if(e.hasOwnProperty(t))if("pubProvidedId"===t)r=r.concat(e.pubProvidedId);else{var n=a(e[t],t);n&&r.push(n)}return r}function c(e){var r=[];return e.filter((function(e){return(0,n.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(t){(0,i.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,i.Z)(o,t+".source")&&r.push({source:o[t].source,bidders:e.config.bidders})}))})),r}},4806:function(e,r,t){function n(e,r,t){r.split&&(r=r.split("."));for(var n,i=0,o=r.length,a=e;i<o;++i)n=a[r[i]],a=a[r[i]]=i===o-1?t:null!=n?n:!~r[i+1].indexOf(".")&&+r[i+1]>-1?[]:{}}t.d(r,{Z:function(){return n}})}},function(e){e(e.s=5841)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[29],{8973:function(e,t,r){var n=r(9853),i=r(265),a=r(1125),o=r(5849);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c="teads",u=(0,o.df)({gvlid:132,bidderCode:c}),f={code:c,gvlid:132,supportedMediaTypes:["video","banner"],isBidRequestValid:function(e){var t=!1;if(void 0!==e.params){var r=y((0,n.NA)(e.params,"placementId")),i=y((0,n.NA)(e.params,"pageId"));t=r&&i}return t||(0,n.H)("Teads placementId and pageId parameters are required. Bid aborted."),t},buildRequests:function(e,t){var r,n,a=e.map(l),o=d(d(d({referrer:g(t),pageReferrer:document.referrer,networkBandwidth:(n=window.navigator,n&&n.connection&&n.connection.downlink>=0?n.connection.downlink.toString():""),timeToFirstByte:v(window),data:a,deviceWidth:screen.width,hb_version:"6.26.0"},function(e){if(!e)return{};var t=e.id?{cohortId:e.id}:{},r=e.version?{cohortVersion:e.version}:{};return d(d({},t),r)}((0,i.Z)(e,"0.userId.flocId"))),(r=(0,i.Z)(e,"0.userId.uid2"))?{unifiedId2:r.id}:{}),function(){if(!u.cookiesAreEnabled())return{};var e=u.getCookie("_tfpvi");return e?{firstPartyCookieTeadsId:e}:{}}());e[0].schain&&(o.schain=e[0].schain);var s=t.gdprConsent;if(t&&s){var p="boolean"==typeof s.gdprApplies,c="string"==typeof s.consentString,f=p?function(e,t,r){var n=12;return e?function(e,t){return e&&1===t?e.hasGlobalScope||e.hasGlobalConsent:!(!e||2!==t||e.isServiceSpecific)}(t,r)&&(n=11):n=0,n}(s.gdprApplies,s.vendorData,s.apiVersion):22;o.gdpr_iab={consent:c?s.consentString:"",status:f,apiVersion:s.apiVersion}}return t&&t.uspConsent&&(o.us_privacy=t.uspConsent),{method:"POST",url:"https://a.teads.tv/hb/bid-request",data:JSON.stringify(o)}},interpretResponse:function(e,t){var r=[];return(e=e.body).responses&&e.responses.forEach((function(e){var t={cpm:e.cpm,width:e.width,height:e.height,currency:e.currency,netRevenue:!0,ttl:e.ttl,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]},ad:e.ad,requestId:e.bidId,creativeId:e.creativeId,placementId:e.placementId};e.dealId&&(t.dealId=e.dealId),r.push(t)})),r}};function g(e){var t="";return e&&e.refererInfo&&e.refererInfo.referer&&(t=e.refererInfo.referer),t}function v(e){var t=e.performance||e.webkitPerformance||e.msPerformance||e.mozPerformance,r=t&&"function"==typeof t.getEntriesByType&&"[object Function]"===Object.prototype.toString.call(t.getEntriesByType)&&t.getEntriesByType("navigation")[0]&&t.getEntriesByType("navigation")[0].responseStart&&t.getEntriesByType("navigation")[0].requestStart&&t.getEntriesByType("navigation")[0].responseStart>0&&t.getEntriesByType("navigation")[0].requestStart>0&&Math.round(t.getEntriesByType("navigation")[0].responseStart-t.getEntriesByType("navigation")[0].requestStart);if(r)return r.toString();var n=t&&t.timing.responseStart&&t.timing.requestStart&&t.timing.responseStart>0&&t.timing.requestStart>0&&t.timing.responseStart-t.timing.requestStart;return n?n.toString():""}function l(e){var t={},r=(0,n.NA)(e.params,"placementId"),a=(0,n.NA)(e.params,"pageId"),o=(0,i.Z)(e,"ortb2Imp.ext.gpid");return t.sizes=function(e){return(0,n.sF)(function(e){var t=(0,i.Z)(e,"mediaTypes.video.playerSize"),r=(0,i.Z)(e,"mediaTypes.video.sizes"),a=(0,i.Z)(e,"mediaTypes.banner.sizes");return(0,n.kJ)(a)||(0,n.kJ)(t)||(0,n.kJ)(r)?[a,r,t].reduce((function(e,t){return(0,n.kJ)(t)&&((0,n.kJ)(t[0])?t.forEach((function(t){e.push(t)})):e.push(t)),e}),[]):e.sizes}(e))}(e),t.bidId=(0,n.An)("bidId",e),t.bidderRequestId=(0,n.An)("bidderRequestId",e),t.placementId=parseInt(r,10),t.pageId=parseInt(a,10),t.adUnitCode=(0,n.An)("adUnitCode",e),t.auctionId=(0,n.An)("auctionId",e),t.transactionId=(0,n.An)("transactionId",e),o&&(t.gpid=o),t}function y(e){return parseInt(e)>0}(0,a.dX)(f),window.pbjs.installedModules.push("teadsBidAdapter")}},function(e){e(e.s=8973)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[690],{2224:function(e,n,t){t.d(n,{HQ:function(){return a},Pv:function(){return u},UR:function(){return i}});var o=t(9853),r=t(265),i={trustpid:{source:"trustpid.com",atype:1,getValue:function(e){return e}},intentIqId:{source:"intentiq.com",atype:1},naveggId:{source:"navegg.com",atype:1},justId:{source:"justtag.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{getValue:function(e){return e.uid},source:"id5-sync.com",atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:"flashtalking.com",atype:1,getValue:function(e){return e.uid},getUidExt:function(e){if(e.ext)return e.ext}},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var n=(0,o.ei)(e,["ibaOptout","ccpaOptout"]);if(Object.keys(n).length)return n}},idl_env:{source:"liveramp.com",atype:3},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}}},britepoolid:{source:"britepool.com",atype:3},dmdId:{source:"hcn.health",atype:3},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},merkleId:{source:"merkleinc.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.keyID?{keyID:e.keyID}:void 0}},netId:{source:"netid.de",atype:1},IDP:{source:"zeotap.com",atype:1},hadronId:{source:"audigent.com",atype:1},haloId:{source:"audigent.com",atype:1},quantcastId:{source:"quantcast.com",atype:1},nextrollId:{source:"nextroll.com",atype:1},idx:{source:"idx.lat",atype:1},connectid:{source:"verizonmedia.com",atype:3},fabrickId:{source:"neustar.biz",atype:1},mwOpenLinkId:{source:"mediawallahscript.com",atype:1},tapadId:{source:"tapad.com",atype:1},novatiq:{getValue:function(e){return e.snowflake},source:"novatiq.com",atype:1},uid2:{source:"uidapi.com",atype:3,getValue:function(e){return e.id}},dapId:{source:"akamai.com",atype:1},deepintentId:{source:"deepintent.com",atype:3},admixerId:{source:"admixer.net",atype:3},adtelligentId:{source:"adtelligent.com",atype:3},amxId:{source:"amxrtb.com",atype:1},publinkId:{source:"epsilon.com",atype:3},kpuid:{source:"kpuid.com",atype:3},imuid:{source:"intimatemerger.com",atype:1},connectId:{source:"yahoo.com",atype:3},qid:{source:"adquery.io",atype:1},dacId:{source:"impact-ad.jp",atype:1},"33acrossId":{source:"33across.com",atype:1,getValue:function(e){return e.envelope}},gravitompId:{source:"gravito.net",atype:1}};function c(e,n){var t=i[n];if(t&&e){var r={};r.source=t.source;var c=(0,o.LQ)(t.getValue)?t.getValue(e):e;if((0,o.d8)(c)){var a={id:c,atype:t.atype};if((0,o.LQ)(t.getUidExt)){var u=t.getUidExt(e);u&&(a.ext=u)}if(r.uids=[a],(0,o.LQ)(t.getEidExt)){var s=t.getEidExt(e);s&&(r.ext=s)}return r}}return null}function a(e){var n=[];for(var t in e)if(e.hasOwnProperty(t))if("pubProvidedId"===t)n=n.concat(e.pubProvidedId);else{var o=c(e[t],t);o&&n.push(o)}return n}function u(e){var n=[];return e.filter((function(e){return(0,o.PO)(e.idObj)&&Object.keys(e.idObj).length})).forEach((function(e){Object.keys(e.idObj).forEach((function(t){(0,r.Z)(e,"config.bidders")&&Array.isArray(e.config.bidders)&&(0,r.Z)(i,t+".source")&&n.push({source:i[t].source,bidders:e.config.bidders})}))})),n}},9562:function(e,n,t){var o=t(1879),r=t(8962),i=t(2319),c=t(2528),a=t(7602),u=t(5644),s=t(3494),d=t(2224),l=t(5849),f=t(9853),g=t(265),p=(0,s.z3)("sync",(function(){})),m=t(9367);function y(e){return y="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},y(e)}var v,b,h,I,w,O="User ID",k="cookie",S="html5",j="_pbjs_userid_consent_data",E="_pbjs_id_optout",P=(0,l.eA)("userid"),x=[],D=!1,A=[],C=[],U=[];function L(e,n){var t=e.config.storage,o="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null;try{var r=(0,f.PO)(n)?JSON.stringify(n):n,i=new Date(Date.now()+864e5*t.expires).toUTCString();t.type===k?(P.setCookie(t.name,r,i,"Lax",o),"number"==typeof t.refreshInSeconds&&P.setCookie("".concat(t.name,"_last"),(new Date).toUTCString(),i,"Lax",o)):t.type===S&&(P.setDataInLocalStorage("".concat(t.name,"_exp"),i),P.setDataInLocalStorage(t.name,encodeURIComponent(r)),"number"==typeof t.refreshInSeconds&&P.setDataInLocalStorage("".concat(t.name,"_last"),(new Date).toUTCString()))}catch(e){(0,f.H)(e)}}function N(e){var n=(0,f.EE)().setEidPermissions;"function"==typeof n&&(0,f.kJ)(e)&&n((0,d.Pv)(e))}function V(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=t?"".concat(e.name,"_").concat(t):e.name;try{if(e.type===k)n=P.getCookie(o);else if(e.type===S){var r=P.getDataFromLocalStorage("".concat(e.name,"_exp"));""===r?n=P.getDataFromLocalStorage(o):r&&new Date(r).getTime()-Date.now()>0&&(n=decodeURIComponent(P.getDataFromLocalStorage(o)))}"string"==typeof n&&"{"===n.trim().charAt(0)&&(n=JSON.parse(n))}catch(e){(0,f.H)(e)}return n}function _(e){var n={consentString:"",gdprApplies:!1,apiVersion:0};return e&&(n.consentString=e.consentString,n.gdprApplies=e.gdprApplies,n.apiVersion=e.apiVersion),(0,f._R)(JSON.stringify(n))}function T(e){try{var n=new Date(Date.now()+2592e6).toUTCString();P.setCookie(j,_(e),n,"Lax")}catch(e){(0,f.H)(e)}}function R(){try{return P.getCookie(j)}catch(e){(0,f.H)(e)}}function H(e){if(e&&"boolean"==typeof e.gdprApplies&&e.gdprApplies){if(!e.consentString)return!1;if(1===e.apiVersion&&!1===(0,g.Z)(e,"vendorData.purposeConsents.1"))return!1;if(2===e.apiVersion&&!1===(0,g.Z)(e,"vendorData.purpose.consents.1"))return!1}return!0}function q(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.hostname;if(!P.cookiesAreEnabled())return e;var n,t,o=e.split(".");if(2==o.length)return e;var r=-2,i="_rdc".concat(Date.now()),c="writeable";do{n=o.slice(r).join(".");var a=new Date((0,f.AB)()+1e4).toUTCString();P.setCookie(i,c,a,"Lax",n,void 0);var u=P.getCookie(i,void 0);u===c?(t=!1,P.setCookie(i,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(r+=-1,t=Math.abs(r)<=o.length)}while(t);return n}function F(e,n){var t=function(){};n&&(t=(0,f.yx)((function(){clearTimeout(void 0),n()}),e.length)),e.forEach((function(e){try{e.callback((function(n){n?(e.config.storage&&L(e,n),e.idObj=e.submodule.decode(n,e.config)):(0,f.PN)("".concat(O,": ").concat(e.submodule.name," - request id responded with an empty value")),t()}))}catch(n){(0,f.H)("Error in userID module '".concat(e.submodule.name,"':"),n),t()}e.callback=void 0}))}function Q(e,n){[e].some((function(e){return!Array.isArray(e)||!e.length}))||e.forEach((function(e){e.bids&&(0,f.kJ)(e.bids)&&e.bids.forEach((function(e){var t=function(e,n){return Array.isArray(e)&&e.length&&n?e.filter((function(e){return!e.config.bidders||!(0,f.kJ)(e.config.bidders)||(0,o.q9)(e.config.bidders,n)})).filter((function(e){return(0,f.PO)(e.idObj)&&Object.keys(e.idObj).length})).reduce((function(e,n){return Object.keys(n.idObj).forEach((function(t){e[t]=n.idObj[t]})),e}),{}):{}}(n,e.bidder);Object.keys(t).length&&(e.userId=t,e.userIdAsEids=(0,d.HQ)(t))}))}))}function J(e){return new Promise((function(n){return setTimeout(n,e)}))}var z,G={};function M(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.delay,o=void 0===t?J:t,r=(0,m.v)(),c=(0,m.v)(),d=!1;function l(n){return null!=e&&e.reject(G),e=(0,m.v)(),Promise.race([n,e.promise])}var g=v,p=A;function y(e){return function(){if(g===v&&p===A)return e.apply(void 0,arguments)}}var I=l(Promise.all([s.Cd,r.promise]).then((function(){return a.rp.promise})).then(y((function(e){ie(g,p,e)}))).then((function(){return c.promise})).then(y((function(){var e=g.filter((function(e){return(0,f.LQ)(e.callback)}));if(e.length)return new Promise((function(n){return F(e,n)}))}))));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refresh,t=void 0!==n&&n,s=e.submoduleNames,f=void 0===s?null:s,m=e.ready,v=void 0!==m&&m;return v&&!d&&(d=!0,r.resolve(),h>0?c.resolve():i.on(u.FP.AUCTION_END,(function e(){i.S1(u.FP.AUCTION_END,e),o(b).then(c.resolve)}))),t&&(I=l(I.catch((function(){return null})).then((function(){return a.rp.promise})).then(y((function(e){var n=ie(g,p.filter((function(e){return null==f||f.includes(e.submodule.name)})),e,!0).filter((function(e){return null!=e.callback}));if(n.length)return new Promise((function(e){return F(n,e)}))}))))),I}}function Z(){var e=I&&(K()||[]).find((function(e){return e.source===I}));if(e&&"string"==typeof(0,g.Z)(e,"uids.0.id")){var n=e.uids[0].id.replace(/[\W_]/g,"");if(n.length>=32&&n.length<=150)return n;(0,f.yN)("User ID - Googletag Publisher Provided ID for ".concat(I," is not between 32 and 150 characters - ").concat(n))}}function B(e,n){var t=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=o.delay,i=void 0===r?J:r;Promise.race([te(),i(h)]).then((function(){Q(n.adUnits||(0,c.R)().adUnits,v);var o=Z();o&&((0,f.T9)()?window.googletag.pubads().setPublisherProvidedId(o):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push((function(){window.googletag.pubads().setPublisherProvidedId(o)})))),e.call(t,n)}))}function W(){return function(e){return Array.isArray(e)&&e.length?e.filter((function(e){return(0,f.PO)(e.idObj)&&Object.keys(e.idObj).length})).reduce((function(e,n){return Object.keys(n.idObj).forEach((function(t){e[t]=n.idObj[t]})),e}),{}):{}}(v)}function K(){return(0,d.HQ)(W())}function X(e){return(0,d.HQ)(function(e,n){if(!Array.isArray(e)||!e.length)return{};var t=e.filter((function(e){var t;return(0,f.PO)(e.idObj)&&Object.keys(e.idObj).length&&(null===(t=d.UR[Object.keys(e.idObj)[0]])||void 0===t?void 0:t.source)===n}));return(0,f.xb)(t)?[]:t[0].idObj}(v,e))[0]}function Y(e,n,t){return z().then((function(){var o={};if((0,f.LQ)(t)){(0,f.PN)("".concat(O," - Getting encrypted signal from custom function : ").concat(t.name," & source : ").concat(e," "));var r=t(e);o[e]=r?$(r):null}else{var i=X(e);(0,f.PN)("".concat(O," - Getting encrypted signal for eids :").concat(JSON.stringify(i))),(0,f.xb)(i)||(o[i.source]=!0===n?$(i):i.uids[0].id)}return(0,f.PN)("".concat(O," - Fetching encrypted eids: ").concat(o[e])),o[e]}))}function $(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t="";return 1===n&&(t="object"===y(e)?window.btoa(JSON.stringify(e)):window.btoa(e)),"".concat(n,"||").concat(t)}function ee(){if((0,f.T9)()){window.googletag.encryptedSignalProviders=window.googletag.encryptedSignalProviders||[];var e=r.vc.getConfig("userSync.encryptedSignalSources");if(e){var n=e.registerDelay||0;setTimeout((function(){e.sources&&e.sources.forEach((function(e){var n=e.source,t=e.encrypt,o=e.customFunc;n.forEach((function(e){window.googletag.encryptedSignalProviders.push({id:e,collectorFunction:function(){return Y(e,t,o)}})}))}))}),n)}else(0,f.yN)("".concat(O," - ESP : encryptedSignalSources config not defined under userSync Object"))}}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.submoduleNames,t=arguments.length>1?arguments[1]:void 0;return z({refresh:!0,submoduleNames:n}).then((function(){return t&&(0,f.LQ)(t)&&t(),W()}))}function te(){return z().then((function(){return W()}),(function(e){return e===G?te():Promise.reject(e)}))}var oe=(0,s.z3)("sync",(function(e,n){return{userIdModules:e,hasValidated:n&&n.hasValidated}}),"validateGdprEnforcement");function re(e,n,t,o){if(e.config.storage){var r,i=V(e.config.storage),c=!1;if("number"==typeof e.config.storage.refreshInSeconds){var a=new Date(V(e.config.storage,"last"));c=a&&Date.now()-a.getTime()>1e3*e.config.storage.refreshInSeconds}!i||c||o||!function(e,n){return null!=e&&e===_(n)}(t,n)?r=e.submodule.getId(e.config,n,i):"function"==typeof e.submodule.extendId&&(r=e.submodule.extendId(e.config,n,i)),(0,f.PO)(r)&&(r.id&&(L(e,r.id),i=r.id),"function"==typeof r.callback&&(e.callback=r.callback)),i&&(e.idObj=e.submodule.decode(i,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var u=e.submodule.getId(e.config,n,void 0);(0,f.PO)(u)&&("function"==typeof u.callback&&(e.callback=u.callback),u.id&&(e.idObj=e.submodule.decode(u.id,e.config)))}}function ie(e,n,t){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=oe(n,t),i=r.userIdModules,c=r.hasValidated;if(!c&&!H(t))return(0,f.yN)("".concat(O," - gdpr permission not valid for local storage or cookies, exit module")),[];var a=R();T(t);var u=i.reduce((function(e,n){try{re(n,t,a,o),e.push(n)}catch(e){(0,f.H)("Error in userID module '".concat(n.submodule.name,"':"),e)}return e}),[]);return u.length&&N(u),u.forEach(ce.bind(null,e)),u}function ce(e,n){for(var t=!1,o=0;o<e.length;o++)if(n.config.name.toLowerCase()===e[o].config.name.toLowerCase()){t=!0,e[o]=n;break}t||e.push(n)}function ae(){var e=function(e,n,t){return Array.isArray(e)?e.reduce((function(e,n){return!n||(0,f.jH)(n.name)||(!n.storage||(0,f.jH)(n.storage.type)||(0,f.jH)(n.storage.name)||-1===t.indexOf(n.storage.type)?(0,f.PO)(n.value)?e.push(n):n.storage||n.value||e.push(n):e.push(n)),e}),[]):[]}(C,0,x);if(e.length){var n=U.filter((function(e){return!(0,o.sE)(A,(function(n){return n.name===e.name}))}));A.splice(0,A.length),n.map((function(n){var t=(0,o.sE)(e,(function(e){return e.name&&(e.name.toLowerCase()===n.name.toLowerCase()||n.aliasName&&e.name.toLowerCase()===n.aliasName.toLowerCase())}));return t&&n.name!==t.name&&(t.name=n.name),n.findRootDomain=q,t?{submodule:n,config:t,callback:void 0,idObj:void 0}:null})).filter((function(e){return null!==e})).forEach((function(e){return A.push(e)})),!D&&A.length&&((0,c.R)().requestBids.before(B,40),p.after((function(e){return e(Z())})),(0,f.PN)("".concat(O," - usersync config updated for ").concat(A.length," submodules: "),A.map((function(e){return e.submodule.name}))),D=!0)}}!function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.delay,o=void 0===t?J:t;I=void 0,A=[],C=[],D=!1,v=[],z=M({delay:o}),null!=w&&w(),U=[],-1!==(x=[P.localStorageIsEnabled()?S:null,P.cookiesAreEnabled()?k:null].filter((function(e){return null!==e}))).indexOf(k)&&P.getCookie(E)?(0,f.PN)("".concat(O," - opt-out cookie found, exit module")):-1!==x.indexOf(S)&&P.getDataFromLocalStorage(E)?(0,f.PN)("".concat(O," - opt-out localStorage found, exit module")):(w=e.getConfig("userSync",(function(e){var n=e.userSync;I=n.ppid,n&&n.userIds&&(C=n.userIds,b=(0,f.hj)(n.syncDelay)?n.syncDelay:500,h=(0,f.hj)(n.auctionDelay)?n.auctionDelay:0,ae(),z({ready:!0}))})),(0,c.R)().getUserIds=W,(0,c.R)().getUserIdsAsEids=K,(0,c.R)().getEncryptedEidsForSource=Y,(0,c.R)().registerSignalSources=ee,(0,c.R)().refreshUserIds=ne,(0,c.R)().getUserIdsAsync=te,(0,c.R)().getUserIdsAsEidBySource=X)}(r.vc),(0,s.bA)("userId",(function(e){(0,o.sE)(U,(function(n){return n.name===e.name}))||(U.push(e),ae())})),window.pbjs.installedModules.push("userId")}},function(e){e(e.s=9562)}]);
"use strict";(self.pbjsChunk=self.pbjsChunk||[]).push([[342],{741:function(e,n,t){var o=t(8962),r=t(1125),i=t(9853),a=t(1879),s=t(5849);function c(e){return c="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},c(e)}var d="widespace",p="wsPerfData",u="wsLcuid",f=(0,s.df)({bidderCode:d}),l=0,h={code:d,supportedMediaTypes:["banner"],isBidRequestValid:function(e){return!(!e.params||!e.params.sid)},buildRequests:function(e,n){var t,r=[],s=("https://engine.widespace.com/map/engine/dynadreq",window.wisp&&window.wisp.ENGINE_URL?window.wisp.ENGINE_URL:"https://engine.widespace.com/map/engine/dynadreq"),d=["gender","country","region","postal","city","yob"],f=m(p).map((function(e){return JSON.parse(e)})),h=m("wsCustomData",!1)[0],b=((t=m(u,!1)[0])||(g(("4"+(new Date).getTime()+String(Math.floor(1e9*Math.random()))).substring(0,18),u,!1),t=m(u,!1)[0]),t),v=!1;try{window.top.location.toString(),v=!1}catch(e){v=!0}return e.forEach((function(e,t){var p,u,l,g={screenWidthPx:screen&&screen.width,screenHeightPx:screen&&screen.height,adSpaceHttpRefUrl:w(),referer:(v?window:window.top).location.href.split("#")[0],inFrame:1,sid:e.params.sid,lcuid:b,vol:v?"":y(document.getElementById(e.adUnitCode)),gdprCmp:n&&n.gdprConsent?1:0,hb:"1","hb.cd":h?(u=h,l="object"===c(JSON.parse(JSON.stringify(u))),encodeURIComponent(l?JSON.stringify(u):u)):"","hb.floor":"","hb.spb":0===t?(p=o.vc.getConfig("userSync"),p&&p.pixelEnabled&&p.syncEnabled?p.syncsPerBidder:-1):-1,"hb.ver":"2.0.1","hb.name":"prebidjs-6.26.0","hb.bidId":e.bidId,"hb.sizes":(0,i.sF)(e.sizes).join(","),"hb.currency":e.params.cur||e.params.currency||""};e.params.demo&&d.forEach((function(n){e.params.demo[n]&&(g[n]=e.params.demo[n])})),f[t]&&Object.keys(f[t]).forEach((function(e){g[e]=f[t][e]}));var m=navigator.connection||navigator.webkitConnection;if(m&&m.type&&m.downlinkMax&&(g["netinfo.type"]=m.type,g["netinfo.downlinkMax"]=m.downlinkMax),v||(g.forceAdId=((0,a.sE)(window.top.location.hash.split("&"),(function(e){return(0,a.q9)(e,"WS_DEBUG_FORCEADID")}))||"").split("=")[1]),g.gdprCmp){var S=n.gdprConsent,E=S.gdprApplies,C=S.consentString,D=S.vendorData,I=D&&D.hasGlobalScope;g.gdprApplies=E?1:void 0===E?"":0,g.gdprConsentData=C,g.gdprHasGlobalScope=I?1:void 0===I?"":0}Object.keys(g).forEach((function(e){""!==g[e]&&void 0!==g[e]||delete g[e]})),r.push({method:"POST",options:{contentType:"application/x-www-form-urlencoded"},url:s,data:(0,i.Re)(g)})})),l=Date.now(),r},interpretResponse:function(e,n){var t=Date.now()-l,o=e.body||[],r=[];return o.forEach((function(e){g({perf_status:"OK",perf_reqid:e.reqId,perf_ms:t},"".concat(p).concat(e.reqId)),"ad"===e.status&&r.push({requestId:e.bidId,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.adId,currency:e.currency,netRevenue:Boolean(e.netRev),ttl:e.ttl,referrer:w(),ad:e.code,meta:{advertiserDomains:e.adomain||[]}})})),r},getUserSyncs:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.reduce((function(e,n){return n&&n.body&&n.body[0]&&(n.body[0].syncPixels||[]).forEach((function(n){e.push({type:"image",url:n})})),e}),[])}};function g(e,n){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=t?JSON.stringify(e):e;if(f.hasLocalStorage())return f.setDataInLocalStorage(n,o),!0;if(f.cookiesAreEnabled()){var r=new Date,i=new Date(r.setMonth(r.getMonth()+12)).toGMTString();return f.setCookie(n,o,i),!0}}function m(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=[];return f.hasLocalStorage()&&Object.keys(localStorage).filter((function(o){o.indexOf(e)>-1&&(t.push(f.getDataFromLocalStorage(o)),n&&f.removeDataFromLocalStorage(o))})),f.cookiesAreEnabled()&&document.cookie.split(";").forEach((function(o){var r=o.split("=");r[0].indexOf(e)>-1&&(t.push(r[1]),n&&f.setCookie(r[0],"","Thu, 01 Jan 1970 00:00:01 GMT"))})),t}function y(e){if(e&&e.getBoundingClientRect){var n=e.getBoundingClientRect().top;return n<screen.height&&n>=window.top.pageYOffset?1:0}return""}function w(){try{return window.top.document.referrer}catch(e){return""}}(0,r.dX)(h),window.pbjs.installedModules.push("widespaceBidAdapter")}},function(e){e(e.s=741)}]);
pbjs.processQueue();