(()=>{var e,t={432:e=>{ /* * @license MIT * Fun Hooks v0.9.10 * (c) @snapwich */ c.SYNC=1,c.ASYNC=2,c.QUEUE=4;var t="fun-hooks";var n=Object.freeze({useProxy:!0,ready:0}),r=new WeakMap,i="2,1,0"===[1].reduce((function(e,t,n){return[e,t,n]}),2).toString()?Array.prototype.reduce:function(e,t){var n,r=Object(this),i=r.length>>>0,o=0;if(t)n=t;else{for(;o{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}}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.m=t,e=[],r.O=(t,n,i,o)=>{if(!n){var a=1/0;for(d=0;d=o)&&Object.keys(r.O).every((e=>r.O[e](n[u])))?n.splice(u--,1):(c=!1,o0&&e[d-1][2]>o;d--)e[d]=e[d-1];e[d]=[n,i,o]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={680:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,o,[a,c,u]=n,s=0;if(a.some((t=>0!==e[t]))){for(i in c)r.o(c,i)&&(r.m[i]=c[i]);if(u)var d=u(r)}for(t&&t(n);s{"use strict";var e="alliance.breaktime.com.tw",t=["www.walkerland.com.tw","www.tech-girlz.com","incar.tw","www.teepr.com","thebetteraging.businesstoday.com.tw","ihungrybear.com","mamaclub.com","m.mamaclub.com","applealmond.com"];function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),c=new O(r||[]);return o(a,"_invoke",{value:I(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var p={};function g(){}function v(){}function h(){}var m={};d(m,c,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(k([])));b&&b!==t&&r.call(b,c)&&(m=b);var w=h.prototype=g.prototype=Object.create(m);function T(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(o,a,c,u){var s=f(e[o],e,a);if("throw"!==s.type){var d=s.arg,l=d.value;return l&&"object"==n(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){i("next",e,c,u)}),(function(e){i("throw",e,c,u)})):t.resolve(l).then((function(e){d.value=e,c(d)}),(function(e){return i("throw",e,c,u)}))}u(s.arg)}var a;o(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function I(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return j()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===p)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function k(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function o(e,t,n,r,i,o,a){try{var c=e[o](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function c(e){o(a,r,i,c,u,"next",e)}function u(e){o(a,r,i,c,u,"throw",e)}c(void 0)}))}}function c(e,t){return u.apply(this,arguments)}function u(){return(u=a(i().mark((function t(n,r){var o,a,c,u;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o="https://".concat(e,"/api/check/service/").concat(n,"/").concat(r,"/"),t.prev=1,t.next=4,window.fetch(o);case 4:return a=t.sent,t.next=7,a.json();case 7:return c=t.sent,u=c.gtm,t.abrupt("return",u);case 12:t.prev=12,t.t0=t.catch(1),console.error("BT. getGtmTags error",t.t0);case 15:case"end":return t.stop()}}),t,null,[[1,12]])})))).apply(this,arguments)}function s(e){return d.apply(this,arguments)}function d(){return(d=a(i().mark((function e(t){var n,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n=document.createElement("script"),r=["GTM-W9CRLDW","GTM-N4B8VGB","GTM-KZSXFVX","GTM-M6G9DTX"],(o=t.find((function(e){return e&&r.indexOf(e)<0})))&&(n.setAttribute("src","https://power.adhacker.online/ps/excl/"+o+".js"),document.head.appendChild(n))}catch(e){console.error("BT. excludePageAds error:",e)}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function l(e){e.map((function(e){return function(e){var t=document.createElement("script");t.innerHTML="(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':\n new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],\n j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=\n 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n })(window,document,'script','dataLayer','".concat(e,"');"),document.head.appendChild(t),console.debug("BT. GTM Tag '".concat(e,"' Injected!"))}(e)}))}function f(e){return f="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},f(e)}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,i){var o=t&&t.prototype instanceof g?t:g,a=Object.create(o.prototype),c=new O(i||[]);return r(a,"_invoke",{value:I(e,n,c)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l={};function g(){}function v(){}function h(){}var m={};u(m,o,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(k([])));b&&b!==t&&n.call(b,o)&&(m=b);var w=h.prototype=g.prototype=Object.create(m);function T(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function i(r,o,a,c){var u=d(e[r],e,o);if("throw"!==u.type){var s=u.arg,l=s.value;return l&&"object"==f(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){i("next",e,a,c)}),(function(e){i("throw",e,a,c)})):t.resolve(l).then((function(e){s.value=e,a(s)}),(function(e){return i("throw",e,a,c)}))}c(u.arg)}var o;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return o=o?o.then(r,r):r()}})}function I(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return j()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=S(a,n);if(c){if(c===l)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),l;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,l;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function k(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function g(e,t,n,r,i,o,a){try{var c=e[o](a),u=c.value}catch(e){return void n(e)}c.done?t(u):Promise.resolve(u).then(r,i)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){g(o,r,i,a,c,"next",e)}function c(e){g(o,r,i,a,c,"throw",e)}a(void 0)}))}}function h(){var e,t;e="//securepubads.g.doubleclick.net/tag/js/gpt.js",(t=document.createElement("script")).async=!0,t.type="text/javascript",t.src=e,document.head.querySelectorAll("script")[0]?document.head.querySelectorAll("script")[0].parentNode.insertBefore(t,document.head.querySelectorAll("script")[0]):document.head.appendChild(t)}function m(e){return y.apply(this,arguments)}function y(){return(y=v(p().mark((function e(t){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){var n=document.createElement("script");n.type="text/javascript",n.src="//au.adhacker.online/js/customized/".concat(t,".js"),n.onload=function(){return e()},document.head.appendChild(n)})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(e,t){var n=[];t.sort(c);var r,i,o=/[^a-zA-Z]/g,a=/[^0-9]/g;function c(e,t){var n=parseInt(e,10),r=parseInt(t,10);if(isNaN(n)&&isNaN(r)){var i=e.replace(o,""),c=t.replace(o,"");if(i===c){var u=parseInt(e.replace(a,""),10),s=parseInt(t.replace(a,""),10);return u===s?0:u>s?1:-1}return i>c?1:-1}return isNaN(n)?1:isNaN(r)?-1:r>n?1:-1}for(var u=0;u1)if("number"==typeof t[u][0]){if(1===t[u][0]){n.push(t[u]);continue}e>=t[u][0]&&n.push(t[u])}else n.push(t[u]);else n.push(t[u]);return n.sort(c),r=1,i=1,n.reduce((function(e,t,n,o){if(t[r]!=i)return o;o.unshift(o[n]),o.splice(n+1,1)})),n}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",n=document.querySelector(t);return n&&n.offsetWidth||e.offsetWidth||document.body.offsetWidth}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:1,r=parseFloat(e);return isNaN(r)&&(r=""),{low:""===r?"":q(e,x,n),med:""===r?"":q(e,_,n),high:""===r?"":q(e,U,n),auto:""===r?"":q(e,P,n),dense:""===r?"":q(e,R,n),custom:""===r?"":q(e,t,n)}}function q(e,t,n){var r="";if(!N(t))return r;var i=t.buckets.reduce((function(e,t){return e.max>t.max?e:t}),{max:0}),o=0,a=B(t.buckets,(function(t){if(e>i.max*n){var a=t.precision;void 0===a&&(a=2),r=(t.max*n).toFixed(a)}else{if(e<=t.max*n&&e>=o*n)return t.min=o,t;o=t.max}}));return a&&(r=M(e,a,n)),r}function N(e){if($e(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}function M(e,t,n){var r=void 0!==t.precision?t.precision:2,i=t.increment*n,o=t.min*n,a=Math.floor,c=J.getConfig("cpmRoundingFunction");"function"==typeof c&&(a=c);var u,s,d=Math.pow(10,r+2),l=(e*d-o*d)/(i*d);try{u=a(l)*i+o}catch(e){s=!0}return(s||"number"!=typeof u)&&(Me("Invalid rounding function passed in config"),u=Math.floor(l)*i+o),(u=Number(u.toFixed(10))).toFixed(r)}function L(e,t,n,r,i){for(t=t.split?t.split("."):t,r=0;r2&&void 0!==arguments[2]?arguments[2]:{},i=t;if("string"!=typeof e&&(i=e,e=Q,n=t||{}),"function"==typeof i){var o={topic:e,callback:i};return r.push(o),n.init&&i(e===Q?d():C({},e,d(e))),function(){r.splice(r.indexOf(o),1)}}Le("listener must be a function")}function h(e){var t=Object.keys(e);r.filter((function(e){return j(t,e.topic)})).forEach((function(t){t.callback(C({},t.topic,e[t.topic]))})),r.filter((function(e){return e.topic===Q})).forEach((function(t){return t.callback(e)}))}function m(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];try{r(e),e.bidders.forEach((function(r){n[r]||(n[r]={}),Object.keys(e.config).forEach((function(i){var o=e.config[i];if(Je(o)){var a=t?Lt:Object.assign;n[r][i]=a({},n[r][i]||{},o)}else n[r][i]=o}))}))}catch(e){Le(e)}function r(e){if(!Je(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(!Je(e.config))throw"setBidderConfig bidder options must contain a config object"}}function y(e,t){i=e;try{return t()}finally{b()}}function b(){i=null}return o(),{getCurrentBidder:function(){return i},resetBidder:b,getConfig:d,getAnyConfig:s,readConfig:f,readAnyConfig:p,setConfig:g,mergeConfig:function(e){if(Je(e)){var t=Lt(a(),e);return g(function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:0;return new e((function(e){0===t?e():setTimeout(e,t)}))}},{key:"race",value:function(t){var n=this;return new this((function(r,i){ae(n,e,fe).call(n,t,(function(e,t){return e?r(t):i(t)}))}))}},{key:"all",value:function(t){var n=this;return new this((function(r,i){var o=[];ae(n,e,fe).call(n,t,(function(e,t,n){return e?o[n]=t:i(t)}),(function(){return r(o)}))}))}},{key:"allSettled",value:function(t){var n=this;return new this((function(r){var i=[];ae(n,e,fe).call(n,t,(function(e,t,n){return i[n]=e?{status:"fulfilled",value:t}:{status:"rejected",reason:t}}),(function(){return r(i)}))}))}},{key:"resolve",value:function(e){return new this((function(t){return t(e)}))}},{key:"reject",value:function(e){return new this((function(t,n){return n(e)}))}}]),e}();function fe(e,t,n){var r=this,i=e.length;function o(){t.apply(this,arguments),--i<=0&&n&&n()}0===e.length&&n?n():e.forEach((function(e,t){return r.resolve(e).then((function(e){return o(!0,e,t)}),(function(e){return o(!1,e,t)}))}))}function pe(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.promiseFactory,i=void 0===r?function(e){return new le(e)}:r;function o(e){return function(t){return e(t)}}return{promise:i((function(n,r){e=n,t=r})),resolve:o(e),reject:o(t)}}var ge,ve=Object.prototype.toString,he=Boolean(window.console),me=Boolean(he&&window.console.log),ye=Boolean(he&&window.console.info),be=Boolean(he&&window.console.warn),we=Boolean(he&&window.console.error);function Te(){null!=ge&&ge.apply(void 0,arguments)}var Ee={checkCookieSupport:Ct,createTrackPixelIframeHtml:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return"";t&&(e=encodeURI(e));n&&(n='sandbox="'.concat(n,'"'));return"')},getWindowSelf:Pe,getWindowTop:Re,getWindowLocation:De,insertUserSyncIframe:st,insertElement:it,isFn:Ve,triggerPixel:at,logError:Le,logWarn:Me,logMessage:qe,logInfo:Ne,parseQS:Dt,formatQS:function(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("&")},deepEqual:Mt};var Ie,Se={},Ae=function(e,t){return t}.bind(null,1,Se)()===Se?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)))}},Ce=(Ie=0,function(){return++Ie});function Oe(){return Ce()+Math.random().toString(16).substr(2)}function ke(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,ke)}function je(e,t){return t&&t[e]?t[e]:""}function Be(e){return e&&Object.getOwnPropertyNames(e).length>0?(t=e,Object.keys(t)).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(ft(e,t)))})).join("&"):"";var t}function xe(e){var t=[];if("string"==typeof e){var n=e.split(","),r=/^(\d)+x(\d)+$/i;if(n)for(var i in n)rt(n,i)&&n[i].match(r)&&t.push(n[i])}else if("object"===S(e)){var o=e.length;if(o>0)if(2===o&&"number"==typeof e[0]&&"number"==typeof e[1])t.push(_e(e));else for(var a=0;a0);for(var t in e)if(hasOwnProperty.call(e,t))return!1;return!0}function Ze(e){return Ke(e)&&(!e||0===e.length)}function et(e,t){if(!$e(e)){if(Ve(e.forEach))return e.forEach(t,this);var n=0,r=e.length;if(r>0)for(;n0&&void 0!==arguments[0]?arguments[0]:btpbjs.adUnits;return e.map((function(e){return e.bids.map((function(e){return e.bidder})).reduce(lt,[])})).reduce(lt,[]).filter((function(e){return void 0!==e})).filter(dt)}function gt(){if(window.googletag&&Ve(window.googletag.pubads)&&Ve(window.googletag.pubads().getSlots))return!0}var vt=mt("timeToRespond",(function(e,t){return e>t})),ht=mt("responseTimestamp",(function(e,t){return e>t}));mt("responseTimestamp",(function(e,t){return e0;){var n=Math.floor(Math.random()*t),r=e[--t];e[t]=e[n],e[n]=r}return e}function bt(e,t){return j(e,t&&t.adUnitCode)}function wt(e){return $()(e)}function Tt(){try{return Ee.getWindowSelf()!==Ee.getWindowTop()}catch(e){return!0}}function Et(e,t){if(e)return e.replace(/\$\{AUCTION_PRICE\}/g,t)}function It(e,t){if(e&&t&&"string"==typeof t)return e.replace(/\${CLICKTHROUGH}/g,t)}function St(){return(new Date).getTime()}function At(){return!1!==J.getConfig("deviceAccess")}function Ct(){if(window.navigator.cookieEnabled||document.cookie.length)return!0}function Ot(e,t){return e.reduce((function(e,n){return(e[n[t]]=e[n[t]]||[]).push(n),e}),{})}function kt(e,t){return t.filter((function(t){return e[t]})).reduce((function(t,n){return Object.assign(t,C({},n,e[n]))}),{})}function jt(e,t,n){return e.filter((function(e){return e.code===t})).map((function(e){return e.bids})).reduce(lt,[]).filter((function(e){return e.bidder===n})).map((function(e){return e.params||{}}))}function Bt(){return"1"===navigator.doNotTrack||"1"===window.doNotTrack||"1"===navigator.msDoNotTrack||"yes"===navigator.doNotTrack}var xt=function(e,t){return e.getAdUnitPath()===t||e.getSlotElementId()===t};function _t(e,t){var n=Object.keys(e.mediaTypes||{banner:"banner"}).join(", ");return"\n ".concat(e.code," is a ").concat(n," ad unit\n containing bidders that don't support ").concat(n,": ").concat(t,".\n This bidder won't fetch demand.\n ")}function Ut(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}function Rt(e,t){return"object"!==S(e)?{}:t.reduce((function(n,r,i){if("function"==typeof r)return n;var o=r,a=r.match(/^(.+?)\sas\s(.+?)$/i);a&&(r=a[1],o=a[2]);var c=e[r];return"function"==typeof t[i+1]&&(c=t[i+1](c,n)),void 0!==c&&(n[o]=c),n}),{})}function Pt(e,t){return Ye(e)&&(!t||e.length===t)&&e.every((function(e){return Ut(e)}))}function Dt(e){return e?e.replace(/^\?/,"").split("&").reduce((function(e,t){var n=I(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 qt(e,t){var n=document.createElement("a");t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e);var r=t&&"decodeSearchAsString"in t&&t.decodeSearchAsString;return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:r?n.search:Ee.parseQS(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}}function Nt(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(Ee.formatQS(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}function Mt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.checkTypes,i=void 0!==r&&r;if(e===t)return!0;if("object"!==S(e)||null===e||"object"!==S(t)||null===t||i&&e.constructor!==t.constructor)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e){if(!t.hasOwnProperty(o))return!1;if(!Mt(e[o],t[o],{checkTypes:i}))return!1}return!0}function Lt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r":"\\u003E","/":"\\u002F","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};function zt(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,c=e;o0&&void 0!==arguments[0]?arguments[0]:3e3,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.request,r=t.done;return function(t,i,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var c,u=a.method||(o?"POST":"GET"),s=document.createElement("a");s.href=t;var d="object"===S(i)&&null!==i?i:{success:function(){qe("xhr success")},error:function(e){Le("xhr error",null,e)}};if("function"==typeof i&&(d.success=i),(c=new window.XMLHttpRequest).onreadystatechange=function(){if(4===c.readyState){"function"==typeof r&&r(s.origin);var e=c.status;e>=200&&e<300||304===e?d.success(c.responseText,c):d.error(c.statusText,c)}},J.getConfig("disableAjaxTimeout")||(c.ontimeout=function(){Le(" xhr timeout after ",c.timeout,"ms")}),"GET"===u&&o){var l=qt(t,a);Object.assign(l.search,o),t=Nt(l)}c.open(u,t,!0),J.getConfig("disableAjaxTimeout")||(c.timeout=e),a.withCredentials&&(c.withCredentials=!0),et(a.customHeaders,(function(e,t){c.setRequestHeader(t,e)})),a.preflight&&c.setRequestHeader("X-Requested-With","XMLHttpRequest"),c.setRequestHeader("Content-Type",a.contentType||"text/plain"),"function"==typeof n&&n(s.origin),"POST"===u&&o?c.send(o):c.send()}catch(e){Le("xhr construction",e),"object"===S(i)&&null!==i&&i.error(e)}}}function nn(e,t){var n=t?""):"";return'\n \n \n prebid.org wrapper\n \n ").concat(n,"\n \n \n \n ")}function rn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index,r=void 0===n?qi.index:n,i=e.vastXml?e.vastXml:nn(e.vastUrl,e.vastImpUrl),o=r.getAuction(e),a=Number(e.ttl)+15,c={type:"xml",value:i,ttlseconds:a};return J.getConfig("cache.vasttrack")&&(c.bidder=e.bidder,c.bidid=e.requestId,c.aid=e.auctionId),null!=o&&(c.timestamp=o.getAuctionStart()),"string"==typeof e.customCacheKey&&""!==e.customCacheKey&&(c.key=e.customCacheKey),c}function on(e){return{success:function(t){var n;try{n=JSON.parse(t).responses}catch(t){return void e(t,[])}n?e(null,n):e(new Error("The cache server didn't respond with a responses property."),[])},error:function(t,n){e(new Error("Error storing video ad in the cache: ".concat(t,": ").concat(JSON.stringify(n))),[])}}}var an=new WeakMap,cn=["debugging","adloox","criteo","outstream","adagio","spotx","browsi","brandmetrics","justtag","tncId","akamaidap","ftrackId","inskin","hadron","medianet","improvedigital","aaxBlockmeter","confiant","arcspan"];function un(e,t,n,r,i){if(t&&e){if(j(cn,t)){r||(r=document);var o=u(r,e);if(o)return n&&"function"==typeof n&&(o.loaded?n():o.callbacks.push(n)),o.tag;var a=an.get(r)||{},c={loaded:!1,tag:null,callbacks:[]};return a[e]=c,an.set(r,a),n&&"function"==typeof n&&c.callbacks.push(n),Me("module ".concat(t," is loading external JavaScript")),function(t,n,r,i){r||(r=document);var o=r.createElement("script");o.type="text/javascript",o.async=!0;var a=u(r,e);a&&(a.tag=o);o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,n())}:o.onload=function(){n()};o.src=t,i&&function(e,t){for(var n in t)t.hasOwnProperty(n)&&e.setAttribute(n,t[n])}(o,i);return it(o,r),o}(e,(function(){c.loaded=!0;try{for(var e=0;e0;)try{this.cmd.shift().call()}catch(e){Le("Error processing Renderer command: ",e)}};var gn=r(432),vn=r.n(gn),hn=vn()({ready:vn().SYNC|vn().ASYNC|vn().QUEUE}),mn=pe();hn.ready=function(){var e=hn.ready;return function(){try{return e.apply(hn,arguments)}finally{mn.resolve()}}}();mn.promise;var yn=hn.get;function bn(e,t){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.add(e)}function wn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var Tn=new WeakSet;function En(e){return null==e?this.defaultScope:e}var In=new(function(){function e(t,n){Z(this,e),bn(this,Tn),this.getSettings=t,this.defaultScope=n}return te(e,[{key:"get",value:function(e,t){var n=this.getOwn(e,t);return void 0===n&&(n=this.getOwn(null,t)),n}},{key:"getOwn",value:function(e,t){return e=wn(this,Tn,En).call(this,e),L(this.getSettings(),"".concat(e,".").concat(t))}},{key:"getScopes",value:function(){var e=this;return Object.keys(this.getSettings()).filter((function(t){return t!==e.defaultScope}))}},{key:"settingsFor",value:function(e){return Lt({},this.ownSettingsFor(null),this.ownSettingsFor(e))}},{key:"ownSettingsFor",value:function(e){return e=wn(this,Tn,En).call(this,e),this.getSettings()[e]||{}}}]),e}())((function(){return O().bidderSettings||{}}),F.k2.zF);function Sn(e,t){return Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sn(e,t)}function An(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sn(e,t)}function Cn(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function On(e){return On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},On(e)}function kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=On(e);if(t){var i=On(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Cn(this,n)}}function jn(e,t,n){Bn(e,t),t.set(e,n)}function Bn(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function xn(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}var _n=Object.freeze({}),Un=new WeakMap,Rn=new WeakMap,Pn=new WeakMap,Dn=new WeakMap,qn=new WeakSet,Nn=function(){function e(){var t,n;Z(this,e),Bn(t=this,n=qn),n.add(t),jn(this,Un,{writable:!0,value:void 0}),jn(this,Rn,{writable:!0,value:void 0}),jn(this,Pn,{writable:!0,value:void 0}),jn(this,Dn,{writable:!0,value:void 0}),C(this,"generatedTime",void 0),this.reset()}return te(e,[{key:"reset",value:function(){ie(this,Pn,pe()),ie(this,Un,!1),ie(this,Rn,null),ie(this,Dn,!1),this.generatedTime=null}},{key:"enable",value:function(){ie(this,Un,!0)}},{key:"enabled",get:function(){return re(this,Un)}},{key:"ready",get:function(){return re(this,Dn)}},{key:"promise",get:function(){return re(this,Dn)?le.resolve(re(this,Rn)):(re(this,Un)||xn(this,qn,Mn).call(this,null),re(this,Pn).promise)}},{key:"setConsentData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:St();this.generatedTime=t,xn(this,qn,Mn).call(this,e)}},{key:"getConsentData",value:function(){return re(this,Rn)}}]),e}();function Mn(e){ie(this,Dn,!0),ie(this,Rn,e),re(this,Pn).resolve(e)}var Ln=function(e){An(n,e);var t=kn(n);function n(){return Z(this,n),t.apply(this,arguments)}return te(n,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&this.generatedTime)return{usp:e,generatedAt:this.generatedTime}}}]),n}(Nn),Fn=function(e){An(n,e);var t=kn(n);function n(){return Z(this,n),t.apply(this,arguments)}return te(n,[{key:"getConsentMeta",value:function(){var e=this.getConsentData();if(e&&e.vendorData&&this.generatedTime)return{gdprApplies:e.gdprApplies,consentStringSize:Ke(e.vendorData.tcString)?e.vendorData.tcString.length:0,generatedAt:this.generatedTime,apiVersion:e.apiVersion}}}]),n}(Nn),zn=function(e){An(n,e);var t=kn(n);function n(){return Z(this,n),t.apply(this,arguments)}return te(n,[{key:"getConsentMeta",value:function(){if(this.getConsentData()&&this.generatedTime)return{generatedAt:this.generatedTime}}}]),n}(Nn),Gn=["core","prebid-module"],Wn=[];function Hn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.gvlid,n=e.moduleName,r=e.bidderCode,i=e.moduleType,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.bidderSettings,c=void 0===a?In:a;function u(){if(null==r)return!0;var e=c.get(r,"storageAllowed");return null!=e&&e}function s(e){if(u()){var i;return Vn(t,r||n,{hasEnforcementHook:!1},(function(t){if(t&&t.hasEnforcementHook)i=e(t);else{var n={hasEnforcementHook:!1,valid:At()};i=e(n)}})),i}Ne("bidderSettings denied access to device storage for bidder '".concat(r,"'"));return e({valid:!1})}Gn.includes(i)&&(t=t||_n);var d=function(e,t,n,r,i,o){var a=function(o){if(o&&o.valid){var a=i&&""!==i?" ;domain=".concat(encodeURIComponent(i)):"",c=n&&""!==n?" ;expires=".concat(n):"",u=null!=r&&"none"==r.toLowerCase()?"; Secure":"";document.cookie="".concat(e,"=").concat(encodeURIComponent(t)).concat(c,"; path=/").concat(a).concat(r?"; SameSite=".concat(r):"").concat(u)}};if(!o||"function"!=typeof o)return s(a);Wn.push((function(){var e=s(a);o(e)}))},l=function(e,t){var n=function(t){if(t&&t.valid){var n=window.document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]*)\\s*(;|$)");return n?decodeURIComponent(n[2]):null}return null};if(!t||"function"!=typeof t)return s(n);Wn.push((function(){var e=s(n);t(e)}))},f=function(e){var t=function(e){if(e&&e.valid)try{return localStorage.setItem("prebid.cookieTest","1"),"1"===localStorage.getItem("prebid.cookieTest")}catch(e){}finally{try{localStorage.removeItem("prebid.cookieTest")}catch(e){}}return!1};if(!e||"function"!=typeof e)return s(t);Wn.push((function(){var n=s(t);e(n)}))},p=function(e){var t=function(e){return!(!e||!e.valid)&&Ct()};if(!e||"function"!=typeof e)return s(t);Wn.push((function(){var n=s(t);e(n)}))},g=function(e,t,n){var r=function(n){n&&n.valid&&m()&&window.localStorage.setItem(e,t)};if(!n||"function"!=typeof n)return s(r);Wn.push((function(){var e=s(r);n(e)}))},v=function(e,t){var n=function(t){return t&&t.valid&&m()?window.localStorage.getItem(e):null};if(!t||"function"!=typeof t)return s(n);Wn.push((function(){var e=s(n);t(e)}))},h=function(e,t){var n=function(t){t&&t.valid&&m()&&window.localStorage.removeItem(e)};if(!t||"function"!=typeof t)return s(n);Wn.push((function(){var e=s(n);t(e)}))},m=function(e){var t=function(e){if(e&&e.valid)try{return!!window.localStorage}catch(e){Le("Local storage api disabled")}return!1};if(!e||"function"!=typeof e)return s(t);Wn.push((function(){var n=s(t);e(n)}))},y=function(e,t){var n=function(t){if(t&&t.valid){var n=[];if(At())for(var r=document.cookie.split(";");r.length;){var i=r.pop(),o=i.indexOf("=");o=o<0?i.length:o,decodeURIComponent(i.slice(0,o).replace(/^\s+/,"")).indexOf(e)>=0&&n.push(decodeURIComponent(i.slice(o+1)))}return n}};if(!t||"function"!=typeof t)return s(n);Wn.push((function(){var e=s(n);t(e)}))};return{setCookie:d,getCookie:l,localStorageIsEnabled:f,cookiesAreEnabled:p,setDataInLocalStorage:g,getDataFromLocalStorage:v,removeDataFromLocalStorage:h,hasLocalStorage:m,findSimilarCookies:y}}var Vn=hn("async",(function(e,t,n,r){r(n)}),"validateStorageEnforcement");function Kn(e){return Hn({moduleName:e,moduleType:"core"})}J.setDefaults({userSync:wt({syncEnabled:!0,filterSettings:{image:{bidders:"*",filter:"include"}},syncsPerBidder:5,syncDelay:3e3,auctionDelay:0})});var Yn=Kn("usersync");var Qn=function(e){var t={},n={image:[],iframe:[]},r=new Set,i={},o={image:!0,iframe:!1},a=e.config;function c(){if(a.syncEnabled&&e.browserSupportsCookies){try{!function(){if(!o.iframe)return;u(n.iframe,(function(e){var t=I(e,2),r=t[0],i=t[1];qe("Invoking iframe user sync for bidder: ".concat(r)),st(i),function(e,t){e.image=e.image.filter((function(e){return e[0]!==t}))}(n,r)}))}(),function(){if(!o.image)return;u(n.image,(function(e){var t=I(e,2),n=t[0],r=t[1];qe("Invoking image pixel user sync for bidder: ".concat(n)),at(r)}))}()}catch(e){return Le("Error firing user syncs",e)}n={image:[],iframe:[]}}}function u(e,t){yt(e).forEach((function(e){t(e),r.add(e[0])}))}function s(e,t){var n=a.filterSettings;if(function(e,t){if(e.all&&e[t])return Me('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 Me('UserSync "filterSettings.'.concat(r,".filter\" setting '").concat(i,"' is not a valid option; use either 'include' or 'exclude'.")),!1;if("*"!==o&&!(Array.isArray(o)&&o.length>0&&o.every((function(e){return Ke(e)&&"*"!==e}))))return Me('Detected an invalid setup in userSync "filterSettings.'.concat(r,".bidders\"; use either '*' (to represent all bidders) or an array of bidders.")),!1;return!0}(n,e)){o[e]=!0;var r=n.all?n.all:n[e],i="*"===r.bidders?[t]:r.bidders,c={include:function(e,t){return!j(e,t)},exclude:function(e,t){return j(e,t)}};return c[r.filter||"include"](i,t)}return!o[e]}return J.getConfig("userSync",(function(e){if(e.userSync){var t=e.userSync.filterSettings;Je(t)&&(t.image||t.all||(e.userSync.filterSettings.image={bidders:"*",filter:"include"}))}a=Object.assign(a,e.userSync)})),t.registerSync=function(e,o,c){return r.has(o)?qe('already fired syncs for "'.concat(o,'", ignoring registerSync call')):a.syncEnabled&&Ye(n[e])?o?0!==a.syncsPerBidder&&Number(i[o])>=a.syncsPerBidder?Me('Number of user syncs exceeded for "'.concat(o,'"')):t.canBidderRegisterSync(e,o)?(n[e].push([o,c]),void(i=function(e,t){return e[t]?e[t]+=1:e[t]=1,e}(i,o))):Me('Bidder "'.concat(o,'" not permitted to register their "').concat(e,'" userSync pixels.')):Me("Bidder is required for registering sync"):Me('User sync type "'.concat(e,'" not supported'))},t.syncUsers=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(e)return setTimeout(c,Number(e));c()},t.triggerUserSyncs=function(){a.enableOverride&&t.syncUsers()},t.canBidderRegisterSync=function(e,t){return!a.filterSettings||!s(e,t)},t}(Object.defineProperties({config:J.getConfig("userSync")},{browserSupportsCookies:{get:function(){return!/^((?!chrome|android|crios|fxios).)*safari/i.test(navigator.userAgent)&&Yn.cookiesAreEnabled()}}})),Jn="outstream";function Xn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.index,r=void 0===n?qi.index:n,i=L(r.getMediaTypes(e),"video"),o=i&&L(i,"context"),a=i&&L(i,"useCacheKey"),c=r.getAdUnit(e);return $n(e,c,i,o,a)}var $n=hn("sync",(function(e,t,n,r,i){return n&&(i||r!==Jn)?J.getConfig("cache.url")||!e.vastXml||e.vastUrl?!(!e.vastUrl&&!e.vastXml):(Le('\n This bid contains only vastXml and will not work when a prebid cache url is not specified.\n Try enabling prebid cache with btpbjs.setConfig({ cache: {url: "..."} });\n '),!1):!(r===Jn&&!i)||!!(e.renderer||t&&t.renderer||n.renderer)}),"checkVideoBidSetup"),Zn="native",er="video",tr="banner",nr="adpod",rr=[];function ir(e,t){return e.labelAll?{labelAll:!0,labels:e.labelAll,activeLabels:t}:{labelAll:!1,labels:e.labelAny,activeLabels:t}}function or(){var e=arguments.length>0&&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=arguments.length>1?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:rr,d=ar(s);Je(c)||(c=u?{banner:{sizes:u}}:{});var l=L(c,"banner.sizes");d.shouldFilter&&l&&((c=wt(c)).banner.sizes=l.filter((function(e){return d.sizesSupported[e]})));var f={active:!c.hasOwnProperty(tr)||L(c,"banner.sizes.length")>0&&(0===n.length||!i&&(n.some((function(e){return d.labels[e]}))||n.some((function(e){return j(a,e)})))||i&&n.reduce((function(e,t){return e?d.labels[t]||j(a,t):e}),!0)),mediaTypes:c};return l&&l.length!==c.banner.sizes.length&&(f.filterResults={before:l,after:c.banner.sizes}),f}function ar(e){return e.reduce((function(e,t){if("object"===S(t)&&"string"==typeof t.mediaQuery&&t.mediaQuery.length>0){var n=!1;try{n=Re().matchMedia(t.mediaQuery).matches}catch(e){Me("Unfriendly iFrame blocks sizeConfig from being correctly evaluated"),n=matchMedia(t.mediaQuery).matches}n&&(Array.isArray(t.sizesSupported)&&(e.shouldFilter=!0),["labels","sizesSupported"].forEach((function(n){return(t[n]||[]).forEach((function(t){return e[n][t]=!0}))})))}else Me('sizeConfig rule missing required property "mediaQuery"');return e}),{labels:{},sizesSupported:{},shouldFilter:!1})}function cr(e){var t=e;return{callBids:function(){},setBidderCode:function(e){t=e},getBidderCode:function(){return t}}}function ur(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.src,r=void 0===n?"client":n,i=t.bidder,o=void 0===i?"":i,a=t.bidId,c=t.transactionId,u=t.auctionId,s=r,d=e||0;function l(){switch(d){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.bidderCode=o,this.width=0,this.height=0,this.statusMessage=l(),this.adId=Oe(),this.requestId=a,this.transactionId=c,this.auctionId=u,this.mediaType="banner",this.source=s,this.getStatusCode=function(){return d},this.getSize=function(){return this.width+"x"+this.height},this.getIdentifiers=function(){return{src:this.source,bidder:this.bidderCode,bidId:this.requestId,transactionId:this.transactionId,auctionId:this.auctionId}}}function sr(e,t){return new ur(e,t)}function dr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return lr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function lr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{},t=e.now,n=void 0===t?pr:t,r=e.mkNode,i=void 0===r?yr:r,o=e.mkTimer,a=void 0===o?mr:o,c=e.mkRenamer,u=void 0===c?function(e){return e}:c,s=e.nodes,d=void 0===s?gr:s;return function(){return function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return{forEach:function(t){t(e)}}};function o(e){return function(n){return t.dfWalk({visit:function(t,r){var i=r[e];if(i.hasOwnProperty(n))return i[n]}})}}r=u(r);var c=o("timestamps");function s(e,n){var i=r(e);t.dfWalk({follow:function(e,t){return t.propagate&&(!e||!e.stopPropagation)},visit:function(e,t){i.forEach((function(r){null==e?t.metrics[r]=n:(t.groups.hasOwnProperty(r)||(t.groups[r]=[]),t.groups[r].push(n))}))}})}function l(e){t.timestamps[e]=n()}function f(e,t){var r=c(e),i=null!=r?n()-r:null;return null!=t&&s(t,i),i}function p(e,t,n){var r=c(e),i=c(t),o=null!=r&&null!=i?i-r:null;return null!=n&&s(n,o),o}function g(e){return a(n,(function(t){return s(e,t)}))}function v(e,t){return g(e).stopAfter(t)()}function h(e,t,n){var r=g(e);return n(function(e){var t=r.stopBefore(e);return t.bail=e.bail&&r.stopBefore(e.bail),t.stopTiming=r,t.untimed=e,t}(t))}function m(){var e={};return t.dfWalk({visit:function(t,n){e=Object.assign({},!t||t.includeGroups?n.groups:null,n.metrics,e)}}),e}function y(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.propagate,a=void 0===o||o,c=n.stopPropagation,u=void 0!==c&&c,s=n.includeGroups,d=void 0!==s&&s;return e(i([[t,{propagate:a,stopPropagation:u,includeGroups:d}]]),r)}function b(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.propagate,i=void 0===r||r,o=n.stopPropagation,a=void 0!==o&&o,c=n.includeGroups,u=void 0!==c&&c,s=d.get(e);null!=s&&s.addParent(t,{propagate:i,stopPropagation:a,includeGroups:u})}function w(n){return e(t,n)}function T(){return e(t.newSibling(),r)}var E={startTiming:g,measureTime:v,measureHookTime:h,checkpoint:l,timeSince:f,timeBetween:p,setMetric:s,getMetrics:m,fork:y,join:b,newMetrics:T,renameWith:w,toJSON:function(){return m()}};return d.set(E,t),E}(i([]))}}function hr(e,t,n){return function(){t&&t();try{return e.apply(this,arguments)}finally{n&&n()}}}function mr(e,t){var n=e(),r=!1;function i(){r||(t(e()-n),r=!0)}return i.stopBefore=function(e){return hr(e,i)},i.stopAfter=function(e){return hr(e,null,i)},i}function yr(e){return{metrics:{},timestamps:{},groups:{},addParent:function(t,n){e.push([t,n])},newSibling:function(){return yr(e.slice())},dfWalk:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.visit,i=n.follow,o=void 0===i?function(){return!0}:i,a=n.visited,c=void 0===a?new Set:a,u=n.inEdge;if(!c.has(this)){if(c.add(this),null!=(t=r(u,this)))return t;var s,d=dr(e);try{for(d.s();!(s=d.n()).done;){var l=I(s.value,2),f=l[0],p=l[1];if(o(u,p)&&null!=(t=f.dfWalk({visit:r,follow:o,visited:c,inEdge:p})))return t}}catch(e){d.e(e)}finally{d.f()}}}}}var br=function(){var e=function(){},t=function(){return{}},n={forEach:e},r=function(){return null};r.stopBefore=function(e){return e},r.stopAfter=function(e){return e};var i=Object.defineProperties({dfWalk:e,newSibling:function(){return i},addParent:e},Object.fromEntries(["metrics","timestamps","groups"].map((function(e){return[e,{get:t}]}))));return vr({now:function(){return 0},mkNode:function(){return i},mkRenamer:function(){return function(){return n}},mkTimer:function(){return r},nodes:{get:e,set:e}})()}(),wr=!0;function Tr(e){return wr&&e||br}J.getConfig(fr,(function(e){wr=!!e[fr]}));var Er,Ir=(Er=vr(),function(){return wr?Er():br});function Sr(e,t){return function(n,r){return function(i){for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c2&&void 0!==arguments[2]?arguments[2]:{},r=n.index,i=void 0===r?qi.index:r;function o(){var e=Object.keys(t);return Cr.every((function(n){return j(e,n)&&!j([void 0,null],t[n])}))}function a(e){return"Invalid bid from ".concat(t.bidderCode,". Ignoring bid: ").concat(e)}if(!e)return Me("No adUnitCode was supplied to addBidResponse."),!1;if(!t)return Me("Some adapter tried to add an undefined bid for ".concat(e,".")),!1;if(!o())return Le(a("Bidder ".concat(t.bidderCode," is missing required params. Check http://prebid.org/dev-docs/bidder-adapter-1.html for list of params."))),!1;if("native"===t.mediaType&&!ro(t,{index:i}))return Le(a("Native bid missing some required properties.")),!1;if("video"===t.mediaType&&!Xn(t,{index:i}))return Le(a("Video bid does not have required vastUrl or renderer property")),!1;if("banner"===t.mediaType&&!_r(e,t,{index:i}))return Le(a("Banner bids require a width and height")),!1;return!0}(e,t)}))?i(e,t):i.reject(e,t,F.Gw.UI)}function g(){o(),J.runWithBidder(e.code,(function(){Zt(F.FP.BIDDER_DONE,r),t(d,r.gdprConsent,r.uspConsent,r.gppConsent)}))}}});function t(t,n,r,i){Br(e,t,n,r,i)}function n(t){return!!e.isBidRequestValid(t)||(Me("Invalid bid sent to bidder ".concat(e.code,": ").concat(JSON.stringify(t))),!1)}}var jr=hn("sync",(function(e,t,n,r,i,o){var a=o.onRequest,c=o.onResponse,u=o.onFledgeAuctionConfigs,s=o.onError,d=o.onBid,l=o.onCompletion,f=Ur(n);l=f.startTiming("total").stopBefore(l);var p=f.measureTime("buildRequests",(function(){return e.buildRequests(t,n)}));if(p&&0!==p.length){Array.isArray(p)||(p=[p]);var g=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)}}(l,p.length);p.forEach((function(t){var n=f.fork();function o(e){null!=e&&(e.metrics=n.fork().renameWith()),d(e)}var l=i((function(r,i){v();try{r=JSON.parse(r)}catch(e){}r={body:r,headers:{get:i.getResponseHeader.bind(i)}},c(r);try{r=n.measureTime("interpretResponse",(function(){return e.interpretResponse(r,t)}))}catch(t){return Le("Bidder ".concat(e.code," failed to interpret the server's response. Continuing without bids"),null,t),void g()}var a;r&&Ye(r.fledgeAuctionConfigs)?(u(r.fledgeAuctionConfigs),a=r.bids):a=r,a&&(Ye(a)?a.forEach(o):o(a)),g()})),p=i((function(e,t){v(),s(e,t),g()}));a(t);var v=n.startTiming("net");switch(t.method){case"GET":r("".concat(t.url).concat(function(e){if(e)return"?".concat("object"===S(e)?function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+"="+encodeURIComponent(e[n])+"&");return t.replace(/&$/,"")}(e):e);return""}(t.data)),{success:l,error:p},void 0,Object.assign({method:"GET",withCredentials:!0},t.options));break;case"POST":r(t.url,{success:l,error:p},"string"==typeof t.data?t.data:JSON.stringify(t.data),Object.assign({method:"POST",contentType:"text/plain",withCredentials:!0},t.options));break;default:Me("Skipping invalid request from ".concat(e.code,". Request type ").concat(t.type," must be GET or POST")),g()}}))}else l()}),"processBidderRequests"),Br=hn("async",(function(e,t,n,r,i){var o=J.getConfig("userSync.aliasSyncEnabled");if(e.getUserSyncs&&(o||!si.aliasRegistry[e.code])){var a=J.getConfig("userSync.filterSettings"),c=e.getUserSyncs({iframeEnabled:!(!a||!a.iframe&&!a.all),pixelEnabled:!(!a||!a.image&&!a.all)},t,n,r,i);c&&(Array.isArray(c)||(c=[c]),c.forEach((function(t){Qn.registerSync(t.type,e.code,t.url)})))}}),"registerSyncs"),xr=hn("sync",(function(e,t){Ne("bidderFactory.addComponentAuction",t)}),"addComponentAuction");function _r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.index,i=void 0===r?qi.index:r;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),!0;var o=i.getBidRequest(t),a=i.getMediaTypes(t),c=o&&o.sizes||a&&a.banner&&a.banner.sizes,u=xe(c);if(1===u.length){var s=u[0].split("x"),d=I(s,2),l=d[0],f=d[1];return t.width=parseInt(l,10),t.height=parseInt(f,10),!0}return!1}function Ur(e){return Tr(e.metrics).renameWith((function(t){return["adapter.client.".concat(t),"adapters.client.".concat(e.bidderCode,".").concat(t)]}))}yn("checkAdUnitSetup").before((function(e,t){if(!J.getConfig("adpod.brandCategoryExclusion"))return e.call(this,t);t.filter((function(e){return L(e,"mediaTypes.video.context")===nr})).map((function(e){return e.bids.map((function(e){return e.bidder}))})).reduce(lt,[]).filter(dt).forEach((function(e){var t=si.getBidAdapter(e);if(t.getSpec().getMappingFileInfo){var n=t.getSpec().getMappingFileInfo(),r=n.refreshInDays?n.refreshInDays:1,i=n.localStorageKey?n.localStorageKey:t.getSpec().code,o=Ar.getDataFromLocalStorage(i);try{(!(o=o?JSON.parse(o):void 0)||St()>o.lastUpdated+24*r*60*60*1e3)&&en(n.url,{success:function(t){try{t=JSON.parse(t);var n={lastUpdated:St(),mapping:t.mapping};Ar.setDataInLocalStorage(i,JSON.stringify(n))}catch(t){Le("Failed to parse ".concat(e," bidder translation mapping file"))}},error:function(){Le("Failed to load ".concat(e," bidder translation file"))}})}catch(t){Le("Failed to parse ".concat(e," bidder translation mapping file"))}}})),e.call(this,t)}));var Rr={};function Pr(e,t,n){var r=function(e,t){var n=Rr[e]=Rr[e]||{bidders:{}};return t?n.bidders[t]=n.bidders[t]||{}:n}(e,n);return r[t]=(r[t]||0)+1,r[t]}var Dr={incrementRequestsCounter:function(e){return Pr(e,"requestsCounter")},incrementBidderRequestsCounter:function(e,t){return Pr(e,"requestsCounter",t)},incrementBidderWinsCounter:function(e,t){return Pr(e,"winsCounter",t)},getRequestsCounter:function(e){return L(Rr,"".concat(e,".requestsCounter"))||0},getBidderRequestsCounter:function(e,t){return L(Rr,"".concat(e,".bidders.").concat(t,".requestsCounter"))||0},getBidderWinsCounter:function(e,t){return L(Rr,"".concat(e,".bidders.").concat(t,".winsCounter"))||0}};function qr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;if(!e)return e;if(/\w+:\/\//.exec(e))return e;var n=t.location.protocol;try{n=t.top.location.protocol}catch(e){}return/^\/\//.exec(e)?n+e:"".concat(n,"//").concat(e)}function Nr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.noLeadingWww,r=void 0!==n&&n,i=t.noPort,o=void 0!==i&&i;try{e=new URL(qr(e))}catch(e){return}return e=o?e.hostname:e.host,r&&e.startsWith("www.")&&(e=e.substring(4)),e}var Mr=function(e){function t(e){try{var t=e.querySelector("link[rel='canonical']");if(null!==t)return t.href}catch(e){}return null}return function(){var n,r,i,o,a=[],c=function(e){try{if(!e.location.ancestorOrigins)return;return e.location.ancestorOrigins}catch(e){}}(e),u=J.getConfig("maxNestedIframes"),s=!1,d=0,l=!1,f=!1,p=!1;do{var g=n,v=f,h=void 0,m=!1,y=null;f=!1,n=n?n.parent:e;try{h=n.location.href||null}catch(e){m=!0}if(m)if(v){var b=g.context;try{r=y=b.sourceUrl,p=!0,l=!0,n===e.top&&(s=!0),b.canonicalUrl&&(i=b.canonicalUrl)}catch(e){}}else{Me("Trying to access cross domain iframe. Continuing without referrer and location");try{var w=g.document.referrer;w&&(y=w,n===e.top&&(s=!0))}catch(e){}!y&&c&&c[d-1]&&(y=c[d-1],n===e.top&&(p=!0)),y&&!l&&(r=y)}else{if(h&&(r=y=h,l=!1,n===e.top)){s=!0;var T=t(n.document);T&&(i=T)}n.context&&n.context.sourceUrl&&(f=!0)}a.push(y),d++}while(n!==e.top&&d-1&&-1===S.indexOf("?")&&(S="".concat(S).concat(E.substring(E.indexOf("?")))),{reachedTop:s,isAmp:l,numIframes:d-1,stack:a,topmostLocation:r||null,location:E,canonicalUrl:I,page:S,domain:Nr(S)||null,ref:o||null,legacy:{reachedTop:s,isAmp:l,numIframes:d-1,stack:a,referer:r||null,canonicalUrl:I}}}}(window);function Lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getS2SBidders,i=void 0===r?ri:r;if(null==t)return e;var o=i(t);return e.filter((function(e){return o.has(e.bidder)}))}),"filterBidsForAdUnit");function Xr(e,t){var n=wt(e),r=!1;return n.forEach((function(e){var n=e.bids.filter((function(e){var n;return"pbsBidAdapter"===e.module&&(null===(n=e.params)||void 0===n?void 0:n.configName)===t.configName}));1===n.length?(e.s2sBid=n[0],r=!0,e.ortb2Imp=Lt({},e.s2sBid.ortb2Imp,e.ortb2Imp)):n.length>1&&Me('Multiple "module" bids for the same s2s configuration; all will be ignored',n),e.bids=Jr(e.bids,t).map((function(e){return e.bid_id=Oe(),e}))})),{adUnits:n=n.filter((function(e){return 0!==e.bids.length||null!=e.s2sBid})),hasModuleBids:r}}function $r(e){var t=wt(e);return t.forEach((function(e){e.bids=Jr(e.bids,null)})),t=t.filter((function(e){return 0!==e.bids.length}))}var Zr=new Fn,ei=new Ln,ti=new zn,ni=hn("sync",(function(e,t){return function(e,t){return e.reduce((function(e,n){var r=or(ir(n,t),n.mediaTypes,n.sizes),i=r.active,o=r.mediaTypes,a=r.filterResults;return i?(a&&Ne('Size mapping filtered adUnit "'.concat(n.code,'" banner sizes from '),a.before,"to ",a.after),n.mediaTypes=o,n.bids=n.bids.reduce((function(e,r){var i=or(ir(r,t),n.mediaTypes),o=i.active,a=i.mediaTypes,c=i.filterResults;return o?(c&&(Ne('Size mapping filtered adUnit "'.concat(n.code,'" bidder "').concat(r.bidder,'" banner sizes from '),c.before,"to ",c.after),r.mediaTypes=a),e.push(r)):Ne('Size mapping deactivated adUnit "'.concat(n.code,'" bidder "').concat(r.bidder,'"')),e}),[]),e.push(n)):Ne('Size mapping disabled adUnit "'.concat(n.code,'"')),e}),[])}(e,t)}),"setupAdUnitMediaTypes");function ri(e){Ye(e)||(e=[e]);var t=new Set([null]);return e.filter((function(e){return e&&e.enabled})).flatMap((function(e){return e.bidders})).forEach((function(e){return t.add(e)})),t}var ii=hn("sync",(function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.getS2SBidders,o=void 0===i?ri:i,a=o(t);return pt(e).reduce((function(e,t){return e[a.has(t)?Gr:zr].push(t),e}),(C(n={},zr,[]),C(n,Gr,[]),n))}),"partitionBidders");function oi(e,t){var n=Hr[e],r=(null==n?void 0:n.getSpec)&&n.getSpec();if(r&&r[t]&&"function"==typeof r[t])return[r,r[t]]}function ai(e,t,n,r){try{Ne("Invoking ".concat(e,".").concat(t));for(var i=arguments.length,o=new Array(i>4?i-4:0),a=4;a5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6?arguments[6]:void 0;a=Tr(a),Zt(F.FP.BEFORE_REQUEST_BIDS,e),to(e),e=ni(e,i);var c=ii(e,Kr),u=c[zr],s=c[Gr];J.getConfig("bidderSequence")===H&&(u=yt(u));var d=Mr(),l=[],f=o.global||{},p=o.bidder||{};function g(e){var t=Object.freeze(Lt({},f,p[e.bidderCode]));return e.ortb2=t,e.bids.forEach((function(e){return e.ortb2=t})),e}Kr.forEach((function(r){if(r&&r.enabled){var i=Xr(e,r),o=i.adUnits,c=i.hasModuleBids,u=ke();(0===s.length&&c?[null]:s).forEach((function(e){var i=Oe(),c=a.fork(),s=g({bidderCode:e,auctionId:n,bidderRequestId:i,uniquePbsTid:u,bids:Qr({bidderCode:e,auctionId:n,bidderRequestId:i,adUnits:wt(o),src:F.os.YZ,metrics:c}),auctionStart:t,timeout:r.timeout,src:F.os.YZ,refererInfo:d,metrics:c});0!==s.bids.length&&l.push(s)})),o.forEach((function(e){var t=e.bids.filter((function(e){return B(l,(function(t){return B(t.bids,(function(t){return t.bidId===e.bid_id}))}))}));e.bids=t})),l.forEach((function(e){void 0===e.adUnitsS2SCopy&&(e.adUnitsS2SCopy=o.filter((function(e){return e.bids.length>0||null!=e.s2sBid})))}))}}));var v=$r(e);return u.forEach((function(e){var o=Oe(),c=a.fork(),u=g({bidderCode:e,auctionId:n,bidderRequestId:o,bids:Qr({bidderCode:e,auctionId:n,bidderRequestId:o,adUnits:wt(v),labels:i,src:"client",metrics:c}),auctionStart:t,timeout:r,refererInfo:d,metrics:c}),s=Hr[e];s||Le("Trying to make a request for bidder that does not exist: ".concat(e)),s&&u.bids&&0!==u.bids.length&&l.push(u)})),l.forEach((function(e){Zr.getConsentData()&&(e.gdprConsent=Zr.getConsentData()),ei.getConsentData()&&(e.uspConsent=ei.getConsentData()),ti.getConsentData()&&(e.gppConsent=ti.getConsentData())})),l.forEach((function(e){J.runWithBidder(e.bidderCode,(function(){var t=J.getConfig("fledgeEnabled");e.fledgeEnabled=navigator.runAdAuction&&t}))})),l}),"makeBidRequests"),Wr.callBids=function(e,t,n,r,i,o,a){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};if(t.length){var u=t.reduce((function(e,t){return e[Number(void 0!==t.src&&t.src===F.os.YZ)].push(t),e}),[[],[]]),s=I(u,2),d=s[0],l=s[1],f=[];l.forEach((function(e){for(var t=-1,n=0;n0?m.join(", "):'No bidder specified, using "ortb2Imp" definition(s) only')),g.forEach((function(e){Zt(F.FP.BID_REQUESTED,Fr(Fr({},e),{},{tid:e.auctionId}))})),u.callBids(v,l,n,(function(){return h.forEach((function(e){return e()}))}),t)}}else Le("missing "+e.adapter);p++}})),d.forEach((function(e){e.start=St();var t=Hr[e.bidderCode];J.runWithBidder(e.bidderCode,(function(){qe("CALLING BIDDER"),Zt(F.FP.BID_REQUESTED,e)}));var c=tn(o,i?{request:i.request.bind(null,e.bidderCode),done:i.done}:void 0),u=r.bind(e);try{J.runWithBidder(e.bidderCode,Ae.call(t.callBids,t,e,n,u,c,a,J.callbackWithBidder(e.bidderCode)))}catch(t){Le("".concat(e.bidderCode," Bid Adapter emitted an uncaught error when parsing their bidRequest"),{e:t,bidRequest:e}),u()}}))}else Me("callBids executed with no bidRequests. Were they filtered by labels or sizing?")},Wr.videoAdapters=[],Wr.registerBidAdapter=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.supportedMediaTypes,i=void 0===r?[]:r;e&&t?"function"==typeof e.callBids?(Hr[t]=e,j(i,"video")&&Wr.videoAdapters.push(t),j(i,"native")&&zi.push(t)):Le("Bidder adaptor error for bidder code: "+t+"bidder must implement a callBids() function"):Le("bidAdapter or bidderCode not specified")},Wr.aliasBidAdapter=function(e,t,n){if(void 0===Hr[t]){var r=Hr[e];if(void 0===r){var i=[];Kr.forEach((function(n){if(n.bidders&&n.bidders.length){var r=n&&n.bidders;n&&j(r,t)?Vr[t]=e:i.push(e)}})),i.forEach((function(e){Le('bidderCode "'+e+'" is not an existing bidder.',"adapterManager.aliasBidAdapter")}))}else try{var o,a=function(e){var t=[];return j(Wr.videoAdapters,e)&&t.push("video"),j(zi,e)&&t.push("native"),t}(e);if(r.constructor.prototype!=Object.prototype)(o=new r.constructor).setBidderCode(t);else{var c=r.getSpec(),u=n&&n.gvlid,s=n&&n.skipPbsAliasing;o=kr(Object.assign({},c,{code:t,gvlid:u,skipPbsAliasing:s})),Vr[t]=e}Wr.registerBidAdapter(o,t,{supportedMediaTypes:a})}catch(t){Le(e+" bidder does not currently support aliasing.","adapterManager.aliasBidAdapter")}}else qe('alias name "'+t+'" has been already specified.')},Wr.registerAnalyticsAdapter=function(e){var t=e.adapter,n=e.code,r=e.gvlid;t&&n?"function"==typeof t.enableAnalytics?(t.code=n,Yr[n]={adapter:t,gvlid:r}):Le('Prebid Error: Analytics adaptor error for analytics "'.concat(n,'"\n analytics adapter must implement an enableAnalytics() function')):Le("Prebid Error: analyticsAdapter or analyticsCode not specified")},Wr.enableAnalytics=function(e){Ye(e)||(e=[e]),et(e,(function(e){var t=Yr[e.provider];t&&t.adapter?t.adapter.enableAnalytics(e):Le("Prebid Error: no analytics adapter found in registry for '".concat(e.provider,"'."))}))},Wr.getBidAdapter=function(e){return Hr[e]},Wr.getAnalyticsAdapter=function(e){return Yr[e]},Wr.callTimedOutBidders=function(e,t,n){t=Ot(t=t.map((function(t){return t.params=jt(e,t.adUnitCode,t.bidder),t.timeout=n,t})),"bidder"),Object.keys(t).forEach((function(e){ci(e,"onTimeout",t[e])}))},Wr.callBidWonBidder=function(e,t,n){t.params=jt(n,t.adUnitCode,t.bidder),Dr.incrementBidderWinsCounter(t.adUnitCode,t.bidder),ci(e,"onBidWon",t)},Wr.callSetTargetingBidder=function(e,t){ci(e,"onSetTargeting",t)},Wr.callBidViewableBidder=function(e,t){ci(e,"onBidViewable",t)},Wr.callBidderError=function(e,t,n){ci(e,"onBidderError",{error:t,bidderRequest:n})},Wr.callDataDeletionRequest=hn("sync",(function(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=i.index,a=void 0===o?qi.index:o,c=i.bs,u=void 0===c?In:c;n=n||a.getBidRequest(t);var s=u.get((null==t?void 0:t.bidderCode)||(null===(r=n)||void 0===r?void 0:r.bidder),"bidCpmAdjustment");if(s&&"function"==typeof s)try{return s(e,Object.assign({},t),n)}catch(e){Le("Error during bid adjustment",e)}return e}(e.cpm,e);t>=0&&(e.cpm=t)}(e)}));var fi={},pi={},gi=[];function vi(e){var t=e.adUnits,n=e.adUnitCodes,r=e.callback,i=e.cbTimeout,o=e.labels,a=e.auctionId,c=e.ortb2Fragments,u=e.metrics;u=Tr(u);var s,d,l,f,p=t,g=o,v=n,h=a||ke(),m=i,y=new Set,b=[],w=r,T=[],E=[],A=[],C=[],O=[];function k(){return{auctionId:h,timestamp:s,auctionEnd:d,auctionStatus:f,adUnits:p,adUnitCodes:v,labels:g,bidderRequests:T,noBids:A,bidsReceived:E,bidsRejected:b,winningBids:C,timeout:m,metrics:u,seatNonBids:O}}function B(e,n){if(n&&clearTimeout(l),void 0===d){var r=[];e&&(qe("Auction ".concat(h," timedOut")),i=y,(r=T.map((function(e){return(e.bids||[]).filter((function(e){return!i.has(e.bidder)}))})).reduce(lt,[])).length&&Zt(F.FP.BID_TIMEOUT,r)),f=li,d=Date.now(),u.checkpoint("auctionEnd"),u.timeBetween("requestBids","auctionEnd","requestBids.total"),u.timeBetween("callBids","auctionEnd","requestBids.callBids"),Zt(F.FP.AUCTION_END,k()),yi(p,(function(){try{if(null!=w){var n=v,i=E.filter(Ae.call(bt,this,n)).reduce(Pi,{});w.apply(btpbjs,[i,e,h]),w=null}}catch(e){Le("Error executing bidsBackHandler",null,e)}finally{r.length&&si.callTimedOutBidders(t,r,m);var o=J.getConfig("userSync")||{};o.enableOverride||di(o.syncDelay)}}))}var i}function x(){J.resetBidder(),Ne("Bids Received for Auction with id: ".concat(h),E),f=li,B(!1,!0)}function _(e){y.add(e)}function U(e){var t=this;e.forEach((function(e){var t;t=e,T=T.concat(t)}));var n={},r={bidRequests:e,run:function(){var r,a;r=B.bind(null,!0),a=setTimeout(r,m),l=a,f="inProgress",Zt(F.FP.AUCTION_INIT,k());var u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.index,i=void 0===r?qi.index:r,o=0,a=!1,c=new Set,u={},s={};function d(e,t){null==s[e]&&(s[e]=le.resolve()),s[e]=s[e].then((function(){return le.resolve(t).catch((function(){}))}))}function l(e,n){var r=e.timeout;(null==r||r>t.getTimeout())&&(r=t.getTimeout());var i=t.getAuctionStart()+r-Date.now(),o=s[e.bidderRequestId],a=s[""];(null!=o||null!=a)&&i>0?le.race([le.timeout(i),le.resolve(a).then((function(){return o}))]).then(n):n()}function f(){o--,a&&0===o&&e()}function p(e,t,n){return u[t.requestId]=!0,ki(t,e),o++,n(f)}function g(e,n){p(e,n,(function(e){var r=ji(n);r.mediaType===er?Ti(t,r,e):(null!=r.native&&"object"===S(r.native)&&Si(r),wi(t,r),e())}))}function v(e,n,r){return p(e,n,(function(e){var i,o=sr(F.Q_.H,null===(i=n.getIdentifiers)||void 0===i?void 0:i.call(n));return Object.assign(o,Object.fromEntries(Object.entries(n).filter((function(e){var t=I(e,1)[0];return!o.hasOwnProperty(t)&&!["ad","adUrl","vastXml","vastUrl","native"].includes(t)})))),o.status=F.UE.G9,o.cpm=0,n.rejectionReason=r,Me("Bid from ".concat(n.bidder||"unknown bidder"," was rejected: ").concat(r),n),Zt(F.FP.BID_REJECTED,n),t.addBidRejected(n),e(),o}))}function h(){var n=this,r=t.getBidRequests(),i=J.getConfig("auctionOptions");if(c.add(n),i&&!$e(i)){var s=i.secondaryBidders;s&&!r.every((function(e){return j(s,e.bidderCode)}))&&(r=r.filter((function(e){return!j(s,e.bidderCode)})))}a=r.every((function(e){return c.has(e)})),n.bids.forEach((function(e){u[e.bidId]||(t.addNoBid(e),Zt(F.FP.NO_BID,e))})),a&&0===o&&e()}return{addBidResponse:function(){function e(e,t){var n,r=i.getBidderRequest(t);d(r&&r.bidderRequestId||"",hi.call({dispatch:g},e,t,(function(r){return null==n&&(n=v(e,t,r)),n})))}return e.reject=v,e}(),adapterDone:function(){l(this,h.bind(this))}}}(x,t);si.callBids(p,e,u.addBidResponse,u.adapterDone,{request:function(e,t){o(fi,t),o(n,e),pi[e]||(pi[e]={SRA:!0,origin:t}),n[e]>1&&(pi[e].SRA=!1)},done:function(e){fi[e]--,gi[0]&&i(gi[0])&&gi.shift()}},m,_,c)}};function i(e){var t=!0,n=J.getConfig("maxRequestsPerOrigin")||4;return e.bidRequests.some((function(e){var r=1,i=void 0!==e.src&&e.src===F.os.YZ?"s2s":e.bidderCode;return pi[i]&&(!1===pi[i].SRA&&(r=Math.min(e.bids.length,n)),fi[pi[i].origin]+r>n&&(t=!1)),!t})),t&&e.run(),t}function o(e,t){void 0===e[t]?e[t]=1:e[t]++}i(r)||(Me("queueing auction due to limited endpoint capacity"),gi.push(r))}return Jt(F.FP.SEAT_NON_BID,(function(e){var t;e.auctionId===h&&(t=e.seatnonbid,O=O.concat(t))})),{addBidReceived:function(e){E=E.concat(e)},addBidRejected:function(e){b=b.concat(e)},addNoBid:function(e){A=A.concat(e)},executeCallback:B,callBids:function(){f="started",s=Date.now();var e=u.measureTime("requestBids.makeRequests",(function(){return si.makeBidRequests(p,s,h,m,g,c,u)}));Ne("Bids Requested for Auction with id: ".concat(h),e),u.checkpoint("callBids"),e.length<1?(Me("No valid bid requests returned for auction"),x()):mi.call({dispatch:U,context:this},e)},addWinningBid:function(e){C=C.concat(e),si.callBidWonBidder(e.adapterCode||e.bidder,e,t)},setBidTargeting:function(e){si.callSetTargetingBidder(e.adapterCode||e.bidder,e)},getWinningBids:function(){return C},getAuctionStart:function(){return s},getTimeout:function(){return m},getAuctionId:function(){return h},getAuctionStatus:function(){return f},getAdUnits:function(){return p},getAdUnitCodes:function(){return v},getBidRequests:function(){return T},getBidsReceived:function(){return E},getNoBids:function(){return A},getNonBids:function(){return O},getFPD:function(){return c},getMetrics:function(){return u}}}var hi=hn("sync",(function(e,t,n){this.dispatch.call(null,e,t)}),"addBidResponse"),mi=hn("sync",(function(e){this.dispatch.call(this.context,e)}),"addBidderRequests"),yi=hn("async",(function(e,t){t&&t()}),"bidsBackCallback");function bi(e,t){t.timeToRespond>e.getTimeout()+J.getConfig("timeoutBuffer")&&e.executeCallback(!0)}function wi(e,t){!function(e){var t,n=!0===In.get(e.bidderCode,"allowZeroCpmBids")?e.cpm>=0:e.cpm>0;e.bidderCode&&(n||e.dealId)&&(t=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.index,i=void 0===r?qi.index:r;if(!t)return{};var o=i.getBidRequest(t),a={},c=Ui(t.mediaType,e);Ri(a,c,t,o),e&&In.getOwn(e,F.k2.xn)&&(Ri(a,In.ownSettingsFor(e),t,o),t.sendStandardTargeting=In.get(e,"sendStandardTargeting"));t.native&&(a=Object.assign({},a,ao(t)));return a}(e.bidderCode,e));e.adserverTargeting=Object.assign(e.adserverTargeting||{},t)}(t),Tr(t.metrics).timeSince("addBidResponse","addBidResponse.total"),Zt(F.FP.BID_RESPONSE,t),e.addBidReceived(t),bi(e,t)}function Ti(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.index,o=void 0===i?qi.index:i,a=!0,c=L(o.getMediaTypes({requestId:t.originalRequestId||t.requestId,transactionId:t.transactionId}),"video"),u=c&&L(c,"context"),s=c&&L(c,"useCacheKey");J.getConfig("cache.url")&&(s||u!==Jn)&&(!t.videoCacheKey||J.getConfig("cache.ignoreBidderCacheKey")?(a=!1,Oi(e,t,n,c)):t.vastUrl||(Le("videoCacheKey specified but not required vastUrl for video bid"),a=!1)),a&&(wi(e,t),n())}var Ei,Ii,Si=function(e){var t,n,r=null===(t=qi.index.getAdUnit(e))||void 0===t?void 0:t.nativeOrtbRequest,i=null===(n=e.native)||void 0===n?void 0:n.ortb;if(r&&i){var o=function(e,t){var n={},r=(null==t?void 0:t.assets)||[];n.clickUrl=e.link.url,n.privacyLink=e.privacy;var i,o=Ni((null==e?void 0:e.assets)||[]);try{var a=function(){var e=i.value,t=r.find((function(t){return e.id===t.id}));e.title?n.title=e.title.text:e.img?n[t.img.type===Vi.MAIN?"image":"icon"]=e.img.url:e.data&&(n[Ji[Xi[t.data.type]]]=e.data.value)};for(o.s();!(i=o.n()).done;)a()}catch(e){o.e(e)}finally{o.f()}n.impressionTrackers=[];var c,u=[];null!=t&&t.imptrackers&&(c=n.impressionTrackers).push.apply(c,k(t.imptrackers));var s,d=Ni((null==e?void 0:e.eventtrackers)||[]);try{for(d.s();!(s=d.n()).done;){var l=s.value;l.event===Zi&&l.method===$i.img&&n.impressionTrackers.push(l.url),l.event===Zi&&l.method===$i.js&&u.push(l.url)}}catch(e){d.e(e)}finally{d.f()}u=u.map((function(e){return'