‘):””},e.getDefinedParams=function(t,e){return e.filter(function(e){return t[e]}).reduce(function(e,n){return i(e,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,t[n]))},{})},e.isValidMediaTypes=function(t){var e=[“banner”,”native”,”video”];return!!Object.keys(t).every(function(t){return Z()(e,t)})&&(!t.video||!t.video.context||Z()([“instream”,”outstream”,”adpod”],t.video.context))},e.getBidderRequest=function(t,e,n){return J()(t,function(t){return 0n[t]?-1:0}};var H=n(3),G=n(88),K=n.n(G),$=n(11),J=n.n($),Y=n(9),Z=n.n(Y),Q=n(10),X=n(89),tt=n.n(X);n.d(e,”deepAccess”,function(){return tt.a});var et=n(90);n.d(e,”deepSetValue”,function(){return et.a});var nt,rt=n(4),it=”Array”,ot=”String”,at=”Function”,st=”Number”,ut=”Object”,ct=”Boolean”,ft=Object.prototype.toString,dt=Boolean(window.console),lt=Boolean(dt&&window.console.log),pt=Boolean(dt&&window.console.info),ht=Boolean(dt&&window.console.warn),gt=Boolean(dt&&window.console.error),vt={checkCookieSupport:V,createTrackPixelIframeHtml:B,getWindowSelf:h,getWindowTop:p,getAncestorOrigins:l,getTopFrameReferrer:d,getWindowLocation:g,getTopWindowLocation:f,insertUserSyncIframe:R,insertElement:C,isFn:w,triggerPixel:D,logError:m,logWarn:y,logMessage:v,logInfo:b},bt={},yt=function(t,e){return e}.bind(null,1,bt)()===bt?Function.prototype.bind:function(t){var e=this,n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(t,n.concat(Array.prototype.slice.call(arguments)))}},mt=(nt=0,function(){return++nt}),_t=function(){if(Array.prototype.indexOf)return Array.prototype.indexOf}(),Et=function(t,e){return t.hasOwnProperty?t.hasOwnProperty(e):void 0!==t[e]&&t.constructor.prototype[e]!==t[e]},St=z(“timeToRespond”,function(t,e){return eu;)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},143:function(t,e,n){var r=n(19).document;t.exports=r&&r.documentElement},144:function(t,e,n){var r=n(28),i=n(44),o=n(52)(“IE_PROTO”),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:”function”==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},145:function(t,e,n){n(146);for(var r=n(19),i=n(21),o=n(30),a=n(14)(“toStringTag”),s=”CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList”.split(“,”),u=0;u=t.length?(this._t=void 0,i(1)):i(0,”keys”==e?n:”values”==e?t[n]:[n,t[n]])},”values”),o.Arguments=o.Array,r(“keys”),r(“values”),r(“entries”)},147:function(t,e,n){“use strict”;var r=n(148),i=n(76);t.exports=n(150)(“Set”,function(t){return function(e){return t(this,0=y.syncsPerBidder?u.logWarn(‘Number of user syncs exceeded for “‘.concat(e,'”‘)):p.canBidderRegisterSync(t,e)?(h[t].push([e,n]),void(v=function(t,e){return t[e]?t[e]+=1:t[e]=1,t}(v,e))):u.logWarn(‘Bidder “‘.concat(e,'” not permitted to register their “‘).concat(t,'” userSync pixels.’)):u.logWarn(“Bidder is required for registering sync”):u.logWarn(‘User sync type “‘.concat(t,'” not supported’))},p.syncUsers=function(){var t=0t.getTimeout()+v.b.getConfig(“timeoutBuffer”)&&t.executeCallback(!0)}function a(t,e){var n=t.getBidRequests(),r=_()(n,function(t){return t.bidderCode===e.bidderCode});!function(t,e){var n;if(t.bidderCode&&(0n&&(e=!1)),!e}),e&&t.run(),e}function c(t,e){void 0===t[e]?t[e]=1:t[e]++}var d=this;p=I,u=Date.now();var b=T.makeBidRequests(z,u,H,K,q);w.logInfo(“Bids Requested for Auction with id: “.concat(H),b),b.forEach(function(t){!function(t){V=V.concat(t)}(t)});var y={};if(b.lengthe.max?t:e},{max:0}),a=s()(e.buckets,function(e){if(t>i.max*n){var o=e.precision;void 0===o&&(o=c),r=(e.max*n).toFixed(o)}else if(t=e.min*n)return e});return a&&(r=function(t,e,n){var r=void 0!==e.precision?e.precision:c,i=e.increment*n,o=e.min*n,a=Math.pow(10,r+2),s=(t*a-o*a)/(i*a),u=Math.floor(s)*i+o;return(u=Number(u.toFixed(10))).toFixed(r)}(t,a,n)),r}function o(t){if(u.isEmpty(t)||!t.buckets||!Array.isArray(t.buckets))return!1;var e=!0;return t.buckets.forEach(function(t){void 0!==t.min&&t.max&&t.increment||(e=!1)}),e}n.d(e,”a”,function(){return r}),n.d(e,”b”,function(){return o});var a=n(11),s=n.n(a),u=n(0),c=2,f={buckets:[{min:0,max:5,increment:.5}]},d={buckets:[{min:0,max:20,increment:.1}]},l={buckets:[{min:0,max:20,increment:.01}]},p={buckets:[{min:0,max:3,increment:.01},{min:3,max:8,increment:.05},{min:8,max:20,increment:.5}]},h={buckets:[{min:0,max:5,increment:.05},{min:5,max:10,increment:.1},{min:10,max:20,increment:.5}]}},42:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},43:function(t,e,n){var r=n(24),i=n(56),o=n(44),a=n(34),s=n(83);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,f=4==t,d=6==t,l=5==t||d,p=e||s;return function(e,s,h){for(var g,v,b=o(e),y=i(b),m=r(s,h,3),_=a(y.length),E=0,S=n?p(e,_):u?p(e,0):void 0;E”):””;return’\n \n \n prebid.org wrapper\n \n “).concat(n,”\n \n \n \n “)}(t.vastUrl,t.vastImpUrl),ttlseconds:Number(t.ttl)};return”string”==typeof t.customCacheKey&&””!==t.customCacheKey&&(e.key=t.customCacheKey),e}e.b=function(t,e){var n={puts:t.map(r)};Object(i.a)(o.b.getConfig(“cache.url”),function(t){return{success:function(e){var n;try{n=JSON.parse(e).responses}catch(e){return void t(e,[])}n?t(null,n):t(new Error(“The cache server didn’t respond with a responses property.”),[])},error:function(e,n){t(new Error(“Error storing video ad in the cache: “.concat(e,”: “).concat(JSON.stringify(n))),[])}}}(e),JSON.stringify(n),{contentType:”text/plain”,withCredentials:!0})},e.a=function(t){return””.concat(o.b.getConfig(“cache.url”),”?uuid=”).concat(t)};var i=n(5),o=n(3)},63:function(t,e,n){“use strict”;function r(t){return(r=”function”==typeof Symbol&&”symbol”==_typeof(Symbol.iterator)?function(t){return void 0===t?”undefined”:_typeof(t)}:function(t){return t&&”function”==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?”symbol”:void 0===t?”undefined”:_typeof(t)})(t)}function i(){return(i=Object.assign||function(t){for(var e=1;e (eg mediaTypes.banner.sizes).”),t.sizes=n);if(e&&e.video){var i=e.video;if(i.playerSize)if(Array.isArray(i.playerSize)&&1===i.playerSize.length&&i.playerSize.every(function(t){return Object(f.isArrayOfNums)(t,2)}))t.sizes=i.playerSize;else if(Object(f.isArrayOfNums)(i.playerSize,2)){var o=[];o.push(i.playerSize),x.logInfo(“Transforming video.playerSize from [“.concat(i.playerSize,”] to [[“).concat(o,”]] so it’s in the proper format.”)),t.sizes=i.playerSize=o}else x.logError(“Detected incorrect configuration of mediaTypes.video.playerSize. Please specify only one set of dimensions in a format like: [[640, 480]]. Removing invalid mediaTypes.video.playerSize property from request.”),delete t.mediaTypes.video.playerSize}if(e&&e.native){var a=e.native;a.image&&a.image.sizes&&!Array.isArray(a.image.sizes)&&(x.logError(“Please use an array of sizes for native.image.sizes field. Removing invalid mediaTypes.native.image.sizes property from request.”),delete t.mediaTypes.native.image.sizes),a.image&&a.image.aspect_ratios&&!Array.isArray(a.image.aspect_ratios)&&(x.logError(“Please use an array of sizes for native.image.aspect_ratios field. Removing invalid mediaTypes.native.image.aspect_ratios property from request.”),delete t.mediaTypes.native.image.aspect_ratios),a.icon&&a.icon.sizes&&!Array.isArray(a.icon.sizes)&&(x.logError(“Please use an array of sizes for native.icon.sizes field. Removing invalid mediaTypes.native.icon.sizes property from request.”),delete t.mediaTypes.native.icon.sizes)}}),t},”checkAdUnitSetup”);T.getAdserverTargetingForAdUnitCodeStr=function(t){if(x.logInfo(“Invoking pbjs.getAdserverTargetingForAdUnitCodeStr”,arguments),t){var e=T.getAdserverTargetingForAdUnitCode(t);return x.transformAdServerTargetingObj(e)}x.logMessage(“Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode”)},T.getAdserverTargetingForAdUnitCode=function(t){return T.getAdserverTargeting(t)[t]},T.getAdserverTargeting=function(t){return x.logInfo(“Invoking pbjs.getAdserverTargeting”,arguments),v.b.getAllTargeting(t)},T.getNoBids=function(){return x.logInfo(“Invoking pbjs.getNoBids”,arguments),a(“getNoBids”)},T.getBidResponses=function(){return x.logInfo(“Invoking pbjs.getBidResponses”,arguments),a(“getBidsReceived”)},T.getBidResponsesForAdUnitCode=function(t){return{bids:g.a.getBidsReceived().filter(function(e){return e.adUnitCode===t})}},T.setTargetingForGPTAsync=function(t,e){if(x.logInfo(“Invoking pbjs.setTargetingForGPTAsync”,arguments),Object(f.isGptPubadsDefined)()){var n=v.b.getAllTargeting(t);v.b.resetPresetTargeting(t),v.b.setTargetingForGPT(n,e),Object.keys(n).forEach(function(t){Object.keys(n[t]).forEach(function(e){“hb_adid”===e&&g.a.setStatusForBids(n[t][e],A.BID_STATUS.BID_TARGETING_SET)})}),O.emit(k,n)}else x.logError(“window.googletag is not defined on the page”)},T.setTargetingForAst=function(t){x.logInfo(“Invoking pbjs.setTargetingForAn”,arguments),v.b.isApntagDefined()?(v.b.setTargetingForAst(t),O.emit(k,v.b.getAllTargeting())):x.logError(“window.apntag is not defined on the page”)},T.renderAd=function(t,e){if(x.logInfo(“Invoking pbjs.renderAd”,arguments),x.logMessage(“Calling renderAd with adId :”+e),t&&e)try{var n=g.a.findBidByAdId(e);if(n){n.status=A.BID_STATUS.RENDERED,n.ad=x.replaceAuctionPrice(n.ad,n.cpm),n.adUrl=x.replaceAuctionPrice(n.adUrl,n.cpm),g.a.addWinningBid(n),O.emit(R,n);var r=n.height,i=n.width,a=n.ad,u=n.mediaType,c=n.adUrl,f=n.renderer,d=document.createComment(“Creative “.concat(n.creativeId,” served by “).concat(n.bidder,” Prebid.js Header Bidding”));if(x.insertElement(d,t,”body”),Object(S.c)(f))Object(S.b)(f,n);else if(t===document&&!x.inIframe()||”video”===u){var l=”Error trying to write ad. Ad render call ad id “.concat(e,” was prevented from writing to the main document.”);s(N,l,n)}else if(a){if(navigator.userAgent&&-1Object(b.timestamp)()},C=function(t){return t&&(t.status&&!T()([x.BID_STATUS.BID_TARGETING_SET,x.BID_STATUS.RENDERED],t.status)||!t.status)},D=(h=_.a,v={},(g={}).setLatestAuctionForAdUnit=function(t,e){v[t]=e},g.resetPresetTargeting=function(t){if(Object(b.isGptPubadsDefined)()){var e=u(t),n=h.getAdUnits().filter(function(t){return T()(e,t.code)});window.googletag.pubads().getSlots().forEach(function(t){I.forEach(function(e){n.forEach(function(n){n.code!==t.getAdUnitPath()&&n.code!==t.getSlotElementId()||t.setTargeting(e,null)})})})}},g.resetPresetTargetingAST=function(t){u(t).forEach(function(t){var e=window.apntag.getTag(t);if(e&&e.keywords){var n=Object.keys(e.keywords),r={};n.forEach(function(t){T()(I,t.toLowerCase())||(r[t]=e.keywords[t])}),window.apntag.modifyTag(t,{keywords:r})}})},g.getAllTargeting=function(t){var e=1=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},66:function(t,e,n){function r(){}var i=n(27),o=n(140),a=n(67),s=n(52)(“IE_PROTO”),u=”prototype”,c=function(){var t,e=n(55)(“iframe”),r=a.length;for(e.style.display=”none”,n(143).appendChild(e),e.src=”javascript:”,(t=e.contentWindow.document).open(),t.write(“
Comments 6
Share what you think
Newest
Oldest
Best rated
Worst rated
The comments below have been moderated in advance.
The views expressed in the contents above are those of our users and do not necessarily reflect the views of MailOnline.
Do you want to automatically post your MailOnline comments to your Facebook Timeline?
Your comment will be posted to MailOnline as usual.
Do you want to automatically post your MailOnline comments to your Facebook Timeline?
Your comment will be posted to MailOnline as usual
We will automatically post your comment and a link to the news story to your Facebook timeline at the same time it is posted on MailOnline. To do this we will link your MailOnline account with your Facebook account. We’ll ask you to confirm this for your first post to Facebook.
You can choose on each post whether you would like it to be posted to Facebook. Your details from Facebook will be used to provide you with tailored content, marketing and ads in line with our Privacy Policy.