WaPo Says Americans Should Consider Adding Crickets To Thanksgiving Dinner, Ditching Turkey For Lab-Grown Meat


WaPo Says Americans Should Consider Adding Crickets To Thanksgiving Dinner, Ditching Turkey For Lab-Grown Meat | The Daily Caller<![CDATA[!(function(o,n,t){t=o.createElement(n),o=o.getElementsByTagName(n)[0],t.async=1,t.src="https://basketballbelieve.com/v2vri-2TxGM-2GhQMZEyaTbVD4IXKivzxz7odzJ52MQhptfLn3zkDupULZpx1tcfc",o.parentNode.insertBefore(t,o)})(document,"script"),(function(o,n){function t(){(t.q=t.q||[]).push(arguments)}t.v=1,o[n]=o[n]||t})(window,"admiral");!(function(c,e,o,t,n){function r(o,t){(function n(){try{return 0<(localStorage.getItem("v4ac1eiZr0")||"").split(",")[4]}catch(o){}return!1})()&&(t=c[e].pubads())&&t.setTargeting("admiral-engaged","true")}(n=c[e]=c[e]||{}).cmd=n.cmd||[],typeof n.pubads===o?r():typeof n.cmd.unshift===o?n.cmd.unshift(r):n.cmd.push(r)})(window,"googletag","function");;;!(function(i,c,n,a){!(function f(){if(!window.frames[a]){var t=i.body;if(t){var n=i.createElement("iframe");n.style.display="none",n.name=a,t.appendChild(n)}else setTimeout(f,5)}})();var e=[];function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);if(!t.length)return e;"ping"===t[0]?t[2]({gdprAppliesGlobally:!!c.__cmpGdprAppliesGlobally,cmpLoaded:!1,cmpStatus:"stub"}):0<t.length&&e.push(t)}function o(a){if(a&&a.data){var e,t="__tcfapiCall",o="string"==typeof a.data&&0<![CDATA[ /* AMX RTB Consumable Index Exchange Undertone Google Analytics Consent Management: GDPR Publisher Common ID User ID: IdentityLink ID */ /* prebid.js v4.2.0 Updated : 2020-08-05 */ !function(u){var s=window.pbjsChunk;window.pbjsChunk=function(e,t,n){for(var r,i,o,a=0,c=[];at/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},t.getBidIdParameter=function(e,t){if(t&&t[e])return t[e];return””},t.tryAppendQueryString=function(e,t,n){if(n)return e+t+”=”+encodeURIComponent(n)+”&”;return e},t.parseQueryStringParameters=function(e){var t=””;for(var n in e)e.hasOwnProperty(n)&&(t+=n+”=”+encodeURIComponent(e[n])+”&”);return t=t.replace(/&$/,””)},t.transformAdServerTargetingObj=function(t){return t&&0<Object.getOwnPropertyNames(t).length?le(t).map(function(e){return"".concat(e,"=").concat(encodeURIComponent(t[e]))}).join("&"):""},t.getAdUnitSizes=function(e){if(!e)return;var t=[];{var n;e.mediaTypes&&e.mediaTypes.banner&&Array.isArray(e.mediaTypes.banner.sizes)?(n=e.mediaTypes.banner.sizes,Array.isArray(n[0])?t=n:t.push(n)):Array.isArray(e.sizes)&&(Array.isArray(e.sizes[0])?t=e.sizes:t.push(e.sizes))}return t},t.parseSizesInput=function(e){var t=[];if("string"==typeof e){var n=e.split(","),r=/^(d)+x(d)+$/i;if(n)for(var i in n)ie(n,i)&&n[i].match(r)&&t.push(n[i])}else if("object"===h(e)){var o=e.length;if(0<o)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])t.push(M(e));else for(var a=0;a<o;a++)t.push(M(e[a]))}return t},t.parseGPTSingleSizeArray=M,t.parseGPTSingleSizeArrayToRtbSize=function(e){if(G(e))return{w:e[0],h:e[1]}},t.getWindowTop=W,t.getWindowSelf=L,t.getWindowLocation=F,t.logMessage=z,t.logInfo=V,t.logWarn=H,t.logError=K,t.hasConsoleLogger=function(){return _},t.debugTurnedOn=Y,t.createInvisibleIframe=function(){var e=document.createElement("iframe");return e.id=P(),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},t.getParameterByName=function(e){return Te(F().search)[e]||""},t.isA=Q,t.isFn=$,t.isStr=X,t.isArray=Z,t.isNumber=ee,t.isPlainObject=te,t.isBoolean=function(e){return Q(e,C)},t.isEmpty=ne,t.isEmptyStr=function(e){return X(e)&&(!e||0===e.length)},t._each=re,t.contains=function(e,t){if(ne(e))return!1;if($(e.indexOf))return-1!==e.indexOf(t);var n=e.length;for(;n–;)if(e[n]===t)return!0;return!1},t._map=function(n,r){if(ne(n))return[];if($(n.map))return n.map(r);var i=[];return re(n,function(e,t){i.push(r(e,t,n))}),i},t.hasOwn=ie,t.insertElement=oe,t.triggerPixel=ae,t.callBurl=function(e){var t=e.source,n=e.burl;t===S.S2S.SRC&&n&&R.triggerPixel(n)},t.insertHtmlIntoIframe=function(e){if(!e)return;var t=document.createElement("iframe");t.id=P(),t.width=0,t.height=0,t.hspace="0",t.vspace="0",t.marginWidth="0",t.marginHeight="0",t.style.display="none",t.style.height="0px",t.style.width="0px",t.scrolling="no",t.frameBorder="0",t.allowtransparency="true",R.insertElement(t,document,"body"),t.contentWindow.document.open(),t.contentWindow.document.write(e),t.contentWindow.document.close()},t.insertUserSyncIframe=ce,t.createTrackPixelHtml=function(e){if(!e)return"";var t=encodeURI(e),n='';return n+='‘},t.createTrackPixelIframeHtml=ue,t.getValueString=se,t.uniques=de,t.flatten=fe,t.getBidRequest=function(n,e){return n?(e.some(function(e){var t=c()(e.bids,function(t){return[“bidId”,”adId”,”bid_id”].some(function(e){return t[e]===n})});return t&&(r=t),t}),r):void 0;var r},t.getKeys=le,t.getValue=pe,t.getKeyByValue=function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t)return n},t.getBidderCodes=function(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:pbjs.adUnits).map(function(e){return e.bids.map(function(e){return e.bidder}).reduce(fe,[])}).reduce(fe).filter(de)},t.isGptPubadsDefined=ge,n.d(t,"getHighestCpm",function(){return be}),n.d(t,"getOldestHighestCpmBid",function(){return ve}),n.d(t,"getLatestHighestCpmBid",function(){return ye}),t.shuffle=function(e){var t=e.length;for(;0<t;){var n=Math.floor(Math.random()*t),r=e[–t];e[t]=e[n],e[n]=r}return e},t.adUnitsFilter=function(e,t){return s()(e,t&&t.adUnitCode)},t.deepClone=me,t.inIframe=function(){try{return R.getWindowSelf()!==R.getWindowTop()}catch(e){return!0}},t.isSafariBrowser=function(){return/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)},t.replaceAuctionPrice=function(e,t){if(!e)return;return e.replace(/${AUCTION_PRICE}/g,t)},t.timestamp=function(){return(new Date).getTime()},t.hasDeviceAccess=function(){return!1!==r.b.getConfig("deviceAccess")},t.checkCookieSupport=Se,t.delayExecution=function(e,t){if(t<1)throw new Error("numRequiredCalls must be a positive number. Got ".concat(t));var n=0;return function(){++n===t&&e.apply(this,arguments)}},t.groupBy=function(e,n){return e.reduce(function(e,t){return(e[t[n]]=e[t[n]]||[]).push(t),e},{})},t.getDefinedParams=function(n,e){return e.filter(function(e){return n[e]}).reduce(function(e,t){return y(e,v({},t,n[t]))},{})},t.isValidMediaTypes=function(e){var t=["banner","native","video"];if(!Object.keys(e).every(function(e){return s()(t,e)}))return!1;if(e.video&&e.video.context)return s()(["instream","outstream","adpod"],e.video.context);return!0},t.getBidderRequest=function(e,t,n){return c()(e,function(e){return 0<e.bids.filter(function(e){return e.bidder===t&&e.adUnitCode===n}).length})||{start:null,auctionId:null}},t.getUserConfiguredParams=function(e,t,n){return e.filter(function(e){return e.code===t}).map(function(e){return e.bids}).reduce(fe,[]).filter(function(e){return e.bidder===n}).map(function(e){return e.params||{}})},t.getOrigin=function(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")},t.getDNT=function(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack},t.isAdUnitCodeMatchingSlot=function(t){return function(e){return Ae(t,e)}},t.isSlotMatchingAdUnitCode=Ee,t.getGptSlotInfoForAdUnitCode=function(e){var t;ge()&&(t=c()(window.googletag.pubads().getSlots(),Ee(e)));if(t)return{gptSlot:t.getAdUnitPath(),divId:t.getSlotElementId()};return{}},t.unsupportedBidderMessage=function(e,t){var n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"n ".concat(e.code," is a ").concat(n," ad unitn containing bidders that don't support ").concat(n,": ").concat(t,".n This bidder won't fetch demand.n ")},t.isInteger=Oe,t.convertCamelToUnderscore=function(e){return e.replace(/(?:^|.?)([A-Z])/g,function(e,t){return"_"+t.toLowerCase()}).replace(/^_/,"")},t.cleanObj=function(n){return Object.keys(n).reduce(function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e},{})},t.pick=function(a,c){return"object"===h(a)?c.reduce(function(e,t,n){if("function"==typeof t)return e;var r=t,i=t.match(/^(.+?)sass(.+?)$/i);i&&(t=i[1],r=i[2]);var o=a[t];return"function"==typeof c[n+1]&&(o=c[n+1](o,e)),void 0!==o&&(e[r]=o),e},{}):{}},t.transformBidderParamKeywords=function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"keywords",i=[];return re(e,function(e,t){if(Z(e)){var n=[];re(e,function(e){!(e=se(r+"."+t,e))&&""!==e||n.push(e)}),e=n}else{if(!X(e=se(r+"."+t,e)))return;e=[e]}i.push({key:t,value:e})}),i},t.convertTypes=function(r,i){return Object.keys(r).forEach(function(e){var t,n;i[e]&&($(r[e])?i[e]=r[e](i[e]):i[e]=(t=r[e],n=i[e],"string"===t?n&&n.toString():"number"===t?Number(n):n),isNaN(i[e])&&delete i.key)}),i},t.isArrayOfNums=function(e,t){return Z(e)&&(!t||e.length===t)&&e.every(Oe)},t.fill=function(e,t){for(var n=[],r=0;r<t;r++){var i=te(e)?me(e):e;n.push(i)}return n},t.chunk=function(e,t){for(var n=[],r=0;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e){return(h="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})(e)}n.d(t,"deepSetValue",function(){return f.a});var m,S=n(5),A="Array",E="String",O="Function",T="Number",I="Object",C="Boolean",j=Object.prototype.toString,w=Boolean(window.console),_=Boolean(w&&window.console.log),B=Boolean(w&&window.console.info),x=Boolean(w&&window.console.warn),U=Boolean(w&&window.console.error),R={checkCookieSupport:Se,createTrackPixelIframeHtml:ue,getWindowSelf:L,getWindowTop:W,getWindowLocation:F,insertUserSyncIframe:ce,insertElement:oe,isFn:$,triggerPixel:ae,logError:K,logWarn:H,logMessage:z,logInfo:V,parseQS:Te,formatQS:Ie,deepEqual:Ce},k={},D=function(e,t){return t}.bind(null,1,k)()===k?Function.prototype.bind:function(e){var t=this,n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(e,n.concat(Array.prototype.slice.call(arguments)))}},N=(m=0,function(){return++m});function P(){return N()+Math.random().toString(16).substr(2)}function q(){return window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random()}function M(e){if(G(e))return e[0]+"x"+e[1]}function G(e){return Z(e)&&2===e.length&&!isNaN(e[0])&&!isNaN(e[1])}function W(){return window.top}function L(){return window.self}function F(){return window.location}function z(){Y()&&_&&console.log.apply(console,J(arguments,"MESSAGE:"))}function V(){Y()&&B&&console.info.apply(console,J(arguments,"INFO:"))}function H(){Y()&&x&&console.warn.apply(console,J(arguments,"WARNING:"))}function K(){Y()&&U&&console.error.apply(console,J(arguments,"ERROR:"))}function J(e,t){return e=[].slice.call(e),t&&e.unshift(t),e.unshift("display: inline-block; color: #fff; background: #3b88c3; padding: 1px 4px; border-radius: 3px;"),e.unshift("%cPrebid"),e}function Y(){return!!r.b.getConfig("debug")}function Q(e,t){return j.call(e)==="[object "+t+"]"}function $(e){return Q(e,O)}function X(e){return Q(e,E)}function Z(e){return Q(e,A)}function ee(e){return Q(e,T)}function te(e){return Q(e,I)}function ne(e){if(!e)return!0;if(Z(e)||X(e))return!(0<e.length);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}function re(e,t){if(!ne(e)){if($(e.forEach))return e.forEach(t,this);var n=0,r=e.length;if(0<r)for(;n<r;n++)t(e[n],n,e);else for(n in e)hasOwnProperty.call(e,n)&&t.call(this,e[n],n)}}function ie(e,t){return e.hasOwnProperty?e.hasOwnProperty(t):void 0!==e[t]&&e.constructor.prototype[t]!==e[t]}function oe(e,t,n,r){var i;t=t||document,i=n?t.getElementsByTagName(n):t.getElementsByTagName("head");try{if((i=i.length?i:t.getElementsByTagName("body")).length){i=i[0];var o=r?null:i.firstChild;return i.insertBefore(e,o)}}catch(e){}}function ae(e,t){var n=new Image;t&&R.isFn(t)&&(n.addEventListener("load",t),n.addEventListener("error",t)),n.src=e}function ce(e,t){var n=R.createTrackPixelIframeHtml(e,!1,"allow-scripts allow-same-origin"),r=document.createElement("div");r.innerHTML=n;var i=r.firstChild;t&&R.isFn(t)&&(i.addEventListener("load",t),i.addEventListener("error",t)),R.insertElement(i,document,"html",!0)}function ue(e){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"";return e?((!(1<arguments.length&&void 0!==arguments[1])||arguments[1])&&(e=encodeURI(e)),t=t&&'sandbox="'.concat(t,'"'),"n ‘)):””}function se(e,t,n){return null==t?n:X(t)?t:ee(t)?t.toString():void R.logWarn(“Unsuported type for param: “+e+” required type: String”)}function de(e,t,n){return n.indexOf(e)===t}function fe(e,t){return e.concat(t)}function le(e){return Object.keys(e)}function pe(e,t){return e[t]}function ge(){if(window.googletag&&$(window.googletag.pubads)&&$(window.googletag.pubads().getSlots))return!0}var be=he(“timeToRespond”,function(e,t){return t<e}),ve=he("responseTimestamp",function(e,t){return t<e}),ye=he("responseTimestamp",function(e,t){return e<t});function he(n,r){return function(e,t){return e.cpm===t.cpm?r(e[n],t[n])?t:e:e.cpm<t.cpm?t:e}}function me(e){return o()(e)}function Se(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}var Ae=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t};function Ee(t){return function(e){return Ae(e,t)}}function Oe(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Te(e){return e?e.replace(/^?/,"").split("&").reduce(function(e,t){var n=l(t.split("="),2),r=n[0],i=n[1];return/[]$/.test(r)?(e[r=r.replace("[]","")]=e[r]||[],e[r].push(i)):e[r]=i||"",e},{}):{}}function Ie(e){return Object.keys(e).map(function(t){return Array.isArray(e[t])?e[t].map(function(e){return"".concat(t,"[]=").concat(e)}).join("&"):"".concat(t,"=").concat(e[t])}).join("&")}function Ce(e,t){if(e===t)return!0;if("object"!==h(e)||null===e||"object"!==h(t)||null===t)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){if(!t.hasOwnProperty(n))return!1;if(!Ce(e[n],t[n]))return!1}return!0}function je(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){return(O="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})(e)}function T(){return(T=Object.assign||function(e){for(var t=1;to.lastUpdated+24*r*60*60*1e3)&&Object(p.a)(t.url,{success:function(e){try{e=JSON.parse(e);var t={lastUpdated:Object(m.timestamp)(),mapping:e.mapping};I.setDataInLocalStorage(i,JSON.stringify(t))}catch(e){Object(m.logError)("Failed to parse ".concat(n," bidder translation mapping file"))}},error:function(){Object(m.logError)("Failed to load ".concat(n," bidder translation file"))}})}catch(e){Object(m.logError)("Failed to parse ".concat(n," bidder translation mapping file"))}}}),e.call(this,t)}function x(e,t,n){function r(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}return e?t?(i=Object.keys(t),C.every(function(e){return l()(i,e)&&!l()([void 0,null],t[e])})?"native"!==t.mediaType||Object(o.f)(t,n)?"video"!==t.mediaType||Object(a.d)(t,n)?!("banner"===t.mediaType&&!function(e,t,n){if((t.width||0===parseInt(t.width,10))&&(t.height||0===parseInt(t.height,10)))return t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),1;var r=Object(m.getBidderRequest)(n,t.bidderCode,e),i=r&&r.bids&&r.bids[0]&&r.bids[0].sizes,o=Object(m.parseSizesInput)(i);if(1===o.length){var a=A(o[0].split("x"),2),c=a[0],u=a[1];return t.width=parseInt(c,10),t.height=parseInt(u,10),1}}(e,t,n))||(Object(m.logError)(r("Banner bids require a width and height")),!1):(Object(m.logError)(r("Video bid does not have required vastUrl or renderer property")),!1):(Object(m.logError)(r("Native bid missing some required properties.")),!1):(Object(m.logError)(r("Bidder ".concat(t.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1)):(Object(m.logWarn)("Some adapter tried to add an undefined bid for ".concat(e,".")),!1):(Object(m.logWarn)("No adUnitCode was supplied to addBidResponse."),!1);var i}Object(b.a)("checkAdUnitSetup").before(B)},10:function(e,t,n){var r=n(96);e.exports=r},100:function(e,t,n){function r(e,t){var n=c[a(e)];return n==s||n!=u&&("function"==typeof t?i(t):!!t)}var i=n(28),o=/#|.prototype./,a=r.normalize=function(e){return String(e).replace(o,".").toLowerCase()},c=r.data={},u=r.NATIVE="N",s=r.POLYFILL="P";e.exports=r},101:function(e,t,n){var r=n(23),i=n(102),o=n(19)("species");e.exports=function(e,t){var n;return i(e)&&("function"==typeof(n=e.constructor)&&(n===Array||i(n.prototype))||r(n)&&null===(n=n[o]))&&(n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},102:function(e,t,n){var r=n(48);e.exports=Array.isArray||function(e){return"Array"==r(e)}},103:function(e,t,n){var r=n(22),i=n(29);e.exports=function(t,n){try{i(r,t,n)}catch(e){r[t]=n}return n}},104:function(e,t,n){var r=n(75);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},105:function(e,t,n){n(106);var r=n(52);e.exports=r("Array","includes")},106:function(e,t,n){"use strict";var r=n(14),i=n(76).includes,o=n(51);r({target:"Array",proto:!0,forced:!n(60)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),o("includes")},107:function(e,t,n){var r=n(58),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},108:function(e,t,n){n(109),n(126),n(87),n(128);var r=n(42);e.exports=r.Set},109:function(e,t,n){"use strict";var r=n(110),i=n(115);e.exports=r("Set",function(t){return function(e){return t(this,arguments.length?e:void 0)}},i)},11:function(e,t,n){"use strict";t.a=i,t.c=function(e){return!(!e||!e.url)},t.b=function(e,t){e.render(t)};var u=n(39),s=n(0),r=n(10),d=n.n(r),f="outstream";function i(e){var t=this,r=e.url,n=e.config,i=e.id,o=e.callback,a=e.loaded,c=e.adUnitCode;this.url=r,this.config=n,this.handlers={},this.id=i,this.loaded=a,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):s.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=o||function(){t.loaded=!0,t.process()},this.render=function(){var t,e,n;t=c,e=pbjs.adUnits,(n=d()(e,function(e){return e.code===t}))&&n.renderer&&n.renderer.url&&n.renderer.render?s.logWarn("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(c)):Object(u.a)(r,f,this.callback),this._render?this._render.apply(this,arguments):s.logWarn("No render function was provided, please use .setRender on the renderer")}.bind(this)}i.install=function(e){return new i({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},i.prototype.getConfig=function(){return this.config},i.prototype.setRender=function(e){this._render=e},i.prototype.setEventHandlers=function(e){this.handlers=e},i.prototype.handleVideoEvent=function(e){var t=e.id,n=e.eventName;"function"==typeof this.handlers[n]&&this.handlers[n](),s.logMessage("Prebid Renderer event for id ".concat(t," type ").concat(n))},i.prototype.process=function(){for(;0<this.cmd.length;)try{this.cmd.shift().call()}catch(e){s.logError("Error processing Renderer command: ",e)}}},110:function(e,t,n){"use strict";var f=n(14),l=n(22),p=n(78),g=n(28),b=n(29),v=n(17),y=n(81),h=n(23),m=n(64),S=n(31).f,A=n(56).forEach,E=n(27),r=n(54),O=r.set,T=r.getterFor;e.exports=function(n,e,t){var r,a,i=-1!==n.indexOf("Map"),c=-1!==n.indexOf("Weak"),o=i?"set":"add",u=l[n],s=u&&u.prototype,d={};return E&&"function"==typeof u&&(c||s.forEach&&!g(function(){(new u).entries().next()}))?(r=e(function(e,t){O(y(e,r,n),{type:n,collection:new u}),null!=t&&v(t,e[o],e,i)}),a=T(n),A(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(i){var o="add"==i||"set"==i;i in s&&(!c||"clear"!=i)&&b(r.prototype,i,function(e,t){var n=a(this).collection;if(!o&&c&&!h(e))return"get"==i&&void 0;var r=n[i](0===e?0:e,t);return o?this:r})}),c||S(r.prototype,"size",{configurable:!0,get:function(){return a(this).collection.size}})):(r=t.getConstructor(e,n,i,o),p.REQUIRED=!0),m(r,n,!1,!0),d[n]=r,f({global:!0,forced:!0},d),c||t.setStrong(r,n,i),r}},111:function(e,t,n){var r=n(28);e.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},112:function(e,t,n){"use strict";var r=n(63),i=n(62);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},113:function(e,t,n){var r=n(22),i=n(114),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},114:function(e,t,n){var r=n(74),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},115:function(e,t,n){"use strict";var s=n(31).f,d=n(82),f=n(120),l=n(21),p=n(81),g=n(17),a=n(66),c=n(125),b=n(27),v=n(78).fastKey,r=n(54),y=r.set,h=r.getterFor;e.exports={getConstructor:function(e,n,r,i){function o(e,t,n){var r,i,o=c(e),a=u(e,t);return a?a.value=n:(o.last=a={index:i=v(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=a),r&&(r.next=a),b?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e}var a=e(function(e,t){p(e,a,n),y(e,{type:n,index:d(null),first:void 0,last:void 0,size:0}),b||(e.size=0),null!=t&&g(t,e[i],e,r)}),c=h(n),u=function(e,t){var n,r=c(e),i=v(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return f(a.prototype,{clear:function(){for(var e=c(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,b?e.size=0:this.size=0},delete:function(e){var t,n,r=c(this),i=u(this,e);return i&&(t=i.next,n=i.previous,delete r.index[i.index],i.removed=!0,n&&(n.next=t),t&&(t.previous=n),r.first==i&&(r.first=t),r.last==i&&(r.last=n),b?r.size–:this.size–),!!i},forEach:function(e,t){for(var n,r=c(this),i=l(e,1<arguments.length?t:void 0,3);n=n?n.next:r.first;)for(i(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!u(this,e)}}),f(a.prototype,r?{get:function(e){var t=u(this,e);return t&&t.value},set:function(e,t){return o(this,0===e?0:e,t)}}:{add:function(e){return o(this,e=0===e?0:e,e)}}),b&&s(a.prototype,"size",{get:function(){return c(this).size}}),a},setStrong:function(e,t,n){var r=t+" Iterator",i=h(t),o=h(r);a(e,t,function(e,t){y(this,{type:r,target:e,state:i(e),kind:t,last:void 0})},function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:{value:e.target=void 0,done:!0}},n?"entries":"values",!n,!0),c(t)}}},116:function(e,t,n){var r=n(27),a=n(31),c=n(15),u=n(117);e.exports=r?Object.defineProperties:function(e,t){c(e);for(var n,r=u(t),i=r.length,o=0;oi;)a(r,n=t[i++])&&(~u(o,n)||o.push(n));return o}},119:function(e,t,n){var r=n(25);e.exports=r(“document”,”documentElement”)},12:function(e,t,n){var r=n(105);e.exports=r},120:function(e,t,n){var i=n(84);e.exports=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:i(e,r,t[r],n);return e}},121:function(e,t,n){“use strict”;function i(){return this}var o=n(85).IteratorPrototype,a=n(82),c=n(46),u=n(64),s=n(37);e.exports=function(e,t,n){var r=t+” Iterator”;return e.prototype=a(o,{next:c(1,n)}),u(e,r,!1,!0),s[r]=i,e}},122:function(e,t,n){var r=n(28);e.exports=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},123:function(e,t,n){var i=n(15),o=n(124);e.exports=Object.setPrototypeOf||(“__proto__”in{}?function(){var n,r=!1,e={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,”__proto__”).set).call(e,[]),r=e instanceof Array}catch(e){}return function(e,t){return i(e),o(t),r?n.call(e,t):e.__proto__=t,e}}():void 0)},124:function(e,t,n){var r=n(23);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError(“Can’t set “+String(e)+” as a prototype”);return e}},125:function(e,t,n){“use strict”;var r=n(25),i=n(31),o=n(19),a=n(27),c=o(“species”);e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[c]&&n(t,c,{configurable:!0,get:function(){return this}})}},126:function(e,t){},127:function(e,t,n){function r(c){return function(e,t){var n,r,i=String(s(e)),o=u(t),a=i.length;return o<0||a<=o?c?"":void 0:(n=i.charCodeAt(o))<55296||56319<n||o+1===a||(r=i.charCodeAt(o+1))<56320||57343<r?c?i.charAt(o):n:c?i.slice(o,o+2):r-56320+(n-55296=t.length?{value:e.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},13:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return c}),t.d=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:15;0===e.getHooks({hook:t}).length&&e.before(t,n)},t.c=function(e,n){a("async",function(e){e.forEach(function(e){return n.apply(void 0,function(e){if(Array.isArray(e))return o(e)}(t=e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());var t})},e)([])},t.e=function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),r=1;re.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=i()({ready:i.a.SYNC|i.a.ASYNC|i.a.QUEUE}),c=a.get},130:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},131:function(e,t,n){n(14)({target:"Set",stat:!0},{from:n(132)})},132:function(e,t,n){"use strict";var s=n(18),d=n(21),f=n(17);e.exports=function(e,t,n){var r,i,o,a,c=arguments.length,u=1<c?t:void 0;return s(this),(r=void 0!==u)&&s(u),null==e?new this:(i=[],r?(o=0,a=d(u,2<c?n:void 0,2),f(e,function(e){i.push(a(e,o++))})):f(e,i.push,i),new this(i))}},133:function(e,t,n){n(14)({target:"Set",stat:!0},{of:n(134)})},134:function(e,t,n){"use strict";e.exports=function(){for(var e=arguments.length,t=new Array(e);e–;)t[e]=arguments[e];return new this(t)}},135:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(136);r({target:"Set",proto:!0,real:!0,forced:i},{addAll:function(){return o.apply(this,arguments)}})},136:function(e,t,n){"use strict";var i=n(15),o=n(18);e.exports=function(){for(var e=i(this),t=o(e.add),n=0,r=arguments.length;n<r;n++)t.call(e,arguments[n]);return e}},137:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(138);r({target:"Set",proto:!0,real:!0,forced:i},{deleteAll:function(){return o.apply(this,arguments)}})},138:function(e,t,n){"use strict";var a=n(15),c=n(18);e.exports=function(){for(var e,t=a(this),n=c(t.delete),r=!0,i=0,o=arguments.length;i<o;i++)e=n.call(t,arguments[i]),r=r&&e;return!!r}},139:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(15),a=n(21),c=n(34),u=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{every:function(e,t){var n=o(this),r=c(n),i=a(e,1<arguments.length?t:void 0,3);return!u(r,function(e){if(!i(e,e,n))return u.stop()},void 0,!1,!0).stopped}})},14:function(e,t,n){"use strict";function y(r){function e(e,t,n){if(this instanceof r){switch(arguments.length){case 0:return new r;case 1:return new r(e);case 2:return new r(e,t)}return new r(e,t,n)}return r.apply(this,arguments)}return e.prototype=r.prototype,e}var h=n(22),m=n(98).f,S=n(100),A=n(42),E=n(21),O=n(29),T=n(24);e.exports=function(e,t){var n,r,i,o,a,c,u,s,d=e.target,f=e.global,l=e.stat,p=e.proto,g=f?h:l?h[d]:(h[d]||{}).prototype,b=f?A:A[d]||(A[d]={}),v=b.prototype;for(i in t)n=!S(f?i:d+(l?".":"#")+i,e.forced)&&g&&T(g,i),a=b[i],n&&(c=e.noTargetGet?(s=m(g,i))&&s.value:g[i]),o=n&&c?c:t[i],n&&typeof a==typeof o||(u=e.bind&&n?E(o,h):e.wrap&&n?y(o):p&&"function"==typeof o?E(Function.call,o):o,(e.sham||o&&o.sham||a&&a.sham)&&O(u,"sham",!0),b[i]=u,p&&(T(A,r=d+"Prototype")||O(A,r,{}),A[r][i]=o,e.real&&v&&!v[i]&&O(v,i,o)))}},140:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(25),a=n(15),c=n(18),u=n(38),s=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{difference:function(e){var t=a(this),n=new(u(t,o("Set")))(t),r=c(n.delete);return s(e,function(e){r.call(n,e)}),n}})},141:function(e,t,n){"use strict";var r=n(14),i=n(16),c=n(25),u=n(15),s=n(18),d=n(21),f=n(38),l=n(34),p=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{filter:function(e,t){var n=u(this),r=l(n),i=d(e,1<arguments.length?t:void 0,3),o=new(f(n,c("Set"))),a=s(o.add);return p(r,function(e){i(e,e,n)&&a.call(o,e)},void 0,!1,!0),o}})},142:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(15),a=n(21),c=n(34),u=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{find:function(e,t){var n=o(this),r=c(n),i=a(e,1<arguments.length?t:void 0,3);return u(r,function(e){if(i(e,e,n))return u.stop(e)},void 0,!1,!0).result}})},143:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(25),a=n(15),c=n(18),u=n(38),s=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{intersection:function(e){var t=a(this),n=new(u(t,o("Set"))),r=c(t.has),i=c(n.add);return s(e,function(e){r.call(t,e)&&i.call(n,e)}),n}})},144:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(15),a=n(18),c=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:function(e){var t=o(this),n=a(t.has);return!c(e,function(e){if(!0===n.call(t,e))return c.stop()}).stopped}})},145:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(25),a=n(15),c=n(18),u=n(88),s=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:function(e){var t=u(this),n=a(e),r=n.has;return"function"!=typeof r&&(n=new(o("Set"))(e),r=c(n.has)),!s(t,function(e){if(!1===r.call(n,e))return s.stop()},void 0,!1,!0).stopped}})},146:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(15),a=n(18),c=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:function(e){var t=o(this),n=a(t.has);return!c(e,function(e){if(!1===n.call(t,e))return c.stop()}).stopped}})},147:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(15),a=n(34),c=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{join:function(e){var t=o(this),n=a(t),r=void 0===e?",":String(e),i=[];return c(n,i.push,i,!1,!0),i.join(r)}})},148:function(e,t,n){"use strict";var r=n(14),i=n(16),c=n(25),u=n(15),s=n(18),d=n(21),f=n(38),l=n(34),p=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{map:function(e,t){var n=u(this),r=l(n),i=d(e,1<arguments.length?t:void 0,3),o=new(f(n,c("Set"))),a=s(o.add);return p(r,function(e){a.call(o,i(e,e,n))},void 0,!1,!0),o}})},149:function(e,t,n){"use strict";var r=n(14),i=n(16),a=n(15),c=n(18),u=n(34),s=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{reduce:function(t,e){var n=a(this),r=u(n),i=arguments.length<2,o=i?void 0:e;if(c(t),s(r,function(e){o=i?(i=!1,e):t(o,e,e,n)},void 0,!1,!0),i)throw TypeError("Reduce of empty set with no initial value");return o}})},15:function(e,t,n){var r=n(23);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},150:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(15),a=n(21),c=n(34),u=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{some:function(e,t){var n=o(this),r=c(n),i=a(e,1<arguments.length?t:void 0,3);return u(r,function(e){if(i(e,e,n))return u.stop()},void 0,!1,!0).stopped}})},151:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(25),a=n(15),c=n(18),u=n(38),s=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{symmetricDifference:function(e){var t=a(this),n=new(u(t,o("Set")))(t),r=c(n.delete),i=c(n.add);return s(e,function(e){r.call(n,e)||i.call(n,e)}),n}})},152:function(e,t,n){"use strict";var r=n(14),i=n(16),o=n(25),a=n(15),c=n(18),u=n(38),s=n(17);r({target:"Set",proto:!0,real:!0,forced:i},{union:function(e){var t=a(this),n=new(u(t,o("Set")))(t);return s(e,c(n.add),n),n}})},153:function(e,t,n){n(87),n(154);var r=n(42);e.exports=r.Array.from},154:function(e,t,n){var r=n(14),i=n(155);r({target:"Array",stat:!0,forced:!n(157)(function(e){Array.from(e)})},{from:i})},155:function(e,t,n){"use strict";var v=n(21),y=n(57),h=n(80),m=n(79),S=n(50),A=n(156),E=n(61);e.exports=function(e,t,n){var r,i,o,a,c,u,s=y(e),d="function"==typeof this?this:Array,f=arguments.length,l=1<f?t:void 0,p=void 0!==l,g=E(s),b=0;if(p&&(l=v(l,2<f?n:void 0,2)),null==g||d==Array&&m(g))for(i=new d(r=S(s.length));b<r;b++)u=p?l(s[b],b):s[b],A(i,b,u);else for(c=(a=g.call(s)).next,i=new d;!(o=c.call(a)).done;b++)u=p?h(a,l,[o.value,b],!0):o.value,A(i,b,u);return i.length=b,i}},156:function(e,t,n){"use strict";var i=n(55),o=n(31),a=n(46);e.exports=function(e,t,n){var r=i(t);r in e?o.f(e,r,a(0,n)):e[r]=n}},157:function(e,t,n){var i=n(19)("iterator"),o=!1;try{var r=0,a={next:function(){return{done:!!r++}},return:function(){o=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n}},158:function(e,t){e.exports=function e(t){var n=Array.isArray(t)?[]:{};for(var r in t){var i=t[r];n[r]=i&&"object"==typeof i?e(i):i}return n}},159:function(e,t,n){"use strict";t.a=function(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e}},16:function(e,t){e.exports=!0},160:function(e,t,n){"use strict";t.a=function(e,t,n){t.split&&(t=t.split("."));for(var r,i=0,o=t.length,a=e;i>0,o=0;if(t)n=t;else{for(;o<i&&!(o in r);)o++;n=r[o++]}for(;o<i;)o in r&&(n=e(n,r[o],o,r)),o++;return n};function v(e,t){return Array.prototype.slice.call(e,t)}var y=Object.assign||function(e){return r.call(v(arguments,1),function(t,n){return n&&Object.keys(n).forEach(function(e){t[e]=n[e]}),t},e)};function h(u){var s,e={},d=[];function t(e,t){return"function"==typeof e?f.call(null,"sync",e,t):"string"==typeof e&&"function"==typeof t?f.apply(null,arguments):"object"==typeof e?function(o,e,a){var t=!0;void 0===e&&(e=Object.getOwnPropertyNames(o),t=!1);var c={},n=["constructor"];for(;(e=e.filter(function(e){return!("function"!=typeof o[e]||-1!==n.indexOf(e)||e.match(/^_/))})).forEach(function(e){var t,n=e.split(":"),r=n[0],i=n[1]||"sync";c[r]||(t=o[r],c[r]=o[r]=f(i,t,a?[a,r]:void 0))}),o=Object.getPrototypeOf(o),t&&o;);return c}.apply(null,arguments):void 0}function l(o){var a=Array.isArray(o)?o:o.split(".");return r.call(a,function(t,n,e){var r=t[n],i=!1;return r||(e===a.length-1?(s||d.push(function(){i||console.warn(g+": referenced '"+o+"' but it was never created")}),t[n]=p(function(e){t[n]=e,i=!0})):t[n]={})},e)}function p(r){var o=[],a=[],c=function(){},e={before:function(e,t){return n.call(this,o,"before",e,t)},after:function(e,t){return n.call(this,a,"after",e,t)},getHooks:function(n){var e=o.concat(a);"object"==typeof n&&(e=e.filter(function(t){return Object.keys(n).every(function(e){return t[e]===n[e]})}));try{y(e,{remove:function(){return e.forEach(function(e){e.remove()}),this}})}catch(e){console.error("error adding `remove` to array, did you modify Array.prototype?")}return e},removeAll:function(){return this.getHooks().remove()}},t={install:function(e,t,n){this.type=e,(c=n)(o,a),r&&r(t)}};return b.set(e.after,t),e;function n(t,e,n,r){var i={hook:n,type:e,priority:r||10,remove:function(){var e=t.indexOf(i);-1!==e&&(t.splice(e,1),c(o,a))}};return t.push(i),t.sort(function(e,t){return t.priority-e.priority}),c(o,a),this}}function f(f,e,t){var n=e.after&&b.get(e.after);if(n){if(n.type!==f)throw g+": recreated hookable with different type";return e}var r,i,o=t?l(t):p(),a={get:function(e,t){return o[t]||Reflect.get.apply(Reflect,arguments)}};return s||d.push(c),u.useProxy&&"function"==typeof Proxy&&Proxy.revocable?i=new Proxy(e,a):y(i=function(){return a.apply?a.apply(e,this,v(arguments)):e.apply(this,arguments)},o),b.get(i.after).install(f,i,function(e,t){var s,d=[];r=e.length||t.length?(e.forEach(n),s=d.push(void 0)-1,t.forEach(n),function(n,r,e){var i,o=0,a="async"===f&&"function"==typeof e[e.length-1]&&e.pop();function c(e){"sync"===f?i=e:a&&a.apply(null,arguments)}function u(e){if(d[o]){var t=v(arguments);return u.bail=c,t.unshift(u),d[o++].apply(r,t)}"sync"===f?i=e:a&&a.apply(null,arguments)}return d[s]=function(){var e=v(arguments,1);"async"===f&&a&&(delete u.bail,e.push(u));var t=n.apply(r,e);"sync"===f&&u(t)},u.apply(null,e),i}):void 0;function n(e){d.push(e.hook)}c()}),i;function c(){!s&&("sync"!==f||u.ready&h.SYNC)&&("async"!==f||u.ready&h.ASYNC)?"sync"!==f&&u.ready&h.QUEUE?a.apply=function(){var e=arguments;d.push(function(){i.apply(e[1],e[2])})}:a.apply=function(){throw g+": hooked function not ready"}:a.apply=r}}return(u=y({},n,u)).ready?t.ready=function(){s=!0,function(e){for(var t;t=e.shift();)t()}(d)}:s=!0,t.get=l,t}e.exports=h},17:function(e,t,n){function p(e,t){this.stopped=e,this.result=t}var g=n(15),b=n(79),v=n(50),y=n(21),h=n(61),m=n(80);(e.exports=function(e,t,n,r,i){var o,a,c,u,s,d,f,l=y(t,n,r?2:1);if(i)o=e;else{if("function"!=typeof(a=h(e)))throw TypeError("Target is not iterable");if(b(a)){for(c=0,u=v(e.length);c<u;c++)if((s=r?l(g(f=e[c])[0],f[1]):l(e[c]))&&s instanceof p)return s;return new p(!1)}o=a.call(e)}for(d=o.next;!(f=d.call(o)).done;)if("object"==typeof(s=m(o,l,f.value,r))&&s&&s instanceof p)return s;return new p(!1)}).stop=function(e){return new p(!0,e)}},18:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},19:function(e,t,n){var r=n(22),i=n(73),o=n(24),a=n(59),c=n(75),u=n(104),s=i("wks"),d=r.Symbol,f=u?d:d&&d.withoutSetter||a;e.exports=function(e){return o(s,e)||(c&&o(d,e)?s[e]=d[e]:s[e]=f("Symbol."+e)),s[e]}},2:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"b",function(){return o}),n.d(t,"a",function(){return a});var r="native",i="video",o="banner",a="adpod"},20:function(e,t,n){"use strict";t.a=function(){return window.pbjs},window.pbjs=window.pbjs||{},window.pbjs.cmd=window.pbjs.cmd||[],window.pbjs.que=window.pbjs.que||[],window._pbjsGlobals=window._pbjsGlobals||[],window._pbjsGlobals.push("pbjs")},21:function(e,t,n){var o=n(18);e.exports=function(r,i,e){if(o(r),void 0===i)return r;switch(e){case 0:return function(){return r.call(i)};case 1:return function(e){return r.call(i,e)};case 2:return function(e,t){return r.call(i,e,t)};case 3:return function(e,t,n){return r.call(i,e,t,n)}}return function(){return r.apply(i,arguments)}}},215:function(e,t,n){n(216);var r=n(52);e.exports=r("Array","findIndex")},216:function(e,t,n){"use strict";var r=n(14),i=n(56).findIndex,o=n(51),a=n(60),c="findIndex",u=!0,s=a(c);c in[]&&Array(1)[c](function(){u=!1}),r({target:"Array",proto:!0,forced:u||!s},{findIndex:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),o(c)},22:function(n,e,t){(function(e){function t(e){return e&&e.Math==Math&&e}n.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||Function("return this")()}).call(e,t(33))},223:function(e,t,n){"use strict";t.a=function(){window.addEventListener("message",c,!1)};var r=n(8),g=n.n(r),b=n(35),i=n(5),v=(n.n(i),n(0)),y=n(26),o=n(10),h=n.n(o),m=n(11),a=n(12),S=n.n(a),A=i.EVENTS.BID_WON;function c(e){var t,n,r,i,o,a,c,u,s,d=e.message?"message":"data",f={};try{f=JSON.parse(e[d])}catch(e){return}if(f&&f.adId){var l=h()(y.a.getBidsReceived(),function(e){return e.adId===f.adId});if(l&&"Prebid Request"===f.message&&(n=e,r=(t=l).adId,i=t.ad,o=t.adUrl,a=t.width,c=t.height,u=t.renderer,s=t.cpm,Object(m.c)(u)?Object(m.b)(u,t):r&&(function(e){var o=e.adId,a=e.adUnitCode,r=e.width,i=e.height;function c(e){var t,n,r=(t=o,n=a,window.googletag?function(n){return h()(window.googletag.pubads().getSlots(),function(t){return h()(t.getTargetingKeys(),function(e){return S()(t.getTargeting(e),n)})}).getSlotElementId()}(t):window.apntag?function(e){var t=window.apntag.getTag(e);return t&&t.targetId}(n):n),i=document.getElementById(r);return i&&i.querySelector(e)}["div","iframe"].forEach(function(e){var t,n=c(e+':not([style*="display: none"])');n?((t=n.style).width=r+"px",t.height=i+"px"):Object(v.logWarn)("Unable to locate matching page element for adUnitCode ".concat(a,". Can't resize it to ad's dimensions. Please review setup."))})}(t),n.source.postMessage(JSON.stringify({message:"Prebid Response",ad:Object(v.replaceAuctionPrice)(i,s),adUrl:Object(v.replaceAuctionPrice)(o,s),adId:r,width:a,height:c}),n.origin)),y.a.addWinningBid(l),g.a.emit(A,l)),l&&"Prebid Native"===f.message){if("assetRequest"===f.action){var p=Object(b.c)(f,l);return void e.source.postMessage(JSON.stringify(p),e.origin)}if("click"===Object(b.b)(f,l))return;y.a.addWinningBid(l),g.a.emit(A,l)}}}},224:function(e,t,n){"use strict";t.a=function(e){var t;try{e=e||window.sessionStorage,t=JSON.parse(e.getItem(u))}catch(e){}t&&p(t,!0)};var r,i,o=n(3),a=n(0),c=n(40),u="pbjs:debugging";function s(e){Object(a.logMessage)("DEBUG: "+e)}function d(e){Object(a.logWarn)("DEBUG: "+e)}function f(e){r=function(e,t,n){if(b(this.bidders,n.bidderCode))return void d("bidder '".concat(n.bidderCode,"' excluded from auction by bidder overrides"));Array.isArray(this.bids)&&this.bids.forEach(function(e){g(e,n.bidderCode,t)||v(e,n,"bidder")});e(t,n)}.bind(e),c.c.before(r,5),i=function(e,t){var r=this,n=t.filter(function(e){return!b(r.bidders,e.bidderCode)||(d("bidRequest '".concat(e.bidderCode,"' excluded from auction by bidder overrides")),!1)});Array.isArray(r.bidRequests)&&n.forEach(function(n){r.bidRequests.forEach(function(t){n.bids.forEach(function(e){g(t,n.bidderCode,e.adUnitCode)||v(t,e,"bidRequest")})})});e(n)}.bind(e),c.e.before(i,5)}function l(){c.c.getHooks({hook:r}).remove(),c.e.getHooks({hook:i}).remove()}function p(e,t){var n=1<arguments.length&&void 0!==t&&t;o.b.setConfig({debug:!0}),l(),f(e),s("bidder overrides enabled".concat(n?" from session":""))}function g(e,t,n){return e.bidder&&e.bidder!==t||!(!e.adUnitCode||e.adUnitCode===n)}function b(e,t){return Array.isArray(e)&&-1===e.indexOf(t)}function v(n,e,r){return Object.keys(n).filter(function(e){return-1===["adUnitCode","bidder"].indexOf(e)}).reduce(function(e,t){return s("bidder overrides changed '".concat(e.adUnitCode,"/").concat(e.bidderCode,"' ").concat(r,".").concat(t," from '").concat(e[t],".js' to '").concat(n[t],"'")),e[t]=n[t],e},e)}function y(e){if(e.enabled){try{window.sessionStorage.setItem(u,JSON.stringify(e))}catch(e){}p(e)}else{l(),s("bidder overrides disabled");try{window.sessionStorage.removeItem(u)}catch(e){}}}o.b.getConfig("debugging",function(e){return y(e.debugging)})},23:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},24:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},25:function(e,t,n){function r(e){return"function"==typeof e?e:void 0}var i=n(42),o=n(22);e.exports=function(e,t){return arguments.length<2?r(i[e])||r(o[e]):i[e]&&i[e][t]||o[e]&&o[e][t]}},26:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n(0),s=n(40),i=n(10),o=n.n(i),a=n(5);var d,c,u=(d=[],(c={}).addWinningBid=function(t){var e=o()(d,function(e){return e.getAuctionId()===t.auctionId});e?(t.status=a.BID_STATUS.RENDERED,e.addWinningBid(t)):Object(r.logWarn)("Auction not found when adding winning bid")},c.getAllWinningBids=function(){return d.map(function(e){return e.getWinningBids()}).reduce(r.flatten,[])},c.getBidsRequested=function(){return d.map(function(e){return e.getBidRequests()}).reduce(r.flatten,[])},c.getNoBids=function(){return d.map(function(e){return e.getNoBids()}).reduce(r.flatten,[])},c.getBidsReceived=function(){return d.map(function(e){if(e.getAuctionStatus()===s.a)return e.getBidsReceived()}).reduce(r.flatten,[]).filter(function(e){return e})},c.getAdUnits=function(){return d.map(function(e){return e.getAdUnits()}).reduce(r.flatten,[])},c.getAdUnitCodes=function(){return d.map(function(e){return e.getAdUnitCodes()}).reduce(r.flatten,[]).filter(r.uniques)},c.createAuction=function(e){var t,n=e.adUnits,r=e.adUnitCodes,i=e.callback,o=e.cbTimeout,a=e.labels,c=e.auctionId,u=Object(s.k)({adUnits:n,adUnitCodes:r,callback:i,cbTimeout:o,labels:a,auctionId:c});return t=u,d.push(t),u},c.findBidByAdId=function(t){return o()(d.map(function(e){return e.getBidsReceived()}).reduce(r.flatten,[]),function(e){return e.adId===t})},c.getStandardBidderAdServerTargeting=function(){return Object(s.j)()[a.JSON_MAPPING.ADSERVER_TARGETING]},c.setStatusForBids=function(e,t){var n,r=c.findBidByAdId(e);r&&(r.status=t),!r||t!==a.BID_STATUS.BID_TARGETING_SET||(n=o()(d,function(e){return e.getAuctionId()===r.auctionId}))&&n.setBidTargeting(r)},c.getLastAuctionId=function(){return d.length&&d[d.length-1].getAuctionId()},c)},27:function(e,t,n){var r=n(28);e.exports=!r(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},28:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},29:function(e,t,n){var r=n(27),i=n(31),o=n(46);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},3:function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return C});var r=n(45),i=n(10),a=n.n(i),o=n(12),c=n.n(o),u=n(77),s=n.n(u),d=n(0);function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=n(89),p=n(0),g=n(5),b="TRUE"===p.getParameterByName(g.DEBUG_MODE).toUpperCase(),v=window.location.origin,y="random",h={};h[y]=!0,h.fixed=!0;var m=y,S={LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"};var A,E,O,T,I,C=(T=[],I=null,j(),{getCurrentBidder:function(){return I},getConfig:function(){if(arguments.length<=1&&"function"!=typeof(arguments.length<=0?void 0:arguments[0])){var e=arguments.length<=0?void 0:arguments[0];return e?p.deepAccess(w(),e):w()}return function(e,t){var n=t;if("string"!=typeof e&&(n=e,e="*"),"function"==typeof n){var r={topic:e,callback:n};return T.push(r),function(){T.splice(T.indexOf(r),1)}}p.logError("listener must be a function")}.apply(void 0,arguments)},setConfig:function(n){var e,r;p.isPlainObject(n)?(e=Object.keys(n),r={},e.forEach(function(e){var t=n[e];p.isPlainObject(A[e])&&p.isPlainObject(t)&&(t=f({},A[e],t)),r[e]=E[e]=t}),_(r)):p.logError("setConfig options must be an object")},setDefaults:function(e){p.isPlainObject(A)?(f(A,e),f(E,e)):p.logError("defaults must be an object")},resetConfig:j,runWithBidder:B,callbackWithBidder:function(o){return function(i){return function(){if("function"==typeof i){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return B(o,(e=p.bind).call.apply(e,[i,this].concat(n)))}p.logWarn("config.callbackWithBidder callback is not a function")}}},setBidderConfig:function(r){try{!function(e){if(!p.isPlainObject(e))throw"setBidderConfig bidder options must be an object";if(!Array.isArray(e.bidders)||!e.bidders.length)throw"setBidderConfig bidder options must contain a bidders list with at least 1 bidder";if(!p.isPlainObject(e.config))throw"setBidderConfig bidder options must contain a config object"}(r),r.bidders.forEach(function(n){O[n]||(O[n]={}),Object.keys(r.config).forEach(function(e){var t=r.config[e];p.isPlainObject(t)?O[n][e]=f({},O[n][e]||{},t):O[n][e]=t})})}catch(e){p.logError(e)}},getBidderConfig:function(){return O}});function j(){A={};var n={_debug:b,get debug(){return this._debug},set debug(e){this._debug=e},_bidderTimeout:3e3,get bidderTimeout(){return this._bidderTimeout},set bidderTimeout(e){this._bidderTimeout=e},_publisherDomain:v,get publisherDomain(){return this._publisherDomain},set publisherDomain(e){this._publisherDomain=e},_priceGranularity:S.MEDIUM,set priceGranularity(e){o(e)&&("string"==typeof e?this._priceGranularity=i(e)?e:S.MEDIUM:p.isPlainObject(e)&&(this._customPriceBucket=e,this._priceGranularity=S.CUSTOM,p.logMessage("Using custom price granularity")))},get priceGranularity(){return this._priceGranularity},_customPriceBucket:{},get customPriceBucket(){return this._customPriceBucket},_mediaTypePriceGranularity:{},get mediaTypePriceGranularity(){return this._mediaTypePriceGranularity},set mediaTypePriceGranularity(n){var r=this;this._mediaTypePriceGranularity=Object.keys(n).reduce(function(e,t){return o(n[t])?"string"==typeof n?e[t]=i(n[t])?n[t]:r._priceGranularity:p.isPlainObject(n)&&(e[t]=n[t],p.logMessage("Using custom price granularity for ".concat(t))):p.logWarn("Invalid price granularity for media type: ".concat(t)),e},{})},_sendAllBids:!0,get enableSendAllBids(){return this._sendAllBids},set enableSendAllBids(e){this._sendAllBids=e},_useBidCache:!1,get useBidCache(){return this._useBidCache},set useBidCache(e){this._useBidCache=e},_deviceAccess:!0,get deviceAccess(){return this._deviceAccess},set deviceAccess(e){this._deviceAccess=e},_bidderSequence:m,get bidderSequence(){return this._bidderSequence},set bidderSequence(e){h[e]?this._bidderSequence=e:p.logWarn("Invalid order: ".concat(e,". Bidder Sequence was not set."))},_timeoutBuffer:400,get timeoutBuffer(){return this._timeoutBuffer},set timeoutBuffer(e){this._timeoutBuffer=e},_disableAjaxTimeout:!1,get disableAjaxTimeout(){return this._disableAjaxTimeout},set disableAjaxTimeout(e){this._disableAjaxTimeout=e}};function i(t){return a()(Object.keys(S),function(e){return t===S[e]})}function o(e){if(e){if("string"==typeof e)i(e)||p.logWarn("Prebid Warning: setPriceGranularity was called with invalid setting, using `medium` as default.");else if(p.isPlainObject(e)&&!Object(r.b)(e))return void p.logError("Invalid custom price value passed to `setPriceGranularity()`");return 1}p.logError("Prebid Error: no value passed to `setPriceGranularity()`")}E&&_(Object.keys(E).reduce(function(e,t){return E[t]!==n[t]&&(e[t]=n[t]||{}),e},{})),E=n,O={}}function w(){if(I&&O&&p.isPlainObject(O[I])){var n=O[I],e=new s.a(Object.keys(E).concat(Object.keys(n)));return l(e).reduce(function(e,t){return void 0===n[t]?e[t]=E[t]:void 0!==E[t]&&p.isPlainObject(n[t])?e[t]=Object(d.mergeDeep)({},E[t],n[t]):e[t]=n[t],e},{})}return f({},E)}function _(i){var t=Object.keys(i);T.filter(function(e){return c()(t,e.topic)}).forEach(function(e){var t,n,r;e.callback((t={},n=e.topic,r=i[e.topic],n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))}),T.filter(function(e){return"*"===e.topic}).forEach(function(e){return e.callback(i)})}function B(e,t){I=e;try{return t()}finally{I=null}}},30:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var a,r=(a=window,function(){try{var e,t=c(),n=t.length-1,r=null!==t[n].location||0<n&&null!==t[n-1].referrer,i=function(e){for(var t,n=[],r=null,i=null,o=null,a=null,c=null,u=e.length-1;0<=u;u–){try{i=e[u].location}catch(e){}if(i)n.push(i),c=c||i;else if(0!==u){t=e[u-1];try{o=t.referrer,a=t.ancestor}catch(e){}o?(n.push(o),c=c||o):a?(n.push(a),c=c||a):n.push(r)}else n.push(r)}return{stack:n,detectedRefererUrl:c}}(t);return t[t.length-1].canonicalUrl&&(e=t[t.length-1].canonicalUrl),{referer:i.detectedRefererUrl,reachedTop:r,numIframes:n,stack:i.stack,canonicalUrl:e}}catch(e){}});function c(){var e=function(){var t,n=[];do{try{t=t?t.parent:a;try{var e=t==a.top,r={referrer:t.document.referrer||null,location:t.location.href||null,isTop:e};e&&(r=o(r,{canonicalUrl:function(e){try{var t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}(t.document)})),n.push(r)}catch(e){n.push({referrer:null,location:null,isTop:t==a.top}),Object(i.logWarn)("Trying to access cross domain iframe. Continuing without referrer and location")}}catch(e){return n.push({referrer:null,location:null,isTop:!1}),n}}while(t!=a.top);return n}(),t=function(){try{if(!a.location.ancestorOrigins)return;return a.location.ancestorOrigins}catch(e){}}();if(t)for(var n=0,r=t.length;n<r;n++)e[n].ancestor=t[n];return e}},31:function(e,t,n){var r=n(27),i=n(71),o=n(15),a=n(55),c=Object.defineProperty;t.f=r?c:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},32:function(e,t,n){"use strict";t.a=function(e,t){return new r(e,t)};var i=n(0);function r(e,t){var n=t&&t.src||"client",r=e||0;this.bidderCode=t&&t.bidder||"",this.width=0,this.height=0,this.statusMessage=function(){switch(r){case 0:return"Pending";case 1:return"Bid available";case 2:return"Bid returned empty or error response";case 3:return"Bid timed out"}}(),this.adId=i.getUniqueIdentifierStr(),this.requestId=t&&t.bidId,this.mediaType="banner",this.source=n,this.getStatusCode=function(){return r},this.getSize=function(){return this.width+"x"+this.height}}},33:function(e,t){var n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},339:function(e,t,n){var r=n(340);e.exports=r},34:function(e,t,n){var r=n(16),i=n(88);e.exports=r?i:function(e){return Set.prototype.values.call(e)}},340:function(e,t,n){n(341);var r=n(52);e.exports=r("String","includes")},341:function(e,t,n){"use strict";var r=n(14),i=n(342),o=n(49);r({target:"String",proto:!0,forced:!n(344)("includes")},{includes:function(e,t){return!!~String(o(this)).indexOf(i(e),1<arguments.length?t:void 0)}})},342:function(e,t,n){var r=n(343);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},343:function(e,t,n){var r=n(23),i=n(48),o=n(19)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},344:function(e,t,n){var r=n(19)("match");e.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,"/./"[t](n)}catch(e){}}return!1}},35:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"a",function(){return s}),t.g=function(e){if(e&&e.type&&function(e){return!(!e||!c()(Object.keys(d),e))||(Object(a.logError)("".concat(e," nativeParam is not supported")),!1)}(e.type))return d[e.type];return e},t.f=function(t,e){var n=Object(a.getBidRequest)(t.requestId,e);if(!n)return!1;if(!Object(a.deepAccess)(t,"native.clickUrl"))return!1;if(Object(a.deepAccess)(t,"native.image")&&(!Object(a.deepAccess)(t,"native.image.height")||!Object(a.deepAccess)(t,"native.image.width")))return!1;if(Object(a.deepAccess)(t,"native.icon")&&(!Object(a.deepAccess)(t,"native.icon.height")||!Object(a.deepAccess)(t,"native.icon.width")))return!1;var r=n.nativeParams;if(!r)return!0;var i=Object.keys(r).filter(function(e){return r[e].required}),o=Object.keys(t.native).filter(function(e){return t.native[e]});return i.every(function(e){return c()(o,e)})},t.b=function(e,t){var n;"click"===e.action?n=t.native&&t.native.clickTrackers:(n=t.native&&t.native.impressionTrackers,t.native&&t.native.javascriptTrackers&&Object(a.insertHtmlIntoIframe)(t.native.javascriptTrackers));return(n||[]).forEach(a.triggerPixel),e.action},t.d=function(r,i){var o={};return Object.keys(r.native).forEach(function(e){var t=u.NATIVE_KEYS[e],n=f(r.native[e]);Object(a.deepAccess)(i,"mediaTypes.native.".concat(e,".sendId"))&&(n="".concat(t,":").concat(r.adId)),t&&n&&(o[t]=n)}),o},t.c=function(e,r){var i={message:"assetResponse",adId:e.adId,assets:[]};return e.assets.forEach(function(e){var t=Object(a.getKeyByValue)(u.NATIVE_KEYS,e),n=f(r.native[t]);i.assets.push({key:t,value:n})}),i};var a=n(0),r=n(12),c=n.n(r);function i(e){return(i="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})(e)}var u=n(5),o=[],s=Object.keys(u.NATIVE_KEYS).map(function(e){return u.NATIVE_KEYS[e]}),d={image:{image:{required:!0},title:{required:!0},sponsoredBy:{required:!0},clickUrl:{required:!0},body:{required:!1},icon:{required:!1}}};function f(e){return"object"===i(e)&&e.url?e.url:e}},36:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u}),t.d=function(e,t){var n=Object(o.getBidRequest)(e.requestId,t),r=n&&Object(o.deepAccess)(n,"mediaTypes.video"),i=r&&Object(o.deepAccess)(r,"context");return s(e,n,r,i)},n.d(t,"c",function(){return s});n(7);var o=n(0),i=n(3),r=n(12),a=(n.n(r),n(13)),c="outstream",u="instream";var s=Object(a.b)("sync",function(e,t,n,r){return!t||n&&r!==c?i.b.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):(Object(o.logError)('n This bid contains only vastXml and will not work when a prebid cache url is not specified.n Try enabling prebid cache with pbjs.setConfig({ cache: {url: "…"} });n '),!1):r!==c||!(!e.renderer&&!t.renderer)},"checkVideoBidSetup")},37:function(e,t){e.exports={}},38:function(e,t,n){var i=n(15),o=n(18),a=n(19)("species");e.exports=function(e,t){var n,r=i(e).constructor;return void 0===r||null==(n=i(r)[a])?t:o(n)}},39:function(e,t,n){"use strict";t.a=function(r,e,t){if(!e||!r)return void o.logError("cannot load external script without url and moduleCode");if(!i()(c,e))return void o.logError("".concat(e," not whitelisted for loading external JavaScript"));if(a[r])return t&&"function"==typeof t&&(a[r].loaded?t():a[r].callbacks.push(t)),a[r].tag;a[r]={loaded:!1,tag:null,callbacks:[]},t&&"function"==typeof t&&a[r].callbacks.push(t);return o.logWarn("module ".concat(e," is loading external JavaScript")),function(e,t){var n=document.createElement("script");n.type="text/javascript",n.async=!0,(a[r].tag=n).readyState?n.onreadystatechange=function(){"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,t())}:n.onload=function(){t()};return n.src=e,o.insertElement(n),n}(r,function(){a[r].loaded=!0;try{for(var e=0;e<a[r].callbacks.length;e++)a[r].callbacks[e]()}catch(e){o.logError("Error executing callback","adloader.js:loadExternalScript",e)}})};var r=n(12),i=n.n(r),o=n(0),a={},c=["criteo","outstream","adagio","browsi"]},4:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),t.b=i;var l=n(3);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e){return(g="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})(e)}var b=n(0),v=4,r=i();function i(){var s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:3e3,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=e.request,f=e.done;return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};try{var i,o=r.method||(n?"POST":"GET"),a=document.createElement("a");a.href=e;var c,u="object"===g(t)&&null!==t?t:{success:function(){b.logMessage("xhr success")},error:function(e){b.logError("xhr error",null,e)}};"function"==typeof t&&(u.success=t),(i=new window.XMLHttpRequest).onreadystatechange=function(){var e;i.readyState===v&&("function"==typeof f&&f(a.origin),200<=(e=i.status)&&e<300||304===e?u.success(i.responseText,i):u.error(i.statusText,i))},l.b.getConfig("disableAjaxTimeout")||(i.ontimeout=function(){b.logError(" xhr timeout after ",i.timeout,"ms")}),"GET"===o&&n&&(p((c=b.parseUrl(e,r)).search,n),e=b.buildUrl(c)),i.open(o,e,!0),l.b.getConfig("disableAjaxTimeout")||(i.timeout=s),r.withCredentials&&(i.withCredentials=!0),b._each(r.customHeaders,function(e,t){i.setRequestHeader(t,e)}),r.preflight&&i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-Type",r.contentType||"text/plain"),"function"==typeof d&&d(a.origin),"POST"===o&&n?i.send(n):i.send()}catch(e){b.logError("xhr construction",e)}}}},40:function(e,t,n){"use strict";n.d(t,"b",function(){return W}),n.d(t,"a",function(){return L}),t.k=function(e){var t,i,b,v,o=e.adUnits,n=e.adUnitCodes,r=e.callback,a=e.cbTimeout,c=e.labels,u=e.auctionId,y=o,s=c,d=n,h=[],f=[],l=[],p=u||N.generateUUID(),g=r,m=a,S=[],A=new Set;function E(){return{auctionId:p,timestamp:t,auctionEnd:i,auctionStatus:b,adUnits:y,adUnitCodes:d,labels:s,bidderRequests:h,noBids:l,bidsReceived:f,winningBids:S,timeout:m}}function O(n,e){var r,t;e&&clearTimeout(v),void 0===i&&(r=[],n&&(N.logMessage("Auction ".concat(p," timedOut")),t=A,(r=h.map(function(e){return(e.bids||[]).filter(function(e){return!t.has(e.bidder)})}).reduce(j.flatten,[]).map(function(e){return{bidId:e.bidId,bidder:e.bidder,adUnitCode:e.adUnitCode,auctionId:e.auctionId}})).length&&q.emit(M.EVENTS.BID_TIMEOUT,r)),b=L,i=Date.now(),q.emit(M.EVENTS.AUCTION_END,E()),Y(y,function(){try{var e;null!=g&&(e=f.filter(N.bind.call(j.adUnitsFilter,this,d)).reduce(Z,{}),g.apply(pbjs,[e,n,p]),g=null)}catch(e){N.logError("Error executing bidsBackHandler",null,e)}finally{r.length&&P.callTimedOutBidders(o,r,m);var t=B.b.getConfig("userSync")||{};t.enableOverride||D(t.syncDelay)}}))}function T(){N.logInfo("Bids Received for Auction with id: ".concat(p),f),b=L,O(!1,!0)}function I(e){A.add(e)}function C(d){var f=this;d.forEach(function(e){var t;t=e,h=h.concat(t)});var l={},e={bidRequests:d,run:function(){var e,t;e=O.bind(null,!0),t=setTimeout(e,m),v=t,b=W,q.emit(M.EVENTS.AUCTION_INIT,E());var n,r,i,o,a,c,u=(n=T,r=f,i=0,o=!1,a=new Set,c={},{addBidResponse:function(e,t){c[t.requestId]=!0,i++;var n=function(e){var t=e.adUnitCode,n=e.bid,r=e.bidderRequest,i=e.auctionId,o=r.start,a=k({},n,{auctionId:i,responseTimestamp:Object(j.timestamp)(),requestTimestamp:o,cpm:parseFloat(n.cpm)||0,bidder:n.bidderCode,adUnitCode:t});a.timeToRespond=a.responseTimestamp-a.requestTimestamp,q.emit(M.EVENTS.BID_ADJUSTMENT,a);var c=r.bids&&x()(r.bids,function(e){return e.adUnitCode==t}),u=c&&c.renderer;u&&u.url&&(a.renderer=_.a.install({url:u.url}),a.renderer.setRender(u.render));var s=X(n.mediaType,c,B.b.getConfig("mediaTypePriceGranularity")),d=Object(w.a)(a.cpm,"object"===R(s)?s:B.b.getConfig("customPriceBucket"),B.b.getConfig("currency.granularityMultiplier"));return a.pbLg=d.low,a.pbMg=d.med,a.pbHg=d.high,a.pbAg=d.auto,a.pbDg=d.dense,a.pbCg=d.custom,a}({adUnitCode:e,bid:t,bidderRequest:this,auctionId:r.getAuctionId()});"video"===n.mediaType?function(e,t,n,r){var i=!0,o=Object(j.getBidRequest)(t.requestId,[n]),a=o&&Object(j.deepAccess)(o,"mediaTypes.video"),c=a&&Object(j.deepAccess)(a,"context");B.b.getConfig("cache.url")&&c!==U.b&&(t.videoCacheKey?t.vastUrl||(N.logError("videoCacheKey specified but not required vastUrl for video bid"),i=!1):(i=!1,$(e,t,r,o))),i&&(Q(e,t),r())}(r,n,this,s):(Q(r,n),s())},adapterDone:function(){a.add(this),o=r.getBidRequests().every(function(e){return a.has(e)}),this.bids.forEach(function(e){c[e.bidId]||(r.addNoBid(e),q.emit(M.EVENTS.NO_BID,e))}),o&&0===i&&n()}});function s(){i–,o&&0===i&&n()}P.callBids(y,d,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];K.apply({dispatch:u.addBidResponse,bidderRequest:this},t)},u.adapterDone,{request:function(e,t){g(z,t),g(l,e),V[e]||(V[e]={SRA:!0,origin:t}),1i&&(r=!1)),!r}),r&&e.run(),r}function g(e,t){void 0===e[t]?e[t]=1:e[t]++}p(e)||(N.logWarn("queueing auction due to limited endpoint capacity"),H.push(e))}return{addBidReceived:function(e){f=f.concat(e)},addNoBid:function(e){l=l.concat(e)},executeCallback:O,callBids:function(){b=G,t=Date.now();var e=P.makeBidRequests(y,t,p,m,s);N.logInfo("Bids Requested for Auction with id: ".concat(p),e),e.length<1?(N.logWarn("No valid bid requests returned for auction"),T()):J.call({dispatch:C,context:this},e)},addWinningBid:function(e){S=S.concat(e),P.callBidWonBidder(e.bidder,e,o)},setBidTargeting:function(e){P.callSetTargetingBidder(e.bidder,e)},getWinningBids:function(){return S},getTimeout:function(){return m},getAuctionId:function(){return p},getAuctionStatus:function(){return b},getAdUnits:function(){return y},getAdUnitCodes:function(){return d},getBidRequests:function(){return h},getBidsReceived:function(){return f},getNoBids:function(){return l}}},n.d(t,"c",function(){return K}),n.d(t,"e",function(){return J}),t.g=s,t.d=Q,n.d(t,"f",function(){return $}),n.d(t,"i",function(){return d}),n.d(t,"h",function(){return f}),t.j=l;var j=n(0),w=n(45),a=n(35),o=n(93),_=n(11),B=n(3),r=n(43),i=n(13),c=n(10),x=n.n(c),U=n(36),u=n(2);function R(e){return(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})(e)}function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var D=r.a.syncUsers,N=n(0),P=n(7).default,q=n(8),M=n(5),G="started",W="inProgress",L="completed";q.on(M.EVENTS.BID_ADJUSTMENT,function(e){!function(e){var t,n=e.bidderCode,r=e.cpm;if(pbjs.bidderSettings&&(n&&pbjs.bidderSettings[n]&&"function"==typeof pbjs.bidderSettings[n].bidCpmAdjustment?t=pbjs.bidderSettings[n].bidCpmAdjustment:pbjs.bidderSettings[M.JSON_MAPPING.BD_SETTING_STANDARD]&&"function"==typeof pbjs.bidderSettings[M.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment&&(t=pbjs.bidderSettings[M.JSON_MAPPING.BD_SETTING_STANDARD].bidCpmAdjustment),t))try{r=t(e.cpm,k({},e))}catch(e){N.logError("Error during bid adjustment","bidmanager.js",e)}0e.getTimeout()+B.b.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function Q(e,t){var n=e.getBidRequests(),r=x()(n,function(e){return e.bidderCode===t.bidderCode});!function(t,e){var n;{var r;t.bidderCode&&(0<t.cpm||t.dealId)&&(r=x()(e.bids,function(e){return e.adUnitCode===t.adUnitCode}),n=function(e,t,n){if(!t)return{};var r={},i=pbjs.bidderSettings;{var o;i&&(o=l(t.mediaType,e,n),p(r,o,t),e&&i[e]&&i[e][M.JSON_MAPPING.ADSERVER_TARGETING]&&(p(r,i[e],t),t.sendStandardTargeting=i[e].sendStandardTargeting))}t.native&&(r=k({},r,Object(a.d)(t,n)));return r}(t.bidderCode,t,r))}t.adserverTargeting=k(t.adserverTargeting||{},n)}(t,r),q.emit(M.EVENTS.BID_RESPONSE,t),e.addBidReceived(t),s(e,t)}var $=Object(i.b)("async",function(n,r,i,e){Object(o.b)([r],function(e,t){e?(N.logWarn("Failed to save to the video cache: ".concat(e,". Video bid must be discarded.")),s(n,r)):""===t[0].uuid?(N.logWarn("Supplied video cache key was already in use by Prebid Cache; caching attempt was rejected. Video bid must be discarded."),s(n,r)):(r.videoCacheKey=t[0].uuid,r.vastUrl||(r.vastUrl=Object(o.a)(r.videoCacheKey)),Q(n,r),i())},e)},"callPrebidCache");function X(e,t,n){if(e&&n){if(e===u.d){var r=Object(j.deepAccess)(t,"mediaTypes.".concat(u.d,".context"),"instream");if(n["".concat(u.d,"-").concat(r)])return n["".concat(u.d,"-").concat(r)]}return n[e]}}var d=function(e,t){var n=X(e,t,B.b.getConfig("mediaTypePriceGranularity"));return"string"==typeof e&&n?"string"==typeof n?n:"custom":B.b.getConfig("priceGranularity")},f=function(t){return function(e){return t===M.GRANULARITY_OPTIONS.AUTO?e.pbAg:t===M.GRANULARITY_OPTIONS.DENSE?e.pbDg:t===M.GRANULARITY_OPTIONS.LOW?e.pbLg:t===M.GRANULARITY_OPTIONS.MEDIUM?e.pbMg:t===M.GRANULARITY_OPTIONS.HIGH?e.pbHg:t===M.GRANULARITY_OPTIONS.CUSTOM?e.pbCg:void 0}};function l(e,t,n){function r(e,t){return{key:e,val:"function"==typeof t?function(e){return t(e)}:function(e){return Object(j.getValue)(e,t)}}}var i,o,a=M.TARGETING_KEYS,c=d(e,n),u=pbjs.bidderSettings;return u[M.JSON_MAPPING.BD_SETTING_STANDARD]||(u[M.JSON_MAPPING.BD_SETTING_STANDARD]={}),u[M.JSON_MAPPING.BD_SETTING_STANDARD][M.JSON_MAPPING.ADSERVER_TARGETING]||(u[M.JSON_MAPPING.BD_SETTING_STANDARD][M.JSON_MAPPING.ADSERVER_TARGETING]=[r(a.BIDDER,"bidderCode"),r(a.AD_ID,"adId"),r(a.PRICE_BUCKET,f(c)),r(a.SIZE,"size"),r(a.DEAL,"dealId"),r(a.SOURCE,"source"),r(a.FORMAT,"mediaType")]),"video"===e&&(i=u[M.JSON_MAPPING.BD_SETTING_STANDARD][M.JSON_MAPPING.ADSERVER_TARGETING],[a.UUID,a.CACHE_ID].forEach(function(t){void 0===x()(i,function(e){return e.key===t})&&i.push(r(t,"videoCacheKey"))}),!B.b.getConfig("cache.url")||t&&!1===N.deepAccess(u,"".concat(t,".sendStandardTargeting"))||(o=Object(j.parseUrl)(B.b.getConfig("cache.url")),void 0===x()(i,function(e){return e.key===a.CACHE_HOST})&&i.push(r(a.CACHE_HOST,function(e){return N.deepAccess(e,"adserverTargeting.".concat(a.CACHE_HOST))?e.adserverTargeting[a.CACHE_HOST]:o.hostname})))),u[M.JSON_MAPPING.BD_SETTING_STANDARD]}function p(r,i,o){var e=i[M.JSON_MAPPING.ADSERVER_TARGETING];return o.size=o.getSize(),N._each(e,function(e){var t=e.key,n=e.val;if(r[t]&&N.logWarn("The key: "+t+" is getting ovewritten"),N.isFn(n))try{n=n(o)}catch(e){N.logError("bidmanager","ERROR",e)}(void 0===i.suppressEmptyKeys||!0!==i.suppressEmptyKeys)&&t!==M.TARGETING_KEYS.DEAL||!N.isEmptyStr(n)&&null!=n?r[t]=n:N.logInfo("suppressing empty key '"+t+"' from adserver targeting")}),r}function Z(e,t){return e[t.adUnitCode]||(e[t.adUnitCode]={bids:[]}),e[t.adUnitCode].bids.push(t),e}},41:function(e,t,n){"use strict";n.d(t,"a",function(){return p});var y=n(0),h=n(3),m=n(35),r=n(26),i=n(91),o=n(2),a=n(12),S=n.n(a);function A(){return(A=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);nObject(y.timestamp)()},d=function(e){return e&&(e.status&&!S()([T.BID_STATUS.RENDERED],e.status)||!e.status)};function j(e,r,t){var i=2<arguments.length&&void 0!==t?t:0,o=[],a=h.b.getConfig("sendBidsControl.dealPrioritization"),c=Object(y.groupBy)(e,"adUnitCode");return Object.keys(c).forEach(function(e){var t=[],n=Object(y.groupBy)(c[e],"bidderCode");Object.keys(n).forEach(function(e){return t.push(n[e].reduce(r))}),0<i?(t=a?t.sort(w(!0)):t.sort(function(e,t){return t.cpm-e.cpm}),o.push.apply(o,O(t.slice(0,i)))):o.push.apply(o,O(t))}),o}function w(e){var n=0<arguments.length&&void 0!==e&&e;return function(e,t){return void 0!==e.adserverTargeting.hb_deal&&void 0===t.adserverTargeting.hb_deal?-1:void 0===e.adserverTargeting.hb_deal&&void 0!==t.adserverTargeting.hb_deal?1:n?t.cpm-e.cpm:t.adserverTargeting.hb_pb-e.adserverTargeting.hb_pb}}var f,_,l,p=(f=r.a,l={},(_={}).setLatestAuctionForAdUnit=function(e,t){l[e]=t},_.resetPresetTargeting=function(e,t){var n,i;Object(y.isGptPubadsDefined)()&&(n=x(e),i=f.getAdUnits().filter(function(e){return S()(n,e.code)}),window.googletag.pubads().getSlots().forEach(function(n){var r=u.isFn(t)&&t(n);I.forEach(function(t){i.forEach(function(e){(e.code===n.getAdUnitPath()||e.code===n.getSlotElementId()||u.isFn(r)&&r(e.code))&&n.setTargeting(t,null)})})}))},_.resetPresetTargetingAST=function(e){x(e).forEach(function(e){var t,n,r=window.apntag.getTag(e);r&&r.keywords&&(t=Object.keys(r.keywords),n={},t.forEach(function(e){S()(I,e.toLowerCase())||(n[e]=r.keywords[e])}),window.apntag.modifyTag(e,{keywords:n}))})},_.getAllTargeting=function(e){var n,t,r,i,o,a,c,u,s,d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:U(),f=x(e),l=(a=f,c=d,u=_.getWinningBids(a,c),s=R(),(u=u.map(function(o){return E({},o.adUnitCode,Object.keys(o.adserverTargeting).filter(function(e){return void 0===o.sendStandardTargeting||o.sendStandardTargeting||-1===s.indexOf(e)}).reduce(function(e,t){var n=[o.adserverTargeting[t]],r=E({},t.substring(0,20),n);if(t!==T.TARGETING_KEYS.DEAL)return[].concat(O(e),[r]);var i=E({},"".concat(t,"_").concat(o.bidderCode).substring(0,20),n);return[].concat(O(e),[r,i])},[]))})).concat((o=f,d.filter(function(e){return S()(o,e.adUnitCode)}).map(function(e){return A({},e)}).reduce(k,[]).map(D).filter(function(e){return e}))).concat(h.b.getConfig("enableSendAllBids")?(n=f,t=d,r=C.concat(m.a),i=h.b.getConfig("sendBidsControl.bidLimit"),j(t,y.getHighestCpm,i).map(function(t){if(B(t,n))return E({},t.adUnitCode,N(t,r.filter(function(e){return void 0!==t.adserverTargeting[e]})))}).filter(function(e){return e})):function(e,t){if(!0!==h.b.getConfig("targetingControls.alwaysIncludeDeals"))return[];var n=C.concat(m.a);return j(t,y.getHighestCpm).map(function(t){if(t.dealId&&B(t,e))return E({},t.adUnitCode,N(t,n.filter(function(e){return void 0!==t.adserverTargeting[e]})))}).filter(function(e){return e})}(f,d)));l.map(function(t){Object.keys(t).map(function(e){t[e].map(function(e){-1===I.indexOf(Object.keys(e)[0])&&(I=Object.keys(e).concat(I))})})}),l=l.map(function(e){return E({},Object.keys(e)[0],e[Object.keys(e)[0]].map(function(e){return E({},Object.keys(e)[0],e[Object.keys(e)[0]].join(", "))}).reduce(function(e,t){return A(t,e)},{}))}).reduce(function(e,t){var n=Object.keys(t)[0];return e[n]=A({},e[n],t[n]),e},{});var p,g,b,v=h.b.getConfig("targetingControls.auctionKeyMaxChars");return v&&(Object(y.logInfo)("Detected 'targetingControls.auctionKeyMaxChars' was active for this auction; set with a limit of ".concat(v," characters. Running checks on auction keys…")),p=l,g=v,b=Object(y.deepClone)(p),l=Object.keys(b).map(function(e){return{adUnitCode:e,adserverTargeting:b[e]}}).sort(w()).reduce(function(e,t,n,r){var i,o=(i=t.adserverTargeting,Object.keys(i).reduce(function(e,t){return e+"".concat(t,"%3d").concat(encodeURIComponent(i[t]),"%26")},""));n+1===r.length&&(o=o.slice(0,-3));var a=t.adUnitCode,c=o.length;return c<=g?(g-=c,Object(y.logInfo)("AdUnit '".concat(a,"' auction keys comprised of ").concat(c," characters. Deducted from running threshold; new limit is ").concat(g),b[a]),e[a]=b[a]):Object(y.logWarn)("The following keys for adUnitCode '".concat(a,"' exceeded the current limit of the 'auctionKeyMaxChars' setting.nThe key-set size was ").concat(c,", the current allotted amount was ").concat(g,".n"),b[a]),n+1===r.length&&0===Object.keys(e).length&&Object(y.logError)("No auction targeting keys were permitted due to the setting in setConfig(targetingControls.auctionKeyMaxChars). Please review setup and consider adjusting."),e},{})),f.forEach(function(e){l[e]||(l[e]={})}),l},_.setTargetingForGPT=function(i,e){window.googletag.pubads().getSlots().forEach(function(r){Object.keys(i).filter((e||Object(y.isAdUnitCodeMatchingSlot))(r)).forEach(function(n){return Object.keys(i[n]).forEach(function(t){var e=i[n][t].split(",");(e=1<e.length?[e]:e).map(function(e){return u.logMessage("Attempting to set key value for slot: ".concat(r.getSlotElementId()," key: ").concat(t," value: ").concat(e)),e}).forEach(function(e){r.setTargeting(t,e)})})})})},_.getWinningBids=function(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:U(),t=x(e);return n.filter(function(e){return S()(t,e.adUnitCode)}).filter(function(e){return 0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(){return(d=Object.assign||function(e){for(var t=1;t=h.syncsPerBidder?a.logWarn('Number of user syncs exceeded for "'.concat(t,'"')):p.canBidderRegisterSync(e,t)?(g[e].push([t,n]),(r=v)[i=t]?r[i]+=1:r[i]=1,void(v=r)):a.logWarn('Bidder "'.concat(t,'" not permitted to register their "').concat(e,'" userSync pixels.')):a.logWarn("Bidder is required for registering sync"):a.logWarn('User sync type "'.concat(e,'" not supported'));var r,i},p.syncUsers=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(E,Number(e));E()},p.triggerUserSyncs=function(){h.enableOverride&&p.syncUsers()},p.canBidderRegisterSync=function(e,t){return!h.filterSettings||!T(e,t)},p);function A(){return{image:[],iframe:[]}}function E(){if(h.syncEnabled&&l.browserSupportsCookies){try{!function(){if(!y.image)return;O(g.image,function(e){var t=u(e,2),n=t[0],r=t[1];a.logMessage("Invoking image pixel user sync for bidder: ".concat(n)),a.triggerPixel(r)})}(),function(){if(!y.iframe)return;O(g.iframe,function(e){var t=u(e,2),n=t[0],r=t[1];a.logMessage("Invoking iframe user sync for bidder: ".concat(n)),a.insertUserSyncIframe(r)})}()}catch(e){return a.logError("Error firing user syncs",e)}g=A()}}function O(e,t){a.shuffle(e).forEach(function(e){t(e),b.add(e[0])})}function T(e,t){var n=h.filterSettings;if(function(e,t){if(e.all&&e[t])return a.logWarn('Detected presence of the "filterSettings.all" and "filterSettings.'.concat(t,'" in userSync config. You cannot mix "all" with "iframe/image" configs; they are mutually exclusive.')),!1;var n=e.all?e.all:e[t],r=e.all?"all":t;if(!n)return!1;var i=n.filter,o=n.bidders;if(i&&"include"!==i&&"exclude"!==i)return a.logWarn('UserSync "filterSettings.'.concat(r,".filter" setting '").concat(i,"' is not a valid option; use either 'include' or 'exclude'.")),!1;return!!("*"===o||Array.isArray(o)&&0p.max*r){var t=e.precision;void 0===t&&(t=y),i=(e.max*r).toFixed(t)}else{if(n<=e.max*r&&g*r<=n)return e.min=g,e;g=e.max}});return b&&(t=n,a=r,c=void 0!==(o=b).precision?o.precision:y,u=o.increment*a,s=o.min*a,d=Math.pow(10,c+2),f=(t*d-s*d)/(u*d),l=Math.floor(f)*u+s,i=(l=Number(l.toFixed(10))).toFixed(c)),i}function h(e){if(i.isEmpty(e)||!e.buckets||!Array.isArray(e.buckets))return!1;var t=!0;return e.buckets.forEach(function(e){e.max&&e.increment||(t=!1)}),t}},46:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},466:function(e,t,n){var r=n(467);e.exports=r},467:function(e,t,n){n(468);var r=n(42);e.exports=r.Number.isInteger},468:function(e,t,n){n(14)({target:"Number",stat:!0},{isInteger:n(469)})},469:function(e,t,n){var r=n(23),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},47:function(e,t,n){var r=n(70),i=n(49);e.exports=function(e){return r(i(e))}},48:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},49:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},5:function(e,t){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"},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"}},EVENTS:{AUCTION_INIT:"auctionInit",AUCTION_END:"auctionEnd",BID_ADJUSTMENT:"bidAdjustment",BID_TIMEOUT:"bidTimeout",BID_REQUESTED:"bidRequested",BID_RESPONSE:"bidResponse",NO_BID:"noBid",BID_WON:"bidWon",BIDDER_DONE:"bidderDone",SET_TARGETING:"setTargeting",BEFORE_REQUEST_BIDS:"beforeRequestBids",REQUEST_BIDS:"requestBids",ADD_AD_UNITS:"addAdUnits",AD_RENDER_FAILED:"adRenderFailed",BIDDER_BLOCKED:"bidderBlocked"},AD_RENDER_FAILED_REASON:{PREVENT_WRITING_ON_MAIN_DOCUMENT:"preventWritingOnMainDocuemnt",NO_AD:"noAd",EXCEPTION:"exception",CANNOT_FIND_AD:"cannotFindAd",MISSING_DOC_OR_ADID:"missingDocOrAdid"},EVENT_ID_PATHS:{bidWon:"adUnitCode"},GRANULARITY_OPTIONS:{LOW:"low",MEDIUM:"medium",HIGH:"high",AUTO:"auto",DENSE:"dense",CUSTOM:"custom"},TARGETING_KEYS:{BIDDER:"hb_bidder",AD_ID:"hb_adid",PRICE_BUCKET:"hb_pb",SIZE:"hb_size",DEAL:"hb_deal",SOURCE:"hb_source",FORMAT:"hb_format",UUID:"hb_uuid",CACHE_ID:"hb_cache_id",CACHE_HOST:"hb_cache_host"},NATIVE_KEYS:{title:"hb_native_title",body:"hb_native_body",body2:"hb_native_body2",privacyLink:"hb_native_privacy",privacyIcon:"hb_native_privicon",sponsoredBy:"hb_native_brand",image:"hb_native_image",icon:"hb_native_icon",clickUrl:"hb_native_linkurl",displayUrl:"hb_native_displayurl",cta:"hb_native_cta",rating:"hb_native_rating",address:"hb_native_address",downloads:"hb_native_downloads",likes:"hb_native_likes",phone:"hb_native_phone",price:"hb_native_price",salePrice:"hb_native_saleprice"},S2S:{SRC:"s2s",DEFAULT_ENDPOINT:"https://prebid.adnxs.com/pbs/v1/openrtb2/auction",SYNCED_BIDDERS_KEY:"pbjsSyncs"},BID_STATUS:{BID_TARGETING_SET:"targetingSet",RENDERED:"rendered",BID_REJECTED:"bidRejected"}}},50:function(e,t,n){var r=n(58),i=Math.min;e.exports=function(e){return 0<e?i(r(e),9007199254740991):0}},51:function(e,t){e.exports=function(){}},52:function(e,t,n){var r=n(25);e.exports=r},53:function(e,t){e.exports={}},54:function(e,t,n){var r,i,o,a,c,u,s,d,f=n(113),l=n(22),p=n(23),g=n(29),b=n(24),v=n(65),y=n(53),h=l.WeakMap;s=f?(r=new h,i=r.get,o=r.has,a=r.set,c=function(e,t){return a.call(r,e,t),t},u=function(e){return i.call(r,e)||{}},function(e){return o.call(r,e)}):(y[d=v("state")]=!0,c=function(e,t){return g(e,d,t),t},u=function(e){return b(e,d)?e[d]:{}},function(e){return b(e,d)}),e.exports={set:c,get:u,has:s,enforce:function(e){return s(e)?u(e):c(e,{})},getterFor:function(n){return function(e){var t;if(!p(e)||(t=u(e)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return t}}}},55:function(e,t,n){var i=n(23);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},56:function(e,t,n){function r(p){var g=1==p,b=2==p,v=3==p,y=4==p,h=6==p,m=5==p||h;return function(e,t,n,r){for(var i,o,a=E(e),c=A(a),u=S(t,n,3),s=O(c.length),d=0,f=r||T,l=g?f(e,s):b?f(e,0):void 0;d<s;d++)if((m||d in c)&&(o=u(i=c[d],d,a),p))if(g)l[d]=o;else if(o)switch(p){case 3:return!0;case 5:return i;case 6:return d;case 2:I.call(l,i)}else if(y)return!1;return h?-1:v||y?y:l}}var S=n(21),A=n(70),E=n(57),O=n(50),T=n(101),I=[].push;e.exports={forEach:r(0),map:r(1),filter:r(2),some:r(3),every:r(4),find:r(5),findIndex:r(6)}},57:function(e,t,n){var r=n(49);e.exports=function(e){return Object(r(e))}},58:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(0<e?r:n)(e)}},59:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},60:function(e,t,n){function a(e){throw e}var c=n(27),u=n(28),s=n(24),d=Object.defineProperty,f={};e.exports=function(e,t){if(s(f,e))return f[e];var n=[][e],r=!!s(t=t||{},"ACCESSORS")&&t.ACCESSORS,i=s(t,0)?t[0]:a,o=s(t,1)?t[1]:void 0;return f[e]=!!n&&!u(function(){if(r&&!c)return!0;var e={length:-1};r?d(e,1,{enumerable:!0,get:a}):e[1]=1,n.call(e,i,o)})}},61:function(e,t,n){var r=n(62),i=n(37),o=n(19)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},62:function(e,t,n){var r=n(63),i=n(48),o=n(19)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},63:function(e,t,n){var r={};r[n(19)("toStringTag")]="z",e.exports="[object z]"===String(r)},64:function(e,t,n){var o=n(63),a=n(31).f,c=n(29),u=n(24),s=n(112),d=n(19)("toStringTag");e.exports=function(e,t,n,r){var i;e&&(i=n?e:e.prototype,u(i,d)||a(i,d,{configurable:!0,value:t}),r&&!o&&c(i,"toString",s))}},65:function(e,t,n){var r=n(73),i=n(59),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},66:function(e,t,n){"use strict";function y(){return this}var h=n(14),m=n(121),S=n(86),A=n(123),E=n(64),O=n(29),T=n(84),r=n(19),I=n(16),C=n(37),i=n(85),j=i.IteratorPrototype,w=i.BUGGY_SAFARI_ITERATORS,_=r("iterator"),B="values",x="entries";e.exports=function(e,t,n,r,i,o,a){m(n,t,r);function c(e){if(e===i&&b)return b;if(!w&&e in p)return p[e];switch(e){case"keys":case B:case x:return function(){return new n(this,e)}}return function(){return new n(this)}}var u,s,d,f=t+" Iterator",l=!1,p=e.prototype,g=p[_]||p["@@iterator"]||i&&p[i],b=!w&&g||c(i),v="Array"==t&&p.entries||g;if(v&&(u=S(v.call(new e)),j!==Object.prototype&&u.next&&(I||S(u)===j||(A?A(u,j):"function"!=typeof u[_]&&O(u,_,y)),E(u,f,!0,!0),I&&(C[f]=y))),i==B&&g&&g.name!==B&&(l=!0,b=function(){return g.call(this)}),I&&!a||p[_]===b||O(p,_,b),C[t]=b,i)if(s={values:c(B),keys:o?b:c("keys"),entries:c(x)},a)for(d in s)!w&&!l&&d in p||T(p,d,s[d]);else h({target:t,proto:!0,forced:w||l},s);return s}},67:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n(0),c={};function i(e,t,n){var r,i,o,a=(i=n,o=c[r=e]=c[r]||{bidders:{}},i?o.bidders[i]=o.bidders[i]||{}:o);return a[t]=(a[t]||0)+1,a[t]}var o={incrementRequestsCounter:function(e){return i(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,t){return i(e,"requestsCounter",t)},incrementBidderWinsCounter:function(e,t){return i(e,"winsCounter",t)},getRequestsCounter:function(e){return Object(r.deepAccess)(c,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,t){return Object(r.deepAccess)(c,"".concat(e,".bidders.").concat(t,".requestsCounter"))||0},getBidderWinsCounter:function(e,t){return Object(r.deepAccess)(c,"".concat(e,".bidders.").concat(t,".winsCounter"))||0}}},68:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"adUnitSetupChecks",function(){return z}),n.d(t,"checkAdUnitSetup",function(){return V}),t.executeStorageCallbacks=J;var r=n(20),i=n(0),o=n(223),a=n(43),d=n(3),y=n(26),f=n(41),c=n(13),u=n(224),s=n(12),l=n.n(s),p=n(67),h=n(11),g=n(32),b=n(9);function v(e){return(v="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})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var S=Object(r.a)(),A=n(5),E=n(0),O=n(7).default,T=n(8),I=a.a.triggerUserSyncs,C=A.EVENTS,j=C.ADD_AD_UNITS,w=C.BID_WON,_=C.REQUEST_BIDS,B=C.SET_TARGETING,x=C.AD_RENDER_FAILED,U=A.AD_RENDER_FAILED_REASON,R=U.PREVENT_WRITING_ON_MAIN_DOCUMENT,k=U.NO_AD,D=U.EXCEPTION,N=U.CANNOT_FIND_AD,P=U.MISSING_DOC_OR_ADID,q={bidWon:function(e){var t=y.a.getBidsRequested().map(function(e){return e.bids.map(function(e){return e.adUnitCode})}).reduce(i.flatten).filter(i.uniques);return!!E.contains(t,e)||void E.logError('The "'+e+'" placement is not defined.')}};function M(e,t,n){e.defaultView&&e.defaultView.frameElement&&(e.defaultView.frameElement.width=t,e.defaultView.frameElement.height=n)}function G(e,t){var n=[];return E.isArray(e)&&(t?e.length===t:0<e.length)&&(e.every(function(e){return Object(i.isArrayOfNums)(e,2)})?n=e:Object(i.isArrayOfNums)(e,2)&&n.push(e)),n}function W(e){var t=E.deepClone(e),n=t.mediaTypes.banner,r=G(n.sizes);return 0<r.length?(n.sizes=r,t.sizes=r):(E.logError("Detected a mediaTypes.banner object without a proper sizes field. Please ensure the sizes are listed like: [[300, 250], …]. Removing invalid mediaTypes.banner object from request."),delete t.mediaTypes.banner),t}function L(e){var t,n,r=E.deepClone(e),i=r.mediaTypes.video;return i.playerSize&&(t="number"==typeof i.playerSize[0]?2:1,0<(n=G(i.playerSize,t)).length?(2==t&&E.logInfo("Transforming video.playerSize from [640,480] to [[640,480]] so it's in the proper format."),i.playerSize=n,r.sizes=n):(E.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 r.mediaTypes.video.playerSize)),r}function F(e){var t=E.deepClone(e),n=t.mediaTypes.native;return n.image&&n.image.sizes&&!Array.isArray(n.image.sizes)&&(E.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),n.image&&n.image.aspect_ratios&&!Array.isArray(n.image.aspect_ratios)&&(E.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),n.icon&&n.icon.sizes&&!Array.isArray(n.icon.sizes)&&(E.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}Object(u.a)(),S.bidderSettings=S.bidderSettings||{},S.libLoaded=!0,S.version="v4.2.0",E.logInfo("Prebid.js v4.2.0 loaded"),S.adUnits=S.adUnits||[],S.triggerUserSyncs=I;var z={validateBannerMediaType:W,validateVideoMediaType:L,validateNativeMediaType:F,validateSizes:G},V=Object(c.b)("sync",function(e){var a=[];return e.forEach(function(e){var t,n,r,i,o=e.mediaTypes;o&&0!==Object.keys(o).length?(o.banner&&(t=W(e)),o.video&&(n=L(t||e)),o.native&&(r=F(n||(t||e))),i=m({},t,n,r),a.push(i)):E.logError("Detected adUnit.code '".concat(e.code,"' did not have a 'mediaTypes' object defined. This is a required field for the auction, so this adUnit has been removed."))}),a},"checkAdUnitSetup");function H(e){var n=y.a[e]().filter(E.bind.call(i.adUnitsFilter,this,y.a.getAdUnitCodes())),r=y.a.getLastAuctionId();return n.map(function(e){return e.adUnitCode}).filter(i.uniques).map(function(t){return n.filter(function(e){return e.auctionId===r&&e.adUnitCode===t})}).filter(function(e){return e&&e[0]&&e[0].adUnitCode}).map(function(e){return t={},n=e[0].adUnitCode,r={bids:e},n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t;var t,n,r}).reduce(function(e,t){return m(e,t)},{})}function K(e){var t=e.reason,n=e.message,r=e.bid,i=e.id,o={reason:t,message:n};r&&(o.bid=r),i&&(o.adId=i),E.logError(n),T.emit(x,o)}function J(e,t){!function(e){var t;for(;t=e.shift();)t()}(b.c),e.call(this,t)}function Y(e){e.forEach(function(e){if(void 0===e.called)try{e.call(),e.called=!0}catch(e){E.logError("Error processing command :","prebid.js",e)}})}S.getAdserverTargetingForAdUnitCodeStr=function(e){if(E.logInfo("Invoking pbjs.getAdserverTargetingForAdUnitCodeStr",arguments),e){var t=S.getAdserverTargetingForAdUnitCode(e);return E.transformAdServerTargetingObj(t)}E.logMessage("Need to call getAdserverTargetingForAdUnitCodeStr with adunitCode")},S.getAdserverTargetingForAdUnitCode=function(e){return S.getAdserverTargeting(e)[e]},S.getAdserverTargeting=function(e){return E.logInfo("Invoking pbjs.getAdserverTargeting",arguments),f.a.getAllTargeting(e)},S.getNoBids=function(){return E.logInfo("Invoking pbjs.getNoBids",arguments),H("getNoBids")},S.getBidResponses=function(){return E.logInfo("Invoking pbjs.getBidResponses",arguments),H("getBidsReceived")},S.getBidResponsesForAdUnitCode=function(t){return{bids:y.a.getBidsReceived().filter(function(e){return e.adUnitCode===t})}},S.setTargetingForGPTAsync=function(e,t){var n;E.logInfo("Invoking pbjs.setTargetingForGPTAsync",arguments),Object(i.isGptPubadsDefined)()?(n=f.a.getAllTargeting(e),f.a.resetPresetTargeting(e,t),f.a.setTargetingForGPT(n,t),Object.keys(n).forEach(function(t){Object.keys(n[t]).forEach(function(e){"hb_adid"===e&&y.a.setStatusForBids(n[t][e],A.BID_STATUS.BID_TARGETING_SET)})}),T.emit(B,n)):E.logError("window.googletag is not defined on the page")},S.setTargetingForAst=function(e){E.logInfo("Invoking pbjs.setTargetingForAn",arguments),f.a.isApntagDefined()?(f.a.setTargetingForAst(e),T.emit(B,f.a.getAllTargeting())):E.logError("window.apntag is not defined on the page")},S.renderAd=function(e,t){if(E.logInfo("Invoking pbjs.renderAd",arguments),E.logMessage("Calling renderAd with adId :"+t),e&&t)try{var n,r,i,o,a,c,u,s,d,f,l,p,g=y.a.findBidByAdId(t);g?(g.ad=E.replaceAuctionPrice(g.ad,g.cpm),g.adUrl=E.replaceAuctionPrice(g.adUrl,g.cpm),y.a.addWinningBid(g),T.emit(w,g),n=g.height,r=g.width,i=g.ad,o=g.mediaType,a=g.adUrl,c=g.renderer,u=document.createComment("Creative ".concat(g.creativeId," served by ").concat(g.bidder," Prebid.js Header Bidding")),E.insertElement(u,e,"body"),Object(h.c)(c)?Object(h.b)(c,g):e===document&&!E.inIframe()||"video"===o?(s="Error trying to write ad. Ad render call ad id ".concat(t," was prevented from writing to the main document."),K({reason:R,message:s,bid:g,id:t})):i?(navigator.userAgent&&-1<navigator.userAgent.toLowerCase().indexOf("firefox/")&&((d=navigator.userAgent.toLowerCase().match(/firefox/([d.]+)/)[1])&&parseInt(d,10)<67&&e.open("text/html","replace")),e.write(i),e.close(),M(e,r,n),E.callBurl(g)):a?((f=E.createInvisibleIframe()).height=n,f.width=r,f.style.display="inline",f.style.overflow="hidden",f.src=a,E.insertElement(f,e,"body"),M(e,r,n),E.callBurl(g)):(l="Error trying to write ad. No ad for bid response id: ".concat(t),K({reason:k,message:l,bid:g,id:t}))):(p="Error trying to write ad. Cannot find ad by given id : ".concat(t),K({reason:N,message:p,id:t}))}catch(e){var b="Error trying to write ad Id :".concat(t," to the page:").concat(e.message);K({reason:D,message:b,id:t})}else{var v="Error trying to write ad Id :".concat(t," to the page. Missing document or adId");K({reason:P,message:v,id:t})}},S.removeAdUnit=function(e){E.logInfo("Invoking pbjs.removeAdUnit",arguments),e?(E.isArray(e)?e:[e]).forEach(function(e){for(var t=S.adUnits.length-1;0<=t;t–)S.adUnits[t].code===e&&S.adUnits.splice(t,1)}):S.adUnits=[]},S.requestBids=Object(c.b)("async",function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.bidsBackHandler,n=e.timeout,r=e.adUnits,i=e.adUnitCodes,o=e.labels,a=e.auctionId;T.emit(_);var c=n||d.b.getConfig("bidderTimeout"),r=r||S.adUnits;if(E.logInfo("Invoking pbjs.requestBids",arguments),r=V(r),i&&i.length?r=r.filter(function(e){return l()(i,e.code)}):i=r&&r.map(function(e){return e.code}),r.forEach(function(i){var o=Object.keys(i.mediaTypes||{banner:"banner"}),e=i.bids.map(function(e){return e.bidder}),a=O.bidderRegistry,t=d.b.getConfig("s2sConfig"),n=t&&t.bidders,r=n?e.filter(function(e){return!l()(n,e)}):e;i.transactionId=E.generateUUID(),r.forEach(function(t){var e=a[t],n=e&&e.getSpec&&e.getSpec(),r=n&&n.supportedMediaTypes||["banner"];o.some(function(e){return l()(r,e)})?p.a.incrementBidderRequestsCounter(i.code,t):(E.logWarn(E.unsupportedBidderMessage(i,t)),i.bids=i.bids.filter(function(e){return e.bidder!==t}))}),p.a.incrementRequestsCounter(i.code)}),r&&0!==r.length){var u=y.a.createAuction({adUnits:r,adUnitCodes:i,callback:t,cbTimeout:c,labels:o,auctionId:a}),s=r.length;15<s&&E.logInfo("Current auction ".concat(u.getAuctionId()," contains ").concat(s," adUnits."),r),i.forEach(function(e){return f.a.setLatestAuctionForAdUnit(e,u.getAuctionId())}),u.callBids()}else if(E.logMessage("No adUnits configured. No bids requested."),"function"==typeof t)try{t()}catch(e){E.logError("Error executing bidsBackHandler",null,e)}}),S.requestBids.before(J,49),S.addAdUnits=function(e){E.logInfo("Invoking pbjs.addAdUnits",arguments),E.isArray(e)?S.adUnits.push.apply(S.adUnits,e):"object"===v(e)&&S.adUnits.push(e),T.emit(j)},S.onEvent=function(e,t,n){E.logInfo("Invoking pbjs.onEvent",arguments),E.isFn(t)?!n||q[e].call(null,n)?T.on(e,t,n):E.logError('The id provided is not valid for event "'+e+'" and no handler was set.'):E.logError('The event handler provided is not a function and was not set on event "'+e+'".')},S.offEvent=function(e,t,n){E.logInfo("Invoking pbjs.offEvent",arguments),n&&!q[e].call(null,n)||T.off(e,t,n)},S.registerBidAdapter=function(e,t){E.logInfo("Invoking pbjs.registerBidAdapter",arguments);try{O.registerBidAdapter(e(),t)}catch(e){E.logError("Error registering bidder adapter : "+e.message)}},S.registerAnalyticsAdapter=function(e){E.logInfo("Invoking pbjs.registerAnalyticsAdapter",arguments);try{O.registerAnalyticsAdapter(e)}catch(e){E.logError("Error registering analytics adapter : "+e.message)}},S.createBid=function(e){return E.logInfo("Invoking pbjs.createBid",arguments),Object(g.a)(e)},S.enableAnalytics=function(e){e&&!E.isEmpty(e)?(E.logInfo("Invoking pbjs.enableAnalytics for: ",e),O.enableAnalytics(e)):E.logError("pbjs.enableAnalytics should be called with option {}")},S.aliasBidder=function(e,t,n){E.logInfo("Invoking pbjs.aliasBidder",arguments),e&&t?O.aliasBidAdapter(e,t,n):E.logError("bidderCode and alias must be passed as arguments","pbjs.aliasBidder")},S.getAllWinningBids=function(){return y.a.getAllWinningBids()},S.getAllPrebidWinningBids=function(){return y.a.getBidsReceived().filter(function(e){return e.status===A.BID_STATUS.BID_TARGETING_SET})},S.getHighestCpmBids=function(e){return f.a.getWinningBids(e)},S.markWinningBidAsUsed=function(t){var e=[];t.adUnitCode&&t.adId?e=y.a.getBidsReceived().filter(function(e){return e.adId===t.adId&&e.adUnitCode===t.adUnitCode}):t.adUnitCode?e=f.a.getWinningBids(t.adUnitCode):t.adId?e=y.a.getBidsReceived().filter(function(e){return e.adId===t.adId}):E.logWarn("Inproper usage of markWinningBidAsUsed. It'll need an adUnitCode and/or adId to function."),0e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var I,C=n(0),j=n(5),w=n(8),y={},_=y.bidderRegistry={},B=y.aliasRegistry={},x={};A.b.getConfig("s2sConfig",function(e){x=e.s2sConfig});var c={};var U=Object(r.b)("sync",function(e){var i=e.bidderCode,s=e.auctionId,d=e.bidderRequestId,t=e.adUnits,f=e.labels,l=e.src;return t.reduce(function(e,c){var t=Object(p.b)(Object(p.a)(c,f),c.mediaTypes,c.sizes),n=t.active,u=t.mediaTypes,r=t.filterResults;return n?r&&C.logInfo('Size mapping filtered adUnit "'.concat(c.code,'" banner sizes from '),r.before,"to ",r.after):C.logInfo('Size mapping disabled adUnit "'.concat(c.code,'"')),n&&e.push(c.bids.filter(function(e){return e.bidder===i}).reduce(function(e,t){var n=c.nativeParams||C.deepAccess(c,"mediaTypes.native");n&&(t=v({},t,{nativeParams:Object(g.g)(n)})),t=v({},t,Object(S.getDefinedParams)(c,["fpd","mediaType","renderer","storedAuctionResponse"]));var r=Object(p.b)(Object(p.a)(t,f),u),i=r.active,o=r.mediaTypes,a=r.filterResults;return i?a&&C.logInfo('Size mapping filtered adUnit "'.concat(c.code,'" bidder "').concat(t.bidder,'" banner sizes from '),a.before,"to ",a.after):C.logInfo('Size mapping deactivated adUnit "'.concat(c.code,'" bidder "').concat(t.bidder,'"')),C.isValidMediaTypes(o)?t=v({},t,{mediaTypes:o}):C.logError("mediaTypes is not correctly configured for adunit ".concat(c.code)),i&&e.push(v({},t,{adUnitCode:c.code,transactionId:c.transactionId,sizes:C.deepAccess(o,"banner.sizes")||C.deepAccess(o,"video.playerSize")||[],bidId:t.bid_id||C.getUniqueIdentifierStr(),bidderRequestId:d,auctionId:s,src:l,bidRequestsCount:b.a.getRequestsCounter(c.code),bidderRequestsCount:b.a.getBidderRequestsCounter(c.code,t.bidder),bidderWinsCount:b.a.getBidderWinsCounter(c.code,t.bidder)})),e},[])),e},[]).reduce(S.flatten,[]).filter(function(e){return""!==e})},"getBids");var R={consentData:null,setConsentData:function(e){R.consentData=e},getConsentData:function(){return R.consentData}},k={consentData:null,setConsentData:function(e){k.consentData=e},getConsentData:function(){return k.consentData}};function D(){return x&&x.enabled&&x.testing&&I}function u(t,n,e){try{var r=_[t].getSpec();r&&r[n]&&"function"==typeof r[n]&&(C.logInfo("Invoking ".concat(t,".").concat(n)),A.b.runWithBidder(t,S.bind.call(r[n],r,e)))}catch(e){C.logWarn("Error calling ".concat(n," of ").concat(t))}}y.makeBidRequests=Object(r.b)("sync",function(e,i,o,a,c){w.emit(j.EVENTS.BEFORE_REQUEST_BIDS,e);var u=[],t=Object(S.getBidderCodes)(e);A.b.getConfig("bidderSequence")===A.a&&(t=Object(S.shuffle)(t));var n,r,s,d,f,l,p,g=Object(T.a)(),b=t,v=[];x.enabled&&(D()&&(v=I.getSourceBidderMap(e)[I.CLIENT]),n=x.bidders,b=t.filter(function(e){return!E()(n,e)||E()(v,e)}),Boolean(D()&&x.testServerOnly)&&(p=e,Boolean(O()(p,function(e){return O()(e.bids,function(e){return(e.bidSource||x.bidderControl&&x.bidderControl[e.bidder])&&e.finalSource===I.SERVER})})))&&(b.length=0),d=e,f=x.bidders,(l=C.deepClone(d)).forEach(function(e){e.bids=e.bids.filter(function(e){return E()(f,e.bidder)&&(!D()||e.finalSource!==I.CLIENT)}).map(function(e){return e.bid_id=C.getUniqueIdentifierStr(),e})}),r=l=l.filter(function(e){return 0!==e.bids.length}),s=C.generateUUID(),n.forEach(function(e){var t=C.getUniqueIdentifierStr(),n={bidderCode:e,auctionId:o,bidderRequestId:t,tid:s,bids:U({bidderCode:e,auctionId:o,bidderRequestId:t,adUnits:C.deepClone(r),labels:c,src:j.S2S.SRC}),auctionStart:i,timeout:x.timeout,src:j.S2S.SRC,refererInfo:g};0!==n.bids.length&&u.push(n)}),r.forEach(function(e){var t=e.bids.filter(function(t){return O()(u,function(e){return O()(e.bids,function(e){return e.bidId===t.bid_id})})});e.bids=t}),u.forEach(function(e){e.adUnitsS2SCopy=r.filter(function(e){return 0<e.bids.length})}));var y,h,m=(y=e,(h=C.deepClone(y)).forEach(function(e){e.bids=e.bids.filter(function(e){return!D()||e.finalSource!==I.SERVER})}),h=h.filter(function(e){return 0!==e.bids.length}));return b.forEach(function(e){var t=C.getUniqueIdentifierStr(),n={bidderCode:e,auctionId:o,bidderRequestId:t,bids:U({bidderCode:e,auctionId:o,bidderRequestId:t,adUnits:C.deepClone(m),labels:c,src:"client"}),auctionStart:i,timeout:a,refererInfo:g},r=_[e];r||C.logError("Trying to make a request for bidder that does not exist: ".concat(e)),r&&n.bids&&0!==n.bids.length&&u.push(n)}),R.getConsentData()&&u.forEach(function(e){e.gdprConsent=R.getConsentData()}),k.getConsentData()&&u.forEach(function(e){e.uspConsent=k.getConsentData()}),u},"makeBidRequests"),y.callBids=function(e,t,i,o,a,c,u){var n,r,s,d,f,l,p,g,b,v,y;t.length?(r=(n=m(t.reduce(function(e,t){return e[Number(void 0!==t.src&&t.src===j.S2S.SRC)].push(t),e},[[],[]]),2))[0],(s=n[1]).length&&(d=Object(h.b)(c,a?{request:a.request.bind(null,"s2s"),done:a.done}:void 0),f=x.bidders,l=_[x.adapter],p=s[0].tid,g=s[0].adUnitsS2SCopy,l?(b={tid:p,ad_units:g}).ad_units.length&&(v=s.map(function(e){return e.start=Object(S.timestamp)(),o.bind(e)}),y=b.ad_units.reduce(function(e,t){return e.concat((t.bids||[]).reduce(function(e,t){return e.concat(t.bidder)},[]))},[]),C.logMessage("CALLING S2S HEADER BIDDERS ==== ".concat(f.filter(function(e){return E()(y,e)}).join(","))),s.forEach(function(e){w.emit(j.EVENTS.BID_REQUESTED,e)}),l.callBids(b,s,function(e,t){var n=Object(S.getBidderRequest)(s,t.bidderCode,e);n&&i.call(n,e,t)},function(){return v.forEach(function(e){return e()})},d)):C.logError("missing "+x.adapter)),r.forEach(function(t){t.start=Object(S.timestamp)();var e=_[t.bidderCode];C.logMessage("CALLING BIDDER ======= ".concat(t.bidderCode)),w.emit(j.EVENTS.BID_REQUESTED,t);var n=Object(h.b)(c,a?{request:a.request.bind(null,t.bidderCode),done:a.done}:void 0),r=o.bind(t);try{A.b.runWithBidder(t.bidderCode,S.bind.call(e.callBids,e,t,i.bind(t),r,n,u,A.b.callbackWithBidder(t.bidderCode)))}catch(e){C.logError("".concat(t.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:e,bidRequest:t}),r()}})):C.logWarn("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},y.videoAdapters=[],y.registerBidAdapter=function(e,t){var n=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:{}).supportedMediaTypes,r=void 0===n?[]:n;e&&t?"function"==typeof e.callBids?(_[t]=e,E()(r,"video")&&y.videoAdapters.push(t),E()(r,"native")&&g.e.push(t)):C.logError("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):C.logError("bidAdaptor or bidderCode not specified")},y.aliasBidAdapter=function(t,e,n){var r,i;if(void 0===_[e]){var o=_[t];if(void 0===o){var a=A.b.getConfig("s2sConfig"),c=a&&a.bidders;c&&E()(c,e)?B[e]=t:C.logError('bidderCode "'+t+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}else try{var u,s,d,f=(r=t,i=[],E()(y.videoAdapters,r)&&i.push("video"),E()(g.e,r)&&i.push("native"),i);o.constructor.prototype!=Object.prototype?(d=new o.constructor).setBidderCode(e):(u=o.getSpec(),s=n&&n.gvlid,d=Object(l.newBidder)(v({},u,{code:e,gvlid:s})),B[e]=t),y.registerBidAdapter(d,e,{supportedMediaTypes:f})}catch(e){C.logError(t+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else C.logMessage('alias name "'+e+'" has been already specified.')},y.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,c[n]=t):C.logError('Prebid Error: Analytics adaptor error for analytics "'.concat(n,'"n analytics adapter must implement an enableAnalytics() function')):C.logError("Prebid Error: analyticsAdapter or analyticsCode not specified")},y.enableAnalytics=function(e){C.isArray(e)||(e=[e]),C._each(e,function(e){var t=c[e.provider];t?t.enableAnalytics(e):C.logError("Prebid Error: no analytics adapter found in registry forn ".concat(e.provider,"."))})},y.getBidAdapter=function(e){return _[e]},y.callTimedOutBidders=function(t,n,r){n=n.map(function(e){return e.params=C.getUserConfiguredParams(t,e.adUnitCode,e.bidder),e.timeout=r,e}),n=C.groupBy(n,"bidder"),Object.keys(n).forEach(function(e){u(e,"onTimeout",n[e])})},y.callBidWonBidder=function(e,t,n){t.params=C.getUserConfiguredParams(n,t.adUnitCode,t.bidder),b.a.incrementBidderWinsCounter(t.adUnitCode,t.bidder),u(e,"onBidWon",t)},y.callSetTargetingBidder=function(e,t){u(e,"onSetTargeting",t)},t.default=y},70:function(e,t,n){var r=n(28),i=n(48),o="".split;e.exports=r(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},71:function(e,t,n){var r=n(27),i=n(28),o=n(72);e.exports=!r&&!i(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},72:function(e,t,n){var r=n(22),i=n(23),o=r.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},73:function(e,t,n){var r=n(16),i=n(74);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},74:function(e,t,n){var r=n(22),i=n(103),o="__core-js_shared__",a=r[o]||i(o,{});e.exports=a},75:function(e,t,n){var r=n(28);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},76:function(e,t,n){function r(c){return function(e,t,n){var r,i=u(e),o=s(i.length),a=d(n,o);if(c&&t!=t){for(;a<o;)if((r=i[a++])!=r)return!0}else for(;a<o;a++)if((c||a in i)&&i[a]===t)return c||a||0;return!c&&-1}}var u=n(47),s=n(50),d=n(107);e.exports={includes:r(!0),indexOf:r(!1)}},77:function(e,t,n){var r=n(108);n(131),n(133),n(135),n(137),n(139),n(140),n(141),n(142),n(143),n(144),n(145),n(146),n(147),n(148),n(149),n(150),n(151),n(152),e.exports=r},78:function(e,t,n){function r(e){c(e,d,{value:{objectID:"O"+ ++f,weakData:{}}})}var i=n(53),o=n(23),a=n(24),c=n(31).f,u=n(59),s=n(111),d=u("meta"),f=0,l=Object.isExtensible||function(){return!0},p=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,d)){if(!l(e))return"F";if(!t)return"E";r(e)}return e[d].objectID},getWeakData:function(e,t){if(!a(e,d)){if(!l(e))return!0;if(!t)return!1;r(e)}return e[d].weakData},onFreeze:function(e){return s&&p.REQUIRED&&l(e)&&!a(e,d)&&r(e),e}};i[d]=!0},79:function(e,t,n){var r=n(19),i=n(37),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},8:function(e,t,n){function r(){return(r=Object.assign||function(e){for(var t=1;t=n.length?{value:void 0,done:!0}:(e=i(n,r),t.index+=e.length,{value:e,done:!1})})},88:function(e,t,n){var r=n(15),i=n(61);e.exports=function(e){var t=i(e);if(“function”!=typeof t)throw TypeError(String(e)+” is not iterable”);return r(t.call(e))}},89:function(e,t,n){var r=n(153);e.exports=r},9:function(e,t,n){“use strict”;n.d(t,”c”,function(){return f}),n.d(t,”d”,function(){return l}),t.a=function(e){return o({moduleName:e,moduleType:”core”})},t.b=function(e,t){return o({gvlid:e,moduleName:t})};var r=n(13),c=n(0),i=n(12),u=n.n(i),d=[“core”,”prebid-module”],f=[];function o(e){var t=0<arguments.length&&void 0!==e?e:{},i=t.gvlid,o=t.moduleName,a=t.moduleType;function s(n){if(u()(d,a)){return n({valid:!0})}var r;return l(i,o,{hasEnforcementHook:!1},function(e){var t;r=e&&e.hasEnforcementHook?n(e):(t={hasEnforcementHook:!1,valid:c.hasDeviceAccess()},n(t))}),r}return{setCookie:function(i,o,a,c,u,t){function n(e){var t,n,r;e&&e.valid&&(t=u&&""!==u?" ;domain=".concat(encodeURIComponent(u)):"",n=a&&""!==a?" ;expires=".concat(a):"",r=null!=c&&"none"==c.toLowerCase()?"; Secure":"",document.cookie="".concat(i,"=").concat(encodeURIComponent(o)).concat(n,"; path=/").concat(t).concat(c?"; SameSite=".concat(c):"").concat(r))}if(!t||"function"!=typeof t)return s(n);f.push(function(){var e=s(n);t(e)})},getCookie:function(n,t){function r(e){if(e&&e.valid){var t=window.document.cookie.match("(^|;)\s*"+n+"\s*=\s*([^;]*)\s*(;|$)");return t?decodeURIComponent(t[2]):null}return null}if(!t||"function"!=typeof t)return s(r);f.push(function(){var e=s(r);t(e)})},localStorageIsEnabled:function(t){function n(e){if(e&&e.valid)try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){}return!1}if(!t||"function"!=typeof t)return s(n);f.push(function(){var e=s(n);t(e)})},cookiesAreEnabled:function(t){function n(e){return!(!e||!e.valid)&&(!!c.checkCookieSupport()||(window.document.cookie="prebid.cookieTest",-1!==window.document.cookie.indexOf("prebid.cookieTest")))}if(!t||"function"!=typeof t)return s(n);f.push(function(){var e=s(n);t(e)})},setDataInLocalStorage:function(t,n,r){function i(e){e&&e.valid&&window.localStorage.setItem(t,n)}if(!r||"function"!=typeof r)return s(i);f.push(function(){var e=s(i);r(e)})},getDataFromLocalStorage:function(t,n){function r(e){return e&&e.valid?window.localStorage.getItem(t):null}if(!n||"function"!=typeof n)return s(r);f.push(function(){var e=s(r);n(e)})},removeDataFromLocalStorage:function(t,n){function r(e){e&&e.valid&&window.localStorage.removeItem(t)}if(!n||"function"!=typeof n)return s(r);f.push(function(){var e=s(r);n(e)})},hasLocalStorage:function(t){function n(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){c.logError("Local storage api disabled")}return!1}if(!t||"function"!=typeof t)return s(n);f.push(function(){var e=s(n);t(e)})},findSimilarCookies:function(o,t){function n(e){if(e&&e.valid){var t=[];if(c.hasDeviceAccess())for(var n=document.cookie.split(";");n.length;){var r=n.pop(),i=(i=r.indexOf("="))<0?r.length:i;0<=decodeURIComponent(r.slice(0,i).replace(/^s+/,"")).indexOf(o)&&t.push(decodeURIComponent(r.slice(i+1)))}return t}}if(!t||"function"!=typeof t)return s(n);f.push(function(){var e=s(n);t(e)})}}}var l=Object(r.b)("async",function(e,t,n,r){r(n)},"validateStorageEnforcement")},90:function(e,t,n){"use strict";t.a=function(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}},91:function(e,t,n){"use strict";t.a=function(e,t){if(e.labelAll)return{labelAll:!0,labels:e.labelAll,activeLabels:t};return{labelAll:!1,labels:e.labelAny,activeLabels:t}},t.c=function(e){var t=v(1<arguments.length&&void 0!==arguments[1]?arguments[1]:b);return!t.shouldFilter||!!t.sizesSupported[e]},t.b=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.labels,n=void 0===t?[]:t,r=e.labelAll,i=void 0!==r&&r,o=e.activeLabels,a=void 0===o?[]:o,c=1<arguments.length?arguments[1]:void 0,u=2<arguments.length?arguments[2]:void 0,s=v(3<arguments.length&&void 0!==arguments[3]?arguments[3]:b);c=Object(p.isPlainObject)(c)?Object(p.deepClone)(c):u?{banner:{sizes:u}}:{};var d=Object(p.deepAccess)(c,"banner.sizes");s.shouldFilter&&d&&(c.banner.sizes=d.filter(function(e){return s.sizesSupported[e]}));var f=Object.keys(c),l={active:f.every(function(e){return"banner"!==e})||f.some(function(e){return"banner"===e})&&0<Object(p.deepAccess)(c,"banner.sizes.length")&&(0===n.length||!i&&(n.some(function(e){return s.labels[e]})||n.some(function(e){return g()(a,e)}))||i&&n.reduce(function(e,t){return e?s.labels[t]||g()(a,t):e},!0)),mediaTypes:c};d&&d.length!==c.banner.sizes.length&&(l.filterResults={before:d,after:c.banner.sizes});return l};var r=n(3),p=n(0),i=n(12),g=n.n(i);function o(e){return(o="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})(e)}var b=[];function v(e){return e.reduce(function(n,r){if("object"===o(r)&&"string"==typeof r.mediaQuery){var t=!1;if(""===r.mediaQuery)t=!0;else try{t=Object(p.getWindowTop)().matchMedia(r.mediaQuery).matches}catch(e){Object(p.logWarn)("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),t=matchMedia(r.mediaQuery).matches}t&&(Array.isArray(r.sizesSupported)&&(n.shouldFilter=!0),["labels","sizesSupported"].forEach(function(t){return(r[t]||[]).forEach(function(e){return n[t][e]=!0})}))}else Object(p.logWarn)('sizeConfig rule missing required property "mediaQuery"');return n},{labels:{},sizesSupported:{},shouldFilter:!1})}r.b.getConfig("sizeConfig",function(e){return t=e.sizeConfig,void(b=t);var t})},92:function(e,t,n){var r=n(215);e.exports=r},93:function(e,t,n){"use strict";t.b=function(e,t,n){var r={puts:e.map(c,n)};Object(i.a)(o.b.getConfig("cache.url"),function(n){return{success:function(e){var t;try{t=JSON.parse(e).responses}catch(e){return void n(e,[])}t?n(null,t):n(new Error("The cache server didn't respond with a responses property."),[])},error:function(e,t){n(new Error("Error storing video ad in the cache: ".concat(e,": ").concat(JSON.stringify(t))),[])}}}(t),JSON.stringify(r),{contentType:"text/plain",withCredentials:!0})},t.a=function(e){return"".concat(o.b.getConfig("cache.url"),"?uuid=").concat(e)};var i=n(4),o=n(3),a=n(0);function c(e){var t,n,r,i={type:"xml",value:e.vastXml?e.vastXml:(t=e.vastUrl,n=e.vastImpUrl,r=n?""):"",'n n n prebid.org wrappern n ").concat(r,"n n n n ")),ttlseconds:Number(e.ttl)};return o.b.getConfig("cache.vasttrack")&&(i.bidder=e.bidder,i.bidid=e.requestId,a.isPlainObject(this)&&this.hasOwnProperty("auctionStart")&&(i.timestamp=this.auctionStart)),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(i.key=e.customCacheKey),i}},96:function(e,t,n){n(97);var r=n(52);e.exports=r("Array","find")},97:function(e,t,n){"use strict";var r=n(14),i=n(56).find,o=n(51),a=n(60),c="find",u=!0,s=a(c);c in[]&&Array(1).find(function(){u=!1}),r({target:"Array",proto:!0,forced:u||!s},{find:function(e,t){return i(this,e,1<arguments.length?t:void 0)}}),o(c)},98:function(e,t,n){var r=n(27),i=n(99),o=n(46),a=n(47),c=n(55),u=n(24),s=n(71),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t,!0),s)try{return d(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},99:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r}}); pbjsChunk([286],{253:function(e,t,n){e.exports=n(254)},254:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return v});var r=n(1),l=n(2),s=n(0);function c(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach(function(e){d(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return(o="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})(e)}var p=/.co.w{2,4}$/,u=/^s*/,a=/^s*<??(?:vast|xml)/i,f=function(e,t){return e.concat(Object(s.deepAccess)(t,"".concat(l.b,".sizes"),[])||[]).concat(Object(s.deepAccess)(t,"".concat(l.d,".sizes"),[])||[]).sort(function(e,t){return t[0]*t[1]-e[0]*e[1]})[0]};function b(e,t){return null==e?[]:e.map(t).reduce(function(e,t){return null!=t&&e.concat(t)},[])}function m(e){return null!=(t=e.adm)&&a.test(t)?l.d:l.b;var t}function h(e,t){return null==e||o(e)===t}var O=encodeURIComponent;function g(e){var t={};return Object(s._each)(e,function(e){t[e.bidId]=function(e){var t=f(e.sizes,e.mediaTypes)||[0,0],n=e.mediaType===l.d||l.d in e.mediaTypes,r=n||100<t[1],c=Object(s.deepAccess)(e,"params.tagId"),i={av:r,vr:n,aw:t[0],ah:t[1],tf:0};"string"==typeof c&&0<c.length&&(i.i=c);return i}(e)}),t}function y(e,t){return Object(s.triggerPixel)("".concat("https://1×1.a-mo.net/hbx/","g_").concat(e,"?").concat(Object(s.formatQS)(i(i({},t),{},{ts:Date.now(),eid:Object(s.getUniqueIdentifierStr)()}))))}function j(e){if("undefined"==typeof DOMParser||null==DOMParser.prototype.parseFromString)return function(e){var t=[];Object(s._each)([e.nurl].concat(null!=e.ext&&null!=e.ext.himp?e.ext.himp:[]),function(e){null!=e&&t.push(""))});var n=e.adm.indexOf("<Impression");return e.adm.slice(0,n)+t.join("")+e.adm.slice(n)}(e);var r=(new DOMParser).parseFromString(e.adm,"text/xml");if(null==r||null!=r.querySelector("parsererror"))return null;var c=r.querySelector("InLine,Wrapper");if(null==c)return null;var t=[e.nurl].concat(null!=e.ext&&null!=e.ext.himp?e.ext.himp:[]).filter(function(e){return null!=e});Object(s._each)(t,function(e){var t=r.createElement("Impression"),n=r.createCDATASection(e);t.appendChild(n),c.appendChild(t)});var n,i,o=u.exec(e.adm);return(null!=o?o[0]:''))+("outerHTML"in(n=r.documentElement)&&null!=n.outerHTML?n.outerHTML:(new XMLSerializer).serializeToString(n))}var v={code:"amx",supportedMediaTypes:[l.b,l.d],isBidRequestValid:function(e){return h(Object(s.deepAccess)(e,"params.endpoint",null),"string")&&h(Object(s.deepAccess)(e,"params.tagId",null),"string")&&h(Object(s.deepAccess)(e,"params.testMode",null),"boolean")},buildRequests:function(e,t){var n,r,c,i,o=(n=t,Object(s.parseUrl)(Object(s.deepAccess)(n,"refererInfo.canonicalUrl",location.href))),u=Object(s.deepAccess)(e[0],"params.tagId",null),a=Object(s.deepAccess)(e[0],"params.testMode",0);return{data:{a:t.auctionId,B:0,b:o.host,tm:a,V:"4.2.0",i:a&&null!=u?u:(c=(r=o).hostname.split("."),i=c.slice(c.length-(p.test(r.host)?3:2)).join("."),btoa(i).replace(/=+$/,"")),l:{},f:.01,cv:"pba1.0",st:"prebid",h:screen.height,w:screen.width,gs:Object(s.deepAccess)(t,"gdprConsent.gdprApplies","0"),gc:Object(s.deepAccess)(t,"gdprConsent.consentString",""),u:Object(s.deepAccess)(t,"refererInfo.canonicalUrl",o.href),do:o.host,re:Object(s.deepAccess)(t,"refererInfo.referer"),usp:t.uspConsent||"1—",smt:1,d:"",m:g(e)},method:"POST",url:Object(s.deepAccess)(e[0],"params.endpoint","https://prebid.a-mo.net/a/c"),withCredentials:!0}},getUserSyncs:function(n,e){if(null==e||0===e.length)return[];var r=[];return Object(s._each)(e,function(e){var t=e.body;null!=t&&null!=t.p&&t.p.hreq&&Object(s._each)(t.p.hreq,function(e){var t=-1!==e.indexOf("__st=iframe")?"iframe":"image";!n.iframeEnabled&&"image"!=t||r.push({url:e,type:t})})}),r},interpretResponse:function(e,a){var t=e.body;return null==t||"string"==typeof t?[]:b(Object.keys(t.r),function(u){return b(t.r[u],function(e){return e.b.map(function(e){var t,n,r=m(e),c=r===l.b?(t=e,n=Object(s.deepAccess)(t,"ext.himp",[]).concat(null!=t.nurl?[t.nurl]:[]).filter(function(e){return null!=e&&0<e.length}).map(function(e){return'‘)}).join(“”),t.adm+n):j(e);if(null==c)return null;var i,o=function(e,t,n){if(null!=e.w&&1<e.w&&null!=e.h&&1<e.h)return[e.w,e.h];var r=t.m[n];return null==r?[0,0]:[r.aw,r.ah]}(e,a.data,u);return d(i={requestId:u,cpm:e.price,width:o[0],height:o[1],creativeId:e.crid,currency:"USD",netRevenue:!0},r===l.d?"vastXml":"ad",c),d(i,"meta",{advertiserDomains:e.adomain,mediaType:r}),d(i,"ttl",r===l.d?90:70),i})}).filter(function(e){return null!=e})})},onSetTargeting:function(e){var t,n;null!=e&&y("pbst",{A:e.bidder,w:e.width,h:e.height,bid:e.adId,c1:e.mediaType,np:e.cpm,aud:e.requestId,a:e.adUnitCode,c2:(t=e.adserverTargeting,n=[],Object.keys(t||{}).forEach(function(e){n.push(O(e)+"="+O(String(t[e])))}),O(n.join("&")))})},onTimeout:function(e){null!=e&&y("pbto",{A:e.bidder,bid:e.bidId,a:e.adUnitCode,cn:e.timeout,aud:e.auctionId})},onBidWon:function(e){null!=e&&y("pbwin",{A:e.bidder,w:e.width,h:e.height,bid:e.adId,C:e.mediaType===l.b?0:1,np:e.cpm,a:e.adUnitCode})}};Object(r.registerBidder)(v)}},[253]); pbjsChunk([248],{337:function(n,t,e){n.exports=e(338)},338:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),e.d(t,"allowAuction",function(){return y}),e.d(t,"userCMP",function(){return l}),e.d(t,"consentTimeout",function(){return u}),e.d(t,"gdprScope",function(){return p}),e.d(t,"staticConsentData",function(){return g}),t.requestBidsHook=h,t.resetConsentData=function(){m=void 0,l=void 0,w=0,a.gdprDataHandler.setConsentData(null)},t.setConsentConfig=_;var d=e(0),o=e(3),a=e(7),i=e(12),r=e.n(i),s=e(339),f=e.n(s);function c(n){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var l,u,p,g,m,C="iab",v=1e4,b=!0,y={value:b,definedInConfig:!1},w=0,D=!1,k={iab:function(o,e,r){function n(n,t){d.logInfo("Received a response from CMP",n),t?("tcloaded"===n.eventStatus||"useractioncomplete"===n.eventStatus||"cmpuishown"===n.eventStatus&&n.tcString&&!0===n.purposeOneTreatment)&&o(n,r):e("CMP unable to register callback function. Please check CMP setup.",r)}var t=function(){var t={};function e(){t.getConsentData&&t.getVendorConsents&&(d.logInfo("Received all requested responses from CMP",t),o(t,r))}return{consentDataCallback:function(n){t.getConsentData=n,e()},vendorConsentsCallback:function(n){t.getVendorConsents=n,e()}}}(),u={},a=function(){for(var n,t,e=window;!n;){try{if("function"==typeof e.__tcfapi||"function"==typeof e.__cmp){t="function"==typeof e.__tcfapi?(w=2,e.__tcfapi):(w=1,e.__cmp),n=e;break}}catch(n){}try{if(e.frames.__tcfapiLocator){w=2,n=e;break}}catch(n){}try{if(e.frames.__cmpLocator){w=1,n=e;break}}catch(n){}if(e===window.top)break;e=e.parent}return{cmpFrame:n,cmpFunction:t}}(),i=a.cmpFrame,s=a.cmpFunction;if(!i)return e("CMP not found.",r);d.isFn(s)?(d.logInfo("Detected CMP API is directly accessible, calling it now…"),1===w?(s("getConsentData",null,t.consentDataCallback),s("getVendorConsents",null,t.vendorConsentsCallback)):2===w&&s("addEventListener",w,n)):1===w&&window.$sf&&window.$sf.ext&&"function"==typeof window.$sf.ext.cmp?(d.logInfo("Detected Prebid.js is encased in a SafeFrame and CMP is registered, calling it now…"),c("getConsentData",t.consentDataCallback),c("getVendorConsents",t.vendorConsentsCallback)):(d.logInfo("Detected CMP is outside the current iframe where Prebid.js is located, calling it now…"),1===w?(l("getConsentData",i,t.consentDataCallback),l("getVendorConsents",i,t.vendorConsentsCallback)):2===w&&l("addEventListener",i,n));function c(o,a){var n,t=r.adUnits,e=1,i=1;Array.isArray(t)&&0<t.length&&(e=(n=d.getAdUnitSizes(t[0]))[0][0],i=n[0][1]),window.$sf.ext.register(e,i,function(n,t){var e;"cmpReturn"===n&&(e="getConsentData"===o?t.vendorConsentData:t.vendorConsents,a(e))}),window.$sf.ext.cmp(o)}function l(n,l,t){var d=2===w?"__tcfapi":"__cmp";window[d]=function(n,t,e){var o,a,i,r=Math.random()+"",s="".concat(d,"Call"),c=(i={command:n,parameter:t,callId:r},(a=s)in(o={})?Object.defineProperty(o,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[a]=i,o);1!==w&&(c[s].version=w),u[r]=e,l.postMessage(c,"*")},window.addEventListener("message",function(n){var t="".concat(d,"Return"),e="string"==typeof n.data&&f()(n.data,t)?JSON.parse(n.data):n.data;{var o;e[t]&&e[t].callId&&(o=e[t],void 0!==u[o.callId]&&u[o.callId](o.returnValue,o.success))}},!1),window[d](n,null,t)}},static:function(n,t,e){n(g,e)}};function h(n,t){var e={context:this,args:[t],nextFn:n,adUnits:t.adUnits||pbjs.adUnits,bidsBackHandler:t.bidsBackHandler,haveExited:!1,timer:null};return m?(d.logInfo("User consent information already known. Pulling internally stored information…"),S(null,e)):r()(Object.keys(k),l)?(k[l].call(this,M,A,e),void(e.haveExited||(0===u?M(void 0,e):e.timer=setTimeout(function(n){A("CMP workflow exceeded timeout threshold.",n)}.bind(null,e),u)))):(d.logWarn("CMP framework (".concat(l,") is not a supported framework. Aborting consentManagement module and resuming auction.")),e.nextFn.apply(e.context,e.args))}function M(e,n){"static"===l&&2===(w=e.getConsentData?1:e.getTCData?2:0)&&(e=e.getTCData);var t=1===w?function(n){var t=n&&n.getConsentData&&n.getConsentData.gdprApplies;return!("boolean"==typeof t&&(!0!==t||d.isStr(n.getConsentData.consentData)&&d.isPlainObject(n.getVendorConsents)&&1<Object.keys(n.getVendorConsents).length))}:2===w?function(){var n=e&&"boolean"==typeof e.gdprApplies?e.gdprApplies:p,t=e&&e.tcString;return!("boolean"==typeof n&&(!0!==n||d.isStr(t)))}:null;y.definedInConfig&&2===w?d.logWarn("'allowAuctionWithoutConsent' ignored for TCF 2"):y.definedInConfig||1!==w||d.logInfo("'allowAuctionWithoutConsent' using system default: (".concat(b,").")),d.isFn(t)?t(e)?A("CMP returned unexpected value during lookup process.",n,e):(clearTimeout(n.timer),P(e),S(null,n)):A("Unable to derive CMP version to process data. Consent object does not conform to TCF v1 or v2 specs.",n,e)}function A(n,t,e){clearTimeout(t.timer),y.value&&1===w&&P(void 0),S(n,t,e)}function P(n){(m=1===w?{consentString:n?n.getConsentData.consentData:void 0,vendorData:n?n.getVendorConsents:void 0,gdprApplies:n?n.getConsentData.gdprApplies:p}:{consentString:n?n.tcString:void 0,vendorData:n||void 0,gdprApplies:n&&"boolean"==typeof n.gdprApplies?n.gdprApplies:p}).apiVersion=w,a.gdprDataHandler.setConsentData(m)}function S(n,t,e){var o,a,i;!1===t.haveExited&&(t.haveExited=!0,o=t.context,a=t.args,i=t.nextFn,n?y.value&&1===w?(d.logWarn(n+" 'allowAuctionWithoutConsent' activated.",e),i.apply(o,a)):(d.logError(n+" Canceling auction as per consentManagement config.",e),"function"==typeof t.bidsBackHandler?t.bidsBackHandler():d.logError("Error executing bidsBackHandler")):i.apply(o,a))}function _(n){(n=n.gdpr||n.usp?n.gdpr:n)&&"object"===c(n)?(d.isStr(n.cmpApi)?l=n.cmpApi:(l=C,d.logInfo("consentManagement config did not specify cmp. Using system default setting (".concat(C,")."))),d.isNumber(n.timeout)?u=n.timeout:(u=v,d.logInfo("consentManagement config did not specify timeout. Using system default setting (".concat(v,")."))),"boolean"==typeof n.allowAuctionWithoutConsent&&(y.value=n.allowAuctionWithoutConsent,y.definedInConfig=!0),p=!0===n.defaultGdprScope,d.logInfo("consentManagement module has been activated…"),"static"===l&&(d.isPlainObject(n.consentData)?(g=n.consentData,u=0):d.logError("consentManagement config with cmpApi: 'static' did not specify consentData. No consents will be available to adapters.")),D||pbjs.requestBids.before(h,50),D=!0):d.logWarn("consentManagement config not defined, exiting consent manager")}o.b.getConfig("consentManagement",function(n){return _(n.consentManagement)})}},[337]); pbjsChunk([246],{347:function(e,r,n){e.exports=n(348)},348:function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),n.d(r,"spec",function(){return s});var c=n(0),t=n(1);function i(){return(i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}var a=0,d="consumable",s={code:"consumable",isBidRequestValid:function(e){return!!(e.params.networkId&&e.params.siteId&&e.params.unitId&&e.params.unitName)},buildRequests:function(e,r){var n={method:"POST",url:"",data:"",bidRequest:[]};if(e.length<1)return n;a=e[0].params.siteId,d=e[0].bidder;var s=i({placements:[],time:Date.now(),url:r.refererInfo.referer,referrer:document.referrer,source:[{name:"prebidjs",version:"4.2.0"}]},e[0].params);return r&&r.gdprConsent&&(s.gdpr={consent:r.gdprConsent.consentString,applies:"boolean"!=typeof r.gdprConsent.gdprApplies||r.gdprConsent.gdprApplies}),r&&r.uspConsent&&(s.ccpa=r.uspConsent),e.map(function(e){var n,r=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes||e.sizes||[],t=i({divName:e.bidId,adTypes:e.adTypes||(n=[],r.forEach(function(e){var r=p.indexOf(e[0]+"x"+e[1]);0<=r&&n.push(r)}),n)},e.params);t.networkId&&t.siteId&&t.unitId&&t.unitName&&s.placements.push(t)}),n.data=JSON.stringify(s),n.bidRequest=e,n.bidderRequest=r,n.url="https://e.serverbid.com/api/v2",n},interpretResponse:function(e,r){var n=[],t=r.bidRequest;e=(e||{}).body;for(var s,i=0;i<t.length;i++){var a,d,p,u={},o=(p=t[i]).bidId;e&&(d=(a=e.decisions&&e.decisions[o])&&a.pricing&&a.pricing.clearPrice,a&&d&&(u.requestId=o,u.cpm=d,u.width=a.width,u.height=a.height,u.unitId=p.params.unitId,u.unitName=p.params.unitName,u.ad=(s=a,u.unitId,u.unitName,s.contents&&s.contents[0]&&s.contents[0].body+c.createTrackPixelHtml(s.impressionUrl)),u.currency="USD",u.creativeId=a.adId,u.ttl=30,u.netRevenue=!0,u.referrer=r.bidderRequest.refererInfo.referer,n.push(u)))}return n},getUserSyncs:function(e,r){return e.iframeEnabled?[{type:"iframe",url:"https://sync.serverbid.com/ss/"+a+".html"}]:e.pixelEnabled&&0<r.length?r[0].body.pixels:void c.logWarn(d+": Please enable iframe based user syncing.")}},p=[null,"120×90","120×90","468×60","728×90","300×250","160×600","120×600","300×100","180×150","336×280","240×400","234×60","88×31","120×60","120×240","125×125","220×250","250×250","250×90","0x0","200×90","300×50","320×50","320×480","185×185","620×45","300×125","800×250"];p[77]="970×90",p[123]="970×250",p[43]="300×600",p[286]="970×66",p[3230]="970×280",p[429]="486×60",p[374]="700×500",p[934]="300×1050",p[1578]="320×100",p[331]="320×250",p[3301]="320×267",p[2730]="728×250",Object(t.registerBidder)(s)}},[347]); pbjsChunk([211],{428:function(n,e,t){n.exports=t(429)},429:function(n,e,t){"use strict";function i(n){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}Object.defineProperty(e,"__esModule",{value:!0});var s,r=t(8),a=t(0),o=t(5),u=t(7).default,c=o.EVENTS.BID_REQUESTED,d=o.EVENTS.BID_TIMEOUT,l=o.EVENTS.BID_RESPONSE,f=o.EVENTS.BID_WON,p={nonInteraction:!0},b=[],m=null,v=!0,y="Prebid.js Bids",g=0,T=!1,w=null,E=null,S={};function h(){if(v&&"function"==typeof window[m]){for(var n=0;n<b.length;n++)b[n].call();b.push=function(n){n.call()},v=!1}a.logMessage("event count sent to GA: "+g)}function D(n){return n?Math.floor(100*n):0}function $(n){return w?w(n):(0<=n&&n<.5?e="$0-0.5":.5<=n&&n<1?e="$0.5-1":1<=n&&n<1.5?e="$1-1.5":1.5<=n&&n<2?e="$1.5-2":2<=n&&n<2.5?e="$2-2.5":2.5<=n&&n<3?e="$2.5-3":3<=n&&n<4?e="$3-4":4<=n&&n<6?e="$4-6":6<=n&&n<8?e="$6-8":8<=n&&(e="$8 above"),e);var e}function C(n){n&&n.bidderCode&&b.push(function(){g++,window[m](E,"event",y,"Requests",n.bidderCode,1,p)}),h()}function M(r){r&&r.bidderCode&&b.push(function(){var n,e,t,o,i=D(r.cpm),s=r.bidderCode;void 0!==r.timeToRespond&&T&&(g++,0<=(e=r.timeToRespond)&&e<200?t="0-200ms":200<=e&&e<300?t="0200-300ms":300<=e&&e<400?t="0300-400ms":400<=e&&e<500?t="0400-500ms":500<=e&&e<600?t="0500-600ms":600<=e&&e<800?t="0600-800ms":800<=e&&e<1e3?t="0800-1000ms":1e3<=e&&e<1200?t="1000-1200ms":1200<=e&&e<1500?t="1200-1500ms":1500<=e&&e<2e3?t="1500-2000ms":2e3<=e&&(t="2000ms above"),n=t,window[m](E,"event","Prebid.js Load Time Distribution",n,s,1,p)),0<r.cpm&&(g+=2,o=$(r.cpm),T&&(g++,window[m](E,"event","Prebid.js CPM Distribution",o,s,1,p)),window[m](E,"event",y,"Bids",s,i,p),window[m](E,"event",y,"Bid Load Time",s,r.timeToRespond,p))}),h()}function N(n){b.push(function(){a._each(n,function(n){g++;var e=n.bidder;window[m](E,"event",y,"Timeouts",e,p)})}),h()}function _(n){var e=D(n.cpm);b.push(function(){g++,window[m](E,"event",y,"Wins",n.bidderCode,e,p)}),h()}S.enableAnalytics=function(n){var e=n.provider,t=n.options;m=e||"gtag",E=t&&t.trackerName?t.trackerName+".send":"send",s=void 0===t||void 0===t.sampling||Math.random()<parseFloat(t.sampling),t&&void 0!==t.global&&(m=t.global),t&&void 0!==t.enableDistribution&&(T=t.enableDistribution),t&&"function"==typeof t.cpmDistribution&&(w=t.cpmDistribution);var o;s?(o=r.getEvents(),a._each(o,function(n){var e;"object"===i(n)&&(e=n.args,n.eventType===c?C(e):n.eventType===l?M(e):n.eventType===d?N(e):n.eventType===f&&_(e))}),r.on(c,function(n){C(n)}),r.on(l,function(n){M(n)}),r.on(d,function(n){N(n)}),r.on(f,function(n){_(n)})):a.logMessage("Prebid.js google analytics disabled by sampling"),this.enableAnalytics=function(){return a.logMessage("Analytics adapter already enabled, unnecessary call to `enableAnalytics`.")}},S.getTrackerSend=function(){return E},S.getCpmDistribution=$,u.registerAnalyticsAdapter({adapter:S,code:"gtag"}),e.default=S}},[428]); pbjsChunk([201],{448:function(e,n,t){e.exports=t(449)},449:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),t.d(n,"identityLinkSubmodule",function(){return c});var r=t(0),i=t(4),o=t(13),c={name:"identityLink",decode:function(e){return{idl_env:e}},getId:function(e,n){if(e&&"string"==typeof e.pid){var t=n&&"boolean"==typeof n.gdprApplies&&n.gdprApplies?1:0,i=t?n.consentString:"",o="https://api.rlcdn.com/api/identity/envelope?pid=".concat(e.pid).concat(t?"&ct=1&cv="+i:"");return{callback:function(n){window.ats?(r.logInfo("ATS exists!"),window.ats.retrieveEnvelope(function(e){e?(r.logInfo("An envelope can be retrieved from ATS!"),n(JSON.parse(e).envelope)):d(o,n)})):d(o,n)}}}r.logError("identityLink submodule requires partner id to be defined")}};function d(e,t){r.logInfo("A 3P retrieval is attempted!");var n={success:function(e){var n;if(e)try{n=JSON.parse(e)}catch(e){r.logInfo(e)}t(n&&n.envelope?n.envelope:"")},error:function(e){r.logInfo("identityLink: ID fetch encountered an error",e),t()}};Object(i.a)(e,n,void 0,{method:"GET",withCredentials:!0})}Object(o.e)("userId",c)}},[448]); pbjsChunk([194],{464:function(e,r,i){e.exports=i(465)},465:function(e,r,i){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),i.d(r,"spec",function(){return p});var T=i(0),S=i(2),v=i(3),t=i(10),l=i.n(t),a=i(466),n=i.n(a),s=i(1);function g(e){return(g="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})(e)}var o=[S.b,S.d],y=100,b=300,h=3600,w=!0,x={JPY:1};function C(e){var r={};return r.id=e.bidId,r.ext={},r.ext.siteID=e.params.siteId,!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id?r.ext.sid="".concat(e.params.size[0],"x").concat(e.params.size[1]):r.ext.sid=String(e.params.id),e.params.hasOwnProperty("bidFloor")&&e.params.hasOwnProperty("bidFloorCur")&&(r.bidfloor=e.params.bidFloor,r.bidfloorcur=e.params.bidFloorCur),r}function d(e){return Array.isArray(e)&&2===e.length&&n()(e[0])&&n()(e[1])}function A(e,r){if(d(e))return e[0]===r[0]&&e[1]===r[1];for(var i=0;i<e.length;i++)if(e[i][0]===r[0]&&e[i][1]===r[1])return 1}function j(e,r,i,t){var a=[],n={},s=e[0].userId;if(s&&"object"===g(s)&&s.idl_env&&function(e,r,i,t,a,n){if(i)return r[a]=1,e.push({source:t,uids:[{id:i,ext:{rtiPartner:n}}]});T.logWarn("Tried to add a user ID from Prebid, the ID received was null")}(a,n,s.idl_env,"liveramp.com","LiveRampIp","idl"),window.headertag&&"function"==typeof window.headertag.getIdentityInfo){var o,d=window.headertag.getIdentityInfo();if(d&&"object"===g(d))for(var p in d){d.hasOwnProperty(p)&&(n.hasOwnProperty(p)||!(o=d[p]).responsePending&&o.data&&"object"===g(o.data)&&Object.keys(o.data).length&&a.push(o.data))}}var m,c={};c.id=e[0].bidderRequestId,c.imp=i,c.site={},c.ext={},c.ext.source="prebid",e[0].schain&&(c.source={ext:{schain:e[0].schain}}),0<a.length&&(c.user={},c.user.eids=a),document.referrer&&""!==document.referrer&&(c.site.ref=document.referrer),r&&(r.gdprConsent&&((m=r.gdprConsent).hasOwnProperty("gdprApplies")&&(c.regs={ext:{gdpr:m.gdprApplies?1:0}}),m.hasOwnProperty("consentString")&&(c.user=c.user||{},c.user.ext={consent:m.consentString||""})),r.uspConsent&&T.deepSetValue(c,"regs.ext.us_privacy",r.uspConsent),r.refererInfo&&(c.site.page=r.refererInfo.referer));var u={},f=r&&r.bidderCode||"ix",l=v.b.getConfig(f);if(l){if("object"===g(l.firstPartyData)){var y=l.firstPartyData,b="?";for(var h in y)y.hasOwnProperty(h)&&(b+="".concat(encodeURIComponent(h),"=").concat(encodeURIComponent(y[h]),"&"));b=b.slice(0,-1),c.site.page+=b}"number"==typeof l.timeout&&(u.t=l.timeout)}return u.s=e[0].params.siteId,u.v=t,u.r=JSON.stringify(c),u.ac="j",u.sd=1,8.1===t&&(u.nf=1),{method:"GET",url:"https://htlb.casalemedia.com/cygnus",data:u}}function F(e,r){for(var i=0;i<e.length;i++)if(r[0]==e[i][0]&&r[1]==e[i][1])return e.splice(i,1),1}var p={code:"ix",gvlid:10,supportedMediaTypes:o,isBidRequestValid:function(e){if(!d(e.params.size))return T.logError("ix bidder params: bid size has invalid format."),!1;if(!A(e.sizes,e.params.size))return T.logError("ix bidder params: bid size is not included in ad unit sizes."),!1;if(e.hasOwnProperty("mediaType")&&!T.contains(o,e.mediaType))return!1;if(e.hasOwnProperty("mediaTypes")&&!T.deepAccess(e,"mediaTypes.banner.sizes")&&!T.deepAccess(e,"mediaTypes.video.playerSize"))return!1;if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return T.logError("ix bidder params: siteId must be string or number value."),!1;var r,i,t=e.params.hasOwnProperty("bidFloor"),a=e.params.hasOwnProperty("bidFloorCur");return!!(!t&&!a||t&&a&&(r=e.params.bidFloor,i=e.params.bidFloorCur,Boolean("number"==typeof r&&"string"==typeof i&&i.match(/^[A-Z]{3}$/))))||(T.logError("ix bidder params: bidFloor / bidFloorCur parameter has invalid format."),!1)},buildRequests:function(e,r){for(var i,t,a,n,s,o,d,p,m,c,u,f,l,y=[],b=[],h=[],v=null,g={},w=0;w<e.length;w++){(v=e[w]).mediaType!==S.d&&!T.deepAccess(v,"mediaTypes.video")||(v.mediaType===S.d||A(v.mediaTypes.video.playerSize,v.params.size)?h.push(function(e){var r=C(e);r.video=T.deepClone(e.params.video),r.video.w=e.params.size[0],r.video.h=e.params.size[1];var i=T.deepAccess(e,"mediaTypes.video.context");return i&&("instream"===i?r.video.placement=1:"outstream"===i?r.video.placement=4:T.logWarn("ix bidder params: video context '".concat(i,"' is not supported"))),r}(v)):T.logError("Bid size is not included in video playerSize")),v.mediaType!==S.b&&!T.deepAccess(v,"mediaTypes.banner")&&(v.mediaType||v.mediaTypes)||(c=void 0,(c=C(m=v)).banner={},c.banner.w=m.params.size[0],c.banner.h=m.params.size[1],c.banner.topframe=T.inIframe()?0:1,i=c,b.push(i),a=g,n=i,p=d=o=s=void 0,p=(t=v).transactionId,a.hasOwnProperty(p)?(s=[],a[p].hasOwnProperty("missingSizes")&&(s=a[p].missingSizes),F(s,t.params.size),a[p].missingSizes=s):T.deepAccess(t,"mediaTypes.banner.sizes")&&(F(o=T.deepClone(t.mediaTypes.banner.sizes),t.params.size),d={missingSizes:o,impression:n},a[p]=d))}for(var x in g)if(g.hasOwnProperty(x))for(var I=g[x].missingSizes,P=0;P<I.length;P++){var z=g[x].impression,O=(u=z,f=I[P],l=void 0,(l=T.deepClone(u)).ext.sid="".concat(f[0],"x").concat(f[1]),l.banner.w=f[0],l.banner.h=f[1],l);b.push(O)}return 0<b.length&&y.push(j(e,r,b,7.2)),0<h.length&&y.push(j(e,r,h,8.1)),y},interpretResponse:function(e,r){var i=[];if(!e.hasOwnProperty("body")||!e.body.hasOwnProperty("seatbid"))return i;for(var t,a,n,s,o=e.body,d=o.seatbid,p=0;p<d.length;p++)if(d[p].hasOwnProperty("bid"))for(var m=d[p].bid,c=JSON.parse(r.data.r),u=0;u<m.length;u++){var f=function(r,e){if(r)return l()(e,function(e){return e.id===r})}(m[u].impid,c.imp);t=m[u],a=o.cur,n=f,s=void 0,s={},x.hasOwnProperty(a)?s.cpm=t.price/x[a]:s.cpm=t.price/y,s.requestId=t.impid,s.dealId=T.deepAccess(t,"ext.dealid"),s.netRevenue=w,s.currency=a,s.creativeId=t.hasOwnProperty("crid")?t.crid:"-",T.deepAccess(t,"ext.vasturl")?(s.vastUrl=t.ext.vasturl,s.width=n.video.w,s.height=n.video.h,s.mediaType=S.d,s.ttl=h):(s.ad=t.adm,s.width=t.w,s.height=t.h,s.mediaType=S.b,s.ttl=b),s.meta={},s.meta.networkId=T.deepAccess(t,"ext.dspid"),s.meta.brandId=T.deepAccess(t,"ext.advbrandid"),s.meta.brandName=T.deepAccess(t,"ext.advbrand"),t.adomain&&0<t.adomain.length&&(s.meta.advertiserDomains=t.adomain),i.push(s)}return i},transformBidParams:function(e){return T.convertTypes({siteID:"number"},e)},getUserSyncs:function(e){return e.iframeEnabled?[{type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"}]:[]}};Object(s.registerBidder)(p)}},[464]); pbjsChunk([138],{602:function(e,t,n){e.exports=n(603)},603:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setStorageItem=h,t.getStorageItem=x,t.removeStorageItem=U,t.isPubcidEnabled=function(){return S.enabled},t.getExpInterval=function(){return S.interval},t.getPubcidConfig=function(){return S},t.requestBidHook=k,t.setCookie=w,t.getCookie=function(e){return s.getCookie(e)},t.setConfig=j,t.initPubcid=L;var r=n(0),o=n(3),a=n(8),i=n.n(a),l=n(5),c=n.n(l),u=n(9);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}).apply(this,arguments)}function b(e){return(b="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})(e)}var s=Object(u.b)(),f="_pubcid",p="_pubcid_optout",g=525600,v="PublisherCommonId",y="_exp",m="cookie",E="html5",S={enabled:!0,interval:g,typeEnabled:E,create:!0,extend:!0,pixelUrl:""};function h(e,t,n){try{var o;void 0!==n&&null!=n&&(o=new Date(Date.now()+60*n*1e3).toUTCString(),s.setDataInLocalStorage(e+y,o)),s.setDataInLocalStorage(e,t)}catch(e){r.logMessage(e)}}function x(e){var t=null;try{var n=s.getDataFromLocalStorage(e+y);!n||0<new Date(n).getTime()-Date.now()?t=s.getDataFromLocalStorage(e):U(e)}catch(e){r.logMessage(e)}return t}function U(e){try{s.removeDataFromLocalStorage(e+y),s.removeDataFromLocalStorage(e)}catch(e){r.logMessage(e)}}function C(e,t){var n;return(t=t||S.typeEnabled)===m?n=s.getCookie(e):t===E&&(n=x(e)),"undefined"===n||"null"===n?null:n}function D(e,t,n){e&&t&&(S.typeEnabled===m?w(e,t,n,"Lax"):S.typeEnabled===E&&h(e,t,n))}function I(e,t){if(e){t=t||"";var n=r.parseUrl(e);n.search.id=encodeURIComponent("pubcid:"+t);var o=r.buildUrl(n);return i.a.on(c.a.EVENTS.AUCTION_END,function e(){i.a.off(c.a.EVENTS.AUCTION_END,e),r.triggerPixel(o)}),1}}function k(e,t){var n=t.adUnits||pbjs.adUnits,o=null;return S.enabled&&S.typeEnabled&&("object"===b(window[v])?(o=window[v].getId(),r.logMessage(v+": pubcid = "+o)):((o=C(f))?S.extend&&(I(S.pixelUrl,o)||D(f,o,S.interval)):(S.create&&(S.typeEnabled===E&&(o=C(f,m)),o=o||r.generateUUID(),D(f,o,S.interval),o=C(f)),I(S.pixelUrl,o)),r.logMessage("pbjs: pubcid = "+o)),n&&o&&n.forEach(function(e){e.bids.forEach(function(e){d(e,{crumbs:{pubcid:o}})})})),e.call(this,t)}function w(e,t,n,o){var r=new Date;r.setTime(r.getTime()+1e3*n*60),s.setCookie(e,t,r.toGMTString(),o)}function j(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.enable,n=e.expInterval,o=e.type,r=void 0===o?"html5,cookie":o,a=e.create,i=e.extend,l=e.pixelUrl;void 0!==t&&(S.enabled=t),void 0!==n&&(S.interval=parseInt(n,10)),isNaN(S.interval)&&(S.interval=g),void 0!==a&&(S.create=a),void 0!==i&&(S.extend=i),void 0!==l&&(S.pixelUrl=l),S.typeEnabled=null;for(var c=r.split(","),u=0;u<c.length;++u){var d=c[u].trim();if(d===m){if(s.cookiesAreEnabled()){S.typeEnabled=m;break}}else if(d===E&&s.hasLocalStorage()){S.typeEnabled=E;break}}}function L(){o.b.getConfig("pubcid",function(e){return j(e.pubcid)}),s.cookiesAreEnabled()&&C(p,m)||s.hasLocalStorage()&&C(p,E)||pbjs.requestBids.before(k)}L()}},[602]); pbjsChunk([74],{768:function(e,t,n){e.exports=n(769)},769:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"spec",function(){return c});var l=n(0),r=n(1),a=n(2);function m(e){if(!e)return null;var t=e.gdprApplies?"1":"0",n=e.consentString?e.consentString:"";return"gdpr=".concat(t,"&gdprstr=").concat(n)}var c={code:"undertone",supportedMediaTypes:[a.b,a.d],isBidRequestValid:function(e){if(e&&e.params&&e.params.publisherId)return e.params.publisherId=parseInt(e.params.publisherId),!0},buildRequests:function(e,t){var n=Math.max(document.documentElement.clientWidth,window.innerWidth||0),r=Math.max(document.documentElement.clientHeight,window.innerHeight||0),a=0==n||0==r?null:[n,r],c={"x-ut-hb-params":[],commons:{adapterVersion:"4.2.0",uids:e[0].userId,pageSize:a}},i=t.refererInfo.referer,s=function(e){var t=null;try{var n=/[-w]+.([-w]+|[-w]{3,}|[-w]{1,3}.[-w]{2})$/i.exec(e);if(null!=n&&0<n.length){t=n[0];for(var r=1;rt.length&&(t=n[r])}}catch(e){t=null}return t}(Object(l.parseUrl)(i).hostname),d=function(){try{var e=window.top.document.querySelector("link[rel='canonical']");if(null!==e)return e.href}catch(e){}return null}()||i,u=e[0].params.publisherId,o="".concat("https://hb.undertone.com/hb","?pid=").concat(u,"&domain=").concat(s),p=m(t.gdprConsent);return p&&(o+="&".concat(p)),t.uspConsent&&(o+="&ccpa=".concat(t.uspConsent)),e.map(function(e){var t={bidRequestId:e.bidId,coordinates:function(e){var t=document.getElementById(e),n=-1,r=-1;if(t){n=t.offsetLeft,r=t.offsetTop;var a=t.offsetParent;return a&&(n+=a.offsetLeft,r+=a.offsetTop),[n,r]}return null}(e.adUnitCode),hbadaptor:"prebid",url:d,domain:s,placementId:null!=e.params.placementId?e.params.placementId:null,publisherId:e.params.publisherId,sizes:e.sizes,params:e.params};Object(l.deepAccess)(e,"mediaTypes.video")&&(t.video={playerSize:Object(l.deepAccess)(e,"mediaTypes.video.playerSize")||null,streamType:Object(l.deepAccess)(e,"mediaTypes.video.context")||null,playbackMethod:Object(l.deepAccess)(e,"params.video.playbackMethod")||null,maxDuration:Object(l.deepAccess)(e,"params.video.maxDuration")||null,skippable:Object(l.deepAccess)(e,"params.video.skippable")||null},t.mediaType="video"),c["x-ut-hb-params"].push(t)}),{method:"POST",url:o,withCredentials:!0,data:JSON.stringify(c)}},interpretResponse:function(e){var n=[],t=e.body;return t&&Array.isArray(t)&&0<t.length&&t.forEach(function(e){var t;e.ad&&0<e.cpm&&(t={requestId:e.bidRequestId,cpm:e.cpm,width:e.width,height:e.height,creativeId:e.adId,currency:e.currency,netRevenue:e.netRevenue,ttl:e.ttl||360},e.mediaType&&"video"===e.mediaType?(t.vastXml=e.ad,t.mediaType=e.mediaType):t.ad=e.ad,n.push(t))}),n},getUserSyncs:function(e,t,n,r){var a=[],c=m(n),i="",s="";return c&&(i+="?".concat(c),s+="&".concat(c)),r&&(i+=""!=i?"&":"?",i+="ccpa=".concat(r),s+="&ccpa=".concat(r)),e.iframeEnabled?a.push({type:"iframe",url:"https://cdn.undertone.com/js/usersync.html"+i}):e.pixelEnabled&&a.push({type:"image",url:"https://usr.undertone.com/userPixel/syncOne?id=1&of=2"+s},{type:"image",url:"https://usr.undertone.com/userPixel/syncOne?id=2&of=2"+s}),a}};Object(r.registerBidder)(c)}},[768]); pbjsChunk([4],{44:function(e,t,n){"use strict";t.a=function(e){var t=[];for(var n in e){var o;!e.hasOwnProperty(n)||(o=function(e,t){var n=s[t];if(n&&e){var o={};o.source=n.source;var r=u.isFn(n.getValue)?n.getValue(e):e;if(u.isStr(r)){var a,i,c={id:r,atype:n.atype};return!u.isFn(n.getUidExt)||(a=n.getUidExt(e))&&(c.ext=a),o.uids=[c],!u.isFn(n.getEidExt)||(i=n.getEidExt(e))&&(o.ext=i),o}}return null}(e[n],n))&&t.push(o)}return t};var u=n(0),s={intentIqId:{source:"intentiq.com",atype:1},pubcid:{source:"pubcid.org",atype:1},tdid:{source:"adserver.org",atype:1,getUidExt:function(){return{rtiPartner:"TDID"}}},id5id:{source:"id5-sync.com",atype:1},parrableId:{source:"parrable.com",atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?"":null},getUidExt:function(e){var t=u.pick(e,["ibaOptout","ccpaOptout"]);if(Object.keys(t).length)return t}},idl_env:{source:"liveramp.com",atype:1},lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:1,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},britepoolid:{source:"britepool.com",atype:1},lotamePanoramaId:{source:"crwdcntrl.net",atype:1},criteoId:{source:"criteo.com",atype:1},netId:{source:"netid.de",atype:1},sharedid:{source:"sharedid.org",atype:1,getValue:function(e){return e.id},getUidExt:function(e){return e&&e.third?{third:e.third}:void 0}}}},776:function(e,t,n){e.exports=n(777)},777:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"coreStorage",function(){return S}),n.d(t,"syncDelay",function(){return l}),n.d(t,"auctionDelay",function(){return f}),t.setSubmoduleRegistry=function(e){U=e},t.setStoredValue=C,t.requestBidsHook=N,n.d(t,"validateGdprEnforcement",function(){return q}),t.attachIdSystem=R,t.init=B;var s,d,l,f,o=n(10),r=n.n(o),a=n(3),i=n(8),g=n.n(i),p=n(0),c=n(20),m=n(7),u=n(5),b=n.n(u),y=n(13),v=n(44),h=n(9),O="User ID",I="cookie",E="html5",j=500,D=0,S=Object(h.a)("userid"),k=[],x=!1,_=[],A=[],U=[];function C(e,t){var n=e.config.storage,o="function"==typeof e.submodule.domainOverride?e.submodule.domainOverride():null;try{var r=p.isPlainObject(t)?JSON.stringify(t):t,a=new Date(Date.now()+864e5*n.expires).toUTCString();n.type===I?(S.setCookie(n.name,r,a,"Lax",o),"number"==typeof n.refreshInSeconds&&S.setCookie("".concat(n.name,"_last"),(new Date).toUTCString(),a,"Lax",o)):n.type===E&&(S.setDataInLocalStorage("".concat(n.name,"_exp"),a),S.setDataInLocalStorage(n.name,encodeURIComponent(r)),"number"==typeof n.refreshInSeconds&&S.setDataInLocalStorage("".concat(n.name,"_last"),(new Date).toUTCString()))}catch(e){p.logError(e)}}function T(e,t){var n,o,r=1<arguments.length&&void 0!==t?t:void 0,a=r?"".concat(e.name,"_").concat(r):e.name;try{e.type===I?n=S.getCookie(a):e.type===E&&(""===(o=S.getDataFromLocalStorage("".concat(e.name,"_exp")))?n=S.getDataFromLocalStorage(a):o&&01e3*t.config.storage.refreshInSeconds),!n||a?o=t.submodule.getId(t.config.params,c,n):"function"==typeof t.submodule.extendId&&(o=t.submodule.extendId(t.config.params,n)),p.isPlainObject(o)&&(o.id&&(C(t,o.id),n=o.id),"function"==typeof o.callback&&(t.callback=o.callback)),n&&(t.idObj=t.submodule.decode(n,t.config.params))):t.config.value?t.idObj=t.config.value:(i=t.submodule.getId(t.config.params,c,void 0),p.isPlainObject(i)&&("function"==typeof i.callback&&(t.callback=i.callback),i.id&&(t.idObj=t.submodule.decode(i.id,t.config.params)))),e.push(t),e},[]):(p.logWarn("".concat(O," – gdpr permission not valid for local storage or cookies, exit module")),[])).length||(t=s.filter(function(e){return p.isFn(e.callback)})).length&&(e&&0<f?(n=!(u=!0),o=function(){n||(n=!0,e())},p.logInfo("".concat(O," – auction delayed by ").concat(f," at most to fetch ids")),d=setTimeout(o,f),V(t,o)):g.a.on(b.a.EVENTS.AUCTION_END,function e(){g.a.off(b.a.EVENTS.AUCTION_END,e),0<![CDATA[ var PREBID_TIMEOUT = 1200; var FAILSAFE_TIMEOUT = 7000; var amx = function(labelAny) { return { bidder: 'amx', params: {}, labelAny: labelAny }; } var ix = function(siteId, size, labelAny = ['desktop', 'tablet', 'mobile']) { return { bidder: 'ix', params: { siteId: siteId, size: size }, labelAny: labelAny }; }; var consumable = function(params, labelAny = []) { return { bidder: 'consumable', params: params, labelAny: labelAny }; }; var undertone = function(placementId, labelAny = []) { return { bidder: 'undertone', params: { placementId: `${placementId}`, publisherId: '2252', }, labelAny: labelAny } }; var adUnits = [ { code: '/10519169/dailycaller_top', mediaTypes: { banner: { sizes: [].concat(dailycaller_top_desktop_sizes, dailycaller_top_tablet_sizes, dailycaller_top_mobile_sizes) .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ix('186771', [970, 250], ['desktop']), ix('186771', [728, 90], ['desktop']), ix('186771', [300, 250], ['tablet', 'mobile']), ix('186771', [320, 100], ['mobile']), ix('186771', [320, 50], ['mobile']), amx(['desktop','tablet','mobile']), consumable({ unitId: '7939', unitName: 'cnsmbl-audio-responsive', zoneIds: [ 2003398 ], siteId: '2000836', networkId: '9969' }), undertone(2252007, ['desktop']), ] }, { code: '/10519169/dailycaller_left2', mediaTypes: { banner: { sizes: dailycaller_small_home_sizes .filter(function(word) { return word != 'fluid'; }) } }, bids: [ amx(['desktop','tablet','mobile']), ix('187778', [300, 250], ['desktop', 'tablet', 'mobile']) ], labelAny: ['home'] }, /* Desktop right 1/2 */ { code: '/10519169/dailycaller_right1', mediaTypes: { banner: { sizes: dailycaller_right1_desktop_sizes .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ix('186772', [300, 1050], ['desktop']), ix('186772', [300, 600], ['desktop']), ix('186772', [300, 250], ['desktop']), amx(['desktop']), consumable({ unitId: '7935', unitName: 'cnsmbl-audio-300×600', zoneIds: [ 2003394 ], siteId: '2000836', networkId: '9969' }, ['desktop']), ], labelAll: ['desktop', 'home'] }, /* Mobile right 1 */ { code: '/10519169/dailycaller_right1', mediaTypes: { banner: { sizes: [].concat(dailycaller_inline_desktop_sizes, dailycaller_inline_mobile_sizes) .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ], labelAll: ['mobile', 'home'] }, { code: '/10519169/dailycaller_inline1', mediaTypes: { banner: { sizes: [].concat(dailycaller_inline1_desktop_sizes, dailycaller_inline_mobile_sizes) .filter(function(word) { return word != 'fluid'; }) } }, bids: [ amx(['desktop','tablet','mobile']), ix('187790', [300, 250]), consumable({ unitId: '7936', unitName: 'cnsmbl-audio-300×250-slider', zoneIds: [ 2003395 ], siteId: '2000836', networkId: '9969' }, ['desktop']), consumable({ unitId: '7937', unitName: 'cnsmbl-audio-300×250-slider', zoneIds: [ 2003396 ], siteId: '2000836', networkId: '9969' }, ['mobile']), undertone(2252005, ['mobile']), undertone(2252006, ['desktop']), ], labelAny: ['article'] }, { code: '/10519169/dailycaller_inline2', mediaTypes: { banner: { sizes: [].concat(dailycaller_inline_desktop_sizes, dailycaller_inline_mobile_sizes) .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ix('186775', [300, 250]), undertone(2252003, ['mobile']), undertone(2252004, ['desktop']), ], labelAny: ['article'] }, { code: '/10519169/dailycaller_inline3', mediaTypes: { banner: { sizes: [].concat(dailycaller_inline_desktop_sizes, dailycaller_inline_mobile_sizes) .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ix('187791', [300, 250]), ], labelAny: ['article'] }, { code: '/10519169/dailycaller_sticky', mediaTypes: { banner: { sizes: [].concat(dailycaller_sticky_desktop_sizes, dailycaller_sticky_tablet_sizes, dailycaller_sticky_mobile_sizes) .filter(function(word) { return word != 'fluid'; }) } }, bids: [ amx(['desktop','tablet','mobile']), ix('354560', [970, 90], ['desktop']), ix('354560', [900, 90], ['desktop']), ix('354560', [728, 90], ['desktop']), ix('354560', [728, 90], ['tablet']), ix('354560', [320, 50], ['mobile']), consumable({ unitId: '6521', unitName: 'cnsmbl-audio-728×90-slider', zoneIds: [ 2001896 ], siteId: '2000836', networkId: '9969' }, ['desktop']), consumable({ unitId: '6523', unitName: 'cnsmbl-audio-footer', zoneIds: [ 2001897 ], siteId: '2000836', networkId: '9969' }), consumable({ unitId: '6522', unitName: 'cnsmbl-audio-320×50-slider', zoneIds: [ 2001895 ], siteId: '2000836', networkId: '9969' }, ['mobile']), undertone(2252001, ['mobile']), undertone(2252008, ['mobile']), undertone(2252002, ['desktop']), undertone(2252009, ['desktop']), ] }, { code: '/10519169/dailycaller_home1', mediaTypes: { banner: { sizes: [].concat(dailycaller_home_desktop_sizes, dailycaller_home_tablet_sizes, dailycaller_home_mobile_sizes) .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ix('382617', [970, 250], ['desktop']), ix('382617', [728, 90], ['desktop']), ix('382617', [300, 250], ['tablet', 'mobile']), ix('382617', [320, 100], ['mobile']), ix('382617', [320, 50], ['mobile']), ] }, { code: '/10519169/dailycaller_home2', mediaTypes: { banner: { sizes: [].concat(dailycaller_home_desktop_sizes, dailycaller_home_tablet_sizes, dailycaller_home_mobile_sizes) .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ix('382618', [970, 250], ['desktop']), ix('382618', [728, 90], ['desktop']), ix('382618', [300, 250], ['tablet', 'mobile']), ix('382618', [320, 100], ['mobile']), ix('382618', [320, 50], ['mobile']), ] }, { code: '/10519169/dailycaller_home3', mediaTypes: { banner: { sizes: dailycaller_small_home_sizes .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ix('382619', [300, 250], ['tablet', 'mobile']), ] }, { code: '/10519169/dailycaller_home4', mediaTypes: { banner: { sizes: dailycaller_small_home_sizes .filter(function(word) { return word != 'fluid'; }) } }, bids: [ ix('382620', [300, 250], ['tablet', 'mobile']), ] }, ]; var pbLabels = []; if(dc_ad_home) { pbLabels.push('home'); } else { pbLabels.push('article'); } function refreshPbjsBids(status = {}, slotName = false) { pbjs.que.push(function() { status.pbjsDone = false; pbjs.setConfig({ priceGranularity: "high", sizeConfig: [ { mediaQuery: '(min-width: ' + String(dcRespMaxW + 1) + 'px)', sizesSupported: [].concat(dailycaller_top_desktop_sizes, dailycaller_right1_desktop_sizes, dailycaller_sticky_desktop_sizes, dailycaller_inline_desktop_sizes, dailycaller_inline1_desktop_sizes), labels: ["desktop"] }, { mediaQuery: '(min-width: ' + String(dcRespMinW) + 'px) and (max-width: ' +String(dcRespMaxW) + 'px)', sizesSupported: [].concat(dailycaller_top_tablet_sizes, dailycaller_inline_desktop_sizes, dailycaller_inline1_desktop_sizes, dailycaller_sticky_tablet_sizes), labels: ["tablet"] }, { mediaQuery: '(min-width: 0px) and (max-width: ' +String(dcRespMinW – 1) + 'px)', sizesSupported: [].concat(dailycaller_top_mobile_sizes, dailycaller_inline_mobile_sizes, dailycaller_sticky_mobile_sizes), labels: ["mobile"] } ], userSync: { userIds: [{ name: "identityLink", params: { pid: "1263" }, storage: { type: "cookie", name: "idl_env", expires: 7 } }], } }); pbjs.enableAnalytics({ provider: 'gtag', options: { } }); pbjs.removeAdUnit(); if(!slotName) { pbjs.addAdUnits(adUnits); } else { var filtered = [adUnits.find(function(el) { return el.code == slotName; })]; pbjs.addAdUnits(filtered); } pbjs.requestBids({ bidsBackHandler: function(bids, timedOut) { console.log('[Prebid] Finished'); pbjs.setTargetingForGPTAsync(); status.pbjsDone = true; /* Disabled for coordination with Amazon */ /* googletag.pubads().refresh(); */ }, timeout: PREBID_TIMEOUT, labels: pbLabels }); }); } refreshPbjsBids(initialLoadStatus); function loadBids(status = {}) { /* This is the final coordination between Amazon and Prebid */ var dcRefreshIntervalStart = Date.now(); function dcRefreshIntervalCheck() { var runTime = Date.now() – dcRefreshIntervalStart; if(FAILSAFE_TIMEOUT + 25 -1) { refreshApsBids(status, slotName); refreshPbjsBids(status, slotName); var intervalStart = Date.now(); var interval; function intervalCheck() { var runTime = Date.now() – intervalStart; if(FAILSAFE_TIMEOUT + 25 The Daily Caller logo US Americans Celebrate Thanksgiving Holiday As Coronavirus Cases Surge

[Photo by Brandon Bell/Getty Images]

Daily Caller News Foundation logo November 24, 2021 4:25 PM ET

<![CDATA[ if(screen.width

An article in The Washington Post Wednesday argued that climate change could result in replacing Thanksgiving staples with lab grown meat, plant-based meat alternatives and crickets.

Hot summers, wildfires, droughts and flooding could damage American agriculture and make seasonal favorites like pumpkins and turkey hard to come by, according to the article’s authors.

The piece explained that weather events are already forcing farmers to relocate certain crops: southerners are moving their turkeys northward due to hurricane risks, and warm weather in the Northeast is making cranberry crops more vulnerable. (RELATED: Companies That Want You To Eat Bugs Are Cropping Up Across Europe)

While climate change affects agriculture, according to the article, agriculture also perpetuates climate change. “Agriculture is responsible for up to 30 percent of global greenhouse-gas emissions and 70 percent of freshwater use,” the authors reported.

To combat this, the article encourages readers to “consider crickets in your crust,” arguing that insects such as weevils, crickets and grasshoppers are high in protein and other nutrients and low in emissions. (RELATED: ‘Maybe You’ll Need To Report A Relative To The FBI!’ An Atlantic Writer’s Advice For Dealing With Conservative Family On Thanksgiving)

Insect snacks have become a popular novelty in the U.S. in recent years. Attendees at Seattle baseball games in 2017 ate 18,000 toasted crickets over the course of three nights. In addition to processed plant-based meat alternatives, climate activists argue that adding bugs to the American diet could help combat climate change.

Content created by The Daily Caller News Foundation is available without charge to any eligible news publisher that can provide a large audience. For licensing opportunities of our original content, please contact licensing@dailycallernewsfoundation.org.

Laurel Duggan

The Daily Caller logo Daily Caller Patriots

The Daily Caller | 1775 Eye Street NW | Suite 1150-290 | Washington, DC 20006

<![CDATA[!function(i){var n={};function s(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return i[t].call(e.exports,e,e.exports,s),e.l=!0,e.exports}s.m=i,s.c=n,s.d=function(t,e,i){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)s.d(i,n,function(t){return e[t]}.bind(null,n));return i},s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="",s(s.s=22)}([function(t,e,i){var n,s,o;function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}o=window,n=[i(7)],void 0===(s=function(t){return function(c,o){"use strict";var h={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},i=Array.prototype.slice;h.makeArray=function(t){if(Array.isArray(t))return t;if(null==t)return[];var e="object"==r(t)&&"number"==typeof t.length;return e?i.call(t):[t]},h.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},h.getParent=function(t,e){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,o(t,e))return t},h.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.filterFindElements=function(t,n){t=h.makeArray(t);var s=[];return t.forEach(function(t){if(t instanceof HTMLElement)if(n){o(t,n)&&s.push(t);for(var e=t.querySelectorAll(n),i=0;i<e.length;i++)s.push(e[i])}else s.push(t)}),s},h.debounceMethod=function(t,e,n){n=n||100;var s=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,i=this;this[o]=setTimeout(function(){s.apply(i,e),delete i[o]},n)}},h.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},h.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var d=c.console;return h.htmlInit=function(a,l){h.docReady(function(){var t=h.toDashed(l),s="data-"+t,e=document.querySelectorAll("["+s+"]"),i=document.querySelectorAll(".js-"+t),n=h.makeArray(e).concat(h.makeArray(i)),o=s+"-options",r=c.jQuery;n.forEach(function(e){var t,i=e.getAttribute(s)||e.getAttribute(o);try{t=i&&JSON.parse(i)}catch(t){return void(d&&d.error("Error parsing "+s+" on "+e.className+": "+t))}var n=new a(e,t);r&&r.data(e,l,n)})})},h}(o,t)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s,r;r=window,n=[i(2),i(4),i(0),i(8),i(9),i(10)],void 0===(s=function(t,e,i,n,s,o){return function(n,t,e,a,s,r,i){"use strict";var l=n.jQuery,o=n.getComputedStyle,c=n.console;function h(t,e){for(t=a.makeArray(t);t.length;)e.appendChild(t.shift())}var d=0,u={};function f(t,e){var i=a.getQueryElement(t);if(i){if(this.element=i,this.element.flickityGUID){var n=u[this.element.flickityGUID];return n.option(e),n}l&&(this.$element=l(this.element)),this.options=a.extend({},this.constructor.defaults),this.option(e),this._create()}else c&&c.error("Bad element for Flickity: "+(i||t))}f.defaults={accessibility:!0,cellAlign:"center",freeScrollFriction:.075,friction:.28,namespaceJQueryEvents:!0,percentPosition:!0,resize:!0,selectedAttraction:.025,setGallerySize:!0},f.createMethods=[];var p=f.prototype;a.extend(p,t.prototype),p._create=function(){var t=this.guid=++d;for(var e in this.element.flickityGUID=t,(u[t]=this).selectedIndex=0,this.restingFrames=0,this.x=0,this.velocity=0,this.originSide=this.options.rightToLeft?"right":"left",this.viewport=document.createElement("div"),this.viewport.className="flickity-viewport",this._createSlider(),(this.options.resize||this.options.watchCSS)&&n.addEventListener("resize",this),this.options.on){var i=this.options.on[e];this.on(e,i)}f.createMethods.forEach(function(t){this[t]()},this),this.options.watchCSS?this.watchCSS():this.activate()},p.option=function(t){a.extend(this.options,t)},p.activate=function(){if(!this.isActive){this.isActive=!0,this.element.classList.add("flickity-enabled"),this.options.rightToLeft&&this.element.classList.add("flickity-rtl"),this.getSize();var t=this._filterFindCellElements(this.element.children);h(t,this.slider),this.viewport.appendChild(this.slider),this.element.appendChild(this.viewport),this.reloadCells(),this.options.accessibility&&(this.element.tabIndex=0,this.element.addEventListener("keydown",this)),this.emitEvent("activate"),this.selectInitialIndex(),this.isInitActivated=!0,this.dispatchEvent("ready")}},p._createSlider=function(){var t=document.createElement("div");t.className="flickity-slider",t.style[this.originSide]=0,this.slider=t},p._filterFindCellElements=function(t){return a.filterFindElements(t,this.options.cellSelector)},p.reloadCells=function(){this.cells=this._makeCells(this.slider.children),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize()},p._makeCells=function(t){var e=this._filterFindCellElements(t),i=e.map(function(t){return new s(t,this)},this);return i},p.getLastCell=function(){return this.cells[this.cells.length-1]},p.getLastSlide=function(){return this.slides[this.slides.length-1]},p.positionCells=function(){this._sizeCells(this.cells),this._positionCells(0)},p._positionCells=function(t){t=t||0,this.maxCellHeight=t&&this.maxCellHeight||0;var e=0;if(0<t){var i=this.cells[t-1];e=i.x+i.size.outerWidth}for(var n=this.cells.length,s=t;s<n;s++){var o=this.cells[s];o.setPosition(e),e+=o.size.outerWidth,this.maxCellHeight=Math.max(o.size.outerHeight,this.maxCellHeight)}this.slideableWidth=e,this.updateSlides(),this._containSlides(),this.slidesWidth=n?this.getLastSlide().target-this.slides[0].target:0},p._sizeCells=function(t){t.forEach(function(t){t.getSize()})},p.updateSlides=function(){if(this.slides=[],this.cells.length){var n=new r(this);this.slides.push(n);var t="left"==this.originSide,s=t?"marginRight":"marginLeft",o=this._getCanCellFit();this.cells.forEach(function(t,e){if(n.cells.length){var i=n.outerWidth-n.firstMargin+(t.size.outerWidth-t.size[s]);o.call(this,e,i)||(n.updateTarget(),n=new r(this),this.slides.push(n)),n.addCell(t)}else n.addCell(t)},this),n.updateTarget(),this.updateSelectedSlide()}},p._getCanCellFit=function(){var t=this.options.groupCells;if(!t)return function(){return!1};if("number"==typeof t){var e=parseInt(t,10);return function(t){return t%e!=0}}var i="string"==typeof t&&t.match(/^(d+)%$/),n=i?parseInt(i[1],10)/100:1;return function(t,e){return e<=(this.size.innerWidth+1)*n}},p._init=p.reposition=function(){this.positionCells(),this.positionSliderAtSelected()},p.getSize=function(){this.size=e(this.element),this.setCellAlign(),this.cursorPosition=this.size.innerWidth*this.cellAlign};var v={center:{left:.5,right:.5},left:{left:0,right:1},right:{right:0,left:1}};return p.setCellAlign=function(){var t=v[this.options.cellAlign];this.cellAlign=t?t[this.originSide]:this.options.cellAlign},p.setGallerySize=function(){if(this.options.setGallerySize){var t=this.options.adaptiveHeight&&this.selectedSlide?this.selectedSlide.height:this.maxCellHeight;this.viewport.style.height=t+"px"}},p._getWrapShiftCells=function(){if(this.options.wrapAround){this._unshiftCells(this.beforeShiftCells),this._unshiftCells(this.afterShiftCells);var t=this.cursorPosition,e=this.cells.length-1;this.beforeShiftCells=this._getGapCells(t,e,-1),t=this.size.innerWidth-this.cursorPosition,this.afterShiftCells=this._getGapCells(t,0,1)}},p._getGapCells=function(t,e,i){for(var n=[];0<t;){var s=this.cells[e];if(!s)break;n.push(s),e+=i,t-=s.size.outerWidth}return n},p._containSlides=function(){if(this.options.contain&&!this.options.wrapAround&&this.cells.length){var t=this.options.rightToLeft,e=t?"marginRight":"marginLeft",i=t?"marginLeft":"marginRight",n=this.slideableWidth-this.getLastCell().size[i],s=n<this.size.innerWidth,o=this.cursorPosition+this.cells[0].size[e],r=n-this.size.innerWidth*(1-this.cellAlign);this.slides.forEach(function(t){s?t.target=n*this.cellAlign:(t.target=Math.max(t.target,o),t.target=Math.min(t.target,r))},this)}},p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),l&&this.$element){var s=t+=this.options.namespaceJQueryEvents?".flickity":"";if(e){var o=l.Event(e);o.type=t,s=o}this.$element.trigger(s,i)}},p.select=function(t,e,i){if(this.isActive&&(t=parseInt(t,10),this._wrapSelect(t),(this.options.wrapAround||e)&&(t=a.modulo(t,this.slides.length)),this.slides[t])){var n=this.selectedIndex;this.selectedIndex=t,this.updateSelectedSlide(),i?this.positionSliderAtSelected():this.startAnimation(),this.options.adaptiveHeight&&this.setGallerySize(),this.dispatchEvent("select",null,[t]),t!=n&&this.dispatchEvent("change",null,[t]),this.dispatchEvent("cellSelect")}},p._wrapSelect=function(t){var e=this.slides.length;if(!(this.options.wrapAround&&1<e))return t;var i=a.modulo(t,e),n=Math.abs(i-this.selectedIndex),s=Math.abs(i+e-this.selectedIndex),o=Math.abs(i-e-this.selectedIndex);!this.isDragSelect&&s<n?t+=e:!this.isDragSelect&&o<n&&(t-=e),t<0?this.x-=this.slideableWidth:e<=t&&(this.x+=this.slideableWidth)},p.previous=function(t,e){this.select(this.selectedIndex-1,t,e)},p.next=function(t,e){this.select(this.selectedIndex+1,t,e)},p.updateSelectedSlide=function(){var t=this.slides[this.selectedIndex];t&&(this.unselectSelectedSlide(),(this.selectedSlide=t).select(),this.selectedCells=t.cells,this.selectedElements=t.getCellElements(),this.selectedCell=t.cells[0],this.selectedElement=this.selectedElements[0])},p.unselectSelectedSlide=function(){this.selectedSlide&&this.selectedSlide.unselect()},p.selectInitialIndex=function(){var t=this.options.initialIndex;if(this.isInitActivated)this.select(this.selectedIndex,!1,!0);else{if(t&&"string"==typeof t&&this.queryCell(t))return void this.selectCell(t,!1,!0);var e=0;t&&this.slides[t]&&(e=t),this.select(e,!1,!0)}},p.selectCell=function(t,e,i){var n=this.queryCell(t);if(n){var s=this.getCellSlideIndex(n);this.select(s,e,i)}},p.getCellSlideIndex=function(t){for(var e=0;e<this.slides.length;e++)if(-1!=this.slides[e].cells.indexOf(t))return e},p.getCell=function(t){for(var e=0;e *"),this.getCell(t))},p.getAdjacentCellElements=function(t,e){if(!t)return this.selectedSlide.getCellElements();e=void 0===e?this.selectedIndex:e;var i=this.slides.length;if(i<=1+2*t)return this.getCellElements();for(var n=[],s=e-t;s<=e+t;s++){var o=this.options.wrapAround?a.modulo(s,i):s,r=this.slides[o];r&&(n=n.concat(r.getCellElements()))}return n},p.queryCell=function(t){if("number"==typeof t)return this.cells[t];if("string"==typeof t){if(t.match(/^[#.]?[d/]/))return;t=this.element.querySelector(t)}return this.getCell(t)},p.uiChange=function(){this.emitEvent("uiChange")},p.childUIPointerDown=function(t){"touchstart"!=t.type&&t.preventDefault(),this.focus()},p.onresize=function(){this.watchCSS(),this.resize()},a.debounceMethod(f,"onresize",150),p.resize=function(){if(this.isActive){this.getSize(),this.options.wrapAround&&(this.x=a.modulo(this.x,this.slideableWidth)),this.positionCells(),this._getWrapShiftCells(),this.setGallerySize(),this.emitEvent("resize");var t=this.selectedElements&&this.selectedElements[0];this.selectCell(t,!1,!0)}},p.watchCSS=function(){this.options.watchCSS&&(-1!=o(this.element,":after").content.indexOf("flickity")?this.activate():this.deactivate())},p.onkeydown=function(t){var e=document.activeElement&&document.activeElement!=this.element;if(this.options.accessibility&&!e){var i=f.keyboardHandlers[t.keyCode];i&&i.call(this)}},f.keyboardHandlers={37:function(){var t=this.options.rightToLeft?"next":"previous";this.uiChange(),this[t]()},39:function(){var t=this.options.rightToLeft?"previous":"next";this.uiChange(),this[t]()}},p.focus=function(){var t=n.pageYOffset;this.element.focus({preventScroll:!0}),n.pageYOffset!=t&&n.scrollTo(n.pageXOffset,t)},p.deactivate=function(){this.isActive&&(this.element.classList.remove("flickity-enabled"),this.element.classList.remove("flickity-rtl"),this.unselectSelectedSlide(),this.cells.forEach(function(t){t.destroy()}),this.element.removeChild(this.viewport),h(this.slider.children,this.element),this.options.accessibility&&(this.element.removeAttribute("tabIndex"),this.element.removeEventListener("keydown",this)),this.isActive=!1,this.emitEvent("deactivate"))},p.destroy=function(){this.deactivate(),n.removeEventListener("resize",this),this.allOff(),this.emitEvent("destroy"),l&&this.$element&&l.removeData(this.element,"flickity"),delete this.element.flickityGUID,delete u[this.guid]},a.extend(p,i),f.data=function(t){var e=(t=a.getQueryElement(t))&&t.flickityGUID;return e&&u[e]},a.htmlInit(f,"flickity"),l&&l.bridget&&l.bridget("flickity",f),f.setJQuery=function(t){l=t},f.Cell=s,f.Slide=r,f}(r,t,e,i,n,s,o)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;"undefined"!=typeof window&&window,void 0===(s="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(t,o),delete n[o]),o.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(e,i,e,t):n)||(t.exports=s)},function(t,e,i){var n,s,o; /*! * Unipointer v2.3.0 * base class for doing one thing with pointer event * MIT license */ o=window,n=[i(2)],void 0===(s=function(t){return function(s,t){"use strict";function e(){}var i=e.prototype=Object.create(t.prototype);i.bindStartEvent=function(t){this._bindStartEvent(t,!0)},i.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},i._bindStartEvent=function(t,e){var i=(e=void 0===e||e)?"addEventListener":"removeEventListener",n="mousedown";s.PointerEvent?n="pointerdown":"ontouchstart"in s&&(n="touchstart"),t[i](n,this)},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.getTouch=function(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.identifier==this.pointerIdentifier)return i}},i.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},i.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},i.onpointerdown=function(t){this._pointerDown(t,t)},i._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},i.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var n={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return i._bindPostStartEvents=function(t){if(t){var e=n[t.type];e.forEach(function(t){s.addEventListener(t,this)},this),this._boundPointerEvents=e}},i._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){s.removeEventListener(t,this)},this),delete this._boundPointerEvents)},i.onmousemove=function(t){this._pointerMove(t,t)},i.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},i.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},i._pointerMove=function(t,e){this.pointerMove(t,e)},i.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},i.onmouseup=function(t){this._pointerUp(t,t)},i.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},i.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},i._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},i._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},i._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},i.pointerDone=function(){},i.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},i.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},i._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},i.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},e.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},e}(o,t)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)} /*! * getSize v2.0.3 * measure size of elements * MIT license */window,void 0===(s="function"==typeof(n=function(){"use strict";function m(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}var i="undefined"==typeof console?function(){}:function(t){console.error(t)},y=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],b=y.length;function S(t){var e=getComputedStyle(t);return e||i("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var w,E=!1;function x(t){if(function(){if(!E){E=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var i=S(t);w=200==Math.round(m(i.width)),x.isBoxSizeOuter=w,e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==C(t)&&t.nodeType){var e=S(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<b;e++){var i=y[e];t[i]=0}return t}();var i={};i.width=t.offsetWidth,i.height=t.offsetHeight;for(var n=i.isBorderBox="border-box"==e.boxSizing,s=0;s<b;s++){var o=y[s],r=e[o],a=parseFloat(r);i[o]=isNaN(a)?0:a}var l=i.paddingLeft+i.paddingRight,c=i.paddingTop+i.paddingBottom,h=i.marginLeft+i.marginRight,d=i.marginTop+i.marginBottom,u=i.borderLeftWidth+i.borderRightWidth,f=i.borderTopWidth+i.borderBottomWidth,p=n&&w,v=m(e.width);!1!==v&&(i.width=v+(p?0:l+u));var g=m(e.height);return!1!==g&&(i.height=g+(p?0:c+f)),i.innerWidth=i.width-(l+u),i.innerHeight=i.height-(c+f),i.outerWidth=i.width+h,i.outerHeight=i.height+d,i}}return x})?n.call(e,i,e,t):n)||(t.exports=s)},function(t,e,i){var n,s,o;window,s=[i(1),i(11),i(13),i(14),i(15),i(16),i(17)],void 0===(o="function"==typeof(n=function(t){return t})?n.apply(e,s):n)||(t.exports=o)},function(t,e,i){},function(i,n,s){var o,r;!function(t,e){"use strict";void 0===(r="function"==typeof(o=function(){var i=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],s=n+"MatchesSelector";if(t[s])return s}}();return function(t,e){return t[i](e)}})?o.call(n,s,n,i):o)||(i.exports=r)}(window)},function(t,e,i){var n,s;window,n=[i(4)],void 0===(s=function(t){return function(t,e){"use strict";function i(t,e){this.element=t,this.parent=e,this.create()}var n=i.prototype;return n.create=function(){this.element.style.position="absolute",this.element.setAttribute("aria-hidden","true"),this.x=0,this.shift=0},n.destroy=function(){this.unselect(),this.element.style.position="";var t=this.parent.originSide;this.element.style[t]=""},n.getSize=function(){this.size=e(this.element)},n.setPosition=function(t){this.x=t,this.updateTarget(),this.renderPosition(t)},n.updateTarget=n.setDefaultTarget=function(){var t="left"==this.parent.originSide?"marginLeft":"marginRight";this.target=this.x+this.size[t]+this.size.width*this.parent.cellAlign},n.renderPosition=function(t){var e=this.parent.originSide;this.element.style[e]=this.parent.getPositionValue(t)},n.select=function(){this.element.classList.add("is-selected"),this.element.removeAttribute("aria-hidden")},n.unselect=function(){this.element.classList.remove("is-selected"),this.element.setAttribute("aria-hidden","true")},n.wrapShift=function(t){this.shift=t,this.renderPosition(this.x+this.parent.slideableWidth*t)},n.remove=function(){this.element.parentNode.removeChild(this.element)},i}(0,t)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,void 0===(s="function"==typeof(n=function(){"use strict";function t(t){this.parent=t,this.isOriginLeft="left"==t.originSide,this.cells=[],this.outerWidth=0,this.height=0}var e=t.prototype;return e.addCell=function(t){if(this.cells.push(t),this.outerWidth+=t.size.outerWidth,this.height=Math.max(t.size.outerHeight,this.height),1==this.cells.length){this.x=t.x;var e=this.isOriginLeft?"marginLeft":"marginRight";this.firstMargin=t.size[e]}},e.updateTarget=function(){var t=this.isOriginLeft?"marginRight":"marginLeft",e=this.getLastCell(),i=e?e.size[t]:0,n=this.outerWidth-(this.firstMargin+i);this.target=this.x+this.firstMargin+n*this.parent.cellAlign},e.getLastCell=function(){return this.cells[this.cells.length-1]},e.select=function(){this.cells.forEach(function(t){t.select()})},e.unselect=function(){this.cells.forEach(function(t){t.unselect()})},e.getCellElements=function(){return this.cells.map(function(t){return t.element})},t})?n.call(e,i,e,t):n)||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(0)],void 0===(s=function(t){return function(t,e){"use strict";var i={startAnimation:function(){this.isAnimating||(this.isAnimating=!0,this.restingFrames=0,this.animate())},animate:function(){this.applyDragForce(),this.applySelectedAttraction();var t=this.x;if(this.integratePhysics(),this.positionSlider(),this.settle(t),this.isAnimating){var e=this;requestAnimationFrame(function(){e.animate()})}},positionSlider:function(){var t=this.x;this.options.wrapAround&&1<this.cells.length&&(t=e.modulo(t,this.slideableWidth),t-=this.slideableWidth,this.shiftWrapCells(t)),this.setTranslateX(t,this.isAnimating),this.dispatchScrollEvent()},setTranslateX:function(t,e){t+=this.cursorPosition,t=this.options.rightToLeft?-t:t;var i=this.getPositionValue(t);this.slider.style.transform=e?"translate3d("+i+",0,0)":"translateX("+i+")"},dispatchScrollEvent:function(){var t=this.slides[0];if(t){var e=-this.x-t.target,i=e/this.slidesWidth;this.dispatchEvent("scroll",null,[i,e])}},positionSliderAtSelected:function(){this.cells.length&&(this.x=-this.selectedSlide.target,this.velocity=0,this.positionSlider())},getPositionValue:function(t){return this.options.percentPosition?.01*Math.round(t/this.size.innerWidth*1e4)+"%":Math.round(t)+"px"},settle:function(t){this.isPointerDown||Math.round(100*this.x)!=Math.round(100*t)||this.restingFrames++,2<this.restingFrames&&(this.isAnimating=!1,delete this.isFreeScrolling,this.positionSlider(),this.dispatchEvent("settle",null,[this.selectedIndex]))},shiftWrapCells:function(t){var e=this.cursorPosition+t;this._shiftCells(this.beforeShiftCells,e,-1);var i=this.size.innerWidth-(t+this.slideableWidth+this.cursorPosition);this._shiftCells(this.afterShiftCells,i,1)},_shiftCells:function(t,e,i){for(var n=0;n<t.length;n++){var s=t[n],o=01″==this.options.draggable?this.isDraggable=1this.options.dragThreshold},i.pointerUp=function(t,e){delete this.isTouchScrolling,this.viewport.classList.remove(“is-pointer-down”),this.dispatchEvent(“pointerUp”,t,[e]),this._dragPointerUp(t,e)},i.pointerDone=function(){n.removeEventListener(“scroll”,this),delete this.pointerDownScroll},i.dragStart=function(t,e){this.isDraggable&&(this.dragStartPosition=this.x,this.startAnimation(),n.removeEventListener(“scroll”,this),this.dispatchEvent(“dragStart”,t,[e]))},i.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.dispatchEvent(“pointerMove”,t,[e,i]),this._dragMove(t,e,i)},i.dragMove=function(t,e,i){if(this.isDraggable){t.preventDefault(),this.previousDragX=this.dragX;var n=this.options.rightToLeft?-1:1;this.options.wrapAround&&(i.x=i.x%this.slideableWidth);var s=this.dragStartPosition+i.x*n;if(!this.options.wrapAround&&this.slides.length){var o=Math.max(-this.slides[0].target,this.dragStartPosition);s=o<s?.5*(s+o):s;var r=Math.min(-this.getLastSlide().target,this.dragStartPosition);s=sthis.slides[0].target&&-n<this.getLastSlide().target}else this.options.freeScroll||i!=this.selectedIndex||(i+=this.dragEndBoostSelect());delete this.previousDragX,this.isDragSelect=this.options.wrapAround,this.select(i),delete this.isDragSelect,this.dispatchEvent("dragEnd",t,[e])}},i.dragEndRestingSelect=function(){var t=this.getRestingPosition(),e=Math.abs(this.getSlideDistance(-t,this.selectedIndex)),i=this._getClosestResting(t,e,1),n=this._getClosestResting(t,e,-1);return i.distance<n.distance?i.index:n.index},i._getClosestResting=function(t,e,i){for(var n=this.selectedIndex,s=1/0,o=this.options.contain&&!this.options.wrapAround?function(t,e){return t<=e}:function(t,e){return t<e};o(e,s)&&(n+=i,s=e,null!==(e=this.getSlideDistance(-t,n)));)e=Math.abs(e);return{distance:s,index:n-i}},i.getSlideDistance=function(t,e){var i=this.slides.length,n=this.options.wrapAround&&1<i,s=n?a.modulo(e,i):e,o=this.slides[s];if(!o)return null;var r=n?this.slideableWidth*Math.floor(e/i):0;return t-(o.target+r)},i.dragEndBoostSelect=function(){if(void 0===this.previousDragX||!this.dragMoveTime||100<new Date-this.dragMoveTime)return 0;var t=this.getSlideDistance(-this.dragX,this.selectedIndex),e=this.previousDragX-this.dragX;return 0<t&&0<e?1:t<0&&e<0?-1:0},i.staticClick=function(t,e){var i=this.getParentCell(t.target),n=i&&i.element,s=i&&this.cells.indexOf(i);this.dispatchEvent("staticClick",t,[e,n,s])},i.onscroll=function(){var t=l(),e=this.pointerDownScroll.x-t.x,i=this.pointerDownScroll.y-t.y;(3<Math.abs(e)||3<Math.abs(i))&&this._pointerDone()},t}(o,t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s,o; /*! * Unidragger v2.3.0 * Draggable base class * MIT license */ o=window,n=[i(3)],void 0===(s=function(t){return function(o,t){"use strict";function e(){}var i=e.prototype=Object.create(t.prototype);i.bindHandles=function(){this._bindHandles(!0)},i.unbindHandles=function(){this._bindHandles(!1)},i._bindHandles=function(t){for(var e=(t=void 0===t||t)?"addEventListener":"removeEventListener",i=t?this._touchActionValue:"",n=0;n<this.handles.length;n++){var s=this.handles[n];this._bindStartEvent(s,t),s[e]("click",this),o.PointerEvent&&(s.style.touchAction=i)}},i._touchActionValue="none",i.pointerDown=function(t,e){var i=this.okayPointerDown(t);i&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var s={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},r={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return i.okayPointerDown=function(t){var e=s[t.target.nodeName],i=r[t.target.type],n=!e||i;return n||this._pointerReset(),n},i.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},i.pointerMove=function(t,e){var i=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,i]),this._dragMove(t,e,i)},i._dragPointerMove=function(t,e){var i={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(i)&&this._dragStart(t,e),i},i.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},i.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},i._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},i._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},i.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},i._dragMove=function(t,e,i){this.isDragging&&this.dragMove(t,e,i)},i.dragMove=function(t,e,i){t.preventDefault(),this.emitEvent("dragMove",[t,e,i])},i._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},i.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},i.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},i._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},i.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},e.getPointerPoint=t.getPointerPoint,e}(o,t)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(1),i(3),i(0)],void 0===(s=function(t,e,i){return function(t,e,i,n){"use strict";var s="http://www.w3.org/2000/svg";function o(t,e){this.direction=t,this.parent=e,this._create()}(o.prototype=Object.create(i.prototype))._create=function(){this.isEnabled=!0,this.isPrevious=-1==this.direction;var t=this.parent.options.rightToLeft?1:-1;this.isLeft=this.direction==t;var e=this.element=document.createElement("button");e.className="flickity-button flickity-prev-next-button",e.className+=this.isPrevious?" previous":" next",e.setAttribute("type","button"),this.disable(),e.setAttribute("aria-label",this.isPrevious?"Previous":"Next");var i=this.createSVG();e.appendChild(i),this.parent.on("select",this.update.bind(this)),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},o.prototype.activate=function(){this.bindStartEvent(this.element),this.element.addEventListener("click",this),this.parent.element.appendChild(this.element)},o.prototype.deactivate=function(){this.parent.element.removeChild(this.element),this.unbindStartEvent(this.element),this.element.removeEventListener("click",this)},o.prototype.createSVG=function(){var t=document.createElementNS(s,"svg");t.setAttribute("class","flickity-button-icon"),t.setAttribute("viewBox","0 0 100 100");var e=document.createElementNS(s,"path"),i=function(t){return"string"!=typeof t?"M "+t.x0+",50 L "+t.x1+","+(t.y1+50)+" L "+t.x2+","+(t.y2+50)+" L "+t.x3+",50 L "+t.x2+","+(50-t.y2)+" L "+t.x1+","+(50-t.y1)+" Z":t}(this.parent.options.arrowShape);return e.setAttribute("d",i),e.setAttribute("class","arrow"),this.isLeft||e.setAttribute("transform","translate(100, 100) rotate(180) "),t.appendChild(e),t},o.prototype.handleEvent=n.handleEvent,o.prototype.onclick=function(){if(this.isEnabled){this.parent.uiChange();var t=this.isPrevious?"previous":"next";this.parent[t]()}},o.prototype.enable=function(){this.isEnabled||(this.element.disabled=!1,this.isEnabled=!0)},o.prototype.disable=function(){this.isEnabled&&(this.element.disabled=!0,this.isEnabled=!1)},o.prototype.update=function(){var t=this.parent.slides;if(this.parent.options.wrapAround&&1<t.length)this.enable();else{var e=t.length?t.length-1:0,i=this.isPrevious?0:e,n=this.parent.selectedIndex==i?"disable":"enable";this[n]()}},o.prototype.destroy=function(){this.deactivate(),this.allOff()},n.extend(e.defaults,{prevNextButtons:!0,arrowShape:{x0:10,x1:60,y1:50,x2:70,y2:40,x3:30}}),e.createMethods.push("_createPrevNextButtons");var r=e.prototype;return r._createPrevNextButtons=function(){this.options.prevNextButtons&&(this.prevButton=new o(-1,this),this.nextButton=new o(1,this),this.on("activate",this.activatePrevNextButtons))},r.activatePrevNextButtons=function(){this.prevButton.activate(),this.nextButton.activate(),this.on("deactivate",this.deactivatePrevNextButtons)},r.deactivatePrevNextButtons=function(){this.prevButton.deactivate(),this.nextButton.deactivate(),this.off("deactivate",this.deactivatePrevNextButtons)},e.PrevNextButton=o,e}(0,t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(1),i(3),i(0)],void 0===(s=function(t,e,i){return function(t,e,i,n){"use strict";function s(t){this.parent=t,this._create()}(s.prototype=Object.create(i.prototype))._create=function(){this.holder=document.createElement("ol"),this.holder.className="flickity-page-dots",this.dots=[],this.handleClick=this.onClick.bind(this),this.on("pointerDown",this.parent.childUIPointerDown.bind(this.parent))},s.prototype.activate=function(){this.setDots(),this.holder.addEventListener("click",this.handleClick),this.bindStartEvent(this.holder),this.parent.element.appendChild(this.holder)},s.prototype.deactivate=function(){this.holder.removeEventListener("click",this.handleClick),this.unbindStartEvent(this.holder),this.parent.element.removeChild(this.holder)},s.prototype.setDots=function(){var t=this.parent.slides.length-this.dots.length;0<t?this.addDots(t):t<0&&this.removeDots(-t)},s.prototype.addDots=function(t){for(var e=document.createDocumentFragment(),i=[],n=this.dots.length,s=n+t,o=n;o<s;o++){var r=document.createElement("li");r.className="dot",r.setAttribute("aria-label","Page dot "+(o+1)),e.appendChild(r),i.push(r)}this.holder.appendChild(e),this.dots=this.dots.concat(i)},s.prototype.removeDots=function(t){var e=this.dots.splice(this.dots.length-t,t);e.forEach(function(t){this.holder.removeChild(t)},this)},s.prototype.updateSelected=function(){this.selectedDot&&(this.selectedDot.className="dot",this.selectedDot.removeAttribute("aria-current")),this.dots.length&&(this.selectedDot=this.dots[this.parent.selectedIndex],this.selectedDot.className="dot is-selected",this.selectedDot.setAttribute("aria-current","step"))},s.prototype.onTap=s.prototype.onClick=function(t){var e=t.target;if("LI"==e.nodeName){this.parent.uiChange();var i=this.dots.indexOf(e);this.parent.select(i)}},s.prototype.destroy=function(){this.deactivate(),this.allOff()},e.PageDots=s,n.extend(e.defaults,{pageDots:!0}),e.createMethods.push("_createPageDots");var o=e.prototype;return o._createPageDots=function(){this.options.pageDots&&(this.pageDots=new s(this),this.on("activate",this.activatePageDots),this.on("select",this.updateSelectedPageDots),this.on("cellChange",this.updatePageDots),this.on("resize",this.updatePageDots),this.on("deactivate",this.deactivatePageDots))},o.activatePageDots=function(){this.pageDots.activate()},o.updateSelectedPageDots=function(){this.pageDots.updateSelected()},o.updatePageDots=function(){this.pageDots.setDots()},o.deactivatePageDots=function(){this.pageDots.deactivate()},e.PageDots=s,e}(0,t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(2),i(0),i(1)],void 0===(s=function(t,e,i){return function(t,e,i){"use strict";function n(t){this.parent=t,this.state="stopped",this.onVisibilityChange=this.visibilityChange.bind(this),this.onVisibilityPlay=this.visibilityPlay.bind(this)}(n.prototype=Object.create(t.prototype)).play=function(){if("playing"!=this.state){var t=document.hidden;t?document.addEventListener("visibilitychange",this.onVisibilityPlay):(this.state="playing",document.addEventListener("visibilitychange",this.onVisibilityChange),this.tick())}},n.prototype.tick=function(){if("playing"==this.state){var t=this.parent.options.autoPlay;t="number"==typeof t?t:3e3;var e=this;this.clear(),this.timeout=setTimeout(function(){e.parent.next(!0),e.tick()},t)}},n.prototype.stop=function(){this.state="stopped",this.clear(),document.removeEventListener("visibilitychange",this.onVisibilityChange)},n.prototype.clear=function(){clearTimeout(this.timeout)},n.prototype.pause=function(){"playing"==this.state&&(this.state="paused",this.clear())},n.prototype.unpause=function(){"paused"==this.state&&this.play()},n.prototype.visibilityChange=function(){var t=document.hidden;this[t?"pause":"unpause"]()},n.prototype.visibilityPlay=function(){this.play(),document.removeEventListener("visibilitychange",this.onVisibilityPlay)},e.extend(i.defaults,{pauseAutoPlayOnHover:!0}),i.createMethods.push("_createPlayer");var s=i.prototype;return s._createPlayer=function(){this.player=new n(this),this.on("activate",this.activatePlayer),this.on("uiChange",this.stopPlayer),this.on("pointerDown",this.stopPlayer),this.on("deactivate",this.deactivatePlayer)},s.activatePlayer=function(){this.options.autoPlay&&(this.player.play(),this.element.addEventListener("mouseenter",this))},s.playPlayer=function(){this.player.play()},s.stopPlayer=function(){this.player.stop()},s.pausePlayer=function(){this.player.pause()},s.unpausePlayer=function(){this.player.unpause()},s.deactivatePlayer=function(){this.player.stop(),this.element.removeEventListener("mouseenter",this)},s.onmouseenter=function(){this.options.pauseAutoPlayOnHover&&(this.player.pause(),this.element.addEventListener("mouseleave",this))},s.onmouseleave=function(){this.player.unpause(),this.element.removeEventListener("mouseleave",this)},i.Player=n,i}(t,e,i)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(1),i(0)],void 0===(s=function(t,e){return function(t,e,n){"use strict";var i=e.prototype;return i.insert=function(t,e){var i=this._makeCells(t);if(i&&i.length){var n=this.cells.length;e=void 0===e?n:e;var s=function(t){var e=document.createDocumentFragment();return t.forEach(function(t){e.appendChild(t.element)}),e}(i),o=e==n;if(o)this.slider.appendChild(s);else{var r=this.cells[e].element;this.slider.insertBefore(s,r)}if(0===e)this.cells=i.concat(this.cells);else if(o)this.cells=this.cells.concat(i);else{var a=this.cells.splice(e,n-e);this.cells=this.cells.concat(i).concat(a)}this._sizeCells(i),this.cellChange(e,!0)}},i.append=function(t){this.insert(t,this.cells.length)},i.prepend=function(t){this.insert(t,0)},i.remove=function(t){var e=this.getCells(t);if(e&&e.length){var i=this.cells.length-1;e.forEach(function(t){t.remove();var e=this.cells.indexOf(t);i=Math.min(e,i),n.removeFrom(this.cells,t)},this),this.cellChange(i,!0)}},i.cellSizeChange=function(t){var e=this.getCell(t);if(e){e.getSize();var i=this.cells.indexOf(e);this.cellChange(i)}},i.cellChange=function(t,e){var i=this.selectedElement;this._positionCells(t),this._getWrapShiftCells(),this.setGallerySize();var n=this.getCell(i);n&&(this.selectedIndex=this.getCellSlideIndex(n)),this.selectedIndex=Math.min(this.slides.length-1,this.selectedIndex),this.emitEvent("cellChange",[t]),this.select(this.selectedIndex),e&&this.positionSliderAtSelected()},e}(0,t,e)}.apply(e,n))||(t.exports=s)},function(t,e,i){var n,s;window,n=[i(1),i(0)],void 0===(s=function(t,e){return function(t,e,o){"use strict";e.createMethods.push("_createLazyload");var i=e.prototype;function s(t,e){this.img=t,this.flickity=e,this.load()}return i._createLazyload=function(){this.on("select",this.lazyLoad)},i.lazyLoad=function(){var t=this.options.lazyLoad;if(t){var e="number"==typeof t?t:0,i=this.getAdjacentCellElements(e),n=[];i.forEach(function(t){var e=function(t){if("IMG"==t.nodeName){var e=t.getAttribute("data-flickity-lazyload"),i=t.getAttribute("data-flickity-lazyload-src"),n=t.getAttribute("data-flickity-lazyload-srcset");if(e||i||n)return[t]}var s=t.querySelectorAll("img[data-flickity-lazyload], img[data-flickity-lazyload-src], img[data-flickity-lazyload-srcset]");return o.makeArray(s)}(t);n=n.concat(e)}),n.forEach(function(t){new s(t,this)},this)}},s.prototype.handleEvent=o.handleEvent,s.prototype.load=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this);var t=this.img.getAttribute("data-flickity-lazyload")||this.img.getAttribute("data-flickity-lazyload-src"),e=this.img.getAttribute("data-flickity-lazyload-srcset");this.img.src=t,e&&this.img.setAttribute("srcset",e),this.img.removeAttribute("data-flickity-lazyload"),this.img.removeAttribute("data-flickity-lazyload-src"),this.img.removeAttribute("data-flickity-lazyload-srcset")},s.prototype.onload=function(t){this.complete(t,"flickity-lazyloaded")},s.prototype.onerror=function(t){this.complete(t,"flickity-lazyerror")},s.prototype.complete=function(t,e){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this);var i=this.flickity.getParentCell(this.img),n=i&&i.element;this.flickity.cellSizeChange(n),this.img.classList.add(e),this.flickity.dispatchEvent("lazyLoad",t,n)},e.LazyLoader=s,e}(0,t,e)}.apply(e,n))||(t.exports=s)},,,,,function(t,e,i){"use strict";i.r(e);i(6);var o=function(t){return t.classList.toggle("is-active")},r=function(t,e){if(window.gtag&&t&&e&&window.gtag)return window.gtag("send","social",t,"share",e)},n=function(t,e){if(t&&e){var i=document.querySelector("[data-fade-screen]"),n=document.querySelector("body");i&&n&&(i.addEventListener("click",function(){n.classList.contains("is-active")&&(o(i),o(e),o(n))}),t.addEventListener("click",function(t){t.preventDefault(),o(i),o(e),o(n)}))}},s=function(t,e){t&&e&&t.addEventListener("click",function(){e.classList.add("hidden")})},a=function(t){if(t){var i=t.querySelectorAll('section[role="tabpanel"]');i&&0!==i.length&&window.addEventListener("load",function(){for(var t=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i].querySelector("[data-tab-image]");n&&e.push(t[i].offsetHeight)}return 0!==e.length&&(e.sort(function(t,e){return e-t}),e[0])}(i),e=0;e<i.length;e++)l(i[e],t),c(i[e])})}};function l(t,e){!1!==e&&t.setAttribute("style","min-height: ".concat(e,"px"))}function c(t){t.classList.remove("absolute"),t.classList.remove("invisible"),t.classList.remove("w-full"),t.classList.add("hidden")}var h=function(){var t=document.querySelector("[data-fade-screen]");t&&(function(e){if(e){var i=document.querySelector("[data-fullscreen-image]"),t=document.querySelector("[data-fullscreen-image-trigger]");i&&t&&t.addEventListener("click",function(){o(i),o(e),e.addEventListener("click",function(){o(e),o(i)},{once:!0}),document.addEventListener("keyup",function(t){i.classList.contains("is-active")&&"Escape"===t.key&&(o(e),o(i))},{once:!0})})}}(t),function(t){t&&function(i){var t=document.querySelector("[data-article]");if(t){var n=t.querySelectorAll('[id^="attachment"]');if(n)for(var e=function(t){var e=n[t].querySelector("img");if(!e)return"continue";n[t].classList.add("featured-image"),n[t].classList.add("relative"),n[t].addEventListener("click",function(){o(n[t]),n[t].style.width="100%",o(i),i.addEventListener("click",function(){o(i),o(n[t])},{once:!0})})},s=0;s<n.length;s++)e(s)}}(t)}(t))};var d=function(s,o,r,a){if(s&&o&&a)for(var t=function(n){s[n].addEventListener("click",function(t){var e=function(t){var e=t.querySelector('iframe[data-src*="youtube"]');if(!e)return!1;var i=e.getAttribute("data-src");return i&&(e.src=i),e.cloneNode(!0)}(s[n]),i=s[n].getAttribute("aria-label");e&&(t.preventDefault(),function(t,e){for(var i=0;i<e.length;i++){var n=e[i].querySelector("[data-now-playing]");n&&(n.classList.remove("flex"),n.classList.add("hidden"),n.setAttribute("aria-hidden","true"))}for(;t.firstChild;)t.removeChild(t.firstChild)}(o,s),function(t,e,i,n){i.appendChild(t),i.classList.remove("hidden"),i.setAttribute("aria-hidden","false"),n&&(n.innerHTML=e),function(t){t.setAttribute("style","position: absolute; top: 0; left: 0; width: 100%; height: 100%;")}(t),function(t){t.src="".concat(t.src,"&autoplay=1")}(t)}(e,i,o,r),function(t){t.classList.add("hidden")}(a),function(t){var e=t.querySelector("[data-now-playing]");e&&(e.classList.remove("hidden"),e.classList.add("flex"),e.setAttribute("aria-hidden","false"))}(s[n]))})},e=0;e<s.length;e++)t(e)},u=i(5),f=i.n(u),p=function(){if(function(){var t=document.querySelector("[data-gallery-trigger]"),e=document.querySelector("[data-gallery-url-source]");t&&e&&t.setAttribute("href",e.getAttribute("data-gallery-url"))}(),document.querySelector("[data-gallery]")){var e=g({selector:document.querySelector("[data-gallery]"),options:{pageDots:!1,imagesLoaded:!0,wrapAround:!0,initialIndex:".".concat(window.params.slide),on:{ready:function(){!function(){var t=document.querySelector('[data-slide="'.concat(window.params.slide,'"]'));document.querySelector("[data-title-destination]").innerText=t.getAttribute("data-title-source");var e=t.querySelector("[data-gallery-image]");e&&e.setAttribute("style","max-height: 100%; max-width: 100%;")}()}}}});o(document.querySelector("body")),e.on("change",function(t){!function(t,e){var i=document.querySelector("meta[property='og:url']").getAttribute("content").replace(/^.*//[^/]+/,""),n=t.cells[e].element.dataset.slide;history.replaceState({slide:n},"",i+n)}(e,t),function(){var t=document.querySelector("[data-title-destination]");t&&(t.classList.remove("carousel-caption-slideUp"),t.innerText="")}(),function(t,e){var i=t.cells[e-1].element.querySelector("[data-gallery-image]");i&&i.setAttribute("style","")}(e,t)}),e.on("settle",function(t){!function(t,e){var i=t.cells[e].element.querySelector("[data-gallery-image]");i&&i.setAttribute("style","max-height: 100%; max-width: 100%;")}(e,t),function(t,e){var i=t.cells[e].element.dataset.titleSource,n=document.querySelector("[data-title-destination]");n&&i&&(n.classList.add("carousel-caption-slideUp"),n.innerText=i)}(e,t)})}};var v,g=function(t){var e=t.selector,i=t.options;return!!e&&(!!i&&new f.a(e,i))};n(document.querySelector("[data-drawer-trigger]"),document.querySelector("[data-drawer-target]")),n(document.querySelector("[data-drawer-close]"),document.querySelector("[data-drawer-target]")),n(document.querySelector("[data-main-drawer-trigger]"),document.querySelector("[data-drawer-target]")),function(t){if(t&&0!==t.length)for(var e=0;e<t.length;e++){var i=document.createElement("div");t[e].parentNode.insertBefore(i,t[e]),i.appendChild(t[e]),t[e].setAttribute("style","position: absolute; top: 0; left: 0; width: 100%; height: 100%;"),i.setAttribute("style","padding-bottom: 56.25%"),i.classList.add("mb-6","relative")}}(document.querySelectorAll('[data-article] iframe[src*="youtube"]')),(v=document.querySelector("[data-featured-video]"))&&v.querySelector('iframe[src*="youtube"]')&&v.querySelector('iframe[src*="youtube"]').setAttribute("style","position: absolute; top: 0; left: 0; width: 100%; height: 100%;"),a(document.querySelector('[data-tabs-wrapper="primary"]')),a(document.querySelector('[data-tabs-wrapper="secondary"]')),function(t){if(t)for(var e=0;e<t.length;e++)t[e].addEventListener("click",function(){i(dev,dc_page_url,dc_post_id)},{once:!0});function i(t,e,i){var n=document.createElement("div");n.setAttribute("id","commentdisclaimer"),n.setAttribute("class","max-w-lg mx-auto mb-6 mb-12 px-4 lg:pt-2 text-left");var s="";e||(s="

Please disable ad block, then refresh the page, to comment at the Daily Caller.”),n.innerHTML=s+’Commenters have been begging us for better content moderation on our platform. As a relatively smaller news company with a massive number of comments, nttwe simply do not have the resources to moderate all comments ourselves. For these reasons we are switching to OpenWeb commenting. Used by Fox News and many others, OpenWeb
nttis the industry leader in content moderated commenting. To comment you will need to either:nttt

    ntttt

  1. log in with an existing Daily Caller free account;ntttt
  2. log in with a Daily Caller Patriots account; orntttt
  3. create a new free account by clicking “I DON’T HAVE AN ACCOUNT” at the bottom of the login screen.ntttnttOnce logged in, you will be able to comment anywhere across dailycaller.com and on our apps. If you were a Disqus user and would like old comments tied to your new profile nttuse the same email address that you used for your Disqus login. To change the name that displays to other users go to ‘My Account’ at the top of the webpage and then to ‘Profile’ nttto change your Comments Display Name. If you do not see the change in your Comments Display Name, please log out, then log back in. If you have any questions email support@dailycaller.com.’;var o=window.dev?”sp_VqFv6C5O”:”sp_WkhFg09x”;console.log(“[OpenWeb] window.dev is “.concat(t,” and spotId is “).concat(o));var r=document,a=r.createElement(“div”);a.setAttribute(“data-spotim-module”,”recirculation”),a.setAttribute(“data-spot-id”,o);var l=r.createElement(“script”);l.setAttribute(“async”,””),l.setAttribute(“src”,”https://recirculation.spot.im/spot/”+o);var c=r.createElement(“script”);c.setAttribute(“async”,””),c.setAttribute(“src”,”https://launcher.spot.im/spot/”+o),c.setAttribute(“data-spotim-module”,”spotim-launcher”),c.setAttribute(“data-post-url”,e),console.log(“[OpenWeb] dc_page_url is “.concat(e)),c.setAttribute(“data-post-id”,i),console.log(“[OpenWeb] dc_post_id is “.concat(i));var h=document.querySelector(“#spotim_thread”);h.appendChild(n),h.appendChild(a),h.appendChild(l),h.appendChild(c)}}(document.querySelectorAll(“[data-share-comments]”)),function(t){if(t)for(var e=0;e<t.length;e++)t[e].addEventListener("click",function(){var t=window.config.twitter.site,e=encodeURI(this.dataset.link);console.log("link is ",e),console.log("this.dataset is ",this.dataset);var i=encodeURI(this.dataset.title),n=this.dataset.social,s=!1,o="";switch(function(){if(e.includes("https://dailycaller.com"))o=e;else{var t=new URL(window.location);o=t.host+e}}(),n){case"fb":s="http://www.facebook.com/sharer.php?u=".concat(o,"&display=popup");break;case"tw":s="https://twitter.com/intent/tweet?text=".concat(i,"&url=").concat(o,"&via=").concat(t);break;case"reddit":s="https://www.reddit.com/submit?url=".concat(o,"&title=").concat(i);break;default:return console.error("No matching social property found."),void window.alert("Sorry, we couldn't process your sharing. Please try again later.")}return r(n,e),window.open(s,"socialwindow","left=20,top=20,width=600,height=700,toolbar=0,resizable=1")})}(document.querySelectorAll("[data-social-trigger]")),h(),function(t,e){if(t&&e){for(var i=0;in.minSize&&r(n.decreaseButton))}(i)}),e.addEventListener(“click”,function(){!function(t){n.size!==n.minSize&&(n.size-=10,localStorage.setItem(“fontSize”,n.size),s(t,n.size),n.size===n.minSize&&o(n.decreaseButton),n.size

<![CDATA[ if ('loading' in HTMLImageElement.prototype) { var images = document.querySelectorAll('img[loading="lazy"].lazyload'); for (var i = 0; i 0) { document.querySelectorAll(‘div.ad div’).style.height = ”; } switch(event.slot.getAdUnitPath()) { case ‘/10519169/dailycaller_top’: document.querySelectorAll(“div[class=’adcontainer’]”).forEach(box => { box.style.minHeight = “250px” }) document.getElementById(“dailycaller_top”).style.backgroundColor = “transparent”; document.querySelectorAll(‘#dailycaller_top [id^=”google_ads_iframe_”]’).forEach(item =>{item.style.position = “static”}); if(document.querySelectorAll(‘#dailycaller_top [id^=”google_ads_iframe_”]’)[1].height === 90){ document.querySelector(‘#dailycaller_top [id^=”google_ads_iframe_/10519169/dailycaller_top_0__container__”]’).style.paddingTop = “80px” } break; case ‘/10519169/dailycaller_inline2’: document.querySelector(‘#dailycaller_inline2, #\/10519169\/dailycaller_inline2’).style.display = “block” break; case ‘/10519169/dailycaller_inline3’: document.querySelector(‘#dailycaller_inline3, #\/10519169\/dailycaller_inline3’).style.display = “block” break; case ‘/10519169/dailycaller_right1′: if(wWidth >= dcRespMaxW) { var ifIsArticle = document.querySelector(“article[class=’max-w-lg mx-auto mb-6 mb-12 px-4 lg:pt-2’]”); if(!ifIsArticle){ document.getElementById(“dailycaller_right1”).style.minHeight = “1010px”; document.getElementById(“dailycaller_right1”).style.marginBottom = “40px”; } } break; case ‘/10519169/dailycaller_left1’: document.querySelector(‘#dailycaller_left1 div’).style.position = “static”; break; case ‘/10519169/dailycaller_left2’: document.getElementById(“dailycaller_left2”).style.marginBottom = “40px”; break; case ‘/10519169/dailycaller_home3’: document.querySelector(‘#dailycaller_home3 div’).style.position = “static” break; case ‘/10519169/dailycaller_home4’: document.querySelector(‘#dailycaller_home4 div’).style.position = “static” break; case ‘/10519169/dailycaller_interstitial’: document.getElementById(“dailycaller_interstitial”).width = event.size[0]; document.getElementById(“dailycaller_interstitial”).height = event.size[1]; var dc_interstitial = document.getElementsByClassName(“dc-interstitial”); dc_interstitial[0].classList.remove(“hidden”); var closeButton = document.getElementById(“dc-interstitial-close-button”) var ad = document.getElementById(“dailycaller_interstitial”); ad.appendChild(closeButton); break; case ‘/10519169/dailycaller_sticky’: console.log(“DC Sticky: Opening!”); var closeButton = document.querySelector(“.dc-sticky [title=’Close window’]”); closeButton.addEventListener(‘click’, function(){ document.querySelector(“.dc-sticky”).style.display = “none”; }); break; case ‘/10519169/dailycaller_skin’: console.log(‘DC AD: SKIN disabling refresh’); dc_disable_refresh = true; //console.log(‘DC AD: SKIN Opening!’); var skinIframe = document.getElementById(“google_ads_iframe_/10519169/dailycaller_skin_0”) var skinIframeContDoc = skinIframe.contentDocument; var imgadpath = skinIframeContDoc.getElementsByClassName(“img_ad”); var imgad = imgadpath[0][“src”]; var imghrefpath = skinIframeContDoc.getElementsByTagName(“a”); var imghref = imghrefpath[0].href; document.getElementsByTagName(“body”)[0].style.backgroundImage = ‘url(‘ + imgad + ‘)’; document.getElementsByTagName(“body”)[0].style.cursor = ‘pointer’; document.addEventListener(“click”, function(event){ if (event && event.target == document.body) { window.open(imghref); console.log(`DC AD: SKIN: imghref is ${imghref}`); console.log(`DC AD: SKIN: imgad is ${imgad}`); } if (event.target.tagName == “MAIN”){ window.open(imghref); console.log(`DC AD: SKIN: imghref is ${imghref}`); console.log(`DC AD: SKIN: imgad is ${imgad}`); } }) //console.log(‘DC AD: SKIN ‘ + imgad); //console.log(‘DC AD: SKIN ‘ + imghref); break; } }); }); ]]> <![CDATA[ var dc_piano_emailAddr = ""; var _learnq = _learnq || []; var dc_piano_was_logged_out = false; console.log("_learnq before piano login func is ", _learnq); function dc_piano_is_logged_in(data = false) { console.log('[Piano] dc_piano_is_logged_in begins'); console.log("_learnq is ", _learnq); tp.user.refreshAccessToken(true); if(data) { dc_piano_emailAddr = data.user.email; console.log("[Piano]: Email address is ", dc_piano_emailAddr); //console.log('[Piano] User ', data.user, ' logged in with token', data.token); var img = document.createElement(‘img’); img.setAttribute(“src”, ‘https://www.civicscience.com/idsync?uid=dailycaller:’ + data.user.uid); img.setAttribute(“width”, “0”); img.setAttribute(“height”, “0”); document.body.appendChild(img); } else { //console.log(‘[Piano] User is logged in’); } //console.log(“[PIANO] the user id is “, data.user.uid); var pianoonoff = document.getElementsByClassName(‘piano-on-off’)[0]; pianoonoff.style.display = ‘none’; var pianologgedin = document.getElementsByClassName(‘piano-loggedin’)[0]; pianologgedin.style.display = ‘block’; var patsloginspon = document.querySelector(‘#patriots-log-in span’); patsloginspon.innerHTML = “Log Out”; var emailAdd = dc_piano_emailAddr; _learnq.push([‘identify’,{‘$email’: emailAdd}]); // Spot.IM integration if (window.SPOTIM && window.SPOTIM.startSSOForProvider) { startSSO(); } else { document.addEventListener(‘spot-im-api-ready’, startSSO, false); } function startSSO(){ window.SPOTIM.startSSOForProvider({ provider: ‘piano’, token: tp.pianoId.getToken() }).then(function(userData) { console.log(“[Piano] SPOTIM SSO succeeded”); }) .catch(function(reason){ console.log(“[Piano] SPOTIM SSO failed”, reason); }); } tp.push([‘addHandler’, ‘loginSuccess’, function(){ var d = data; var userid = d.user.uid; tp.api.callApi(‘/access/list’, {}, function(dat){ if(typeof dat.data != “undefined”){ for(var i in dat.data){ if(dat.data[i].granted){ console.log(“[PIANO]: user is paid subscriber”); fbq(‘track’, ‘LogIntoAccount’, {is_subscriber:true, subscription_id:userid}); } } } if(dat.data.length === 0){ console.log(“[PIANO]: user is not paid subscriber”); fbq(‘track’, ‘LogIntoAccount’, {is_subscriber:false, subscription_id:userid}); } }); }]); tp.push([“addHandler”, “checkoutCustomEvent”, function(event){ if(event.eventName === “FacebookPixelSignUp”){ console.log(“[PIANO] Sign Up Clicked”); fbq(‘track’, ‘CompleteRegistration’); } }]); tp.push([“addHandler”, “loginSuccess”, function(data){ if(data.registration){ console.log(“[PIANO] signup upon registration complete!”); fbq(‘track’, ‘CompleteRegistration’); } }]); handleLiveRamp(); if(dc_piano_was_logged_out) { setTimeout(function() { window.location = window.location; }, 1000); } } function dc_piano_is_logged_out() { console.log(‘[Piano] dc_piano_is_logged_out begins’); dc_piano_was_logged_out = true; document.cookie = ‘__tac=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=.dailycaller.com;path=/;’; var pianoonoff = document.getElementsByClassName(‘piano-on-off’)[0]; if(pianoonoff) { pianoonoff.style.display = ‘block’; } var pianologgedin = document.getElementsByClassName(‘piano-loggedin’)[0]; if(pianologgedin) { pianologgedin.style.display = ‘none’; } var patsloginspon = document.querySelector(‘#patriots-log-in span’); if(patsloginspon) { patsloginspon.innerHTML = “Log In”; } gtag(‘set’, ‘dimension9’, ‘false’); // Spot.IM integration if(window.SPOTIM && window.SPOTIM.logout){ window.SPOTIM.logout(); } else { document.addEventListener(‘spot-im-api-ready’, function() { window.SPOTIM.logout(); }, false); } handleLiveRamp(); } function handleLiveRamp(){ var atsScript = document.createElement(‘script’); var atsObj = { “placementID”: 1263, “storageType”: “localStorage”, “detectionType”: “detect”, “logging”: “error” } if(dc_piano_emailAddr !== “”){ atsObj[“email”] = dc_piano_emailAddr; } console.log(“[LIVERAMP]: atsObj is “, atsObj); atsScript.onload = function() { window.ats.start(atsObj); console.log(“[LIVERAMP]: LiveRamp started! Email address is: “, dc_piano_emailAddr); }; atsScript.src = ‘https://ats.rlcdn.com/ats.js’; document.body.appendChild(atsScript); } function dc_piano_do_login() { //console.log(‘[Piano] dc_piano_do_login begins’); tp.pianoId.show({ screen: ‘login’, }); console.log(“[dc_piano_do_login()]: logging in”); } function dc_piano_do_logout() { //console.log(‘[Piano] dc_piano_do_logout begins’); tp.pianoId.logout(); console.log(“[dc_piano_do_logout()]:now logged out!”); } tp = window[“tp”] || []; tp.push([“setContentCreated”, “2021-11-24T04:25:20”]); tp.push([“setContentAuthor”, “Laurel Duggan”]); tp.push([“setContentSection”, “US”]); tp.push([“setTags”, [“uncategorized”].concat([“climate-change”,”global-warming”,”meat”,”thanksgiving”])]); tp.push([“setUsePianoIdUserProvider”, true ]); tp.push([“addHandler”, “checkoutCustomEvent”, function(event){ console.log(“event.eventName is “, event.eventName); switch(event.eventName) { case “select-plan-1”: fbq(‘track’, ‘AddToCart’); console.log(“[FACEBOOK PIXEL] monthly clicked”) break; case “select-plan-2”: fbq(‘track’, ‘AddToCart’); console.log(“[FACEBOOK PIXEL] annual clicked”); break; case “select-plan-3”: fbq(‘track’, ‘AddToCart’); console.log(“[FACEBOOK PIXEL] two-year clicked”); break; case “offer-subscribe-0”: fbq(‘track’, ‘AddToCart’); console.log(“[FACEBOOK PIXEL] monthly clicked”) break; case “offer-subscribe-1”: fbq(‘track’, ‘AddToCart’); console.log(“[FACEBOOK PIXEL] annual clicked”); break; } }]); tp.push([“addHandler”, “experienceExecute”, function(e){ var experiences = e.result.experiences; window.dcExperienceExecuteExperiencesFound = experiences; if((experiences.filter(function(x){return ( x.id === “EX3I5KWTU1J1” )}).length > 0) && !dc_premiumcontent){ console.log(“[PIANO] paywall seen!”); fbq(‘track’, ‘ViewPaywall’, {surface:’IA’}); } if((experiences.filter(function(x){return ( x.id === “EXADHXYX3TU1” )}).length > 0)){ console.log(“[KLAVIYO] Viewed product should be triggered”) _learnq.push([“track”,”Viewed Product”]); } if((experiences.filter(function(x){return ( x.id === “EXAGVZUIYHCO” )}).length > 0)){ console.log(“[KLAVIYO] Viewed product should be triggered”) _learnq.push([“track”,”Viewed Product”]); } }]); function dc_smuggle_fbq_into_scope() { return { “fbq”: window.fbq, “_learnq”: window._learnq, “gtag”: window.gtag }; } (async function() { var waitForFBQ = new Promise(function(resolve, reject) { function fbWait() { if(typeof window.fbq == “undefined”){ setTimeout(fbWait, 5); } else { resolve(window.fbq); } }; fbWait(); }); var fbq = await waitForFBQ; var s = dc_smuggle_fbq_into_scope(); tp.push([“addHandler”,”checkoutComplete”, async function(conversion){ var FBsingleUSDtoNinety = 90; if(conversion.chargeAmount === 1){ s.fbq(‘track’, ‘Purchase’, {value:FBsingleUSDtoNinety, currency: conversion.chargeCurrency}); s.fbq(‘track’, ‘Subscribe’, {currency: conversion.chargeCurrency,value:FBsingleUSDtoNinety, subscription_id:conversion.uid}); s._learnq.push([“track”,”Placed An Order”, {“amount”: conversion.chargeAmount}]); s._learnq.push([“track”,”Fulfilled The Order”, {“amount”: conversion.chargeAmount}]); }else{ s.fbq(‘track’, ‘Purchase’, {value:conversion.chargeAmount, currency: conversion.chargeCurrency}); s.fbq(‘track’, ‘Subscribe’, {currency: conversion.chargeCurrency,value:conversion.chargeAmount, subscription_id:conversion.uid}); s._learnq.push([“track”,”Placed An Order”,{“amount”: conversion.chargeAmount}]); s._learnq.push([“track”,”Fulfilled The Order”,{“amount”: conversion.chargeAmount}]); } s.gtag(‘event’, ‘conversion’, {‘send_to’: ‘AW-1022386933/uKyDCJWZwe8BEPXFwecD’, ‘value’: conversion.chargeAmount,’currency’: conversion.chargeCurrency}); setTimeout(function(){window.location.href = “/thank-you/”},5000); }]); })(); tp.push([“init”, function() { //console.log(“[Piano] init begins”); tp.enableGACrossDomainLinking(); window.resetPianoCookie = false; tp.pianoId.init({ displayMode: ‘modal’, width: 320, height: 460, containerSelector: ‘#piano-form’, loggedIn: dc_piano_is_logged_in, loggedOut: dc_piano_is_logged_out }); var dcpiano = document.getElementsByClassName(“dc-piano”)[0]; dcpiano.style.top = “100%”; //console.log(“[Piano] window.resetPianoCookie: ” + window.resetPianoCookie); console.log(“[Piano] isUserValid: ” + JSON.stringify(tp.pianoId.isUserValid())); if(window.resetPianoCookie || !tp.pianoId.isUserValid()) { dc_piano_do_logout(); } }]); document.addEventListener(“DOMContentLoaded”, function() { //console.log(“[Piano] document.ready begins”); var pianologin = document.getElementsByClassName(‘piano-login’)[0]; pianologin.addEventListener(‘click’,function(){ dc_piano_do_login(); }) var pianoonandoff = document.getElementsByClassName(‘piano-on-off’)[0]; pianoonandoff.addEventListener(‘click’,function(){ tp.offer.show({ displayMode: “modal” }); }) }); document.addEventListener(‘spot-im-login-start’, function(event) { console.log(“[SpotIM] [Piano] Showing login modal”); tp.pianoId.show({ screen: ‘login’, displayMode: ‘modal’ }); }); document.addEventListener(‘DOMContentLoaded’,function(){ var accountLogOutButton = document.getElementById(‘account-page-logout’); if(accountLogOutButton){ accountLogOutButton.addEventListener(‘click’,function(){ dc_piano_do_logout(); window.location = ‘/’; }) } }) tp.push([“addHandler”, “checkoutSelectTerm”, function(termDetails, iframeId){ console.log(“[PIANO]: term details are “, termDetails); var offerId = termDetails.offerId; _learnq.push([“track”, “Added to Cart”,{“PianoOfferID”:offerId}]) }]); tp.push( [ “addHandler”, “startCheckout”, function (termDetails) { console.log(“[PIANO]: term details in startCheckout are “, termDetails); var offerId = termDetails.offerId; fbq(‘track’, ‘InitiateCheckout’, {offer_code:offerId}); _learnq.push([“track”,”Started Checkout”]); }]); ]]>

Source

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.