function pwtCreatePrebidNamespace(preBidNameSpace) { window[preBidNameSpace] = window[preBidNameSpace] || {}; window[preBidNameSpace].que = window[preBidNameSpace].que || [];/* prebid.js v1.21.0Updated : 2018-10-24 */!(function(u){var s=window.pbjsChunk;window.pbjsChunk=function(e,t,n){for(var r,i,o,a=0,d=[];a';l+="",l+="",l+="",l+=n.adHtml,l+="",d.write(l),d.close()}catch(u){f.log("Error in rendering creative in safe frame."),f.log(u),f.log("Rendering synchronously."),f.displayCreative(window.document,msgData.pwt_bid)}else n.adUrl?f.writeIframe(window.document,n.adUrl,n.width,n.height,""):(f.log("creative details are not found"),f.log(n))}}}catch(u){}},t.addMessageEventListenerForSafeFrame=function(e){f.addMessageEventListener(e,f.safeFrameCommunicationProtocol)},t.getElementLocation=function(e){var t,n=0,i=0;if(f.isFunction(e.getBoundingClientRect))t=e.getBoundingClientRect(),n=Math.floor(t.left),i=Math.floor(t.top);else for(;e;)n+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent;return{x:n,y:i}},t.createVLogInfoPanel=function(e,t){var n,i,r,o=window.document;if(f.visualDebugLogIsEnabled&&(n=o.getElementById(e),n&&t.length&&t[0][0]&&t[0][1]&&(r=e+"-pwtc-info",!f.isUndefined(o.getElementById(r))))){var a=f.getElementLocation(n);i=o.createElement("div"),i.id=r,i.style="position: absolute; /*top: "+a.y+"px;*/ left: "+a.x+"px; width: "+t[0][0]+"px; height: "+t[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 s=o.createElement("img");s.src=f.metaInfo.protocol+"ads.pubmatic.com/AdServer/js/pwt/close.png",s.style="cursor:pointer; position: absolute; top: 2px; left: "+(a.x+t[0][0]-16-15)+"px; z-index: 9999998;",s.title="close",s.onclick=function(){i.style.display="none"},i.appendChild(s),i.appendChild(o.createElement("br"));for(var d="Slot: "+e+" | ",l=0;la&&(a=0),i="Bid: "+t.bidder+(t.s2s?"(s2s)":"")+": "+s.getNetEcpm()+"("+s.getGrossEcpm()+"): "+a+"ms",s.getPostTimeoutStatus()&&(i+=": POST-TIMEOUT");break;case"win-bid":var s=t.bidDetails;i="Winning Bid: "+s.getAdapterID()+": "+s.getNetEcpm();break;case"win-bid-fail":i="There are no bids from PWT";break;case"hr":i="----------------------";break;case"disp":i="Displaying creative from "+t.adapter}n.appendChild(r.createTextNode(i)),n.appendChild(r.createElement("br"))}}},t.getExternalBidderStatus=function(e){var t=!0;return f.forEachOnArray(e,(function(e,n){t=window.OWT.externalBidderStatuses[n]?t&&window.OWT.externalBidderStatuses[n].status:t})),t},t.resetExternalBidderStatus=function(e){f.forEachOnArray(e,(function(e,t){f.log("resetExternalBidderStatus: "+t),window.OWT.externalBidderStatuses[t]=void 0}))},t.ajaxRequest=function(e,t,n,i){try{i=i||{};var r,o=4,a=!0,s=i.method||(n?"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&&t&&t(r.responseText,r)},r.open(s,e),i.withCredentials&&(r.withCredentials=!0),i.preflight&&r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.setRequestHeader("Content-Type",i.contentType||"text/plain"),r.send("POST"===s&&n)}catch(d){f.log("Failed in Ajax"),f.log(d)}}}),(function(e,t){t.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"},t.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"},t.METADATA_MACROS={WIDTH:"_W_",HEIGHT:"_H_",PARTNER:"_P_",GROSS_ECPM:"_GE_",NET_ECPM:"_NE_",BID_COUNT:"_BC_",PARTNER_COUNT:"_PC_"},t.MACROS={WIDTH:"_W_",HEIGHT:"_H_",AD_UNIT_ID:"_AU_",AD_UNIT_INDEX:"_AUI_",INTEGER:"_I_",DIV:"_DIV_"},t.SLOT_STATUS={CREATED:0,PARTNERS_CALLED:1,TARGETING_ADDED:2,DISPLAYED:3},t.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"},t.IGNORE_PREBID_KEYS={hb_bidder:1,hb_adid:1,hb_pb:1,hb_size:1,hb_deal:1},t.LOGGER_PIXEL_PARAMS={TIMESTAMP:"tst",PAGE_URL:"purl",TIMEOUT:"to"},t.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: "}}),(function(e,t,n){function i(e,t){this.adapterID=e,this.kgpv=t,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(e)?1:0,this.dealID="",this.dealChannel="",this.isWinningBid=!1,this.status=0,this.serverSideResponseTime=0}var r=n(4),o=n(2),a=n(1);i.prototype.setServerSideResponseTime=function(e){this.serverSideResponseTime=e},i.prototype.getServerSideResponseTime=function(){return this.serverSideResponseTime},i.prototype.getServerSideStatus=function(){return this.isServerSide},i.prototype.setServerSideStatus=function(e){this.isServerSide=e},i.prototype.getAdapterID=function(){return this.adapterID},i.prototype.getBidID=function(){return this.bidID},i.prototype.setGrossEcpm=function(e){return null===e?(a.log(o.MESSAGES.M10),a.log(this),this):a.isString(e)&&(e=e.replace(/\s/g,""),0===e.length)?(a.log(o.MESSAGES.M20),a.log(this),this):window.isNaN(e)?(a.log(o.MESSAGES.M11+e),a.log(this),this):(e=window.parseFloat(e.toFixed(o.COMMON.BID_PRECISION)),this.grossEcpm=e,this.netEcpm=window.parseFloat((this.grossEcpm*r.getAdapterRevShare(this.getAdapterID())).toFixed(o.COMMON.BID_PRECISION)),this)},i.prototype.getGrossEcpm=function(){return this.grossEcpm},i.prototype.getNetEcpm=function(){return this.netEcpm},i.prototype.setDefaultBidStatus=function(e){return this.defaultBid=e,this},i.prototype.getDefaultBidStatus=function(){return this.defaultBid},i.prototype.setAdHtml=function(e){return this.adHtml=e,this},i.prototype.getAdHtml=function(){return this.adHtml},i.prototype.setAdUrl=function(e){return this.adUrl=e,this},i.prototype.getAdUrl=function(){return this.adUrl},i.prototype.setHeight=function(e){return this.height=e,this},i.prototype.getHeight=function(){return this.height},i.prototype.setWidth=function(e){return this.width=e,this},i.prototype.getWidth=function(){return this.width},i.prototype.getKGPV=function(){return this.kgpv},i.prototype.setKeyValuePair=function(e,t){return this.keyValuePairs[e.substr(0,20)]=t,this},i.prototype.getKeyValuePairs=function(){return this.keyValuePairs},i.prototype.setPostTimeoutStatus=function(){return this.isPostTimeout=!0,this},i.prototype.getPostTimeoutStatus=function(){return this.isPostTimeout},i.prototype.setReceivedTime=function(e){return this.receivedTime=e,this},i.prototype.getReceivedTime=function(){return this.receivedTime},i.prototype.setDealID=function(e){return e&&(this.dealID=e,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},i.prototype.getDealID=function(){return this.dealID},i.prototype.setDealChannel=function(e){return this.dealID&&e&&(this.dealChannel=e,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},i.prototype.getDealChannel=function(){return this.dealChannel},i.prototype.setWinningBidStatus=function(){return this.isWinningBid=!0,this},i.prototype.getWinningBidStatus=function(){return this.isWinningBid},i.prototype.setStatus=function(e){return this.status=e,this},i.prototype.getStatus=function(){return this.status},i.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)},e.exports.Bid=i,t.createBid=function(e,t){return new i(e,t)}}),(function(e,t,n){function i(){var e=o.COMMON.PARENT_ADAPTER_PREBID;if(!a.isOwnProperty(r.adapters,e)){var t={};t[o.CONFIG.REV_SHARE]="0.0",t[o.CONFIG.THROTTLE]="100",t[o.CONFIG.KEY_GENERATION_PATTERN]="_DIV_",t[o.CONFIG.KEY_LOOKUP_MAP]={},r.adapters[e]=t}}var r=n(5),o=n(2),a=n(1),s=null;s=this,t.getPublisherId=function(){return a.trim(r.pwt.pubid)||"0"},t.getMataDataPattern=function(){return a.isString(r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN])?r[o.CONFIG.COMMON][o.CONFIG.META_DATA_PATTERN]:null},t.getSendAllBidsStatus=function(){return window.parseInt(r[o.CONFIG.COMMON][o.CONFIG.SEND_ALL_BIDS])||0},t.getTimeout=function(){return window.parseInt(r.pwt.t)||1e3},t.getDisableAjaxTimeout=function(){var e=r.pwt;return a.isOwnProperty(e,o.CONFIG.DISABLE_AJAX_TIMEOUT)?1==r.pwt.disableAjaxTimeout:!0},t.getAdapterRevShare=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.REV_SHARE)?1-window.parseFloat(t[e][o.CONFIG.REV_SHARE])/100:1},t.getAdapterThrottle=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.THROTTLE)?100-window.parseFloat(t[e][o.CONFIG.THROTTLE]):0},t.isServerSideAdapter=function(e){var t=r.adapters;return t[e]&&a.isOwnProperty(t[e],o.CONFIG.SERVER_SIDE_ENABLED)?1===window.parseInt(t[e][o.CONFIG.SERVER_SIDE_ENABLED]):!1},t.getAdapterMaskBidsStatus=function(e){var t=r.adapters,n={audienceNetwork:1};return a.isOwnProperty(n,e)?n[e]:a.isOwnProperty(t[e],o.CONFIG.MASK_BIDS)?window.parseInt(t[e][o.CONFIG.MASK_BIDS])||0:0},t.getBidPassThroughStatus=function(e){var t=r.adapters;return a.isOwnProperty(t[e],o.CONFIG.BID_PASS_THROUGH)?window.parseInt(t[e][o.CONFIG.BID_PASS_THROUGH]):0},t.getProfileID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_ID])||"0"},t.getProfileDisplayVersionID=function(){return a.trim(r.pwt[o.CONFIG.PROFILE_VERSION_ID])||"0"},t.getAnalyticsPixelURL=function(){return r.pwt[o.CONFIG.LOGGER_URL]||!1},t.getMonetizationPixelURL=function(){return r.pwt[o.CONFIG.TRACKER_URL]||!1},t.forEachAdapter=function(e){a.forEachOnObject(r.adapters,e)},t.getGdpr=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_CONSENT]||o.CONFIG.DEFAULT_GDPR_CONSENT;return"1"===e},t.getCmpApi=function(){return r[o.CONFIG.COMMON][o.CONFIG.GDPR_CMPAPI]||o.CONFIG.DEFAULT_GDPR_CMPAPI},t.getGdprTimeout=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_TIMEOUT];return e?window.parseInt(e):o.CONFIG.DEFAULT_GDPR_TIMEOUT},t.getAwc=function(){var e=r[o.CONFIG.COMMON][o.CONFIG.GDPR_AWC]||o.CONFIG.DEFAULT_GDPR_AWC;return"1"===e},t.addPrebidAdapter=i,t.initConfig=function(){s.addPrebidAdapter();var e={};a.forEachOnObject(o.CONFIG,(function(t,n){e[n]=""})),a.forEachOnObject(r.adapters,(function(t,n){var i={};a.forEachOnObject(n,(function(t,n){a.isOwnProperty(e,t)||(i[t]=n)})),a.forEachOnObject(n[o.CONFIG.KEY_LOOKUP_MAP],(function(e,t){a.forEachOnObject(i,(function(e,n){t[e]=n}))}))}))}}),(function(e,t){t.pwt={t:"2000",pid:"915",gcv:"65",pdvid:"18",pubid:"157006",dataURL:"t.pubmatic.com/wl?",winURL:"t.pubmatic.com/wt?",metaDataPattern:0,sendAllBids:"1",adserver:"DFP",gdpr:"0",cmp:0,gdprTimeout:0,awc:0,platform:"display"},t.adapters={pubmatic:{publisherId:"157006",rev_share:"0.0",timeout:"2000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,kgp:"_AU_@_W_x_H_:_AUI_",sk:"true"},appnexus:{rev_share:"0.0",timeout:"2000",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,kgp:"_AU_@_W_x_H_",klm:{"/48901027/landing_leaderboard_bottom@728x90":{placementId:"11835083"},"/48901027/landing_leaderboard_top@728x90":{placementId:"11835081"},"/48901027/leaderboard_side@160x600":{placementId:"11835082"},"/48901027/mobile_landing_bottom@320x100":{placementId:"11835088"},"/48901027/mobile_landing_leaderboard@320x100":{placementId:"11835087"},"/48901027/mobile_non_landing_bottom@320x100":{placementId:"11835091"},"/48901027/mobile_non_landing_content@300x250":{placementId:"11835090"},"/48901027/mobile_non_landing_leaderboard@320x100":{placementId:"11835089"},"/48901027/non_landing_leaderboard_bottom@728x90":{placementId:"11835086"},"/48901027/non_landing_leaderboard_top@728x90":{placementId:"11835084"},"/48901027/non_landing_side@160x600":{placementId:"11835085"}}},sovrn:{throttle:"100",bidfloor:0,timeout:"2000",rev_share:"0.0",kgp:"_AU_@_W_x_H_",klm:{"/48901027/landing_leaderboard_bottom@728x90":{tagid:"496634"},"/48901027/landing_leaderboard_top@728x90":{tagid:"496635"},"/48901027/leaderboard_side@160x600":{tagid:"496633"},"/48901027/mobile_landing_bottom@320x100":{tagid:"499686"},"/48901027/mobile_landing_bottom@320x50":{tagid:"499686"},"/48901027/mobile_landing_leaderboard@320x100":{tagid:"499684"},"/48901027/mobile_landing_leaderboard@320x50":{tagid:"499684"},"/48901027/mobile_non_landing_bottom@320x100":{tagid:"499685"},"/48901027/mobile_non_landing_bottom@320x50":{tagid:"499685"},"/48901027/mobile_non_landing_content@300x250":{tagid:"496638"},"/48901027/mobile_non_landing_leaderboard@320x100":{tagid:"499687"},"/48901027/mobile_non_landing_leaderboard@320x50":{tagid:"499687"},"/48901027/non_landing_leaderboard_bottom@728x90":{tagid:"496636"},"/48901027/non_landing_leaderboard_top@728x90":{tagid:"496637"},"/48901027/non_landing_side@160x600":{tagid:"496632"}}},indexExchange:{rev_share:"0.0",timeout:"2000",throttle:"100",pt:0,serverSideEnabled:"0",kgp:"_AU_@_W_x_H_",klm:{"/48901027/landing_leaderboard_bottom@728x90":{siteID:"219069",id:"219069"},"/48901027/landing_leaderboard_top@728x90":{siteID:"219067",id:"219067"},"/48901027/leaderboard_side@160x600":{siteID:"219068",id:"219068"},"/48901027/mobile_landing_bottom@320x100":{siteID:"219070",id:"219070"},"/48901027/mobile_landing_leaderboard@320x100":{siteID:"219072",id:"219072"},"/48901027/mobile_non_landing_bottom@320x100":{siteID:"219071",id:"219071"},"/48901027/mobile_non_landing_content@300x250":{siteID:"219073",id:"219073"},"/48901027/mobile_non_landing_leaderboard@320x100":{siteID:"219074",id:"219074"},"/48901027/non_landing_leaderboard_bottom@728x90":{siteID:"219066",id:"219066"},"/48901027/non_landing_leaderboard_top@728x90":{siteID:"219064",id:"219064"},"/48901027/non_landing_side@160x600":{siteID:"219065",id:"219065"}}},openx:{delDomain:"coinmarketcap-d.openx.net",rev_share:"0.0",timeout:"2000",throttle:"100",pt:0,kgp:"_AU_@_W_x_H_",klm:{"/48901027/landing_leaderboard_bottom@728x90":{unit:"539181147"},"/48901027/landing_leaderboard_top@728x90":{unit:"539181148"},"/48901027/leaderboard_side@160x600":{unit:"539181152"},"/48901027/mobile_landing_bottom@320x50":{unit:"539181154"},"/48901027/mobile_landing_leaderboard@320x50":{unit:"539181156"},"/48901027/mobile_non_landing_bottom@320x50":{unit:"539181160"},"/48901027/mobile_non_landing_content@300x250":{unit:"539181170"},"/48901027/mobile_non_landing_leaderboard@320x50":{unit:"539181162"},"/48901027/non_landing_leaderboard_bottom@728x90":{unit:"539181149"},"/48901027/non_landing_leaderboard_top@728x90":{unit:"539181150"},"/48901027/non_landing_side@160x600":{unit:"539181151"}}}}}),(function(e,t,n){function i(e){p.isOwnProperty(window.PWT.bidMap,e)||(window.PWT.bidMap[e]=f.createBMEntry(e))}function r(e,t,n,i){window.PWT.bidMap[e].setNewBid(t,n),window.PWT.bidIdMap[n.getBidID()]={s:e,a:t},0===n.getDefaultBidStatus()&&p.vLogInfo(e,{type:"bid",bidder:t+(0!==u.getBidPassThroughStatus(t)?"(Passthrough)":""),bidDetails:n,latency:i,s2s:u.isServerSideAdapter(t)})}function o(e,t,n){var i="",r=0,o=0,s=c.METADATA_MACROS,d="g";p.forEachOnObject(t.adapters,(function(t,n){""!=n.getLastBidID()&&("pubmaticServer"!==t&&o++,p.forEachOnObject(n.bids,(function(t,n){1!=n.getDefaultBidStatus()&&1!=n.getPostTimeoutStatus()&&(r++,i+=a(e,n))})))})),0==i.length&&(i=e),i=i.replace(new RegExp(s.BID_COUNT,d),r),i=i.replace(new RegExp(s.PARTNER_COUNT,d),o),n[c.WRAPPER_TARGETING_KEYS.META_DATA]=encodeURIComponent(i)}function a(e,t){var n=c.METADATA_MACROS,i="g";return e.replace(new RegExp(n.PARTNER,i),t.getAdapterID()).replace(new RegExp(n.WIDTH,i),t.getWidth()).replace(new RegExp(n.HEIGHT,i),t.getHeight()).replace(new RegExp(n.GROSS_ECPM,i),t.getGrossEcpm()).replace(new RegExp(n.NET_ECPM,i),t.getNetEcpm())}function s(e){var t=null,n={};return p.forEachOnObject(e.adapters,(function(e,i){var r=h.auctionBidsCallBack(e,i,n,t);t=r.winningBid,n=r.keyValuePairs})),null!==u.getMataDataPattern()&&o(u.getMataDataPattern(),e,n),{wb:t,kvp:n}}function d(e,t,n,i){return""!=t.getLastBidID()?(p.forEachOnObject(t.bids,(function(t,r){return r.getPostTimeoutStatus()===!0?{winningBid:i,keyValuePairs:n}:(1!==r.getDefaultBidStatus()&&1==u.getSendAllBidsStatus()&&r.setSendAllBidsKeys(),0===u.getBidPassThroughStatus(e)&&p.copyKeyValueObject(n,r.getKeyValuePairs()),0!==u.getBidPassThroughStatus(e)?(p.copyKeyValueObject(n,r.getKeyValuePairs()),{winningBid:i,keyValuePairs:n}):(null==i?i=r:i.getNetEcpm()0?(t.setStatus(1),t.setWinningBidStatus(),p.vLogInfo(e,{type:"win-bid",bidDetails:t})):p.vLogInfo(e,{type:"win-bid-fail"})}return{wb:t,kvp:n}},t.getBidById=function(e){if(!p.isOwnProperty(window.PWT.bidIdMap,e))return p.log(c.MESSAGES.M25+e),null;var t=window.PWT.bidIdMap[e].s,n=window.PWT.bidIdMap[e].a;if(p.isOwnProperty(window.PWT.bidMap,t)){p.log("BidID: "+e+", DivID: "+t+c.MESSAGES.M19+n);var i=window.PWT.bidMap[t].getBid(n,e);return null==i?null:{bid:i,slotid:t}}return p.log(c.MESSAGES.M25+e),null},t.displayCreative=function(e,t){var n=h.getBidById(t);if(n){var i=n.bid,r=n.slotid;p.displayCreative(e,i),p.vLogInfo(r,{type:"disp",adapter:i.getAdapterID()}),h.executeMonetizationPixel(r,i)}},t.executeAnalyticsPixel=function(){var e={s:[]},t=u.getPublisherId(),n=g.getUserConsentDataFromLS(),i="",r=u.getAnalyticsPixelURL(),o={};r&&(r=p.metaInfo.protocol+r+"pubid="+t,e[c.CONFIG.PUBLISHER_ID]=u.getPublisherId(),e[c.LOGGER_PIXEL_PARAMS.TIMEOUT]=""+u.getTimeout(),e[c.LOGGER_PIXEL_PARAMS.PAGE_URL]=window.decodeURIComponent(p.metaInfo.pageURL),e[c.LOGGER_PIXEL_PARAMS.TIMESTAMP]=p.getCurrentTimestamp(),e[c.CONFIG.PROFILE_ID]=u.getProfileID(),e[c.CONFIG.PROFILE_VERSION_ID]=u.getProfileDisplayVersionID(),u.getGdpr()&&(i=n&&n.c?encodeURIComponent(n.c):"",e[c.CONFIG.GDPR_CONSENT]=n&&n.g,e[c.CONFIG.CONSENT_STRING]=i,r+="&gdEn="+(u.getGdpr()?1:0)),p.forEachOnObject(window.PWT.bidMap,(function(e,t){h.analyticalPixelCallback(e,t,o)})),p.forEachOnObject(o,(function(t,n){n.length>0&&(e.s=n,e[c.COMMON.IMPRESSION_ID]=window.encodeURIComponent(t),e.psl=n.psl,p.ajaxRequest(r,(function(){}),"json="+window.encodeURIComponent(JSON.stringify(e)),{contentType:"application/x-www-form-urlencoded",withCredentials:!0}))})))},t.executeMonetizationPixel=function(e,t){var n=u.getMonetizationPixelURL(),i=u.getPublisherId();n&&(n+="pubid="+i,n+="&purl="+window.encodeURIComponent(p.metaInfo.pageURL),n+="&tst="+p.getCurrentTimestamp(),n+="&iid="+window.encodeURIComponent(window.PWT.bidMap[e].getImpressionID()),n+="&bidid="+window.encodeURIComponent(t.getBidID()),n+="&pid="+window.encodeURIComponent(u.getProfileID()),n+="&pdvid="+window.encodeURIComponent(u.getProfileDisplayVersionID()),n+="&slot="+window.encodeURIComponent(e),n+="&pn="+window.encodeURIComponent(t.getAdapterID()),n+="&en="+window.encodeURIComponent(t.getNetEcpm()),n+="&eg="+window.encodeURIComponent(t.getGrossEcpm()),n+="&kgpv="+window.encodeURIComponent(t.getKGPV()),h.setImageSrcToPixelURL(n))},t.analyticalPixelCallback=l,t.setImageSrcToPixelURL=function(e){var t=new window.Image;t.src=p.metaInfo.protocol+e},t.getAllPartnersBidStatuses=function(e,t){var n=!0;return p.forEachOnArray(t,(function(t,i){e[i]&&p.forEachOnObject(e[i].adapters,(function(e,t){p.forEachOnObject(t.bids,(function(e,t){n=n&&0===t.getDefaultBidStatus()}))}))})),n}}),(function(e,t){function n(e,t){return toString.call(e)==="[object "+t+"]"}var i="OpenWrap",r=909090,o=function(e){return n(e,"Function")},a=(function(){try{return window.localStorage&&o(window.localStorage.getItem)&&o(window.localStorage.setItem)}catch(e){return!1}})(),s=function(e,t,n,r){var o;if(a){try{o=window.localStorage.getItem(i)}catch(s){}if(o&&"string"==typeof o)try{o=JSON.parse(o)}catch(s){o={}}else o={};o&&(o.hasOwnProperty(e)||(o[e]={}),o[e].t=(new Date).getTime(),o[e][t]=n,"c"==t&&(o[e].g=r?1:0));try{window.localStorage.setItem(i,JSON.stringify(o))}catch(s){}}};t.setConsentDataInLS=s,t.isCmpFound=function(){return!!window.__cmp},t.getUserConsentDataFromCMP=function(){function e(e){if(e&&e.data&&e.data.__cmp&&e.data.__cmp.result){var t=e.data.__cmp.result;t&&t.consentData?s(n,"c",t.consentData,t.gdprApplies):"string"==typeof t&&s(n,"c",t)}}function t(){window.__cmp("getConsentData","vendorConsents",(function(e){e&&e.consentData?s(n,"c",e.consentData,e.gdprApplies):"string"==typeof e&&s(n,"c",e)}))}var n=r,i=0,o={__cmp:{callId:"iframe:"+ ++i,command:"getConsentData"}};window.__cmp?"function"==typeof window.__cmp?t():setTimeout((function(){"function"==typeof window.__cmp&&t()}),500):(window.top.postMessage(o,"*"),window.addEventListener("message",e))},t.getUserConsentDataFromLS=function(){var e=r,t={c:"",g:0};if(!a)return t;var n;try{n=window.localStorage.getItem(i)}catch(o){}if(n&&"string"==typeof n){try{n=JSON.parse(n)}catch(o){n={}}if(n.hasOwnProperty(e)){var s=n[e];s&&s.c&&s.t&&s.t&&parseInt(s.t,10)>(new Date).getTime()-864e5&&(t.c=s.c,t.g=s.g)}}return t}}),(function(e,t,n){function i(e){this.name=e,this.sizes=[],this.adapters={},this.creationTime=o.getCurrentTimestampInMs(),this.impressionID="",this.analyticsEnabled=!1,this.expired=!1}var r=n(2),o=n(1),a=n(9).AdapterEntry;i.prototype.setExpired=function(){return this.expired=!0,this},i.prototype.getExpiredStatus=function(){return this.expired},i.prototype.setAnalyticEnabled=function(){return this.analyticsEnabled=!0,this},i.prototype.getAnalyticEnabledStatus=function(){return this.analyticsEnabled},i.prototype.setNewBid=function(e,t){o.isOwnProperty(this.adapters,e)||(this.adapters[e]=new a(e)),this.adapters[e].setNewBid(t)},i.prototype.getBid=function(e,t){return o.isOwnProperty(this.adapters,e)?this.adapters[e].getBid(t):void 0},i.prototype.getName=function(){return this.name},i.prototype.getCreationTime=function(){return this.creationTime},i.prototype.setImpressionID=function(e){return this.impressionID=e,this},i.prototype.getImpressionID=function(){return this.impressionID},i.prototype.setSizes=function(e){return this.sizes=e,this},i.prototype.getSizes=function(){return this.sizes},i.prototype.setAdapterEntry=function(e){return o.isOwnProperty(this.adapters,e)||(this.adapters[e]=new a(e),o.log(r.MESSAGES.M4+this.name+" "+e+" "+this.adapters[e].getCallInitiatedTime())),this},i.prototype.getLastBidIDForAdapter=function(e){return o.isOwnProperty(this.adapters,e)?this.adapters[e].getLastBidID():""},e.exports.BMEntry=i,t.createBMEntry=function(e){return new i(e)}}),(function(e,t,n){function i(e){this.adapterID=e,this.callInitiatedTime=r.getCurrentTimestampInMs(),this.bids={},this.lastBidID=""}var r=n(1);i.prototype.getCallInitiatedTime=function(){return this.callInitiatedTime},i.prototype.getLastBidID=function(){return this.lastBidID},i.prototype.getBid=function(e){return r.isOwnProperty(this.bids,e)?this.bids[e]:null},i.prototype.setNewBid=function(e){delete this.bids[this.lastBidID];var t=e.getBidID();this.bids[t]=e,this.lastBidID=t},e.exports.AdapterEntry=i}),(function(e,t,n){function i(e){q.isObject(e)&&(at=e)}function r(){return at}function o(e){var t=0;try{var n=e.getSlotId().getId().split("_");t=parseInt(n[n.length-1])}catch(i){}return t}function a(e,t){if(!q.isOwnProperty(t,e))return!1;var n=t[e],i=q.getScreenWidth(st.getWindowReference()),r=q.getScreenHeight(st.getWindowReference());if(q.log(e+": responsiveSizeMapping found: screenWidth: "+i+", screenHeight: "+r),q.log(n),!q.isArray(n))return!1;for(var o=0,a=n.length;a>o;o++)if(2==n[o].length&&2==n[o][0].length){var s=n[o][0][0],d=n[o][0][1];if(i>=s&&r>=d){if(0!=n[o][1].length&&!q.isArray(n[o][1][0])){if(2==n[o][1].length&&q.isNumber(n[o][1][0])&&q.isNumber(n[o][1][1]))return[n[o][1]];q.log(e+": Unsupported mapping template."),q.log(n)}return n[o][1]}}return!1}function s(e,t){var n=st.getSizeFromSizeMapping(e,st.slotSizeMapping);if(n!==!1)return q.log(e+": responsiveSizeMapping applied: "),q.log(n),n;var i=[];return q.isFunction(t.getSizes)&&q.forEachOnArray(t.getSizes(),(function(t,n){q.isFunction(n.getWidth)&&q.isFunction(n.getHeight)?i.push([n.getWidth(),n.getHeight()]):(q.log(e+", size object does not have getWidth and getHeight method. Ignoring: "),q.log(n))})),i}function d(e,t){q.isObject(e)&&q.isFunction(e.getDivID)&&q.isArray(t)&&t[0]&&t[0]==e.getDivID()&&(e.setDisplayFunctionCalled(!0),e.setArguments(t))}function l(e,t,n){if(q.isOwnProperty(st.slotsMap,e))n||st.slotsMap[e].setSizes(st.getAdSlotSizesArray(e,t));else{var i=Z.createSlot(e);i.setDivID(e),i.setPubAdServerObject(t),i.setAdUnitID(t.getAdUnitPath()),i.setAdUnitIndex(st.getAdUnitIndex(t)),i.setSizes(st.getAdSlotSizesArray(e,t)),i.setStatus(Y.SLOT_STATUS.CREATED),tt&&q.isObject(JSON)&&q.isFunction(JSON.stringify)&&q.forEachOnArray(t.getTargetingKeys(),(function(e,n){i.setKeyValue(n,t.getTargeting(n))})),st.slotsMap[e]=i,q.createVLogInfoPanel(e,i.getSizes())}}function u(e){if(q.isObject(e)&&q.isFunction(e.getSlotId)){var t=e.getSlotId();if(t&&q.isFunction(t.getDomId))return t.getDomId()}return""}function c(e,t,n){q.log("Generating slotsMap"),q.forEachOnArray(e,(function(e,i){var r=st.generateSlotName(i);st.storeInSlotsMap(r,i,n),n&&q.isOwnProperty(st.slotsMap,r)&&st.setDisplayFunctionCalledIfRequired(st.slotsMap[r],t)})),q.log(st.slotsMap)}function p(e){return q.isOwnProperty(st.slotsMap,e)?st.slotsMap[e].getStatus():Y.SLOT_STATUS.DISPLAYED}function g(e,t){q.isOwnProperty(st.slotsMap,e)&&st.slotsMap[e].updateStatusAfterRendering(t)}function f(e){var t=[];return q.forEachOnObject(st.slotsMap,(function(n,i){q.isOwnProperty(e,i.getStatus())&&t.push(n)})),t}function h(e){var t,n={};q.isOwnProperty(st.slotsMap,e)&&(t=st.slotsMap[e].getPubAdServerObject(),q.forEachOnArray(t.getTargetingKeys(),(function(e,i){n[i]=t.getTargeting(i)})),t.clearTargeting(),q.forEachOnObject(n,(function(e,n){q.isOwnProperty(st.wrapperTargetingKeys,e)||t.setTargeting(e,n)})))}function m(e,t,n){q.forEachOnArray(e,(function(e,i){if(q.isOwnProperty(st.slotsMap,i)){var r=st.slotsMap[i];r.setStatus(Y.SLOT_STATUS.PARTNERS_CALLED),n&&(st.removeDMTargetingFromSlot(i),r.setRefreshFunctionCalled(!0),r.setArguments(t))}}))}function I(e){var t=[];return q.forEachOnArray(e,(function(e,n){t.push(st.slotsMap[n])})),t}function S(e){var t={};return q.forEachOnObject(e,(function(e,n){t[n]=""})),t}function w(e){var t=J.getBid(e),n=t.wb||null,i=t.kvp||null,r=st.slotsMap[e].getPubAdServerObject(),o=Y.IGNORE_PREBID_KEYS;if(q.log("DIV: "+e+" winningBid: "),q.log(n),n&&n.getNetEcpm()>0){st.slotsMap[e].setStatus(Y.SLOT_STATUS.TARGETING_ADDED),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_ID,n.getBidID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_STATUS,n.getStatus()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_ECPM,n.getNetEcpm().toFixed(Y.COMMON.BID_PRECISION));var a=n.getDealID();a&&r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_DEAL_ID,a),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_ADAPTER_ID,n.getAdapterID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PUBLISHER_ID,z.getPublisherId()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PROFILE_ID,z.getProfileID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PROFILE_VERSION_ID,z.getProfileDisplayVersionID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_SIZE,n.width+"x"+n.height)}q.forEachOnObject(i,(function(e,t){q.isOwnProperty(o,e)||(r.setTargeting(e,t),st.defineWrapperTargetingKey(e))}))}function E(e){q.isObject(st.wrapperTargetingKeys)||(st.wrapperTargetingKeys={}),st.wrapperTargetingKeys[e]=""}function _(e,t){return q.isObject(e)&&q.isFunction(t)?function(){return et=!0,q.log("Disable Initial Load is called"),t.apply(e,arguments)}:(q.log("disableInitialLoad: originalFunction is not a function"),null)}function T(e,t){return q.isObject(e)&&q.isFunction(t)?function(){return q.log("enableSingleRequest is called"),t.apply(e,arguments)}:(q.log("disableInitialLoad: originalFunction is not a function"),null)}function A(e,t){return q.isObject(e)&&q.isFunction(t)?function(){var n=arguments,i=n[0]?n[0]:null;return null!=i&&(q.isOwnProperty(ot,i)||(ot[i]=[]),ot[i]=ot[i].concat(n[1])),t.apply(e,arguments)}:(q.log("setTargeting: originalFunction is not a function"),null)}function b(e,t){return q.isObject(e)&&q.isFunction(t)?function(){var n=arguments[0]||window.googletag.pubads().getSlots();return q.forEachOnArray(n,(function(e,t){delete rt[st.generateSlotName(t)]})),t.apply(e,arguments)}:(q.log("destroySlots: originalFunction is not a function"),null)}function y(e,t,n,i){q.log(e),q.log(i),st.updateStatusAfterRendering(i[0],!1),n.apply(t,i)}function D(e,t){var n=t.getStatus();n!=Y.SLOT_STATUS.DISPLAYED&&n!=Y.SLOT_STATUS.TARGETING_ADDED&&st.findWinningBidAndApplyTargeting(e)}function O(e,t,n){st.getStatusOfSlotForDivId(n[0])!=Y.SLOT_STATUS.DISPLAYED?st.updateStatusAndCallOriginalFunction_Display("Calling original display function after timeout with arguments, ",e,t,n):q.log("AdSlot already rendered")}function P(e,t,n){q.getExternalBidderStatus(t)&&J.getAllPartnersBidStatuses(window.PWT.bidMap,t)?(q.resetExternalBidderStatus(t),n()):e>0&&window.setTimeout((function(){st.executeDisplay(e-10,t,n)}),10)}function v(e,t,n,i){switch(e){case Y.SLOT_STATUS.CREATED:case Y.SLOT_STATUS.PARTNERS_CALLED:var r=Object.keys(st.slotsMap);"object"==typeof window.OWT.externalBidderStatuses[i[0]]&&window.OWT.externalBidderStatuses[i[0]]&&st.executeDisplay(z.getTimeout(),r,(function(){q.forEachOnObject(st.slotsMap,(function(e,t){st.findWinningBidIfRequired_Display(e,t)})),st.processDisplayCalledSlot(t,n,i)})),setTimeout((function(){q.log("PostTimeout.. back in display function"),q.forEachOnObject(st.slotsMap,(function(e,t){st.findWinningBidIfRequired_Display(e,t)})),st.processDisplayCalledSlot(t,n,i)}),z.getTimeout());break;case Y.SLOT_STATUS.TARGETING_ADDED:st.updateStatusAndCallOriginalFunction_Display("As DM processing is already done, Calling original display function with arguments",t,n,i);break;case Y.SLOT_STATUS.DISPLAYED:st.updateStatusAndCallOriginalFunction_Display("As slot is already displayed, Calling original display function with arguments",t,n,i)}}function R(e,t,n){if(e.length>0){st.updateStatusOfQualifyingSlotsBeforeCallingAdapters(e,t,n);var i=st.arrayOfSelectedSlots(e);Q.callAdapters(i)}}function M(e,t){return X.getUserConsentDataFromCMP(),q.isObject(e)&&q.isFunction(t)?function(){if(q.log("In display function, with arguments: "),q.log(arguments),et)return q.log("DisableInitialLoad was called, Nothing to do"),t.apply(e,arguments);st.updateSlotsMapFromGoogleSlots(e.pubads().getSlots(),arguments,!0),st.displayFunctionStatusHandler(p(arguments[0]),e,t,arguments);var n={};n[Y.SLOT_STATUS.CREATED]="",st.forQualifyingSlotNamesCallAdapters(f(n),arguments,!1);var i=arguments[0];setTimeout((function(){q.realignVLogInfoPanel(i),J.executeAnalyticsPixel()}),2e3+z.getTimeout())}:(q.log("display: originalFunction is not a function"),null)}function C(e){st.displayHookIsAdded||(st.displayHookIsAdded=!0,q.log("Adding hook on googletag.display."),q.addHookOnFunction(e,!1,"display",this.newDisplayFunction))}function B(e,t,n){return q.isOwnProperty(st.slotsMap,e)&&st.slotsMap[e].isRefreshFunctionCalled()===!0&&st.slotsMap[e].getStatus()!==Y.SLOT_STATUS.DISPLAYED?(st.findWinningBidAndApplyTargeting(t),st.updateStatusAfterRendering(t,!0),!0):n}function x(e,t){q.createVLogInfoPanel(e,st.slotsMap[t].getSizes()),q.realignVLogInfoPanel(e),J.executeAnalyticsPixel()}function N(e,t,n,i){q.log("Executing post timeout events, arguments: "),q.log(i);var r=!1;q.forEachOnArray(e,(function(e,t){var n=st.slotsMap[t].getDivID();r=st.findWinningBidIfRequired_Refresh(t,n,r),window.setTimeout((function(){st.postRederingChores(n,t)}),2e3)})),this.callOriginalRefeshFunction(r,t,n,i)}function F(e,t,n,i){e===!0?(q.log("Calling original refresh function post timeout"),n.apply(t,i)):q.log("AdSlot already rendered")}function L(e,t){var n=[],i=[];return i=0==e.length||null==e[0]?t.getSlots():e[0],q.forEachOnArray(i,(function(e,t){var i=st.generateSlotName(t);i.length>0&&(n=n.concat(i))})),n}function G(e,t){return X.getUserConsentDataFromCMP(),q.isObject(e)&&q.isFunction(t)?function(){q.log("In Refresh function"),st.updateSlotsMapFromGoogleSlots(e.getSlots(),arguments,!1);var n=L(arguments,e);st.forQualifyingSlotNamesCallAdapters(n,arguments,!0),q.log("Intiating Call to original refresh function with Timeout: "+z.getTimeout()+" ms");var i=arguments;"object"==typeof window.OWT.externalBidderStatuses[n[0]]&&window.OWT.externalBidderStatuses[n[0]]&&st.executeDisplay(z.getTimeout(),n,(function(){st.postTimeoutRefreshExecution(n,e,t,i)})),setTimeout((function(){st.postTimeoutRefreshExecution(n,e,t,i)}),z.getTimeout())}:(q.log("refresh: originalFunction is not a function"),null)}function U(e,t){return q.isObject(e)&&q.isFunction(t)?function(){return it[st.generateSlotName(this)]=arguments[0],t.apply(this,arguments)}:(q.log("newSizeMappingFunction: originalFunction is not a function"),null)}function W(e){if(q.isObject(e)&&q.isFunction(e.defineSlot)){var t=e.defineSlot("/Harshad",[[728,90]],"Harshad-02051986");if(t)return q.addHookOnFunction(t,!0,"defineSizeMapping",st.newSizeMappingFunction),e.destroySlots([t]),!0}return!1}function H(e){if(q.isObject(e)&&q.isObject(e.googletag)&&q.isFunction(e.googletag.pubads)){var t=e.googletag,n=t.pubads();return q.isObject(n)?(st.addHookOnSlotDefineSizeMapping(t),q.addHookOnFunction(n,!1,"disableInitialLoad",st.newDisableInitialLoadFunction),q.addHookOnFunction(n,!1,"enableSingleRequest",st.newEnableSingleRequestFunction),st.newAddHookOnGoogletagDisplay(t),q.addHookOnFunction(n,!1,"refresh",st.newRefreshFuncton),q.addHookOnFunction(n,!1,"setTargeting",st.newSetTargetingFunction),q.addHookOnFunction(t,!1,"destroySlots",st.newDestroySlotsFunction),!0):!1}return!1}function k(e){return q.isObject(e)?(e.googletag=e.googletag||{},e.googletag.cmd=e.googletag.cmd||[],!0):!1}function j(e){if(q.isUndefined(e.google_onload_fired)&&q.isObject(e.googletag)&&q.isArray(e.googletag.cmd)&&q.isFunction(e.googletag.cmd.unshift)){q.log("Succeeded to load before GPT");var t=this;return e.googletag.cmd.unshift((function(){q.log("OpenWrap initialization started"),t.addHooks(e),q.log("OpenWrap initialization completed")})),!0}return q.log("Failed to load before GPT"),!1}function K(e){return q.isObject(e)&&q.isObject(e.PWT)&&q.isFunction(e.PWT.jsLoaded)?(e.PWT.jsLoaded(),!0):!1}function V(e){e.PWT.safeFrameMessageListenerAdded||(q.addMessageEventListenerForSafeFrame(e),e.PWT.safeFrameMessageListenerAdded=!0)}var z=n(4),Y=n(2),q=n(1),J=n(6),X=n(7),Q=n(11),Z=n(13),$=!1;t.displayHookIsAdded=$;var et=!1,tt=!0,nt={};t.wrapperTargetingKeys=nt;var it={};t.slotSizeMapping=it;var rt={};t.slotsMap=rt;var ot={},at=null,st=this;t.setWindowReference=i,t.getWindowReference=r,t.getAdUnitIndex=o,t.getSizeFromSizeMapping=a,t.getAdSlotSizesArray=s,t.setDisplayFunctionCalledIfRequired=d,t.storeInSlotsMap=l,t.generateSlotName=u,t.updateSlotsMapFromGoogleSlots=c,t.getStatusOfSlotForDivId=p,t.updateStatusAfterRendering=g,t.getSlotNamesByStatus=f,t.removeDMTargetingFromSlot=h,t.updateStatusOfQualifyingSlotsBeforeCallingAdapters=m,t.arrayOfSelectedSlots=I,t.defineWrapperTargetingKeys=S,t.findWinningBidAndApplyTargeting=w,t.defineWrapperTargetingKey=E,t.newDisableInitialLoadFunction=_,t.newEnableSingleRequestFunction=T,t.newSetTargetingFunction=A,t.newDestroySlotsFunction=b,t.updateStatusAndCallOriginalFunction_Display=y,t.findWinningBidIfRequired_Display=D,t.processDisplayCalledSlot=O,t.executeDisplay=P,t.displayFunctionStatusHandler=v,t.forQualifyingSlotNamesCallAdapters=R,t.newDisplayFunction=M,t.newAddHookOnGoogletagDisplay=C,t.findWinningBidIfRequired_Refresh=B,t.postRederingChores=x,t.postTimeoutRefreshExecution=N,t.callOriginalRefeshFunction=F,t.getQualifyingSlotNamesForRefresh=L,t.newRefreshFuncton=G,t.newSizeMappingFunction=U,t.addHookOnSlotDefineSizeMapping=W,t.addHooks=H,t.defineGPTVariables=k,t.addHooksIfPossible=j,t.callJsLoadedIfRequired=K,t.initSafeFrameListener=V,t.init=function(e){return z.initConfig(),q.isObject(e)?(st.setWindowReference(e),st.initSafeFrameListener(e),st.wrapperTargetingKeys=st.defineWrapperTargetingKeys(Y.WRAPPER_TARGETING_KEYS),st.defineGPTVariables(e),Q.registerAdapters(),st.addHooksIfPossible(e),st.callJsLoadedIfRequired(e),!0):!1}}),(function(e,t,n){function i(){return Math.floor(100*Math.random())}function r(e,t,n){p.forEachOnObject(e,(function(e,i){m.setInitTimeForSlotsForAdapter(t,e),i.fB(t,n)}))}function o(e,t){p.forEachOnArray(e,(function(e,n){var i=n.getDivID();g.resetBid(i,t),g.setSizes(i,p.generateSlotNamesFromPattern(n,"_W_x_H_"))}))}function a(e,t){return!(e>=u.getAdapterThrottle(t))}function s(e,t){p.forEachOnObject(e,(function(e,n){g.setCallInitTime(n.getDivID(),t)}))}function d(e){if(e){var t=e.ID();p.isFunction(e.fB)?m.registeredAdapters[t]=e:p.log(t+c.MESSAGES.M3)}else p.log(c.MESSAGES.M3),p.log(e)}function l(){m.registerAdapter(f.register())}var u=n(4),c=n(2),p=n(1),g=n(6),f=n(12),h={};t.registeredAdapters=h;var m=this;t.callAdapters=function(e){var t=p.generateUUID();m.resetSlots(e,t),m.callAdapter(h,e,t)},t.getRandomNumberBelow100=i,t.callAdapter=r,t.resetSlots=o,t.throttleAdapter=a,t.setInitTimeForSlotsForAdapter=s,t.registerAdapter=d,t.registerAdapters=l}),(function(e,t,n){function i(e,t){var n=f.createBid(e.bidderCode,t),i=parseInt(e.pubmaticServerErrorCode);return n.setGrossEcpm(e.cpm),n.setDealID(e.dealId),n.setDealChannel(e.dealChannel),n.setAdHtml(e.ad||""),n.setAdUrl(e.adUrl||""),n.setWidth(e.width),n.setHeight(e.height),n.setReceivedTime(e.responseTimestamp),n.setServerSideResponseTime(e.serverSideResponseTime),1===i||2===i?(n.setDefaultBidStatus(0),n.setWidth(0),n.setHeight(0)):3===i||5===i?(n.setDefaultBidStatus(1),n.setPostTimeoutStatus()):i&&n.setDefaultBidStatus(1),h.forEachOnObject(e.adserverTargeting,(function(e,t){"hb_format"!==e&&"hb_source"!==e&&n.setKeyValuePair(e,t)})),n}function r(e){var t=e.adUnitCode||"";if(h.isOwnProperty(_.kgpvMap,t)){if("pubmaticServer"===e.bidderCode&&(e.bidderCode=e.originalBidder),e.bidderCode&&p.isServerSideAdapter(e.bidderCode)){var n=_.kgpvMap[t].divID,i=_.getPBCodeWithWidthAndHeight(n,e.bidderCode,e.width,e.height),r=_.getPBCodeWithoutWidthAndHeight(n,e.bidderCode);if(h.isOwnProperty(_.kgpvMap,i))t=i;else{if(!h.isOwnProperty(_.kgpvMap,r))return h.log("Failed to find kgpv details for S2S-adapter:"+e.bidderCode),void 0;t=r}e.ss=p.isServerSideAdapter(e.bidderCode)?1:0}e.bidderCode&&m.setBidFromBidder(_.kgpvMap[t].divID,_.transformPBBidToOWBid(e,_.kgpvMap[t].kgpv))}else h.log("Failed to find pbBid.adUnitCode in kgpvMap, pbBid.adUnitCode:"+e.adUnitCode)}function o(e){for(var t in e)if(h.isOwnProperty(e,t)&&h.isOwnProperty(_.kgpvMap,t))for(var n=e[t],r=n.bids||[],o=0;o0&&window[w])try{if(h.isFunction(window[w].setConfig)){var a={debug:h.isDebugLogEnabled(),bidderSequence:"random",userSync:{iframeEnabled:!0,pixelEnabled:!0,enabledBidders:(function(){var e=[];return p.forEachAdapter((function(t){e.push(t)})),e})(),syncDelay:2e3},disableAjaxTimeout:p.getDisableAjaxTimeout()};p.getGdpr()&&(a.consentManagement={cmpApi:p.getCmpApi(),timeout:p.getGdprTimeout(),allowAuctionWithoutConsent:p.getAwc()}),window[w].setConfig(a)}if(!h.isFunction(window[w].requestBids))return h.log("PreBid js requestBids function is not available"),void 0;window[w].requestBids({adUnits:r,bidsBackHandler:function(e){h.log("In PreBid bidsBackHandler with bidResponses: "),h.log(e)},timeout:p.getTimeout()-50})}catch(s){h.log("Error occured in calling PreBid."),h.log(s)}}function c(){return _.parentAdapterID}var p=n(4),g=n(2),f=n(3),h=n(1),m=n(6),I=n(11),S=(n(5),g.COMMON.PARENT_ADAPTER_PREBID),w="pbjs";t.parentAdapterID=S;var E={};t.kgpvMap=E;var _=this;t.transformPBBidToOWBid=i,t.pbBidStreamHandler=r,t.handleBidResponses=o,t.getPBCodeWithWidthAndHeight=a,t.getPBCodeWithoutWidthAndHeight=s,t.generatedKeyCallback=d,t.generatePbConf=l,t.fetchBids=u,t.getParenteAdapterID=c,t.register=function(){return{fB:_.fetchBids,ID:_.getParenteAdapterID}}}),(function(e,t,n){function i(e){this.name=e,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=n(2);i.prototype.getName=function(){return this.name},i.prototype.setStatus=function(e){return this.status=e,this},i.prototype.getStatus=function(){return this.status},i.prototype.setDivID=function(e){return this.divID=e,this},i.prototype.getDivID=function(){return this.divID},i.prototype.setAdUnitID=function(e){return this.adUnitID=e,this},i.prototype.getAdUnitID=function(){return this.adUnitID},i.prototype.setAdUnitIndex=function(e){return this.adUnitIndex=e,this},i.prototype.getAdUnitIndex=function(){return this.adUnitIndex},i.prototype.setSizes=function(e){return this.sizes=e,this},i.prototype.getSizes=function(){return this.sizes},i.prototype.setKeyValue=function(e,t){return this.keyValues[e]=t,this},i.prototype.setKeyValues=function(e){return this.keyValues=e,this},i.prototype.getkeyValues=function(){return this.keyValues},i.prototype.setArguments=function(e){return this.arguments=e,this},i.prototype.getArguments=function(){return this.arguments},i.prototype.setPubAdServerObject=function(e){return this.pubAdServerObject=e,this},i.prototype.getPubAdServerObject=function(){return this.pubAdServerObject},i.prototype.setDisplayFunctionCalled=function(e){return this.displayFunctionCalled=e,this},i.prototype.isDisplayFunctionCalled=function(){return this.displayFunctionCalled},i.prototype.setRefreshFunctionCalled=function(e){return this.refreshFunctionCalled=e,this},i.prototype.isRefreshFunctionCalled=function(){return this.refreshFunctionCalled},i.prototype.updateStatusAfterRendering=function(e){this.status=r.SLOT_STATUS.DISPLAYED,this.arguments=[],e?this.refreshFunctionCalled=!1:this.displayFunctionCalled=!1},e.exports.Slot=i,t.createSlot=function(e){return new i(e)}})]);