function pwtCreatePrebidNamespace(preBidNameSpace) { window[preBidNameSpace] = window[preBidNameSpace] || {}; window[preBidNameSpace].que = window[preBidNameSpace].que || [];/* prebid.js v0.26.0-preUpdated : 2017-11-09 */!(function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}var t={};return n.m=e,n.c=t,n.p="",n(0)})([(function(e,n,t){"use strict";function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e){e.forEach((function(e){if(c(e.called)===C)try{e.call(),e.called=!0}catch(n){S.logError("Error processing command :","prebid.js",n)}}))}function o(e){var n=window[preBidNameSpace]._bidsRequested.map((function(e){return e.bids.map((function(e){return e.placementCode}))})).reduce(p.flatten).filter(p.uniques);return S.contains(n,e)?!0:(S.logError('The "'+e+'" placement is not defined.'),void 0)}function a(){window[preBidNameSpace]._bidsRequested=[],window[preBidNameSpace]._bidsReceived=window[preBidNameSpace]._bidsReceived.filter((function(e){return!window[preBidNameSpace]._adUnitCodes.includes(e.adUnitCode)}))}function d(e,n,t){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=n,e.defaultView.frameElement.height=t)}var s=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0]?arguments[0]:{},n=e.bidsBackHandler,t=e.timeout,r=e.adUnits,i=e.adUnitCodes;E.emit("requestBids");var o=window[preBidNameSpace].cbTimeout=t||window[preBidNameSpace].bidderTimeout;r=r||window[preBidNameSpace].adUnits,S.logInfo("Invoking window[preBidNameSpace].requestBids",arguments),i&&i.length?r=r.filter((function(e){return i.includes(e.code)})):i=r&&r.map((function(e){return e.code}));var d=r.filter(l.videoAdUnit).filter(l.hasNonVideoBidder);if(d.forEach((function(e){S.logError("adUnit "+e.code+" has 'mediaType' set to 'video' but contains a bidder that doesn't support video. No Prebid demand requests will be triggered for this adUnit.");for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:window[preBidNameSpace].adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(a,[])})).reduce(a).filter(o)}function p(){return window.googletag&&n.isFn(window.googletag.pubads)&&n.isFn(window.googletag.pubads().getSlots)?!0:void 0}function l(e,n){return e.cpm===n.cpm?e.timeToRespond>n.timeToRespond?n:e:e.cpm0;){var t=Math.floor(Math.random()*n);n--;var r=e[n];e[n]=e[t],e[t]=r}return e}function m(e,n){return e.includes(n&&n.placementCode||n&&n.adUnitCode)}function g(e){return e.defaultView&&e.defaultView.frameElement&&"srcdoc"in e.defaultView.frameElement&&!/firefox/i.test(navigator.userAgent)}function v(e){return JSON.parse(JSON.stringify(e))}function w(){try{return window.self!==window.top}catch(e){return!0}}function b(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function y(e,n){return e?e.replace(/\$\{AUCTION_PRICE\}/g,n):void 0}function h(e){return window[preBidNameSpace]._bidsRequested.find((function(n){return n.bidderCode===e}))}function S(e,n){return window[preBidNameSpace]._bidsRequested.find((function(t){return t.bids.filter((function(t){return t.bidder===e&&t.placementCode===n})).length>0}))||{start:null,requestId:null}}function B(e){return e?'':""}Object.defineProperty(n,"__esModule",{value:!0});var N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};n.uniques=o,n.flatten=a,n.getBidRequest=d,n.getKeys=s,n.getValue=c,n.getBidderCodes=u,n.isGptPubadsDefined=p,n.getHighestCpm=l,n.shuffle=f,n.adUnitsFilter=m,n.isSrcdocSupported=g,n.cloneJson=v,n.inIframe=w,n.isSafariBrowser=b,n.replaceAuctionPrice=y,n.getBidderRequestAllAdUnits=h,n.getBidderRequest=S,n.createContentToExecuteExtScriptInFriendlyFrame=B;var I=t(3),E="object",T="string",A="number",_=!1,C="Array",O="String",U="Function",R="Number",P=Object.prototype.toString,k=null;try{k=console.info.bind(window.console)}catch(x){}n.replaceTokenInString=function(e,n,t){return this._each(n,(function(n,r){n=void 0===n?"":n;var i=t+r.toUpperCase()+t,o=new RegExp(i,"g");e=e.replace(o,n)})),e};var D=(function(){var e=0;return function(){return e++,e}})();n.getUniqueIdentifierStr=r,n.generateUUID=function F(e){return e?(e^16*Math.random()>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,F)},n.getBidIdParameter=function(e,n){return n&&n[e]?n[e]:""},n.tryAppendQueryString=function(e,n,t){return t?e+=n+"="+encodeURIComponent(t)+"&":e},n.parseQueryStringParameters=function(e){var n="";for(var t in e)e.hasOwnProperty(t)&&(n+=t+"="+encodeURIComponent(e[t])+"&");return n},n.transformAdServerTargetingObj=function(e){return e&&Object.getOwnPropertyNames(e).length>0?s(e).map((function(n){return n+"="+encodeURIComponent(c(e,n))})).join("&"):""},n.parseSizesInput=function(e){var n=[];if(("undefined"==typeof e?"undefined":N(e))===T){var t=e.split(","),r=/^(\d)+x(\d)+$/i;if(t)for(var i in t)G(t,i)&&t[i].match(r)&&n.push(t[i])}else if(("undefined"==typeof e?"undefined":N(e))===E){var o=e.length;if(o>0)if(2===o&&N(e[0])===A&&N(e[1])===A)n.push(this.parseGPTSingleSizeArray(e));else for(var a=0;o>a;a++)n.push(this.parseGPTSingleSizeArray(e[a]))}return n},n.parseGPTSingleSizeArray=function(e){return!this.isArray(e)||2!==e.length||isNaN(e[0])||isNaN(e[1])?void 0:e[0]+"x"+e[1]},n.getTopWindowLocation=function(){var e=void 0;try{e=window.top.location}catch(n){e=window.location}return e},n.getTopWindowUrl=function(){var e=void 0;try{e=this.getTopWindowLocation().href}catch(n){e=""}return e},n.logWarn=function(e){q()&&console.warn&&console.warn("WARNING: "+e)},n.logInfo=function(e,n){q()&&i()&&k&&(n&&0!==n.length||(n=""),k("INFO: "+e+(""===n?"":" : params : "),n))},n.logMessage=function(e){q()&&i()&&console.log("MESSAGE: "+e)},n.hasConsoleLogger=i;var j=(function(e){return e?window.console.error?"error":"log":""})(i()),q=function(){return window[preBidNameSpace].logging===!1&&_===!1&&(window[preBidNameSpace].logging="TRUE"===M(I.DEBUG_MODE).toUpperCase(),_=!0),!!window[preBidNameSpace].logging};n.debugTurnedOn=q,n.logError=function(e,n,t){var r=n||"ERROR";q()&&i()&&console[j](console,r+": "+e,t||"")},n.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=r(),e.height=0,e.width=0,e.border="0px",e.hspace="0",e.vspace="0",e.marginWidth="0",e.marginHeight="0",e.style.border="0",e.scrolling="no",e.frameBorder="0",e.src="about:blank",e.style.display="none",e};var M=function(e){var n="[\\?&]"+e+"=([^&#]*)",t=new RegExp(n),r=t.exec(window.location.search);return null===r?"":decodeURIComponent(r[1].replace(/\+/g," "))};n.hasValidBidRequest=function(e,n,t){function r(e,t){t===n[o]&&(i=!0)}for(var i=!1,o=0;o0);for(var n in e)if(hasOwnProperty.call(e,n))return!1;return!0},n.isEmptyStr=function(e){return this.isStr(e)&&(!e||0===e.length)},n._each=function(e,n){if(!this.isEmpty(e)){if(this.isFn(e.forEach))return e.forEach(n,this);var t=0,r=e.length;if(r>0)for(;r>t;t++)n(e[t],t,e);else for(t in e)hasOwnProperty.call(e,t)&&n.call(this,e[t],t)}},n.contains=function(e,n){if(this.isEmpty(e))return!1;if(this.isFn(e.indexOf))return-1!==e.indexOf(n);for(var t=e.length;t--;)if(e[t]===n)return!0;return!1},n.indexOf=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:void 0})(),n._map=function(e,n){if(this.isEmpty(e))return[];if(this.isFn(e.map))return e.map(n);var t=[];return this._each(e,(function(r,i){t.push(n(r,i,e))})),t};var G=function(e,n){return e.hasOwnProperty?e.hasOwnProperty(n):"undefined"!=typeof e[n]&&e.constructor.prototype[n]!==e[n]};n.insertElement=function(e,n,t){n=n||document;var r=void 0;r=t?n.getElementsByTagName(t):n.getElementsByTagName("head");try{r=r.length?r:n.getElementsByTagName("body"),r.length&&(r=r[0],r.insertBefore(e,r.firstChild))}catch(i){}},n.insertPixel=function(e){var n=new Image;n.id=this.getUniqueIdentifierStr(),n.src=e,n.height=0,n.width=0,n.style.display="none",n.onload=function(){try{this.parentNode.removeChild(this)}catch(e){}},this.insertElement(n)},n.insertCookieSyncIframe=function(e,n){var t=this.createTrackPixelIframeHtml(e,n),r=document.createElement("div");r.innerHTML=t;var i=r.firstChild;this.insertElement(i)},n.createTrackPixelHtml=function(e){if(!e)return"";var n=encodeURI(e),t='
';return t+='
'},n.createTrackPixelIframeHtml=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:!0;return e?(n&&(e=encodeURI(e)),''):""},n.getIframeDocument=function(e){if(e){var n=void 0;try{n=e.contentWindow?e.contentWindow.document:e.contentDocument.document?e.contentDocument.document:e.contentDocument}catch(t){this.logError("Cannot get iframe document",t)}return n}},n.getValueString=function(e,n,t){return void 0===n||null===n?t:this.isStr(n)?n:this.isNumber(n)?n.toString():(this.logWarn("Unsuported type for param: "+e+" required type: String"),void 0)}}),(function(e){e.exports={JSON_MAPPING:{PL_CODE:"code",PL_SIZE:"sizes",PL_BIDS:"bids",BD_BIDDER:"bidder",BD_ID:"paramsd",BD_PL_ID:"placementId",ADSERVER_TARGETING:"adserverTargeting",BD_SETTING_STANDARD:"standard"},REPO_AND_VERSION:"prebid_prebid_0.26.0-pre",DEBUG_MODE:"pbjs_debug",STATUS:{GOOD:1,NO_BID:2},CB:{TYPE:{ALL_BIDS_BACK:"allRequestedBidsBack",AD_UNIT_BIDS_BACK:"adUnitBidsBack",BID_WON:"bidWon",REQUEST_BIDS:"requestBids"}},objectType_function:"function",objectType_undefined:"undefined",objectType_object:"object",objectType_string:"string",objectType_number:"number",EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",BID_WON:"bidWon",SET_TARGETING:"setTargeting",REQUEST_BIDS:"requestBids"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},ORDER:{RANDOM:"random"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:["hb_bidder","hb_adid","hb_pb","hb_size","hb_deal"],S2S:{DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/auction"}}}),(function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.hasNonVideoBidder=n.videoAdUnit=void 0;{var r=t(5),i=(n.videoAdUnit=function(e){return"video"===e.mediaType},function(e){return!r.videoAdapters.includes(e.bidder)});n.hasNonVideoBidder=function(e){return e.bids.filter(i).length}}}),(function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var n=e.bidderCode,t=e.requestId,r=e.bidderRequestId,i=e.adUnits;return i.map((function(e){return e.bids.filter((function(e){return e.bidder===n})).map((function(n){var i=e.sizes;if(e.sizeMapping){var o=c.mapSizes(e);if(""===o)return"";i=o}return e.nativeParams&&(n=d({},n,{nativeParams:p["default"](e.nativeParams)})),d({},n,{placementCode:e.code,mediaType:e.mediaType,transactionId:e.transactionId,sizes:i,bidId:n.bid_id||f.getUniqueIdentifierStr(),bidderRequestId:r,requestId:t})}))})).reduce(s.flatten,[]).filter((function(e){return""!==e}))}function o(e){var n=[],t=f.parseSizesInput(e.sizes);return t.forEach((function(e){var t=e.split("x"),r={w:parseInt(t[0]),h:parseInt(t[1])};n.push(r)})),n}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d=Object.assign||function(e){for(var n=1;ne.minWidth}));return i&&i.sizes&&i.sizes.length?(r=i.sizes,c.logMessage("AdUnit : "+e.code+" resized based on device width to : "+r)):c.logMessage("AdUnit : "+e.code+" not mapped to any sizes for device width. This request will be suppressed."),r}function o(e){return c.isArray(e)&&e.length>0?!0:(c.logInfo("No size mapping defined"),!1)}function a(e){var n=e||u||window,t=n.document;return n.innerWidth?n.innerWidth:t.body.clientWidth?t.body.clientWidth:t.documentElement.clientWidth?t.documentElement.clientWidth:0}function d(e){u=e}Object.defineProperty(n,"__esModule",{value:!0}),n.setWindow=n.getScreenWidth=n.mapSizes=void 0;var s=t(2),c=r(s),u=void 0;n.mapSizes=i,n.getScreenWidth=a,n.setWindow=d}),(function(e,n,t){"use strict";function r(e){return e&&e.type&&i(e.type)?p[e.type]:e}function i(e){return e&&Object.keys(p).includes(e)?!0:(d.logError(e+" nativeParam is not supported"),!1)}function o(e){var n=d.getBidRequest(e.adId);if(!n)return!1;var t=n.nativeParams;if(!t)return!0;var r=Object.keys(t).filter((function(e){return t[e].required})),i=Object.keys(e.native);return r.every((function(e){return i.includes(e)}))}function a(e){var n=e.native&&e.native.impressionTrackers;(n||[]).forEach((function(e){d.insertPixel(e)}))}Object.defineProperty(n,"__esModule",{value:!0}),n.hasNonNativeBidder=n.nativeBidder=n.nativeAdUnit=n.NATIVE_TARGETING_KEYS=n.NATIVE_KEYS=void 0,n["default"]=r,n.nativeBidIsValid=o,n.fireNativeImpressions=a;{var d=t(2),s=[],c=n.NATIVE_KEYS={title:"hb_native_title",body:"hb_native_body",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl"},u=(n.NATIVE_TARGETING_KEYS=Object.keys(c).map((function(e){return c[e]})),{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}),p={image:u},l=(n.nativeAdUnit=function(e){return"native"===e.mediaType},n.nativeBidder=function(e){return s.includes(e.bidder)});n.hasNonNativeBidder=function(e){return e.bids.filter((function(e){return!l(e)})).length}}}),(function(e,n){"use strict";function t(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});{var r=(function(){function e(e,n){for(var t=0;t0&&(l="size="+f[0],m>1)){l+="&promo_sizes=";for(var g=1;m>g;g++)l+=f[g]+=",";l&&","===l.charAt(l.length-1)&&(l=l.slice(0,l.length-1))}l&&(p+=l+"&");var v=d.parseQueryStringParameters(s);v&&(p+=v);var w=i({},e.params);delete w.placementId,delete w.memberId,delete w.invCode,delete w.query,delete w.referrer,delete w.alt_referrer,delete w.member;var b=d.parseQueryStringParameters(w);return b&&(p+=b),""===c&&(c=d.getTopWindowUrl()),p=d.tryAppendQueryString(p,"referrer",c),p=d.tryAppendQueryString(p,"alt_referrer",u),p.lastIndexOf("&")===p.length-1&&(p=p.substring(0,p.length-1)),d.logMessage("jpt request built: "+p),e.startTime=(new Date).getTime(),p}var n=p.createNew("appnexus"),t=!1;return n.callBids=function(n){for(var t=n.bids,r=0;r=0&&(e.cpm=t)}function g(){var e=window[preBidNameSpace].bidderSettings;return e[B.JSON_MAPPING.BD_SETTING_STANDARD]||(e[B.JSON_MAPPING.BD_SETTING_STANDARD]={adserverTargeting:[{key:"hb_bidder",val:function(e){return e.bidderCode}},{key:"hb_adid",val:function(e){return e.adId}},{key:"hb_pb",val:function(e){return _===B.GRANULARITY_OPTIONS.AUTO?e.pbAg:_===B.GRANULARITY_OPTIONS.DENSE?e.pbDg:_===B.GRANULARITY_OPTIONS.LOW?e.pbLg:_===B.GRANULARITY_OPTIONS.MEDIUM?e.pbMg:_===B.GRANULARITY_OPTIONS.HIGH?e.pbHg:_===B.GRANULARITY_OPTIONS.CUSTOM?e.pbCg:void 0}},{key:"hb_size",val:function(e){return e.size}},{key:"hb_deal",val:function(e){return e.dealId}}]}),e[B.JSON_MAPPING.BD_SETTING_STANDARD]}function v(){return g()[B.JSON_MAPPING.ADSERVER_TARGETING]}var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b=Object.assign||function(e){for(var n=1;nwindow[preBidNameSpace].cbTimeout+window[preBidNameSpace].timeoutBuffer){var u=!0;n.executeCallback(u)}E.emit(B.EVENTS.BID_ADJUSTMENT,t),E.emit(B.EVENTS.BID_RESPONSE,t);var l=h.getPriceBucketString(t.cpm,C);t.pbLg=l.low,t.pbMg=l.med,t.pbHg=l.high,t.pbAg=l.auto,t.pbDg=l.dense,t.pbCg=l.custom;var f={};t.bidderCode&&(t.cpm>0||t.dealId)&&(f=c(t.bidderCode,t)),t.adserverTargeting=f,window[preBidNameSpace]._bidsReceived.push(t)}t&&t.adUnitCode&&a(t.adUnitCode)&&p(t.adUnitCode),s()&&n.executeCallback()},n.getKeyValueTargetingPairs=function(){return c.apply(void 0,arguments)},n.setPriceGranularity=function(e){var n=B.GRANULARITY_OPTIONS;Object.keys(n).filter((function(t){return e===n[t]}))?_=e:(I.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default."),_=B.GRANULARITY_OPTIONS.MEDIUM)},n.registerDefaultBidderSetting=function(e,n){O[e]=n},n.executeCallback=function(e){if(!e&&A.timer&&clearTimeout(A.timer),A.all.called!==!0&&(l(A.all),A.all.called=!0,e)){var t=n.getTimedOutBidders();t.length&&E.emit(B.EVENTS.BID_TIMEOUT,t)}if(A.oneTime){E.emit(N);try{l([A.oneTime])}catch(r){I.logError("Error executing bidsBackHandler",null,r)}finally{A.oneTime=null,A.timer=!1,window[preBidNameSpace].clearAuction()}}},n.externalCallbackReset=function(){A.all.called=!1},n.addOneTimeCallback=function(e,n){A.oneTime=e,A.timer=n},n.addCallback=function(e,n,t){n.id=e,B.CB.TYPE.ALL_BIDS_BACK===t?A.all.push(n):B.CB.TYPE.AD_UNIT_BIDS_BACK===t&&A.byAdUnit.push(n)},E.on(B.EVENTS.BID_ADJUSTMENT,(function(e){m(e)})),n.adjustBids=function(){return m.apply(void 0,arguments)},n.getStandardBidderAdServerTargeting=v}),(function(e,n){"use strict";function t(e,n){var t=0;return t=parseFloat(e),isNaN(t)&&(t=""),{low:""===t?"":r(e,d),med:""===t?"":r(e,s),high:""===t?"":r(e,c),auto:""===t?"":r(e,p),dense:""===t?"":r(e,u),custom:""===t?"":r(e,n)}}function r(e,n){var t="";if(!i(n))return t;var r=n.buckets.reduce((function(e,n){return e.max>n.max?e:n}),{max:0}),d=n.buckets.find((function(n){if(e>r.max){var i=n.precision||a;t=n.max.toFixed(i)}else if(e<=n.max&&e>=n.min)return n}));return d&&(t=o(e,d.increment,d.precision)),t}function i(e){if(!e||!e.buckets||!Array.isArray(e.buckets))return!1;var n=!0;return e.buckets.forEach((function(e){"undefined"!=typeof e.min&&e.max&&e.increment||(n=!1)})),n}function o(e,n,t){t||(t=a);var r=1/n;return(Math.floor(e*r)/r).toFixed(t)}Object.defineProperty(n,"__esModule",{value:!0});var a=2,d={buckets:[{min:0,max:5,increment:.5}]},s={buckets:[{min:0,max:20,increment:.1}]},c={buckets:[{min:0,max:20,increment:.01}]},u={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},p={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]};n.getPriceBucketString=t,n.isValidePriceConfig=i}),(function(e,n,t){"use strict";function r(e,n){function t(){switch(o){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}var r=n&&n.bidId||i.getUniqueIdentifierStr(),o=e||0;this.bidderCode=n&&n.bidder||"",this.width=0,this.height=0,this.statusMessage=t(),this.adId=r,this.getStatusCode=function(){return o},this.getSize=function(){return this.width+"x"+this.height}}var i=t(2);n.createBid=function(){return new(Function.prototype.bind.apply(r,[null].concat(Array.prototype.slice.call(arguments))))}}),(function(e,n){"use strict";function t(e){function n(e){i=e}function t(){return i}function r(){}var i=e;return{callBids:r,setBidderCode:n,getBidderCode:t}}n.createNew=function(e){return new t(e)}}),(function(e,n,t){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=t(2),o=t(14),a=t(12),d=t(3),s=function(){function e(){var e={},n=new Date;e.SAVersion="1100",e.wp="PreBid",e.js=1,e.wv=d.REPO_AND_VERSION,m&&(e.sec=1),e.screenResolution=screen.width+"x"+screen.height,e.ranreq=Math.random(),e.inIframe=window!=top?"1":"0",window.navigator.cookieEnabled===!1&&(e.fpcd="1");try{e.pageURL=window.top.location.href,e.refurl=window.top.document.referrer}catch(t){e.pageURL=window.location.href,e.refurl=window.document.referrer}return e.kltstamp=n.getFullYear()+"-"+(n.getMonth()+1)+"-"+n.getDate()+" "+n.getHours()+":"+n.getMinutes()+":"+n.getSeconds(),e.timezone=n.getTimezoneOffset()/60*-1,e}function n(e,n){n.kadpageurl||(n.kadpageurl=n.pageURL);var t,o,a;for(t in b)b.hasOwnProperty(t)&&(o=e[t],o&&(a=b[t],"object"===("undefined"==typeof a?"undefined":r(a))?(o=a.m(o,n),t=a.n):i.isStr(o)?t=b[t]:i.logWarn("PubMatic: Ignoring param key: "+b[t]+", expects string-value, found "+("undefined"==typeof o?"undefined":r(o))),o&&(n[t]=o)));return n}function t(e){var n,t,r=e.length,o=[];for(n=0;r>n;n++)t=e[n],i.isStr(t)&&(t=t.replace(/^\s+/g,"").replace(/\s+$/g,""),t.length>0&&o.push(t));return o}function s(e,n){var t=c(e,n);v=i.createInvisibleIframe();var r=document.getElementsByTagName("head")[0];r.insertBefore(v,r.firstChild);var o=i.getIframeDocument(v),a=i.createContentToExecuteExtScriptInFriendlyFrame(t);a=a.replace("",""),o.write(a),o.close()}function c(e,n){var t="gads.pubmatic.com/AdServer/AdCallAggregator";return g+t+"?"+i.parseQueryStringParameters(e)+"adslots="+encodeURIComponent("["+n.join(",")+"]")}function u(e){if(!f){var n=i.createInvisibleIframe();n.src=g+"ads.pubmatic.com/AdServer/js/showad.js#PIX&kdntuid=1&p="+e,i.insertElement(n,document),f=!0}}function p(r){var i=e(),o=[];i.pubId=0,l=r.bids||[];for(var a=0;a0&&s(i,o),u(i.pubId)}var l,f=!1,m=0,g=("https:"===window.location.protocol?(m=1,"https"):"http")+"://",v=void 0,w={1:"PMP",5:"PREF",6:"PMPG"},b={kadgender:"gender",age:"kadage",dctr:"dctr",wiid:"wiid",profId:"profId",verId:"verId",pmzoneid:{n:"pmZoneId",m:function(e){return i.isStr(e)?e.split(",").slice(0,50).join():""}}};return window[preBidNameSpace].handlePubmaticCallback=function(e,n){var t,r,d,s,c=e,u=n;if(c&&u)for(t=0;t1?arguments[1]:void 0)}}),t(50)(o)}),(function(e,n,t){var r=t(21),i=t(22),o=t(23),a=t(33),d=t(36),s="prototype",c=function(e,n,t){var u,p,l,f,m=e&c.F,g=e&c.G,v=e&c.S,w=e&c.P,b=e&c.B,y=g?r:v?r[n]||(r[n]={}):(r[n]||{})[s],h=g?i:i[n]||(i[n]={}),S=h[s]||(h[s]={});g&&(t=n);for(u in t)p=!m&&y&&void 0!==y[u],l=(p?y:t)[u],f=b&&p?d(l,r):w&&"function"==typeof l?d(Function.call,l):l,y&&a(y,u,l,e&c.U),h[u]!=l&&o(h,u,f),w&&S[u]!=l&&(S[u]=l)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c}),(function(e){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)}),(function(e){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)}),(function(e,n,t){var r=t(24),i=t(32);e.exports=t(28)?function(e,n,t){return r.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}}),(function(e,n,t){var r=t(25),i=t(27),o=t(31),a=Object.defineProperty;n.f=t(28)?Object.defineProperty:function(e,n,t){if(r(e),n=o(n,!0),r(t),i)try{return a(e,n,t)}catch(d){}if("get"in t||"set"in t)throw TypeError("Accessors not supported!");return"value"in t&&(e[n]=t.value),e}}),(function(e,n,t){var r=t(26);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}}),(function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}}),(function(e,n,t){e.exports=!t(28)&&!t(29)((function(){return 7!=Object.defineProperty(t(30)("div"),"a",{get:function(){return 7}}).a}))}),(function(e,n,t){e.exports=!t(29)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))}),(function(e){e.exports=function(e){try{return!!e()}catch(n){return!0}}}),(function(e,n,t){var r=t(26),i=t(21).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}}),(function(e,n,t){var r=t(26);e.exports=function(e,n){if(!r(e))return e;var t,i;if(n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;if("function"==typeof(t=e.valueOf)&&!r(i=t.call(e)))return i;if(!n&&"function"==typeof(t=e.toString)&&!r(i=t.call(e)))return i;throw TypeError("Can't convert object to primitive value")}}),(function(e){e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}}),(function(e,n,t){var r=t(21),i=t(23),o=t(34),a=t(35)("src"),d="toString",s=Function[d],c=(""+s).split(d);t(22).inspectSource=function(e){return s.call(e)},(e.exports=function(e,n,t,d){var s="function"==typeof t;s&&(o(t,"name")||i(t,"name",n)),e[n]!==t&&(s&&(o(t,a)||i(t,a,e[n]?""+e[n]:c.join(String(n)))),e===r?e[n]=t:d?e[n]?e[n]=t:i(e,n,t):(delete e[n],i(e,n,t)))})(Function.prototype,d,(function(){return"function"==typeof this&&this[a]||s.call(this)}))}),(function(e){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}}),(function(e){var n=0,t=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+t).toString(36))}}),(function(e,n,t){var r=t(37);e.exports=function(e,n,t){if(r(e),void 0===n)return e;switch(t){case 1:return function(t){return e.call(n,t)};case 2:return function(t,r){return e.call(n,t,r)};case 3:return function(t,r,i){return e.call(n,t,r,i)}}return function(){return e.apply(n,arguments)}}}),(function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}}),(function(e,n,t){var r=t(36),i=t(39),o=t(41),a=t(43),d=t(45);e.exports=function(e,n){var t=1==e,s=2==e,c=3==e,u=4==e,p=6==e,l=5==e||p,f=n||d;return function(n,d,m){for(var g,v,w=o(n),b=i(w),y=r(d,m,3),h=a(b.length),S=0,B=t?f(n,h):s?f(n,0):void 0;h>S;S++)if((l||S in b)&&(g=b[S],v=y(g,S,w),e))if(t)B[S]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return S;case 2:B.push(g)}else if(u)return!1;return p?-1:c||u?u:B}}}),(function(e,n,t){var r=t(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}}),(function(e){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}}),(function(e,n,t){var r=t(42);e.exports=function(e){return Object(r(e))}}),(function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}}),(function(e,n,t){var r=t(44),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),(function(e){var n=Math.ceil,t=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?t:n)(e)}}),(function(e,n,t){var r=t(46);e.exports=function(e,n){return new(r(e))(n)}}),(function(e,n,t){var r=t(26),i=t(47),o=t(48)("species");e.exports=function(e){var n;return i(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&(n=n[o],null===n&&(n=void 0))),void 0===n?Array:n}}),(function(e,n,t){var r=t(40);e.exports=Array.isArray||function(e){return"Array"==r(e)}}),(function(e,n,t){var r=t(49)("wks"),i=t(35),o=t(21).Symbol,a="function"==typeof o,d=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};d.store=r}),(function(e,n,t){var r=t(21),i="__core-js_shared__",o=r[i]||(r[i]={});e.exports=function(e){return o[e]||(o[e]={})}}),(function(e,n,t){var r=t(48)("unscopables"),i=Array.prototype;void 0==i[r]&&t(23)(i,r,{}),e.exports=function(e){i[r][e]=!0}}),(function(e,n,t){t(52),e.exports=t(22).Array.includes}),(function(e,n,t){"use strict";var r=t(20),i=t(53)(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),t(50)("includes")}),(function(e,n,t){var r=t(54),i=t(43),o=t(55);e.exports=function(e){return function(n,t,a){var d,s=r(n),c=i(s.length),u=o(a,c);if(e&&t!=t){for(;c>u;)if(d=s[u++],d!=d)return!0}else for(;c>u;u++)if((e||u in s)&&s[u]===t)return e||u||0;return!e&&-1}}}),(function(e,n,t){var r=t(39),i=t(42);e.exports=function(e){return r(i(e))}}),(function(e,n,t){var r=t(44),i=Math.max,o=Math.min;e.exports=function(e,n){return e=r(e),0>e?i(e+n,0):o(e,n)}}),(function(e,n,t){t(57),e.exports=t(22).Object.assign}),(function(e,n,t){var r=t(20);r(r.S+r.F,"Object",{assign:t(58)})}),(function(e,n,t){"use strict";var r=t(59),i=t(63),o=t(64),a=t(41),d=t(39),s=Object.assign;e.exports=!s||t(29)((function(){var e={},n={},t=Symbol(),r="abcdefghijklmnopqrst";return e[t]=7,r.split("").forEach((function(e){n[e]=e})),7!=s({},e)[t]||Object.keys(s({},n)).join("")!=r}))?function(e){for(var n=a(e),t=arguments.length,s=1,c=i.f,u=o.f;t>s;)for(var p,l=d(arguments[s++]),f=c?r(l).concat(c(l)):r(l),m=f.length,g=0;m>g;)u.call(l,p=f[g++])&&(n[p]=l[p]);return n}:s}),(function(e,n,t){var r=t(60),i=t(62);e.exports=Object.keys||function(e){return r(e,i)}}),(function(e,n,t){var r=t(34),i=t(54),o=t(53)(!1),a=t(61)("IE_PROTO");e.exports=function(e,n){var t,d=i(e),s=0,c=[];for(t in d)t!=a&&r(d,t)&&c.push(t);for(;n.length>s;)r(d,t=n[s++])&&(~o(c,t)||c.push(t));return c}}),(function(e,n,t){var r=t(49)("keys"),i=t(35);e.exports=function(e){return r[e]||(r[e]=i(e))}}),(function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")}),(function(e,n){n.f=Object.getOwnPropertySymbols}),(function(e,n){n.f={}.propertyIsEnumerable}),(function(e,n){"use strict";function t(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,n){var t=n.split("="),r=a(t,2),i=r[0],o=r[1];return/\[\]$/.test(i)?(i=i.replace("[]",""),e[i]=e[i]||[],e[i].push(o)):e[i]=o||"",e}),{}):{}}function r(e){return Object.keys(e).map((function(n){return Array.isArray(e[n])?e[n].map((function(e){return n+"[]="+e})).join("&"):n+"="+e[n]})).join("&")}function i(e){var n=document.createElement("a");return n.href=decodeURIComponent(e),{protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:t(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host}}function o(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":"+e.port:""))+(e.pathname||"")+(e.search?"?"+r(e.search||""):"")+(e.hash?"#"+e.hash:"")}Object.defineProperty(n,"__esModule",{value:!0});var a=(function(){function e(e,n){var t=[],r=!0,i=!1,o=void 0;try{for(var a,d=e[Symbol.iterator]();!(r=(a=d.next()).done)&&(t.push(a.value),!n||t.length!==n);r=!0);}catch(s){i=!0,o=s}finally{try{!r&&d["return"]&&d["return"]()}finally{if(i)throw o}}return t}return function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return e(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();n.parseQS=t,n.formatQS=r,n.parse=i,n.format=o}),(function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(){addEventListener("message",o,!1)}function o(e){var n=e.message?"message":"data",t={};try{t=JSON.parse(e[n])}catch(r){return}if(t.adId){var i=window[preBidNameSpace]._bidsReceived.find((function(e){return e.adId===t.adId}));"Prebid Request"===t.message&&(a(i,t.adServerDomain,e.source),window[preBidNameSpace]._winningBids.push(i),c["default"].emit(f,i)),"Prebid Native"===t.message&&(p["default"](i),window[preBidNameSpace]._winningBids.push(i),c["default"].emit(f,i))}}function a(e,n,t){var r=e.adId,i=e.ad,o=e.adUrl,a=e.width,s=e.height;r&&(d(e),t.postMessage(JSON.stringify({message:"Prebid Response",ad:i,adUrl:o,adId:r,width:a,height:s}),n))}function d(e){var n=e.adUnitCode,t=e.width,r=e.height,i=document.getElementById(window.googletag.pubads().getSlots().find((function(e){return e.getAdUnitPath()===n||e.getSlotElementId()===n})).getSlotElementId()).querySelector("iframe");i.width=""+t,i.height=""+r}Object.defineProperty(n,"__esModule",{value:!0}),n.listenMessagesFromCreative=i;var s=t(9),c=r(s),u=t(7),p=r(u),l=t(3),f=l.EVENTS.BID_WON}),(function(e,n,t){"use strict";function r(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n["default"]=e,n}function i(){p.forEach((function(e){c.logMessage("Invoking cookie sync for bidder: "+e.bidder),"iframe"===e.type?c.insertCookieSyncIframe(e.url,!1):c.insertPixel(e.url)})),p.length=0}function o(e){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:{};try{var i=void 0,p=!1,l=r.method||(t?"POST":"GET"),f="object"===("undefined"==typeof n?"undefined":a(n))?n:{success:function(){s.logMessage("xhr success")},error:function(e){s.logError("xhr error",null,e)}};if("function"==typeof n&&(f.success=n),window.XMLHttpRequest?(i=new window.XMLHttpRequest,void 0===i.responseType&&(p=!0)):p=!0,i.timeout=u,p?(i=new window.XDomainRequest,i.onload=function(){f.success(i.responseText,i)},i.onerror=function(){f.error("error",i)},i.ontimeout=function(){f.error("timeout",i)},i.onprogress=function(){s.logMessage("xhr onprogress")}):i.onreadystatechange=function(){if(i.readyState===c){var e=i.status;e>=200&&300>e||304===e?f.success(i.responseText,i):f.error(i.statusText,i)}},"GET"===l&&t){var m=d.parse(e);o(m.search,t),e=d.format(m)}i.open(l,e),p||(r.withCredentials&&(i.withCredentials=!0),s._each(r.customHeaders,(function(e,n){i.setRequestHeader(n,e)})),r.preflight&&i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type",r.contentType||"text/plain")),i.send("POST"===l&&t)}catch(g){s.logError("xhr construction",g)}}Object.defineProperty(n,"__esModule",{value:!0});var o=Object.assign||function(e){for(var n=1;n-1?void 0:r({},t.substring(0,20),[e.adserverTargeting[t]])})).filter((function(e){return e}))):void 0})).filter((function(e){return e}))}function s(e){var n=m.TARGETING_KEYS.concat(p.NATIVE_TARGETING_KEYS);return window[preBidNameSpace]._bidsReceived.filter(u.adUnitsFilter.bind(this,e)).map((function(e){return e.adserverTargeting?r({},e.adUnitCode,c(e,n.filter((function(n){return"undefined"!=typeof e.adserverTargeting[n]})))):void 0})).filter((function(e){return e}))}function c(e,n){return n.map((function(n){return r({},(n+"_"+e.bidderCode).substring(0,20),[e.adserverTargeting[n]])}))}var u=t(2),p=t(7),l=t(12),f=t(2),m=t(3),g=n,v=[];g.resetPresetTargeting=function(e){if(u.isGptPubadsDefined()){var n=i(e),t=window[preBidNameSpace].adUnits.filter((function(e){return n.includes(e.code)}));window.googletag.pubads().getSlots().forEach((function(e){v.forEach((function(n){t.forEach((function(t){(t.code===e.getAdUnitPath()||t.code===e.getSlotElementId())&&e.setTargeting(n,null)}))}))}))}},g.getAllTargeting=function(e){var n=i(e),t=o(n).concat(d(n)).concat(window[preBidNameSpace]._sendAllBids?s(n):[]);return t.map((function(e){Object.keys(e).map((function(n){e[n].map((function(e){-1===v.indexOf(Object.keys(e)[0])&&(v=Object.keys(e).concat(v))}))}))})),t},g.setTargeting=function(e){window.googletag.pubads().getSlots().forEach((function(n){e.filter((function(e){return Object.keys(e)[0]===n.getAdUnitPath()||Object.keys(e)[0]===n.getSlotElementId()})).forEach((function(e){return e[Object.keys(e)[0]].forEach((function(e){e[Object.keys(e)[0]].map((function(t){return f.logMessage("Attempting to set key value for slot: "+n.getSlotElementId()+" key: "+Object.keys(e)[0]+" value: "+t),t})).forEach((function(t){n.setTargeting(Object.keys(e)[0],t)}))}))}))}))},g.getWinningBids=function(e){var n=i(e);return window[preBidNameSpace]._bidsReceived.filter((function(e){return n.includes(e.adUnitCode)})).filter((function(e){return e.cpm>0})).map((function(e){return e.adUnitCode})).filter(u.uniques).map((function(e){return window[preBidNameSpace]._bidsReceived.filter((function(n){return n.adUnitCode===e?n:null})).reduce(u.getHighestCpm,{adUnitCode:e,cpm:0,adserverTargeting:{},timeToRespond:0})}))},g.setTargetingForAst=function(){var e=window[preBidNameSpace].getAdserverTargeting();Object.keys(e).forEach((function(n){return Object.keys(e[n]).forEach((function(t){if(f.logMessage("Attempting to set targeting for targetId: "+n+" key: "+t+" value: "+e[n][t]),f.isStr(e[n][t])||f.isArray(e[n][t])){var r={},i="hb_adid",o=t.substring(0,i.length)===i?t.toUpperCase():t;r[o]=e[n][t],window.apntag.setKeywords(n,r)}}))}))},g.isApntagDefined=function(){return window.apntag&&f.isFn(window.apntag.setKeywords)?!0:void 0}})]);}!(function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)})([(function(t,e,n){var i=n(1),r=n(9),o=n(6),a=i.getMetaInfo(window);window.PWT=window.PWT||{},window.PWT.bidMap=window.PWT.bidMap||{},window.PWT.bidIdMap=window.PWT.bidIdMap||{},window.PWT.isIframe=window.PWT.isIframe||a.isInIframe,window.PWT.protocol=window.PWT.protocol||a.protocol,window.PWT.secure=window.PWT.secure||a.secure,window.PWT.pageURL=window.PWT.pageURL||a.pageURL,window.PWT.refURL=window.PWT.refURL||a.refURL,window.PWT.isSafeFrame=window.PWT.isSafeFrame||!1,window.PWT.safeFrameMessageListenerAdded=window.PWT.safeFrameMessageListenerAdded||!1,window.PWT.udpv=window.PWT.udpv||i.findQueryParamInURL(a.isIframe?a.refURL:a.pageURL,"pwtv"),i.findQueryParamInURL(a.isIframe?a.refURL:a.pageURL,"pwtc")&&i.enableDebugLog(),i.findQueryParamInURL(a.isIframe?a.refURL:a.pageURL,"pwtvc")&&i.enableVisualDebugLog(),window.PWT.displayCreative=function(t,e){i.log("In displayCreative for: "+e),o.displayCreative(t,e)},window.PWT.displayPMPCreative=function(t,e,n){i.log("In displayPMPCreative for: "+e);var r=i.getBididForPMP(e,n);r&&o.displayCreative(t,r)},window.PWT.sfDisplayCreative=function(t,e){i.log("In sfDisplayCreative for: "+e),this.isSafeFrame=!0,window.parent.postMessage(JSON.stringify({pwt_type:"1",pwt_bidID:e,pwt_origin:window.location.protocol+"//"+window.location.hostname}),"*")},window.PWT.sfDisplayPMPCreative=function(t,e,n){i.log("In sfDisplayPMPCreative for: "+e),this.isSafeFrame=!0,window.parent.postMessage(JSON.stringify({pwt_type:"1",pwt_bidID:i.getBididForPMP(e,n),pwt_origin:window.location.protocol+"//"+window.location.hostname}),"*")},r.init(window)}),(function(t,e,n){function i(t,e){return g.call(t)==="[object "+e+"]"}var r=n(2),o=n(3),a=n(6),s=!1;e.debugLogIsEnabled=s;var d=!1;e.visualDebugLogIsEnabled=d;var l="Array",u="String",c="Function",p="Number",g=Object.prototype.toString,f=this;e.isA=i,e.isFunction=function(t){return f.isA(t,c)},e.isString=function(t){return f.isA(t,u)},e.isArray=function(t){return f.isA(t,l)},e.isNumber=function(t){return f.isA(t,p)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isOwnProperty=function(t,e){return t.hasOwnProperty?t.hasOwnProperty(e):!1},e.isUndefined=function(t){return"undefined"==typeof t},e.enableDebugLog=function(){f.debugLogIsEnabled=!0},e.isDebugLogEnabled=function(){return f.debugLogIsEnabled},e.enableVisualDebugLog=function(){f.debugLogIsEnabled=!0,f.visualDebugLogIsEnabled=!0};var h="[OpenWrap] : ";e.log=function(t){f.debugLogIsEnabled&&console&&this.isFunction(console.log)&&(this.isString(t)?console.log((new Date).getTime()+" : "+h+t):console.log(t))},e.getCurrentTimestampInMs=function(){var t=new window.Date;return t.getTime()},e.getCurrentTimestamp=function(){var t=new Date;return Math.round(t.getTime()/1e3)};var I=(function(){var t=0;return function(){return t++,t}})();e.utilGetIncrementalInteger=I,e.getUniqueIdentifierStr=function(){return I()+window.Math.random().toString(16).substr(2)},e.copyKeyValueObject=function(t,e){if(f.isObject(t)&&f.isObject(e)){var n=f;f.forEachOnObject(e,(function(i,r){if(e[i]=n.isArray(r)?r:[r],n.isOwnProperty(t,i)){if(!f.isArray(t[i])){var o=t[i];t[i]=[o]}t[i].push(r)}else t[i]=[r]}))}},e.getIncrementalInteger=(function(){var t=0;return function(){return t++,t}})(),e.generateUUID=function(){var t=(new window.Date).getTime(),e=window.decodeURIComponent(this.pageURL).toLowerCase().replace(/[^a-z,A-Z,0-9]/gi,""),n=e.length,i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx-zzzzz".replace(/[xyz]/g,(function(i){var r=(t+16*Math.random())%16|0;t=Math.floor(t/16);var o;switch(i){case"x":o=r;break;case"z":o=e[Math.floor(Math.random()*n)];break;default:o=3&r|8}return o.toString(16)}));return i};var m="g",w=new RegExp(r.MACROS.WIDTH,m),S=new RegExp(r.MACROS.HEIGHT,m),E=new RegExp(r.MACROS.AD_UNIT_ID,m),y=new RegExp(r.MACROS.AD_UNIT_INDEX,m),A=new RegExp(r.MACROS.INTEGER,m),T=new RegExp(r.MACROS.DIV,m);e.generateSlotNamesFromPattern=function(t,e){var n,i,r,o,a=[],s={};if(f.isObject(t)&&f.isFunction(t.getSizes)&&(i=t.getSizes(),r=i.length,r>0))for(o=0;r>o;o++)i[o][0]&&i[o][1]&&(n=e,n=n.replace(E,t.getAdUnitID()).replace(w,i[o][0]).replace(S,i[o][1]).replace(y,t.getAdUnitIndex()).replace(A,f.getIncrementalInteger()).replace(T,t.getDivID()),f.isOwnProperty(s,n)||(s[n]="",a.push(n)));return a},e.checkMandatoryParams=function(t,e,n){var i=!1,r=!0;if(!t||!f.isObject(t)||f.isArray(t))return f.log(n+"provided object is invalid."),i;if(!f.isArray(e))return f.log(n+"provided keys must be in an array."),i;var o=e.length;if(0==o)return r;for(var a=0;o>a;a++)if(!f.isOwnProperty(t,e[a]))return f.log(n+": "+e[a]+", mandatory parameter not present."),i;return r},e.forEachGeneratedKey=function(t,e,n,i,s,d,l,u,c,p){var g,h,I,m,w,S=d.length;if(S>0&&l.length>3)for(w=l.indexOf(r.MACROS.WIDTH)>=0&&l.indexOf(r.MACROS.HEIGHT)>=0,g=0;S>g;g++){var E=d[g];for(I=f.generateSlotNamesFromPattern(E,l),m=I.length,h=0;m>h;h++){var y=I[h],A=null,T=!1,P=E.getSizes();if(null==u?T=!0:(A=u[y],A?f.checkMandatoryParams(A,s,t)?T=!0:f.log(t+": "+y+r.MESSAGES.M9):f.log(t+": "+y+r.MESSAGES.M8)),T){if(1==p){var D=o.createBid(t,y);D.setDefaultBidStatus(1).setReceivedTime(f.getCurrentTimestampInMs()),a.setBidFromBidder(E.getDivID(),D)}c(t,e,n,i,y,w,E,u?u[y]:null,P[h][0],P[h][1])}}}},e.resizeWindow=function(t,e,n){if(n&&e)try{var i=t.defaultView.frameElement;i.width=e,i.height=n}catch(r){}},e.writeIframe=function(t,e,n,i,r){t.write('')},e.displayCreative=function(t,e){f.resizeWindow(t,e.width,e.height),e.adHtml?t.write(e.adHtml):e.adUrl?f.writeIframe(t,e.adUrl,e.width,e.height,""):(f.log("creative details are not found"),f.log(e))},e.getScreenWidth=function(t){var e=-1;return t.innerHeight?e=t.innerWidth:t.document&&t.document.documentElement&&t.document.documentElement.clientWidth?e=t.document.documentElement.clientWidth:t.document.body&&(e=t.document.body.clientWidth),e},e.getScreenHeight=function(t){var e=-1;return t.innerHeight?e=t.innerHeight:t.document&&t.document.documentElement&&t.document.documentElement.clientHeight?e=t.document.documentElement.clientHeight:t.document.body&&(e=t.document.body.clientHeight),e},e.forEachOnObject=function(t,e){if(f.isObject(t)&&f.isFunction(e))for(var n in t)f.isOwnProperty(t,n)&&e(n,t[n])},e.forEachOnArray=function(t,e){if(f.isArray(t)&&f.isFunction(e))for(var n=0,i=t.length;i>n;n++)e(n,t[n])},e.trim=function(t){return f.isString(t)?t.replace(/^\s+/g,"").replace(/\s+$/g,""):t},e.getTopFrameOfSameDomain=function(t){try{if(t.parent.document!=t.document)return f.getTopFrameOfSameDomain(t.parent)}catch(e){}return t},e.metaInfo={},e.getMetaInfo=function(t){var e,n={},i=512;n.pageURL="",n.refURL="",n.protocol="https://",n.secure=1,n.isInIframe=f.isIframe(t);try{e=f.getTopFrameOfSameDomain(t),n.refURL=(e.refurl||e.document.referrer||"").substr(0,i),n.pageURL=(e!==window.top&&""!=e.document.referrer?e.document.referrer:e.location.href).substr(0,i),n.protocol=(function(t){return"http:"===t.location.protocol?(n.secure=0,"http://"):(n.secure=1,"https://")})(e)}catch(r){}return f.metaInfo=n,n},e.isIframe=function(t){try{return t.self!==t.top}catch(e){return!1}},e.findInString=function(t,e){return t.indexOf(e)>=0},e.findQueryParamInURL=function(t,e){return f.isOwnProperty(f.parseQueryParams(t),e)},e.parseQueryParams=function(t){var e=window.document.createElement("a");e.href=t;var n={};if(e.search){var i=e.search.replace("?","");i=i.split("&"),f.forEachOnArray(i,(function(t,e){var e=e.split("="),i=e[0]||"",r=e[1]||"";n[i]=r}))}return n},e.addHookOnFunction=function(t,e,n,i){var r=t;if(t=e?t.__proto__:t,f.isObject(t)&&f.isFunction(t[n])){var o=t[n];t[n]=i(r,o)}else f.log("in assignNewDefination: oldReference is not a function")},e.getBididForPMP=function(t,e){t=t.split(",");var n=t.length,i=e.length,o="",a="";if(0==n)return this.log("Error: Unable to find bidID as values array is empty."),void 0;for(var s=0;i>s;s++){for(var d=0;n>d;d++)if(t[d].indexOf(e[s])>=0){o=t[d];break}if(""!=o)break}""==o?(o=t[0],this.log("No PMP-Deal was found matching PriorityArray, So Selecting first PMP-Deal: "+o)):this.log("Selecting PMP-Deal: "+o);var l=o.split(r.COMMON.DEAL_KEY_VALUE_SEPARATOR);return 3==l.length&&(a=l[2]),a?a:(this.log("Error: bidID not found in PMP-Deal: "+o),void 0)},e.createInvisibleIframe=function(){var t=window.document.createElement("iframe");return t.id=f.getUniqueIdentifierStr(),t.height=0,t.width=0,t.border="0px",t.hspace="0",t.vspace="0",t.marginWidth="0",t.marginHeight="0",t.style.border="0",t.scrolling="no",t.frameBorder="0",t.src="about:self",t.style="display:none",t},e.addMessageEventListener=function(t,e){return"function"!=typeof e?(f.log("EventHandler should be a function"),!1):(t.addEventListener?t.addEventListener("message",e,!1):t.attachEvent("onmessage",e),!0)},e.safeFrameCommunicationProtocol=function(t){try{if(msgData=window.JSON.parse(t.data),!msgData.pwt_type)return;switch(window.parseInt(msgData.pwt_type)){case 1:if(window.PWT.isSafeFrame)return;var e=a.getBidById(msgData.pwt_bidID);if(e){var n=e.bid,i=n.getAdapterID(),r=e.slotid,o={pwt_type:2,pwt_bid:n};f.vLogInfo(r,{type:"disp",adapter:i}),a.executeMonetizationPixel(r,n),t.source.postMessage(window.JSON.stringify(o),msgData.pwt_origin)}break;case 2:if(!window.PWT.isSafeFrame)return;if(msgData.pwt_bid){var n=msgData.pwt_bid;if(f.resizeWindow(window.document,n.height,n.width),n.adHtml)try{var s=f.createInvisibleIframe(window.document);if(!s)throw{message:"Failed to create invisible frame.",name:""};if(s.setAttribute("width",n.width),s.setAttribute("height",n.height),s.style="",window.document.body.appendChild(s),!s.contentWindow)throw{message:"Unable to access frame window.",name:""};var d=s.contentWindow.document;if(!d)throw{message:"Unable to access frame window document.",name:""};var l='';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){}},e.addMessageEventListenerForSafeFrame=function(t){f.addMessageEventListener(t,f.safeFrameCommunicationProtocol)},e.getElementLocation=function(t){var e,n=0,i=0;if(f.isFunction(t.getBoundingClientRect))e=t.getBoundingClientRect(),n=Math.floor(e.left),i=Math.floor(e.top);else for(;t;)n+=t.offsetLeft,i+=t.offsetTop,t=t.offsetParent;return{x:n,y:i}},e.createVLogInfoPanel=function(t,e){var n,i,r,o=window.document;if(f.visualDebugLogIsEnabled&&(n=o.getElementById(t),n&&e.length&&e[0][0]&&e[0][1]&&(r=t+"-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: "+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 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+e[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: "+t+" | ",l=0;la&&(a=0),i="Bid: "+e.bidder+": "+s.getNetEcpm()+"("+s.getGrossEcpm()+"): "+a+"ms",s.getPostTimeoutStatus()&&(i+=": POST-TIMEOUT");break;case"win-bid":var s=e.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 "+e.adapter}n.appendChild(r.createTextNode(i)),n.appendChild(r.createElement("br"))}}}}),(function(t,e){e.COMMON={BID_PRECISION:4,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"},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",PUBLISHER_ID:"pwtpubid",PROFILE_ID:"pwtprofid",PROFILE_VERSION_ID:"pwtverid"},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: "}}),(function(t,e,n){function i(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.dealID="",this.dealChannel="",this.isWinningBid=!1,this.status=0}var r=n(4),o=n(2),a=n(1);i.prototype.getAdapterID=function(){return this.adapterID},i.prototype.getBidID=function(){return this.bidID},i.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)},i.prototype.getGrossEcpm=function(){return this.grossEcpm},i.prototype.getNetEcpm=function(){return this.netEcpm},i.prototype.setDefaultBidStatus=function(t){return this.defaultBid=t,this},i.prototype.getDefaultBidStatus=function(){return this.defaultBid},i.prototype.setAdHtml=function(t){return this.adHtml=t,this},i.prototype.getAdHtml=function(){return this.adHtml},i.prototype.setAdUrl=function(t){return this.adUrl=t,this},i.prototype.getAdUrl=function(){return this.adUrl},i.prototype.setHeight=function(t){return this.height=t,this},i.prototype.getHeight=function(){return this.height},i.prototype.setWidth=function(t){return this.width=t,this},i.prototype.getWidth=function(){return this.width},i.prototype.getKGPV=function(){return this.kgpv},i.prototype.setKeyValuePair=function(t,e){return this.keyValuePairs[t]=e,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(t){return this.receivedTime=t,this},i.prototype.getReceivedTime=function(){return this.receivedTime},i.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},i.prototype.getDealID=function(){return this.dealID},i.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},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(t){return this.status=t,this},i.prototype.getStatus=function(){return this.status},t.exports.Bid=i,e.createBid=function(t,e){return new i(t,e)}}),(function(t,e,n){function i(){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=n(5),o=n(2),a=n(1),s=null;s=this,e.getPublisherId=function(){return a.trim(r.pwt.pubid)||"0"},e.getTimeout=function(){return window.parseInt(r.pwt.t)||1e3},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.getAdapterMaskBidsStatus=function(t){var e=r.adapters,n={audienceNetwork:1};return a.isOwnProperty(n,t)?n[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.addPrebidAdapter=i,e.initConfig=function(){s.addPrebidAdapter();var t={};a.forEachOnObject(o.CONFIG,(function(e,n){t[n]=""})),a.forEachOnObject(r.adapters,(function(e,n){var i={};a.forEachOnObject(n,(function(e,n){a.isOwnProperty(t,e)||(i[e]=n)})),a.forEachOnObject(n[o.CONFIG.KEY_LOOKUP_MAP],(function(t,e){a.forEachOnObject(i,(function(t,n){e[t]=n}))}))}))}}),(function(t,e){e.pwt={t:"1000",pid:"417",gcv:"29",pdvid:"1",pubid:"156496",dataURL:"t.pubmatic.com/wl?",winURL:"t.pubmatic.com/wt?",metaDataPattern:0,sendAllBids:"0"},e.adapters={pubmatic:{publisherId:"156496",rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,kgp:"_DIV_@_W_x_H_",sk:"true"},appnexus:{rev_share:"0.0",timeout:"1000",throttle:"100",pt:0,kgp:"_DIV_@_W_x_H_",klm:{"horizontal1-1@728x90":{placementId:"12268586"},"horizontal1-1@970x250":{placementId:"12268587"},"horizontal2-1@728x90":{placementId:"12268586"},"horizontal2-1@970x250":{placementId:"12268587"},"horizontal3-1@728x90":{placementId:"12268586"},"horizontal3-1@970x250":{placementId:"12268587"},"horizontal4-1@728x90":{placementId:"12268586"},"horizontal4-1@970x250":{placementId:"12268587"},"horizontal5-1@728x90":{placementId:"12268586"},"horizontal5-1@970x250":{placementId:"12268587"},"rightrail1-1@300x250":{placementId:"12268578"},"rightrail1-1@300x600":{placementId:"12268585"},"rightrail1-2@300x250":{placementId:"12268579"},"rightrail2-1@300x250":{placementId:"12268578"},"rightrail2-1@300x600":{placementId:"12268585"},"rightrail2-2@300x250":{placementId:"12268579"},"rightrail3-1@300x250":{placementId:"12268578"},"rightrail3-1@300x600":{placementId:"12268585"},"rightrail3-2@300x250":{placementId:"12268579"},"rightrail4-1@300x250":{placementId:"12268578"},"rightrail4-1@300x600":{placementId:"12268585"},"rightrail4-2@300x250":{placementId:"12268579"},"rightrail5-1@300x250":{placementId:"12268578"},"rightrail5-1@300x600":{placementId:"12268585"},"rightrail5-2@300x250":{placementId:"12268579"},"slot1-1@300x250":{placementId:"12268593"},"slot1-2@300x250":{placementId:"12268594"},"slot1-3@300x250":{placementId:"12268595"},"slot1-4@300x250":{placementId:"12268596"},"slot2-1@300x250":{placementId:"12268593"},"slot2-2@300x250":{placementId:"12268594"},"slot2-3@300x250":{placementId:"12268595"},"slot2-4@300x250":{placementId:"12268596"},"slot3-1@300x250":{placementId:"12268593"},"slot3-2@300x250":{placementId:"12268594"},"slot3-3@300x250":{placementId:"12268595"},"slot3-4@300x250":{placementId:"12268596"},"slot4-1@300x250":{placementId:"12268593"},"slot4-2@300x250":{placementId:"12268594"},"slot4-3@300x250":{placementId:"12268595"},"slot4-4@300x250":{placementId:"12268596"},"slot5-1@300x250":{placementId:"12268593"},"slot5-2@300x250":{placementId:"12268594"},"slot5-3@300x250":{placementId:"12268595"},"slot5-4@300x250":{placementId:"12268596"}}}}}),(function(t,e,n){function i(t){u.isOwnProperty(window.PWT.bidMap,t)||(window.PWT.bidMap[t]=c.createBMEntry(t))}function r(t,e,n,i){window.PWT.bidMap[t].setNewBid(e,n),window.PWT.bidIdMap[n.getBidID()]={s:t,a:e},0===n.getDefaultBidStatus()&&u.vLogInfo(t,{type:"bid",bidder:e+(0!==d.getBidPassThroughStatus(e)?"(Passthrough)":""),bidDetails:n,latency:i})}function o(t){var e=null,n={};return u.forEachOnObject(t.adapters,(function(t,i){var r=p.auctionBidsCallBack(t,i,n,e);e=r.winningBid,n=r.keyValuePairs})),{wb:e,kvp:n}}function a(t,e,n,i){return""!=e.getLastBidID()?(u.forEachOnObject(e.bids,(function(e,r){return r.getPostTimeoutStatus()===!0?{winningBid:i,keyValuePairs:n}:(0===d.getBidPassThroughStatus(t)&&r.getNetEcpm()>0&&u.copyKeyValueObject(n,r.getKeyValuePairs()),0!==d.getBidPassThroughStatus(t)?(u.copyKeyValueObject(n,r.getKeyValuePairs()),{winningBid:i,keyValuePairs:n}):(null==i?i=r:i.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:n}},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,n=window.PWT.bidIdMap[t].a;if(u.isOwnProperty(window.PWT.bidMap,e)){u.log("BidID: "+t+", DivID: "+e+l.MESSAGES.M19+n);var i=window.PWT.bidMap[e].getBid(n,t);return null==i?null:{bid:i,slotid:e}}return u.log(l.MESSAGES.M25+t),null},e.displayCreative=function(t,e){var n=p.getBidById(e);if(n){var i=n.bid,r=n.slotid;u.displayCreative(t,i),u.vLogInfo(r,{type:"disp",adapter:i.getAdapterID()}),p.executeMonetizationPixel(r,i)}},e.executeAnalyticsPixel=function(){var t={s:[]},e=d.getAnalyticsPixelURL(),n={};e&&(e=u.metaInfo.protocol+e+"pubid="+d.getPublisherId()+"&json=",t[l.CONFIG.PUBLISHER_ID]=d.getPublisherId(),t[l.LOGGER_PIXEL_PARAMS.TIMEOUT]=""+d.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]=d.getProfileID(),t[l.CONFIG.PROFILE_VERSION_ID]=d.getProfileDisplayVersionID(),u.forEachOnObject(window.PWT.bidMap,(function(t,e){p.analyticalPixelCallback(t,e,n)})),u.forEachOnObject(n,(function(n,i){i.length>0&&(t.s=i,t[l.COMMON.IMPRESSION_ID]=window.encodeURIComponent(n),(new window.Image).src=e+window.encodeURIComponent(JSON.stringify(t)))})))},e.executeMonetizationPixel=function(t,e){var n=d.getMonetizationPixelURL();n&&(n+="pubid="+d.getPublisherId(),n+="&purl="+window.encodeURIComponent(u.metaInfo.pageURL),n+="&tst="+u.getCurrentTimestamp(),n+="&iid="+window.encodeURIComponent(window.PWT.bidMap[t].getImpressionID()),n+="&bidid="+window.encodeURIComponent(e.getBidID()),n+="&pid="+window.encodeURIComponent(d.getProfileID()),n+="&pdvid="+window.encodeURIComponent(d.getProfileDisplayVersionID()),n+="&slot="+window.encodeURIComponent(t),n+="&pn="+window.encodeURIComponent(e.getAdapterID()),n+="&en="+window.encodeURIComponent(e.getNetEcpm()),n+="&eg="+window.encodeURIComponent(e.getGrossEcpm()),n+="&kgpv="+window.encodeURIComponent(e.getKGPV()),p.setImageSrcToPixelURL(n))},e.analyticalPixelCallback=s,e.setImageSrcToPixelURL=function(t){var e=new window.Image;e.src=u.metaInfo.protocol+t}}),(function(t,e,n){function i(t){this.name=t,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(8).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(t,e){o.isOwnProperty(this.adapters,t)||(this.adapters[t]=new a(t)),this.adapters[t].setNewBid(e)},i.prototype.getBid=function(t,e){return o.isOwnProperty(this.adapters,t)?this.adapters[t].getBid(e):void 0},i.prototype.getName=function(){return this.name},i.prototype.getCreationTime=function(){return this.creationTime},i.prototype.setImpressionID=function(t){return this.impressionID=t,this},i.prototype.getImpressionID=function(){return this.impressionID},i.prototype.setSizes=function(t){return this.sizes=t,this},i.prototype.getSizes=function(){return this.sizes},i.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},i.prototype.getLastBidIDForAdapter=function(t){return o.isOwnProperty(this.adapters,t)?this.adapters[t].getLastBidID():""},t.exports.BMEntry=i,e.createBMEntry=function(t){return new i(t)}}),(function(t,e,n){function i(t){this.adapterID=t,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(t){return r.isOwnProperty(this.bids,t)?this.bids[t]:null},i.prototype.setNewBid=function(t){delete this.bids[this.lastBidID];var e=t.getBidID();this.bids[e]=t,this.lastBidID=e},t.exports.AdapterEntry=i}),(function(t,e,n){function i(t){Y.isObject(t)&&(re=t)}function r(){return re}function o(t){var e=0;try{var n=t.getSlotId().getId().split("_");e=parseInt(n[n.length-1])}catch(i){}return e}function a(t,e){if(!Y.isOwnProperty(e,t))return!1;var n=e[t],i=Y.getScreenWidth(oe.getWindowReference()),r=Y.getScreenHeight(oe.getWindowReference());if(Y.log(t+": responsiveSizeMapping found: screenWidth: "+i+", screenHeight: "+r),Y.log(n),!Y.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&&!Y.isArray(n[o][1][0])){if(2==n[o][1].length&&Y.isNumber(n[o][1][0])&&Y.isNumber(n[o][1][1]))return[n[o][1]];Y.log(t+": Unsupported mapping template."),Y.log(n)}return n[o][1]}}return!1}function s(t,e){var n=oe.getSizeFromSizeMapping(t,oe.slotSizeMapping);if(n!==!1)return Y.log(t+": responsiveSizeMapping applied: "),Y.log(n),n;var i=[];return Y.isFunction(e.getSizes)&&Y.forEachOnArray(e.getSizes(),(function(e,n){Y.isFunction(n.getWidth)&&Y.isFunction(n.getHeight)?i.push([n.getWidth(),n.getHeight()]):(Y.log(t+", size object does not have getWidth and getHeight method. Ignoring: "),Y.log(n))})),i}function d(t,e){Y.isObject(t)&&Y.isFunction(t.getDivID)&&Y.isArray(e)&&e[0]&&e[0]==t.getDivID()&&(t.setDisplayFunctionCalled(!0),t.setArguments(e))}function l(t,e,n){if(Y.isOwnProperty(oe.slotsMap,t))n||oe.slotsMap[t].setSizes(oe.getAdSlotSizesArray(t,e));else{var i=J.createSlot(t);i.setDivID(t),i.setPubAdServerObject(e),i.setAdUnitID(e.getAdUnitPath()),i.setAdUnitIndex(oe.getAdUnitIndex(e)),i.setSizes(oe.getAdSlotSizesArray(t,e)),i.setStatus(K.SLOT_STATUS.CREATED),Z&&Y.isObject(JSON)&&Y.isFunction(JSON.stringify)&&Y.forEachOnArray(e.getTargetingKeys(),(function(t,n){i.setKeyValue(n,e.getTargeting(n))})),oe.slotsMap[t]=i,Y.createVLogInfoPanel(t,i.getSizes())}}function u(t){if(Y.isObject(t)&&Y.isFunction(t.getSlotId)){var e=t.getSlotId();if(e&&Y.isFunction(e.getDomId))return e.getDomId()}return""}function c(t,e,n){Y.log("Generating slotsMap"),Y.forEachOnArray(t,(function(t,i){var r=oe.generateSlotName(i);oe.storeInSlotsMap(r,i,n),n&&Y.isOwnProperty(oe.slotsMap,r)&&oe.setDisplayFunctionCalledIfRequired(oe.slotsMap[r],e)})),Y.log(oe.slotsMap)}function p(t){return Y.isOwnProperty(oe.slotsMap,t)?oe.slotsMap[t].getStatus():K.SLOT_STATUS.DISPLAYED}function g(t,e){Y.isOwnProperty(oe.slotsMap,t)&&oe.slotsMap[t].updateStatusAfterRendering(e)}function f(t){var e=[];return Y.forEachOnObject(oe.slotsMap,(function(n,i){Y.isOwnProperty(t,i.getStatus())&&e.push(n)})),e}function h(t){var e,n={};Y.isOwnProperty(oe.slotsMap,t)&&(e=oe.slotsMap[t].getPubAdServerObject(),Y.forEachOnArray(e.getTargetingKeys(),(function(t,i){n[i]=e.getTargeting(i)})),e.clearTargeting(),Y.forEachOnObject(n,(function(t,n){Y.isOwnProperty(oe.wrapperTargetingKeys,t)||e.setTargeting(t,n)})))}function I(t,e,n){Y.forEachOnArray(t,(function(t,i){if(Y.isOwnProperty(oe.slotsMap,i)){var r=oe.slotsMap[i];r.setStatus(K.SLOT_STATUS.PARTNERS_CALLED),n&&(oe.removeDMTargetingFromSlot(i),r.setRefreshFunctionCalled(!0),r.setArguments(e))}}))}function m(t){var e=[];return Y.forEachOnArray(t,(function(t,n){e.push(oe.slotsMap[n])})),e}function w(t){var e={};return Y.forEachOnObject(t,(function(t,n){e[n]=""})),e}function S(t){var e=q.getBid(t),n=e.wb||null,i=e.kvp||null,r=oe.slotsMap[t].getPubAdServerObject(),o=K.IGNORE_PREBID_KEYS;if(Y.log("DIV: "+t+" winningBid: "),Y.log(n),n&&n.getNetEcpm()>0){oe.slotsMap[t].setStatus(K.SLOT_STATUS.TARGETING_ADDED),r.setTargeting(K.WRAPPER_TARGETING_KEYS.BID_ID,n.getBidID()),r.setTargeting(K.WRAPPER_TARGETING_KEYS.BID_STATUS,n.getStatus()),r.setTargeting(K.WRAPPER_TARGETING_KEYS.BID_ECPM,n.getNetEcpm().toFixed(K.COMMON.BID_PRECISION));var a=n.getDealID();a&&r.setTargeting(K.WRAPPER_TARGETING_KEYS.BID_DEAL_ID,a),r.setTargeting(K.WRAPPER_TARGETING_KEYS.BID_ADAPTER_ID,n.getAdapterID()),r.setTargeting(K.WRAPPER_TARGETING_KEYS.PUBLISHER_ID,V.getPublisherId()),r.setTargeting(K.WRAPPER_TARGETING_KEYS.PROFILE_ID,V.getProfileID()),r.setTargeting(K.WRAPPER_TARGETING_KEYS.PROFILE_VERSION_ID,V.getProfileDisplayVersionID())}Y.forEachOnObject(i,(function(t,e){Y.isOwnProperty(o,t)||(r.setTargeting(t,e),oe.defineWrapperTargetingKey(t))}))}function E(t){Y.isObject(oe.wrapperTargetingKeys)||(oe.wrapperTargetingKeys={}),oe.wrapperTargetingKeys[t]=""}function y(t,e){return Y.isObject(t)&&Y.isFunction(e)?function(){return $=!0,Y.log("Disable Initial Load is called"),e.apply(t,arguments)}:(Y.log("disableInitialLoad: originalFunction is not a function"),null)}function A(t,e){return Y.isObject(t)&&Y.isFunction(e)?function(){return Y.log("enableSingleRequest is called"),e.apply(t,arguments)}:(Y.log("disableInitialLoad: originalFunction is not a function"),null)}function T(t,e){return Y.isObject(t)&&Y.isFunction(e)?function(){var n=arguments,i=n[0]?n[0]:null;return null!=i&&(Y.isOwnProperty(ie,i)||(ie[i]=[]),ie[i]=ie[i].concat(n[1])),e.apply(t,arguments)}:(Y.log("setTargeting: originalFunction is not a function"),null)}function P(t,e){return Y.isObject(t)&&Y.isFunction(e)?function(){var n=arguments[0]||window.googletag.pubads().getSlots();return Y.forEachOnArray(n,(function(t,e){delete ne[oe.generateSlotName(e)]})),e.apply(t,arguments)}:(Y.log("destroySlots: originalFunction is not a function"),null)}function D(t,e,n,i){Y.log(t),Y.log(i),oe.updateStatusAfterRendering(i[0],!1),n.apply(e,i)}function b(t,e){var n=e.getStatus();n!=K.SLOT_STATUS.DISPLAYED&&n!=K.SLOT_STATUS.TARGETING_ADDED&&oe.findWinningBidAndApplyTargeting(t)}function O(t,e,n){oe.getStatusOfSlotForDivId(n[0])!=K.SLOT_STATUS.DISPLAYED?oe.updateStatusAndCallOriginalFunction_Display("Calling original display function after timeout with arguments, ",t,e,n):Y.log("AdSlot already rendered")}function v(t,e,n,i){switch(t){case K.SLOT_STATUS.CREATED:case K.SLOT_STATUS.PARTNERS_CALLED:window.setTimeout((function(){Y.log("PostTimeout.. back in display function"),Y.forEachOnObject(oe.slotsMap,(function(t,e){oe.findWinningBidIfRequired_Display(t,e)})),oe.processDisplayCalledSlot(e,n,i)}),V.getTimeout());break;case K.SLOT_STATUS.TARGETING_ADDED:oe.updateStatusAndCallOriginalFunction_Display("As DM processing is already done, Calling original display function with arguments",e,n,i);break;case K.SLOT_STATUS.DISPLAYED:oe.updateStatusAndCallOriginalFunction_Display("As slot is already displayed, Calling original display function with arguments",e,n,i)}}function R(t,e,n){if(t.length>0){oe.updateStatusOfQualifyingSlotsBeforeCallingAdapters(t,e,n);var i=oe.arrayOfSelectedSlots(t);Q.callAdapters(i)}}function M(t,e){return Y.isObject(t)&&Y.isFunction(e)?function(){if(Y.log("In display function, with arguments: "),Y.log(arguments),$)return Y.log("DisableInitialLoad was called, Nothing to do"),e.apply(t,arguments);oe.updateSlotsMapFromGoogleSlots(t.pubads().getSlots(),arguments,!0),oe.displayFunctionStatusHandler(p(arguments[0]),t,e,arguments);var n={};n[K.SLOT_STATUS.CREATED]="",oe.forQualifyingSlotNamesCallAdapters(f(n),arguments,!1);var i=arguments[0];setTimeout((function(){Y.realignVLogInfoPanel(i),q.executeAnalyticsPixel()}),2e3+V.getTimeout())}:(Y.log("display: originalFunction is not a function"),null)}function _(t){oe.displayHookIsAdded||(oe.displayHookIsAdded=!0,Y.log("Adding hook on googletag.display."),Y.addHookOnFunction(t,!1,"display",this.newDisplayFunction))}function B(t,e,n){return Y.isOwnProperty(oe.slotsMap,t)&&oe.slotsMap[t].isRefreshFunctionCalled()===!0&&oe.slotsMap[t].getStatus()!==K.SLOT_STATUS.DISPLAYED?(oe.findWinningBidAndApplyTargeting(e),oe.updateStatusAfterRendering(e,!0),!0):n}function L(t,e){Y.createVLogInfoPanel(t,oe.slotsMap[e].getSizes()),Y.realignVLogInfoPanel(t),q.executeAnalyticsPixel()}function C(t,e,n,i){Y.log("Executing post timeout events, arguments: "),Y.log(i);var r=!1;Y.forEachOnArray(t,(function(t,e){var n=oe.slotsMap[e].getDivID();r=oe.findWinningBidIfRequired_Refresh(e,n,r),window.setTimeout((function(){oe.postRederingChores(n,e)}),2e3)})),this.callOriginalRefeshFunction(r,e,n,i)}function F(t,e,n,i){t===!0?(Y.log("Calling original refresh function post timeout"),n.apply(e,i)):Y.log("AdSlot already rendered")}function x(t,e){var n=[],i=[];return i=0==t.length||null==t[0]?e.getSlots():t[0],Y.forEachOnArray(i,(function(t,e){var i=oe.generateSlotName(e);i.length>0&&(n=n.concat(i))})),n}function N(t,e){return Y.isObject(t)&&Y.isFunction(e)?function(){Y.log("In Refresh function"),oe.updateSlotsMapFromGoogleSlots(t.getSlots(),arguments,!1);var n=x(arguments,t);oe.forQualifyingSlotNamesCallAdapters(n,arguments,!0),Y.log("Intiating Call to original refresh function with Timeout: "+V.getTimeout()+" ms");var i=arguments;setTimeout((function(){oe.postTimeoutRefreshExecution(n,t,e,i)}),V.getTimeout())}:(Y.log("refresh: originalFunction is not a function"),null)}function U(t,e){return Y.isObject(t)&&Y.isFunction(e)?function(){return ee[oe.generateSlotName(this)]=arguments[0],e.apply(this,arguments)}:(Y.log("newSizeMappingFunction: originalFunction is not a function"),null)}function G(t){if(Y.isObject(t)&&Y.isFunction(t.defineSlot)){var e=t.defineSlot("/Harshad",[[728,90]],"Harshad-02051986");if(e)return Y.addHookOnFunction(e,!0,"defineSizeMapping",oe.newSizeMappingFunction),t.destroySlots([e]),!0}return!1}function W(t){if(Y.isObject(t)&&Y.isObject(t.googletag)&&Y.isFunction(t.googletag.pubads)){var e=t.googletag,n=e.pubads();return Y.isObject(n)?(oe.addHookOnSlotDefineSizeMapping(e),Y.addHookOnFunction(n,!1,"disableInitialLoad",oe.newDisableInitialLoadFunction),Y.addHookOnFunction(n,!1,"enableSingleRequest",oe.newEnableSingleRequestFunction),oe.newAddHookOnGoogletagDisplay(e),Y.addHookOnFunction(n,!1,"refresh",oe.newRefreshFuncton),Y.addHookOnFunction(n,!1,"setTargeting",oe.newSetTargetingFunction),Y.addHookOnFunction(e,!1,"destroySlots",oe.newDestroySlotsFunction),!0):!1}return!1}function k(t){return Y.isObject(t)?(t.googletag=t.googletag||{},t.googletag.cmd=t.googletag.cmd||[],!0):!1}function H(t){if(Y.isUndefined(t.google_onload_fired)&&Y.isObject(t.googletag)&&Y.isArray(t.googletag.cmd)&&Y.isFunction(t.googletag.cmd.unshift)){Y.log("Succeeded to load before GPT");var e=this;return t.googletag.cmd.unshift((function(){Y.log("OpenWrap initialization started"),e.addHooks(t),Y.log("OpenWrap initialization completed")})),!0}return Y.log("Failed to load before GPT"),!1}function z(t){return Y.isObject(t)&&Y.isObject(t.PWT)&&Y.isFunction(t.PWT.jsLoaded)?(t.PWT.jsLoaded(),!0):!1}function j(t){t.PWT.safeFrameMessageListenerAdded||(Y.addMessageEventListenerForSafeFrame(t),t.PWT.safeFrameMessageListenerAdded=!0)}var V=n(4),K=n(2),Y=n(1),q=n(6),Q=n(10),J=n(12),X=!1;e.displayHookIsAdded=X;var $=!1,Z=!0,te={};e.wrapperTargetingKeys=te;var ee={};e.slotSizeMapping=ee;var ne={};e.slotsMap=ne;var ie={},re=null,oe=this;e.setWindowReference=i,e.getWindowReference=r,e.getAdUnitIndex=o,e.getSizeFromSizeMapping=a,e.getAdSlotSizesArray=s,e.setDisplayFunctionCalledIfRequired=d,e.storeInSlotsMap=l,e.generateSlotName=u,e.updateSlotsMapFromGoogleSlots=c,e.getStatusOfSlotForDivId=p,e.updateStatusAfterRendering=g,e.getSlotNamesByStatus=f,e.removeDMTargetingFromSlot=h,e.updateStatusOfQualifyingSlotsBeforeCallingAdapters=I,e.arrayOfSelectedSlots=m,e.defineWrapperTargetingKeys=w,e.findWinningBidAndApplyTargeting=S,e.defineWrapperTargetingKey=E,e.newDisableInitialLoadFunction=y,e.newEnableSingleRequestFunction=A,e.newSetTargetingFunction=T,e.newDestroySlotsFunction=P,e.updateStatusAndCallOriginalFunction_Display=D,e.findWinningBidIfRequired_Display=b,e.processDisplayCalledSlot=O,e.displayFunctionStatusHandler=v,e.forQualifyingSlotNamesCallAdapters=R,e.newDisplayFunction=M,e.newAddHookOnGoogletagDisplay=_,e.findWinningBidIfRequired_Refresh=B,e.postRederingChores=L,e.postTimeoutRefreshExecution=C,e.callOriginalRefeshFunction=F,e.getQualifyingSlotNamesForRefresh=x,e.newRefreshFuncton=N,e.newSizeMappingFunction=U,e.addHookOnSlotDefineSizeMapping=G,e.addHooks=W,e.defineGPTVariables=k,e.addHooksIfPossible=H,e.callJsLoadedIfRequired=z,e.initSafeFrameListener=j,e.init=function(t){return V.initConfig(),Y.isObject(t)?(oe.setWindowReference(t),oe.initSafeFrameListener(t),oe.wrapperTargetingKeys=oe.defineWrapperTargetingKeys(K.WRAPPER_TARGETING_KEYS),oe.defineGPTVariables(t),Q.registerAdapters(),oe.addHooksIfPossible(t),oe.callJsLoadedIfRequired(t),!0):!1}}),(function(t,e,n){function i(){return Math.floor(100*Math.random())}function r(t,e,n){p.forEachOnObject(t,(function(t,i){I.setInitTimeForSlotsForAdapter(e,t),i.fB(e,n)}))}function o(t,e){p.forEachOnArray(t,(function(t,n){var i=n.getDivID();g.resetBid(i,e),g.setSizes(i,p.generateSlotNamesFromPattern(n,"_W_x_H_"))}))}function a(t,e){return!(t>=u.getAdapterThrottle(e))}function s(t,e){p.forEachOnObject(t,(function(t,n){g.setCallInitTime(n.getDivID(),e)}))}function d(t){if(t){var e=t.ID();p.isFunction(t.fB)?I.registeredAdapters[e]=t:p.log(e+c.MESSAGES.M3)}else p.log(c.MESSAGES.M3),p.log(t)}function l(){I.registerAdapter(f.register())}var u=n(4),c=n(2),p=n(1),g=n(6),f=n(11),h={};e.registeredAdapters=h;var I=this;e.callAdapters=function(t){var e=p.generateUUID();I.resetSlots(t,e),I.callAdapter(h,t,e)},e.getRandomNumberBelow100=i,e.callAdapter=r,e.resetSlots=o,e.throttleAdapter=a,e.setInitTimeForSlotsForAdapter=s,e.registerAdapter=d,e.registerAdapters=l}),(function(t,e,n){function i(t,e){var n=p.createBid(t.bidderCode,e);return n.setGrossEcpm(t.cpm),n.setDealID(t.dealId),n.setDealChannel(t.dealChannel),n.setAdHtml(t.ad||""),n.setAdUrl(t.adUrl||""),n.setWidth(t.width),n.setHeight(t.height),n.setReceivedTime(t.responseTimestamp),g.forEachOnObject(t.adserverTargeting,(function(t,e){n.setKeyValuePair(t,e)})),n}function r(t){var e=t.adUnitCode||"";g.isOwnProperty(E.kgpvMap,e)&&t.bidderCode&&f.setBidFromBidder(E.kgpvMap[e].divID,E.transformPBBidToOWBid(t,E.kgpvMap[e].kgpv))}function o(t){for(var e in t)if(g.isOwnProperty(t,e)&&g.isOwnProperty(E.kgpvMap,e))for(var n=t[e],r=n.bids||[],o=0;o0&&window[n])try{if(g.isFunction(window[n].setBidderSequence)&&window[n].setBidderSequence("random"),!g.isFunction(window[n].requestBids))return g.log("PreBid js requestBids function is not available"),void 0;window[n].requestBids({adUnits:o,bidsBackHandler:function(t){g.log("In PreBid bidsBackHandler with bidResponses: "),g.log(t)},timeout:u.getTimeout()-50})}catch(s){g.log("Error occured in calling PreBid."),g.log(s)}}function l(){return E.parentAdapterID}var u=n(4),c=n(2),p=n(3),g=n(1),f=n(6),h=n(10),I=(n(5),c.COMMON.PARENT_ADAPTER_PREBID),m="pbjs",w=0;e.parentAdapterID=I;var S={};e.kgpvMap=S;var E=this;e.transformPBBidToOWBid=i,e.pbBidStreamHandler=r,e.handleBidResponses=o,e.generatedKeyCallback=a,e.generatePbConf=s,e.fetchBids=d,e.getParenteAdapterID=l,e.register=function(){return{fB:E.fetchBids,ID:E.getParenteAdapterID}}}),(function(t,e,n){function i(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=n(2);i.prototype.getName=function(){return this.name},i.prototype.setStatus=function(t){return this.status=t,this},i.prototype.getStatus=function(){return this.status},i.prototype.setDivID=function(t){return this.divID=t,this},i.prototype.getDivID=function(){return this.divID},i.prototype.setAdUnitID=function(t){return this.adUnitID=t,this},i.prototype.getAdUnitID=function(){return this.adUnitID},i.prototype.setAdUnitIndex=function(t){return this.adUnitIndex=t,this},i.prototype.getAdUnitIndex=function(){return this.adUnitIndex},i.prototype.setSizes=function(t){return this.sizes=t,this},i.prototype.getSizes=function(){return this.sizes},i.prototype.setKeyValue=function(t,e){return this.keyValues[t]=e,this},i.prototype.setKeyValues=function(t){return this.keyValues=t,this},i.prototype.getkeyValues=function(){return this.keyValues},i.prototype.setArguments=function(t){return this.arguments=t,this},i.prototype.getArguments=function(){return this.arguments},i.prototype.setPubAdServerObject=function(t){return this.pubAdServerObject=t,this},i.prototype.getPubAdServerObject=function(){return this.pubAdServerObject},i.prototype.setDisplayFunctionCalled=function(t){return this.displayFunctionCalled=t,this},i.prototype.isDisplayFunctionCalled=function(){return this.displayFunctionCalled},i.prototype.setRefreshFunctionCalled=function(t){return this.refreshFunctionCalled=t,this},i.prototype.isRefreshFunctionCalled=function(){return this.refreshFunctionCalled},i.prototype.updateStatusAfterRendering=function(t){this.status=r.SLOT_STATUS.DISPLAYED,this.arguments=[],t?this.refreshFunctionCalled=!1:this.displayFunctionCalled=!1},t.exports.Slot=i,e.createSlot=function(t){return new i(t)}})]);