/* prebid.js v8.16.0 Updated: 2023-10-04 Modules: rtdModule, userId, appnexusBidAdapter, criteoBidAdapter, ixBidAdapter, orbidderBidAdapter, smartxBidAdapter, showheroes-bsBidAdapter, tripleliftBidAdapter, yieldlabBidAdapter, pubmaticBidAdapter, teadsBidAdapter, rubiconBidAdapter, adnuntiusBidAdapter, iasRtdProvider, identityLinkIdSystem, atsAnalyticsAdapter, adfBidAdapter, agmaAnalyticsAdapter, consentManagement, gdprEnforcement, schain */ if(window.pbjs&&window.pbjs.libLoaded)try{window.pbjs.getConfig("debug")&&console.warn("Attempted to load a copy of Prebid.js that clashes with the existing 'pbjs' instance. Load aborted.")}catch(e){}else (function(){ !function(){var e,n={5706:function(e,n,t){t.d(n,{Pd:function(){return s},Th:function(){return d},_U:function(){return f}});var r=t(5730),i=t(4358),o=t(265),a=t(4614),u=(0,t(8640).R)(),c="outstream";function d(e){var n=this,t=e.url,o=e.config,a=e.id,u=e.callback,d=e.loaded,s=e.adUnitCode,f=e.renderNow;this.url=t,this.config=o,this.handlers={},this.id=a,this.renderNow=f,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")};l(s)?((0,i.yN)("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(s)),o()):f?o():(this.cmd.unshift(o),(0,r.B)(t,c,this.callback,this.documentContext))}.bind(this)}function s(e){return!(!e||!e.url&&!e.renderNow)}function f(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 l(e){var n=u.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"),d=!!(c&&c.url&&c.render);return!!(i&&!0!==r.backupOnly||d&&!0!==c.backupOnly)}d.install=function(e){return new d({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode,renderNow:e.renderNow})},d.prototype.getConfig=function(){return this.config},d.prototype.setRender=function(e){this._render=e},d.prototype.setEventHandlers=function(e){this.handlers=e},d.prototype.handleVideoEvent=function(e){var 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))},d.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){(0,i.H)("Error processing Renderer command: ",e)}}},4947:function(e,n,t){t.d(n,{EL:function(){return a},Jt:function(){return l},K$:function(){return i},S1:function(){return r},S5:function(){return o},UE:function(){return u},e:function(){return d},g0:function(){return f},oK:function(){return s},x$:function(){return c}});var r="accessDevice",i="syncUser",o="enrichUfpd",a="enrichEids",u="fetchBids",c="reportAnalytics",d="transmitEids",s="transmitUfpd",f="transmitPreciseGeo",l="transmitTid"},286:function(e,n,t){t.d(n,{T:function(){return i}});var r=t(6104),i=(0,t(6310).Oj)((function(e){return r.ZP.resolveAlias(e)}))},9633:function(e,n,t){t.d(n,{UL:function(){return i},XG:function(){return a},_U:function(){return u},wu:function(){return r},y2:function(){return o}});var r="prebid",i="bidder",o="userId",a="rtd",u="analytics"},6310:function(e,n,t){t.d(n,{$k:function(){return u},Hw:function(){return v},IV:function(){return g},JR:function(){return a},Ki:function(){return d},Oj:function(){return p},Qf:function(){return f},bL:function(){return s},bp:function(){return c},cx:function(){return l}});var r=t(4942),i=t(9633),o=t(2797),a="component",u=a+"Type",c=a+"Name",d="adapterCode",s="storageType",f="configName",l="syncType",g="syncUrl",v="_config";function p(e){return function(n,t,o){var s,f=(s={},(0,r.Z)(s,u,n),(0,r.Z)(s,c,t),(0,r.Z)(s,a,"".concat(n,".").concat(t)),s);return n===i.UL&&(f[d]=e(t)),h(Object.assign(f,o))}}var h=(0,o.z3)("sync",(function(e){return e}))},1087:function(e,n,t){t.d(n,{$8:function(){return f},Db:function(){return p},Mp:function(){return w},RD:function(){return h},ZZ:function(){return l},a:function(){return y},hb:function(){return A},js:function(){return m}});var r=t(1002),i=t(3324),o=t(265),a=t(3193),u=t(571),c=t(4947);function d(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return s(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return s(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function s(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0?n.join("."):null,t]}))})),function(n,t){for(var r=[],a=arguments.length,u=new Array(a>2?a-2:0),c=2;c1?n-1:0),r=1;r0)}function m(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.xD;return function(t){return!n(e,t)}}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD;return[{name:c.e,paths:["userId","userIdAsEids"],applies:m(c.e,e)},{name:c.Jt,paths:["ortb2Imp.ext.tid"],applies:m(c.Jt,e)}].map(v)}function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD;return[{name:c.oK,paths:f,applies:m(c.oK,e)},{name:c.e,paths:l,applies:m(c.e,e)},{name:c.g0,paths:g,applies:m(c.g0,e),get:function(e){return Math.round(100*(e+Number.EPSILON))/100}},{name:c.Jt,paths:["source.tid"],applies:m(c.Jt,e)}].map(v)}var A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.xD,n=p(w(e)),t=p(b(e));return function(e){var r={};return{ortb2:function(t){return n(r,t,e),t},bidRequest:function(n){return t(r,n,e),n}}}}();(0,u.oB)(c.Jt,"enableTIDs config",(function(){if(!a.vc.getConfig("enableTIDs"))return{allow:!1,reason:"TIDs are disabled"}}))},571:function(e,n,t){t.d(n,{oB:function(){return s},xD:function(){return f}});var r=t(3324),i=t(4358),o=t(6310);function a(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return u(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return u(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(c)throw o}}}}function u(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&void 0!==arguments[0]?arguments[0]:(0,i.qp)("Activity control:"),n={};function t(e){return n[e]=n[e]||[]}function u(n,t,r,i){var a;try{a=r(i)}catch(r){e.logError("Exception in rule ".concat(t," for '").concat(n,"'"),r),a={allow:!1,reason:r}}return a&&Object.assign({activity:n,name:t,component:i[o.JR]},a)}var c={},d=1e3;function s(n){var t=n.activity,r=n.name,i=n.allow,o=n.reason,a=n.component,u="".concat(r," ").concat(i?"allowed":"denied"," '").concat(t,"' for '").concat(a,"'").concat(o?":":""),s=c.hasOwnProperty(u);if(s&&clearTimeout(c[u]),c[u]=setTimeout((function(){return delete c[u]}),d),!s){var f=[u];o&&f.push(o),(i?e.logInfo:e.logWarn).apply(e,f)}}return[function(e,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,a=t(e),u=a.findIndex((function(e){var n=(0,r.Z)(e,1)[0];return o=0&&a.splice(e,1)}},function(e,n){var i,o,c,d=a(t(e));try{for(d.s();!(c=d.n()).done;){var f=(0,r.Z)(c.value,3),l=f[0],g=f[1],v=f[2];if(i!==l&&o)break;i=l;var p=u(e,g,v,n);if(p){if(!p.allow)return s(p),!1;o=p}}}catch(e){d.e(e)}finally{d.f()}return o&&s(o),!0}]}(),d=(0,r.Z)(c,2),s=d[0],f=d[1]},875:function(e,n,t){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}}},6104:function(e,n,t){t.d(n,{uV:function(){return z}});var r=t(9062),i=t(3324),o=t(4942),a=t(4358),u=t(265),c=t(59),d=t(5339),s=t(8928),f=t(3193),l=t(2797),g=t(4614),v=t(875),p=t(5102),h=t(2513),y=t(2021),m=t(5644),b=t(9128),w=t(1176),A=t(9633),C=t(571),T=t(4947),E=t(6310),O=t(1087);function k(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 I(e){for(var n=1;n2&&void 0!==arguments[2]?arguments[2]:{},r=t.getS2SBidders,i=void 0===r?z:r;if(null==n)return e;var o=i(n);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit");function M(e,n){var t=(0,a.I8)(e),r=!1;return t.forEach((function(e){var t=e.bids.filter((function(e){var t;return e.module===j&&(null===(t=e.params)||void 0===t?void 0:t.configName)===n.configName}));1===t.length?(e.s2sBid=t[0],r=!0,e.ortb2Imp=(0,a.Ee)({},e.s2sBid.ortb2Imp,e.ortb2Imp)):t.length>1&&(0,a.yN)('Multiple "module" bids for the same s2s configuration; all will be ignored',t),e.bids=H(e.bids,n).map((function(e){return e.bid_id=(0,a._d)(),e}))})),{adUnits:t=t.filter((function(e){return 0!==e.bids.length||null!=e.s2sBid})),hasModuleBids:r}}function F(e){var n=(0,a.I8)(e);return n.forEach((function(e){e.bids=H(e.bids,null)})),n=n.filter((function(e){return 0!==e.bids.length}))}var W=(0,l.z3)("sync",(function(e,n){return e}),"setupAdUnitMediaTypes");function z(e){(0,a.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 L=(0,l.z3)("sync",(function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getS2SBidders,u=void 0===i?z:i,c=u(n);return(0,a.pP)(e).reduce((function(e,n){return e[c.has(n)?S:B].push(n),e}),(t={},(0,o.Z)(t,B,[]),(0,o.Z)(t,S,[]),t))}),"partitionBidders");function K(e,n){var t=P[e],r=(null==t?void 0:t.getSpec)&&t.getSpec();if(r&&r[n]&&"function"==typeof r[n])return[r,r[n]]}function G(e,n,t,r){try{(0,a.PN)("Invoking ".concat(e,".").concat(n));for(var i=arguments.length,o=new Array(i>4?i-4:0),u=4;u5&&void 0!==arguments[5]?arguments[5]:{},u=arguments.length>6?arguments[6]:void 0;u=(0,b.Bf)(u),y.j8(m.FP.BEFORE_REQUEST_BIDS,e),(0,c.Fb)(e),e.forEach((function(e){(0,a.PO)(e.mediaTypes)||(e.mediaTypes={}),e.bids=e.bids.filter((function(e){return!e.bidder||U.isAllowed(T.UE,q(A.UL,e.bidder))}))})),e=W(e,i);var d=L(e,_),s=d[B],l=d[S];f.vc.getConfig("bidderSequence")===f.FD&&(s=(0,a.TV)(s));var v=(0,p.nH)(),w=[],C=o.global||{},E=o.bidder||{};function O(e,n){var r=U.redact(null!=n?n:q(A.UL,e.bidderCode)),i=Object.freeze(r.ortb2((0,a.Ee)({source:{tid:t}},C,E[e.bidderCode])));return e.ortb2=i,e.bids=e.bids.map((function(e){return e.ortb2=i,r.bidRequest(e)})),e}_.forEach((function(r){var i=x(r);if(r&&r.enabled&&U.isAllowed(T.UE,i)){var o=M(e,r),c=o.adUnits,d=o.hasModuleBids,s=(0,a.DO)();(0===l.length&&d?[null]:l).forEach((function(e){var o=(0,a._d)(),d=u.fork(),f=O({bidderCode:e,auctionId:t,bidderRequestId:o,uniquePbsTid:s,bids:Z({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.I8)(c),src:m.os.YZ,metrics:d}),auctionStart:n,timeout:r.timeout,src:m.os.YZ,refererInfo:v,metrics:d},i);0!==f.bids.length&&w.push(f)})),c.forEach((function(e){var n=e.bids.filter((function(e){return(0,g.sE)(w,(function(n){return(0,g.sE)(n.bids,(function(n){return n.bidId===e.bid_id}))}))}));e.bids=n})),w.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=c.filter((function(e){return e.bids.length>0||null!=e.s2sBid})))}))}}));var k=F(e);return s.forEach((function(e){var o=(0,a._d)(),c=u.fork(),d=O({bidderCode:e,auctionId:t,bidderRequestId:o,bids:Z({bidderCode:e,auctionId:t,bidderRequestId:o,adUnits:(0,a.I8)(k),labels:i,src:"client",metrics:c}),auctionStart:n,timeout:r,refererInfo:v,metrics:c}),s=P[e];s||(0,a.H)("Trying to make a request for bidder that does not exist: ".concat(e)),s&&d.bids&&0!==d.bids.length&&w.push(d)})),w.forEach((function(e){h.rp.getConsentData()&&(e.gdprConsent=h.rp.getConsentData()),h.nX.getConsentData()&&(e.uspConsent=h.nX.getConsentData()),h.TJ.getConsentData()&&(e.gppConsent=h.TJ.getConsentData())})),w}),"makeBidRequests"),R.callBids=function(e,n,t,r,o,u,c){var d=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(n.length){var l=n.reduce((function(e,n){return e[Number(void 0!==n.src&&n.src===m.os.YZ)].push(n),e}),[[],[]]),g=(0,i.Z)(l,2),v=g[0],p=g[1],h=[];p.forEach((function(e){for(var n=-1,t=0;t0?C.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),v.forEach((function(e){y.j8(m.FP.BID_REQUESTED,I(I({},e),{},{tid:e.auctionId}))})),f.callBids(w,p,t,(function(){return A.forEach((function(e){return e()}))}),n)}}else(0,a.H)("missing "+e.adapter);b++}})),v.forEach((function(e){e.start=(0,a.AB)();var n=P[e.bidderCode];f.vc.runWithBidder(e.bidderCode,(function(){(0,a.ji)("CALLING BIDDER"),y.j8(m.FP.BID_REQUESTED,e)}));var i=(0,s.OI)(u,o?{request:o.request.bind(null,e.bidderCode),done:o.done}:void 0),d=r.bind(e);try{f.vc.runWithBidder(e.bidderCode,n.callBids.bind(n,e,t,d,i,(function(){return c(e.bidderRequestId)}),f.vc.callbackWithBidder(e.bidderCode)))}catch(n){(0,a.H)("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:n,bidRequest:e}),d()}}))}else(0,a.yN)("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},R.videoAdapters=[],R.registerBidAdapter=function(e,n){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.supportedMediaTypes,o=void 0===i?[]:i;e&&n?"function"==typeof e.callBids?(P[n]=e,h.qh.register(A.UL,n,null===(t=e.getSpec)||void 0===t?void 0:t.call(e).gvlid),(0,g.q9)(o,"video")&&R.videoAdapters.push(n),(0,g.q9)(o,"native")&&c.Sg.push(n)):(0,a.H)("Bidder adaptor error for bidder code: "+n+"bidder must implement a callBids() function"):(0,a.H)("bidAdapter or bidderCode not specified")},R.aliasBidAdapter=function(e,n,t){if(void 0===P[n]){var r=P[e];if(void 0===r){var i=[];_.forEach((function(t){if(t.bidders&&t.bidders.length){var r=t&&t.bidders;t&&(0,g.q9)(r,n)?N[n]=e:i.push(e)}})),i.forEach((function(e){(0,a.H)('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,u=function(e){var n=[];return(0,g.q9)(R.videoAdapters,e)&&n.push("video"),(0,g.q9)(c.Sg,e)&&n.push("native"),n}(e);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(n);else{var s=r.getSpec(),f=t&&t.gvlid;null!=s.gvlid&&null==f&&(0,a.yN)("Alias '".concat(n,"' will NOT re-use the GVL ID of the original adapter ('").concat(s.code,"', gvlid: ").concat(s.gvlid,"). Functionality that requires TCF consent may not work as expected."));var l=t&&t.skipPbsAliasing;o=(0,d.PZ)(Object.assign({},s,{code:n,gvlid:f,skipPbsAliasing:l})),N[n]=e}R.registerBidAdapter(o,n,{supportedMediaTypes:u})}catch(n){(0,a.H)(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else(0,a.ji)('alias name "'+n+'" has been already specified.')},R.resolveAlias=function(e){for(var n,t=e;N[t]&&(!n||!n.has(t));)t=N[t],(n=n||new Set).add(t);return t},R.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code,r=e.gvlid;n&&t?"function"==typeof n.enableAnalytics?(n.code=t,D[t]={adapter:n,gvlid:r},h.qh.register(A._U,t,r)):(0,a.H)('Prebid Error: Analytics adaptor error for analytics "'.concat(t,'"\n analytics adapter must implement an enableAnalytics() function')):(0,a.H)("Prebid Error: analyticsAdapter or analyticsCode not specified")},R.enableAnalytics=function(e){(0,a.kJ)(e)||(e=[e]),e.forEach((function(e){var n=D[e.provider];n&&n.adapter?U.isAllowed(T.x$,q(A._U,e.provider,(0,o.Z)({},E.Hw,e)))&&n.adapter.enableAnalytics(e):(0,a.H)("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},R.getBidAdapter=function(e){return P[e]},R.getAnalyticsAdapter=function(e){return D[e]},R.callTimedOutBidders=function(e,n,t){n=n.map((function(n){return n.params=(0,a.S0)(e,n.adUnitCode,n.bidder),n.timeout=t,n})),n=(0,a.vM)(n,"bidder"),Object.keys(n).forEach((function(e){J(e,"onTimeout",n[e])}))},R.callBidWonBidder=function(e,n,t){n.params=(0,a.S0)(t,n.adUnitCode,n.bidder),v.f.incrementBidderWinsCounter(n.adUnitCode,n.bidder),J(e,"onBidWon",n)},R.callBidBillableBidder=function(e){J(e.bidder,"onBidBillable",e)},R.callSetTargetingBidder=function(e,n){J(e,"onSetTargeting",n)},R.callBidViewableBidder=function(e,n){J(e,"onBidViewable",n)},R.callBidderError=function(e,n,t){J(e,"onBidderError",{error:n,bidderRequest:t})},R.callDataDeletionRequest=(0,l.z3)("sync",(function(){for(var e=arguments.length,n=new Array(e),t=0;t2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?y.K.index:t;function i(){var e=Object.keys(n);return E.every((function(t){return(0,v.q9)(e,t)&&!(0,v.q9)([void 0,null],n[t])}))}function o(e){return"Invalid bid from ".concat(n.bidderCode,". Ignoring bid: ").concat(e)}if(!e)return(0,p.yN)("No adUnitCode was supplied to addBidResponse."),!1;if(!n)return(0,p.yN)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1;if(!i())return(0,p.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;if("native"===n.mediaType&&!(0,s.r4)(n,{index:r}))return(0,p.H)(o("Native bid missing some required properties.")),!1;if("video"===n.mediaType&&!(0,f.Dn)(n,{index:r}))return(0,p.H)(o("Video bid does not have required vastUrl or renderer property")),!1;if("banner"===n.mediaType&&!U(e,n,{index:r}))return(0,p.H)(o("Banner bids require a width and height")),!1;return!0}(e,n)}))?r(e,n):r.reject(e,n,l.Gw.UI)}function q(){o(),u.vc.runWithBidder(e.code,(function(){g.j8(l.FP.BIDDER_DONE,t),n(P,t.gdprConsent,t.uspConsent,t.gppConsent)}))}}});function n(n,t,r,i){B(e,n,t,r,i)}}var j=(0,h.z3)("sync",(function(e,n,t,i,o,a){var u=a.onRequest,c=a.onResponse,d=a.onFledgeAuctionConfigs,s=a.onError,f=a.onBid,l=a.onCompletion,g=R(t);l=g.startTiming("total").stopBefore(l);var v=g.measureTime("buildRequests",(function(){return e.buildRequests(n,t)}));if(v&&0!==v.length){Array.isArray(v)||(v=[v]);var h=(0,p.yx)(l,v.length);v.forEach((function(n){var t=g.fork();function a(e){null!=e&&(e.metrics=t.fork().renameWith()),f(e)}var l=o((function(r,i){y();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:i.getResponseHeader.bind(i)}},c(r);try{r=t.measureTime("interpretResponse",(function(){return e.interpretResponse(r,n)}))}catch(n){return(0,p.H)("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,n),void h()}var o;r&&(0,p.kJ)(r.fledgeAuctionConfigs)?(d(r.fledgeAuctionConfigs),o=r.bids):o=r,o&&((0,p.kJ)(o)?o.forEach(a):a(o)),h()})),v=o((function(e,n){y(),s(e,n),h()}));u(n);var y=t.startTiming("net");function m(t){var r=n.options;return Object.assign(t,r,{browsingTopics:!(null!=r&&r.hasOwnProperty("browsingTopics")&&!r.browsingTopics)&&(0,w.xD)(T.oK,(0,A.T)(C.UL,e.code))})}switch(n.method){case"GET":i("".concat(n.url).concat(function(e){if(e)return"?".concat("object"===(0,r.Z)(e)?(0,p.Re)(e):e);return""}(n.data)),{success:l,error:v},void 0,m({method:"GET",withCredentials:!0}));break;case"POST":i(n.url,{success:l,error:v},"string"==typeof n.data?n.data:JSON.stringify(n.data),m({method:"POST",contentType:"text/plain",withCredentials:!0}));break;default:(0,p.yN)("Skipping invalid request from ".concat(e.code,". Request type ").concat(n.type," must be GET or POST")),h()}}))}else l()}),"processBidderRequests"),B=(0,h.z3)("async",(function(e,n,t,r,i){var o=u.vc.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!a.ZP.aliasRegistry[e.code])){var c=u.vc.getConfig("userSync.filterSettings"),s=e.getUserSyncs({iframeEnabled:!(!c||!c.iframe&&!c.all),pixelEnabled:!(!c||!c.image&&!c.all)},n,t,r,i);s&&(Array.isArray(s)||(s=[s]),s.forEach((function(n){d.k_.registerSync(n.type,e.code,n.url)})),d.k_.bidderDone(e.code))}}),"registerSyncs"),S=(0,h.z3)("sync",(function(e,n){}),"addComponentAuction");function U(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,o=void 0===r?y.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 a=o.getBidRequest(n),u=o.getMediaTypes(n),c=a&&a.sizes||u&&u.banner&&u.banner.sizes,d=(0,p.sF)(c);if(1===d.length){var s=d[0].split("x"),f=(0,i.Z)(s,2),l=f[0],g=f[1];return n.width=parseInt(l,10),n.height=parseInt(g,10),!0}return!1}function R(e){return(0,b.Bf)(e.metrics).renameWith((function(n){return["adapter.client.".concat(n),"adapters.client.".concat(e.bidderCode,".").concat(n)]}))}},5730:function(e,n,t){t.d(n,{B:function(){return u}});var r=t(4614),i=t(4358),o=new WeakMap,a=["debugging","adloox","criteo","outstream","adagio","spotx","browsi","brandmetrics","justtag","tncId","akamaidap","ftrackId","inskin","hadron","medianet","improvedigital","aaxBlockmeter","confiant","arcspan","airgrid","clean.io","a1Media","geoedge"];function u(e,n,t,u,c){if(n&&e){if((0,r.q9)(a,n)){u||(u=document);var d=l(u,e);if(d)return t&&"function"==typeof t&&(d.loaded?t():d.callbacks.push(t)),d.tag;var s=o.get(u)||{},f={loaded:!1,tag:null,callbacks:[]};return s[e]=f,o.set(u,s),t&&"function"==typeof t&&f.callbacks.push(t),(0,i.yN)("module ".concat(n," is loading external JavaScript")),function(n,t,r,o){r||(r=document);var a=r.createElement("script");a.type="text/javascript",a.async=!0;var u=l(r,e);u&&(u.tag=a);a.readyState?a.onreadystatechange=function(){"loaded"!==a.readyState&&"complete"!==a.readyState||(a.onreadystatechange=null,t())}:a.onload=function(){t()};a.src=n,o&&(0,i.D9)(a,o);return(0,i.jC)(a,r),a}(e,(function(){f.loaded=!0;try{for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{},r=t.method||(n?d:c);if(r===c&&n){var i=(0,a.en)(e,t);Object.assign(i.search,n),e=(0,a.Q2)(i)}var o=new Headers(t.customHeaders);o.set(s,t.contentType||"text/plain");var f={method:r,headers:o};return r!==c&&n&&(f.body=n),t.withCredentials&&(f.credentials="include"),t.browsingTopics&&isSecureContext&&(f.browsingTopics=!0),u.makeRequest(e,f)}function l(){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,r=n.done,i=function(n,t){var r,i,a;null==e||null!=(null===(r=t)||void 0===r?void 0:r.signal)||o.vc.getConfig("disableAjaxTimeout")||(a=u.timeout(e,n),t=Object.assign({signal:a.signal},t));var c=u.fetch(n,t);return null!=(null===(i=a)||void 0===i?void 0:i.done)&&(c=c.finally(a.done)),c};return null==t&&null==r||(i=function(e){return function(n,i){var o=new URL(null==(null==n?void 0:n.url)?n:n.url,document.location).origin,a=e(n,i);return t&&t(o),r&&(a=a.finally((function(){return r(o)}))),a}}(i)),i}function g(e,n){var t=e.status,r=e.statusText,i=void 0===r?"":r,o=e.headers,u=e.url,c=0;return{readyState:XMLHttpRequest.DONE,status:t,statusText:i,responseText:n,response:n,responseType:"",responseURL:u,get responseXML(){if(0===c)try{var e,t;c=(new DOMParser).parseFromString(n,null==o||null===(e=o.get(s))||void 0===e||null===(t=e.split(";"))||void 0===t?void 0:t[0])}catch(e){c=null,(0,a.H)(e)}return c},getResponseHeader:function(e){return null!=o&&o.has(e)?o.get(e):null}}}function v(e,n){var t="object"===(0,i.Z)(n)&&null!=n?n:{success:"function"==typeof n?n:function(){return null},error:function(e,n){return(0,a.H)("Network error",e,n)}},o=t.success,u=t.error;e.then((function(e){return e.text().then((function(n){return[e,n]}))})).then((function(e){var n=(0,r.Z)(e,2),t=n[0],i=n[1],a=g(t,i);t.ok||304===t.status?o(i,a):u(t.statusText,a)}),(function(){return u("",g({status:0},""))}))}function p(){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,r=n.done,i=l(e,{request:t,done:r});return function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};v(i(f(e,t,r)),n)}}var h=p();l()},1176:function(e,n,t){t.d(n,{K:function(){return ae}});var r=t(3324),i=t(9062),o=t(4358),a=t(1002),u=t(265),c=t(6463),d=t(59),s=t(8928),f=t(3193);function l(e,n){var t=n?""):"";return'\n \n \n prebid.org wrapper\n \n ").concat(t,"\n \n \n \n ")}function g(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.index,r=void 0===t?ae.index:t,i=e.vastXml?e.vastXml:l(e.vastUrl,e.vastImpUrl),o=r.getAuction(e),a=Number(e.ttl)+15,u={type:"xml",value:i,ttlseconds:a};return f.vc.getConfig("cache.vasttrack")&&(u.bidder=e.bidder,u.bidid=e.requestId,u.aid=e.auctionId),null!=o&&(u.timestamp=o.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(u.key=e.customCacheKey),u}function v(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))),[])}}}var p=t(5706),h=t(1974),y=t(2797),m=t(4614),b=t(154),w=t(4679),A=t(5975),C=t(2021),T=t(6104),E=t(5644),O=t(8792),k=t(9128);var I=t(8640),j=h.k_.syncUsers,B="completed";C.on(E.FP.BID_ADJUSTMENT,(function(e){!function(e){var n=function(e,n,t){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=i.index,u=void 0===a?ae.index:a,c=i.bs,d=void 0===c?A.S:c;t=t||u.getBidRequest(n);var s=null==n?void 0:n.adapterCode,f=(null==n?void 0:n.bidderCode)||(null===(r=t)||void 0===r?void 0:r.bidder),l=d.get(null==n?void 0:n.adapterCode,"adjustAlternateBids"),g=d.getOwn(f,"bidCpmAdjustment")||d.get(l?s:f,"bidCpmAdjustment");if(g&&"function"==typeof g)try{return g(e,Object.assign({},n),t)}catch(e){(0,o.H)("Error during bid adjustment",e)}return e}(e.cpm,e);n>=0&&(e.cpm=n)}(e)}));var S={},U={},R=[],P=(0,I.R)();function N(e){var n=e.adUnits,t=e.adUnitCodes,r=e.callback,i=e.cbTimeout,u=e.labels,c=e.auctionId,d=e.ortb2Fragments,s=e.metrics;s=(0,k.Bf)(s);var l,g,v,p,h=n,y=u,b=t,A=c||(0,o.DO)(),I=i,N=new Set,H=(0,O.P)(),M=[],W=r,z=[],L=[],J=[],V=[],Q=[];function $(){return{auctionId:A,timestamp:l,auctionEnd:g,auctionStatus:p,adUnits:h,adUnitCodes:b,labels:y,bidderRequests:z,noBids:J,bidsReceived:L,bidsRejected:M,winningBids:V,timeout:I,metrics:s,seatNonBids:Q}}function Y(e){if(e||clearTimeout(v),void 0===g){var t=[];e&&((0,o.ji)("Auction ".concat(A," timedOut")),(t=z.filter((function(e){return!N.has(e.bidderRequestId)})).flatMap((function(e){return e.bids}))).length&&C.j8(E.FP.BID_TIMEOUT,t)),p=B,g=Date.now(),s.checkpoint("auctionEnd"),s.timeBetween("requestBids","auctionEnd","requestBids.total"),s.timeBetween("callBids","auctionEnd","requestBids.callBids"),H.resolve(),C.j8(E.FP.AUCTION_END,$()),q(h,(function(){try{if(null!=W){var r=L.filter((function(e){return b.includes(e.adUnitCode)})).reduce(X,{});W.apply(P,[r,e,A]),W=null}}catch(e){(0,o.H)("Error executing bidsBackHandler",null,e)}finally{t.length&&T.ZP.callTimedOutBidders(n,t,I);var i=f.vc.getConfig("userSync")||{};i.enableOverride||j(i.syncDelay)}}))}}function ee(){f.vc.resetBidder(),(0,o.PN)("Bids Received for Auction with id: ".concat(A),L),p=B,Y(!1)}function ne(e){N.add(e)}function te(e){var n=this;e.forEach((function(e){var n;n=e,z=z.concat(n)}));var t={},r={bidRequests:e,run:function(){v=setTimeout((function(){return Y(!0)}),I),p="inProgress",C.j8(E.FP.AUCTION_INIT,$());var r=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?ae.index:t,i=0,u=!1,c=new Set,d={},s={};function l(e,n){null==s[e]&&(s[e]=O.Z.resolve()),s[e]=s[e].then((function(){return O.Z.resolve(n).catch((function(){}))}))}function g(e,t){var r=e.timeout;(null==r||r>n.getTimeout())&&(r=n.getTimeout());var i=n.getAuctionStart()+r-Date.now(),o=s[e.bidderRequestId],a=s[""];(null!=o||null!=a)&&i>0?O.Z.race([O.Z.timeout(i),O.Z.resolve(a).then((function(){return o}))]).then(t):t()}function v(){i--,u&&0===i&&e()}function p(e,n,t){return d[n.requestId]=!0,K(n,e),i++,t(v)}function h(e,t){p(e,t,(function(e){var r=G(t);r.mediaType===w.pX?Z(n,r,e):(null!=r.native&&"object"===(0,a.Z)(r.native)&&F(r),x(n,r),e())}))}function y(e,t,r){return p(e,t,(function(e){t.rejectionReason=r,(0,o.yN)("Bid from ".concat(t.bidder||"unknown bidder"," was rejected: ").concat(r),t),C.j8(E.FP.BID_REJECTED,t),n.addBidRejected(t),e()}))}function b(){var t=this,r=n.getBidRequests(),a=f.vc.getConfig("auctionOptions");if(c.add(t),a&&!(0,o.xb)(a)){var s=a.secondaryBidders;s&&!r.every((function(e){return(0,m.q9)(s,e.bidderCode)}))&&(r=r.filter((function(e){return!(0,m.q9)(s,e.bidderCode)})))}u=r.every((function(e){return c.has(e)})),t.bids.forEach((function(e){d[e.bidId]||(n.addNoBid(e),C.j8(E.FP.NO_BID,e))})),u&&0===i&&e()}return{addBidResponse:function(){function e(e,n){var t,i=r.getBidderRequest(n);l(i&&i.bidderRequestId||"",_.call({dispatch:h},e,n,(t=!1,function(r){t||(y(e,n,r),t=!0)})))}return e.reject=y,e}(),adapterDone:function(){g(this,b.bind(this))}}}(ee,n);T.ZP.callBids(h,e,r.addBidResponse,r.adapterDone,{request:function(e,n){u(S,n),u(t,e),U[e]||(U[e]={SRA:!0,origin:n}),t[e]>1&&(U[e].SRA=!1)},done:function(e){S[e]--,R[0]&&i(R[0])&&R.shift()}},I,ne,d)}};function i(e){var n=!0,t=f.vc.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===E.os.YZ?"s2s":e.bidderCode;return U[i]&&(!1===U[i].SRA&&(r=Math.min(e.bids.length,t)),S[U[i].origin]+r>t&&(n=!1)),!n})),n&&e.run(),n}function u(e,n){void 0===e[n]?e[n]=1:e[n]++}i(r)||((0,o.yN)("queueing auction due to limited endpoint capacity"),R.push(r))}return C.on(E.FP.SEAT_NON_BID,(function(e){var n;e.auctionId===A&&(n=e.seatnonbid,Q=Q.concat(n))})),{addBidReceived:function(e){L=L.concat(e)},addBidRejected:function(e){M=M.concat(e)},addNoBid:function(e){J=J.concat(e)},callBids:function(){p="started",l=Date.now();var e=s.measureTime("requestBids.makeRequests",(function(){return T.ZP.makeBidRequests(h,l,A,I,y,d,s)}));(0,o.PN)("Bids Requested for Auction with id: ".concat(A),e),s.checkpoint("callBids"),e.length<1?((0,o.yN)("No valid bid requests returned for auction"),ee()):D.call({dispatch:te,context:this},e)},addWinningBid:function(e){var t=n.find((function(n){return n.transactionId===e.transactionId}));V=V.concat(e),T.ZP.callBidWonBidder(e.adapterCode||e.bidder,e,n),t&&!t.deferBilling&&T.ZP.callBidBillableBidder(e)},setBidTargeting:function(e){T.ZP.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:function(){return V},getAuctionStart:function(){return l},getAuctionEnd:function(){return g},getTimeout:function(){return I},getAuctionId:function(){return A},getAuctionStatus:function(){return p},getAdUnits:function(){return h},getAdUnitCodes:function(){return b},getBidRequests:function(){return z},getBidsReceived:function(){return L},getNoBids:function(){return J},getNonBids:function(){return Q},getFPD:function(){return d},getMetrics:function(){return s},end:H.promise}}var _=(0,y.z3)("sync",(function(e,n,t){this.dispatch.call(null,e,n)}),"addBidResponse"),D=(0,y.z3)("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),q=(0,y.z3)("async",(function(e,n){n&&n()}),"bidsBackCallback");function x(e,n){!function(e){var n,t=!0===A.S.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(t||e.dealId)&&(n=function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).index,r=void 0===t?ae.index:t;if(!n)return{};var i=r.getBidRequest(n),o={},a=$(n.mediaType,e);Y(o,a,n,i),e&&A.S.getOwn(e,E.k2.xn)&&(Y(o,A.S.ownSettingsFor(e),n,i),n.sendStandardTargeting=A.S.get(e,"sendStandardTargeting"));n.native&&(o=Object.assign({},o,(0,d.Ur)(n)));return o}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},n)}(n),(0,k.Bf)(n.metrics).timeSince("addBidResponse","addBidResponse.total"),e.addBidReceived(n),C.j8(E.FP.BID_RESPONSE,n)}function Z(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.index,a=void 0===i?ae.index:i,c=!0,d=(0,u.Z)(a.getMediaTypes({requestId:n.originalRequestId||n.requestId,transactionId:n.transactionId}),"video"),s=d&&(0,u.Z)(d,"context"),l=d&&(0,u.Z)(d,"useCacheKey");f.vc.getConfig("cache.url")&&(l||s!==b.gZ)&&(!n.videoCacheKey||f.vc.getConfig("cache.ignoreBidderCacheKey")?(c=!1,L(e,n,t,d)):n.vastUrl||((0,o.H)("videoCacheKey specified but not required vastUrl for video bid"),c=!1)),c&&(x(e,n),t())}var H,M,F=function(e){var n,t,r=null===(n=ae.index.getAdUnit(e))||void 0===n?void 0:n.nativeOrtbRequest,i=null===(t=e.native)||void 0===t?void 0:t.ortb;if(r&&i){var o=(0,d.zq)(i,r);Object.assign(e.native,o)}},W=function(e){!function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.OI,r={puts:e.map(g)};t(f.vc.getConfig("cache.timeout"))(f.vc.getConfig("cache.url"),v(n),JSON.stringify(r),{contentType:"text/plain",withCredentials:!0})}(e.map((function(e){return e.bidResponse})),(function(n,t){t.forEach((function(t,r){var i,a=e[r],u=a.auctionInstance,c=a.bidResponse,d=a.afterBidAdded;n?(0,o.yN)("Failed to save to the video cache: ".concat(n,". Video bid must be discarded.")):""===t.uuid?(0,o.yN)("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."):(c.videoCacheKey=t.uuid,c.vastUrl||(c.vastUrl=(i=c.videoCacheKey,"".concat(f.vc.getConfig("cache.url"),"?uuid=").concat(i))),x(u,c),d())}))}))};f.vc.getConfig("cache",(function(e){H="number"==typeof e.cache.batchSize&&e.cache.batchSize>0?e.cache.batchSize:1,M="number"==typeof e.cache.batchTimeout&&e.cache.batchTimeout>0?e.cache.batchTimeout:0}));var z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:setTimeout,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W,t=[[]],r=!1,i=function(e){return e()};return function(o,a,u){var c=M>0?e:i;t[t.length-1].length>=H&&t.push([]),t[t.length-1].push({auctionInstance:o,bidResponse:a,afterBidAdded:u}),r||(r=!0,c((function(){t.forEach(n),t=[[]],r=!1}),M))}}(),L=(0,y.z3)("async",(function(e,n,t,r){z(e,n,t)}),"callPrebidCache");function K(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.index,i=void 0===r?ae.index:r,a=i.getBidderRequest(e),u=i.getAdUnit(e),c=a&&a.start||e.requestTimestamp;Object.assign(e,{responseTimestamp:e.responseTimestamp||(0,o.AB)(),requestTimestamp:e.requestTimestamp||c,cpm:parseFloat(e.cpm)||0,bidder:e.bidder||e.bidderCode,adUnitCode:n}),null!=(null==u?void 0:u.ttlBuffer)&&(e.ttlBuffer=u.ttlBuffer),e.timeToRespond=e.responseTimestamp-e.requestTimestamp}function G(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?ae.index:r;C.j8(E.FP.BID_ADJUSTMENT,e);var o=(null===(n=i.getBidRequest(e))||void 0===n?void 0:n.renderer)||i.getAdUnit(e).renderer,u=e.mediaType,d=i.getMediaTypes(e),s=d&&d[u],l=s&&s.renderer,g=null;l&&l.url&&l.render&&(!0!==l.backupOnly||!e.renderer)?g=l:o&&o.url&&o.render&&(!0!==o.backupOnly||!e.renderer)&&(g=o),g&&(e.renderer=p.Th.install({url:g.url,config:g.options}),e.renderer.setRender(g.render));var v=J(e.mediaType,d,f.vc.getConfig("mediaTypePriceGranularity")),h=(0,c.D)(e.cpm,"object"===(0,a.Z)(v)?v:f.vc.getConfig("customPriceBucket"),f.vc.getConfig("currency.granularityMultiplier"));return e.pbLg=h.low,e.pbMg=h.med,e.pbHg=h.high,e.pbAg=h.auto,e.pbDg=h.dense,e.pbCg=h.custom,e}function J(e,n,t){if(e&&t){if(e===w.pX){var r=(0,u.Z)(n,"".concat(w.pX,".context"),"instream");if(t["".concat(w.pX,"-").concat(r)])return t["".concat(w.pX,"-").concat(r)]}return t[e]}}var V=function(e){return function(n){var t=e||function(e){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).index,t=void 0===n?ae.index:n,r=J(e.mediaType,t.getMediaTypes(e),f.vc.getConfig("mediaTypePriceGranularity"));return"string"==typeof e.mediaType&&r?"string"==typeof r?r:"custom":f.vc.getConfig("priceGranularity")}(n);return t===E.Ql.B7?n.pbAg:t===E.Ql.uN?n.pbDg:t===E.Ql.yE?n.pbLg:t===E.Ql.M2?n.pbMg:t===E.Ql.lj?n.pbHg:t===E.Ql.qN?n.pbCg:void 0}};function Q(e,n){return{key:e,val:"function"==typeof n?function(e,t){return n(e,t)}:function(e){return(0,o.NA)(e,n)}}}function $(e,n){var t=E.TD,r=Object.assign({},A.S.settingsFor(null));if(r[E.k2.xn]||(r[E.k2.xn]=function(){var e=E.TD;return[Q(e.BIDDER,"bidderCode"),Q(e.AD_ID,"adId"),Q(e.PRICE_BUCKET,V()),Q(e.SIZE,"size"),Q(e.DEAL,"dealId"),Q(e.SOURCE,"source"),Q(e.FORMAT,"mediaType"),Q(e.ADOMAIN,(function(e){return e.meta&&e.meta.advertiserDomains&&e.meta.advertiserDomains.length>0?[e.meta.advertiserDomains].flat()[0]:""})),Q(e.ACAT,(function(e){return e.meta&&e.meta.primaryCatId?e.meta.primaryCatId:""})),Q(e.DSP,(function(e){return e.meta&&(e.meta.networkId||e.meta.networkName)?(0,u.Z)(e,"meta.networkName")||(0,u.Z)(e,"meta.networkId"):""})),Q(e.CRID,(function(e){return e.creativeId?e.creativeId:""}))]}()),"video"===e){var i=r[E.k2.xn].slice();if(r[E.k2.xn]=i,[t.UUID,t.CACHE_ID].forEach((function(e){void 0===(0,m.sE)(i,(function(n){return n.key===e}))&&i.push(Q(e,"videoCacheKey"))})),f.vc.getConfig("cache.url")&&(!n||!1!==A.S.get(n,"sendStandardTargeting"))){var a=(0,o.en)(f.vc.getConfig("cache.url"));void 0===(0,m.sE)(i,(function(e){return e.key===t.CACHE_HOST}))&&i.push(Q(t.CACHE_HOST,(function(e){return(0,u.Z)(e,"adserverTargeting.".concat(t.CACHE_HOST))?e.adserverTargeting[t.CACHE_HOST]:a.hostname})))}}return r}function Y(e,n,t,r){var i=n[E.k2.xn];return t.size=t.getSize(),(i||[]).forEach((function(i){var a=i.key,u=i.val;if(e[a]&&(0,o.yN)("The key: "+a+" is being overwritten"),(0,o.LQ)(u))try{u=u(t,r)}catch(e){(0,o.H)("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&a!==E.TD.DEAL&&a!==E.TD.ACAT&&a!==E.TD.DSP&&a!==E.TD.CRID||!(0,o.jH)(u)&&null!=u?e[a]=u:(0,o.PN)("suppressing empty key '"+a+"' from adserver targeting")})),e}function X(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}function ee(e){Object.assign(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 ne=t(613),te=t(8833);function re(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return ie(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return ie(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function ie(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t1&&void 0!==arguments[1]?arguments[1]:{},t=n.src,i=void 0===t?"client":t,o=n.bidder,a=void 0===o?"":o,u=n.bidId,c=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=u,this.transactionId=c,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)}},3193:function(e,n,t){t.d(n,{FD:function(){return g},vc:function(){return m}});var r=t(4942),i=t(1002),o=t(3324),a=t(6463),u=t(4614),c=t(4358),d=t(265),s=t(5644);function f(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}var l="TRUE"===(0,c.ak)(s.f).toUpperCase(),g="random",v={};v[g]=!0,v.fixed=!0;var p=g,h={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},y="*";var m=function(){var e,n,t,s=[],g=null;function m(){function r(e){return d[e].val}function i(e,n){d[e].val=n}e={};var d={publisherDomain:{set:function(e){null!=e&&(0,c.yN)("publisherDomain is deprecated and has no effect since v7 - use pageUrl instead"),i("publisherDomain",e)}},priceGranularity:{val:h.MEDIUM,set:function(e){g(e)&&("string"==typeof e?i("priceGranularity",f(e)?e:h.MEDIUM):(0,c.PO)(e)&&(i("customPriceBucket",e),i("priceGranularity",h.CUSTOM),(0,c.ji)("Using custom price granularity")))}},customPriceBucket:{val:{},set:function(){}},mediaTypePriceGranularity:{val:{},set:function(e){null!=e&&i("mediaTypePriceGranularity",Object.keys(e).reduce((function(n,t){return g(e[t])?"string"==typeof e?n[t]=f(e[t])?e[t]:r("priceGranularity"):(0,c.PO)(e)&&(n[t]=e[t],(0,c.ji)("Using custom price granularity for ".concat(t))):(0,c.yN)("Invalid price granularity for media type: ".concat(t)),n}),{}))}},bidderSequence:{val:p,set:function(e){v[e]?i("bidderSequence",e):(0,c.yN)("Invalid order: ".concat(e,". Bidder Sequence was not set."))}},auctionOptions:{val:{},set:function(e){(function(e){if(!(0,c.PO)(e))return(0,c.yN)("Auction Options must be an object"),!1;for(var n=0,t=Object.keys(e);n2&&void 0!==arguments[2]?arguments[2]:{},i=n;if("string"!=typeof e&&(i=e,e=y,t=n||{}),"function"==typeof i){var o={topic:e,callback:i};return s.push(o),t.init&&i(e===y?T():(0,r.Z)({},e,T(e))),function(){s.splice(s.indexOf(o),1)}}(0,c.H)("listener must be a function")}function S(e){var n=Object.keys(e);s.filter((function(e){return(0,u.q9)(n,e.topic)})).forEach((function(n){n.callback((0,r.Z)({},n.topic,e[n.topic]))})),s.filter((function(e){return e.topic===y})).forEach((function(n){return n.callback(e)}))}function U(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 o=e.config[i];if((0,c.PO)(o)){var a=n?c.Ee:Object.assign;t[r][i]=a({},t[r][i]||{},o)}else t[r][i]=o}))}))}catch(e){(0,c.H)(e)}function r(e){if(!(0,c.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,c.PO)(e.config))throw"setBidderConfig bidder options must contain a config object"}}function R(e,n){g=e;try{return n()}finally{P()}}function P(){g=null}return m(),{getCurrentBidder:function(){return g},resetBidder:P,getConfig:T,getAnyConfig:C,readConfig:k,readAnyConfig:I,setConfig:j,mergeConfig:function(e){if((0,c.PO)(e)){var n=(0,c.Ee)(b(),e);return j(function(e){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:(0,p.AB)();this.generatedTime=n,(0,v.Z)(this,I,!0),A(this,B,U).call(this,e)}},{key:"getConsentData",value:function(){return(0,g.Z)(this,E)}},{key:"hash",get:function(){var e=this;return(0,g.Z)(this,I)&&((0,v.Z)(this,j,(0,p._R)(JSON.stringify((0,g.Z)(this,E)&&this.hashFields?this.hashFields.map((function(n){return(0,g.Z)(e,E)[n]})):(0,g.Z)(this,E)))),(0,v.Z)(this,I,!1)),(0,g.Z)(this,j)}}]),e}();function U(e){(0,v.Z)(this,k,!0),(0,v.Z)(this,E,e),(0,g.Z)(this,O).resolve(e)}var R=function(e){a(t,e);var n=m(t);function t(){return(0,s.Z)(this,t),n.apply(this,arguments)}return(0,f.Z)(t,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),t}(S),P=function(e){a(t,e);var n=m(t);function t(){var e;(0,s.Z)(this,t);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:W;function n(n){return function(){return Object.fromEntries(e.map((function(e){var t=(0,r.Z)(e,2);return[t[0],t[1][n]()]})))}}return e=Object.entries(e),Object.assign({get promise(){return h.Z.all(e.map((function(e){var n=(0,r.Z)(e,2),t=n[0];return n[1].promise.then((function(e){return[t,e]}))}))).then((function(e){return Object.fromEntries(e)}))},get hash(){return(0,p._R)(e.map((function(e){var n=(0,r.Z)(e,2);n[0];return n[1].hash})).join(":"))}},Object.fromEntries(["getConsentData","getConsentMeta","reset"].map((function(e){return[e,n(e)]}))))}()},6463:function(e,n,t){t.d(n,{D:function(){return f},t:function(){return g}});var r=t(4614),i=t(4358),o=t(3193),a={buckets:[{max:5,increment:.5}]},u={buckets:[{max:20,increment:.1}]},c={buckets:[{max:20,increment:.01}]},d={buckets:[{max:3,increment:.01},{max:8,increment:.05},{max:20,increment:.5}]},s={buckets:[{max:5,increment:.05},{max:10,increment:.1},{max:20,increment:.5}]};function f(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":l(e,a,t),med:""===r?"":l(e,u,t),high:""===r?"":l(e,c,t),auto:""===r?"":l(e,s,t),dense:""===r?"":l(e,d,t),custom:""===r?"":l(e,n,t)}}function l(e,n,t){var a="";if(!g(n))return a;var u=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),c=0,d=(0,r.sE)(n.buckets,(function(n){if(e>u.max*t){var r=n.precision;void 0===r&&(r=2),a=(n.max*t).toFixed(r)}else{if(e<=n.max*t&&e>=c*t)return n.min=c,n;c=n.max}}));return d&&(a=function(e,n,t){var r=void 0!==n.precision?n.precision:2,a=n.increment*t,u=n.min*t,c=Math.floor,d=o.vc.getConfig("cpmRoundingFunction");"function"==typeof d&&(c=d);var s,f,l=Math.pow(10,r+2),g=(e*l-u*l)/(a*l);try{s=c(g)*a+u}catch(e){f=!0}(f||"number"!=typeof s)&&((0,i.yN)("Invalid rounding function passed in config"),s=Math.floor(g)*a+u);return(s=Number(s.toFixed(10))).toFixed(r)}(e,d,t)),a}function g(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}},2021:function(e,n,t){t.d(n,{S1:function(){return h},j8:function(){return m},on:function(){return p},vw:function(){return y}});var r=t(4358),i=t(5644),o=t(613),a=t(3193),u="eventHistoryTTL",c=null,d=(0,o.Z)({monotonic:!0,ttl:function(){return c}});a.vc.getConfig(u,(function(e){var n,t=c;e=null===(n=e)||void 0===n?void 0:n[u],t!==(c="number"==typeof e?1e3*e:null)&&d.refresh()}));var s=Array.prototype.slice,f=Array.prototype.push,l=Object.values(i.FP),g=i.aI,v=function(){var e={},n={};function t(n,t){r.ji("Emitting event for: "+n);var i=t[0]||{},o=i[g[n]],a=e[n]||{que:[]},u=Object.keys(a),c=[];d.add({eventType:n,args:i,id:o,elapsedTime:r.bd()}),o&&u.includes(o)&&f.apply(c,a[o].que),f.apply(c,a.que),(c||[]).forEach((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 l.includes(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 :"+l)},n.emit=function(e){var n=s.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?(o[i].que||[]).forEach((function(e){var n=o[i].que;e===t&&n.splice(n.indexOf(e),1)})):(o.que||[]).forEach((function(e){var n=o.que;e===t&&n.splice(n.indexOf(e),1)})),e[n]=o)},n.get=function(){return e},n.addEvents=function(e){l=l.concat(e)},n.getEvents=function(){return d.toArray().map((function(e){return Object.assign({},e)}))},n}();r.u2(v.emit.bind(v));var p=v.on,h=v.off,y=(v.get,v.getEvents),m=v.emit;v.addEvents},4078:function(e,n,t){t.d(n,{S:function(){return A}});var r=t(3324),i=t(2797),o=t(5102),a=t(8196),u=t(4358),c=t(6475),d=t(3193),s=t(8792),f=["architecture","bitness","model","platformVersion","fullVersionList"],l=["brands","mobile","platform"],g=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,t=n&&l.some((function(e){return void 0!==n[e]}))?Object.freeze(p(1,n)):null;return function(){return t}}(),v=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null===(e=window.navigator)||void 0===e?void 0:e.userAgentData,t={},r=new WeakMap;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f;if(!r.has(e)){var i=Array.from(e);i.sort(),r.set(e,i.join("|"))}var o=r.get(e);if(!t.hasOwnProperty(o))try{t[o]=n.getHighEntropyValues(e).then((function(e){return(0,u.xb)(e)?null:Object.freeze(p(2,e))})).catch((function(){return null}))}catch(e){t[o]=s.Z.resolve(null)}return t[o]}}();function p(e,n){function t(e,n){var t={brand:e};return(0,u.d8)(n)&&!(0,u.jH)(n)&&(t.version=n.split(".")),t}var r={source:e};return n.platform&&(r.platform=t(n.platform,n.platformVersion)),(n.fullVersionList||n.brands)&&(r.browsers=(n.fullVersionList||n.brands).map((function(e){return t(e.brand,e.version)}))),void 0!==n.mobile&&(r.mobile=n.mobile?1:0),["model","bitness","architecture"].forEach((function(e){var t=n[e];(0,u.d8)(t)&&(r[e]=t)})),r}var h=t(3790);function y(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(!e)return;if("string"==typeof e)return m(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,n)}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function m(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(t[i]=(0,u.Ee)({},a,t[i]))})),i&&(0,c.N)(t,"device.sua",Object.assign({},i,t.device.sua)),t=w(t);var a,s=y(h.Iq);try{for(s.s();!(a=s.n()).done;){var f=a.value;if((0,h.Qg)(t,f)){t[f]=(0,u.Ee)({},O(t,o),t[f]);break}}}catch(e){s.e(e)}finally{s.f()}return t}));var n}));function C(e){try{return e(b.getWindowTop())}catch(n){return e(b.getWindowSelf())}}function T(e){return(0,u.iG)(e,Object.keys(e))}var E={site:function(e,n){if(!h.Iq.filter((function(e){return"site"!==e})).some(h.Qg.bind(null,e)))return T({page:n.page,ref:n.ref})},device:function(){return C((function(e){return{w:e.innerWidth||e.document.documentElement.clientWidth||e.document.body.clientWidth,h:e.innerHeight||e.document.documentElement.clientHeight||e.document.body.clientHeight,dnt:(0,u.oV)()?1:0,ua:e.navigator.userAgent,language:e.navigator.language.split("-").shift()}}))},regs:function(){var e={};C((function(e){return e.navigator.globalPrivacyControl}))&&(0,c.N)(e,"ext.gpc",1);var n=d.vc.getConfig("coppa");return"boolean"==typeof n&&(e.coppa=n?1:0),e}};function O(e,n){var t,r,i,a=(0,o.hh)(n.page,{noLeadingWww:!0});return T({domain:a,keywords:null===(t=C((function(e){return e.document.querySelector("meta[name='keywords']")})))||void 0===t||null===(r=t.content)||void 0===r||null===(i=r.replace)||void 0===i?void 0:i.call(r,/\s/g,""),publisher:T({domain:b.findRootDomain(a)})})}},3790:function(e,n,t){t.d(n,{A_:function(){return o},Iq:function(){return i},Qg:function(){return a}});var r=t(4358),i=["dooh","app","site"];function o(e){return function(n){return i.reduce((function(t,i){return a(n,i)&&(null!=t?((0,r.yN)("".concat(e," specifies both '").concat(t,"' and '").concat(i,"'; dropping the latter.")),delete n[i]):t=i),t}),null),n}}function a(e,n){return null!=e[n]&&Object.keys(e[n]).length>0}},8196:function(e,n,t){t.d(n,{W:function(){return o}});var r=t(4358),i=(0,t(5164).eA)("fpdEnrichment"),o=(0,r.HP)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.host;if(!i.cookiesAreEnabled())return e;var n,t,o=e.split(".");if(2===o.length)return e;var a=-2,u="_rdc".concat(Date.now()),c="writeable";do{n=o.slice(a).join(".");var d=new Date((0,r.AB)()+1e4).toUTCString();i.setCookie(u,c,d,"Lax",n,void 0);var s=i.getCookie(u,void 0);s===c?(t=!1,i.setCookie(u,"","Thu, 01 Jan 1970 00:00:01 GMT",void 0,n,void 0)):(a+=-1,t=Math.abs(a)<=o.length)}while(t);return n}))},2797:function(e,n,t){t.d(n,{Bx:function(){return g},Cd:function(){return d},IF:function(){return v},bA:function(){return l},v5:function(){return s},z3:function(){return u}});var r=t(9062),i=t(1432),o=t.n(i),a=t(8792),u=o()({ready:o().SYNC|o().ASYNC|o().QUEUE}),c=(0,a.P)();u.ready=function(){var e=u.ready;return function(){try{return e.apply(u,arguments)}finally{c.resolve()}}}();var d=c.promise,s=u.get;var f={};function l(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.postInstallAllowed,o=void 0!==i&&i;u("async",(function(t){t.forEach((function(e){return n.apply(void 0,(0,r.Z)(e))})),o&&(f[e]=n)}),e)([])}function g(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return a=e.done,e},e:function(e){u=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(u)throw o}}}}function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t0&&(o.img.ext={aspectratios:s})}else(0,u.H)("image.aspect_ratios was passed, but it's empty:",r.aspect_ratios);else(0,u.H)("image.aspect_ratios was passed, but it's not a an array:",r.aspect_ratios);r.sizes&&(2===r.sizes.length&&(0,u.U)(r.sizes[0])&&(0,u.U)(r.sizes[1])?(o.img.w=r.sizes[0],o.img.h=r.sizes[1],delete o.img.hmin,delete o.img.wmin):(0,u.H)("image.sizes was passed, but its value is not an array of integers:",r.sizes))}else"title"===t?o.title={len:r.len||140}:"ext"===t&&(o.ext=r,delete o.required);n.assets.push(o)}else n.privacy=1;else(0,u.H)("Unrecognized native asset code: ".concat(t,". Asset will be ignored."));return n}(e.nativeParams))}))}function S(e){var n=e.assets;if(!Array.isArray(n)||0===n.length)return(0,u.H)("assets in mediaTypes.native.ortb is not an array, or it's empty. Assets: ",n),!1;var t=n.map((function(e){return e.id}));return n.length!==new Set(t).size||t.some((function(e){return e!==parseInt(e,10)}))?((0,u.H)("each asset object must have 'id' property, it must be unique and it must be an integer"),!1):e.hasOwnProperty("eventtrackers")&&!Array.isArray(e.eventtrackers)?((0,u.H)("ortb.eventtrackers is not an array. Eventtrackers: ",e.eventtrackers),!1):n.every((function(e){return function(e){if(!(0,u.PO)(e))return(0,u.H)("asset must be an object. Provided asset: ",e),!1;if(e.img){if(!(0,u.hj)(e.img.w)&&!(0,u.hj)(e.img.wmin))return(0,u.H)("for img asset there must be 'w' or 'wmin' property"),!1;if(!(0,u.hj)(e.img.h)&&!(0,u.hj)(e.img.hmin))return(0,u.H)("for img asset there must be 'h' or 'hmin' property"),!1}else if(e.title){if(!(0,u.hj)(e.title.len))return(0,u.H)("for title asset there must be 'len' property defined"),!1}else if(e.data){if(!(0,u.hj)(e.data.type))return(0,u.H)("for data asset 'type' property must be a number"),!1}else if(e.video&&!(Array.isArray(e.video.mimes)&&Array.isArray(e.video.protocols)&&(0,u.hj)(e.video.minduration)&&(0,u.hj)(e.video.maxduration)))return(0,u.H)("video asset is not properly configured"),!1;return!0}(e)}))}function U(e){var n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.index,i=void 0===r?d.K.index:r,o=i.getAdUnit(e);if(!o)return!1;var a=o.nativeOrtbRequest,u=(null===(n=e.native)||void 0===n?void 0:n.ortb)||z(e.native,a);return R(u,a)}function R(e,n){if(!(0,a.Z)(e,"link.url"))return(0,u.H)("native response doesn't have 'link' property. Ortb response: ",e),!1;var t=n.assets.filter((function(e){return 1===e.required})).map((function(e){return e.id})),r=e.assets.map((function(e){return e.id})),i=t.every((function(e){return(0,c.q9)(r,e)}));return i||(0,u.H)("didn't receive a bid with all required assets. Required ids: ".concat(t,", but received ids in response: ").concat(r)),i}function P(e,n){var t=n.native.ortb||W(n.native);return"click"===e.action?function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).fetchURL,r=void 0===t?u.hq:t;if(n){var i,o=(e.assets||[]).filter((function(e){return e.link})).reduce((function(e,n){return e[n.id]=n.link,e}),{}),a=(null===(i=e.link)||void 0===i?void 0:i.clicktrackers)||[],c=o[n],d=a;c&&(d=c.clicktrackers||[]),d.forEach((function(e){return r(e)}))}else{var s;((null===(s=e.link)||void 0===s?void 0:s.clicktrackers)||[]).forEach((function(e){return r(e)}))}}(t,null==e?void 0:e.assetId):function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.runMarkup,r=void 0===t?function(e){return(0,u.$8)(e)}:t,i=n.fetchURL,o=void 0===i?u.hq:i,a=(e.eventtrackers||[]).filter((function(e){return e.event===I})).reduce((function(e,n){return k.hasOwnProperty(n.method)&&e[k[n.method]].push(n.url),e}),{img:[],js:[]}),c=a.img,d=a.js;e.imptrackers&&(c=c.concat(e.imptrackers));c.forEach((function(e){return o(e)})),d=d.map((function(e){return'