function pwtCreatePrebidNamespace(preBidNameSpace) { window[preBidNameSpace] = window[preBidNameSpace] || {}; window[preBidNameSpace].que = window[preBidNameSpace].que || [];/* prebid.js v1.13.0Updated : 2018-09-04 */!(function(d){var s=window.pbjsChunk;window.pbjsChunk=function(e,t,n){for(var r,i,o,a=0,u=[];a';u+="",u+="",u+="",u+=i.adHtml,u+="",d.write(u),d.close()}catch(l){f.log("Error in rendering creative in safe frame."),f.log(l),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(l){}},t.addMessageEventListenerForSafeFrame=function(e){f.addMessageEventListener(e,f.safeFrameCommunicationProtocol)},t.getElementLocation=function(e){var t,i=0,n=0;if(f.isFunction(e.getBoundingClientRect))t=e.getBoundingClientRect(),i=Math.floor(t.left),n=Math.floor(t.top);else for(;e;)i+=e.offsetLeft,n+=e.offsetTop,e=e.offsetParent;return{x:i,y:n}},t.createVLogInfoPanel=function(e,t){var i,n,r,o=window.document;if(f.visualDebugLogIsEnabled&&(i=o.getElementById(e),i&&t.length&&t[0][0]&&t[0][1]&&(r=e+"-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: "+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(){n.style.display="none"},n.appendChild(s),n.appendChild(o.createElement("br"));for(var d="Slot: "+e+" | ",u=0;ua&&(a=0),n="Bid: "+t.bidder+(t.s2s?"(s2s)":"")+": "+s.getNetEcpm()+"("+s.getGrossEcpm()+"): "+a+"ms",s.getPostTimeoutStatus()&&(n+=": POST-TIMEOUT");break;case"win-bid":var s=t.bidDetails;n="Winning Bid: "+s.getAdapterID()+": "+s.getNetEcpm();break;case"win-bid-fail":n="There are no bids from PWT";break;case"hr":n="----------------------";break;case"disp":n="Displaying creative from "+t.adapter}i.appendChild(r.createTextNode(n)),i.appendChild(r.createElement("br"))}}},t.getExternalBidderStatus=function(e){var t=!0;return f.forEachOnArray(e,(function(e,i){t=window.OWT.externalBidderStatuses[i]?t&&window.OWT.externalBidderStatuses[i].status:t})),t},t.resetExternalBidderStatus=function(e){f.forEachOnArray(e,(function(e,t){f.log("resetExternalBidderStatus: "+t),window.OWT.externalBidderStatuses[t]=void 0}))}}),(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,i){function n(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.dealID="",this.dealChannel="",this.isWinningBid=!1,this.status=0}var r=i(4),o=i(2),a=i(1);n.prototype.getAdapterID=function(){return this.adapterID},n.prototype.getBidID=function(){return this.bidID},n.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)},n.prototype.getGrossEcpm=function(){return this.grossEcpm},n.prototype.getNetEcpm=function(){return this.netEcpm},n.prototype.setDefaultBidStatus=function(e){return this.defaultBid=e,this},n.prototype.getDefaultBidStatus=function(){return this.defaultBid},n.prototype.setAdHtml=function(e){return this.adHtml=e,this},n.prototype.getAdHtml=function(){return this.adHtml},n.prototype.setAdUrl=function(e){return this.adUrl=e,this},n.prototype.getAdUrl=function(){return this.adUrl},n.prototype.setHeight=function(e){return this.height=e,this},n.prototype.getHeight=function(){return this.height},n.prototype.setWidth=function(e){return this.width=e,this},n.prototype.getWidth=function(){return this.width},n.prototype.getKGPV=function(){return this.kgpv},n.prototype.setKeyValuePair=function(e,t){return this.keyValuePairs[e.substr(0,20)]=t,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(e){return this.receivedTime=e,this},n.prototype.getReceivedTime=function(){return this.receivedTime},n.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},n.prototype.getDealID=function(){return this.dealID},n.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},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(e){return this.status=e,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)},e.exports.Bid=n,t.createBid=function(e,t){return new n(e,t)}}),(function(e,t,i){function n(){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=i(5),o=i(2),a=i(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 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,i={audienceNetwork:1};return a.isOwnProperty(i,e)?i[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=n,t.initConfig=function(){s.addPrebidAdapter();var e={};a.forEachOnObject(o.CONFIG,(function(t,i){e[i]=""})),a.forEachOnObject(r.adapters,(function(t,i){var n={};a.forEachOnObject(i,(function(t,i){a.isOwnProperty(e,t)||(n[t]=i)})),a.forEachOnObject(i[o.CONFIG.KEY_LOOKUP_MAP],(function(e,t){a.forEachOnObject(n,(function(e,i){t[e]=i}))}))}))}}),(function(e,t){t.pwt={t:"1500",pid:"314",gcv:"60",pdvid:"31",pubid:"156349",dataURL:"t.pubmatic.com/wl?",winURL:"t.pubmatic.com/wt?",metaDataPattern:0,sendAllBids:"0",adserver:"DFP",gdpr:"1",cmp:"iab",gdprTimeout:"500",awc:"1",platform:"display"},t.adapters={appnexus:{rev_share:"0.0",timeout:"1500",throttle:"100",pt:0,serverSideEnabled:"1",amp:0,video:0,kgp:"_AU_@_W_x_H_"},pubmatic:{publisherId:"156349",rev_share:"0.0",timeout:"1500",throttle:"100",pt:0,serverSideEnabled:"0",amp:0,video:0,kgp:"_AU_@_W_x_H_:_AUI_",sk:"true"},brealtime:{rev_share:"0.0",timeout:"1500",throttle:"100",kgp:"_AU_@_W_x_H_",klm:{"/11446729/Desktop_300250_1@300x250":{placementId:"12849789"},"/11446729/Desktop_300250_1@300x600":{placementId:"12849789"},"/11446729/Desktop_300250_1@336x280":{placementId:"12849789"},"/11446729/Desktop_300250_2@300x250":{placementId:"12849798"},"/11446729/Desktop_300250_2@300x600":{placementId:"12849799"},"/11446729/Desktop_300250_3@300x250":{placementId:"12849902"},"/11446729/Desktop_300x600_Floating@160x600":{placementId:"12925353"},"/11446729/Desktop_300x600_Floating@300x600":{placementId:"12925353"},"/11446729/Desktop_72890_1@728x90":{placementId:"12849903"},"/11446729/Desktop_72890_1@970x90":{placementId:"12849904"},"/11446729/Desktop_72890_2@728x90":{placementId:"12849905"},"/11446729/Desktop_72890_3@728x90":{placementId:"13943653"}}},aol:{network:"10252.1",server:"adserver.adtechus.com",rev_share:"0.0",timeout:"1500",throttle:"100",kgp:"_AU_@_W_x_H_",klm:{"/11446729/Desktop_300250_1@300x250":{placement:"4818826"},"/11446729/Desktop_300250_2@300x250":{placement:"4818825"},"/11446729/Desktop_300250_3@300x250":{placement:"4818827"},"/11446729/Desktop_300250_4@300x250":{placement:"4818828"},"/11446729/Desktop_300250_5@300x250":{placement:"4818832"},"/11446729/Desktop_300x250_01_New@300x250":{placement:"4818833"},"/11446729/Desktop_300x600_Floating@300x600":{placement:"4818829"},"/11446729/Desktop_300x600_Floating_160x600@160x600":{placement:"4818834"},"/11446729/Desktop_72890_1@728x90":{placement:"4818831"},"/11446729/Desktop_72890_1_970x90@970x90":{placement:"4818830"},"/11446729/Desktop_72890_2@728x90":{placement:"4818835"},"/11446729/Desktop_72890_3@728x90":{placement:"4947869"}}},rubicon:{accountId:"15140",rev_share:"0.0",timeout:"1500",throttle:"100",pt:"0",serverSideEnabled:"0",amp:0,video:0,kgp:"_AU_@_W_x_H_",klm:{"/11446729/Desktop_300250_1@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300250_1@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300250_2@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300250_2@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300250_3@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300250_3@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300250_3_300x600@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300250_4@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300250_4@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300250_4_300x250@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300250_4_300x600@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300250_5@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300250_5@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300250_5_300x250@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300250_5_300x600@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300250_HP@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300250_HP_300x250@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300x250_01_New@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300x250_01_New_300x250@300x250":{zoneId:"903512",siteId:"91830",position:"15",floor:"0"},"/11446729/Desktop_300x600_Floating@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_300x600_Floating_300x600@300x600":{zoneId:"903512",siteId:"91830",position:"10",floor:"0"},"/11446729/Desktop_72890_1@728x90":{zoneId:"903512",siteId:"91830",position:"2",floor:"0"},"/11446729/Desktop_72890_2@728x90":{zoneId:"903512",siteId:"91830",position:"2",floor:"0"}}},indexExchange:{rev_share:"0.0",timeout:"1500",throttle:"100",pt:0,serverSideEnabled:"0",kgp:"_AU_@_W_x_H_",klm:{"/11446729/Desktop_300250_1@300x250":{siteID:"218977",id:"1"},"/11446729/Desktop_300250_1@300x600":{siteID:"224838",id:"2"},"/11446729/Desktop_300250_3@300x250":{siteID:"218977",id:"1"},"/11446729/Desktop_72890_1@728x90":{siteID:"224839",id:"3"},"/11446729/Desktop_72890_1@970x90":{siteID:"224839",id:"3"},"/11446729/Desktop_72890_2@728x90":{siteID:"224839",id:"3"},"/11446729/Desktop_72890_3@728x90":{siteID:"300952",id:"3"}}},pubmaticServer:{rev_share:"0",throttle:"100",publisherId:"156349",kgp:"_DIV_"}}}),(function(e,t,i){function n(e){c.isOwnProperty(window.PWT.bidMap,e)||(window.PWT.bidMap[e]=f.createBMEntry(e))}function r(e,t,i,n){window.PWT.bidMap[e].setNewBid(t,i),window.PWT.bidIdMap[i.getBidID()]={s:e,a:t},0===i.getDefaultBidStatus()&&c.vLogInfo(e,{type:"bid",bidder:t+(0!==l.getBidPassThroughStatus(t)?"(Passthrough)":""),bidDetails:i,latency:n,s2s:l.isServerSideAdapter(t)})}function o(e,t,i){var n="",r=0,o=0,s=p.METADATA_MACROS,d="g";c.forEachOnObject(t.adapters,(function(t,i){""!=i.getLastBidID()&&("pubmaticServer"!==t&&o++,c.forEachOnObject(i.bids,(function(t,i){1!=i.getDefaultBidStatus()&&1!=i.getPostTimeoutStatus()&&(r++,n+=a(e,i))})))})),0==n.length&&(n=e),n=n.replace(new RegExp(s.BID_COUNT,d),r),n=n.replace(new RegExp(s.PARTNER_COUNT,d),o),i[p.WRAPPER_TARGETING_KEYS.META_DATA]=encodeURIComponent(n)}function a(e,t){var i=p.METADATA_MACROS,n="g";return e.replace(new RegExp(i.PARTNER,n),t.getAdapterID()).replace(new RegExp(i.WIDTH,n),t.getWidth()).replace(new RegExp(i.HEIGHT,n),t.getHeight()).replace(new RegExp(i.GROSS_ECPM,n),t.getGrossEcpm()).replace(new RegExp(i.NET_ECPM,n),t.getNetEcpm())}function s(e){var t=null,i={};return c.forEachOnObject(e.adapters,(function(e,n){var r=I.auctionBidsCallBack(e,n,i,t);t=r.winningBid,i=r.keyValuePairs})),null!==l.getMataDataPattern()&&o(l.getMataDataPattern(),e,i),{wb:t,kvp:i}}function d(e,t,i,n){return""!=t.getLastBidID()?(c.forEachOnObject(t.bids,(function(t,r){return r.getPostTimeoutStatus()===!0?{winningBid:n,keyValuePairs:i}:(1!==r.getDefaultBidStatus()&&1==l.getSendAllBidsStatus()&&r.setSendAllBidsKeys(),0===l.getBidPassThroughStatus(e)&&c.copyKeyValueObject(i,r.getKeyValuePairs()),0!==l.getBidPassThroughStatus(e)?(c.copyKeyValueObject(i,r.getKeyValuePairs()),{winningBid:n,keyValuePairs:i}):(null==n?n=r:n.getNetEcpm()0?(t.setStatus(1),t.setWinningBidStatus(),c.vLogInfo(e,{type:"win-bid",bidDetails:t})):c.vLogInfo(e,{type:"win-bid-fail"})}return{wb:t,kvp:i}},t.getBidById=function(e){if(!c.isOwnProperty(window.PWT.bidIdMap,e))return c.log(p.MESSAGES.M25+e),null;var t=window.PWT.bidIdMap[e].s,i=window.PWT.bidIdMap[e].a;if(c.isOwnProperty(window.PWT.bidMap,t)){c.log("BidID: "+e+", DivID: "+t+p.MESSAGES.M19+i);var n=window.PWT.bidMap[t].getBid(i,e);return null==n?null:{bid:n,slotid:t}}return c.log(p.MESSAGES.M25+e),null},t.displayCreative=function(e,t){var i=I.getBidById(t);if(i){var n=i.bid,r=i.slotid;c.displayCreative(e,n),c.vLogInfo(r,{type:"disp",adapter:n.getAdapterID()}),I.executeMonetizationPixel(r,n)}},t.executeAnalyticsPixel=function(){var e={s:[]},t=l.getPublisherId(),i=g.getUserConsentDataFromLS(),n="",r=l.getAnalyticsPixelURL(),o={};r&&(r=c.metaInfo.protocol+r+"pubid="+t,e[p.CONFIG.PUBLISHER_ID]=l.getPublisherId(),e[p.LOGGER_PIXEL_PARAMS.TIMEOUT]=""+l.getTimeout(),e[p.LOGGER_PIXEL_PARAMS.PAGE_URL]=window.decodeURIComponent(c.metaInfo.pageURL),e[p.LOGGER_PIXEL_PARAMS.TIMESTAMP]=c.getCurrentTimestamp(),e[p.CONFIG.PROFILE_ID]=l.getProfileID(),e[p.CONFIG.PROFILE_VERSION_ID]=l.getProfileDisplayVersionID(),l.getGdpr()&&(n=i&&i.c?encodeURIComponent(i.c):"",e[p.CONFIG.GDPR_CONSENT]=i&&i.g,e[p.CONFIG.CONSENT_STRING]=n,r+="&gdEn="+(l.getGdpr()?1:0)),c.forEachOnObject(window.PWT.bidMap,(function(e,t){I.analyticalPixelCallback(e,t,o)})),c.forEachOnObject(o,(function(t,i){i.length>0&&(e.s=i,e[p.COMMON.IMPRESSION_ID]=window.encodeURIComponent(t),(new window.Image).src=r+"&json="+window.encodeURIComponent(JSON.stringify(e)))})))},t.executeMonetizationPixel=function(e,t){var i=l.getMonetizationPixelURL(),n=l.getPublisherId();i&&(i+="pubid="+n,i+="&purl="+window.encodeURIComponent(c.metaInfo.pageURL),i+="&tst="+c.getCurrentTimestamp(),i+="&iid="+window.encodeURIComponent(window.PWT.bidMap[e].getImpressionID()),i+="&bidid="+window.encodeURIComponent(t.getBidID()),i+="&pid="+window.encodeURIComponent(l.getProfileID()),i+="&pdvid="+window.encodeURIComponent(l.getProfileDisplayVersionID()),i+="&slot="+window.encodeURIComponent(e),i+="&pn="+window.encodeURIComponent(t.getAdapterID()),i+="&en="+window.encodeURIComponent(t.getNetEcpm()),i+="&eg="+window.encodeURIComponent(t.getGrossEcpm()),i+="&kgpv="+window.encodeURIComponent(t.getKGPV()),I.setImageSrcToPixelURL(i))},t.analyticalPixelCallback=u,t.setImageSrcToPixelURL=function(e){var t=new window.Image;t.src=c.metaInfo.protocol+e},t.getAllPartnersBidStatuses=function(e,t){var i=!0;return c.forEachOnArray(t,(function(t,n){e[n]&&c.forEachOnObject(e[n].adapters,(function(e,t){c.forEachOnObject(t.bids,(function(e,t){i=i&&0===t.getDefaultBidStatus()}))}))})),i}}),(function(e,t){function i(e,t){return toString.call(e)==="[object "+t+"]"}var n="OpenWrap",r=909090,o=function(e){return i(e,"Function")},a=(function(){try{return window.localStorage&&o(window.localStorage.getItem)&&o(window.localStorage.setItem)}catch(e){return!1}})(),s=function(e,t,i,r){var o;if(a){try{o=window.localStorage.getItem(n)}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]=i,"c"==t&&(o[e].g=r?1:0));try{window.localStorage.setItem(n,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(i,"c",t.consentData,t.gdprApplies):"string"==typeof t&&s(i,"c",t)}}function t(){window.__cmp("getConsentData","vendorConsents",(function(e){e&&e.consentData?s(i,"c",e.consentData,e.gdprApplies):"string"==typeof e&&s(i,"c",e)}))}var i=r,n=0,o={__cmp:{callId:"iframe:"+ ++n,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 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(e)){var s=i[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,i){function n(e){this.name=e,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(e,t){o.isOwnProperty(this.adapters,e)||(this.adapters[e]=new a(e)),this.adapters[e].setNewBid(t)},n.prototype.getBid=function(e,t){return o.isOwnProperty(this.adapters,e)?this.adapters[e].getBid(t):void 0},n.prototype.getName=function(){return this.name},n.prototype.getCreationTime=function(){return this.creationTime},n.prototype.setImpressionID=function(e){return this.impressionID=e,this},n.prototype.getImpressionID=function(){return this.impressionID},n.prototype.setSizes=function(e){return this.sizes=e,this},n.prototype.getSizes=function(){return this.sizes},n.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},n.prototype.getLastBidIDForAdapter=function(e){return o.isOwnProperty(this.adapters,e)?this.adapters[e].getLastBidID():""},e.exports.BMEntry=n,t.createBMEntry=function(e){return new n(e)}}),(function(e,t,i){function n(e){this.adapterID=e,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(e){return r.isOwnProperty(this.bids,e)?this.bids[e]:null},n.prototype.setNewBid=function(e){delete this.bids[this.lastBidID];var t=e.getBidID();this.bids[t]=e,this.lastBidID=t},e.exports.AdapterEntry=n}),(function(e,t,i){function n(e){q.isObject(e)&&(at=e)}function r(){return at}function o(e){var t=0;try{var i=e.getSlotId().getId().split("_");t=parseInt(i[i.length-1])}catch(n){}return t}function a(e,t){if(!q.isOwnProperty(t,e))return!1;var i=t[e],n=q.getScreenWidth(st.getWindowReference()),r=q.getScreenHeight(st.getWindowReference());if(q.log(e+": 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 s=i[o][0][0],d=i[o][0][1];if(n>=s&&r>=d){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(e+": Unsupported mapping template."),q.log(i)}return i[o][1]}}return!1}function s(e,t){var i=st.getSizeFromSizeMapping(e,st.slotSizeMapping);if(i!==!1)return q.log(e+": responsiveSizeMapping applied: "),q.log(i),i;var n=[];return q.isFunction(t.getSizes)&&q.forEachOnArray(t.getSizes(),(function(t,i){q.isFunction(i.getWidth)&&q.isFunction(i.getHeight)?n.push([i.getWidth(),i.getHeight()]):(q.log(e+", size object does not have getWidth and getHeight method. Ignoring: "),q.log(i))})),n}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 u(e,t,i){if(q.isOwnProperty(st.slotsMap,e))i||st.slotsMap[e].setSizes(st.getAdSlotSizesArray(e,t));else{var n=Z.createSlot(e);n.setDivID(e),n.setPubAdServerObject(t),n.setAdUnitID(t.getAdUnitPath()),n.setAdUnitIndex(st.getAdUnitIndex(t)),n.setSizes(st.getAdSlotSizesArray(e,t)),n.setStatus(Y.SLOT_STATUS.CREATED),tt&&q.isObject(JSON)&&q.isFunction(JSON.stringify)&&q.forEachOnArray(t.getTargetingKeys(),(function(e,i){n.setKeyValue(i,t.getTargeting(i))})),st.slotsMap[e]=n,q.createVLogInfoPanel(e,n.getSizes())}}function l(e){if(q.isObject(e)&&q.isFunction(e.getSlotId)){var t=e.getSlotId();if(t&&q.isFunction(t.getDomId))return t.getDomId()}return""}function p(e,t,i){q.log("Generating slotsMap"),q.forEachOnArray(e,(function(e,n){var r=st.generateSlotName(n);st.storeInSlotsMap(r,n,i),i&&q.isOwnProperty(st.slotsMap,r)&&st.setDisplayFunctionCalledIfRequired(st.slotsMap[r],t)})),q.log(st.slotsMap)}function c(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(i,n){q.isOwnProperty(e,n.getStatus())&&t.push(i)})),t}function I(e){var t,i={};q.isOwnProperty(st.slotsMap,e)&&(t=st.slotsMap[e].getPubAdServerObject(),q.forEachOnArray(t.getTargetingKeys(),(function(e,n){i[n]=t.getTargeting(n)})),t.clearTargeting(),q.forEachOnObject(i,(function(e,i){q.isOwnProperty(st.wrapperTargetingKeys,e)||t.setTargeting(e,i)})))}function h(e,t,i){q.forEachOnArray(e,(function(e,n){if(q.isOwnProperty(st.slotsMap,n)){var r=st.slotsMap[n];r.setStatus(Y.SLOT_STATUS.PARTNERS_CALLED),i&&(st.removeDMTargetingFromSlot(n),r.setRefreshFunctionCalled(!0),r.setArguments(t))}}))}function m(e){var t=[];return q.forEachOnArray(e,(function(e,i){t.push(st.slotsMap[i])})),t}function E(e){var t={};return q.forEachOnObject(e,(function(e,i){t[i]=""})),t}function w(e){var t=J.getBid(e),i=t.wb||null,n=t.kvp||null,r=st.slotsMap[e].getPubAdServerObject(),o=Y.IGNORE_PREBID_KEYS;if(q.log("DIV: "+e+" winningBid: "),q.log(i),i&&i.getNetEcpm()>0){st.slotsMap[e].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,V.getPublisherId()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PROFILE_ID,V.getProfileID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.PROFILE_VERSION_ID,V.getProfileDisplayVersionID()),r.setTargeting(Y.WRAPPER_TARGETING_KEYS.BID_SIZE,i.width+"x"+i.height)}q.forEachOnObject(n,(function(e,t){q.isOwnProperty(o,e)||(r.setTargeting(e,t),st.defineWrapperTargetingKey(e))}))}function S(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 D(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 i=arguments,n=i[0]?i[0]:null;return null!=n&&(q.isOwnProperty(ot,n)||(ot[n]=[]),ot[n]=ot[n].concat(i[1])),t.apply(e,arguments)}:(q.log("setTargeting: originalFunction is not a function"),null)}function T(e,t){return q.isObject(e)&&q.isFunction(t)?function(){var i=arguments[0]||window.googletag.pubads().getSlots();return q.forEachOnArray(i,(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,i,n){q.log(e),q.log(n),st.updateStatusAfterRendering(n[0],!1),i.apply(t,n)}function O(e,t){var i=t.getStatus();i!=Y.SLOT_STATUS.DISPLAYED&&i!=Y.SLOT_STATUS.TARGETING_ADDED&&st.findWinningBidAndApplyTargeting(e)}function P(e,t,i){st.getStatusOfSlotForDivId(i[0])!=Y.SLOT_STATUS.DISPLAYED?st.updateStatusAndCallOriginalFunction_Display("Calling original display function after timeout with arguments, ",e,t,i):q.log("AdSlot already rendered")}function b(e,t,i){q.getExternalBidderStatus(t)&&J.getAllPartnersBidStatuses(window.PWT.bidMap,t)?(q.resetExternalBidderStatus(t),i()):e>0&&window.setTimeout((function(){st.executeDisplay(e-10,t,i)}),10)}function v(e,t,i,n){switch(e){case Y.SLOT_STATUS.CREATED:case Y.SLOT_STATUS.PARTNERS_CALLED:var r=Object.keys(st.slotsMap);"object"==typeof window.OWT.externalBidderStatuses[n[0]]&&window.OWT.externalBidderStatuses[n[0]]&&st.executeDisplay(V.getTimeout(),r,(function(){q.forEachOnObject(st.slotsMap,(function(e,t){st.findWinningBidIfRequired_Display(e,t)})),st.processDisplayCalledSlot(t,i,n)})),setTimeout((function(){q.log("PostTimeout.. back in display function"),q.forEachOnObject(st.slotsMap,(function(e,t){st.findWinningBidIfRequired_Display(e,t)})),st.processDisplayCalledSlot(t,i,n)}),V.getTimeout());break;case Y.SLOT_STATUS.TARGETING_ADDED:st.updateStatusAndCallOriginalFunction_Display("As DM processing is already done, Calling original display function with arguments",t,i,n);break;case Y.SLOT_STATUS.DISPLAYED:st.updateStatusAndCallOriginalFunction_Display("As slot is already displayed, Calling original display function with arguments",t,i,n)}}function R(e,t,i){if(e.length>0){st.updateStatusOfQualifyingSlotsBeforeCallingAdapters(e,t,i);var n=st.arrayOfSelectedSlots(e);X.callAdapters(n)}}function M(e,t){return Q.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(c(arguments[0]),e,t,arguments);var i={};i[Y.SLOT_STATUS.CREATED]="",st.forQualifyingSlotNamesCallAdapters(f(i),arguments,!1);var n=arguments[0];setTimeout((function(){q.realignVLogInfoPanel(n),J.executeAnalyticsPixel()}),2e3+V.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,i){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):i}function x(e,t){q.createVLogInfoPanel(e,st.slotsMap[t].getSizes()),q.realignVLogInfoPanel(e),J.executeAnalyticsPixel()}function N(e,t,i,n){q.log("Executing post timeout events, arguments: "),q.log(n);var r=!1;q.forEachOnArray(e,(function(e,t){var i=st.slotsMap[t].getDivID();r=st.findWinningBidIfRequired_Refresh(t,i,r),window.setTimeout((function(){st.postRederingChores(i,t)}),2e3)})),this.callOriginalRefeshFunction(r,t,i,n)}function F(e,t,i,n){e===!0?(q.log("Calling original refresh function post timeout"),i.apply(t,n)):q.log("AdSlot already rendered")}function L(e,t){var i=[],n=[];return n=0==e.length||null==e[0]?t.getSlots():e[0],q.forEachOnArray(n,(function(e,t){var n=st.generateSlotName(t);n.length>0&&(i=i.concat(n))})),i}function G(e,t){return Q.getUserConsentDataFromCMP(),q.isObject(e)&&q.isFunction(t)?function(){q.log("In Refresh function"),st.updateSlotsMapFromGoogleSlots(e.getSlots(),arguments,!1);var i=L(arguments,e);st.forQualifyingSlotNamesCallAdapters(i,arguments,!0),q.log("Intiating Call to original refresh function with Timeout: "+V.getTimeout()+" ms");var n=arguments;"object"==typeof window.OWT.externalBidderStatuses[i[0]]&&window.OWT.externalBidderStatuses[i[0]]&&st.executeDisplay(V.getTimeout(),i,(function(){st.postTimeoutRefreshExecution(i,e,t,n)})),setTimeout((function(){st.postTimeoutRefreshExecution(i,e,t,n)}),V.getTimeout())}:(q.log("refresh: originalFunction is not a function"),null)}function U(e,t){return q.isObject(e)&&q.isFunction(t)?function(){return nt[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 k(e){if(q.isObject(e)&&q.isObject(e.googletag)&&q.isFunction(e.googletag.pubads)){var t=e.googletag,i=t.pubads();return q.isObject(i)?(st.addHookOnSlotDefineSizeMapping(t),q.addHookOnFunction(i,!1,"disableInitialLoad",st.newDisableInitialLoadFunction),q.addHookOnFunction(i,!1,"enableSingleRequest",st.newEnableSingleRequestFunction),st.newAddHookOnGoogletagDisplay(t),q.addHookOnFunction(i,!1,"refresh",st.newRefreshFuncton),q.addHookOnFunction(i,!1,"setTargeting",st.newSetTargetingFunction),q.addHookOnFunction(t,!1,"destroySlots",st.newDestroySlotsFunction),!0):!1}return!1}function H(e){return q.isObject(e)?(e.googletag=e.googletag||{},e.googletag.cmd=e.googletag.cmd||[],!0):!1}function z(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 j(e){return q.isObject(e)&&q.isObject(e.PWT)&&q.isFunction(e.PWT.jsLoaded)?(e.PWT.jsLoaded(),!0):!1}function K(e){e.PWT.safeFrameMessageListenerAdded||(q.addMessageEventListenerForSafeFrame(e),e.PWT.safeFrameMessageListenerAdded=!0)}var V=i(4),Y=i(2),q=i(1),J=i(6),Q=i(7),X=i(11),Z=i(13),$=!1;t.displayHookIsAdded=$;var et=!1,tt=!0,it={};t.wrapperTargetingKeys=it;var nt={};t.slotSizeMapping=nt;var rt={};t.slotsMap=rt;var ot={},at=null,st=this;t.setWindowReference=n,t.getWindowReference=r,t.getAdUnitIndex=o,t.getSizeFromSizeMapping=a,t.getAdSlotSizesArray=s,t.setDisplayFunctionCalledIfRequired=d,t.storeInSlotsMap=u,t.generateSlotName=l,t.updateSlotsMapFromGoogleSlots=p,t.getStatusOfSlotForDivId=c,t.updateStatusAfterRendering=g,t.getSlotNamesByStatus=f,t.removeDMTargetingFromSlot=I,t.updateStatusOfQualifyingSlotsBeforeCallingAdapters=h,t.arrayOfSelectedSlots=m,t.defineWrapperTargetingKeys=E,t.findWinningBidAndApplyTargeting=w,t.defineWrapperTargetingKey=S,t.newDisableInitialLoadFunction=_,t.newEnableSingleRequestFunction=D,t.newSetTargetingFunction=A,t.newDestroySlotsFunction=T,t.updateStatusAndCallOriginalFunction_Display=y,t.findWinningBidIfRequired_Display=O,t.processDisplayCalledSlot=P,t.executeDisplay=b,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=k,t.defineGPTVariables=H,t.addHooksIfPossible=z,t.callJsLoadedIfRequired=j,t.initSafeFrameListener=K,t.init=function(e){return V.initConfig(),q.isObject(e)?(st.setWindowReference(e),st.initSafeFrameListener(e),st.wrapperTargetingKeys=st.defineWrapperTargetingKeys(Y.WRAPPER_TARGETING_KEYS),st.defineGPTVariables(e),X.registerAdapters(),st.addHooksIfPossible(e),st.callJsLoadedIfRequired(e),!0):!1}}),(function(e,t,i){function n(){return Math.floor(100*Math.random())}function r(e,t,i){c.forEachOnObject(e,(function(e,n){h.setInitTimeForSlotsForAdapter(t,e),n.fB(t,i)}))}function o(e,t){c.forEachOnArray(e,(function(e,i){var n=i.getDivID();g.resetBid(n,t),g.setSizes(n,c.generateSlotNamesFromPattern(i,"_W_x_H_"))}))}function a(e,t){return!(e>=l.getAdapterThrottle(t))}function s(e,t){c.forEachOnObject(e,(function(e,i){g.setCallInitTime(i.getDivID(),t)}))}function d(e){if(e){var t=e.ID();c.isFunction(e.fB)?h.registeredAdapters[t]=e:c.log(t+p.MESSAGES.M3)}else c.log(p.MESSAGES.M3),c.log(e)}function u(){h.registerAdapter(f.register())}var l=i(4),p=i(2),c=i(1),g=i(6),f=i(12),I={};t.registeredAdapters=I;var h=this;t.callAdapters=function(e){var t=c.generateUUID();h.resetSlots(e,t),h.callAdapter(I,e,t)},t.getRandomNumberBelow100=n,t.callAdapter=r,t.resetSlots=o,t.throttleAdapter=a,t.setInitTimeForSlotsForAdapter=s,t.registerAdapter=d,t.registerAdapters=u}),(function(e,t,i){function n(e,t){var i=f.createBid(e.bidderCode,t),n=parseInt(e.pubmaticServerErrorCode);return i.setGrossEcpm(e.cpm),i.setDealID(e.dealId),i.setDealChannel(e.dealChannel),i.setAdHtml(e.ad||""),i.setAdUrl(e.adUrl||""),i.setWidth(e.width),i.setHeight(e.height),i.setReceivedTime(e.responseTimestamp),1===n||2===n?(i.setDefaultBidStatus(0),i.setWidth(0),i.setHeight(0)):3===n||5===n?(i.setDefaultBidStatus(1),i.setPostTimeoutStatus()):n&&i.setDefaultBidStatus(1),I.forEachOnObject(e.adserverTargeting,(function(e,t){"hb_format"!==e&&"hb_source"!==e&&i.setKeyValuePair(e,t)})),i}function r(e){var t=e.adUnitCode||"";if(I.isOwnProperty(_.kgpvMap,t)){if("pubmaticServer"===e.bidderCode&&(e.bidderCode=e.originalBidder),e.bidderCode&&c.isServerSideAdapter(e.bidderCode)){var i=_.kgpvMap[t].divID,n=_.getPBCodeWithWidthAndHeight(i,e.bidderCode,e.width,e.height),r=_.getPBCodeWithoutWidthAndHeight(i,e.bidderCode);if(I.isOwnProperty(_.kgpvMap,n))t=n;else{if(!I.isOwnProperty(_.kgpvMap,r))return I.log("Failed to find kgpv details for S2S-adapter:"+e.bidderCode),void 0;t=r}}e.bidderCode&&h.setBidFromBidder(_.kgpvMap[t].divID,_.transformPBBidToOWBid(e,_.kgpvMap[t].kgpv))}else I.log("Failed to find pbBid.adUnitCode in kgpvMap, pbBid.adUnitCode:"+e.adUnitCode)}function o(e){for(var t in e)if(I.isOwnProperty(e,t)&&I.isOwnProperty(_.kgpvMap,t))for(var i=e[t],r=i.bids||[],o=0;o0&&window[w])try{if(I.isFunction(window[w].setConfig)){var a={debug:I.isDebugLogEnabled(),bidderSequence:"random",userSync:{iframeEnabled:!0,pixelEnabled:!0,enabledBidders:(function(){var e=[];return c.forEachAdapter((function(t){e.push(t)})),e})(),syncDelay:2e3},disableAjaxTimeout:c.getDisableAjaxTimeout()};c.getGdpr()&&(a.consentManagement={cmpApi:c.getCmpApi(),timeout:c.getGdprTimeout(),allowAuctionWithoutConsent:c.getAwc()}),window[w].setConfig(a)}if(!I.isFunction(window[w].requestBids))return I.log("PreBid js requestBids function is not available"),void 0;window[w].requestBids({adUnits:r,bidsBackHandler:function(e){I.log("In PreBid bidsBackHandler with bidResponses: "),I.log(e)},timeout:c.getTimeout()-50})}catch(s){I.log("Error occured in calling PreBid."),I.log(s)}}function p(){return _.parentAdapterID}var c=i(4),g=i(2),f=i(3),I=i(1),h=i(6),m=i(11),E=(i(5),g.COMMON.PARENT_ADAPTER_PREBID),w="pbjs";t.parentAdapterID=E;var S={};t.kgpvMap=S;var _=this;t.transformPBBidToOWBid=n,t.pbBidStreamHandler=r,t.handleBidResponses=o,t.getPBCodeWithWidthAndHeight=a,t.getPBCodeWithoutWidthAndHeight=s,t.generatedKeyCallback=d,t.generatePbConf=u,t.fetchBids=l,t.getParenteAdapterID=p,t.register=function(){return{fB:_.fetchBids,ID:_.getParenteAdapterID}}}),(function(e,t,i){function n(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=i(2);n.prototype.getName=function(){return this.name},n.prototype.setStatus=function(e){return this.status=e,this},n.prototype.getStatus=function(){return this.status},n.prototype.setDivID=function(e){return this.divID=e,this},n.prototype.getDivID=function(){return this.divID},n.prototype.setAdUnitID=function(e){return this.adUnitID=e,this},n.prototype.getAdUnitID=function(){return this.adUnitID},n.prototype.setAdUnitIndex=function(e){return this.adUnitIndex=e,this},n.prototype.getAdUnitIndex=function(){return this.adUnitIndex},n.prototype.setSizes=function(e){return this.sizes=e,this},n.prototype.getSizes=function(){return this.sizes},n.prototype.setKeyValue=function(e,t){return this.keyValues[e]=t,this},n.prototype.setKeyValues=function(e){return this.keyValues=e,this},n.prototype.getkeyValues=function(){return this.keyValues},n.prototype.setArguments=function(e){return this.arguments=e,this},n.prototype.getArguments=function(){return this.arguments},n.prototype.setPubAdServerObject=function(e){return this.pubAdServerObject=e,this},n.prototype.getPubAdServerObject=function(){return this.pubAdServerObject},n.prototype.setDisplayFunctionCalled=function(e){return this.displayFunctionCalled=e,this},n.prototype.isDisplayFunctionCalled=function(){return this.displayFunctionCalled},n.prototype.setRefreshFunctionCalled=function(e){return this.refreshFunctionCalled=e,this},n.prototype.isRefreshFunctionCalled=function(){return this.refreshFunctionCalled},n.prototype.updateStatusAfterRendering=function(e){this.status=r.SLOT_STATUS.DISPLAYED,this.arguments=[],e?this.refreshFunctionCalled=!1:this.displayFunctionCalled=!1},e.exports.Slot=n,t.createSlot=function(e){return new n(e)}})]);