-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprebid.js
22 lines (22 loc) · 117 KB
/
prebid.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* prebid.js v0.27.0-pre
Updated : 2017-08-03 */
!(function(e){function n(t){if(r[t])return r[t].exports;var i=r[t]={i:t,l:!1,exports:{}};return e[t].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var t=window.pbjsChunk;window.pbjsChunk=function(r,o,a){for(var s,d,u,c=0,f=[];c<r.length;c++)d=r[c],i[d]&&f.push(i[d][0]),i[d]=0;for(s in o)Object.prototype.hasOwnProperty.call(o,s)&&(e[s]=o[s]);for(t&&t(r,o,a);f.length;)f.shift()();if(a)for(c=0;c<a.length;c++)u=n(n.s=a[c]);return u};var r={},i={85:0};n.e=function(e){if(0===i[e])return callback.call(null,n);console.error("webpack chunk not found and jsonp disabled")},n.m=e,n.c=r,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n.oe=function(e){throw console.error(e),e},n(n.s=213)})([(function(e,n,t){"use strict";function r(){return h()+Math.random().toString(16).substr(2)}function i(e){if(n.isArray(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1]))return e[0]+"x"+e[1]}function o(){return window.console&&window.console.log}function a(e,n,t){return t.indexOf(e)===n}function s(e,n){return e.concat(n)}function d(e){return Object.keys(e)}function u(e,n){return e[n]}Object.defineProperty(n,"__esModule",{value:!0});var 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};n.parseSizesInput=function(e){var n=[];if((void 0===e?"undefined":c(e))===p){var t=e.split(","),r=/^(\d)+x(\d)+$/i;if(t)for(var o in t)T(t,o)&&t[o].match(r)&&n.push(t[o])}else if((void 0===e?"undefined":c(e))===l){var a=e.length;if(a>0)if(2===a&&c(e[0])===g&&c(e[1])===g)n.push(i(e));else for(var s=0;s<a;s++)n.push(i(e[s]))}return n},n.parseGPTSingleSizeArray=i,n.uniques=a,n.flatten=s,n.getBidRequest=function(e){return pbjs._bidsRequested.map((function(n){return n.bids.find((function(n){return n.bidId===e}))})).find((function(e){return e}))},n.getKeys=d,n.getValue=u,n.getBidderCodes=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits).map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(s,[])})).reduce(s).filter(a)},n.isGptPubadsDefined=function(){if(window.googletag&&n.isFn(window.googletag.pubads)&&n.isFn(window.googletag.pubads().getSlots))return!0},n.getHighestCpm=function(e,n){return e.cpm===n.cpm?e.timeToRespond>n.timeToRespond?n:e:e.cpm<n.cpm?n:e},n.shuffle=function(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},n.adUnitsFilter=function(e,n){return e.includes(n&&n.placementCode||n&&n.adUnitCode)},n.isSrcdocSupported=function(e){return e.defaultView&&e.defaultView.frameElement&&"srcdoc"in e.defaultView.frameElement&&!/firefox/i.test(navigator.userAgent)},n.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},n.inIframe=function(){try{return window.self!==window.top}catch(e){return!0}},n.isSafariBrowser=function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)},n.replaceAuctionPrice=function(e,n){if(e)return e.replace(/\$\{AUCTION_PRICE\}/g,n)},n.getBidderRequestAllAdUnits=function(e){return pbjs._bidsRequested.find((function(n){return n.bidderCode===e}))},n.getBidderRequest=function(e,n){return pbjs._bidsRequested.find((function(t){return t.bids.filter((function(t){return t.bidder===e&&t.placementCode===n})).length>0}))||{start:null,requestId:null}};var f=t(4),l="object",p="string",g="number",b=!1,v=Object.prototype.toString,m=null;try{m=console.info.bind(window.console)}catch(e){}n.replaceTokenInString=function(e,n,t){return this._each(n,(function(n,r){n=void 0===n?"":n;var i=t+r.toUpperCase()+t,o=new RegExp(i,"g");e=e.replace(o,n)})),e};var h=(function(){var e=0;return function(){return++e}})();n.getUniqueIdentifierStr=r,n.generateUUID=function e(n){return n?(n^16*Math.random()>>n/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},n.getBidIdParameter=function(e,n){return n&&n[e]?n[e]:""},n.tryAppendQueryString=function(e,n,t){return t?e+=n+"="+encodeURIComponent(t)+"&":e},n.parseQueryStringParameters=function(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n},n.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?d(e).map((function(n){return n+"="+encodeURIComponent(u(e,n))})).join("&"):""},n.getTopWindowLocation=function(){var e=void 0;try{e=window.top.location}catch(n){e=window.location}return e},n.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(n){e=""}return e},n.logWarn=function(e){E()&&console.warn&&console.warn("WARNING: "+e)},n.logInfo=function(e,n){E()&&o()&&m&&(n&&0!==n.length||(n=""),m("INFO: "+e+(""===n?"":" : params : "),n))},n.logMessage=function(e){E()&&o()&&console.log("MESSAGE: "+e)},n.hasConsoleLogger=o;var y=o()?window.console.error?"error":"log":"",E=function(){return!1===pbjs.logging&&!1===b&&(pbjs.logging="TRUE"===S(f.DEBUG_MODE).toUpperCase(),b=!0),!!pbjs.logging};n.debugTurnedOn=E,n.logError=function(e,n,t){var r=n||"ERROR";E()&&o()&&console[y](console,r+": "+e,t||"")},n.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=r(),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};var S=function(e){var n="[\\?&]"+e+"=([^&#]*)",t=new RegExp(n).exec(window.location.search);return null===t?"":decodeURIComponent(t[1].replace(/\+/g," "))};n.hasValidBidRequest=function(e,n,t){for(var r=!1,i=0;i<n.length;i++)if(r=!1,this._each(e,(function(e,t){t===n[i]&&(r=!0)})),!r)return this.logError("Params are missing for bid request. One of these required paramaters are missing: "+n,t),!1;return!0},n.addEventHandler=function(e,n,t){e.addEventListener?e.addEventListener(n,t,!0):e.attachEvent&&e.attachEvent("on"+n,t)},n.isA=function(e,n){return v.call(e)==="[object "+n+"]"},n.isFn=function(e){return this.isA(e,"Function")},n.isStr=function(e){return this.isA(e,"String")},n.isArray=function(e){return this.isA(e,"Array")},n.isNumber=function(e){return this.isA(e,"Number")},n.isEmpty=function(e){if(!e)return!0;if(this.isArray(e)||this.isStr(e))return!(e.length>0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0},n.isEmptyStr=function(e){return this.isStr(e)&&(!e||0===e.length)},n._each=function(e,n){if(!this.isEmpty(e)){if(this.isFn(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)}},n.contains=function(e,n){if(this.isEmpty(e))return!1;if(this.isFn(e.indexOf))return-1!==e.indexOf(n);for(var t=e.length;t--;)if(e[t]===n)return!0;return!1},n.indexOf=(function(){if(Array.prototype.indexOf)return Array.prototype.indexOf})(),n._map=function(e,n){if(this.isEmpty(e))return[];if(this.isFn(e.map))return e.map(n);var t=[];return this._each(e,(function(r,i){t.push(n(r,i,e))})),t};var T=function(e,n){return e.hasOwnProperty?e.hasOwnProperty(n):void 0!==e[n]&&e.constructor.prototype[n]!==e[n]};n.insertElement=function(e,n,t){n=n||document;var r=void 0;r=t?n.getElementsByTagName(t):n.getElementsByTagName("head");try{(r=r.length?r:n.getElementsByTagName("body")).length&&(r=r[0]).insertBefore(e,r.firstChild)}catch(e){}},n.insertPixel=function(e){var t=new Image;t.id=r(),t.src=e,t.height=0,t.width=0,t.style.display="none",t.onload=function(){try{this.parentNode.removeChild(this)}catch(e){}},n.insertElement(t)},n.insertCookieSyncIframe=function(e,t){var r=this.createTrackPixelIframeHtml(e,t),i=document.createElement("div");i.innerHTML=r;var o=i.firstChild;n.insertElement(o)},n.createTrackPixelHtml=function(e){if(!e)return"";var n='<div style="position:absolute;left:0px;top:0px;visibility:hidden;">';return n+='<img src="'+encodeURI(e)+'"></div>'},n.createTrackPixelIframeHtml=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?(n&&(e=encodeURI(e)),'<iframe frameborder="0" allowtransparency="true" marginheight="0" marginwidth="0" width="0" hspace="0" vspace="0" height="0" style="height:0p;width:0p;display:none;" scrolling="no" src="'+e+'"></iframe>'):""},n.getIframeDocument=function(e){if(e){var n=void 0;try{n=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(e){this.logError("Cannot get iframe document",e)}return n}},n.getValueString=function(e,n,t){return void 0===n||null===n?t:this.isStr(n)?n:this.isNumber(n)?n.toString():void this.logWarn("Unsuported type for param: "+e+" required type: String")}}),(function(e,n,t){"use strict";function r(e){var n=e.bidderCode,t=e.requestId,r=e.bidderRequestId;return e.adUnits.map((function(e){return e.bids.filter((function(e){return e.bidder===n})).map((function(n){var i=e.sizes;if(e.sizeMapping){var o=(0,d.mapSizes)(e);if(""===o)return"";i=o}return e.nativeParams&&(n=a({},n,{nativeParams:(0,u.processNativeAdUnitParams)(e.nativeParams)})),a({},n,{placementCode:e.code,mediaType:e.mediaType,renderer:e.renderer,transactionId:e.transactionId,sizes:i,bidId:n.bid_id||c.getUniqueIdentifierStr(),bidderRequestId:r,requestId:t})}))})).reduce(s.flatten,[]).filter((function(e){return""!==e}))}function i(e){var n=[];return c.parseSizesInput(e.sizes).forEach((function(e){var t=e.split("x"),r={w:parseInt(t[0]),h:parseInt(t[1])};n.push(r)})),n}var 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},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},s=t(0),d=t(43),u=t(12),c=t(0),f=t(4),l=t(8),p={};n.bidderRegistry=p;var g={endpoint:f.S2S.DEFAULT_ENDPOINT,adapter:f.S2S.ADAPTER,syncEndpoint:f.S2S.SYNC_ENDPOINT},b={},v=null;n.callBids=function(e){var n=e.adUnits,t=e.cbTimeout,o=c.generateUUID(),a=Date.now(),u={timestamp:a,requestId:o,timeout:t};l.emit(f.EVENTS.AUCTION_INIT,u);var b=(0,s.getBidderCodes)(n);v===f.ORDER.RANDOM&&(b=(0,s.shuffle)(b));var m=p[g.adapter];if(m&&(m.setConfig(g),m.queueSync({bidderCodes:b})),g.enabled){var h=g.bidders;b=b.filter((function(e){return!h.includes(e)}));var y=c.cloneJson(n);y.forEach((function(e){e.sizeMapping&&(e.sizes=(0,d.mapSizes)(e),delete e.sizeMapping),e.sizes=i(e),e.bids=e.bids.filter((function(e){return h.includes(e.bidder)})).map((function(e){return e.bid_id=c.getUniqueIdentifierStr(),e}))})),y=y.filter((function(e){return 0!==e.bids.length}));var E=c.generateUUID();h.forEach((function(e){var n=c.getUniqueIdentifierStr(),t={bidderCode:e,requestId:o,bidderRequestId:n,tid:E,bids:r({bidderCode:e,requestId:o,bidderRequestId:n,adUnits:y}),start:(new Date).getTime(),auctionStart:a,timeout:g.timeout,src:f.S2S.SRC};0!==t.bids.length&&pbjs._bidsRequested.push(t)}));var S={tid:E,ad_units:y};c.logMessage("CALLING S2S HEADER BIDDERS ==== "+h.join(",")),m.callBids(S)}b.forEach((function(e){var i=p[e];if(i){var s=c.getUniqueIdentifierStr(),d={bidderCode:e,requestId:o,bidderRequestId:s,bids:r({bidderCode:e,requestId:o,bidderRequestId:s,adUnits:n}),start:(new Date).getTime(),auctionStart:a,timeout:t};d.bids&&0!==d.bids.length&&(c.logMessage("CALLING BIDDER ======= "+e),pbjs._bidsRequested.push(d),l.emit(f.EVENTS.BID_REQUESTED,d),i.callBids(d))}else c.logError("Adapter trying to be called which does not exist: "+e+" adaptermanager.callBids")}))},n.videoAdapters=[],n.registerBidAdapter=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,i=void 0===r?[]:r;e&&t?o(e.callBids)===f.objectType_function?(p[t]=e,i.includes("video")&&n.videoAdapters.push(t),i.includes("native")&&u.nativeAdapters.push(t)):c.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):c.logError("bidAdaptor or bidderCode not specified")},n.aliasBidAdapter=function(e,n){var t=p[n];if((void 0===t?"undefined":o(t))===f.objectType_undefined){var r=p[e];if((void 0===r?"undefined":o(r))===f.objectType_undefined)c.logError('bidderCode "'+e+'" is not an existing bidder.',"adaptermanager.aliasBidAdapter");else try{var i=null;(i=r.createNew()).setBidderCode(n),this.registerBidAdapter(i,n)}catch(n){c.logError(e+" bidder does not currently support aliasing.","adaptermanager.aliasBidAdapter")}}else c.logMessage('alias name "'+n+'" has been already specified.')},n.registerAnalyticsAdapter=function(e){var n=e.adapter,t=e.code;n&&t?o(n.enableAnalytics)===f.objectType_function?(n.code=t,b[t]=n):c.logError('Prebid Error: Analytics adaptor error for analytics "'+t+'"\n analytics adapter must implement an enableAnalytics() function'):c.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},n.enableAnalytics=function(e){c.isArray(e)||(e=[e]),c._each(e,(function(e){var n=b[e.provider];n?n.enableAnalytics(e):c.logError("Prebid Error: no analytics adapter found in registry for\n "+e.provider+".")}))},n.setBidderSequence=function(e){v=e},n.setS2SConfig=function(e){g=e}}),(function(e,n,t){"use strict";function r(){return(new Date).getTime()}function i(e){return e.bidderCode}function o(e){return e.bidder}function a(e){var n=this;return pbjs._bidsRequested.map((function(t){return t.bids.filter(h.adUnitsFilter.bind(n,pbjs._adUnitCodes)).filter((function(n){return n.placementCode===e}))})).reduce(h.flatten,[]).map((function(e){return"indexExchange"===e.bidder?e.sizes.length:1})).reduce(s,0)===pbjs._bidsReceived.filter((function(n){return n.adUnitCode===e})).length}function s(e,n){return e+n}function d(){return pbjs._bidsRequested.map((function(e){return e.bids})).reduce(h.flatten,[]).filter(h.adUnitsFilter.bind(this,pbjs._adUnitCodes)).map((function(e){return"indexExchange"===e.bidder?e.sizes.length:1})).reduce((function(e,n){return e+n}),0)===pbjs._bidsReceived.filter(h.adUnitsFilter.bind(this,pbjs._adUnitCodes)).length}function u(e,n){var t={},r=pbjs.bidderSettings;if(n&&r){var i=b();c(t,i,n)}return e&&n&&r&&r[e]&&r[e][A.JSON_MAPPING.ADSERVER_TARGETING]?(c(t,r[e],n),n.alwaysUseBid=r[e].alwaysUseBid,n.sendStandardTargeting=r[e].sendStandardTargeting):R[e]&&(c(t,R[e],n),n.alwaysUseBid=R[e].alwaysUseBid,n.sendStandardTargeting=R[e].sendStandardTargeting),n.native&&Object.keys(n.native).forEach((function(e){var r=E.NATIVE_KEYS[e],i=n.native[e];r&&(t[r]=i)})),t}function c(e,n,t){var r=n[A.JSON_MAPPING.ADSERVER_TARGETING];return t.size=t.getSize(),_._each(r,(function(r){var i=r.key,o=r.val;if(e[i]&&_.logWarn("The key: "+i+" is getting ovewritten"),_.isFn(o))try{o=o(t)}catch(e){_.logError("bidmanager","ERROR",e)}(void 0===n.suppressEmptyKeys||!0!==n.suppressEmptyKeys)&&"hb_deal"!==i||!_.isEmptyStr(o)&&null!==o&&void 0!==o?e[i]=o:_.logInfo("suppressing empty key '"+i+"' from adserver targeting")})),e}function f(e){var n=[e];l(j.byAdUnit,n)}function l(e,n){var t=this;_.isArray(e)&&e.forEach((function(e){var r=n||pbjs._adUnitCodes,i=[pbjs._bidsReceived.filter(h.adUnitsFilter.bind(t,r)).reduce(p,{})];e.apply(pbjs,i)}))}function p(e,n){return e[n.adUnitCode]||(e[n.adUnitCode]={bids:[]}),e[n.adUnitCode].bids.push(n),e}function g(e){var n=e.bidderCode,t=e.cpm;if(n&&pbjs.bidderSettings&&pbjs.bidderSettings[n]&&v(pbjs.bidderSettings[n].bidCpmAdjustment)===O)try{t=pbjs.bidderSettings[n].bidCpmAdjustment.call(null,e.cpm,m({},e))}catch(e){_.logError("Error during bid adjustment","bidmanager.js",e)}t>=0&&(e.cpm=t)}function b(){var e=pbjs.bidderSettings;return e[A.JSON_MAPPING.BD_SETTING_STANDARD]||(e[A.JSON_MAPPING.BD_SETTING_STANDARD]={adserverTargeting:[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(e){return U===A.GRANULARITY_OPTIONS.AUTO?e.pbAg:U===A.GRANULARITY_OPTIONS.DENSE?e.pbDg:U===A.GRANULARITY_OPTIONS.LOW?e.pbLg:U===A.GRANULARITY_OPTIONS.MEDIUM?e.pbMg:U===A.GRANULARITY_OPTIONS.HIGH?e.pbHg:U===A.GRANULARITY_OPTIONS.CUSTOM?e.pbCg:void 0}},{key:"hb_size",val:function(e){return e.size}},{key:"hb_deal",val:function(e){return e.dealId}}]}),e[A.JSON_MAPPING.BD_SETTING_STANDARD]}var 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},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},h=t(0),y=t(24),E=t(12),S=t(42),T=t(16),A=t(4),I=A.EVENTS.AUCTION_END,_=t(0),w=t(8),O="function",j={byAdUnit:[],all:[],oneTime:null,timer:!1},U=A.GRANULARITY_OPTIONS.MEDIUM,C=void 0,R={};n.setCustomPriceBucket=function(e){C=e},n.getTimedOutBidders=function(){return pbjs._bidsRequested.map(i).filter(h.uniques).filter((function(e){return pbjs._bidsReceived.map(o).filter(h.uniques).indexOf(e)<0}))},n.bidsBackAll=function(){return d()},n.addBidResponse=function(e,t){function i(){if(t.timeToRespond>pbjs.cbTimeout+pbjs.timeoutBuffer){n.executeCallback(!0)}}function o(){w.emit(A.EVENTS.BID_RESPONSE,t),pbjs._bidsReceived.push(t),t.adUnitCode&&a(t.adUnitCode)&&f(t.adUnitCode),d()&&n.executeCallback()}(function(){function n(e){return"Invalid bid from "+t.bidderCode+". Ignoring bid: "+e}return e?t?"native"!==t.mediaType||(0,E.nativeBidIsValid)(t)?!("video"===t.mediaType&&!t.vastUrl&&(_.logError(n("Video bid does not have required vastUrl property.")),1)):(_.logError(n("Native bid missing some required properties.")),!1):(_.logWarn("Some adapter tried to add an undefined bid for "+e+"."),!1):(_.logWarn("No adUnitCode was supplied to addBidResponse."),!1)})()&&(function(){w.emit(A.EVENTS.BID_ADJUSTMENT,t);var n=(0,h.getBidderRequest)(t.bidderCode,e);m(t,{requestId:n.requestId,responseTimestamp:r(),requestTimestamp:n.start,cpm:parseFloat(t.cpm)||0,bidder:t.bidderCode,adUnitCode:e}),t.timeToRespond=t.responseTimestamp-t.requestTimestamp;var i=n.bids&&n.bids[0]&&n.bids[0].renderer;i&&(t.renderer=T.Renderer.install({url:i.url}),t.renderer.setRender(i.render));var o=(0,y.getPriceBucketString)(t.cpm,C);t.pbLg=o.low,t.pbMg=o.med,t.pbHg=o.high,t.pbAg=o.auto,t.pbDg=o.dense,t.pbCg=o.custom;var a={};t.bidderCode&&(t.cpm>0||t.dealId)&&(a=u(t.bidderCode,t)),t.adserverTargeting=a}(),"video"===t.mediaType?(function(e){(0,S.store)([e],(function(n,t){n?_.logWarn("Failed to save to the video cache: "+n+". Video bid must be discarded."):(e.videoCacheKey=t[0].uuid,o(e)),i()}))})(t):(i(),o(t)))},n.getKeyValueTargetingPairs=function(){return u.apply(void 0,arguments)},n.setPriceGranularity=function(e){var n=A.GRANULARITY_OPTIONS;Object.keys(n).filter((function(t){return e===n[t]}))?U=e:(_.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default."),U=A.GRANULARITY_OPTIONS.MEDIUM)},n.registerDefaultBidderSetting=function(e,n){R[e]=n},n.executeCallback=function(e){if(!e&&j.timer&&clearTimeout(j.timer),!0!==j.all.called&&(l(j.all),j.all.called=!0,e)){var t=n.getTimedOutBidders();t.length&&w.emit(A.EVENTS.BID_TIMEOUT,t)}if(j.oneTime){w.emit(I);try{l([j.oneTime])}catch(e){_.logError("Error executing bidsBackHandler",null,e)}finally{j.oneTime=null,j.timer=!1,pbjs.clearAuction()}}},n.externalCallbackReset=function(){j.all.called=!1},n.addOneTimeCallback=function(e,n){j.oneTime=e,j.timer=n},n.addCallback=function(e,n,t){n.id=e,A.CB.TYPE.ALL_BIDS_BACK===t?j.all.push(n):A.CB.TYPE.AD_UNIT_BIDS_BACK===t&&j.byAdUnit.push(n)},w.on(A.EVENTS.BID_ADJUSTMENT,(function(e){g(e)})),n.adjustBids=function(){return g.apply(void 0,arguments)},n.getStandardBidderAdServerTargeting=function(){return b()[A.JSON_MAPPING.ADSERVER_TARGETING]}}),(function(e,n,t){"use strict";function r(e,n){var t=n&&n.bidId||i.getUniqueIdentifierStr(),r=e||0;this.bidderCode=n&&n.bidder||"",this.width=0,this.height=0,this.statusMessage=(function(){switch(r){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.adId=t,this.getStatusCode=function(){return r},this.getSize=function(){return this.width+"x"+this.height}}var i=t(0);n.createBid=function(){return new(Function.prototype.bind.apply(r,[null].concat(Array.prototype.slice.call(arguments))))}}),(function(e,n){e.exports={JSON_MAPPING:{PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},REPO_AND_VERSION:"prebid_prebid_0.27.0-pre",DEBUG_MODE:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},objectType_function:"function",objectType_undefined:"undefined",objectType_object:"object",objectType_string:"string",objectType_number:"number",EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_WON:"bidWon",SET_TARGETING:"setTargeting",REQUEST_BIDS:"requestBids"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},ORDER:{RANDOM:"random"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:["hb_bidder","hb_adid","hb_pb","hb_size","hb_deal"],S2S:{DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/auction",SRC:"s2s",ADAPTER:"prebidServer",SYNC_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/cookie_sync"}}}),(function(e,n,t){"use strict";function r(e,n){var t=document.createElement("script");t.type="text/javascript",t.async=!0,n&&"function"==typeof n&&(t.readyState?t.onreadystatechange=function(){"loaded"!==t.readyState&&"complete"!==t.readyState||(t.onreadystatechange=null,n())}:t.onload=function(){n()}),t.src=e;var r=document.getElementsByTagName("head");(r=r.length?r:document.getElementsByTagName("body")).length&&(r=r[0]).insertBefore(t,r.firstChild)}var i=t(0),o={};n.loadScript=function(e,n,t){e?t?o[e]?n&&"function"==typeof n&&(o[e].loaded?n():o[e].callbacks.push(n)):(o[e]={loaded:!1,callbacks:[]},n&&"function"==typeof n&&o[e].callbacks.push(n),r(e,(function(){o[e].loaded=!0;try{for(var n=0;n<o[e].callbacks.length;n++)o[e].callbacks[n]()}catch(e){i.logError("Error executing callback","adloader.js:loadScript",e)}}))):r(e,n):i.logError("Error attempting to request empty URL","adloader.js:loadScript")}}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=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},i="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};n.setAjaxTimeout=function(e){d=e},n.ajax=function(e,n,t){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var c=void 0,f=!1,l=u.method||(t?"POST":"GET"),p="object"===(void 0===n?"undefined":i(n))?n:{success:function(){a.logMessage("xhr success")},error:function(e){a.logError("xhr error",null,e)}};if("function"==typeof n&&(p.success=n),window.XMLHttpRequest?void 0===(c=new window.XMLHttpRequest).responseType&&(f=!0):f=!0,c.timeout=d,f?((c=new window.XDomainRequest).onload=function(){p.success(c.responseText,c)},c.onerror=function(){p.error("error",c)},c.ontimeout=function(){p.error("timeout",c)},c.onprogress=function(){a.logMessage("xhr onprogress")}):c.onreadystatechange=function(){if(c.readyState===s){var e=c.status;e>=200&&e<300||304===e?p.success(c.responseText,c):p.error(c.statusText,c)}},"GET"===l&&t){var g=(0,o.parse)(e);r(g.search,t),e=(0,o.format)(g)}c.open(l,e),f||(u.withCredentials&&(c.withCredentials=!0),a._each(u.customHeaders,(function(e,n){c.setRequestHeader(n,e)})),u.preflight&&c.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.setRequestHeader("Content-Type",u.contentType||"text/plain")),c.send("POST"===l&&t)}catch(e){a.logError("xhr construction",e)}};var o=t(10),a=t(0),s=4,d=3e3}),(function(e,n,t){"use strict";function r(e){var n=e;return{callBids:function(){},setBidderCode:function(e){n=e},getBidderCode:function(){return n}}}n.createNew=function(e){return new r(e)}}),(function(e,n,t){"use strict";var r=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},i=t(0),o=t(4),a=Array.prototype.slice,s=Array.prototype.push,d=i._map(o.EVENTS,(function(e){return e})),u=o.EVENT_ID_PATHS,c=[];e.exports=(function(){function e(e,n){i.logMessage("Emitting event for: "+e);var r=n[0]||{},o=r[u[e]],a=t[e]||{que:[]},d=i._map(a,(function(e,n){return n})),f=[];c.push({eventType:e,args:r,id:o}),o&&i.contains(d,o)&&s.apply(f,a[o].que),s.apply(f,a.que),i._each(f,(function(e){if(e)try{e.apply(null,n)}catch(e){i.logError("Error executing handler:","events.js",e)}}))}function n(e){return i.contains(d,e)}var t={},o={};return o.on=function(e,r,o){if(n(e)){var a=t[e]||{que:[]};o?(a[o]=a[o]||{que:[]},a[o].que.push(r)):a.que.push(r),t[e]=a}else i.logError("Wrong event name : "+e+" Valid event names :"+d)},o.emit=function(n){e(n,a.call(arguments,1))},o.off=function(e,n,r){var o=t[e];i.isEmpty(o)||i.isEmpty(o.que)&&i.isEmpty(o[r])||r&&(i.isEmpty(o[r])||i.isEmpty(o[r].que))||(r?i._each(o[r].que,(function(e){var t=o[r].que;e===n&&t.splice(i.indexOf.call(t,e),1)})):i._each(o.que,(function(e){var t=o.que;e===n&&t.splice(i.indexOf.call(t,e),1)})),t[e]=o)},o.get=function(){return t},o.getEvents=function(){var e=[];return i._each(c,(function(n){var t=r({},n);e.push(t)})),e},o})()}),,(function(e,n,t){"use strict";function r(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,n){var t=n.split("="),r=o(t,2),i=r[0],a=r[1];return/\[\]$/.test(i)?(e[i=i.replace("[]","")]=e[i]||[],e[i].push(a)):e[i]=a||"",e}),{}):{}}function i(e){return Object.keys(e).map((function(n){return Array.isArray(e[n])?e[n].map((function(e){return n+"[]="+e})).join("&"):n+"="+e[n]})).join("&")}Object.defineProperty(n,"__esModule",{value:!0});var o=(function(){function e(e,n){var t=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return t}return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return e(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();n.parseQS=r,n.formatQS=i,n.parse=function(e){var n=document.createElement("a");return n.href=decodeURIComponent(e),{protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:r(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host}},n.format=function(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":"+e.port:""))+(e.pathname||"")+(e.search?"?"+i(e.search||""):"")+(e.hash?"#"+e.hash:"")}}),(function(e,n){var t=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=t)}),(function(e,n,t){"use strict";function r(e){return!(!e||!Object.keys(s).includes(e))||((0,i.logError)(e+" nativeParam is not supported"),!1)}Object.defineProperty(n,"__esModule",{value:!0}),n.hasNonNativeBidder=n.nativeBidder=n.nativeAdUnit=n.NATIVE_TARGETING_KEYS=n.NATIVE_KEYS=n.nativeAdapters=void 0,n.processNativeAdUnitParams=function(e){return e&&e.type&&r(e.type)?s[e.type]:e},n.nativeBidIsValid=function(e){var n=(0,i.getBidRequest)(e.adId);if(!n)return!1;var t=n.nativeParams;if(!t)return!0;var r=Object.keys(t).filter((function(e){return t[e].required})),o=Object.keys(e.native).filter((function(n){return e.native[n]}));return r.every((function(e){return o.includes(e)}))},n.fireNativeImpressions=function(e){(e.native&&e.native.impressionTrackers||[]).forEach((function(e){(0,i.insertPixel)(e)}))};var i=t(0),o=n.nativeAdapters=[],a=n.NATIVE_KEYS={title:"hb_native_title",body:"hb_native_body",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl"},s=(n.NATIVE_TARGETING_KEYS=Object.keys(a).map((function(e){return a[e]})),{image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}}),d=(n.nativeAdUnit=function(e){return"native"===e.mediaType},n.nativeBidder=function(e){return o.includes(e.bidder)});n.hasNonNativeBidder=function(e){return e.bids.filter((function(e){return!d(e)})).length}}),(function(e,n){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),(function(e,n,t){var r=t(13),i=t(11),o=t(18),a=t(225),s=t(29),d=function(e,n,t){var u,c,f,l,p=e&d.F,g=e&d.G,b=e&d.S,v=e&d.P,m=e&d.B,h=g?r:b?r[n]||(r[n]={}):(r[n]||{}).prototype,y=g?i:i[n]||(i[n]={}),E=y.prototype||(y.prototype={});g&&(t=n);for(u in t)f=((c=!p&&h&&void 0!==h[u])?h:t)[u],l=m&&c?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,h&&a(h,u,f,e&d.U),y[u]!=f&&o(y,u,l),v&&E[u]!=f&&(E[u]=f)};r.core=i,d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d}),(function(e,n){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}}),(function(e,n,t){"use strict";function r(e){var n=this,t=e.url,r=e.config,a=e.id,s=e.callback,d=e.loaded;this.url=t,this.config=r,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):o.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=s||function(){n.loaded=!0,n.process()},(0,i.loadScript)(t,this.callback,!0)}Object.defineProperty(n,"__esModule",{value:!0}),n.Renderer=r;var i=t(5),o=(function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n})(t(0));r.install=function(e){return new r({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded})},r.prototype.getConfig=function(){return this.config},r.prototype.setRender=function(e){this.render=e},r.prototype.setEventHandlers=function(e){this.handlers=e},r.prototype.handleVideoEvent=function(e){var n=e.id,t=e.eventName;"function"==typeof this.handlers[t]&&this.handlers[t](),o.logMessage("Prebid Renderer event for id "+n+" type "+t)},r.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){o.logError("Error processing Renderer command: ",e)}}}),(function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){return"string"==typeof e?[e]:p.isArray(e)?e:pbjs._adUnitCodes||[]}function o(e){var n=b.getWinningBids(e),t=a();return n=n.map((function(e){return r({},e.adUnitCode,Object.keys(e.adserverTargeting).filter((function(n){return void 0===e.sendStandardTargeting||e.sendStandardTargeting||-1===t.indexOf(n)})).map((function(n){return r({},n.substring(0,20),[e.adserverTargeting[n]])})))}))}function a(){return l.getStandardBidderAdServerTargeting().map((function(e){return e.key})).concat(g.TARGETING_KEYS).filter(c.uniques)}function s(e){var n=a();return pbjs._bidsReceived.filter(c.adUnitsFilter.bind(this,e)).map((function(e){if(e.alwaysUseBid)return r({},e.adUnitCode,Object.keys(e.adserverTargeting).map((function(t){if(!(n.indexOf(t)>-1))return r({},t.substring(0,20),[e.adserverTargeting[t]])})).filter((function(e){return e})))})).filter((function(e){return e}))}function d(e){var n=g.TARGETING_KEYS.concat(f.NATIVE_TARGETING_KEYS);return pbjs._bidsReceived.filter(c.adUnitsFilter.bind(this,e)).map((function(e){if(e.adserverTargeting)return r({},e.adUnitCode,u(e,n.filter((function(n){return void 0!==e.adserverTargeting[n]}))))})).filter((function(e){return e}))}function u(e,n){return n.map((function(n){return r({},(n+"_"+e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}var c=t(0),f=t(12),l=t(2),p=t(0),g=t(4),b=n,v=[];b.resetPresetTargeting=function(e){if((0,c.isGptPubadsDefined)()){var n=i(e),t=pbjs.adUnits.filter((function(e){return n.includes(e.code)}));window.googletag.pubads().getSlots().forEach((function(e){v.forEach((function(n){t.forEach((function(t){t.code!==e.getAdUnitPath()&&t.code!==e.getSlotElementId()||e.setTargeting(n,null)}))}))}))}},b.getAllTargeting=function(e){var n=i(e),t=o(n).concat(s(n)).concat(pbjs._sendAllBids?d(n):[]);return t.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===v.indexOf(Object.keys(e)[0])&&(v=Object.keys(e).concat(v))}))}))})),t},b.setTargeting=function(e){window.googletag.pubads().getSlots().forEach((function(n){e.filter((function(e){return Object.keys(e)[0]===n.getAdUnitPath()||Object.keys(e)[0]===n.getSlotElementId()})).forEach((function(e){return e[Object.keys(e)[0]].forEach((function(e){e[Object.keys(e)[0]].map((function(t){return p.logMessage("Attempting to set key value for slot: "+n.getSlotElementId()+" key: "+Object.keys(e)[0]+" value: "+t),t})).forEach((function(t){n.setTargeting(Object.keys(e)[0],t)}))}))}))}))},b.getWinningBids=function(e){var n=i(e);return pbjs._bidsReceived.filter((function(e){return n.includes(e.adUnitCode)})).filter((function(e){return e.cpm>0})).map((function(e){return e.adUnitCode})).filter(c.uniques).map((function(e){return pbjs._bidsReceived.filter((function(n){return n.adUnitCode===e?n:null})).reduce(c.getHighestCpm,{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0})}))},b.setTargetingForAst=function(){var e=pbjs.getAdserverTargeting();Object.keys(e).forEach((function(n){return Object.keys(e[n]).forEach((function(t){if(p.logMessage("Attempting to set targeting for targetId: "+n+" key: "+t+" value: "+e[n][t]),p.isStr(e[n][t])||p.isArray(e[n][t])){var r={};r["hb_adid"===t.substring(0,"hb_adid".length)?t.toUpperCase():t]=e[n][t],window.apntag.setKeywords(n,r)}}))}))},b.isApntagDefined=function(){if(window.apntag&&p.isFn(window.apntag.setKeywords))return!0}}),(function(e,n,t){var r=t(219),i=t(224);e.exports=t(19)?function(e,n,t){return r.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}}),(function(e,n,t){e.exports=!t(20)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}),(function(e,n){e.exports=function(e){try{return!!e()}catch(e){return!0}}}),(function(e,n){var t=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+r).toString(36))}}),(function(e,n,t){var r=t(31);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}}),(function(e,n,t){var r=t(36)("unscopables"),i=Array.prototype;void 0==i[r]&&t(18)(i,r,{}),e.exports=function(e){i[r][e]=!0}}),(function(e,n,t){"use strict";function r(e,n){var t="";if(!i(n))return t;var r=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),s=n.buckets.find((function(n){if(e>r.max){var i=n.precision||a;t=n.max.toFixed(i)}else if(e<=n.max&&e>=n.min)return n}));return s&&(t=o(e,s.increment,s.precision)),t}function i(e){if(!e||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){void 0!==e.min&&e.max&&e.increment||(n=!1)})),n}function o(e,n,t){t||(t=a);var r=1/n;return(Math.floor(e*r)/r).toFixed(t)}Object.defineProperty(n,"__esModule",{value:!0});var a=2,s={buckets:[{min:0,max:5,increment:.5}]},d={buckets:[{min:0,max:20,increment:.1}]},u={buckets:[{min:0,max:20,increment:.01}]},c={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},f={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};n.getPriceBucketString=function(e,n){var t=0;return t=parseFloat(e),isNaN(t)&&(t=""),{low:""===t?"":r(e,s),med:""===t?"":r(e,d),high:""===t?"":r(e,u),auto:""===t?"":r(e,f),dense:""===t?"":r(e,c),custom:""===t?"":r(e,n)}},n.isValidePriceConfig=i}),(function(e,n){var t;t=(function(){return this})();try{t=t||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(t=window)}e.exports=t}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getGlobal=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[]}),(function(e,n,t){"use strict";function r(){s.forEach((function(e){i.logMessage("Invoking cookie sync for bidder: "+e.bidder),"iframe"===e.type?i.insertCookieSyncIframe(e.url,!1):i.insertPixel(e.url)})),s.length=0}var i=(function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n})(t(0)),o=(function(e){return e&&e.__esModule?e:{default:e}})(t(5)),a=n,s=[];a.queueSync=function(e){var n=e.bidder,t=e.url,r=e.type;s.push({bidder:n,url:t,type:r})},a.syncCookies=function(e){e?setTimeout(r,e):r()},a.cookieSet=function(e){i.isSafariBrowser()&&o.default.loadScript(e,null,!0)}}),(function(e,n){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}}),(function(e,n,t){var r=t(226);e.exports=function(e,n,t){if(r(e),void 0===n)return e;switch(t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,i){return e.call(n,t,r,i)}}return function(){return e.apply(n,arguments)}}}),(function(e,n,t){var r=t(29),i=t(22),o=t(32),a=t(34),s=t(227);e.exports=function(e,n){var t=1==e,d=2==e,u=3==e,c=4==e,f=6==e,l=5==e||f,p=n||s;return function(n,s,g){for(var b,v,m=o(n),h=i(m),y=r(s,g,3),E=a(h.length),S=0,T=t?p(n,E):d?p(n,0):void 0;E>S;S++)if((l||S in h)&&(b=h[S],v=y(b,S,m),e))if(t)T[S]=v;else if(v)switch(e){case 3:return!0;case 5:return b;case 6:return S;case 2:T.push(b)}else if(c)return!1;return f?-1:u||c?c:T}}}),(function(e,n){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}}),(function(e,n,t){var r=t(33);e.exports=function(e){return Object(r(e))}}),(function(e,n){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}}),(function(e,n,t){var r=t(35),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),(function(e,n){var t=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:t)(e)}}),(function(e,n,t){var r=t(37)("wks"),i=t(21),o=t(13).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r}),(function(e,n,t){var r=t(13),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return i[e]||(i[e]={})}}),(function(e,n,t){var r=t(39),i=t(34),o=t(234);e.exports=function(e){return function(n,t,a){var s,d=r(n),u=i(d.length),c=o(a,u);if(e&&t!=t){for(;u>c;)if((s=d[c++])!=s)return!0}else for(;u>c;c++)if((e||c in d)&&d[c]===t)return e||c||0;return!e&&-1}}}),(function(e,n,t){var r=t(22),i=t(33);e.exports=function(e){return r(i(e))}}),,,(function(e,n,t){"use strict";function r(e){return'<VAST version="3.0">\n <Ad>\n <Wrapper>\n <AdSystem>prebid.org wrapper</AdSystem>\n <VASTAdTagURI><![CDATA['+e+"]]></VASTAdTagURI>\n <Impression></Impression>\n <Creatives></Creatives>\n </Wrapper>\n </Ad>\n </VAST>"}function i(e){return{type:"xml",value:r(e.vastUrl)}}function o(e){return{success:function(n){var t=void 0;try{t=JSON.parse(n).responses}catch(n){return void e(n,[])}e(null,t)},error:function(n,t){e(new Error("Error storing video ad in the cache: "+n+": "+JSON.stringify(t)),[])}}}Object.defineProperty(n,"__esModule",{value:!0}),n.store=function(e,n){var t={puts:e.map(i)};(0,a.ajax)(s,o(n),JSON.stringify(t),{contentType:"text/plain",withCredentials:!0})};var a=t(6),s="https://prebid.adnxs.com/pbc/v1/cache"}),(function(e,n,t){"use strict";function r(e){return!!(o.isArray(e)&&e.length>0)||(o.logInfo("No size mapping defined"),!1)}function i(e){var n=e||a||window,t=n.document;return n.innerWidth?n.innerWidth:t.body.clientWidth?t.body.clientWidth:t.documentElement.clientWidth?t.documentElement.clientWidth:0}Object.defineProperty(n,"__esModule",{value:!0}),n.setWindow=n.getScreenWidth=n.mapSizes=void 0;var o=(function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n.default=e,n})(t(0)),a=void 0;n.mapSizes=function(e){if(!r(e.sizeMapping))return e.sizes;var n=i();if(!n){var t=e.sizeMapping.reduce((function(e,n){return e.minWidth<n.minWidth?n:e}));return t.sizes&&t.sizes.length?t.sizes:e.sizes}var a="",s=e.sizeMapping.find((function(e){return n>e.minWidth}));return s&&s.sizes&&s.sizes.length?(a=s.sizes,o.logMessage("AdUnit : "+e.code+" resized based on device width to : "+a)):o.logMessage("AdUnit : "+e.code+" not mapped to any sizes for device width. This request will be suppressed."),a},n.getScreenWidth=i,n.setWindow=function(e){a=e}}),,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,(function(e,n,t){e.exports=t(214)}),(function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(){y._bidsRequested=[],y._bidsReceived=y._bidsReceived.filter((function(e){return!y._adUnitCodes.includes(e.adUnitCode)}))}function o(e,n,t){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=n,e.defaultView.frameElement.height=t)}function a(e){e.forEach((function(e){if(s(e.called)===j)try{e.call(),e.called=!0}catch(e){S.logError("Error processing command :","prebid.js",e)}}))}var 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},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},u=t(26),c=t(0),f=t(215),l=t(12);t(216);var p=t(10),g=t(24),b=t(244),v=t(27),m=t(5),h=t(6),y=(0,u.getGlobal)(),E=t(4),S=t(0),T=t(2),A=t(1),I=t(3),_=t(8),w=t(245),O=t(17),j="undefined",U=E.EVENTS.BID_WON,C=E.EVENTS.SET_TARGETING,R=!1,N=[],B={bidWon:function(e){var n=y._bidsRequested.map((function(e){return e.bids.map((function(e){return e.placementCode}))})).reduce(c.flatten).filter(c.uniques);{if(S.contains(n,e))return!0;S.logError('The "'+e+'" placement is not defined.')}}};y._bidsRequested=[],y._bidsReceived=[],y._adUnitCodes=[],y._winningBids=[],y._adsReceived=[],y._sendAllBids=!1,y.bidderSettings=y.bidderSettings||{},y.bidderTimeout=y.bidderTimeout||3e3,y.cbTimeout=y.cbTimeout||200,y.timeoutBuffer=200,y.logging=y.logging||!1,y.publisherDomain=y.publisherDomain||window.location.origin,y.libLoaded=!0,y.version="v0.27.0-pre",S.logInfo("Prebid.js v0.27.0-pre loaded"),y.adUnits=y.adUnits||[],y.cookieSyncDelay=y.cookieSyncDelay||100,y.getAdserverTargetingForAdUnitCodeStr=function(e){if(S.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var n=y.getAdserverTargetingForAdUnitCode(e);return S.transformAdServerTargetingObj(n)}S.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},y.getAdserverTargetingForAdUnitCode=function(e){return y.getAdserverTargeting(e)[e]},y.getAdserverTargeting=function(e){return S.logInfo("Invoking pbjs.getAdserverTargeting",arguments),O.getAllTargeting(e).map((function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].map((function(e){return r({},Object.keys(e)[0],e[Object.keys(e)[0]].join(", "))})).reduce((function(e,n){return d(n,e)}),{}))})).reduce((function(e,n){var t=Object.keys(n)[0];return e[t]=d({},e[t],n[t]),e}),{})},y.getBidResponses=function(){S.logInfo("Invoking pbjs.getBidResponses",arguments);var e=y._bidsReceived.filter(c.adUnitsFilter.bind(this,y._adUnitCodes)),n=e&&e.length&&e[e.length-1].requestId;return e.map((function(e){return e.adUnitCode})).filter(c.uniques).map((function(t){return e.filter((function(e){return e.requestId===n&&e.adUnitCode===t}))})).filter((function(e){return e&&e[0]&&e[0].adUnitCode})).map((function(e){return r({},e[0].adUnitCode,{bids:e})})).reduce((function(e,n){return d(e,n)}),{})},y.getBidResponsesForAdUnitCode=function(e){return{bids:y._bidsReceived.filter((function(n){return n.adUnitCode===e}))}},y.setTargetingForGPTAsync=function(e){if(S.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),(0,c.isGptPubadsDefined)()){var n=O.getAllTargeting(e);O.resetPresetTargeting(e),O.setTargeting(n),_.emit(C)}else S.logError("window.googletag is not defined on the page")},y.setTargetingForAst=function(){S.logInfo("Invoking pbjs.setTargetingForAn",arguments),O.isApntagDefined()?(O.setTargetingForAst(),_.emit(C)):S.logError("window.apntag is not defined on the page")},y.allBidsAvailable=function(){return S.logInfo("Invoking pbjs.allBidsAvailable",arguments),T.bidsBackAll()},y.renderAd=function(e,n){if(S.logInfo("Invoking pbjs.renderAd",arguments),S.logMessage("Calling renderAd with adId :"+n),e&&n)try{var t=y._bidsReceived.find((function(e){return e.adId===n}));if(t){t.ad=S.replaceAuctionPrice(t.ad,t.cpm),t.url=S.replaceAuctionPrice(t.url,t.cpm),y._winningBids.push(t),_.emit(U,t);var r=t.height,i=t.width,a=t.ad,s=t.mediaType,d=t.adUrl,u=t.renderer;if(u&&u.url)u.render(t);else if(e===document&&!S.inIframe()||"video"===s)S.logError("Error trying to write ad. Ad render call ad id "+n+" was prevented from writing to the main document.");else if(a)e.write(a),e.close(),o(e,i,r);else if(d){var c=S.createInvisibleIframe();c.height=r,c.width=i,c.style.display="inline",c.style.overflow="hidden",c.src=d,S.insertElement(c,e,"body"),o(e,i,r)}else S.logError("Error trying to write ad. No ad for bid response id: "+n)}else S.logError("Error trying to write ad. Cannot find ad by given id : "+n)}catch(e){S.logError("Error trying to write ad Id :"+n+" to the page:"+e.message)}else S.logError("Error trying to write ad Id :"+n+" to the page. Missing document or adId")},y.removeAdUnit=function(e){if(S.logInfo("Invoking pbjs.removeAdUnit",arguments),e)for(var n=0;n<y.adUnits.length;n++)y.adUnits[n].code===e&&y.adUnits.splice(n,1)},y.clearAuction=function(){R=!1,(0,v.syncCookies)(y.cookieSyncDelay),S.logMessage("Prebid auction cleared"),N.length&&N.shift()()},y.requestBids=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,o=e.adUnitCodes;_.emit("requestBids");var a=y.cbTimeout=t||y.bidderTimeout;if(r=r||y.adUnits,S.logInfo("Invoking pbjs.requestBids",arguments),o&&o.length?r=r.filter((function(e){return o.includes(e.code)})):o=r&&r.map((function(e){return e.code})),r.filter(f.videoAdUnit).filter(f.hasNonVideoBidder).forEach((function(e){S.logError("adUnit "+e.code+" has 'mediaType' set to 'video' but contains a bidder that doesn't support video. No Prebid demand requests will be triggered for this adUnit.");for(var n=0;n<r.length;n++)r[n].code===e.code&&r.splice(n,1)})),r.filter(l.nativeAdUnit).filter(l.hasNonNativeBidder).forEach((function(e){var n=e.bids.filter((function(e){return!(0,l.nativeBidder)(e)})).map((function(e){return e.bidder})).join(", ");S.logError("adUnit "+e.code+" has 'mediaType' set to 'native' but contains non-native bidder(s) "+n+". No Prebid demand requests will be triggered for those bidders."),e.bids=e.bids.filter(l.nativeBidder)})),R)N.push((function(){y.requestBids({bidsBackHandler:n,timeout:a,adUnits:r,adUnitCodes:o})}));else{if(R=!0,y._adUnitCodes=o,T.externalCallbackReset(),i(),!r||0===r.length)return S.logMessage("No adUnits configured. No bids requested."),"function"===(void 0===n?"undefined":s(n))&&T.addOneTimeCallback(n,!1),void T.executeCallback();var d=T.executeCallback.bind(T,!0),u=setTimeout(d,a);(0,h.setAjaxTimeout)(a),"function"===(void 0===n?"undefined":s(n))&&T.addOneTimeCallback(n,u),A.callBids({adUnits:r,adUnitCodes:o,cbTimeout:a}),0===y._bidsRequested.length&&T.executeCallback()}},y.addAdUnits=function(e){S.logInfo("Invoking pbjs.addAdUnits",arguments),S.isArray(e)?(e.forEach((function(e){return e.transactionId=S.generateUUID()})),y.adUnits.push.apply(y.adUnits,e)):"object"===(void 0===e?"undefined":s(e))&&(e.transactionId=S.generateUUID(),y.adUnits.push(e))},y.onEvent=function(e,n,t){S.logInfo("Invoking pbjs.onEvent",arguments),S.isFn(n)?!t||B[e].call(null,t)?_.on(e,n,t):S.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):S.logError('The event handler provided is not a function and was not set on event "'+e+'".')},y.offEvent=function(e,n,t){S.logInfo("Invoking pbjs.offEvent",arguments),t&&!B[e].call(null,t)||_.off(e,n,t)},y.addCallback=function(e,n){S.logInfo("Invoking pbjs.addCallback",arguments);var t=null;return e&&n&&"function"===(void 0===n?"undefined":s(n))?(t=S.getUniqueIdentifierStr,T.addCallback(t,n,e),t):(S.logError("error registering callback. Check method signature"),t)},y.removeCallback=function(){return null},y.registerBidAdapter=function(e,n){S.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{A.registerBidAdapter(e(),n)}catch(e){S.logError("Error registering bidder adapter : "+e.message)}},y.registerAnalyticsAdapter=function(e){S.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{A.registerAnalyticsAdapter(e)}catch(e){S.logError("Error registering analytics adapter : "+e.message)}},y.bidsAvailableForAdapter=function(e){S.logInfo("Invoking pbjs.bidsAvailableForAdapter",arguments),y._bidsRequested.find((function(n){return n.bidderCode===e})).bids.map((function(n){return d(n,I.createBid(1),{bidderCode:e,adUnitCode:n.placementCode})})).map((function(e){return y._bidsReceived.push(e)}))},y.createBid=function(e){return S.logInfo("Invoking pbjs.createBid",arguments),I.createBid(e)},y.addBidResponse=function(e,n){S.logInfo("Invoking pbjs.addBidResponse",arguments),T.addBidResponse(e,n)},y.loadScript=function(e,n,t){S.logInfo("Invoking pbjs.loadScript",arguments),(0,m.loadScript)(e,n,t)},y.enableAnalytics=function(e){e&&!S.isEmpty(e)?(S.logInfo("Invoking pbjs.enableAnalytics for: ",e),A.enableAnalytics(e)):S.logError("pbjs.enableAnalytics should be called with option {}")},y.aliasBidder=function(e,n){S.logInfo("Invoking pbjs.aliasBidder",arguments),e&&n?A.aliasBidAdapter(e,n):S.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},y.setPriceGranularity=function(e){if(S.logInfo("Invoking pbjs.setPriceGranularity",arguments),e){if("string"==typeof e)T.setPriceGranularity(e);else if("object"===(void 0===e?"undefined":s(e))){if(!(0,g.isValidePriceConfig)(e))return void S.logError("Invalid custom price value passed to `setPriceGranularity()`");T.setCustomPriceBucket(e),T.setPriceGranularity(E.GRANULARITY_OPTIONS.CUSTOM),S.logMessage("Using custom price granularity")}}else S.logError("Prebid Error: no value passed to `setPriceGranularity()`")},y.enableSendAllBids=function(){y._sendAllBids=!0},y.getAllWinningBids=function(){return y._winningBids},y.buildMasterVideoTagFromAdserverTag=function(e,n){S.logInfo("Invoking pbjs.buildMasterVideoTagFromAdserverTag",arguments);var t=(0,p.parse)(e);if(0===y._bidsReceived.length)return e;{if("dfp"===n.adserver.toLowerCase()){var r=w.dfpAdserver(n,t);return r.verifyAdserverTag()||S.logError("Invalid adserverTag, required google params are missing in query string"),r.appendQueryParams(),(0,p.format)(r.urlComponents)}S.logError("Only DFP adserver is supported")}},y.setBidderSequence=function(e){e===E.ORDER.RANDOM&&A.setBidderSequence(E.ORDER.RANDOM)},y.getHighestCpmBids=function(e){return O.getWinningBids(e)},y.setS2SConfig=function(e){if(S.contains(Object.keys(e),"accountId"))if(S.contains(Object.keys(e),"bidders")){var n=d({enabled:!1,endpoint:E.S2S.DEFAULT_ENDPOINT,timeout:1e3,maxBids:1,adapter:E.S2S.ADAPTER,syncEndpoint:E.S2S.SYNC_ENDPOINT,cookieSet:!0,bidders:[]},e);A.setS2SConfig(n)}else S.logError("bidders missing in Server to Server config");else S.logError("accountId missing in Server to Server config")},y.que.push((function(){return(0,b.listenMessagesFromCreative)()})),y.cmd.push=function(e){if("function"===(void 0===e?"undefined":s(e)))try{e.call()}catch(e){S.logError("Error processing command :"+e.message)}else S.logError("Commands written into pbjs.cmd.push must be wrapped in a function")},y.que.push=y.cmd.push,y.processQueue=function(){a(y.que),a(y.cmd)}}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasNonVideoBidder=n.videoAdUnit=void 0;var r=t(1),i=(n.videoAdUnit=function(e){return"video"===e.mediaType},function(e){return!r.videoAdapters.includes(e.bidder)});n.hasNonVideoBidder=function(e){return e.bids.filter(i).length}}),(function(e,n,t){"use strict";t(217),t(230),t(232),t(235),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}}),(function(e,n,t){t(218),e.exports=t(11).Array.find}),(function(e,n,t){"use strict";var r=t(14),i=t(30)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(23)("find")}),(function(e,n,t){var r=t(220),i=t(221),o=t(223),a=Object.defineProperty;n.f=t(19)?Object.defineProperty:function(e,n,t){if(r(e),n=o(n,!0),r(t),i)try{return a(e,n,t)}catch(e){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[n]=t.value),e}}),(function(e,n,t){var r=t(15);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}}),(function(e,n,t){e.exports=!t(19)&&!t(20)((function(){return 7!=Object.defineProperty(t(222)("div"),"a",{get:function(){return 7}}).a}))}),(function(e,n,t){var r=t(15),i=t(13).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}}),(function(e,n,t){var r=t(15);e.exports=function(e,n){if(!r(e))return e;var t,i;if(n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!r(i=t.call(e)))return i;if(!n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")}}),(function(e,n){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}}),(function(e,n,t){var r=t(13),i=t(18),o=t(28),a=t(21)("src"),s=Function.toString,d=(""+s).split("toString");t(11).inspectSource=function(e){return s.call(e)},(e.exports=function(e,n,t,s){var u="function"==typeof t;u&&(o(t,"name")||i(t,"name",n)),e[n]!==t&&(u&&(o(t,a)||i(t,a,e[n]?""+e[n]:d.join(String(n)))),e===r?e[n]=t:s?e[n]?e[n]=t:i(e,n,t):(delete e[n],i(e,n,t)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))}),(function(e,n){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}}),(function(e,n,t){var r=t(228);e.exports=function(e,n){return new(r(e))(n)}}),(function(e,n,t){var r=t(15),i=t(229),o=t(36)("species");e.exports=function(e){var n;return i(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}}),(function(e,n,t){var r=t(31);e.exports=Array.isArray||function(e){return"Array"==r(e)}}),(function(e,n,t){t(231),e.exports=t(11).Array.findIndex}),(function(e,n,t){"use strict";var r=t(14),i=t(30)(6),o="findIndex",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(23)(o)}),(function(e,n,t){t(233),e.exports=t(11).Array.includes}),(function(e,n,t){"use strict";var r=t(14),i=t(38)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(23)("includes")}),(function(e,n,t){var r=t(35),i=Math.max,o=Math.min;e.exports=function(e,n){return(e=r(e))<0?i(e+n,0):o(e,n)}}),(function(e,n,t){t(236),e.exports=t(11).Object.assign}),(function(e,n,t){var r=t(14);r(r.S+r.F,"Object",{assign:t(237)})}),(function(e,n,t){"use strict";var r=t(238),i=t(242),o=t(243),a=t(32),s=t(22),d=Object.assign;e.exports=!d||t(20)((function(){var e={},n={},t=Symbol(),r="abcdefghijklmnopqrst";return e[t]=7,r.split("").forEach((function(e){n[e]=e})),7!=d({},e)[t]||Object.keys(d({},n)).join("")!=r}))?function(e,n){for(var t=a(e),d=arguments.length,u=1,c=i.f,f=o.f;d>u;)for(var l,p=s(arguments[u++]),g=c?r(p).concat(c(p)):r(p),b=g.length,v=0;b>v;)f.call(p,l=g[v++])&&(t[l]=p[l]);return t}:d}),(function(e,n,t){var r=t(239),i=t(241);e.exports=Object.keys||function(e){return r(e,i)}}),(function(e,n,t){var r=t(28),i=t(39),o=t(38)(!1),a=t(240)("IE_PROTO");e.exports=function(e,n){var t,s=i(e),d=0,u=[];for(t in s)t!=a&&r(s,t)&&u.push(t);for(;n.length>d;)r(s,t=n[d++])&&(~o(u,t)||u.push(t));return u}}),(function(e,n,t){var r=t(37)("keys"),i=t(21);e.exports=function(e){return r[e]||(r[e]=i(e))}}),(function(e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")}),(function(e,n){n.f=Object.getOwnPropertySymbols}),(function(e,n){n.f={}.propertyIsEnumerable}),(function(e,n,t){"use strict";function r(e){var n=e.message?"message":"data",t={};try{t=JSON.parse(e[n])}catch(e){return}if(t.adId){var r=pbjs._bidsReceived.find((function(e){return e.adId===t.adId}));"Prebid Request"===t.message&&(i(r,t.adServerDomain,e.source),pbjs._winningBids.push(r),a.default.emit(d,r)),"Prebid Native"===t.message&&((0,s.fireNativeImpressions)(r),pbjs._winningBids.push(r),a.default.emit(d,r))}}function i(e,n,t){var r=e.adId,i=e.ad,a=e.adUrl,s=e.width,d=e.height;r&&(o(e),t.postMessage(JSON.stringify({message:"Prebid Response",ad:i,adUrl:a,adId:r,width:s,height:d}),n))}function o(e){var n=e.adUnitCode,t=e.width,r=e.height,i=document.getElementById(window.googletag.pubads().getSlots().find((function(e){return e.getAdUnitPath()===n||e.getSlotElementId()===n})).getSlotElementId()).querySelector("iframe");i.width=""+t,i.height=""+r}Object.defineProperty(n,"__esModule",{value:!0}),n.listenMessagesFromCreative=function(){addEventListener("message",r,!1)};var a=(function(e){return e&&e.__esModule?e:{default:e}})(t(8)),s=t(12),d=t(4).EVENTS.BID_WON}),(function(e,n,t){"use strict";var r=t(10),i=t(17),o=function(e){this.name=e.adserver,this.code=e.code,this.getWinningBidByCode=function(){return(0,i.getWinningBids)(this.code)[0]}};n.dfpAdserver=function(e,n){var t=new o(e);t.urlComponents=n;var i={env:"vp",gdfp_req:"1",impl:"s",unviewed_position_start:"1"},a=["output","iu","sz","url","correlator","description_url","hl"],s=function(e){return encodeURIComponent((0,r.formatQS)(e))};return t.appendQueryParams=function(){var e=t.getWinningBidByCode();e&&(this.urlComponents.search.description_url=encodeURIComponent(e.descriptionUrl),this.urlComponents.search.cust_params=s(e.adserverTargeting),this.urlComponents.search.correlator=Date.now())},t.verifyAdserverTag=function(){for(var e in i)if(!this.urlComponents.search.hasOwnProperty(e)||this.urlComponents.search[e]!==i[e])return!1;for(var n in a)if(!this.urlComponents.search.hasOwnProperty(a[n]))return!1;return!0},t}})]);
pbjsChunk([73],{64:function(e,t,r){e.exports=r(65)},65:function(e,t,r){"use strict";function a(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var n=a(["","://","/pubapi/3.0/","/","/","/","/ADTECH;v=2;cmd=bid;cors=yes;alias=","",";misc=",""],["","://","/pubapi/3.0/","/","/","/","/ADTECH;v=2;cmd=bid;cors=yes;alias=","",";misc=",""]),i=a(["","://","/bidRequest?"],["","://","/bidRequest?"]),o=a(["dcn=","&pos=","&cmd=bid",""],["dcn=","&pos=","&cmd=bid",""]),d=r(0),s=r(6).ajax,c=r(3),p=r(2),l=r(4),u=r(1);pbjs.aolGlobals={pixelsDropped:!1};var m=function(){function e(e){pbjs.aolGlobals.pixelsDropped||(r(t(e)),pbjs.aolGlobals.pixelsDropped=!0)}function t(e){var t=/(img|iframe)[\s\S]*?src\s*=\s*("|')(.*?)\2/gi,r=/\w*(?=\s)/,a=/src=("|')(.*?)\1/,n=[];if(e){var i=e.match(t);i&&i.forEach((function(e){var t=e.match(r),i=e.match(a);t&&i&&n.push({tagName:t[0].toUpperCase(),src:i[2]})}))}return n}function r(e){e.forEach((function(e){switch(e.tagName){case I.img:return a(e);case I.iframe:return u(e)}}))}function a(e){(new Image).src=e.src}function u(e){var t=document.createElement("iframe");t.width=1,t.height=1,t.style.display="none",t.src=e.src,"interactive"===document.readyState||"complete"===document.readyState?document.body.appendChild(t):O((function(){document.body.appendChild(t)}))}function m(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return function(){for(var t=arguments.length,a=Array(t),n=0;n<t;n++)a[n]=arguments[n];var i=a[a.length-1]||{},o=[e[0]];return r.forEach((function(t,r){var n=Number.isInteger(t)?a[t]:i[t];o.push(n,e[r+1])})),o.join("")}}function b(e){var t=e.params,r=t.server,a=t.region||"us",n=void 0;return C.hasOwnProperty(a)||(d.logWarn("Unknown region '"+a+"' for AOL bidder."),a="us"),n=r||C[a],t.region=a,y({protocol:"https:"===document.location.protocol?"https":"http",host:n,network:t.network,placement:parseInt(t.placement),pageid:t.pageId||0,sizeid:t.sizeId||0,alias:t.alias||d.getUniqueIdentifierStr(),bidfloor:void 0!==t.bidFloor?";bidfloor="+t.bidFloor.toString():"",misc:(new Date).getTime()})}function f(e){var t=e.params,r=t.dcn,a=t.pos,n=w({protocol:"https:"===document.location.protocol?"https":"http",host:e.params.host||S});if(r&&a){var i="";d._each(e.params.ext,(function(e,t){i+="&"+t+"="+encodeURIComponent(e)})),n+=j({dcn:r,pos:a,ext:i})}return n}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c.createBid(2,e);r.bidderCode=E,r.reason=t.nbr,r.raw=t,p.addBidResponse(e.placementCode,r)}function h(t,r){var a=void 0;try{a=r.seatbid[0].bid[0]}catch(e){return void v(t,r)}var n=void 0;if(a.ext&&a.ext.encp)n=a.ext.encp;else if(null===(n=a.price)||isNaN(n))return d.logError("Invalid price in bid response",E,t),void v(t,r);var i=a.adm;r.ext&&r.ext.pixels&&(t.params.userSyncOn===l.EVENTS.BID_RESPONSE?e(r.ext.pixels):i+="<script>if(!parent.pbjs.aolGlobals.pixelsDropped){parent.pbjs.aolGlobals.pixelsDropped=true;"+r.ext.pixels.replace(/<\/?script( type=('|")text\/javascript('|")|)?>/g,"")+"}<\/script>");var o=c.createBid(1,t);o.bidderCode=E,o.ad=i,o.cpm=n,o.width=a.w,o.height=a.h,o.creativeId=a.crid,o.pubapiId=r.id,o.currencyCode=r.cur,a.dealid&&(o.dealId=a.dealid),p.addBidResponse(t.placementCode,o)}function g(e){if(e.params.id&&e.params.imp&&e.params.imp[0]){var t=e.params.imp[0];return t.id&&t.tagid&&(t.banner&&t.banner.w&&t.banner.h||t.video&&t.video.mimes&&t.video.minduration&&t.video.maxduration)}}var x=!0,y=m(n,"protocol","host","network","placement","pageid","sizeid","alias","bidfloor","misc"),w=m(i,"protocol","host"),j=m(o,"dcn","pos","ext"),E="aol",C={us:"adserver-us.adtech.advertising.com",eu:"adserver-eu.adtech.advertising.com",as:"adserver-as.adtech.advertising.com"},S="hb.nexage.com",I={iframe:"IFRAME",img:"IMG"},O=(function(){var e=!1;return function(t){var r=function(){if(!e)return e=!0,t()};if("complete"===document.readyState)return r();document.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1)}})();return{callBids:function(e){d._each(e.bids,(function(e){var t=void 0,r=null,a={withCredentials:!0},n=g(e);e.params.placement&&e.params.network?t=b(e):(e.params.dcn&&e.params.pos||n)&&(t=f(e),n&&(r=e.params,a.customHeaders={"x-openrtb-version":"2.2"},a.method="POST",a.contentType="application/json")),t&&s(t,(function(t){if(x&&pbjs.bidderSettings&&pbjs.bidderSettings.aol&&"function"==typeof pbjs.bidderSettings.aol.bidCpmAdjustment&&d.logWarn("bidCpmAdjustment is active for the AOL adapter. As of Prebid 0.14, AOL can bid in net – please contact your accounts team to enable."),x=!1,!t&&t.length<=0)return d.logError("Empty bid response",E,e),void v(e,t);try{t=JSON.parse(t)}catch(r){return d.logError("Invalid JSON in bid response",E,e),void v(e,t)}h(e,t)}),r,a)}))}}};u.registerBidAdapter(new m,"aol"),e.exports=m}},[64]);
pbjsChunk([72],{68:function(e,r,a){e.exports=a(69)},69:function(e,r,a){"use strict";function t(e){return e&&e.__esModule?e:{default:e}}function i(e){if(Array.isArray(e)){for(var r=0,a=Array(e.length);r<e.length;r++)a[r]=e[r];return a}return Array.from(e)}function n(){function e(e){var r=void 0;try{r=JSON.parse(e)}catch(e){l.logError(e)}if(!r||r.error){var a="in response for "+k.getBidderCode()+" adapter";return r&&r.error&&(a+=": "+r.error),l.logError(a),void Object.keys(x).map((function(e){return x[e].placementCode})).forEach((function(e){c.default.addBidResponse(e,S(v.STATUS.NO_BID))}))}if(r.tags.forEach((function(e){var r=f(e),a=r&&r.cpm,t=r&&r.ad_type,i=void 0;i=0!==a&&b.includes(t)?v.STATUS.GOOD:v.STATUS.NO_BID,t&&!b.includes(t)&&l.logError(t+" ad type not supported"),e.bidId=e.uuid;var n=S(i,e);if("native"===t&&(n.mediaType="native"),"video"===t&&(n.mediaType="video"),"video-outstream"===t&&(n.mediaType="video-outstream"),n.adId in x){var s=x[n.adId].placementCode;c.default.addBidResponse(s,n)}})),!C){var t=l.createInvisibleIframe();t.src="//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html";try{document.body.appendChild(t)}catch(e){l.logError(e)}C=!0}}function r(e){if(e.params.placementId||e.params.member&&e.params.invCode)return e;l.logError("bid requires placementId or (member and invCode) params")}function a(e){var r=[];return l._each(e,(function(e,a){if(l.isArray(e)){var t=[];l._each(e,(function(e){(e=l.getValueString("keywords."+a,e))&&t.push(e)})),e=t}else{if(e=l.getValueString("keywords."+a,e),!l.isStr(e))return;e=[e]}r.push({key:a,value:e})})),r}function t(e){var r=[],a={};if(l.isArray(e)&&2===e.length&&!l.isArray(e[0]))a.width=parseInt(e[0],10),a.height=parseInt(e[1],10),r.push(a);else if("object"===(void 0===e?"undefined":s(e)))for(var t=0;t<e.length;t++){var i=e[t];(a={}).width=parseInt(i[0],10),a.height=parseInt(i[1],10),r.push(a)}return r}function f(e){return e&&e.ads&&e.ads.length&&e.ads.find((function(e){return e.rtb}))}function I(e){e.renderer.push((function(){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()},w.bind(e))}))}function w(e,r){this.renderer.handleVideoEvent({id:e,eventName:r})}function S(e,r){var a=f(r),t=u.default.createBid(e,r);if(t.code=k.getBidderCode(),t.bidderCode=k.getBidderCode(),a&&e===v.STATUS.GOOD)if(t.cpm=a.cpm,t.creative_id=a.creative_id,t.dealId=a.deal_id,a.rtb.video){if(t.width=a.rtb.video.player_width,t.height=a.rtb.video.player_height,t.vastUrl=a.rtb.video.asset_url,t.descriptionUrl=a.rtb.video.asset_url,a.renderer_url){t.adResponse=r,t.renderer=p.Renderer.install({id:a.renderer_id,url:a.renderer_url,config:{adText:"AppNexus Outstream Video Ad via Prebid.js"},loaded:!1});try{t.renderer.setRender(I)}catch(e){l.logWarning("Prebid Error calling setRender on renderer",e)}t.renderer.setEventHandlers({impression:function(){return l.logMessage("AppNexus outstream video impression event")},loaded:function(){return l.logMessage("AppNexus outstream video loaded event")},ended:function(){l.logMessage("AppNexus outstream renderer video event"),document.querySelector("#"+t.adUnitCode).style.display="none"}}),t.adResponse.ad=t.adResponse.ads[0],t.adResponse.ad.video=t.adResponse.ad.rtb.video}}else if(a.rtb.native){var i=a.rtb.native;t.native={title:i.title,body:i.desc,sponsoredBy:i.sponsored,image:i.main_img&&i.main_img.url,icon:i.icon&&i.icon.url,clickUrl:i.link.url,impressionTrackers:i.impression_trackers}}else{t.width=a.rtb.banner.width,t.height=a.rtb.banner.height,t.ad=a.rtb.banner.content;try{var n=a.rtb.trackers[0].impression_urls[0],s=l.createTrackPixelHtml(n);t.ad+=s}catch(e){l.logError("Error appending tracking pixel",e)}}return t}var k=o.default.createNew("appnexusAst"),x={},C=!1;return k.callBids=function(n){x={};var s=0,o=void 0,p=(n.bids||[]).filter((function(e){return r(e)})).map((function(e){x[e.bidId]=e;var r={};if(r.sizes=t(e.sizes),r.primary_size=r.sizes[0],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.prebid=!0,r.disable_psa=!0,s=parseInt(e.params.member,10),e.params.reserve&&(r.reserve=e.params.reserve),e.params.position&&(r.position={above:1,below:2}[e.params.position]||0),e.params.trafficSourceCode&&(r.traffic_source_code=e.params.trafficSourceCode),e.params.privateSizes&&(r.private_sizes=t(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.externalImpId&&(r.external_imp_id=e.params.externalImpId),l.isEmpty(e.params.keywords)||(r.keywords=a(e.params.keywords)),"native"===e.mediaType&&(r.ad_types=["native"],e.nativeParams)){var i={};Object.keys(e.nativeParams).forEach((function(r){var a=_[r]&&_[r].serverName||_[r]||r,t=d({},e.nativeParams[r],_[r]&&_[r].serverParams);i[a]=t})),r.native={layouts:[i]}}return"video"===e.mediaType&&(r.require_asset_url=!0),e.params.video&&(r.video={},Object.keys(e.params.video).filter((function(e){return g.includes(e)})).forEach((function(a){return r.video[a]=e.params.video[a]}))),e.params.user&&(o={},Object.keys(e.params.user).filter((function(e){return h.includes(e)})).forEach((function(r){return o[r]=e.params.user[r]}))),r}));if(!l.isEmpty(p)){var u={tags:[].concat(i(p)),user:o};s>0&&(u.member_id=s);var c=JSON.stringify(u);(0,m.ajax)(y,e,c,{contentType:"text/plain",withCredentials:!0})}},{createNew:n.createNew,callBids:k.callBids,setBidderCode:k.setBidderCode}}var 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},d=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},o=t(a(7)),p=a(16),u=t(a(3)),c=t(a(2)),l=(function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=e[a]);return r.default=e,r})(a(0)),m=a(6),v=a(4),f=t(a(1)),y="//ib.adnxs.com/ut/v3/prebid",b=["banner","video","video-outstream","native"],g=["id","mimes","minduration","maxduration","startdelay","skippable","playback_method","frameworks"],h=["age","external_uid","segments","gender","dnt","language"],_={body:"description",image:{serverName:"main_image",serverParams:{required:!0,sizes:[{}]}},icon:{serverName:"icon",serverParams:{required:!0,sizes:[{}]}},sponsoredBy:"sponsored_by"};n.createNew=function(){return new n},f.default.registerBidAdapter(new n,"appnexusAst",{supportedMediaTypes:["video","native"]}),e.exports=n}},[68]);
pbjsChunk([71],{70:function(e,r,a){e.exports=a(71)},71:function(e,r,a){"use strict";var t,d=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},s=a(0),i=(function(e){return e&&e.__esModule?e:{default:e}})(a(1)),n=a(4),p=a(0),l=a(5),u=a(2),c=a(3),o=a(7);(t=function e(){function r(e,r){var a=p.getBidIdParameter("placementId",e.params),t=p.getBidIdParameter("memberId",e.params),s=p.getBidIdParameter("member",e.params),i=p.getBidIdParameter("invCode",e.params),n=p.getBidIdParameter("query",e.params),l=p.getBidIdParameter("referrer",e.params),u=p.getBidIdParameter("alt_referrer",e.params),c="//ib.adnxs.com/jpt?";c=p.tryAppendQueryString(c,"callback","pbjs.handleAnCB"),c=p.tryAppendQueryString(c,"callback_uid",r),c=p.tryAppendQueryString(c,"psa","0"),c=p.tryAppendQueryString(c,"id",a),s?c=p.tryAppendQueryString(c,"member",s):t&&(c=p.tryAppendQueryString(c,"member",t),p.logMessage('appnexus.callBids: "memberId" will be deprecated soon. Please use "member" instead')),c=p.tryAppendQueryString(c,"code",i),c=p.tryAppendQueryString(c,"traffic_source_code",p.getBidIdParameter("trafficSourceCode",e.params));var o="",m=p.parseSizesInput(e.sizes),f=m.length;if(f>0&&(o="size="+m[0],f>1)){o+="&promo_sizes=";for(var g=1;g<f;g++)o+=m[g]+=",";o&&","===o.charAt(o.length-1)&&(o=o.slice(0,o.length-1))}o&&(c+=o+"&");var b=p.parseQueryStringParameters(n);b&&(c+=b);var y=d({},e.params);delete y.placementId,delete y.memberId,delete y.invCode,delete y.query,delete y.referrer,delete y.alt_referrer,delete y.member;var B=p.parseQueryStringParameters(y);return B&&(c+=B),""===l&&(l=p.getTopWindowUrl()),c=p.tryAppendQueryString(c,"referrer",l),(c=p.tryAppendQueryString(c,"alt_referrer",u)).lastIndexOf("&")===c.length-1&&(c=c.substring(0,c.length-1)),p.logMessage("jpt request built: "+c),e.startTime=(new Date).getTime(),c}var a=o.createNew("appnexus"),t=!1;return a.callBids=function(e){for(var a=e.bids,t=0;t<a.length;t++){var d=a[t],s=d.bidId;l.loadScript(r(d,s))}},pbjs.handleAnCB=function(e){var r;if(e&&e.callback_uid){var a,d=e.callback_uid,i="",l=(0,s.getBidRequest)(d);l&&(r=l.bidder,i=l.placementCode,l.status=n.STATUS.GOOD),p.logMessage("JSONP callback function called for ad ID: "+d);var o=[];if(e.result&&e.result.cpm&&0!==e.result.cpm){a=parseInt(e.result.cpm,10),a/=1e4;var m=e.result.creative_id;(o=c.createBid(1,l)).creative_id=m,o.bidderCode=r,o.cpm=a,o.adUrl=e.result.ad,o.width=e.result.width,o.height=e.result.height,o.dealId=e.result.deal_id,u.addBidResponse(i,o)}else p.logMessage("No prebid response from AppNexus for placement code "+i),(o=c.createBid(2,l)).bidderCode=r,u.addBidResponse(i,o);if(!t){var f=p.createInvisibleIframe();f.src="//acdn.adnxs.com/ib/static/usersync/v3/async_usersync.html";try{document.body.appendChild(f)}catch(e){p.logError(e)}t=!0}}else p.logMessage("No prebid response for placement %%PLACEMENT%%")},{callBids:a.callBids,setBidderCode:a.setBidderCode,createNew:e.createNew,buildJPTCall:r}}).createNew=function(){return new t},i.default.registerBidAdapter(new t,"appnexus"),i.default.aliasBidAdapter("appnexus","brealtime"),i.default.aliasBidAdapter("appnexus","pagescience"),i.default.aliasBidAdapter("appnexus","defymedia"),i.default.aliasBidAdapter("appnexus","gourmetads"),i.default.aliasBidAdapter("appnexus","matomy"),i.default.aliasBidAdapter("appnexus","featureforward"),i.default.aliasBidAdapter("appnexus","oftmedia"),i.default.aliasBidAdapter("appnexus","sekindoapn"),i.default.aliasBidAdapter("appnexus","springserve"),e.exports=t}},[70]);
pbjsChunk([63],{86:function(e,a,t){e.exports=t(87)},87:function(e,a,t){"use strict";var i=t(4),r=t(0),n=t(3),s=t(2),d=t(5),o=t(6).ajax,c=function(){var e=window,a=navigator,t="//media.msg.dotomi.com/s2s/header/24?callback=pbjs.conversantResponse",c=function(e){var a=document.createElement("script");a.type="text/javascript",a.className="cnvr-response";try{a.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(a)}catch(t){a.text=e,document.getElementsByTagName("head")[0].appendChild(a)}},p=function(){return"1"===a.doNotTrack||"1"===e.doNotTrack||"1"===a.msDoNotTrack||"yes"===a.doNotTrack},m=function(){var e=a.language?"language":"userLanguage";return{h:screen.height,w:screen.width,dnt:p()?1:0,language:a[e].split("-")[0],make:a.vendor?a.vendor:"",ua:a.userAgent}},u=function(e){var a,i=location.pathname+location.search+location.hash,n="",s=[],d=0;r._each(e,(function(e){var a,t,i,o,c=r.getBidIdParameter("bidfloor",e.params),p=0,m=0;d=r.getBidIdParameter("secure",e.params)?1:d,n=r.getBidIdParameter("site_id",e.params)+"",t=r.getBidIdParameter("tag_id",e.params),i=r.getBidIdParameter("position",e.params);var u=Array.isArray(e.params.sizes)?e.params.sizes:e.sizes;if(2===u.length&&"number"==typeof u[0]&&"number"==typeof u[1]?(p=u[0],m=u[1]):(a=[],r._each(u,(function(e){a.push({w:e[0],h:e[1]})}))),o={id:e.bidId,secure:d,bidfloor:c||0,displaymanager:"Prebid.js",displaymanagerver:"2.1.0"},""!==t&&(o.tagid=t),"video"===e.mediaType){var l=[],b=0,g=[],h=[],v=Array.isArray(a)?{format:a}:{w:p,h:m};""!==(l=r.getBidIdParameter("mimes",e.params))&&(v.mimes=l),""!==(b=r.getBidIdParameter("maxduration",e.params))&&(v.maxduration=b),""!==(g=r.getBidIdParameter("protocols",e.params))&&(v.protocols=g),""!==(h=r.getBidIdParameter("api",e.params))&&(v.api=h),""!==i&&(v.pos=i),o.video=v}else{var f=Array.isArray(a)?{format:a}:{w:p,h:m};""!==i&&(f.pos=i),o.banner=f}s.push(o)})),a={id:r.getUniqueIdentifierStr(),imp:s,site:{id:n,mobile:null!==document.querySelector('meta[name="viewport"][content*="width=device-width"]')?1:0,page:i},device:m(),at:1};var p=d?"https:"+t:location.protocol+t;o(p,c,JSON.stringify(a),{withCredentials:!0})},l=function(e){var a=pbjs._bidsRequested.find((function(e){return"conversant"===e.bidderCode}));a&&a.bids&&r._each(a.bids,(function(a){if(!r.contains(e,a.placementCode)){var t=n.createBid(2,a);t.bidderCode="conversant",s.addBidResponse(a.placementCode,t)}}))},b=function(e){var a=[];r._each(e.bid,(function(e){var t,r,d,o="",c=e.impid,p={},m=pbjs._bidsRequested.find((function(e){return"conversant"===e.bidderCode})).bids.find((function(e){return e.bidId===c}));m&&(o=m.placementCode,m.status=i.STATUS.GOOD,0!==(t=parseFloat(e.price))&&(e.placementCode=o,a.push(o),e.size=m.sizes,r=e.adm||"",d=e.nurl||"",(p=n.createBid(1,m)).creative_id=e.id||"",p.bidderCode="conversant",p.cpm=t,"video"===m.mediaType?p.vastUrl=r:p.ad=r+'<img src="'+d+'" />',2===m.sizes.length&&"number"==typeof m.sizes[0]&&"number"==typeof m.sizes[1]?(p.width=m.sizes[0],p.height=m.sizes[1]):(p.width=m.sizes[0][0],p.height=m.sizes[0][1]),s.addBidResponse(o,p)))})),l(a)};return pbjs.conversantResponse=function(e,a){e&&e.id&&e.seatbid&&e.seatbid.length>0&&e.seatbid[0].bid&&e.seatbid[0].bid.length>0?r._each(e.seatbid,b):l([]),a&&d.loadScript(a,(function(){var e=pbjs._bidsRequested.find((function(e){return"conversant"===e.bidderCode}));pbjs.conversantDebugResponse&&pbjs.conversantDebugResponse(e)}))},{callBids:function(e){var a=e.bids||[];u(a)}}};t(1).registerBidAdapter(new c,"conversant",{supportedMediaTypes:["video"]}),e.exports=c}},[86]);
pbjsChunk([61],{90:function(t,i,e){t.exports=e(91)},91:function(t,i,e){"use strict";var r=e(3),n=e(2),o=e(5),d=function(){function t(t){window.Criteo=window.Criteo||{},window.Criteo.events=window.Criteo.events||[];window.Criteo.events.push((function(){for(var i=t.bids||[],e=[],r=!1,n=0;n<i.length;n++){var o=i[n],c=o.sizes||[];e.push(new Criteo.PubTag.DirectBidding.DirectBiddingSlot(o.placementCode,o.params.zoneId,void 0,o.transactionId,c.map((function(t){return{width:t[0],height:t[1]}}))));var s=o.params.networkId;r|=void 0!==o.params.audit}var u=new Criteo.PubTag.DirectBidding.DirectBiddingEvent(p,new Criteo.PubTag.DirectBidding.DirectBiddingUrlBuilder(r),e,d(e),a(e),a(e),void 0,s);window.criteo_pubtag.push(u)}))}function i(t){try{return JSON.parse(t)}catch(t){return{}}}function e(t){return void 0===t.slots}function d(t){return function(o){var d=i(o);if(e(d))return a(t)();for(var s=0;s<t.length;s++){for(var p=null,w=0;w<d.slots.length;w++)if(d.slots[w]&&d.slots[w].impid===t[s].impId){p=d.slots.splice(w,1)[0];break}var l;p?((l=r.createBid(1)).bidderCode=u,l.cpm=p.cpm,l.ad=p.creative,l.width=p.width,l.height=p.height):l=c(),n.addBidResponse(t[s].impId,l)}}}function a(t){return function(){for(var i=0;i<t.length;i++)n.addBidResponse(t[i].impId,c())}}function c(){var t=r.createBid(2);return t.bidderCode=u,t}var s=("http:"===window.location.protocol?"http:":"https:")+"//static.criteo.net/js/ld/publishertag.js",u="criteo",p=125;return{callBids:function(i){!window.criteo_pubtag||window.criteo_pubtag instanceof Array?(t(i),o.loadScript(s,(function(){}),!0)):t(i)}}};e(1).registerBidAdapter(new d,"criteo"),t.exports=d}},[90]);
pbjsChunk([60],{95:function(e,i,d){e.exports=d(96)},96:function(e,i,d){"use strict";var s=d(3),t=d(2),r=d(5),n=function(){var e=this,i=window.location.protocol+"//prebid.districtm.ca/lib.js";return this.callBids=function(d){return window.hb_dmx_res?e.sendBids(d):r.loadScript(i,(function(){e.sendBids(d)})),d},this.handlerRes=function(e,i){var d=void 0;return parseFloat(e.result.cpm)>0?((d=s.createBid(1)).bidderCode=i.bidder,d.cpm=e.result.cpm,d.width=e.result.width,d.height=e.result.height,d.ad=e.result.banner,t.addBidResponse(i.placementCode,d)):((d=s.createBid(2)).bidderCode=i.bidder,t.addBidResponse(i.placementCode,d)),d},this.sendBids=function(e){for(var i=e.bids,d=0;d<i.length;d++)i[d].params.sizes=window.hb_dmx_res.auction.fixSize(i[d].sizes);return window.hb_dmx_res.auction.run(window.hb_dmx_res.ssp,i,this.handlerRes),i},{callBids:this.callBids,sendBids:this.sendBids,handlerRes:this.handlerRes}};d(1).registerBidAdapter(new n,"districtmDMX"),e.exports=n}},[95]);
pbjsChunk([55],{105:function(n,e,o){n.exports=o(106)},106:function(n,e,o){"use strict";function t(){if(h&&"function"==typeof window[S]){for(var n=0;n<E.length;n++)E[n].call();E.push=function(n){n.call()},h=!1}p.logMessage("event count sent to GA: "+D)}function i(n){return n?Math.floor(100*n):0}function s(n){var e;return n>=0&&n<200?e="0-200ms":n>=200&&n<300?e="0200-300ms":n>=300&&n<400?e="0300-400ms":n>=400&&n<500?e="0400-500ms":n>=500&&n<600?e="0500-600ms":n>=600&&n<800?e="0600-800ms":n>=800&&n<1e3?e="0800-1000ms":n>=1e3&&n<1200?e="1000-1200ms":n>=1200&&n<1500?e="1200-1500ms":n>=1500&&n<2e3?e="1500-2000ms":n>=2e3&&(e="2000ms above"),e}function r(n){var e;return n>=0&&n<.5?e="$0-0.5":n>=.5&&n<1?e="$0.5-1":n>=1&&n<1.5?e="$1-1.5":n>=1.5&&n<2?e="$1.5-2":n>=2&&n<2.5?e="$2-2.5":n>=2.5&&n<3?e="$2.5-3":n>=3&&n<4?e="$3-4":n>=4&&n<6?e="$4-6":n>=6&&n<8?e="$6-8":n>=8&&(e="$8 above"),e}function a(n){n&&n.bidderCode&&E.push((function(){D++,window[S](A,"event",$,"Requests",n.bidderCode,1,w)})),t()}function d(n){n&&n.bidderCode&&E.push((function(){var e=i(n.cpm),o=n.bidderCode;if(void 0!==n.timeToRespond&&N){D++;var t=s(n.timeToRespond);window[S](A,"event","Prebid.js Load Time Distribution",t,o,1,w)}if(n.cpm>0){D+=2;var a=r(n.cpm);N&&(D++,window[S](A,"event","Prebid.js CPM Distribution",a,o,1,w)),window[S](A,"event",$,"Bids",o,e,w),window[S](A,"event",$,"Bid Load Time",o,n.timeToRespond,w)}})),t()}function u(n){E.push((function(){p._each(n,(function(n){D++,window[S](A,"event",$,"Timeouts",n,w)}))})),t()}function c(n){var e=i(n.cpm);E.push((function(){D++,window[S](A,"event",$,"Wins",n.bidderCode,e,w)})),t()}var l="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},f=o(8),p=o(0),b=o(4),m=o(1),v=b.EVENTS.BID_REQUESTED,y=b.EVENTS.BID_TIMEOUT,g=b.EVENTS.BID_RESPONSE,T=b.EVENTS.BID_WON,w={nonInteraction:!0},E=[],S=null,h=!0,$="Prebid.js Bids",D=0,N=!1,A=null,B=!0;e.enableAnalytics=function(n){var e=n.provider,o=n.options;S=e||"ga",A=o&&o.trackerName?o.trackerName+".send":"send",B=void 0===o||void 0===o.sampling||Math.random()<parseFloat(o.sampling),o&&void 0!==o.global&&(S=o.global),o&&void 0!==o.enableDistribution&&(N=o.enableDistribution);var t=null;if(B){var i=f.getEvents();p._each(i,(function(n){if("object"===(void 0===n?"undefined":l(n))){var e=n.args;n.eventType===v?a(t=e):n.eventType===g?d(t=e):n.eventType===y?u(e):n.eventType===T&&c(t=e)}})),f.on(v,(function(n){a(n)})),f.on(g,(function(n){d(n)})),f.on(y,(function(n){u(n)})),f.on(T,(function(n){c(n)}))}else p.logMessage("Prebid.js google analytics disabled by sampling");this.enableAnalytics=function(){return p.logMessage("Analytics adapter already enabled, unnecessary call to `enableAnalytics`.")}},e.getTrackerSend=function(){return A},m.registerAnalyticsAdapter({adapter:e,code:"ga"})}},[105]);
pbjsChunk([51],{113:function(e,t,i){e.exports=i(114)},114:function(e,t,i){"use strict";var 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},r=i(0),a=i(3),n=i(2),o=i(5),d=i(1),u="INDEXEXCHANGE",g="indexExchange",p={INDEX_DEBUG_MODE:{queryParam:"pbjs_ix_debug",mode:{sandbox:{topFrameLimit:10,queryValue:"sandbox",siteID:"999990"}}}};window.cygnus_index_parse_res=function(e){try{if(e){if("object"!==("undefined"==typeof _IndexRequestData?"undefined":s(_IndexRequestData))||"object"!==s(_IndexRequestData.impIDToSlotID)||void 0===_IndexRequestData.impIDToSlotID[e.id])return;var t,i=1;"object"===s(_IndexRequestData.reqOptions)&&"object"===s(_IndexRequestData.reqOptions[e.id])&&("function"==typeof _IndexRequestData.reqOptions[e.id].callback&&(t=_IndexRequestData.reqOptions[e.id].callback),"number"==typeof _IndexRequestData.reqOptions[e.id].targetMode&&(i=_IndexRequestData.reqOptions[e.id].targetMode)),_IndexRequestData.lastRequestID=e.id,_IndexRequestData.targetIDToBid={},_IndexRequestData.targetIDToResp={},_IndexRequestData.targetIDToCreative={};for(var r=[],a=void 0===e.seatbid?0:e.seatbid.length,n=0;n<a;n++)for(var o=0;o<e.seatbid[n].bid.length;o++){var d=e.seatbid[n].bid[o];if("object"===s(d.ext)&&"string"==typeof d.ext.pricelevel&&void 0!==_IndexRequestData.impIDToSlotID[e.id][d.impid]){var u,g,p,l=_IndexRequestData.impIDToSlotID[e.id][d.impid];"string"==typeof d.ext.dealid?(u=1===i?l+d.ext.pricelevel:l+"_"+d.ext.dealid,g=l+"_"+d.ext.dealid,p="IPM_"):(u=l+d.ext.pricelevel,g=l+d.ext.pricelevel,p="IOM_"),void 0===_IndexRequestData.targetIDToBid[u]?_IndexRequestData.targetIDToBid[u]=[d.adm]:_IndexRequestData.targetIDToBid[u].push(d.adm),void 0===_IndexRequestData.targetIDToCreative[g]?_IndexRequestData.targetIDToCreative[g]=[d.adm]:_IndexRequestData.targetIDToCreative[g].push(d.adm);var c={};c.impressionID=d.impid,void 0!==d.ext.dealid&&(c.dealID=d.ext.dealid),c.bid=d.price,c.slotID=l,c.priceLevel=d.ext.pricelevel,c.target=p+u,_IndexRequestData.targetIDToResp[u]=c,r.push(c)}}"function"==typeof t&&(0===r.length?t(e.id):t(e.id,r))}}catch(e){}"function"==typeof window.cygnus_index_ready_state&&window.cygnus_index_ready_state()},window.index_render=function(e,t){try{var i=_IndexRequestData.targetIDToCreative[t].pop();if(null!=i)e.write(i);else{var s="https:"===window.location.protocol?"https://as-sec.casalemedia.com":"http://as.casalemedia.com";s+="/headerstats?type=RT&s="+cygnus_index_args.siteID+"&u="+encodeURIComponent(location.href)+"&r="+_IndexRequestData.lastRequestID,(new Image).src=s+"&blank="+t}}catch(e){}},window.headertag_render=function(e,t,i){for(var s=i,r=t.split(","),a=0;a<r.length;a++)if(r[a].split("_")[0]==s)return void index_render(e,r[a])},window.cygnus_index_args={};var l=[[728,90],[120,600],[300,250],[160,600],[336,280],[234,60],[300,600],[300,50],[320,50],[970,250],[300,1050],[970,90],[180,150]],c=function(){return f(p.INDEX_DEBUG_MODE.queryParam).toUpperCase()},f=function(e){for(var t=window,i="",s=0;s<p.INDEX_DEBUG_MODE.mode.sandbox.topFrameLimit&&t.parent!=t;s++){try{i=t.document.referrer}catch(e){}t=t.parent}var r=top===self?location.href:i,a="[\\?&]"+e+"=([^&#]*)",n=new RegExp(a).exec(r);return null===n?"":decodeURIComponent(n[1].replace(/\+/g," "))},_=function(){function e(e){var t=a[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}function t(t){return s.lastIndex=0,s.test(t)?t.replace(s,e):t}function i(e,t,i){if(this.initialized=!1,"number"!=typeof e||e%1!=0||e<0)throw"Invalid Site ID";if("number"==typeof(i=Number(i))&&i%1==0&&i>=0&&(this.timeoutDelay=i),this.siteID=e,this.impressions=[],this._parseFnName=void 0,top===self?(this.sitePage=location.href,this.topframe=1):(this.sitePage=document.referrer,this.topframe=0),void 0!==t){if("function"!=typeof t)throw"Invalid jsonp target function";this._parseFnName="cygnus_index_args.parseFn"}void 0===_IndexRequestData.requestCounter?_IndexRequestData.requestCounter=Math.floor(256*Math.random()):_IndexRequestData.requestCounter=(_IndexRequestData.requestCounter+1)%256,this.requestID=String((new Date).getTime()%2592e3*256+_IndexRequestData.requestCounter+256),this.initialized=!0}window.cygnus_index_args.parseFn=cygnus_index_parse_res;var s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};i.prototype.serialize=function(){var e='{"id":"'+this.requestID+'","site":{"page":"'+t(this.sitePage)+'"';"string"==typeof document.referrer&&""!==document.referrer&&(e+=',"ref":"'+t(document.referrer)+'"'),e+='},"imp":[';for(var i=0;i<this.impressions.length;i++){var s=this.impressions[i],r=[];e+='{"id":"'+s.id+'", "banner":{"w":'+s.w+',"h":'+s.h+',"topframe":'+String(this.topframe)+"}","number"==typeof s.bidfloor&&(e+=',"bidfloor":'+s.bidfloor,"string"==typeof s.bidfloorcur&&(e+=',"bidfloorcur":"'+t(s.bidfloorcur)+'"')),"string"!=typeof s.slotID||s.slotID.match(/^\s*$/)||r.push('"sid":"'+t(s.slotID)+'"'),"number"==typeof s.siteID&&r.push('"siteID":'+s.siteID),r.length>0&&(e+=',"ext": {'+r.join()+"}"),i+1===this.impressions.length?e+="}":e+="},"}return e+="]}"},i.prototype.setPageOverride=function(e){return"string"==typeof e&&!e.match(/^\s*$/)&&(this.sitePage=e,!0)},i.prototype.addImpression=function(e,t,i,s,r,a){var n={id:String(this.impressions.length+1)};if("number"!=typeof e||e<=1)return null;if("number"!=typeof t||t<=1)return null;if(("string"==typeof r||"number"==typeof r)&&String(r).length<=50&&(n.slotID=String(r)),n.w=e,n.h=t,void 0!==i&&"number"!=typeof i)return null;if("number"==typeof i){if(i<0)return null;if(n.bidfloor=i,void 0!==s&&"string"!=typeof s)return null;n.bidfloorcur=s}if(void 0!==a){if(!("number"==typeof a&&a%1==0&&a>=0))return null;n.siteID=a}return this.impressions.push(n),n.id},i.prototype.buildRequest=function(){if(0!==this.impressions.length&&!0===this.initialized){var e,t=encodeURIComponent(this.serialize());c()==p.INDEX_DEBUG_MODE.mode.sandbox.queryValue.toUpperCase()?(this.siteID=p.INDEX_DEBUG_MODE.mode.sandbox.siteID,e="https:"===window.location.protocol?"https://sandbox.ht.indexexchange.com":"http://sandbox.ht.indexexchange.com",r.logMessage("IX DEBUG: Sandbox mode activated")):e="https:"===window.location.protocol?"https://as-sec.casalemedia.com":"http://as.casalemedia.com";var i=encodeURIComponent("0.27.0-pre");return e+="/cygnus?v=7&fn=cygnus_index_parse_res&s="+this.siteID+"&r="+t+"&pid=pb"+i,"number"==typeof this.timeoutDelay&&this.timeoutDelay%1==0&&this.timeoutDelay>=0&&(e+="&t="+this.timeoutDelay),e}};try{if("undefined"==typeof cygnus_index_args||void 0===cygnus_index_args.siteID||void 0===cygnus_index_args.slots)return;var n=new i(cygnus_index_args.siteID,cygnus_index_args.parseFn,cygnus_index_args.timeout);cygnus_index_args.url&&"string"==typeof cygnus_index_args.url&&n.setPageOverride(cygnus_index_args.url),_IndexRequestData.impIDToSlotID[n.requestID]={},_IndexRequestData.reqOptions[n.requestID]={};for(var o,d,g=0;g<cygnus_index_args.slots.length;g++)o=cygnus_index_args.slots[g],(d=n.addImpression(o.width,o.height,o.bidfloor,o.bidfloorcur,o.id,o.siteID))&&(_IndexRequestData.impIDToSlotID[n.requestID][d]=String(o.id));return"number"==typeof cygnus_index_args.targetMode&&(_IndexRequestData.reqOptions[n.requestID].targetMode=cygnus_index_args.targetMode),"function"==typeof cygnus_index_args.callback&&(_IndexRequestData.reqOptions[n.requestID].callback=cygnus_index_args.callback),n.buildRequest()}catch(e){r.logError("Error calling index adapter",u,e)}},D=function(){function e(e,t){for(var i=0;i<t.length;i++)if(e.id===t[i].id)return t;return t.push(e),t}function t(e,t){var i=e.slots,s={};return r._each(i,(function(e){e.id===t&&(s=e)})),s}function i(){var e=a.createBid(2);e.bidderCode=g,n.addBidResponse(c,e)}var d={},p=["id","siteID"],c="";return{callBids:function(f){var D=f.bids;if(void 0===window._IndexRequestData&&(window._IndexRequestData={},window._IndexRequestData.impIDToSlotID={},window._IndexRequestData.reqOptions={}),_IndexRequestData.targetAggregate={open:{},private:{}},r.hasValidBidRequest(D[0].params,p,u)){cygnus_index_args.slots=[];for(var I=0;I<D.length;I++){var x=D[I],h=0;x.sizes[0]instanceof Array||(x.sizes=[x.sizes]);for(var m=0;m<x.sizes.length;m++){for(var y=!1,v=0;v<l.length;v++)if(x.sizes[m][0]==l[v][0]&&x.sizes[m][1]==l[v][1]){x.sizes[m][0]=Number(x.sizes[m][0]),x.sizes[m][1]=Number(x.sizes[m][1]),y=!0;break}if(y){var q=!1;if(x.params.size&&x.params.size instanceof Array){if(x.sizes[m][0]!=x.params.size[0]||x.sizes[m][1]!=x.params.size[1])continue;q=!0}x.params.timeout&&void 0===cygnus_index_args.timeout&&(cygnus_index_args.timeout=x.params.timeout);var b=Number(x.params.siteID);if("number"!=typeof b||b%1!=0||b<=0)r.logMessage(u+" slot excluded from request due to invalid siteID");else if(b&&void 0===cygnus_index_args.siteID&&(cygnus_index_args.siteID=b),r.hasValidBidRequest(x.params,p,u)){c=x.placementCode;var R=x.params[p[0]];if("string"!=typeof R&&"number"!=typeof R){r.logError(u+" bid contains invalid slot ID from "+x.placementCode+". Discarding slot");continue}h++;var w={width:x.sizes[m][0],height:x.sizes[m][1]},T=q?String(R):R+"_"+h;if(d[T]=x,cygnus_index_args.slots=e({id:T,width:w.width,height:w.height,siteID:b||cygnus_index_args.siteID},cygnus_index_args.slots),x.params.tier2SiteID){var E=Number(x.params.tier2SiteID);if(void 0!==E&&!E)continue;cygnus_index_args.slots=e({id:"T1_"+T,width:w.width,height:w.height,siteID:E},cygnus_index_args.slots)}if(x.params.tier3SiteID){var S=Number(x.params.tier3SiteID);if(void 0!==S&&!S)continue;cygnus_index_args.slots=e({id:"T2_"+T,width:w.width,height:w.height,siteID:S},cygnus_index_args.slots)}}}else r.logMessage(u+" slot excluded from request due to no valid sizes")}}cygnus_index_args.slots.length>20&&r.logError("Too many unique sizes on slots, will use the first 20.",u),o.loadScript(_());var z=!1;window.cygnus_index_ready_state=function(){if(!z){z=!0;try{var e=_IndexRequestData.targetIDToBid;cygnus_index_args;for(var o in d){var p=d[o].placementCode,l=[];for(var c in e){var f=/^(T\d_)?(.+)_(\d+)$/.exec(c);if(f){var _=f[1]||"",D=f[2],I=f[3],x=t(cygnus_index_args,_+D);D===o&&((y=a.createBid(1)).cpm=I/100,y.ad=e[c][0],y.bidderCode=g,y.width=x.width,y.height=x.height,y.siteID=x.siteID,"object"===s(_IndexRequestData.targetIDToResp)&&"object"===s(_IndexRequestData.targetIDToResp[c])&&void 0!==_IndexRequestData.targetIDToResp[c].dealID?(void 0===_IndexRequestData.targetAggregate.private[p]&&(_IndexRequestData.targetAggregate.private[p]=[]),y.dealId=_IndexRequestData.targetIDToResp[c].dealID,_IndexRequestData.targetAggregate.private[p].push(D+"_"+_IndexRequestData.targetIDToResp[c].dealID)):(void 0===_IndexRequestData.targetAggregate.open[p]&&(_IndexRequestData.targetAggregate.open[p]=[]),_IndexRequestData.targetAggregate.open[p].push(D+"_"+I)),l.push(y))}else r.logError("Unable to parse "+c+", skipping slot",u)}var h;if(l.length>0)for(var m=0;m<l.length;m++)n.addBidResponse(p,l[m]);else{var y=a.createBid(2);y.bidderCode=g,h=y,n.addBidResponse(p,h)}}}catch(e){r.logError("Error calling index adapter",u,e),i()}finally{_IndexRequestData.targetIDToBid={}}d={}}}}}}};d.registerBidAdapter(new D,"indexExchange"),e.exports=D}},[113]);
pbjsChunk([45],{125:function(i,e,d){i.exports=d(126)},126:function(i,e,d){"use strict";function n(i,e){return encodeURIComponent(i)+"="+encodeURIComponent(e)}function r(i,e){var d=p.createBid(void 0!==e?1:2);d.bidderCode="kruxlink",void 0!==e&&(d.cpm=e.price,d.ad=e.adm,d.width=e.w,d.height=e.h),s.addBidResponse(i,d)}function t(i,e){var d="_kruxlink_"+i;return pbjs[d]=function(i){if(delete pbjs[d],void 0!==i.seatbid)for(var n=0;n<i.seatbid.length;n++){var t=i.seatbid[n];if(void 0!==t.bid)for(var o=0;o<t.bid.length;o++){var a=t.bid[o];void 0!==a.impid&&(r(e[a.impid],a),delete e[a.impid])}}for(var p in e)e.hasOwnProperty(p)&&r(e[p])},"pbjs."+d}function o(i){for(var e=[],d={},r=i.bids||[],o=0;o<r.length;o++){var a=r[o],p=(a.params||{}).impid;d[p]=a.placementCode,e.push(p)}var s=t(i.bidderRequestId,d),u="https://link.krxd.net/hb?"+[n("id",i.bidderRequestId),n("u",window.location.href),n("impid",e.join(",")),n("calltype","pbd"),n("callback",s)].join("&");c.loadScript(u)}function a(){return{callBids:o}}var p=d(3),s=d(2),c=d(5);d(1).registerBidAdapter(new a,"kruxlink"),i.exports=a}},[125]);
pbjsChunk([40],{135:function(e,t,n){e.exports=n(136)},136:function(e,t,n){"use strict";var i=n(3),r=n(2),a=n(5),o=n(4),d=n(0),s=function(){function e(e){var t=void 0,n=void 0,i=window,r=document,a=r.documentElement,o=void 0;if(e){try{i=window.top,r=window.top.document}catch(e){return}a=r.documentElement,o=r.body,t=i.innerWidth||a.clientWidth||o.clientWidth,n=i.innerHeight||a.clientHeight||o.clientHeight}else a=r.documentElement,t=i.innerWidth||a.clientWidth,n=i.innerHeight||a.clientHeight;return t+"x"+n}function t(e){var t=d.createInvisibleIframe();t.setAttribute("id","openx-pd"),t.setAttribute("name","openx-pd");var n=document.body;n&&(t.src=e,b?(b.parentNode.replaceChild(t,b),b=t):b=n.appendChild(t))}function n(e,t){var n=i.createBid(e?o.STATUS.GOOD:o.STATUS.NO_BID,t);if(n.bidderCode=l,e){var a=e.creative[0];n.ad=e.html,n.cpm=Number(e.pub_rev)/1e3,n.ad_id=e.adid,e.deal_id&&(n.dealId=e.deal_id),a&&(n.width=a.width,n.height=a.height)}r.addBidResponse(t.placementCode,n)}function s(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]||delete e[t]);return d._map(Object.keys(e),(function(t){return t+"="+e[t]})).join("&")}function c(e,t){var n=new Image,i=e.tracking.impression.match(/([^?]+\/)ri\?/);i&&(n.src=i[1]+"bo?"+s(t))}function u(e,t){var n=d.parseSizesInput(t.sizes),i=n&&n.length||0,r=!1,a=e.creative&&e.creative[0],o=String(a.width)+"x"+String(a.height);if(d.isArray(n))for(var s=0;s<i;s++){var c=n[s];if(String(c)===String(o)){r=!0;break}}return r}function p(e,t,n){if(d.isArray(e)){t.auid=d._map(e,(function(e){return e.params.unit})).join("%2C"),t.aus=d._map(e,(function(e){return d.parseSizesInput(e.sizes).join(",")})).join("|"),e.forEach((function(e){for(var n in e.params.customParams)e.params.customParams.hasOwnProperty(n)&&(t["c."+n]=e.params.customParams[n])})),t.callback="window.pbjs.oxARJResponse";var i=s(t);a.loadScript("//"+n+"/w/1.0/arj?"+i)}}var l="openx",h="hb_pb",m=void 0,b=null;return pbjs.oxARJResponse=function(e){var i=e.ads.ad;e.ads&&e.ads.pixels&&t(e.ads.pixels),i||(i=[]);for(var r=pbjs._bidsRequested.find((function(e){return"openx"===e.bidderCode})).bids,a=0;a<r.length;a++){for(var o=r[a],d=null,s=null,p=0;p<i.length;p++)if(s=i[p],String(o.params.unit)===String(s.adunitid)&&u(s,o)&&!s.used){d=s.adunitid;break}var l={bd:+new Date-m,br:"0",bt:pbjs.cbTimeout||pbjs.bidderTimeout,bs:window.location.hostname};d&&s.pub_rev?(s.used=!0,l.br=l.bt<l.bd?"t":"p",l.bp=s.pub_rev,l.ts=s.ts,n(s,o),c(s.creative[0],l)):n(null,o)}},{callBids:function(t){var n=void 0,i=t.bids||[],r=window.parent!==window?document.referrer:window.location.href;r=r&&encodeURIComponent(r);try{n=window.self!==window.top}catch(e){n=!1}if(0!==i.length){var a=i[0].params.delDomain;m=new Date(t.start),p(i,{ju:r,jr:r,ch:document.charSet||document.characterSet,res:screen.width+"x"+screen.height+"x"+screen.colorDepth,ifr:n,tz:m.getTimezoneOffset(),tws:e(n),ef:"bt%2Cdb",be:1,bc:h},a)}}}};n(1).registerBidAdapter(new s,"openx"),e.exports=s}},[135]);
pbjsChunk([36],{143:function(a,e,t){a.exports=t(144)},144:function(a,e,t){"use strict";function r(){function a(){l=i.createInvisibleIframe();var a=document.getElementsByTagName("head")[0];a.insertBefore(l,a.firstChild);var t=i.getIframeDocument(l);t.write(e()),t.close()}function e(){var a='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><base target="_top" /><script>inDapIF=true;<\/script></head>';a+="<body>",a+="<script>",a+='window.pm_pub_id = "%%PM_PUB_ID%%";window.pm_optimize_adslots = [%%PM_OPTIMIZE_ADSLOTS%%];window.kaddctr = "%%PM_ADDCTR%%";window.kadgender = "%%PM_GENDER%%";window.kadage = "%%PM_AGE%%";window.pm_async_callback_fn = "window.parent.pbjs.handlePubmaticCallback";',a+="<\/script>";var e={};return e.PM_PUB_ID=r,e.PM_ADDCTR=c,e.PM_GENDER=s,e.PM_AGE=o,e.PM_OPTIMIZE_ADSLOTS=p.map((function(a){return"'"+a+"'"})).join(","),a+='<script src="https://ads.pubmatic.com/AdServer/js/gshowad.js"><\/script>',a+="<script>",a+="<\/script>",a+="</body></html>",a=i.replaceTokenInString(a,e,"%%")}var t,r,o,s,c,p=[],l=void 0;return pbjs.handlePubmaticCallback=function(){var a={},e={};try{a=l.contentWindow.bidDetailsMap,e=l.contentWindow.progKeyValueMap}catch(a){i.logError(a,"Error parsing Pubmatic response")}var r,o,s,c,p,m=a||{},u=e||{};for(r=0;r<t.length;r++){var b;o=m[(c=t[r].params).adSlot]||{},u[c.adSlot]&&-1===u[c.adSlot].indexOf("=")&&(u[c.adSlot]=u[c.adSlot].replace(/([a-z]+);(.[^;]*)/gi,"$1=$2")),"1"===(s=(u[c.adSlot]||"").split(";").reduce((function(a,e){var t=e.split("=");return a[t[0]]=t[1],a}),{})).bidstatus?(p=s.bidid.split("@")[1].split("x"),(b=d.createBid(1)).bidderCode="pubmatic",b.adSlot=c.adSlot,b.cpm=Number(s.bid),b.ad=unescape(o.creative_tag),b.ad+=i.createTrackPixelIframeHtml(decodeURIComponent(o.tracking_url)),b.width=p[0],b.height=p[1],b.dealId=s.wdeal,n.addBidResponse(t[r].placementCode,b)):((b=d.createBid(2)).bidderCode="pubmatic",n.addBidResponse(t[r].placementCode,b))}},{callBids:function(e){t=e.bids,p=[];for(var i=0;i<t.length;i++){var d=t[i];r=r||d.params.publisherId,o=o||d.params.age||"",s=s||d.params.gender||"",c=c||d.params.kvs||"",p.push(d.params.adSlot)}a()}}}var i=t(0),d=t(3),n=t(2);t(1).registerBidAdapter(new r,"pubmatic"),a.exports=r}},[143]);
pbjsChunk([35],{149:function(t,e,n){t.exports=n(150)},150:function(t,e,n){"use strict";var o=n(3),i=n(2),r=n(5),d=n(0),a=function(){function t(t){for(var n=t.bids,o=0;o<n.length;o++)e(n[o])}function e(t){try{new window.pp.Ad(n(t)).display()}catch(e){d.logError("pulsepoint.requestBid","ERROR",e),c(t)}}function n(t){var e=a(t),n={cn:1,ca:window.pp.requestActions.BID,cu:s,adUnitId:t.placementCode,callback:e};for(var o in t.params)t.params.hasOwnProperty(o)&&(n[o]=t.params[o]);return n}function a(t){return function(e){c(t,e)}}function c(t,e){if(e){var n=t.params.cf.toUpperCase().split("X"),r=o.createBid(1,t);r.bidderCode=t.bidder,r.cpm=e.bidCpm,r.ad=e.html,r.width=n[0],r.height=n[1],i.addBidResponse(t.placementCode,r)}else{var d=o.createBid(2,t);d.bidderCode=t.bidder,i.addBidResponse(t.placementCode,d)}}var p=window.location.protocol+"//tag-st.contextweb.com/getjs.static.js",s=window.location.protocol+"//bid.contextweb.com/header/tag";return{callBids:function(e){void 0===window.pp?r.loadScript(p,(function(){t(e)}),!0):t(e)}}};n(1).registerBidAdapter(new a,"pulsepoint"),t.exports=a}},[149]);
pbjsChunk([30],{161:function(e,r,t){e.exports=t(162)},162:function(e,r,t){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function n(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function o(){return"pbjs_lite_"+pbjs.version}function a(){return"https:"===location.protocol}function d(){function e(){return[window.screen.width,window.screen.height].join("x")}function r(){var e=(function(){var e=window.DigiTrust&&window.DigiTrust.getUser({member:"T9QSFKPDN9"});return e&&e.success&&e.identity||null})();return!e||e.privacy&&e.privacy.optout?[]:["dt.id",e.id,"dt.keyv",e.keyv,"dt.pref",0]}function t(r,t){r.startTime=(new Date).getTime();var i=r.params;if(!i||"object"!==u(i.video))throw"Invalid Video Bid";var n=void 0;if(i.video.playerWidth&&i.video.playerHeight)n=[i.video.playerWidth,i.video.playerHeight];else{if(!(Array.isArray(r.sizes)&&r.sizes.length>0&&Array.isArray(r.sizes[0])&&r.sizes[0].length>1))throw"Invalid Video Bid - No size provided";n=r.sizes[0]}var a={page_url:i.referrer?i.referrer:y.getTopWindowUrl(),resolution:e(),account_id:i.accountId,integration:o(),timeout:t.timeout-(Date.now()-t.auctionStart+_),stash_creatives:!0,ae_pass_through_parameters:i.video.aeParams,slots:[]},d={site_id:i.siteId,zone_id:i.zoneId,position:i.position||"btf",floor:parseFloat(i.floor)>.01?i.floor:.01,element_id:r.placementCode,name:r.placementCode,language:i.video.language,width:n[0],height:n[1]};if(!i.video.size_id)throw"Invalid Video Bid - Invalid Ad Type!";return d.size_id=i.video.size_id,i.inventory&&"object"===u(i.inventory)&&(d.inventory=i.inventory),i.keywords&&Array.isArray(i.keywords)&&(d.keywords=i.keywords),i.visitor&&"object"===u(i.visitor)&&(d.visitor=i.visitor),a.slots.push(d),JSON.stringify(a)}function i(t){t.startTime=(new Date).getTime();var i=t.params,n=i.accountId,s=i.siteId,c=i.zoneId,l=i.position,p=i.floor,f=i.keywords,v=i.visitor,m=i.inventory,h=i.userId,x=i.referrer;p=(p=parseFloat(p))>.01?p:.01,l=l||"btf";var b=d.masSizeOrdering(Array.isArray(t.params.sizes)?t.params.sizes.map((function(e){return(w[e]||"").split("x")})):t.sizes);if(b.length<1)throw"no valid sizes";if(!/^\d+$/.test(n))throw"invalid accountId provided";var _=["account_id",n,"site_id",s,"zone_id",c,"size_id",b[0],"alt_size_ids",b.slice(1).join(",")||void 0,"p_pos",l,"rp_floor",p,"rp_secure",a()?"1":"0","tk_flint",o(),"p_screen_res",e(),"kw",f,"tk_user_key",h];return null!==v&&"object"===(void 0===v?"undefined":u(v))&&y._each(v,(function(e,r){return _.push("tg_v."+r,e)})),null!==m&&"object"===(void 0===m?"undefined":u(m))&&y._each(m,(function(e,r){return _.push("tg_i."+r,e)})),_.push("rand",Math.random(),"rf",x||y.getTopWindowUrl()),(_=_.concat(r())).reduce((function(e,r,t){return t%2==0&&void 0!==_[t+1]?e+r+"="+encodeURIComponent(_[t+1])+"&":e}),g+"?").slice(0,-1)}function n(e,r){var t=JSON.parse(e),i=t.ads,n=r.placementCode;if("object"!==(void 0===t?"undefined":u(t))||"ok"!==t.status)throw"bad response";if("video"===r.mediaType&&"object"===(void 0===i?"undefined":u(i))&&(i=i[n]),!Array.isArray(i)||i.length<1)throw"invalid ad response";(i=i.sort(v)).forEach((function(e){if("ok"!==e.status)throw"bad ad status";var t=p.default.createBid(h.STATUS.GOOD,r);if(t.creative_id=e.ad_id,t.bidderCode=r.bidder,t.cpm=e.cpm||0,t.dealId=e.deal,"video"===r.mediaType)t.width=r.params.video.playerWidth,t.height=r.params.video.playerHeight,t.vastUrl=e.creative_depot_url,t.descriptionUrl=e.impression_id,t.impression_id=e.impression_id;else{t.ad=j(e.script,e.impression_id);var i=w[e.size_id].split("x").map((function(e){return Number(e)})),n=c(i,2);t.width=n[0],t.height=n[1]}t.rubiconTargeting=(Array.isArray(e.targeting)?e.targeting:[]).reduce((function(e,r){return e[r.key]=r.values[0],e}),{rpfl_elemid:r.placementCode});try{f.default.addBidResponse(r.placementCode,t)}catch(e){y.logError("Error from addBidResponse",null,e)}}))}function v(e,r){return(r.cpm||0)-(e.cpm||0)}var j=function(e,r){return"<html>\n<head><script type='text/javascript'>inDapIF=true;<\/script></head>\n<body style='margin : 0; padding: 0;'>\n\x3c!-- Rubicon Project Ad Tag --\x3e\n<div data-rp-impression-id='"+r+"'>\n<script type='text/javascript'>"+e+"<\/script>\n</div>\n</body>\n</html>"};return s(l.createNew(x),{callBids:function(e){(e.bids||[]).forEach((function(r){function o(e){try{y.logMessage("XHR callback function called for ad ID: "+r.bidId),n(e,r)}catch(e){"string"==typeof e?y.logWarn(e+" when processing rubicon response for placement code "+r.placementCode):y.logError("Error processing rubicon response for placement code "+r.placementCode,null,e),d()}}function a(e,r){y.logError("Request for rubicon responded with:",r.status,e),d()}function d(){var e=p.default.createBid(h.STATUS.NO_BID,r);e.bidderCode=r.bidder,f.default.addBidResponse(r.placementCode,e)}try{"video"===r.mediaType?(0,m.ajax)(b,{success:o,error:a},t(r,e),{withCredentials:!0}):(0,m.ajax)(i(r),{success:o,error:a},void 0,{withCredentials:!0})}catch(e){y.logError("Error sending rubicon request for placement code "+r.placementCode,null,e),d()}}))},createNew:d.createNew})}var s=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},c=(function(){function e(e,r){var t=[],i=!0,n=!1,o=void 0;try{for(var a,d=e[Symbol.iterator]();!(i=(a=d.next()).done)&&(t.push(a.value),!r||t.length!==r);i=!0);}catch(e){n=!0,o=e}finally{try{!i&&d.return&&d.return()}finally{if(n)throw o}}return t}return function(r,t){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return e(r,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),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},l=n(t(7)),p=i(t(3)),f=i(t(2)),v=i(t(1)),y=n(t(0)),m=t(6),h=t(4),x="rubicon",g="//fastlane.rubiconproject.com/a/api/fastlane.json",b="//fastlane-adv.rubiconproject.com/v1/auction/video",_=500,w={1:"468x60",2:"728x90",8:"120x600",9:"160x600",10:"300x600",14:"250x250",15:"300x250",16:"336x280",19:"300x100",31:"980x120",32:"250x360",33:"180x500",35:"980x150",37:"468x400",38:"930x180",43:"320x50",44:"300x50",48:"300x300",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",60:"320x150",61:"1000x1000",65:"640x480",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",78:"980x240",79:"980x300",80:"980x400",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",103:"480x280",113:"1000x300",117:"320x100",125:"800x250",126:"200x600"};y._each(w,(function(e,r){return w[e]=r})),d.masSizeOrdering=function(e){var r=[15,2,9];return y.parseSizesInput(e).reduce((function(e,r){var t=parseInt(w[r],10);return t&&e.push(t),e}),[]).sort((function(e,t){var i=r.indexOf(e),n=r.indexOf(t);return i>-1||n>-1?-1===i?1:-1===n?-1:i-n:e-t}))},d.createNew=function(){return new d},v.default.registerBidAdapter(new d,x,{supportedMediaTypes:["video"]}),v.default.aliasBidAdapter(x,"rubiconLite"),e.exports=d}},[161]);
pbjsChunk([29],{163:function(e,r,d){e.exports=d(164)},164:function(e,r,d){"use strict";var t,i=d(0),n=d(4),p=d(0),o=d(3),a=d(2),s=d(5);t=function(){function e(e,r,d){var t=p.getBidIdParameter("spaceId",e.params),i=p.getBidIdParameter("subId",e.params),n=p.getBidIdParameter("bidfloor",e.params),o="https:"===document.location.protocol?"s":"",a="http"+o+"://hb.sekindo.com/live/liveView.php?";a=p.tryAppendQueryString(a,"s",t),a=p.tryAppendQueryString(a,"subId",i),a=p.tryAppendQueryString(a,"pubUrl",d),a=p.tryAppendQueryString(a,"hbcb",r),a=p.tryAppendQueryString(a,"hbver","3"),a=p.tryAppendQueryString(a,"hbobj","pbjs"),a=p.tryAppendQueryString(a,"dcpmflr",n),a=p.tryAppendQueryString(a,"hbto",pbjs.bidderTimeout),a=p.tryAppendQueryString(a,"protocol",o),s.loadScript(a)}return pbjs.sekindoCB=function(e,r){var d=(0,i.getBidRequest)(e);if(void 0!==r&&void 0!==r.cpm){var t=[];if(d){var s=d.bidder,c=d.placementCode;void 0!==r.cpm&&r.cpm>0?((t=o.createBid(n.STATUS.GOOD)).callback_uid=e,t.bidderCode=s,t.creative_id=r.adId,t.cpm=parseFloat(r.cpm),t.ad=r.ad,t.width=r.width,t.height=r.height,a.addBidResponse(c,t)):((t=o.createBid(n.STATUS.NO_BID)).callback_uid=e,t.bidderCode=s,a.addBidResponse(c,t))}}else d?p.logMessage("No prebid response for placement "+d.placementCode):p.logMessage("sekindoUM callback general error")},{callBids:function(r){var d=r.bids,t=d.length,i=null;i=parent!==window?document.referrer:window.location.href;for(var n=0;n<t;n++){var p=d[n];e(p,p.bidId,i)}}}},d(1).registerBidAdapter(new t,"sekindoUM"),e.exports=t}},[163]);
pbjsChunk([27],{169:function(e,t,r){e.exports=r(170)},170:function(e,t,r){"use strict";var n=r(0),s=r(2),a=r(3),d=r(6).ajax,i="sharethrough",o="1.2.0",p=function(){function e(e){return function(t){r(e,t)}}function t(e){var t=n.getBidIdParameter("pkey",e.params),r=u.STR_BTLR_HOST+"/header-bid/v1?";return r=n.tryAppendQueryString(r,"bidId",e.bidId),r=n.tryAppendQueryString(r,"placement_key",t),r=c(r)}function r(e,t){try{var r=(t=JSON.parse(t)).bidId,d=a.createBid(1,e);d.bidderCode=i,d.cpm=t.creatives[0].cpm;var o=e.sizes[0];d.width=o[0],d.height=o[1],d.adserverRequestId=t.adserverRequestId,u.placementCodeSet[e.placementCode].adserverRequestId=t.adserverRequestId,d.pkey=n.getBidIdParameter("pkey",e.params);var c="str_response_"+r,h=JSON.stringify(t);d.ad='<div data-str-native-key="'+d.pkey+"\" data-stx-response-name='"+c+"'>\n </div>\n <script>var "+c+" = "+h+"<\/script>\n <script src=\"//native.sharethrough.com/assets/sfp-set-targeting.js\"><\/script>\n <script type='text/javascript'>\n (function() {\n var sfp_js = document.createElement('script');\n sfp_js.src = \"//native.sharethrough.com/assets/sfp.js\";\n sfp_js.type = 'text/javascript';\n sfp_js.charset = 'utf-8';\n try {\n window.top.document.getElementsByTagName('body')[0].appendChild(sfp_js);\n } catch (e) {\n console.log(e);\n }\n })();\n <\/script>",s.addBidResponse(e.placementCode,d)}catch(t){p(e)}}function p(e){var t=a.createBid(2,e);s.addBidResponse(e.placementCode,t)}function c(e){return e=n.tryAppendQueryString(e,"hbVersion","0.27.0-pre"),e=n.tryAppendQueryString(e,"strVersion",o),e=n.tryAppendQueryString(e,"hbSource","prebid")}var u={};return u.STR_BTLR_HOST=document.location.protocol+"//btlr.sharethrough.com",u.STR_BEACON_HOST=document.location.protocol+"//b.sharethrough.com/butler?",u.placementCodeSet={},u.ajax=d,{callBids:function(r){for(var n=r.bids,s=0;s<n.length;s+=1){var a=n[s];u.placementCodeSet[a.placementCode]=a;var d=t(a);u.ajax(d,e(a),void 0,{withCredentials:!0})}},str:u}};r(1).registerBidAdapter(new p,"sharethrough"),e.exports=p}},[169]);
pbjsChunk([24],{175:function(e,i,s){e.exports=s(176)},176:function(e,i,s){"use strict";var t=s(3),r=s(2),o=s(5),a=s(0),n=function(){function e(e){var i={};return a._each(e,(function(e){if(e.params){var s=e.params.floor?e.params.floor:null,t=e.params.ad_unit?e.params.ad_unit:e.params.placement_id?e.params.placement_id:null,r=e.params.sizes?e.params.sizes:e.sizes||null;r=a.parseSizesInput(r).toString(),a.isEmpty(r)&&a.logError("Sonobi adapter expects sizes for "+e.placementCode);var o=e.bidId,n=r?s?r+"|f="+s:r:s?"f="+s:"";/^[\/]?[\d]+[[\/].+[\/]?]?$/.test(t)?(t="/"===t.charAt(0)?t:"/"+t,i[t+"|"+o]=n,l[t+"|"+o]=e.placementCode,u[e.placementCode]=e):/^[0-9a-fA-F]{20}$/.test(t)&&20===t.length?(i[o]=t+"|"+n,l[o]=e.placementCode,u[e.placementCode]=e):(l[o]=e.placementCode,u[e.placementCode]=e,c(e.placementCode),a.logError("The ad unit code or Sonobi Placement id for slot "+e.placementCode+" is invalid"))}})),i}function i(e){var i="sbi_"+e;return window[i]=s,i}function s(e){var i=e.slots||{},s=e.sbi_dc||"";a._each(i,(function(e,i){var t=l[i];e.sbi_aid&&e.sbi_mouse&&e.sbi_size?d(t,s,e):c(t),delete l[i]}))}function n(e){var i=u[e];return delete u[e],i}function d(e,i,s){var o=t.createBid(1,n(e));s.sbi_dozer&&(o.dealId=s.sbi_dozer),o.bidderCode="sonobi",o.ad=p(i,s.sbi_aid),o.cpm=Number(s.sbi_mouse),o.width=Number(s.sbi_size.split("x")[0])||1,o.height=Number(s.sbi_size.split("x")[1])||1,r.addBidResponse(e,o)}function c(e){var i=t.createBid(2,n(e));i.bidderCode="sonobi",r.addBidResponse(e,i)}function p(e,i){return'<script type="text/javascript" src="'+("https://"+e+"apex.go.sonobi.com/sbi.js?aid="+i+"&as=null")+'"><\/script>'}var l={},u={};return{callBids:function(s){var t=s.bids||[],r=s.bidderRequestId,a=window.frameElement?"&ref="+encodeURI(top.location.host||document.referrer):"";o.loadScript("https://apex.go.sonobi.com/trinity.js?key_maker="+JSON.stringify(e(t))+"&cv="+i(r)+a)},formRequest:e,parseResponse:s,success:d,failure:c}};s(1).registerBidAdapter(new n,"sonobi"),e.exports=n}},[175]);
pbjsChunk([23],{177:function(e,i,n){e.exports=n(178)},178:function(e,i,n){"use strict";var d=n(4),r=n(0),t=n(3),s=n(2),a=n(5),o=function(){function e(e){var i=window.location.host,t=window.location.pathname+location.search+location.hash,s=[];r._each(e,(function(e){var i=r.getBidIdParameter("tagid",e.params),n=r.getBidIdParameter("bidfloor",e.params),d=0,t=0,a=Array.isArray(e.params.sizes)?e.params.sizes:e.sizes;2===a.length&&"number"==typeof a[0]&&"number"==typeof a[1]?(d=a[0],t=a[1]):(d=a[0][0],t=a[0][1]);var o={id:e.bidId,banner:{w:d,h:t},tagid:i,bidfloor:n};s.push(o)}));var o={id:r.getUniqueIdentifierStr(),imp:s,site:{domain:i,page:t}},c="//"+n+"?callback=window.pbjs.sovrnResponse&src="+d.REPO_AND_VERSION+"&br="+encodeURIComponent(JSON.stringify(o));a.loadScript(c)}function i(e){var i=pbjs._bidsRequested.find((function(e){return"sovrn"===e.bidderCode}));(i=i?i.bids.filter((function(i){return e.indexOf(i.bidId)<0})):[]).forEach((function(e){var i={};(i=t.createBid(2,e)).bidderCode="sovrn",s.addBidResponse(e.placementCode,i)}))}var n="ap.lijit.com/rtb/bid";return pbjs.sovrnResponse=function(e){if(e&&e.id)if(e.seatbid&&0!==e.seatbid.length&&e.seatbid[0].bid&&0!==e.seatbid[0].bid.length){var n=[];e.seatbid[0].bid.forEach((function(e){var i,r="",a=e.impid,o={},c=pbjs._bidsRequested.find((function(e){return"sovrn"===e.bidderCode})).bids.find((function(e){return e.bidId===a}));if(c&&(r=c.placementCode,c.status=d.STATUS.GOOD,0!==(i=parseFloat(e.price)))){e.placementCode=r,e.size=c.sizes;var p=e.adm,b='<img src="'+e.nurl+'">';(o=t.createBid(1,c)).creative_id=e.id,o.bidderCode="sovrn",o.cpm=i,o.ad=decodeURIComponent(p+b),o.width=parseInt(e.w),o.height=parseInt(e.h),s.addBidResponse(r,o),n.push(a)}})),i(n)}else i([]);else i([])},{callBids:function(i){e(i.bids||[])}}};n(1).registerBidAdapter(new o,"sovrn"),e.exports=o}},[177]);
pbjsChunk([6],{211:function(t,e,i){t.exports=i(212)},212:function(t,e,i){"use strict";function d(){window.ybotq=window.ybotq||[];var t={BID_STATUS:{PENDING:0,AVAILABLE:1,EMPTY:2},definedSlots:[],pageLevelOption:!1,buildCreative:function(t,e){return'<script type="text/javascript" src="//cdn.yldbt.com/js/yieldbot.intent.js"><\/script><script type="text/javascript">var ybotq = ybotq || [];ybotq.push(function () {yieldbot.renderAd(\''+t+":"+e+"');});<\/script>"},buildBid:function(e){var i={};if(e&&e.ybot_ad&&"n"!==e.ybot_ad){(i=o.createBid(t.BID_STATUS.AVAILABLE)).cpm=parseInt(e.ybot_cpm)/100||0;var d=e.ybot_size?e.ybot_size.split("x"):[0,0],n=e.ybot_slot||"",a=e.ybot_size||"";i.width=d[0]||0,i.height=d[1]||0,i.ad=t.buildCreative(n,a);for(var r in e)i[r]=e[r]}else i=o.createBid(t.BID_STATUS.EMPTY);return i.bidderCode="yieldbot",i},callBids:function(e){var i=e.bids||[],d=window.ybotq||[];t.pageLevelOption=!1,d.push((function(){var e=window.yieldbot;t.definedSlots=[];var d="ERROR_PREBID_DEFINE_YB_PSN",n={};if(r._each(i,(function(e){var i=e;d=i.params&&i.params.psn||d;var o=i.params&&i.params.slot||"ERROR_PREBID_DEFINE_YB_SLOT";n[o]=i.sizes||[],t.definedSlots.push(i.bidId)})),!0!==e._initialized){e.pub(d);for(var o in n)n.hasOwnProperty(o)&&e.defineSlot(o,{sizes:n[o]||[]});e.enableAsync(),e.go()}else e.nextPageview(n)})),d.push((function(){t.handleUpdateState()})),n.loadScript("//cdn.yldbt.com/js/yieldbot.intent.js",null,!0)},handleUpdateState:function(){var e=window.yieldbot;r._each(t.definedSlots,(function(i){var d,n;if(d=pbjs._bidsRequested.find((function(t){return"yieldbot"===t.bidderCode})),(n=d&&d.bids?d.bids.find((function(t){return t.bidId===i})):null)&&n.params&&n.params.slot){var o=n.placementCode||"ERROR_YB_NO_PLACEMENT",r=e.getSlotCriteria(n.params.slot),s=t.buildBid(r);a.addBidResponse(o,s)}}))}};return{callBids:t.callBids}}var n=i(5),o=i(3),a=i(2),r=i(0);i(1).registerBidAdapter(new d,"yieldbot"),t.exports=d}},[211]);
pbjs.processQueue();