function pwtCreatePrebidNamespace(preBidNameSpace) { window[preBidNameSpace] = window[preBidNameSpace] || {}; window[preBidNameSpace].que = window[preBidNameSpace].que || [];/* prebid.js v1.21.0Updated : 2019-01-02 */!(function(u){var s=window.owpbjsChunk;window.owpbjsChunk=function(e,t,n){for(var r,i,o,a=0,d=[];a';g+="",g+="",g+="",g+=i.adHtml,g+="",s.write(g),s.close()}catch(p){f.log("Error in rendering creative in safe frame."),f.log(p),f.log("Rendering synchronously."),f.displayCreative(window.document,msgData.pwt_bid)}else i.adUrl?f.writeIframe(window.document,i.adUrl,i.width,i.height,""):(f.log("creative details are not found"),f.log(i))}}}catch(p){}},e.addMessageEventListenerForSafeFrame=function(t){f.addMessageEventListener(t,f.safeFrameCommunicationProtocol)},e.getElementLocation=function(t){var e,i=0,n=0;if(f.isFunction(t.getBoundingClientRect))e=t.getBoundingClientRect(),i=Math.floor(e.left),n=Math.floor(e.top);else for(;t;)i+=t.offsetLeft,n+=t.offsetTop,t=t.offsetParent;return{x:i,y:n}},e.createVLogInfoPanel=function(t,e){var i,n,r,o=window.document;if(f.visualDebugLogIsEnabled&&(i=o.getElementById(t),i&&e.length&&e[0][0]&&e[0][1]&&(r=t+"-pwtc-info",!f.isUndefined(o.getElementById(r))))){var a=f.getElementLocation(i);n=o.createElement("div"),n.id=r,n.style="position: absolute; /*top: "+a.y+"px;*/ left: "+a.x+"px; width: "+e[0][0]+"px; height: "+e[0][1]+"px; border: 1px solid rgb(255, 204, 52); padding-left: 11px; background: rgb(247, 248, 224) none repeat scroll 0% 0%; overflow: auto; z-index: 9999997; visibility: hidden;opacity:0.9;font-size:13px;font-family:monospace;";var d=o.createElement("img");d.src=f.metaInfo.protocol+"ads.pubmatic.com/AdServer/js/pwt/close.png",d.style="cursor:pointer; position: absolute; top: 2px; left: "+(a.x+e[0][0]-16-15)+"px; z-index: 9999998;",d.title="close",d.onclick=function(){n.style.display="none"},n.appendChild(d),n.appendChild(o.createElement("br"));for(var s="Slot: "+t+" | ",g=0;ga&&(a=0),n="Bid: "+e.bidder+(e.s2s?"(s2s)":"")+": "+d.getNetEcpm()+"("+d.getGrossEcpm()+"): "+a+"ms",d.getPostTimeoutStatus()&&(n+=": POST-TIMEOUT");break;case"win-bid":var d=e.bidDetails;n="Winning Bid: "+d.getAdapterID()+": "+d.getNetEcpm();break;case"win-bid-fail":n="There are no bids from PWT";break;case"hr":n="----------------------";break;case"disp":n="Displaying creative from "+e.adapter}i.appendChild(r.createTextNode(n)),i.appendChild(r.createElement("br"))}}},e.getExternalBidderStatus=function(t){var e=!0;return f.forEachOnArray(t,(function(t,i){e=window.OWT.externalBidderStatuses[i]?e&&window.OWT.externalBidderStatuses[i].status:e})),e},e.resetExternalBidderStatus=function(t){f.forEachOnArray(t,(function(t,e){f.log("resetExternalBidderStatus: "+e),window.OWT.externalBidderStatuses[e]=void 0}))},e.ajaxRequest=function(t,e,i,n){try{n=n||{};var r,o=4,a=!0,d=n.method||(i?"POST":"GET");if(window.XMLHttpRequest?(r=new window.XMLHttpRequest,f.isUndefined(r.responseType)&&(a=!1)):a=!1,!a)return f.log("Ajax is not supported"),void 0;r.onreadystatechange=function(){r.readyState===o&&e&&e(r.responseText,r)},r.open(d,t),n.withCredentials&&(r.withCredentials=!0),n.preflight&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type",n.contentType||"text/plain"),r.send("POST"===d&&i)}catch(s){f.log("Failed in Ajax"),f.log(s)}}}),(function(t,e){e.COMMON={BID_PRECISION:2,DEAL_KEY_FIRST_PART:"pwtdeal_",DEAL_KEY_VALUE_SEPARATOR:"_-_",PREBID_PREFIX:"PB_",CONFIG:"config",DIV_ID:"divID",PARAMS:"params",SIZES:"sizes",HEIGHT:"height",WIDTH:"width",SLOTS:"slots",KEY_GENERATION_PATTERN_VALUE:"kgpv",KEY_VALUE_PAIRS:"kvp",IMPRESSION_ID:"iid",PARENT_ADAPTER_PREBID:"prebid"},e.CONFIG={GLOBAL:"global",ADAPTERS:"adapters",COMMON:"pwt",TIMEOUT:"t",KEY_GENERATION_PATTERN:"kgp",KEY_LOOKUP_MAP:"klm",SERVER_SIDE_KEY:"sk",PUBLISHER_ID:"pubid",PROFILE_ID:"pid",PROFILE_VERSION_ID:"pdvid",LOGGER_URL:"dataURL",TRACKER_URL:"winURL",REV_SHARE:"rev_share",THROTTLE:"throttle",BID_PASS_THROUGH:"pt",GLOBAL_KEY_VALUE:"gkv",MASK_BIDS:"maksBids",META_DATA_PATTERN:"metaDataPattern",SEND_ALL_BIDS:"sendAllBids",SERVER_SIDE_ENABLED:"serverSideEnabled",GDPR_CONSENT:"gdpr",CONSENT_STRING:"cns",GDPR_CMPAPI:"cmpApi",GDPR_TIMEOUT:"gdprTimeout",GDPR_AWC:"awc",DEFAULT_GDPR_CMPAPI:"iab",DEFAULT_GDPR_TIMEOUT:1e4,DEFAULT_GDPR_AWC:"0",DEFAULT_GDPR_CONSENT:"0",DISABLE_AJAX_TIMEOUT:"disableAjaxTimeout"},e.METADATA_MACROS={WIDTH:"_W_",HEIGHT:"_H_",PARTNER:"_P_",GROSS_ECPM:"_GE_",NET_ECPM:"_NE_",BID_COUNT:"_BC_",PARTNER_COUNT:"_PC_"},e.MACROS={WIDTH:"_W_",HEIGHT:"_H_",AD_UNIT_ID:"_AU_",AD_UNIT_INDEX:"_AUI_",INTEGER:"_I_",DIV:"_DIV_"},e.SLOT_STATUS={CREATED:0,PARTNERS_CALLED:1,TARGETING_ADDED:2,DISPLAYED:3},e.WRAPPER_TARGETING_KEYS={BID_ID:"pwtsid",BID_STATUS:"pwtbst",BID_ECPM:"pwtecp",BID_DEAL_ID:"pwtdid",BID_ADAPTER_ID:"pwtpid",BID_SIZE:"pwtsz",PUBLISHER_ID:"pwtpubid",PROFILE_ID:"pwtprofid",PROFILE_VERSION_ID:"pwtverid",META_DATA:"pwtm",PLATFORM_KEY:"pwtplt"},e.IGNORE_PREBID_KEYS={hb_bidder:1,hb_adid:1,hb_pb:1,hb_size:1,hb_deal:1},e.LOGGER_PIXEL_PARAMS={TIMESTAMP:"tst",PAGE_URL:"purl",TIMEOUT:"to"},e.MESSAGES={M1:": In fetchbids.",M2:": Throttled.",M3:": adapter must implement the fetchBids() function.",M4:"BidManager: entry ",M5:": Callback.",M6:"bidAlreadExists : ",M7:": Exiting from fetchBids.",M8:". Config not found, ignored.",M9:". Config ignored.",M10:"Bid is rejected as ecpm is NULL.",M11:"Bid is rejected as ecpm is NaN: ",M12:"Existing bid ecpm: ",M13:", is lower than new bid ecpm ",M14:", so we are replacing bid.",M15:", is greater than new bid ecpm ",M16:", so we are not replacing bid.",M17:"Post timeout bid, ignored.",M18:"Bid is selected.",M19:": Found winning adapterID: ",M20:"Bid is rejected as ecpm is empty string.",M21:": error in respose handler.",M22:"Bid is rejected as ecpm is <= 0.",M23:"Existing bid is default-bid with zero ecpm, thus replacing it with the new bid from partner.",M24:"Passsed argument is not a bidAdaptor",M25:"Bid details not found for bidID: "},e.PLATFORM_VALUES={DISPLAY:"display"}}),(function(t,e,i){function n(t,e){this.adapterID=t,this.kgpv=e,this.bidID=a.getUniqueIdentifierStr(),this.grossEcpm=0,this.netEcpm=0,this.defaultBid=0,this.adHtml="",this.adUrl="",this.height=0,this.width=0,this.creativeID="",this.keyValuePairs={},this.isPostTimeout=!1,this.receivedTime=0,this.isServerSide=r.isServerSideAdapter(t)?1:0,this.dealID="",this.dealChannel="",this.isWinningBid=!1,this.status=0,this.serverSideResponseTime=0,this.mi=void 0}var r=i(4),o=i(2),a=i(1);n.prototype.setServerSideResponseTime=function(t){this.serverSideResponseTime=t},n.prototype.getServerSideResponseTime=function(){return this.serverSideResponseTime},n.prototype.getServerSideStatus=function(){return this.isServerSide},n.prototype.setServerSideStatus=function(t){this.isServerSide=t},n.prototype.getAdapterID=function(){return this.adapterID},n.prototype.getBidID=function(){return this.bidID},n.prototype.setGrossEcpm=function(t){return null===t?(a.log(o.MESSAGES.M10),a.log(this),this):a.isString(t)&&(t=t.replace(/\s/g,""),0===t.length)?(a.log(o.MESSAGES.M20),a.log(this),this):window.isNaN(t)?(a.log(o.MESSAGES.M11+t),a.log(this),this):(t=window.parseFloat(t.toFixed(o.COMMON.BID_PRECISION)),this.grossEcpm=t,this.netEcpm=window.parseFloat((this.grossEcpm*r.getAdapterRevShare(this.getAdapterID())).toFixed(o.COMMON.BID_PRECISION)),this)},n.prototype.getGrossEcpm=function(){return this.grossEcpm},n.prototype.getNetEcpm=function(){return this.netEcpm},n.prototype.setDefaultBidStatus=function(t){return this.defaultBid=t,this},n.prototype.getDefaultBidStatus=function(){return this.defaultBid},n.prototype.setAdHtml=function(t){return this.adHtml=t,this},n.prototype.getAdHtml=function(){return this.adHtml},n.prototype.setAdUrl=function(t){return this.adUrl=t,this},n.prototype.getAdUrl=function(){return this.adUrl},n.prototype.setHeight=function(t){return this.height=t,this},n.prototype.getHeight=function(){return this.height},n.prototype.setWidth=function(t){return this.width=t,this},n.prototype.getWidth=function(){return this.width},n.prototype.getKGPV=function(){return this.kgpv},n.prototype.setKeyValuePair=function(t,e){return this.keyValuePairs[t.substr(0,20)]=e,this},n.prototype.getKeyValuePairs=function(){return this.keyValuePairs},n.prototype.setPostTimeoutStatus=function(){return this.isPostTimeout=!0,this},n.prototype.getPostTimeoutStatus=function(){return this.isPostTimeout},n.prototype.setReceivedTime=function(t){return this.receivedTime=t,this},n.prototype.getReceivedTime=function(){return this.receivedTime},n.prototype.setDealID=function(t){return t&&(this.dealID=t,this.dealChannel=this.dealChannel||"PMP",this.setKeyValuePair(o.COMMON.DEAL_KEY_FIRST_PART+this.adapterID,this.dealChannel+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.dealID+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.bidID)),this},n.prototype.getDealID=function(){return this.dealID},n.prototype.setDealChannel=function(t){return this.dealID&&t&&(this.dealChannel=t,this.setKeyValuePair(o.COMMON.DEAL_KEY_FIRST_PART+this.adapterID,this.dealChannel+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.dealID+o.COMMON.DEAL_KEY_VALUE_SEPARATOR+this.bidID)),this},n.prototype.getDealChannel=function(){return this.dealChannel},n.prototype.setWinningBidStatus=function(){return this.isWinningBid=!0,this},n.prototype.getWinningBidStatus=function(){return this.isWinningBid},n.prototype.setStatus=function(t){return this.status=t,this},n.prototype.getStatus=function(){return this.status},n.prototype.setSendAllBidsKeys=function(){this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_ID+"_"+this.adapterID,this.bidID),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_STATUS+"_"+this.adapterID,this.getNetEcpm()>0?1:0),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_ECPM+"_"+this.adapterID,this.getNetEcpm().toFixed(o.COMMON.BID_PRECISION)),this.setKeyValuePair(o.WRAPPER_TARGETING_KEYS.BID_SIZE+"_"+this.adapterID,this.width+"x"+this.height)},n.prototype.setMi=function(t){return this.mi=t,this},n.prototype.getMi=function(){return this.mi},t.exports.Bid=n,e.createBid=function(t,e){return new n(t,e)}}),(function(t,e,i){function n(){var t=o.COMMON.PARENT_ADAPTER_PREBID;if(!a.isOwnProperty(r.adapters,t)){var e={};e[o.CONFIG.REV_SHARE]="0.0",e[o.CONFIG.THROTTLE]="100",e[o.CONFIG.KEY_GENERATION_PATTERN]="_DIV_",e[o.CONFIG.KEY_LOOKUP_MAP]={},r.adapters[t]=e}}var r=i(5),o=i(2),a=i(1),d=null;d=this,e.getPublisherId=function(){return a.trim(r.pwt.pubid)||"0"},e.getMataDataPattern=function(){return a.isString(r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN])?r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN]:null},e.getSendAllBidsStatus=function(){return window.parseInt(r[o.CONFIG.COMMON][o.CONFIG.SEND_ALL_BIDS])||0},e.getTimeout=function(){return window.parseInt(r.pwt.t)||1e3},e.getDisableAjaxTimeout=function(){var t=r.pwt;return a.isOwnProperty(t,o.CONFIG.DISABLE_AJAX_TIMEOUT)?1==r.pwt.disableAjaxTimeout:!0},e.getAdapterRevShare=function(t){var e=r.adapters;return a.isOwnProperty(e[t],o.CONFIG.REV_SHARE)?1-window.parseFloat(e[t][o.CONFIG.REV_SHARE])/100:1},e.getAdapterThrottle=function(t){var e=r.adapters;return a.isOwnProperty(e[t],o.CONFIG.THROTTLE)?100-window.parseFloat(e[t][o.CONFIG.THROTTLE]):0},e.isServerSideAdapter=function(t){var e=r.adapters;return e[t]&&a.isOwnProperty(e[t],o.CONFIG.SERVER_SIDE_ENABLED)?1===window.parseInt(e[t][o.CONFIG.SERVER_SIDE_ENABLED]):!1},e.getAdapterMaskBidsStatus=function(t){var e=r.adapters,i={audienceNetwork:1};return a.isOwnProperty(i,t)?i[t]:a.isOwnProperty(e[t],o.CONFIG.MASK_BIDS)?window.parseInt(e[t][o.CONFIG.MASK_BIDS])||0:0},e.getBidPassThroughStatus=function(t){var e=r.adapters;return a.isOwnProperty(e[t],o.CONFIG.BID_PASS_THROUGH)?window.parseInt(e[t][o.CONFIG.BID_PASS_THROUGH]):0},e.getProfileID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_ID])||"0"},e.getProfileDisplayVersionID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_VERSION_ID])||"0"},e.getAnalyticsPixelURL=function(){return r.pwt[o.CONFIG.LOGGER_URL]||!1},e.getMonetizationPixelURL=function(){return r.pwt[o.CONFIG.TRACKER_URL]||!1},e.forEachAdapter=function(t){a.forEachOnObject(r.adapters,t)},e.getGdpr=function(){var t=r[o.CONFIG.COMMON][o.CONFIG.GDPR_CONSENT]||o.CONFIG.DEFAULT_GDPR_CONSENT;return"1"===t},e.getCmpApi=function(){return r[o.CONFIG.COMMON][o.CONFIG.GDPR_CMPAPI]||o.CONFIG.DEFAULT_GDPR_CMPAPI},e.getGdprTimeout=function(){var t=r[o.CONFIG.COMMON][o.CONFIG.GDPR_TIMEOUT];return t?window.parseInt(t):o.CONFIG.DEFAULT_GDPR_TIMEOUT},e.getAwc=function(){var t=r[o.CONFIG.COMMON][o.CONFIG.GDPR_AWC]||o.CONFIG.DEFAULT_GDPR_AWC;return"1"===t},e.addPrebidAdapter=n,e.initConfig=function(){d.addPrebidAdapter();var t={};a.forEachOnObject(o.CONFIG,(function(e,i){t[i]=""})),a.forEachOnObject(r.adapters,(function(e,i){var n={};a.forEachOnObject(i,(function(e,i){a.isOwnProperty(t,e)||(n[e]=i)})),a.forEachOnObject(i[o.CONFIG.KEY_LOOKUP_MAP],(function(t,e){a.forEachOnObject(n,(function(t,i){e[t]=i}))}))}))}}),(function(t,e){e.pwt={t:"1000",pid:"981",gcv:"69",pdvid:"15",pubid:"156708",dataURL:"t.pubmatic.com/wl?",winURL:"t.pubmatic.com/wt?",metaDataPattern:0,sendAllBids:"0",adserver:"DFP",gdpr:"0",cmp:0,gdprTimeout:0,awc:0,platform:"display"},e.adapters={pubmatic:{publisherId:"156708",rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,kgp:"_DIV_@_W_x_H_",sk:"true"},rubicon:{accountId:"10472",rev_share:"0.0",timeout:"1000",throttle:"100",pt:"0",serverSideEnabled:"0",amp:0,video:0,kgp:"_DIV_@_W_x_H_",klm:{"div-gpt-ad-bottom@728x90":{zoneId:"528648",siteId:"112172",floor:"0"},"div-gpt-ad-bottom@970x250":{zoneId:"1027252",siteId:"112172",floor:"0"},"div-gpt-ad-middle@300x50":{zoneId:"538964",siteId:"112172",floor:"0"},"div-gpt-ad-middle@320x50":{zoneId:"538962",siteId:"112172",floor:"0"},"div-gpt-ad-middle@728x90":{zoneId:"528646",siteId:"112172",floor:"0"},"div-gpt-ad-middle@970x250":{zoneId:"538960",siteId:"112172",floor:"0"},"div-gpt-ad-right10@300x250":{zoneId:"1027244",siteId:"112172",floor:"0"},"div-gpt-ad-right11@300x250":{zoneId:"1027246",siteId:"112172",floor:"0"},"div-gpt-ad-right1@300x250":{zoneId:"528642",siteId:"112172",floor:"0"},"div-gpt-ad-right1@300x50":{zoneId:"538982",siteId:"112172",floor:"0"},"div-gpt-ad-right1@320x50":{zoneId:"538972",siteId:"112172",floor:"0"},"div-gpt-ad-right2@300x250":{zoneId:"528644",siteId:"112172",floor:"0"},"div-gpt-ad-right3@300x250":{zoneId:"532050",siteId:"112172",floor:"0"},"div-gpt-ad-right4@300x250":{zoneId:"532054",siteId:"112172",floor:"0"},"div-gpt-ad-right5@300x250":{zoneId:"532056",siteId:"112172",floor:"0"},"div-gpt-ad-right6@300x250":{zoneId:"532058",siteId:"112172",floor:"0"},"div-gpt-ad-right7@300x250":{zoneId:"532060",siteId:"112172",floor:"0"},"div-gpt-ad-right8@300x250":{zoneId:"1027240",siteId:"112172",floor:"0"},"div-gpt-ad-right9@300x250":{zoneId:"1027242",siteId:"112172",floor:"0"},"div-gpt-ad-right@300x250":{zoneId:"538966",siteId:"112172",floor:"0"},"div-gpt-ad-right@300x50":{zoneId:"538970",siteId:"112172",floor:"0"},"div-gpt-ad-right@300x600":{zoneId:"528640",siteId:"112172",floor:"0"},"div-gpt-ad-right@320x50":{zoneId:"538968",siteId:"112172",floor:"0"},"div-gpt-ad-top@300x50":{zoneId:"539002",siteId:"112172",floor:"0"},"div-gpt-ad-top@320x50":{zoneId:"539000",siteId:"112172",floor:"0"},"div-gpt-ad-top@728x90":{zoneId:"528638",siteId:"112172",floor:"0"},"div-gpt-ad-top@970x250":{zoneId:"585568",siteId:"112172",floor:"0"}}},criteo:{rev_share:"0.0",timeout:"1000",throttle:"100",kgp:"_DIV_@_W_x_H_",klm:{"div-gpt-ad-bottom@728x90":{zoneId:"1162702"},"div-gpt-ad-bottom@970x250":{zoneId:"1293596"},"div-gpt-ad-gallery@300x250":{zoneId:"1162689"},"div-gpt-ad-middle@320x50":{zoneId:"1162701"},"div-gpt-ad-middle@728x90":{zoneId:"1293592"},"div-gpt-ad-middle@970x250":{zoneId:"1293596"},"div-gpt-ad-right10@300x250":{zoneId:"1215264"},"div-gpt-ad-right11@300x250":{zoneId:"1215263"},"div-gpt-ad-right1@300x250":{zoneId:"1162690"},"div-gpt-ad-right1@320x50":{zoneId:"1293595"},"div-gpt-ad-right2@300x250":{zoneId:"1162691"},"div-gpt-ad-right3@300x250":{zoneId:"1162692"},"div-gpt-ad-right4@300x250":{zoneId:"1162693"},"div-gpt-ad-right5@300x250":{zoneId:"1162694"},"div-gpt-ad-right6@300x250":{zoneId:"1162695"},"div-gpt-ad-right7@300x250":{zoneId:"1162696"},"div-gpt-ad-right8@300x250":{zoneId:"1215266"},"div-gpt-ad-right9@300x250":{zoneId:"1215265"},"div-gpt-ad-right@300x250":{zoneId:"1293593"},"div-gpt-ad-right@300x600":{zoneId:"1162698"},"div-gpt-ad-right@320x50":{zoneId:"1293594"},"div-gpt-ad-top@320x50":{zoneId:"1162700"},"div-gpt-ad-top@728x90":{zoneId:"1293591"},"div-gpt-ad-top@970x250":{zoneId:"1162703"}}},sovrn:{throttle:"100",bidfloor:0,timeout:"1000",rev_share:"0.0",kgp:"_DIV_@_W_x_H_",klm:{"div-gpt-ad-bottom@728x90":{tagid:"398250"},"div-gpt-ad-bottom@970x250":{tagid:"578227"},"div-gpt-ad-gallery@300x250":{tagid:"398251"},"div-gpt-ad-middle@300x50":{tagid:"398248"},"div-gpt-ad-middle@320x50":{tagid:"398249"},"div-gpt-ad-middle@728x90":{tagid:"398247"},"div-gpt-ad-middle@970x250":{tagid:"398245"},"div-gpt-ad-middle@970x90":{tagid:"398246"},"div-gpt-ad-right10@300x250":{tagid:"565336"},"div-gpt-ad-right11@300x250":{tagid:"565337"},"div-gpt-ad-right1@300x250":{tagid:"398275"},"div-gpt-ad-right1@300x50":{tagid:"398276"},"div-gpt-ad-right1@320x50":{tagid:"398277"},"div-gpt-ad-right2@300x250":{tagid:"398238"},"div-gpt-ad-right3@300x250":{tagid:"398240"},"div-gpt-ad-right4@300x250":{tagid:"398241"},"div-gpt-ad-right5@300x250":{tagid:"398242"},"div-gpt-ad-right6@300x250":{tagid:"398243"},"div-gpt-ad-right7@300x250":{tagid:"398244"},"div-gpt-ad-right8@300x250":{tagid:"565334"},"div-gpt-ad-right9@300x250":{tagid:"565335"},"div-gpt-ad-right@300x250":{tagid:"398231"},"div-gpt-ad-right@300x50":{tagid:"398233"},"div-gpt-ad-right@300x600":{tagid:"398230"},"div-gpt-ad-right@320x50":{tagid:"398237"},"div-gpt-ad-top@300x50":{tagid:"398227"},"div-gpt-ad-top@320x50":{tagid:"398228"},"div-gpt-ad-top@728x90":{tagid:"398225"},"div-gpt-ad-top@970x250":{tagid:"432267"},"div-gpt-ad-top@970x90":{tagid:"398224"}}},appnexus:{rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,kgp:"_DIV_@_W_x_H_",klm:{"div-gpt-ad-bottom@728x90":{placementId:"12490712"},"div-gpt-ad-bottom@970x250":{placementId:"12490712"},"div-gpt-ad-gallery@300x250":{placementId:"12490701"},"div-gpt-ad-middle@320x50":{placementId:"12490691"},"div-gpt-ad-middle@728x90":{placementId:"12490702"},"div-gpt-ad-middle@970x250":{placementId:"12490702"},"div-gpt-ad-right10@300x250":{placementId:"13248068"},"div-gpt-ad-right11@300x250":{placementId:"13248069"},"div-gpt-ad-right1@300x250":{placementId:"12490694"},"div-gpt-ad-right1@320x50":{placementId:"12490694"},"div-gpt-ad-right2@300x250":{placementId:"12490695"},"div-gpt-ad-right3@300x250":{placementId:"12490696"},"div-gpt-ad-right4@300x250":{placementId:"12490697"},"div-gpt-ad-right5@300x250":{placementId:"12490698"},"div-gpt-ad-right6@300x250":{placementId:"12490699"},"div-gpt-ad-right7@300x250":{placementId:"12490700"},"div-gpt-ad-right8@300x250":{placementId:"13248066"},"div-gpt-ad-right9@300x250":{placementId:"13248067"},"div-gpt-ad-right@300x250":{placementId:"12490692"},"div-gpt-ad-right@300x600":{placementId:"12490703"},"div-gpt-ad-right@320x50":{placementId:"12490692"},"div-gpt-ad-top@320x50":{placementId:"12490693"},"div-gpt-ad-top@728x90":{placementId:"12490704"},"div-gpt-ad-top@970x250":{placementId:"12490704"}}},indexExchange:{rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,serverSideEnabled:"0",kgp:"_DIV_@_W_x_H_",klm:{"div-gpt-ad-bottom@728x90":{siteID:"243996",id:"Seattletimes.com - 07 - Desktop - 728x90 - Bottom"},"div-gpt-ad-bottom@970x250":{siteID:"291509",id:"Seattletimes.com - 40 - Desktop - 970x250 - Bottom"},"div-gpt-ad-gallery@300x250":{siteID:"243998",id:"'Seattletimes.com - 09 - Mobile - 300x250 - Gallery'"},"div-gpt-ad-middle@320x50":{siteID:"244000",id:"'Seattletimes.com - 11 - Mobile - 320x50 - Middle'"},"div-gpt-ad-middle@728x90":{siteID:"243999",id:"'Seattletimes.com - 10 - Desktop - 728x90_970x250 - Middle'"},"div-gpt-ad-middle@970x250":{siteID:"243999",id:"'Seattletimes.com - 10 - Desktop - 728x90_970x250 - Middle'"},"div-gpt-ad-right10@300x250":{siteID:"271233",id:"Seattletimes.com - 32 - DsktpMobile - 300x250 - Right10"},"div-gpt-ad-right11@300x250":{siteID:"271234",id:"Seattletimes.com - 33 - DsktpMobile - 300x250 - Right11"},"div-gpt-ad-right1@300x250":{siteID:"244004",id:"'Seattletimes.com - 15 - Mobile - 300x250_320x50 - Right1'"},"div-gpt-ad-right1@320x50":{siteID:"244004",id:"'Seattletimes.com - 15 - Mobile - 300x250_320x50 - Right1'"},"div-gpt-ad-right2@300x250":{siteID:"244005",id:"'Seattletimes.com - 16 - DsktpMobile - 300x250 - Right2'"},"div-gpt-ad-right3@300x250":{siteID:"244006",id:"'Seattletimes.com - 17 - DsktpMobile - 300x250 - Right3'"},"div-gpt-ad-right4@300x250":{siteID:"244007",id:"'Seattletimes.com - 18 - DsktpMobile - 300x250 - RIght4'"},"div-gpt-ad-right5@300x250":{siteID:"244008",id:"'Seattletimes.com - 19 - DsktpMobile - 300x250 - Right5'"},"div-gpt-ad-right6@300x250":{siteID:"244009",id:"'Seattletimes.com - 20 - DsktpMobile - 300x250 - Right6'"},"div-gpt-ad-right7@300x250":{siteID:"244010",id:"'Seattletimes.com - 21 - DsktpMobile - 300x250 - Right7'"},"div-gpt-ad-right8@300x250":{siteID:"271231",id:"Seattletimes.com - 30 - DsktpMobile - 300x250 - Right8"},"div-gpt-ad-right9@300x250":{siteID:"271232",id:"Seattletimes.com - 31 - DsktpMobile - 300x250 - Right9"},"div-gpt-ad-right@300x250":{siteID:"244002",id:"'Seattletimes.com - 13 - Mobile - 300x250_320x50 - Right'"},"div-gpt-ad-right@300x600":{siteID:"244001",id:"'Seattletimes.com - 12 - Desktop - 300x600_300x250 - Right'"},"div-gpt-ad-right@320x50":{siteID:"244002",id:"'Seattletimes.com - 13 - Mobile - 300x250_320x50 - Right'"},"div-gpt-ad-top@320x50":{siteID:"243995",id:"'Seattletimes.com - 06 - Mobile - 320x50 - Top'"},"div-gpt-ad-top@728x90":{siteID:"243994",id:"'Seattletimes.com - 05 - Desktop - 728x90_970x250 - Top'"},"div-gpt-ad-top@970x250":{siteID:"243994",id:"'Seattletimes.com - 05 - Desktop - 728x90_970x250 - Top'"}}},openx:{delDomain:"seattle-times-d.openx.net",rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,kgp:"_DIV_@_W_x_H_",klm:{"div-gpt-ad-bottom@728x90":{unit:"538193067"},"div-gpt-ad-bottom@970x250":{unit:"540273972"},"div-gpt-ad-gallery@300x250":{unit:"540273977"},"div-gpt-ad-middle@320x50":{unit:"538193064"},"div-gpt-ad-middle@728x90":{unit:"538193062"},"div-gpt-ad-middle@970x250":{unit:"540273968"},"div-gpt-ad-right10@300x250":{unit:"540273946"},"div-gpt-ad-right11@300x250":{unit:"540273950"},"div-gpt-ad-right1@300x250":{unit:"538193076"},"div-gpt-ad-right1@320x50":{unit:"538193066"},"div-gpt-ad-right2@300x250":{unit:"538193068"},"div-gpt-ad-right3@300x250":{unit:"538193063"},"div-gpt-ad-right4@300x250":{unit:"540273898"},"div-gpt-ad-right5@300x250":{unit:"540273901"},"div-gpt-ad-right6@300x250":{unit:"540273905"},"div-gpt-ad-right7@300x250":{unit:"540273911"},"div-gpt-ad-right8@300x250":{unit:"540273913"},"div-gpt-ad-right9@300x250":{unit:"540273917"},"div-gpt-ad-right@300x250":{unit:"538193072"},"div-gpt-ad-right@300x600":{unit:"538193070"},"div-gpt-ad-right@320x50":{unit:"538193077"},"div-gpt-ad-top@320x50":{unit:"538193073"},"div-gpt-ad-top@728x90":{unit:"538193071"},"div-gpt-ad-top@970x250":{unit:"538193069"}}},aardvark:{rev_share:"40.0",timeout:"1000",throttle:"100",kgp:"_DIV_@_W_x_H_",klm:{"div-gpt-ad-bottom@728x90":{sc:"YLaL",ai:"zT4M"},"div-gpt-ad-bottom@970x250":{sc:"SEUf",ai:"zT4M"},"div-gpt-ad-gallery@300x250":{sc:"TdsG",ai:"zT4M"},"div-gpt-ad-middle@320x50":{sc:"Pxa5",ai:"zT4M"},"div-gpt-ad-middle@728x90":{sc:"zMLA",ai:"zT4M"},"div-gpt-ad-middle@970x250":{sc:"dp5Y",ai:"zT4M"},"div-gpt-ad-right10@300x250":{sc:"tLmh",ai:"zT4M"},"div-gpt-ad-right11@300x250":{sc:"XyzF",ai:"zT4M"},"div-gpt-ad-right1@300x250":{sc:"oM6f",ai:"zT4M"},"div-gpt-ad-right1@320x50":{sc:"1Nj7",ai:"zT4M"},"div-gpt-ad-right2@300x250":{sc:"3xXg",ai:"zT4M"},"div-gpt-ad-right3@300x250":{sc:"TsWS",ai:"zT4M"},"div-gpt-ad-right4@300x250":{sc:"vzA1",ai:"zT4M"},"div-gpt-ad-right5@300x250":{sc:"xF8J",ai:"zT4M"},"div-gpt-ad-right6@300x250":{sc:"ALdW",ai:"zT4M"},"div-gpt-ad-right7@300x250":{sc:"L3Lm",ai:"zT4M"},"div-gpt-ad-right8@300x250":{sc:"XpPo",ai:"zT4M"},"div-gpt-ad-right9@300x250":{sc:"laEl",ai:"zT4M"},"div-gpt-ad-right@300x250":{sc:"x7hx",ai:"zT4M"},"div-gpt-ad-right@300x600":{sc:"URmR",ai:"zT4M"},"div-gpt-ad-right@320x50":{sc:"gbs4",ai:"zT4M"},"div-gpt-ad-top@320x50":{sc:"Rmp2",ai:"zT4M"},"div-gpt-ad-top@728x90":{sc:"YnRW",ai:"zT4M"},"div-gpt-ad-top@970x250":{sc:"25Bv",ai:"zT4M"}}}}}),(function(t,e,i){function n(t){u.isOwnProperty(window.PWT.bidMap,t)||(window.PWT.bidMap[t]=f.createBMEntry(t))}function r(t,e,i,n){window.PWT.bidMap[t].setNewBid(e,i),window.PWT.bidIdMap[i.getBidID()]={s:t,a:e},0===i.getDefaultBidStatus()&&"pubmaticServer"!==i.adapterID&&u.vLogInfo(t,{type:"bid",bidder:e+(0!==p.getBidPassThroughStatus(e)?"(Passthrough)":""),bidDetails:i,latency:n,s2s:p.isServerSideAdapter(e)})}function o(t,e,i){var n="",r=0,o=0,d=l.METADATA_MACROS,s="g";u.forEachOnObject(e.adapters,(function(e,i){""!=i.getLastBidID()&&("pubmaticServer"!==e&&o++,u.forEachOnObject(i.bids,(function(e,i){1!=i.getDefaultBidStatus()&&1!=i.getPostTimeoutStatus()&&0!=i.getGrossEcpm()&&(r++,n+=a(t,i))})))})),0==n.length&&(n=t),n=n.replace(new RegExp(d.BID_COUNT,s),r),n=n.replace(new RegExp(d.PARTNER_COUNT,s),o),i[l.WRAPPER_TARGETING_KEYS.META_DATA]=encodeURIComponent(n)}function a(t,e){var i=l.METADATA_MACROS,n="g";return t.replace(new RegExp(i.PARTNER,n),e.getAdapterID()).replace(new RegExp(i.WIDTH,n),e.getWidth()).replace(new RegExp(i.HEIGHT,n),e.getHeight()).replace(new RegExp(i.GROSS_ECPM,n),e.getGrossEcpm()).replace(new RegExp(i.NET_ECPM,n),e.getNetEcpm())}function d(t){var e=null,i={};return u.forEachOnObject(t.adapters,(function(t,n){var r=h.auctionBidsCallBack(t,n,i,e);e=r.winningBid,i=r.keyValuePairs})),null!==p.getMataDataPattern()&&o(p.getMataDataPattern(),t,i),{wb:e,kvp:i}}function s(t,e,i,n){return""!=e.getLastBidID()?(u.forEachOnObject(e.bids,(function(e,r){return r.getPostTimeoutStatus()===!0?{winningBid:n,keyValuePairs:i}:(1!==r.getDefaultBidStatus()&&1==p.getSendAllBidsStatus()&&r.setSendAllBidsKeys(),0===p.getBidPassThroughStatus(t)&&u.copyKeyValueObject(i,r.getKeyValuePairs()),0!==p.getBidPassThroughStatus(t)?(u.copyKeyValueObject(i,r.getKeyValuePairs()),{winningBid:n,keyValuePairs:i}):(null==n?n=r:n.getNetEcpm()0?(e.setStatus(1),e.setWinningBidStatus(),u.vLogInfo(t,{type:"win-bid",bidDetails:e})):u.vLogInfo(t,{type:"win-bid-fail"})}return{wb:e,kvp:i}},e.getBidById=function(t){if(!u.isOwnProperty(window.PWT.bidIdMap,t))return u.log(l.MESSAGES.M25+t),null;var e=window.PWT.bidIdMap[t].s,i=window.PWT.bidIdMap[t].a;if(u.isOwnProperty(window.PWT.bidMap,e)){u.log("BidID: "+t+", DivID: "+e+l.MESSAGES.M19+i);var n=window.PWT.bidMap[e].getBid(i,t);return null==n?null:{bid:n,slotid:e}}return u.log(l.MESSAGES.M25+t),null},e.displayCreative=function(t,e){var i=h.getBidById(e);if(i){var n=i.bid,r=i.slotid;u.displayCreative(t,n),u.vLogInfo(r,{type:"disp",adapter:n.getAdapterID()}),h.executeMonetizationPixel(r,n)}},e.executeAnalyticsPixel=function(){var t={s:[]},e=p.getPublisherId(),i=c.getUserConsentDataFromLS(),n="",r=p.getAnalyticsPixelURL(),o={};r&&(r=u.metaInfo.protocol+r+"pubid="+e,t[l.CONFIG.PUBLISHER_ID]=p.getPublisherId(),t[l.LOGGER_PIXEL_PARAMS.TIMEOUT]=""+p.getTimeout(),t[l.LOGGER_PIXEL_PARAMS.PAGE_URL]=window.decodeURIComponent(u.metaInfo.pageURL),t[l.LOGGER_PIXEL_PARAMS.TIMESTAMP]=u.getCurrentTimestamp(),t[l.CONFIG.PROFILE_ID]=p.getProfileID(),t[l.CONFIG.PROFILE_VERSION_ID]=p.getProfileDisplayVersionID(),p.getGdpr()&&(n=i&&i.c?encodeURIComponent(i.c):"",t[l.CONFIG.GDPR_CONSENT]=i&&i.g,t[l.CONFIG.CONSENT_STRING]=n,r+="&gdEn="+(p.getGdpr()?1:0)),u.forEachOnObject(window.PWT.bidMap,(function(t,e){h.analyticalPixelCallback(t,e,o)})),u.forEachOnObject(o,(function(e,i){i.length>0&&(t.s=i,t[l.COMMON.IMPRESSION_ID]=window.encodeURIComponent(e),t.psl=i.psl,u.ajaxRequest(r,(function(){}),"json="+window.encodeURIComponent(JSON.stringify(t)),{contentType:"application/x-www-form-urlencoded",withCredentials:!0}))})))},e.executeMonetizationPixel=function(t,e){var i=p.getMonetizationPixelURL(),n=p.getPublisherId();i&&(i+="pubid="+n,i+="&purl="+window.encodeURIComponent(u.metaInfo.pageURL),i+="&tst="+u.getCurrentTimestamp(),i+="&iid="+window.encodeURIComponent(window.PWT.bidMap[t].getImpressionID()),i+="&bidid="+window.encodeURIComponent(e.getBidID()),i+="&pid="+window.encodeURIComponent(p.getProfileID()),i+="&pdvid="+window.encodeURIComponent(p.getProfileDisplayVersionID()),i+="&slot="+window.encodeURIComponent(t),i+="&pn="+window.encodeURIComponent(e.getAdapterID()),i+="&en="+window.encodeURIComponent(e.getNetEcpm()),i+="&eg="+window.encodeURIComponent(e.getGrossEcpm()),i+="&kgpv="+window.encodeURIComponent(e.getKGPV()),h.setImageSrcToPixelURL(i))},e.analyticalPixelCallback=g,e.setImageSrcToPixelURL=function(t){var e=new window.Image;e.src=u.metaInfo.protocol+t},e.getAllPartnersBidStatuses=function(t,e){var i=!0;return u.forEachOnArray(e,(function(e,n){t[n]&&u.forEachOnObject(t[n].adapters,(function(t,e){u.forEachOnObject(e.bids,(function(t,e){i=i&&0===e.getDefaultBidStatus()}))}))})),i}}),(function(t,e){function i(t,e){return toString.call(t)==="[object "+e+"]"}var n="OpenWrap",r=909090,o=function(t){return i(t,"Function")},a=(function(){try{return window.localStorage&&o(window.localStorage.getItem)&&o(window.localStorage.setItem)}catch(t){return!1}})(),d=function(t,e,i,r){var o;if(a){try{o=window.localStorage.getItem(n)}catch(d){}if(o&&"string"==typeof o)try{o=JSON.parse(o)}catch(d){o={}}else o={};o&&(o.hasOwnProperty(t)||(o[t]={}),o[t].t=(new Date).getTime(),o[t][e]=i,"c"==e&&(o[t].g=r?1:0));try{window.localStorage.setItem(n,JSON.stringify(o))}catch(d){}}};e.setConsentDataInLS=d,e.isCmpFound=function(){return!!window.__cmp},e.getUserConsentDataFromCMP=function(){function t(t){if(t&&t.data&&t.data.__cmp&&t.data.__cmp.result){var e=t.data.__cmp.result;e&&e.consentData?d(i,"c",e.consentData,e.gdprApplies):"string"==typeof e&&d(i,"c",e)}}function e(){window.__cmp("getConsentData","vendorConsents",(function(t){t&&t.consentData?d(i,"c",t.consentData,t.gdprApplies):"string"==typeof t&&d(i,"c",t)}))}var i=r,n=0,o={__cmp:{callId:"iframe:"+ ++n,command:"getConsentData"}};window.__cmp?"function"==typeof window.__cmp?e():setTimeout((function(){"function"==typeof window.__cmp&&e()}),500):(window.top.postMessage(o,"*"),window.addEventListener("message",t))},e.getUserConsentDataFromLS=function(){var t=r,e={c:"",g:0};if(!a)return e;var i;try{i=window.localStorage.getItem(n)}catch(o){}if(i&&"string"==typeof i){try{i=JSON.parse(i)}catch(o){i={}}if(i.hasOwnProperty(t)){var d=i[t];d&&d.c&&d.t&&d.t&&parseInt(d.t,10)>(new Date).getTime()-864e5&&(e.c=d.c,e.g=d.g)}}return e}}),(function(t,e,i){function n(t){this.name=t,this.sizes=[],this.adapters={},this.creationTime=o.getCurrentTimestampInMs(),this.impressionID="",this.analyticsEnabled=!1,this.expired=!1}var r=i(2),o=i(1),a=i(9).AdapterEntry;n.prototype.setExpired=function(){return this.expired=!0,this},n.prototype.getExpiredStatus=function(){return this.expired},n.prototype.setAnalyticEnabled=function(){return this.analyticsEnabled=!0,this},n.prototype.getAnalyticEnabledStatus=function(){return this.analyticsEnabled},n.prototype.setNewBid=function(t,e){o.isOwnProperty(this.adapters,t)||(this.adapters[t]=new a(t)),this.adapters[t].setNewBid(e)},n.prototype.getBid=function(t,e){return o.isOwnProperty(this.adapters,t)?this.adapters[t].getBid(e):void 0},n.prototype.getName=function(){return this.name},n.prototype.getCreationTime=function(){return this.creationTime},n.prototype.setImpressionID=function(t){return this.impressionID=t,this},n.prototype.getImpressionID=function(){return this.impressionID},n.prototype.setSizes=function(t){return this.sizes=t,this},n.prototype.getSizes=function(){return this.sizes},n.prototype.setAdapterEntry=function(t){return o.isOwnProperty(this.adapters,t)||(this.adapters[t]=new a(t),o.log(r.MESSAGES.M4+this.name+" "+t+" "+this.adapters[t].getCallInitiatedTime())),this},n.prototype.getLastBidIDForAdapter=function(t){return o.isOwnProperty(this.adapters,t)?this.adapters[t].getLastBidID():""},t.exports.BMEntry=n,e.createBMEntry=function(t){return new n(t)}}),(function(t,e,i){function n(t){this.adapterID=t,this.callInitiatedTime=r.getCurrentTimestampInMs(),this.bids={},this.lastBidID=""}var r=i(1);n.prototype.getCallInitiatedTime=function(){return this.callInitiatedTime},n.prototype.getLastBidID=function(){return this.lastBidID},n.prototype.getBid=function(t){return r.isOwnProperty(this.bids,t)?this.bids[t]:null},n.prototype.setNewBid=function(t){delete this.bids[this.lastBidID];var e=t.getBidID();this.bids[e]=t,this.lastBidID=e},t.exports.AdapterEntry=n}),(function(t,e,i){function n(t){q.isObject(t)&&(ae=t)}function r(){return ae}function o(t){var e=0;try{var i=t.getSlotId().getId().split("_");e=parseInt(i[i.length-1])}catch(n){}return e}function a(t,e){if(!q.isOwnProperty(e,t))return!1;var i=e[t],n=q.getScreenWidth(de.getWindowReference()),r=q.getScreenHeight(de.getWindowReference());if(q.log(t+": responsiveSizeMapping found: screenWidth: "+n+", screenHeight: "+r),q.log(i),!q.isArray(i))return!1;for(var o=0,a=i.length;a>o;o++)if(2==i[o].length&&2==i[o][0].length){var d=i[o][0][0],s=i[o][0][1];if(n>=d&&r>=s){if(0!=i[o][1].length&&!q.isArray(i[o][1][0])){if(2==i[o][1].length&&q.isNumber(i[o][1][0])&&q.isNumber(i[o][1][1]))return[i[o][1]];q.log(t+": Unsupported mapping template."),q.log(i)}return i[o][1]}}return!1}function d(t,e){var i=de.getSizeFromSizeMapping(t,de.slotSizeMapping);if(i!==!1)return q.log(t+": responsiveSizeMapping applied: "),q.log(i),i;var n=[];return q.isFunction(e.getSizes)&&q.forEachOnArray(e.getSizes(),(function(e,i){q.isFunction(i.getWidth)&&q.isFunction(i.getHeight)?n.push([i.getWidth(),i.getHeight()]):(q.log(t+", size object does not have getWidth and getHeight method. Ignoring: "),q.log(i))})),n}function s(t,e){q.isObject(t)&&q.isFunction(t.getDivID)&&q.isArray(e)&&e[0]&&e[0]==t.getDivID()&&(t.setDisplayFunctionCalled(!0),t.setArguments(e))}function g(t,e,i){if(q.isOwnProperty(de.slotsMap,t))i||de.slotsMap[t].setSizes(de.getAdSlotSizesArray(t,e));else{var n=Z.createSlot(t);n.setDivID(t),n.setPubAdServerObject(e),n.setAdUnitID(e.getAdUnitPath()),n.setAdUnitIndex(de.getAdUnitIndex(e)),n.setSizes(de.getAdSlotSizesArray(t,e)),n.setStatus(Y.SLOT_STATUS.CREATED),ee&&q.isObject(JSON)&&q.isFunction(JSON.stringify)&&q.forEachOnArray(e.getTargetingKeys(),(function(t,i){n.setKeyValue(i,e.getTargeting(i))})),de.slotsMap[t]=n,q.createVLogInfoPanel(t,n.getSizes())}}function p(t){if(q.isObject(t)&&q.isFunction(t.getSlotId)){var e=t.getSlotId();if(e&&q.isFunction(e.getDomId))return e.getDomId()}return""}function l(t,e,i){q.log("Generating slotsMap"),q.forEachOnArray(t,(function(t,n){var r=de.generateSlotName(n);de.storeInSlotsMap(r,n,i),i&&q.isOwnProperty(de.slotsMap,r)&&de.setDisplayFunctionCalledIfRequired(de.slotsMap[r],e)})),q.log(de.slotsMap)}function u(t){return q.isOwnProperty(de.slotsMap,t)?de.slotsMap[t].getStatus():Y.SLOT_STATUS.DISPLAYED}function c(t,e){q.isOwnProperty(de.slotsMap,t)&&de.slotsMap[t].updateStatusAfterRendering(e)}function f(t){var e=[];return q.forEachOnObject(de.slotsMap,(function(i,n){q.isOwnProperty(t,n.getStatus())&&e.push(i)})),e}function h(t){var e,i={};q.isOwnProperty(de.slotsMap,t)&&(e=de.slotsMap[t].getPubAdServerObject(),q.forEachOnArray(e.getTargetingKeys(),(function(t,n){i[n]=e.getTargeting(n)})),e.clearTargeting(),q.forEachOnObject(i,(function(t,i){q.isOwnProperty(de.wrapperTargetingKeys,t)||e.setTargeting(t,i)})))}function I(t,e,i){q.forEachOnArray(t,(function(t,n){if(q.isOwnProperty(de.slotsMap,n)){var r=de.slotsMap[n];r.setStatus(Y.SLOT_STATUS.PARTNERS_CALLED),i&&(de.removeDMTargetingFromSlot(n),r.setRefreshFunctionCalled(!0),r.setArguments(e))}}))}function m(t){var e=[];return q.forEachOnArray(t,(function(t,i){e.push(de.slotsMap[i])})),e}function S(t){var e={};return q.forEachOnObject(t,(function(t,i){e[i]=""})),e}function v(t){var e=X.getBid(t),i=e.wb||null,n=e.kvp||null,r=de.slotsMap[t].getPubAdServerObject(),o=Y.IGNORE_PREBID_KEYS;if(q.log("DIV: "+t+" winningBid: "),q.log(i),i&&i.getNetEcpm()>0){de.slotsMap[t].setStatus(Y.SLOT_STATUS.TARGETING_ADDED),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_ID,i.getBidID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_STATUS,i.getStatus()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_ECPM,i.getNetEcpm().toFixed(Y.COMMON.BID_PRECISION));var a=i.getDealID();a&&r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_DEAL_ID,a),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_ADAPTER_ID,i.getAdapterID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PUBLISHER_ID,K.getPublisherId()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PROFILE_ID,K.getProfileID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PROFILE_VERSION_ID,K.getProfileDisplayVersionID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_SIZE,i.width+"x"+i.height),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PLATFORM_KEY,Y.PLATFORM_VALUES.DISPLAY)}q.forEachOnObject(n,(function(t,e){q.isOwnProperty(o,t)||(r.setTargeting(t,e),de.defineWrapperTargetingKey(t))}))}function w(t){q.isObject(de.wrapperTargetingKeys)||(de.wrapperTargetingKeys={}),de.wrapperTargetingKeys[t]=""}function E(t,e){return q.isObject(t)&&q.isFunction(e)?function(){return te=!0,q.log("Disable Initial Load is called"),e.apply(t,arguments)}:(q.log("disableInitialLoad: originalFunction is not a function"),null)}function T(t,e){return q.isObject(t)&&q.isFunction(e)?function(){return q.log("enableSingleRequest is called"),e.apply(t,arguments)}:(q.log("disableInitialLoad: originalFunction is not a function"),null)}function D(t,e){return q.isObject(t)&&q.isFunction(e)?function(){var i=arguments,n=i[0]?i[0]:null;return null!=n&&(q.isOwnProperty(oe,n)||(oe[n]=[]),oe[n]=oe[n].concat(i[1])),e.apply(t,arguments)}:(q.log("setTargeting: originalFunction is not a function"),null)}function A(t,e){return q.isObject(t)&&q.isFunction(e)?function(){var i=arguments[0]||window.googletag.pubads().getSlots();return q.forEachOnArray(i,(function(t,e){delete re[de.generateSlotName(e)]})),e.apply(t,arguments)}:(q.log("destroySlots: originalFunction is not a function"),null)}function y(t,e,i,n){q.log(t),q.log(n),de.updateStatusAfterRendering(n[0],!1),i.apply(e,n)}function O(t,e){var i=e.getStatus();i!=Y.SLOT_STATUS.DISPLAYED&&i!=Y.SLOT_STATUS.TARGETING_ADDED&&de.findWinningBidAndApplyTargeting(t)}function P(t,e,i){de.getStatusOfSlotForDivId(i[0])!=Y.SLOT_STATUS.DISPLAYED?de.updateStatusAndCallOriginalFunction_Display("Calling original display function after timeout with arguments, ",t,e,i):q.log("AdSlot already rendered")}function b(t,e,i){q.getExternalBidderStatus(e)&&X.getAllPartnersBidStatuses(window.PWT.bidMap,e)?(q.resetExternalBidderStatus(e),i()):t>0&&window.setTimeout((function(){de.executeDisplay(t-10,e,i)}),10)}function _(t,e,i,n){switch(t){case Y.SLOT_STATUS.CREATED:case Y.SLOT_STATUS.PARTNERS_CALLED:var r=Object.keys(de.slotsMap);"object"==typeof window.OWT.externalBidderStatuses[n[0]]&&window.OWT.externalBidderStatuses[n[0]]&&de.executeDisplay(K.getTimeout(),r,(function(){q.forEachOnObject(de.slotsMap,(function(t,e){de.findWinningBidIfRequired_Display(t,e)})),de.processDisplayCalledSlot(e,i,n)})),setTimeout((function(){q.log("PostTimeout.. back in display function"),q.forEachOnObject(de.slotsMap,(function(t,e){de.findWinningBidIfRequired_Display(t,e)})),de.processDisplayCalledSlot(e,i,n)}),K.getTimeout());break;case Y.SLOT_STATUS.TARGETING_ADDED:de.updateStatusAndCallOriginalFunction_Display("As DM processing is already done, Calling original display function with arguments",e,i,n);break;case Y.SLOT_STATUS.DISPLAYED:de.updateStatusAndCallOriginalFunction_Display("As slot is already displayed, Calling original display function with arguments",e,i,n)}}function x(t,e,i){if(t.length>0){de.updateStatusOfQualifyingSlotsBeforeCallingAdapters(t,e,i);var n=de.arrayOfSelectedSlots(t);Q.callAdapters(n)}}function R(t,e){return J.getUserConsentDataFromCMP(),q.isObject(t)&&q.isFunction(e)?function(){if(q.log("In display function, with arguments: "),q.log(arguments),te)return q.log("DisableInitialLoad was called, Nothing to do"),e.apply(t,arguments);de.updateSlotsMapFromGoogleSlots(t.pubads().getSlots(),arguments,!0),de.displayFunctionStatusHandler(u(arguments[0]),t,e,arguments);var i={};i[Y.SLOT_STATUS.CREATED]="",de.forQualifyingSlotNamesCallAdapters(f(i),arguments,!1);var n=arguments[0];setTimeout((function(){q.realignVLogInfoPanel(n),X.executeAnalyticsPixel()}),2e3+K.getTimeout())}:(q.log("display: originalFunction is not a function"),null)}function M(t){de.displayHookIsAdded||(de.displayHookIsAdded=!0,q.log("Adding hook on googletag.display."),q.addHookOnFunction(t,!1,"display",this.newDisplayFunction))}function C(t,e,i){return q.isOwnProperty(de.slotsMap,t)&&de.slotsMap[t].isRefreshFunctionCalled()===!0&&de.slotsMap[t].getStatus()!==Y.SLOT_STATUS.DISPLAYED?(de.findWinningBidAndApplyTargeting(e),de.updateStatusAfterRendering(e,!0),!0):i}function B(t,e){q.createVLogInfoPanel(t,de.slotsMap[e].getSizes()),q.realignVLogInfoPanel(t),X.executeAnalyticsPixel()}function L(t,e,i,n){q.log("Executing post timeout events, arguments: "),q.log(n);var r=!1;q.forEachOnArray(t,(function(t,e){var i=de.slotsMap[e].getDivID();r=de.findWinningBidIfRequired_Refresh(e,i,r),window.setTimeout((function(){de.postRederingChores(i,e)}),2e3)})),this.callOriginalRefeshFunction(r,e,i,n)}function N(t,e,i,n){t===!0?(q.log("Calling original refresh function post timeout"),i.apply(e,n)):q.log("AdSlot already rendered")}function F(t,e){var i=[],n=[];return n=0==t.length||null==t[0]?e.getSlots():t[0],q.forEachOnArray(n,(function(t,e){var n=de.generateSlotName(e);n.length>0&&(i=i.concat(n))})),i}function G(t,e){return J.getUserConsentDataFromCMP(),q.isObject(t)&&q.isFunction(e)?function(){q.log("In Refresh function"),de.updateSlotsMapFromGoogleSlots(t.getSlots(),arguments,!1);var i=F(arguments,t);de.forQualifyingSlotNamesCallAdapters(i,arguments,!0),q.log("Intiating Call to original refresh function with Timeout: "+K.getTimeout()+" ms");var n=arguments;"object"==typeof window.OWT.externalBidderStatuses[i[0]]&&window.OWT.externalBidderStatuses[i[0]]&&de.executeDisplay(K.getTimeout(),i,(function(){de.postTimeoutRefreshExecution(i,t,e,n)})),setTimeout((function(){de.postTimeoutRefreshExecution(i,t,e,n)}),K.getTimeout())}:(q.log("refresh: originalFunction is not a function"),null)}function W(t,e){return q.isObject(t)&&q.isFunction(e)?function(){return ne[de.generateSlotName(this)]=arguments[0],e.apply(this,arguments)}:(q.log("newSizeMappingFunction: originalFunction is not a function"),null)}function U(t){if(q.isObject(t)&&q.isFunction(t.defineSlot)){var e=t.defineSlot("/Harshad",[[728,90]],"Harshad-02051986");if(e)return q.addHookOnFunction(e,!0,"defineSizeMapping",de.newSizeMappingFunction),t.destroySlots([e]),!0}return!1}function z(t){if(q.isObject(t)&&q.isObject(t.googletag)&&q.isFunction(t.googletag.pubads)){var e=t.googletag,i=e.pubads();return q.isObject(i)?(de.addHookOnSlotDefineSizeMapping(e),q.addHookOnFunction(i,!1,"disableInitialLoad",de.newDisableInitialLoadFunction),q.addHookOnFunction(i,!1,"enableSingleRequest",de.newEnableSingleRequestFunction),de.newAddHookOnGoogletagDisplay(e),q.addHookOnFunction(i,!1,"refresh",de.newRefreshFuncton),q.addHookOnFunction(i,!1,"setTargeting",de.newSetTargetingFunction),q.addHookOnFunction(e,!1,"destroySlots",de.newDestroySlotsFunction),!0):!1}return!1}function k(t){return q.isObject(t)?(t.googletag=t.googletag||{},t.googletag.cmd=t.googletag.cmd||[],!0):!1}function H(t){if(q.isUndefined(t.google_onload_fired)&&q.isObject(t.googletag)&&q.isArray(t.googletag.cmd)&&q.isFunction(t.googletag.cmd.unshift)){q.log("Succeeded to load before GPT");var e=this;return t.googletag.cmd.unshift((function(){q.log("OpenWrap initialization started"),e.addHooks(t),q.log("OpenWrap initialization completed")})),!0}return q.log("Failed to load before GPT"),!1}function j(t){return q.isObject(t)&&q.isObject(t.PWT)&&q.isFunction(t.PWT.jsLoaded)?(t.PWT.jsLoaded(),!0):!1}function V(t){t.PWT.safeFrameMessageListenerAdded||(q.addMessageEventListenerForSafeFrame(t),t.PWT.safeFrameMessageListenerAdded=!0)}var K=i(4),Y=i(2),q=i(1),X=i(6),J=i(7),Q=i(11),Z=i(13),$=!1;e.displayHookIsAdded=$;var te=!1,ee=!0,ie={};e.wrapperTargetingKeys=ie;var ne={};e.slotSizeMapping=ne;var re={};e.slotsMap=re;var oe={},ae=null,de=this;e.setWindowReference=n,e.getWindowReference=r,e.getAdUnitIndex=o,e.getSizeFromSizeMapping=a,e.getAdSlotSizesArray=d,e.setDisplayFunctionCalledIfRequired=s,e.storeInSlotsMap=g,e.generateSlotName=p,e.updateSlotsMapFromGoogleSlots=l,e.getStatusOfSlotForDivId=u,e.updateStatusAfterRendering=c,e.getSlotNamesByStatus=f,e.removeDMTargetingFromSlot=h,e.updateStatusOfQualifyingSlotsBeforeCallingAdapters=I,e.arrayOfSelectedSlots=m,e.defineWrapperTargetingKeys=S,e.findWinningBidAndApplyTargeting=v,e.defineWrapperTargetingKey=w,e.newDisableInitialLoadFunction=E,e.newEnableSingleRequestFunction=T,e.newSetTargetingFunction=D,e.newDestroySlotsFunction=A,e.updateStatusAndCallOriginalFunction_Display=y,e.findWinningBidIfRequired_Display=O,e.processDisplayCalledSlot=P,e.executeDisplay=b,e.displayFunctionStatusHandler=_,e.forQualifyingSlotNamesCallAdapters=x,e.newDisplayFunction=R,e.newAddHookOnGoogletagDisplay=M,e.findWinningBidIfRequired_Refresh=C,e.postRederingChores=B,e.postTimeoutRefreshExecution=L,e.callOriginalRefeshFunction=N,e.getQualifyingSlotNamesForRefresh=F,e.newRefreshFuncton=G,e.newSizeMappingFunction=W,e.addHookOnSlotDefineSizeMapping=U,e.addHooks=z,e.defineGPTVariables=k,e.addHooksIfPossible=H,e.callJsLoadedIfRequired=j,e.initSafeFrameListener=V,e.init=function(t){return K.initConfig(),q.isObject(t)?(de.setWindowReference(t),de.initSafeFrameListener(t),de.wrapperTargetingKeys=de.defineWrapperTargetingKeys(Y.WRAPPER_TARGETING_KEYS),de.defineGPTVariables(t),Q.registerAdapters(),de.addHooksIfPossible(t),de.callJsLoadedIfRequired(t),!0):!1}}),(function(t,e,i){function n(){return Math.floor(100*Math.random())}function r(t,e,i){u.forEachOnObject(t,(function(t,n){I.setInitTimeForSlotsForAdapter(e,t),n.fB(e,i)}))}function o(t,e){u.forEachOnArray(t,(function(t,i){var n=i.getDivID();c.resetBid(n,e),c.setSizes(n,u.generateSlotNamesFromPattern(i,"_W_x_H_"))}))}function a(t,e){return!(t>=p.getAdapterThrottle(e))}function d(t,e){u.forEachOnObject(t,(function(t,i){c.setCallInitTime(i.getDivID(),e)}))}function s(t){if(t){var e=t.ID();u.isFunction(t.fB)?I.registeredAdapters[e]=t:u.log(e+l.MESSAGES.M3)}else u.log(l.MESSAGES.M3),u.log(t)}function g(){I.registerAdapter(f.register())}var p=i(4),l=i(2),u=i(1),c=i(6),f=i(12),h={};e.registeredAdapters=h;var I=this;e.callAdapters=function(t){var e=u.generateUUID();I.resetSlots(t,e),I.callAdapter(h,t,e)},e.getRandomNumberBelow100=n,e.callAdapter=r,e.resetSlots=o,e.throttleAdapter=a,e.setInitTimeForSlotsForAdapter=d,e.registerAdapter=s,e.registerAdapters=g}),(function(t,e,i){function n(t,e){var i=f.createBid(t.bidderCode,e),n=parseInt(t.pubmaticServerErrorCode);return i.setGrossEcpm(t.cpm),i.setDealID(t.dealId),i.setDealChannel(t.dealChannel),i.setAdHtml(t.ad||""),i.setAdUrl(t.adUrl||""),i.setWidth(t.width),i.setHeight(t.height),i.setMi(t.mi),i.setReceivedTime(t.responseTimestamp),i.setServerSideResponseTime(t.serverSideResponseTime),1===n||2===n||6===n?(i.setDefaultBidStatus(-1),i.setWidth(0),i.setHeight(0)):3===n||4===n||5===n?(i.setDefaultBidStatus(0),0===i.isServerSide&&i.setPostTimeoutStatus()):n&&i.setDefaultBidStatus(1),h.forEachOnObject(t.adserverTargeting,(function(t,e){"hb_format"!==t&&"hb_source"!==t&&i.setKeyValuePair(t,e)})),i}function r(t){var e=t.adUnitCode||"";if(h.isOwnProperty(E.kgpvMap,e)){if("pubmaticServer"===t.bidderCode&&(t.bidderCode=t.originalBidder),t.bidderCode&&u.isServerSideAdapter(t.bidderCode)){var i=E.kgpvMap[e].divID,n=E.getPBCodeWithWidthAndHeight(i,t.bidderCode,t.width,t.height),r=E.getPBCodeWithoutWidthAndHeight(i,t.bidderCode);if(h.isOwnProperty(E.kgpvMap,n))e=n;else{if(!h.isOwnProperty(E.kgpvMap,r))return h.log("Failed to find kgpv details for S2S-adapter:"+t.bidderCode),void 0;e=r}t.ss=u.isServerSideAdapter(t.bidderCode)?1:0}t.bidderCode&&I.setBidFromBidder(E.kgpvMap[e].divID,E.transformPBBidToOWBid(t,E.kgpvMap[e].kgpv))}else h.log("Failed to find pbBid.adUnitCode in kgpvMap, pbBid.adUnitCode:"+t.adUnitCode)}function o(t){for(var e in t)if(h.isOwnProperty(t,e)&&h.isOwnProperty(E.kgpvMap,e))for(var i=t[e],r=i.bids||[],o=0;o0&&window[v])try{if(h.isFunction(window[v].setConfig)){var a={debug:h.isDebugLogEnabled(),bidderSequence:"random",userSync:{iframeEnabled:!0,pixelEnabled:!0,enabledBidders:(function(){var t=[];return u.forEachAdapter((function(e){t.push(e)})),t})(),syncDelay:2e3},disableAjaxTimeout:u.getDisableAjaxTimeout()};u.getGdpr()&&(a.consentManagement={cmpApi:u.getCmpApi(),timeout:u.getGdprTimeout(),allowAuctionWithoutConsent:u.getAwc()}),window[v].setConfig(a)}if(!h.isFunction(window[v].requestBids))return h.log("PreBid js requestBids function is not available"),void 0;window[v].requestBids({adUnits:r,bidsBackHandler:function(t){h.log("In PreBid bidsBackHandler with bidResponses: "),h.log(t)},timeout:u.getTimeout()-50})}catch(d){h.log("Error occured in calling PreBid."),h.log(d)}}function l(){return E.parentAdapterID}var u=i(4),c=i(2),f=i(3),h=i(1),I=i(6),m=i(11),S=(i(5),c.COMMON.PARENT_ADAPTER_PREBID),v="owpbjs";e.parentAdapterID=S;var w={};e.kgpvMap=w;var E=this;e.transformPBBidToOWBid=n,e.pbBidStreamHandler=r,e.handleBidResponses=o,e.getPBCodeWithWidthAndHeight=a,e.getPBCodeWithoutWidthAndHeight=d,e.generatedKeyCallback=s,e.generatePbConf=g,e.fetchBids=p,e.getParenteAdapterID=l,e.register=function(){return{fB:E.fetchBids,ID:E.getParenteAdapterID}}}),(function(t,e,i){function n(t){this.name=t,this.status=r.SLOT_STATUS.CREATED,this.divID="",this.adUnitID="",this.adUnitIndex=0,this.sizes=[],this.keyValues={},this.arguments=[],this.pubAdServerObject=null,this.displayFunctionCalled=!1,this.refreshFunctionCalled=!1}var r=i(2);n.prototype.getName=function(){return this.name},n.prototype.setStatus=function(t){return this.status=t,this},n.prototype.getStatus=function(){return this.status},n.prototype.setDivID=function(t){return this.divID=t,this},n.prototype.getDivID=function(){return this.divID},n.prototype.setAdUnitID=function(t){return this.adUnitID=t,this},n.prototype.getAdUnitID=function(){return this.adUnitID},n.prototype.setAdUnitIndex=function(t){return this.adUnitIndex=t,this},n.prototype.getAdUnitIndex=function(){return this.adUnitIndex},n.prototype.setSizes=function(t){return this.sizes=t,this},n.prototype.getSizes=function(){return this.sizes},n.prototype.setKeyValue=function(t,e){return this.keyValues[t]=e,this},n.prototype.setKeyValues=function(t){return this.keyValues=t,this},n.prototype.getkeyValues=function(){return this.keyValues},n.prototype.setArguments=function(t){return this.arguments=t,this},n.prototype.getArguments=function(){return this.arguments},n.prototype.setPubAdServerObject=function(t){return this.pubAdServerObject=t,this},n.prototype.getPubAdServerObject=function(){return this.pubAdServerObject},n.prototype.setDisplayFunctionCalled=function(t){return this.displayFunctionCalled=t,this},n.prototype.isDisplayFunctionCalled=function(){return this.displayFunctionCalled},n.prototype.setRefreshFunctionCalled=function(t){return this.refreshFunctionCalled=t,this},n.prototype.isRefreshFunctionCalled=function(){return this.refreshFunctionCalled},n.prototype.updateStatusAfterRendering=function(t){this.status=r.SLOT_STATUS.DISPLAYED,this.arguments=[],t?this.refreshFunctionCalled=!1:this.displayFunctionCalled=!1},t.exports.Slot=n,e.createSlot=function(t){return new n(t)}})]);