/**
 * Assertive Yield - Yield Manager script.
 * v3.7.14
 *
 * © 2018-2025 Assertive Yield B.V. All Rights Reserved.
 */
!function(){var e,t,n,r,i,o=function(e){return e.CLIENT="client",e.SERVER="server",e.HYBRID="hybrid",e}({}),a=function(e){return e.BANNER="banner",e.VIDEO_OUTSTREAM="video - outstream",e.VIDEO_INSTREAM="video - instream",e}({}),s=function(e){return e.EXPERIMENTS="experiments",e.CUSTOM_1="custom_1",e.CUSTOM_2="custom_2",e.CUSTOM_3="custom_3",e.CUSTOM_4="custom_4",e.CUSTOM_5="custom_5",e.CUSTOM_6="custom_6",e.CUSTOM_7="custom_7",e.CUSTOM_8="custom_8",e.CUSTOM_9="custom_9",e.CUSTOM_10="custom_10",e.CUSTOM_11="custom_11",e.CUSTOM_12="custom_12",e.CUSTOM_13="custom_13",e.CUSTOM_14="custom_14",e.CUSTOM_15="custom_15",e}({}),c=function(e){return e.LOCAL_STORAGE_ENTRY="LOCAL_STORAGE_ENTRY",e.COOKIE_VALUE="COOKIE_VALUE",e.JS_GLOBAL_VAR="JS_GLOBAL_VAR",e.JS_GLOBAL_FUNCTION="JS_GLOBAL_FUNCTION",e.JS_FUNCTION="JS_FUNCTION",e.URL_PARAMETER="URL_PARAMETER",e.SIMPLE_VALUE="SIMPLE_VALUE",e.VALUE_MAP="VALUE_MAP",e.SPLIT_TEST="SPLIT_TEST",e.URL="URL",e.URL_PATHNAME="URL_PATHNAME",e.DOMAIN="DOMAIN",e.WINDOW_WIDTH="WINDOW_WIDTH",e.WINDOW_HEIGHT="WINDOW_HEIGHT",e.IS_MOBILE="IS_MOBILE",e.UTM_SOURCE="UTM_SOURCE",e.UTM_MEDIUM="UTM_MEDIUM",e.UTM_CAMPAIGN="UTM_CAMPAIGN",e.UTM_TERM="UTM_TERM",e.UTM_CONTENT="UTM_CONTENT",e.DEPLOYMENT_ID="DEPLOYMENT_ID",e.VERSION_ID="VERSION_ID",e.DEPLOYMENT_PERCENTAGE="DEPLOYMENT_PERCENTAGE",e.COUNTRY="COUNTRY",e.IS_EU_COUNTRY="IS_EU_COUNTRY",e.IS_EEA_OR_UK="IS_EEA_OR_UK",e.CITY="CITY",e.CONTINENT="CONTINENT",e.LATITUDE="LATITUDE",e.LONGITUDE="LONGITUDE",e.POSTAL_CODE="POSTAL_CODE",e.REGION="REGION",e.REGION_CODE="REGION_CODE",e.TIMEZONE="TIMEZONE",e}({}),u=function(e){return e.AND="AND",e.OR="OR",e}({}),d=function(e){return e.EQ="equal",e.NE="not equal",e.ONE_OF="one of",e.NOT_ONE_OF="not one of",e.LT="less than",e.LE="less than or equal",e.GT="greater than",e.GE="greater than or equal",e.CONTAINS="contains",e.STARTS_WITH="starts with",e.ENDS_WITH="ends with",e.REGEX="regex",e.DOESNT_CONTAIN="does not contain",e.DOESNT_STARTS_WITH="does not start with",e.DOESNT_ENDS_WITH="does not end with",e.NOT_REGEX="not regex",e}({}),l=function(e){return e.SCRIPT_LOADED="Script Loaded",e.WINDOW_READY="Window Ready",e.WINDOW_LOADED="Window Loaded",e.CONSENT_INITIALIZATION="Consent Initialization",e.MANUAL_EVENT="Manual event",e}({}),f=function(e){return e.BIDDER="BIDDER",e.ADVERTISER="ADVERTISER",e.ORDER="ORDER",e.SIZE="SIZE",e.LINE_ITEM="LINE_ITEM",e.LINE_ITEM_TYPE="LINE_ITEM_TYPE",e}({}),p=function(e){return e.MANUAL="manual",e.INCREMENTAL="history",e.REFRESH="REFRESH",e.RESET="RESET",e}({}),g="ayManagerEnv",v=window[g],h=null!==(e=v.settings.prebidSettings.prebidScript.windowName)&&void 0!==e?e:"pbjs";v.cmd=null!==(i=v.cmd)&&void 0!==i?i:[],window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window[h]=window[h]||{},window[h].que=window[h].que||[],window.assertiveQueue=window.assertiveQueue||[];var m,E,b,y,w=null!==(t=v.settings.yieldScriptSettings.yieldScriptMode)&&void 0!==t?t:"PREBID",I=-1!==navigator.userAgent.indexOf("MSIE")||-1!==navigator.userAgent.indexOf("Trident/"),S="APS"===w||"BOTH"===w,T=!I&&("PREBID"===w||"BOTH"===w),_=null!==(n=null===(r=v.debug)||void 0===r?void 0:r.flags)&&void 0!==n?n:[],O=_.includes("all"),A=!!_.length,U=_.includes("no_refresh")||O,R=_.includes("highlight")||O,N=["advertiserIds","orderIds","lineItemTypes"].some(function(e){var t=v.settings.yieldScriptSettings.refreshLimits[e],n=t.include,r=t.exclude;return n.length>0||r.length>0}),C=v.settings.yieldScriptSettings.refreshLimits.lineItemTypes.include.length>0||v.settings.yieldScriptSettings.refreshLimits.lineItemTypes.exclude.length>0||Object.values(v.settings.definitions.refreshControls).some(function(e){return e.rules.some(function(e){return e.type===f.LINE_ITEM_TYPE})}),x=new RegExp("(?:\\.".concat(/\w(?:[\w ]*\w)?/.source,")*")),P=new RegExp("(\\{\\{ *)"+"(".concat(/\w+/.source,")")+"(".concat(x.source,")")+"( *\\}\\})"),L=/\w(?:[\w ]*\w)?/,D=new RegExp("(".concat(L.source,")(?:\\.").concat(L.source,")*")),M=new RegExp("(\\[\\[ *)"+"(".concat(D.source,")")+"( *\\]\\])"),j=function(e){return e.ERROR="error",e.BEFORE_PAGE_CHANGE="beforePageChange",e.AFTER_PAGE_CHANGE="afterPageChange",e.FAILSAFE_TIMEOUT_CHANGED="failSafeTimeoutChanged",e.BEFORE_DEFINE_SLOT="beforeDefineSlot",e.AFTER_DEFINE_SLOT="afterDefineSlot",e.BEFORE_REFRESH="beforeRefresh",e.AFTER_REFRESH="afterRefresh",e.APS_BEFORE_INIT="beforeApsInit",e.APS_AFTER_INIT="afterApsInit",e.APS_BEFORE_FETCH_BIDS="apsBeforeFetchBids",e.PREBID_BEFORE_FETCH_BIDS="prebidBeforeFetchBids",e.BEFORE_DEFINE_AD_UNIT_PATH="beforeDefineAdUnitPath",e.BEFORE_DEFINE_INSTANCE_SIZES="beforeDefineInstanceSizes",e.INSTANCE_STATE_CHANGED="instanceStateChanged",e.VARIABLE_EVAL="variableEval",e.STATE_EXCEPTION="stateException",e.URL_CHANGE="urlChange",e.MODULE_INIT_AUCTIONS="moduleInitAuctions",e.MODULE_INIT_LIFE_CYCLE="moduleInitLifeCycle",e.MODULE_INIT_ALL="moduleInitAll",e.TRIGGER_EVENT_FIRED="triggerEventFired",e}({}),k=function(e){return e.DESTROY_FAR_UNITS="DESTROY_FAR_UNITS",e.PLACEMENT_QUERY_NO_ELEMENTS="PLACEMENT_QUERY_NO_ELEMENTS",e.CONTAINER_NOT_IN_THE_DOM="CONTAINER_NOT_IN_THE_DOM",e.PLACEHOLDER_NOT_IN_THE_DOM="PLACEHOLDER_NOT_IN_THE_DOM",e.PLACEMENT_CONDITIONS_NOT_MET="PLACEMENT_CONDITIONS_NOT_MET",e.AD_UNIT_CONDITIONS_NOT_MET="AD_UNIT_CONDITIONS_NOT_MET",e.PLACEMENT_TRIGGER_CONDITIONS_NOT_MET="PLACEMENT_TRIGGER_CONDITIONS_NOT_MET",e.PAGE_CHANGE_RESET_MODE="PAGE_CHANGE_RESET_MODE",e.VISIBILITY="VISIBILITY",e.LAZY_LOAD="LAZY_LOAD",e.LAZY_RENDER="LAZY_RENDER",e}({}),z=function(e){return e.REMOVE="REMOVE",e.RESET="RESET",e.SUSPEND="SUSPEND",e.IGNORE="IGNORE",e}({}),F=function(e){return e.INJECT="INJECT",e.FETCH_TRIGGER="FETCH_TRIGGER",e.RENDER_TRIGGER="RENDER_TRIGGER",e.REFRESH="REFRESH",e}({});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},B(e)}function H(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function G(e){return new this(function(t,n){if(!e||void 0===e.length)return n(new TypeError(B(e)+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,n){if(n&&("object"===B(n)||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,function(t){o(e,t)},function(n){r[e]={status:"rejected",reason:n},0===--i&&t(r)})}r[e]={status:"fulfilled",value:n},0===--i&&t(r)}for(var a=0;a<r.length;a++)o(a,r[a])})}function V(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}function W(e){var t=this;return new t(function(n,r){if(!e||void 0===e.length)return r(new TypeError("Promise.any accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return r();for(var o=[],a=0;a<i.length;a++)try{t.resolve(i[a]).then(n).catch(function(e){o.push(e),o.length===i.length&&r(new V(o,"All promises were rejected"))})}catch(e){r(e)}})}Array.prototype.find||(Array.prototype.find=function(e){if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=void 0,o=0;o<n;o++)if(i=t[o],e.call(r,i,o,t))return i}),Array.prototype.findIndex||Object.defineProperty(Array.prototype,"findIndex",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],i=0;i<n;){var o=t[i];if(e.call(r,o,i,t))return i;i++}return-1}}),Array.prototype.includes||(Array.prototype.includes=function(e){if(null==this)throw new TypeError("Array.prototype.includes called on null or undefined");var t=Object(this),n=parseInt(t.length,10)||0;if(0===n)return!1;var r,i,o=parseInt(arguments[1],10)||0;for(0<=o?r=o:(r=n+o)<0&&(r=0);r<n;){if(e===(i=t[r])||e!=e&&i!=i)return!0;r++}return!1}),Array.from||(Array.from=(m=Object.prototype.toString,E=function(e){return"function"==typeof e||"[object Function]"===m.call(e)},b=Math.pow(2,53)-1,y=function(e){var t,n=(t=Number(e),isNaN(t)?0:0!==t&&isFinite(t)?(0<t?1:-1)*Math.floor(Math.abs(t)):t);return Math.min(Math.max(n,0),b)},function(e){var t=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,r=1<arguments.length?arguments[1]:void 0;if(void 0!==r){if(!E(r))throw new TypeError("Array.from: when provided, the second argument must be a function");2<arguments.length&&(n=arguments[2])}for(var i,o=y(t.length),a=E(this)?Object(new this(o)):new Array(o),s=0;s<o;)i=t[s],a[s]=r?void 0===n?r(i,s):r.call(n,i,s):i,s+=1;return a.length=o,a})),"function"!=typeof Object.entries&&(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r}),"function"!=typeof Object.values&&(Object.values=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r}),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){return t<this.length?t|=0:t=this.length,this.substr(t-e.length,e.length)===e}),String.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),V.prototype=Error.prototype;var q=setTimeout;function Y(e){return Boolean(e&&void 0!==e.length)}function J(){}function X(e){if(!(this instanceof X))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],te(e,this)}function Q(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,X._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void K(t.promise,e)}Z(t.promise,r)}else(1===e._state?Z:K)(t.promise,e._value)})):e._deferreds.push(t)}function Z(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===B(t)||"function"==typeof t)){var n=t.then;if(t instanceof X)return e._state=3,e._value=t,void $(e);if("function"==typeof n)return void te((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,$(e)}catch(t){K(e,t)}var r,i}function K(e,t){e._state=2,e._value=t,$(e)}function $(e){2===e._state&&0===e._deferreds.length&&X._immediateFn(function(){e._handled||X._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)Q(e,e._deferreds[t]);e._deferreds=null}function ee(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function te(e,t){var n=!1;try{e(function(e){n||(n=!0,Z(t,e))},function(e){n||(n=!0,K(t,e))})}catch(e){if(n)return;n=!0,K(t,e)}}X.prototype.catch=function(e){return this.then(null,e)},X.prototype.then=function(e,t){var n=new this.constructor(J);return Q(this,new ee(e,t,n)),n},X.prototype.finally=H,X.all=function(e){return new X(function(t,n){if(!Y(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,a){try{if(a&&("object"===B(a)||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){o(e,t)},n)}r[e]=a,0===--i&&t(r)}catch(e){n(e)}}for(var a=0;a<r.length;a++)o(a,r[a])})},X.any=W,X.allSettled=G,X.resolve=function(e){return e&&"object"===B(e)&&e.constructor===X?e:new X(function(t){t(e)})},X.reject=function(e){return new X(function(t,n){n(e)})},X.race=function(e){return new X(function(t,n){if(!Y(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=e.length;r<i;r++)X.resolve(e[r]).then(t,n)})},X._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){q(e,0)},X._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var ne=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();function re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function ie(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function oe(e,t){if(e){if("string"==typeof e)return re(e,t);var n={}.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)?re(e,t):void 0}}function ae(e){return function(e){if(Array.isArray(e))return re(e)}(e)||ie(e)||oe(e)||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.")}()}function se(e){if(Array.isArray(e))return e}function ce(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ue(e,t){return se(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],c=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||oe(e,t)||ce()}function de(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}function le(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){de(o,r,i,a,s,"next",e)}function s(e){de(o,r,i,a,s,"throw",e)}a(void 0)})}}function fe(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==B(t)?t:t+""}function pe(e,t,n){return(t=fe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}"function"!=typeof ne.Promise?ne.Promise=X:(ne.Promise.prototype.finally||(ne.Promise.prototype.finally=H),ne.Promise.allSettled||(ne.Promise.allSettled=G),ne.Promise.any||(ne.Promise.any=W));var ge,ve=Object.prototype,he=ve.hasOwnProperty,me="function"==typeof Symbol?Symbol:{},Ee=me.iterator||"@@iterator",be=me.asyncIterator||"@@asyncIterator",ye=me.toStringTag||"@@toStringTag";function we(e,t,n,r){var i=t&&t.prototype instanceof Ue?t:Ue,o=Object.create(i.prototype),a=new Be(r||[]);return o._invoke=function(e,t,n){var r=Se;return function(i,o){if(r===_e)throw new Error("Generator is already running");if(r===Oe){if("throw"===i)throw o;return Ge()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=ke(a,n);if(s){if(s===Ae)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===Se)throw r=Oe,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=_e;var c=Ie(e,t,n);if("normal"===c.type){if(r=n.done?Oe:Te,c.arg===Ae)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=Oe,n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function Ie(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}var Se="suspendedStart",Te="suspendedYield",_e="executing",Oe="completed",Ae={};function Ue(){}function Re(){}function Ne(){}var Ce={};Ce[Ee]=function(){return this};var xe=Object.getPrototypeOf,Pe=xe&&xe(xe(He([])));Pe&&Pe!==ve&&he.call(Pe,Ee)&&(Ce=Pe);var Le=Ne.prototype=Ue.prototype=Object.create(Ce);function De(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function Me(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===Re||"GeneratorFunction"===(t.displayName||t.name))}function je(e,t){function n(r,i,o,a){var s=Ie(e[r],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===B(u)&&he.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(u).then(function(e){c.value=e,o(c)},function(e){return n("throw",e,o,a)})}a(s.arg)}var r;this._invoke=function(e,i){function o(){return new t(function(t,r){n(e,i,t,r)})}return r=r?r.then(o,o):o()}}function ke(e,t){var n=e.iterator[t.method];if(n===ge){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=ge,ke(e,t),"throw"===t.method))return Ae;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ae}var r=Ie(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,Ae;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=ge),t.delegate=null,Ae):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,Ae)}function ze(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 Fe(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Be(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(ze,this),this.reset(!0)}function He(e){if(e){var t=e[Ee];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(he.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=ge,t.done=!0,t};return r.next=r}}return{next:Ge}}function Ge(){return{value:ge,done:!0}}Re.prototype=Le.constructor=Ne,Ne.constructor=Re,Ne[ye]=Re.displayName="GeneratorFunction",De(je.prototype),je.prototype[be]=function(){return this},De(Le),Le[ye]="Generator",Le[Ee]=function(){return this},Le.toString=function(){return"[object Generator]"},Be.prototype={constructor:Be,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=ge,this.done=!1,this.delegate=null,this.method="next",this.arg=ge,this.tryEntries.forEach(Fe),!e)for(var t in this)"t"===t.charAt(0)&&he.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=ge)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=ge),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=he.call(i,"catchLoc"),s=he.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&he.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,Ae):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),Ae},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),Fe(n),Ae}},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;Fe(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:He(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=ge),Ae}};var Ve={wrap:we,isGeneratorFunction:Me,AsyncIterator:je,mark:function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,Ne):(e.__proto__=Ne,ye in e||(e[ye]="GeneratorFunction")),e.prototype=Object.create(Le),e},awrap:function(e){return{__await:e}},async:function(e,t,n,r,i){void 0===i&&(i=Promise);var o=new je(we(e,t,n,r),i);return Me(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},keys:function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},values:He};var We="\n    background: linear-gradient(-152deg, #100124, #3e007c 75%);\n    border-radius: 3px;\n    color: white;\n    padding: 1px 5px;\n    font-size: .6rem;\n",qe={group:A?window.console.groupCollapsed.bind(window.console,"%cYM",We):function(){},groupEnd:A?window.console.groupEnd.bind(window.console):function(){},log:A?window.console.log.bind(window.console,"%cYM",We):function(){},logt:A?function(){for(var e,t=Date.now()-window[g].startTime,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];r.push(" - time:"),r.push(t),(e=window.console.log).call.apply(e,[window.console,"%cYM",We].concat(r))}:function(){},warn:A?window.console.warn.bind(window.console,"%cYM",We):function(){},error:window.console.error.bind(window.console,"%cYM",We),table:A?window.console[null!=console.table?"table":"log"].bind(window.console):function(){},func:A?function(e){return e()}:function(){}},Ye=Object.values(j),Je=Ye.reduce(function(e,t){return e[t]={que:[]},e},{}),Xe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Je[e];i.latestPayload=n,i.hasOccurred=!0,i.que.slice().forEach(function(t){try{t.apply(null,n)}catch(t){qe.error("Error while trying to execute the handler for the ".concat(e," event"),t)}})},Qe=function(e,t){if(Ye.includes(e)){var n=Je[e];if(n.hasOccurred){var r;qe.warn("Event '".concat(e,"' already happened. Will execute the handler with the latest payload received.")),t.apply(void 0,ae(null!==(r=n.latestPayload)&&void 0!==r?r:[]))}else{var i=function(){t.apply(void 0,arguments),Ke(e,i)};n.que.push(i)}}else qe.error("Invalid event name: '".concat(e,"'. Available event names: '").concat(Ye.join(", "),"'"))},Ze=function(e,t){var n=[j.APS_BEFORE_INIT,j.APS_AFTER_INIT,j.MODULE_INIT_AUCTIONS,j.MODULE_INIT_LIFE_CYCLE,j.MODULE_INIT_ALL],r=Ye.filter(function(e){return!n.includes(e)});r.includes(e)?Je[e].que.push(t):qe.error("Invalid event name: '".concat(e,"'. Available event names: ")+"'".concat(r.join(", "),". (For init events, use 'onceEvent' - e.g. beforeApsInit)'"))},Ke=function(e,t){if(Ye.includes(e)){var n=Je[e];if(0===n.que.length)return;n.que.slice().reverse().forEach(function(e,r,i){e===t&&n.que.splice(i.length-1-r,1)})}else qe.error("Invalid event name: '".concat(e,"'. Available event names: '").concat(Ye.join(", "),"'"))},$e=Object.freeze({__proto__:null,emit:Xe,once:Qe,on:Ze,off:Ke});function et(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=window[g].settings.versionInfo,i=null!=t?t:{},o=i.type,a=void 0===o?"yieldmanager":o,s=i.description,c=i.adUnitName,u=i.adUnitInstanceCode,d=i.htmlUnitName,l=i.htmlUnitInstanceName,f=i.adUnitCodes,p=[e,{type:a,description:s,managerVersionId:r.versionId,adUnitName:c,adUnitInstanceCode:u,htmlUnitName:d,htmlUnitInstanceName:l,adUnitCodes:f}];null!=window.assertiveQueue&&-2!==r.versionId&&window.assertiveQueue.push(function(){var e;(e=window.assertive).logError.apply(e,p.concat([{skipConsole:!0,source:"manager"}]))}),Xe.apply($e,[j.ERROR].concat(p)),n&&qe.error(s+"\n",e)}var tt="object"==("undefined"==typeof global?"undefined":B(global))&&global&&global.Object===Object&&global,nt="object"==("undefined"==typeof self?"undefined":B(self))&&self&&self.Object===Object&&self,rt=tt||nt||Function("return this")(),it=rt.Symbol,ot=Object.prototype,at=ot.hasOwnProperty,st=ot.toString,ct=it?it.toStringTag:void 0;var ut=Object.prototype.toString;var dt=it?it.toStringTag:void 0;function lt(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":dt&&dt in Object(e)?function(e){var t=at.call(e,ct),n=e[ct];try{e[ct]=void 0;var r=!0}catch(e){}var i=st.call(e);return r&&(t?e[ct]=n:delete e[ct]),i}(e):function(e){return ut.call(e)}(e)}function ft(e){return"symbol"==B(e)||function(e){return null!=e&&"object"==B(e)}(e)&&"[object Symbol]"==lt(e)}var pt=/\s/;var gt=/^\s+/;function vt(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&pt.test(e.charAt(t)););return t}(e)+1).replace(gt,""):e}function ht(e){var t=B(e);return null!=e&&("object"==t||"function"==t)}var mt=/^[-+]0x[0-9a-f]+$/i,Et=/^0b[01]+$/i,bt=/^0o[0-7]+$/i,yt=parseInt;function wt(e){if("number"==typeof e)return e;if(ft(e))return NaN;if(ht(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ht(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=vt(e);var n=Et.test(e);return n||bt.test(e)?yt(e.slice(2),n?2:8):mt.test(e)?NaN:+e}var It,St=rt["__core-js_shared__"],Tt=(It=/[^.]+$/.exec(St&&St.keys&&St.keys.IE_PROTO||""))?"Symbol(src)_1."+It:"";var _t=Function.prototype.toString;var Ot=/^\[object .+?Constructor\]$/,At=Function.prototype,Ut=Object.prototype,Rt=At.toString,Nt=Ut.hasOwnProperty,Ct=RegExp("^"+Rt.call(Nt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xt(e){if(!ht(e)||(t=e,Tt&&Tt in t))return!1;var t,n=function(e){if(!ht(e))return!1;var t=lt(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?Ct:Ot;return n.test(function(e){if(null!=e){try{return _t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function Pt(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return xt(n)?n:void 0}function Lt(e){return e!=e}function Dt(e,t){return!!(null==e?0:e.length)&&function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,Lt,n)}(e,t,0)>-1}function Mt(e,t){return e===t||e!=e&&t!=t}var jt=Pt(Object,"create");var kt=Object.prototype.hasOwnProperty;var zt=Object.prototype.hasOwnProperty;function Ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Bt(e,t){for(var n=e.length;n--;)if(Mt(e[n][0],t))return n;return-1}Ft.prototype.clear=function(){this.__data__=jt?jt(null):{},this.size=0},Ft.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ft.prototype.get=function(e){var t=this.__data__;if(jt){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return kt.call(t,e)?t[e]:void 0},Ft.prototype.has=function(e){var t=this.__data__;return jt?void 0!==t[e]:zt.call(t,e)},Ft.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=jt&&void 0===t?"__lodash_hash_undefined__":t,this};var Ht=Array.prototype.splice;function Gt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gt.prototype.clear=function(){this.__data__=[],this.size=0},Gt.prototype.delete=function(e){var t=this.__data__,n=Bt(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ht.call(t,n,1),--this.size,!0)},Gt.prototype.get=function(e){var t=this.__data__,n=Bt(t,e);return n<0?void 0:t[n][1]},Gt.prototype.has=function(e){return Bt(this.__data__,e)>-1},Gt.prototype.set=function(e,t){var n=this.__data__,r=Bt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var Vt=Pt(rt,"Map");function Wt(e,t){var n,r,i=e.__data__;return("string"==(r=B(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function qt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qt.prototype.clear=function(){this.size=0,this.__data__={hash:new Ft,map:new(Vt||Gt),string:new Ft}},qt.prototype.delete=function(e){var t=Wt(this,e).delete(e);return this.size-=t?1:0,t},qt.prototype.get=function(e){return Wt(this,e).get(e)},qt.prototype.has=function(e){return Wt(this,e).has(e)},qt.prototype.set=function(e,t){var n=Wt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var Yt=Pt(rt,"Set");function Jt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qt;++t<n;)this.add(e[t])}function Xt(e,t){return e.has(t)}function Qt(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}Jt.prototype.add=Jt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Jt.prototype.has=function(e){return this.__data__.has(e)};var Zt=function(){return rt.Date.now()},Kt=Math.max,$t=Math.min;function en(e,t,n){var r,i,o,a,s,c,u=0,d=!1,l=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function g(e){var n=e-c;return void 0===c||n>=t||n<0||l&&e-u>=o}function v(){var e=Zt();if(g(e))return h(e);s=setTimeout(v,function(e){var n=t-(e-c);return l?$t(n,o-(e-u)):n}(e))}function h(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function m(){var e=Zt(),n=g(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(v,t),d?p(e):a}(c);if(l)return clearTimeout(s),s=setTimeout(v,t),p(c)}return void 0===s&&(s=setTimeout(v,t)),a}return t=wt(t)||0,ht(n)&&(d=!!n.leading,o=(l="maxWait"in n)?Kt(wt(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),m.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=c=i=s=void 0},m.flush=function(){return void 0===s?a:h(Zt())},m}function tn(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var nn,rn=Yt&&1/Qt(new Yt([,-0]))[1]==1/0?function(e){return new Yt(e)}:function(){},on=rn;function an(e){return e&&e.length?function(e,t,n){var r=-1,i=Dt,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=tn;else if(o>=200){var u=t?null:on(e);if(u)return Qt(u);a=!1,i=Xt,c=new Jt}else c=t?[]:s;e:for(;++r<o;){var d=e[r],l=t?t(d):d;if(d=n||0!==d?d:0,a&&l==l){for(var f=c.length;f--;)if(c[f]===l)continue e;t&&c.push(l),s.push(d)}else i(c,l,n)||(c!==s&&c.push(l),s.push(d))}return s}(e):[]}var sn={Object:1,Array:2,String:3,Null:4,Undefined:5,Function:6,Boolean:7,Number:8,RegExp:9,Date:10};function cn(e,t){var n,r,i,o,a,s=function(e){return null===e?4:void 0===e?5:sn[Object.prototype.toString.call(e).slice(8,-1)]}(e);if(null==t&&(t=1),1===s){if(t>0){if(-1!==nn.indexOf(e))return console.log("toSrc warning: Circular reference detected within object ",e),"undefined";for(r in nn.push(e),n="{",e)Object.hasOwn(e,r)&&(n+='"'+r+'": '+cn(e[r],t-1)+", ");n.length>1&&(n=n.substring(0,n.length-2)),n+="}"}else n="undefined";return n}if(2===s){if(t>0){if(-1!==nn.indexOf(e))return console.log("toSrc warning: Circular reference detected within array ",e),"undefined";for(nn.push(e),n="[",i=0,o=e.length;i<o;i++)n+=cn(e[i],t-1)+", ";n.length>1&&(n=n.substring(0,n.length-2)),n+="]"}else n="undefined";return n}return 3===s?JSON.stringify(e):4===s?"null":5===s?"undefined":6===s?-1===(a=e.toString()).search(/^function \w+\(\) \{\s*\[native code\]\s*\}$/)?a:a.match(/^function (\w+)\(\) \{\s*\[native code\]\s*\}$/)[1]:7===s?e.toString():8===s?e===Number.MAX_VALUE?"Number.MAX_VALUE":e===Number.MIN_VALUE?"Number.MIN_VALUE":e===Math.E?"Math.E":e===Math.LN2?"Math.LN2":e===Math.LN10?"Math.LN10":e===Math.LOG2E?"Math.LOG2E":e===Math.LOG10E?"Math.LOG10E":e===Math.PI?"Math.PI":e===Math.SQRT1_2?"Math.SQRT1_2":e===Math.SQRT2?"Math.SQRT2":e.toString():9===s?e.toString():10===s?"new Date("+e.getTime()+")":"undefined"}function un(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 dn(e,t,n){var r=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),i=new RegExp("[\\?&#]"+r+"(?:=([^&#]*))?",t?"i":"").exec(n||window.location.href);return null===i?null:void 0===i[1]?"":decodeURIComponent(i[1].replace(/\+/g," "))}function ln(e){var t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)");return t?t[2]:null}function fn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({path:"/"},n);var r,i=encodeURIComponent(e)+"="+encodeURIComponent(t);if(i+=";path="+n.path,n.domain&&(i+="; domain="+n.domain),n.expiresDays?r=864e5*n.expiresDays:n.expiresHours?r=36e5*n.expiresHours:n.expiresSeconds&&(r=1e3*n.expiresSeconds),r){var o=new Date;o.setTime(o.getTime()+r),i+="; expires="+o.toUTCString()}n.sameSite&&(i+="; samesite="+n.sameSite),n.secure&&(i+="; secure"),document.cookie=i}function pn(e){var t,n=null===(t=window.assertive)||void 0===t||null===(t=t.analytics)||void 0===t||null===(t=t.override)||void 0===t||null===(t=t.utm)||void 0===t?void 0:t[e];return n&&(e=n),dn(e)}function gn(e,t,n){for(var r=0,i=0;r<e.length&&i<t.length;)n(e[r],t[i])<=0||(e.splice(r,0,t[i]),i++),r++;for(;i<t.length;)e.push(t[i]),i++;return e}function vn(e,t){return hn.apply(this,arguments)}function hn(){return hn=le(Ve.mark(function e(t,n){var r;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=Symbol(),e.next=1,Promise.all(t.map(function(){var e=le(Ve.mark(function e(t,i,o){var a;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,n(t,i,o);case 1:return a=e.sent,e.abrupt("return",a?t:r);case 2:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}()));case 1:return e.abrupt("return",e.sent.filter(function(e){return e!==r}));case 2:case"end":return e.stop()}},e)})),hn.apply(this,arguments)}function mn(e,t,n){return!(t.length>0&&t.includes(n))&&(0===e.length||e.includes(n))}function En(e,t){e.push=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.apply(e,r)}}function bn(e,t){var n=window[g],r=n.geoInfo,i=n.settings,o=i.versionInfo.splitVarsEval,a=i.definitions.variables;if(!a[e])throw new Error("Unable to evaluate variable: Variable ".concat(e," not found."));var s,u,d=a[e],l=d.type,f=d.value,p=d.name;try{var v;switch(l){case c.SIMPLE_VALUE:v=f;break;case c.LOCAL_STORAGE_ENTRY:v=localStorage.getItem(f);break;case c.COOKIE_VALUE:v=ln(f);break;case c.URL_PARAMETER:v=dn(f);break;case c.JS_GLOBAL_VAR:try{v=f.split(".").reduce(function(e,t,n){return 0===n?window[t]:e[t]},{})}catch(e){e instanceof Error&&et(e,{description:"Failed to evaluate global js var ".concat(p,". Falling back to undefined.")})}break;case c.JS_GLOBAL_FUNCTION:try{v=f.split(".").reduce(function(e,t,n){return 0===n?window[t]:e[t]},null)()}catch(e){e instanceof Error&&et(e,{description:"Failed to evaluate global js function ".concat(p,". Falling back to undefined.")})}break;case c.JS_FUNCTION:v=Function("return (".concat(Tn(f),")()"))();break;case c.VALUE_MAP:var h=f,m=h.variableId,E=h.valueMatches,b=h.defaultEnabled,y=h.defaultOutput,w=h.condition,I=bn(m),S=E.find(function(e){var t=e.match;return yn(I,t,w)});v=null!=S?S.output:b?y:null;break;case c.SPLIT_TEST:var T=f,_=T.conditions,O=T.defaultValue,A=T.splitValues,U=T.enableReporting,R=o[e];v=U&&In(_)?A[R].value:O;break;case c.URL:v=window.location.href;break;case c.URL_PATHNAME:v=window.location.pathname;break;case c.DOMAIN:v=window.location.hostname.replace("www.","");break;case c.WINDOW_WIDTH:v=Math.max(document.documentElement.clientWidth,window.innerWidth||0);break;case c.WINDOW_HEIGHT:v=Math.max(document.documentElement.clientHeight,window.innerHeight||0);break;case c.IS_MOBILE:u=!1,s=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(s)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(s.substr(0,4)))&&(u=!0),v=u;break;case c.UTM_SOURCE:v=pn("utm_source");break;case c.UTM_MEDIUM:v=pn("utm_medium");break;case c.UTM_CAMPAIGN:v=pn("utm_campaign");break;case c.UTM_TERM:v=pn("utm_term");break;case c.UTM_CONTENT:v=pn("utm_content");break;case c.DEPLOYMENT_ID:v=window[g].settings.versionInfo.deployId;break;case c.VERSION_ID:v=window[g].settings.versionInfo.versionId;break;case c.DEPLOYMENT_PERCENTAGE:v=window[g].settings.versionInfo.percentage;break;case c.COUNTRY:v=r.country;break;case c.IS_EU_COUNTRY:v=r.isEUCountry;break;case c.IS_EEA_OR_UK:v=r.isEEAOrUK;break;case c.CITY:v=r.city;break;case c.CONTINENT:v=r.continent;break;case c.LATITUDE:v=r.latitude;break;case c.LONGITUDE:v=r.longitude;break;case c.POSTAL_CODE:v=r.postalCode;break;case c.REGION:v=r.region;break;case c.REGION_CODE:v=r.regionCode;break;case c.TIMEZONE:v=r.timezone}return Xe(j.VARIABLE_EVAL,e,v),v}catch(e){throw e instanceof Error&&(e.message="Unable to evaluate variable ".concat(p,": ")+e.message),e}}function yn(e,t,n){try{switch(n){case d.EQ:return String(e)===String(t);case d.NE:return String(e)!==String(t);case d.ONE_OF:return t.includes(String(e));case d.NOT_ONE_OF:return!t.includes(String(e));case d.LT:return Number(e)<Number(t);case d.LE:return Number(e)<=Number(t);case d.GT:return Number(e)>Number(t);case d.GE:return Number(e)>=Number(t);case d.CONTAINS:return String(e).includes(String(t));case d.STARTS_WITH:return String(e).startsWith(String(t));case d.ENDS_WITH:return String(e).endsWith(String(t));case d.REGEX:return new RegExp(String(t)).test(String(e));case d.DOESNT_CONTAIN:return!String(e).includes(String(t));case d.DOESNT_STARTS_WITH:return!String(e).startsWith(String(t));case d.DOESNT_ENDS_WITH:return!String(e).endsWith(String(t));case d.NOT_REGEX:return!new RegExp(String(t)).test(String(e));default:throw new Error("ERROR: invalid op: ".concat(n))}}catch(e){throw e instanceof Error&&(e.message="Unable to evaluate expression: "+e.message),e}}function wn(e,t){try{var n=!0,r=window[g].settings.definitions;if(r.conditions[e])return n=function e(t,n){var r=function(e){return"conditions"in e};return"conditions"in t?r(t)&&t.conditions.length>0?t.conditions.reduce(function(r,i,o){return null==r?e(i,[].concat(ae(n),[o])):t.operator===u.AND?r&&(null!==(a=e(i,[].concat(ae(n),[o])))&&void 0!==a?a:r):r||(null!==(s=e(i,[].concat(ae(n),[o])))&&void 0!==s?s:r);var a,s},null):null:yn(bn(t.variable),t.value,t.operation)}(r.conditions[e].group,[]),n;throw new Error("Condition not found. id: ".concat(e))}catch(t){throw t instanceof Error&&(t.message="Unable to evaluate condition ".concat(e,": ")+t.message),t}}function In(e){try{return e.reduce(function(e,t){return e&&wn(t)},!0)}catch(t){return t instanceof Error&&et(t,{description:"Unable to evaluate list of conditions: ".concat(JSON.stringify(e))}),!1}}function Sn(e){try{return Function("return (".concat(Tn(e),")"))()}catch(e){throw e instanceof Error&&(e.message="Unable to parse text inside evalTextWithVarIdsToJSValue: "+e.message),e}}function Tn(e){return null==e?"":e.replace(new RegExp(P.source,"g"),function(e,t,n,r){try{var i=window[g].settings.definitions.variables;if(!i[n])throw new Error("Variable not found.");var o=i[n].directString,a=void 0===o||o,s=bn(n),c=r&&""!==r?r.slice(1).split(".").reduce(function(e,t,n){return 0===n?s[t]:e[t]},null):s;return"string"==typeof c&&a?c:(nn=[],cn(c,99))}catch(e){throw e instanceof Error&&(e.message="Unable to replace variable '".concat(n+r,"' by its value: ")+e.message),e}})}var _n={settings:{placements:v.settings.placements,adUnits:v.settings.adUnits,htmlUnits:v.settings.htmlUnits,definitions:v.settings.definitions,bidderSettings:v.settings.bidderSettings,yieldScriptSettings:v.settings.yieldScriptSettings,prebidSettings:v.settings.prebidSettings,experiments:v.settings.experiments,adUnitInstances:[],htmlUnitInstances:[]},context:{triggerEvents:pe(pe(pe(pe(pe({},l.SCRIPT_LOADED,!1),l.WINDOW_READY,!1),l.WINDOW_LOADED,!1),l.CONSENT_INITIALIZATION,!1),l.MANUAL_EVENT,!1),viewableSlots:{},adUnitCodeVariations:{},observers:{lazyLoad:void 0,lazyRender:void 0,farUnitsDestroy:void 0,farUnitsRestore:void 0},lineItemTypeMap:{},timeouts:{aps:{bidderTimeout:2900,cmpTimeout:50,uspTimeout:500},failsafeTimeout:{current:5e3,default:5e3}},isGPTCollapseSlotEnabled:!1,consentInitSuccess:void 0,isChangePagePending:!1,isPrebidServerEnabled:!1},debug:{flags:_,conditionsEvaluation:{placements:[],adUnits:[],htmlUnits:[],bidders:[],paramsGroups:[],triggers:[]},runDebugConditionsEvaluation:void 0}};function On(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 An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Un(e){try{var t=e.containerRef,n=window.getComputedStyle(t),r=null,i=function(t,n){var o=t.nodeName,a=t.offsetParent,s=n.position,c=n.display;if("BODY"===o)return"none"===c;if("fixed"!==s)return!a;if("none"===c||null==t.parentElement)return!0;var u=t.parentElement,d=window.getComputedStyle(u);return u===e.containerRef.parentElement&&(r=d),i(u,d)},o=function(e){var t=e.visibility;return"hidden"===t||"collapse"===t};return(_n.context.isGPTCollapseSlotEnabled||!i(t,n))&&!o(n)&&null!=t.parentElement&&!o(null!=r?r:window.getComputedStyle(t.parentElement))}catch(t){return t instanceof Error&&et(t,{description:"Unable to detect if Ad Unit is visible",adUnitInstanceCode:e.code}),!0}}function Rn(e,t){var n,r=(n=!1,function(){if(!n){n=!0;try{t()}catch(t){t instanceof Error&&et(t,{description:"Exception in onWindowEvent (".concat(e,") callback")})}}});if("ready"===e&&(/interactive/.test(document.readyState)||/complete/.test(document.readyState))||"loaded"===e&&/complete/.test(document.readyState))r();else{var i=function(t){var n=t.target;("ready"===e&&("interactive"===n.readyState||"complete"===n.readyState)||"loaded"===e&&"complete"===n.readyState)&&(r(),document.removeEventListener("readystatechange",i))};document.addEventListener("readystatechange",i)}}function Nn(e){var t,n=(t=!1,function(n){t||(t=!0,_n.context.consentInitSuccess=n,e(n))});if(null==_n.context.consentInitSuccess)if("__tcfapi"in window)try{window.__tcfapi("addEventListener",2,function(e,t){!1===e.gdprApplies||"tcloaded"===e.eventStatus||"useractioncomplete"===e.eventStatus?(window.__tcfapi("removeEventListener",2,function(e){},e.listenerId),n(!0)):t||qe.log("Listener for 'TCF Load' success:",t)})}catch(e){e instanceof Error&&(et(e,{description:"Exception in Consent Initialization listener"}),n(!1))}else if("__gpp"in window)try{window.__gpp("addEventListener",function(e,t){var r=e.pingData,i=e.listenerId;"loaded"!==r.cmpStatus||"ready"!==r.signalStatus||"hidden"!==r.cmpDisplayStatus&&"disabled"!==r.cmpDisplayStatus?t||qe.log("Listener for 'GPP Load' success:",t):(window.__gpp("removeEventListener",function(e){},i),n(!0))})}catch(e){e instanceof Error&&(et(e,{description:"Exception in Consent Initialization listener"}),n(!1))}else qe.warn("__tcfapi or __gpp framework/stub not found"),n(!1);else e(_n.context.consentInitSuccess)}function Cn(e,t){return new Promise(function(n){try{var r=null!=t?t:{},i=r.aboveSight,o=void 0!==i&&i,a=r.nearInSight,s=void 0!==a&&a,c=r.pixelsOffset,u=void 0===c?430:c;if(null==e)n(!1);else{var d=new IntersectionObserver(function(e){var t=ue(e,1)[0];d.disconnect(),t.isIntersecting?n(!0):n(s&&o&&t.boundingClientRect.top>0)},{rootMargin:"".concat(s?u:0,"px")});d.observe(e)}}catch(e){e instanceof Error&&et(e,{description:"Unable to detect if element is in view"}),n(!1)}})}function xn(e){var t,n,r=[],i=[];return _n.settings.experiments.secondAuctionForExpiredBids&&null!==(t=window[h])&&void 0!==t&&t.libLoaded&&"function"==typeof(null===(n=window[h])||void 0===n?void 0:n.getHighestUnusedBidResponseForAdUnitCode)?(e.forEach(function(e){var t,n;(null===(t=window[h])||void 0===t?void 0:t.libLoaded)&&"cpm"in(null!==(n=window[h].getHighestUnusedBidResponseForAdUnitCode(e.code))&&void 0!==n?n:{})?r.push(e):i.push(e)}),{adUnitsWithBids:r,adUnitsWithoutBids:i}):{adUnitsWithBids:e.slice(),adUnitsWithoutBids:[]}}function Pn(e,t,n){return Ln.apply(this,arguments)}function Ln(){return Ln=le(Ve.mark(function e(t,n,r){var i;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:i=n,e.next="visible"===i?1:"near"===i?2:"page"===i?3:4;break;case 1:return e.abrupt("return",vn(t,function(){var e=le(Ve.mark(function e(t){return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Cn(t.containerRef,{nearInSight:!1});case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 2:return e.abrupt("return",vn(t,function(){var e=le(Ve.mark(function e(t){return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Cn(t.containerRef,{nearInSight:!0,pixelsOffset:r});case 1:return e.abrupt("return",e.sent);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()));case 3:return e.abrupt("return",t.slice());case 4:return qe.error("Invalid mode provided to filterAdUnits:",n),e.abrupt("return",[]);case 5:case"end":return e.stop()}},e)})),Ln.apply(this,arguments)}function Dn(e,t,n){return e.filter(function(e){var i="parentPlacement"in e?e.parentPlacement:e,o=("fetch"===n?i.fetchTrigger:"render"===n?i.trigger:an([].concat(ae(i.fetchTrigger),ae(i.trigger)))).map(function(e){return _n.settings.definitions.triggers[e]}).filter(function(e){return null!=e});return null==t?Object.values(l).some(function(e){return _n.context.triggerEvents[e]&&r(e,o)}):r(t,o)});function r(e,t){return t.some(function(t){var n;return t.event===e&&In(null!==(n=t.conditions)&&void 0!==n?n:[])})}}function Mn(e,t){return t.filter(function(t){return e.includes(t.parentPlacement.code)})}function jn(e){return(null!=e?e:[]).map(function(e){return e.split("x").map(function(e){return parseInt(e.trim())})})}function kn(e){return(null!=e?e:[]).map(function(e){return e.split("x").map(function(e,t){return parseInt(0===t?e.trim().slice(1):e.trim())})})}function zn(e){return e.includes("v")}function Fn(e){return!e.includes("v")&&"fluid"!==e}function Bn(){var e=_n.settings.bidderSettings.params.find(function(e){return In(e.conditions)});return _n.settings.bidderSettings.bidders.filter(function(e){return e.conditions.reduce(function(t,n){try{return t&&wn(n)}catch(t){return t instanceof Error&&et(t,{description:"Failed to evaluate bidder's condition (".concat(n,") for bidder: ").concat(e.name)}),!1}},!0)}).map(function(t){var n,r;return An(An({},t),{},{paramsSettings:{paramsDefaults:null!==(n=_n.settings.bidderSettings.paramsDefaults[t._id])&&void 0!==n?n:{},paramsGroup:null!==(r=null==e?void 0:e.bidders[t._id])&&void 0!==r?r:{}}})})}function Hn(e,t){return t.map(function(t){var n,r,i,o;return{bidder:t,conditions:t.conditions,paramsTemplate:null!==(n=null===(r=t.paramsOverrides.find(function(t){return t.adUnitId===e._id}))||void 0===r?void 0:r.params)&&void 0!==n?n:t.params,paramsDefaultValues:null!==(i=t.paramsSettings.paramsDefaults[e._id])&&void 0!==i?i:{},paramsGroupValues:null!==(o=t.paramsSettings.paramsGroup[e._id])&&void 0!==o?o:{}}}).map(function(e){var t=Object.keys(e.paramsDefaultValues),n=t.reduce(function(t,n){var r;return An(An({},t),{},pe({},n,null!==(r=e.paramsGroupValues[n])&&void 0!==r?r:e.paramsDefaultValues[n]))},{});return{bidder:e.bidder,paramsTemplate:e.paramsTemplate,placeholders:t,parsedParams:n}}).map(function(t){try{var n=function(e,t){var n="__".concat(g,"_undefined__"),r=0;return{value:e.replace(new RegExp(M.source,"g"),function(e,i,o){try{r++;var a=t[o];return null==a||""===a?n:a}catch(e){throw e instanceof Error&&(e.message="Unable to replace placeholder '".concat(o,"' by its value: ")+e.message),e}}).replace(new RegExp("([\"'])".concat(n,"\\1"),"g"),"undefined").replace(new RegExp("".concat(n),"g"),"undefined"),count:r}}(t.paramsTemplate,t.parsedParams),r=n.value,i=n.count,o={};return(0===i||0!==t.placeholders.length&&!t.placeholders.every(function(e){return""===t.parsedParams[e]}))&&(o=Sn(r)),{bidder:t.bidder,params:o}}catch(n){return n instanceof Error&&et(n,{description:"Unable to parse bidder params. ad unit: ".concat(e.name," bidder: ").concat(t.bidder),adUnitName:e.name}),{bidder:t.bidder,params:{}}}}).filter(function(e){return!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(e.params)})}function Gn(e){var t=_n.context.isPrebidServerEnabled;return e.reduce(function(e,n){var r=n.bidder,i=n.params,a=r.alias,s=r.bidder,c=r.bidSource,u={bidder:null!=a?a:s,params:i};return c!==o.CLIENT&&c!==o.HYBRID||e.push(An(An({},u),t?{bidSource:{client:100},includeSourceKvp:!0}:{})),c!==o.SERVER&&c!==o.HYBRID||e.push(An(An({},u),{},{bidSource:{server:100},includeSourceKvp:!0})),e},[])}function Vn(e){var t;return e.responseTimestamp+1e3*(e.ttl-(null!==(t=e.ttlBuffer)&&void 0!==t?t:1))<=(new Date).getTime()}function Wn(e){return(null!=e?e:"").trim().slice(1,(null!=e?e:"").length-2).trim()}function qn(e){return parseInt(e.replace("px",""),10)}function Yn(e){var t=e.style,n=t.width,r=t.height;return!!(n&&r&&n.includes("px")&&r.includes("px"))}function Jn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={width:null,height:null};try{var r=e.style,i=r.width,o=r.height;if(!Yn(e)){var a=window.getComputedStyle(e);i=a.width,o=a.height}if(n.width=qn(i)||null,n.height=qn(o)||null,t&&(null===n.width||null===n.height)){var s=e.getBoundingClientRect();n.width=s.width,n.height=s.height}}catch(e){e instanceof Error&&et(e,{description:"Error getting element size"})}return n}function Xn(e){return e.containerRef.querySelector('iframe[id^="google_ads_iframe_"]')}function Qn(e,t){t&&(t.width&&(!e.style.minWidth||qn(e.style.minWidth)<t.width)&&(e.style.minWidth="".concat(t.width,"px")),t.height&&(!e.style.minHeight||qn(e.style.minHeight)<t.height)&&(e.style.minHeight="".concat(t.height,"px")))}function Zn(e,t){e.forEach(function(e){t.getTargeting(e).length>0&&t.clearTargeting(e)})}function Kn(e,t){return e.cpm!==t.cpm?t.cpm-e.cpm:e.timeToRespond-t.timeToRespond}function $n(e,t){return Kn(e.bid,t.bid)}function er(e){return null!=e.slot&&null!=e.parentAdUnit&&null!=e.path}function tr(e){return e.includes("__".concat(g,"__"))}var nr={};function rr(e,t,n){if(nr[e]||(nr[e]=0),null!=t){var r,i=null!=n?n:++nr[e],o=t.slice(0,8);return ar(r="".concat(e,"__").concat(g,"__").concat(i,"_").concat(o)),r}var a=++nr[e];return"".concat(e,"__").concat(g,"__").concat(a)}function ir(e){var t=ue(e.split("__".concat(g,"__")),2),n=t[0],r=t[1],i=ue((void 0===r?"0_0":r).split("_"),2),o=i[0],a=i[1];return{placementCode:n,instanceNumber:Number(o),adUnitId:a}}function or(){var e=[].concat(ae(_n.settings.adUnitInstances.map(function(e){return e.parentPlacement.code})),ae(_n.settings.htmlUnitInstances.map(function(e){return e.parentPlacement.code}))).reduce(function(e,t){return e.includes(t)?e:[].concat(ae(e),[t])},[]);for(var t in nr)e.includes(t)||delete nr[t]}function ar(e){var t,n,r=ir(e).adUnitId;(null!==(n=(t=_n.context.adUnitCodeVariations)[r])&&void 0!==n?n:t[r]={})[e]=!0}function sr(){var e="".concat(g,"__persistent_bid_cache_bids_v2");localStorage.removeItem("".concat(g,"__persistent_bid_cache_bids")),window.addEventListener("beforeunload",function(t){window[h].que.push(function(){try{var t=Object.values(_n.context.adUnitCodeVariations).reduce(function(e,t){return[].concat(ae(e),ae(Object.keys(t)))},[]).reduce(function(e,t){var n=window[h].getBidResponsesForAdUnitCode(t).bids;return[].concat(ae(e),ae(n))},[]).filter(function(e){return!Vn(e)&&"rendered"!==e.status&&e.cpm>0});t=t.map(function(e){e.metrics=!1;var t=function(e){return t(e).filter(function(e){return!["getStatusCode","getSize","getIdentifiers","metrics.startTiming","metrics.measureTime","metrics.measureHookTime","metrics.checkpoint","metrics.timeSince","metrics.timeBetween","metrics.setMetric","metrics.getMetrics","metrics.fork","metrics.join","metrics.newMetrics","metrics.renameWith","metrics.toJSON","getCpmInNewCurrency"].includes(e)});function t(e){var n=[],r=function(r){"function"==typeof e[r]?n.push(r):"object"===B(e[r])&&n.push.apply(n,ae(t(e[r]).map(function(e){return"".concat(r,".").concat(e)})))};for(var i in e)r(i);return n}}(e);return t.length>0?(et(new Error("Unknown bid method detected when caching bid"),{description:JSON.stringify(t)}),null):("function"==typeof e.getSize&&(e.getSize=e.getSize()),"function"==typeof e.getStatusCode&&(e.getStatusCode=e.getStatusCode()),"function"==typeof e.getIdentifiers&&(e.getIdentifiers=e.getIdentifiers()),e)}).filter(function(e){return null!=e}),localStorage.setItem(e,JSON.stringify(t))}catch(e){e instanceof Error&&et(e,{description:"Failed to cache bids!"})}})});var t=function(n){var r,i=JSON.parse(null!==(r=localStorage.getItem(e))&&void 0!==r?r:"[]").filter(function(e){return!Vn(e)&&"rendered"!==e.status&&"targetingSet"!==e.status&&e.cpm>0});localStorage.setItem(e,JSON.stringify([])),i.forEach(function(e){if("string"==typeof e.getSize){var t=e.getSize;e.getSize=function(){return t}}if("number"==typeof e.getStatusCode){var n=e.getStatusCode;e.getStatusCode=function(){return n}}else void 0===e.getStatusCode&&(e.getStatusCode=function(){return 1});if("object"===B(e.getIdentifiers)){var r=e.getIdentifiers;e.getIdentifiers=function(){return r}}}),i.forEach(function(e){if(ar(e.adUnitCode),e.persistentCache=!0,e.auctionId=n.auctionId,n.bidsReceived.push(e),"function"==typeof e.getIdentifiers){var t=e.getIdentifiers();t.auctionId=e.auctionId,e.getIdentifiers=function(){return t}}}),qe.log("Cached bids retrieved and reassigned to this auction: ",i),window[h].offEvent("auctionEnd",t)};window[h].onEvent("auctionEnd",t)}function cr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ur={prebidSettings:{prebidConfig:function(){var e=_n.settings.prebidSettings.config;try{var t=Sn(e);return qe.log("Evaluated Prebid.config:",t),t}catch(e){return e instanceof Error&&et(e,{description:"Unable to evaluate Prebid.config"}),{}}}()},apsSettings:{apsConfig:function(){var e=_n.settings.yieldScriptSettings.apsConfig;try{var t=Sn(e);return qe.log("Evaluated APS.config:",t),t}catch(e){return e instanceof Error&&et(e,{description:"Unable to evaluate APS.config"}),{pubID:""}}}()},trackerSettings:{trackerConfig:function(){var e=_n.settings.yieldScriptSettings.trackerConfig;try{var t=Sn(e);return qe.log("Evaluated tracker config:",t),t}catch(e){return e instanceof Error&&et(e,{description:"Unable to evaluate Tracker.config"}),{}}}()},yieldScriptSettings:{lazyTrigger:{fetchMargin:function(){try{var e=_n.settings.yieldScriptSettings.lazyTrigger,t=e.fetchMargin,n=t.value,r=t.isPercentage,i=e.mobileScaling;if(window[g].customLazyLoadOffset)return qe.warn("customLazyLoadOffset will be deprecated, use Lazy Fetch/Render Margins instead."),window[g].customLazyLoadOffset;var o=Sn(n),a=(window.innerWidth||document.documentElement.clientWidth)<992?i:1;if(Number.isNaN(o))throw new Error("lazy fetch offset value did not evaluate to a number");return Math.floor(r?window.innerHeight*(o/100)*a:o*a)}catch(e){return e instanceof Error&&et(e,{description:"Unable to parse lazy fetch offset value, falling back to default (1400)"}),1400}}(),renderMargin:function(){try{var e=_n.settings.yieldScriptSettings.lazyTrigger,t=e.renderMargin,n=t.value,r=t.isPercentage,i=e.mobileScaling,o=Sn(n),a=(window.innerWidth||document.documentElement.clientWidth)<992?i:1;if(Number.isNaN(o))throw new Error("lazy render offset value did not evaluate to a number");return Math.floor(r?window.innerHeight*(o/100)*a:o*a)}catch(e){return e instanceof Error&&et(e,{description:"Unable to parse lazy render offset value, falling back to default (1400)"}),1400}}()}}};function dr(e){var t="";try{t=Tn(e)}catch(t){t instanceof Error&&et(t,{description:"Unable to evaluate ad unit path: ".concat(e)})}return t}var lr=["bids"];function fr(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 pr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gr(e){var t=_n.settings.prebidSettings.customBidPool.codes;return mn(t.include,t.exclude,ir(e).placementCode)}function vr(e,t){var n,r,i=_n.settings.prebidSettings.customBidPool.enabled;if(t.includes(e))return!1;if(i&&(n=e.bidder,!mn((r=_n.settings.prebidSettings.customBidPool.bidders).include,r.exclude,n)||!gr(e.adUnitCode)))return!1;var o="rendered"===e.status||"targetingSet"===e.status,a=Vn(e);if(o||a)return!1;if(0===e.cpm)return!1;if(e.pooled)return!1;try{var s=ur.prebidSettings.prebidConfig.bidCacheFilterFunction;if("function"==typeof s&&!s(e))return!1}catch(e){et(e,{description:"Failed to run prebid bidCacheFilterFunction"})}return!0}function hr(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];qe.group(">>> Custom bid pool <<< - (".concat(e.length,")")),qe.log("auctionCodes:",e);try{var n=_n.settings.prebidSettings.customBidPool.enabled,r=[],i=e.filter(function(e){return!n||gr(e)}).map(function(e){return _n.settings.adUnitInstances.find(function(t){return t.code===e})}).filter(function(e){if(!e||!e.parentAdUnit)return!1;var t=window[h].getHighestUnusedBidResponseForAdUnitCode(e.code);return null!=t&&"adId"in t&&r.push(t),!0}),o=i.reduce(function(e,t){var r,i,o=n?null!==(r=t.parentAdUnit.bidPoolGroupId)&&void 0!==r?r:"DEFAULT_CUSTOM_BID_POOL_GROUP":t.parentAdUnit._id.slice(0,8);return pr(pr({},e),{},pe({},o,[].concat(ae(null!==(i=e[o])&&void 0!==i?i:[]),[t])))},{}),a=[],s={};return qe.log("Auction ad unit instances:",i),Object.entries(o).forEach(function(e){var i=ue(e,2),o=i[0],c=i[1];qe.group("Group ID: ".concat(o,". Group instances:"),c);try{var u=(n?Object.values(_n.context.adUnitCodeVariations).reduce(function(e,t){return[].concat(ae(e),ae(Object.keys(t)))},[]).reduce(function(e,t){var n=window[h].getBidResponsesForAdUnitCode(t).bids;return[].concat(ae(e),ae(n))},[]):Object.keys(_n.context.adUnitCodeVariations[o]).reduce(function(e,t){var n=window[h].getBidResponsesForAdUnitCode(t).bids;return[].concat(ae(e),ae(n))},[])).filter(function(e){return vr(e,r)}).sort(Kn);if(0===u.length)return A&&(qe.group("ORIGINAL - Custom Bid Pool & Highest Bids from Prebid auction: "),qe.log([]),c.forEach(function(e){var t=e.code,n=window[h].getHighestUnusedBidResponseForAdUnitCode(t);if(null!=n&&"adId"in n){var r=n.adId,i=n.bidder,o=n.cpm,a=n.size;qe.log("Highest Bid (Prebid auction) for ".concat(t,": "),{bidder:i,adId:r,cpm:o,size:a,bidObject:JSON.parse(JSON.stringify(n))})}else qe.log("No Bids     (Prebid auction) for ".concat(t,"."))}),qe.groupEnd()),qe.log("🔴 Skipping: Not enough Prebid bids."),qe.groupEnd(),[];var d=function(e,t,n){var r,i=e.map(function(e){return{bid:e,adUnitCode:e.adUnitCode,pooled:e.pooled,originalAdUnitCode:e.originalAdUnitCode,originalHighestBid:e.originalHighestBid}}),o=t.reduce(function(e,t){var r=n.find(function(e){return e.adUnitCode===t.code});return pr(pr({},e),null!=r?pe({},t.code,{bid:r,adUnitCode:r.adUnitCode,pooled:r.pooled,originalAdUnitCode:r.originalAdUnitCode,originalHighestBid:r.originalHighestBid}):{})},{});A&&(qe.group("ORIGINAL - Custom Bid Pool & Highest Bids from Prebid auction: "),qe.log(i.map(function(e){var t=e.bid;return{adId:t.adId,bidder:t.bidder,cpm:t.cpm,size:t.size,bidObject:JSON.parse(JSON.stringify(t))}})),t.forEach(function(e){var t=e.code,n=o[t];if(null!=n){var r=n.bid,i=r.adId,a=r.bidder,s=r.cpm,c=r.size;qe.log("Highest Bid (Prebid auction) for ".concat(t,": "),{bidder:a,adId:i,cpm:s,size:c,bidObject:JSON.parse(JSON.stringify(n.bid))})}else qe.log("No Bids     (Prebid auction) for ".concat(t,"."))}),qe.groupEnd());var a=0;do{r=!1,t.forEach(function(e){var t,n,s,c,u,d,l=o[e.code],f=i.find(function(t){var n=t.bid,r=e.sizes.includes("video"===n.mediaType?"v".concat(n.size):n.size),i=e.parentAdUnit.mediaTypes.some(function(e){return-1!==e.indexOf(n.mediaType)});return r&&i});null!=f&&f.bid.cpm>(null!==(t=null==l||null===(n=l.bid)||void 0===n?void 0:n.cpm)&&void 0!==t?t:0)&&(qe.group("🟢 Reassigning Bid"),qe.log("bidId: ",f.bid.adId),qe.log("From: ",f.adUnitCode,"To: ",e.code),qe.log("Uplift: ",f.bid.cpm-(null!==(s=null==l||null===(c=l.bid)||void 0===c?void 0:c.cpm)&&void 0!==s?s:0)),qe.groupEnd(),f.pooled=!0,f.originalAdUnitCode=f.bid.adUnitCode,f.originalHighestBid=null!==(u=null==l||null===(d=l.bid)||void 0===d?void 0:d.cpm)&&void 0!==u?u:0,null!=l&&vr(l.bid,[])&&(l.pooled&&l.originalAdUnitCode&&(l.adUnitCode=l.originalAdUnitCode,delete l.pooled,delete l.originalAdUnitCode,delete l.originalHighestBid),gn(i,[l],$n)),f.adUnitCode=e.code,i.splice(i.indexOf(f),1),o[e.code]=f,r=!0,a++)})}while(r);0===a?qe.log("🟡 No changes done: No higher bids availaible."):A&&(qe.group("UPDATED - Custom Bid Pool & Highest Updated Bids (".concat(a," changes): ")),qe.log(i.map(function(e){var t=e.bid;return{adId:t.adId,bidder:t.bidder,cpm:t.cpm,size:t.size,bidObject:t}})),t.forEach(function(e){var t=e.code,n=o[t];if(null!=n){var r=n.bid,i=r.adId,a=r.bidder,s=r.cpm,c=r.size;qe.log("Highest Bid (Updated) for ".concat(t," ").concat(!0===n.pooled?"📈":"",": "),{bidder:a,adId:i,cpm:s,size:c,bidObject:JSON.parse(JSON.stringify(n.bid))})}else qe.log("No Bids     (Updated) for ".concat(t,"."))}),qe.groupEnd());gn(i,Object.values(o).sort($n),$n);var s=Object.entries(o).filter(function(e){var t=ue(e,2);t[0];var n=t[1];return null==n?void 0:n.pooled}).map(function(e){return ue(e,1)[0]});return{bids:i,reassignedInstances:s}}(u,c,r),l=d.bids,f=cr(d,lr);t&&function(e){e.forEach(function(e){var t=e.bid;null!=e.originalAdUnitCode&&(t.adUnitCode=e.adUnitCode,t.pooled=e.pooled,t.originalAdUnitCode=e.originalAdUnitCode,t.originalHighestBid=e.originalHighestBid)})}(l),gn(a,l,$n),f.reassignedInstances.forEach(function(e){s[e]=!0}),qe.groupEnd()}catch(e){throw qe.groupEnd(),e}}),qe.groupEnd(),{bids:a,reassignedCodes:Object.keys(s)}}catch(t){return qe.groupEnd(),t instanceof Error&&et(t,{description:"Failed to run the Custom bid pool for code variations",adUnitCodes:e}),{bids:[],reassignedCodes:[]}}}function mr(e){var t=_n.settings.prebidSettings.customBidPool.enabled,n=ur.prebidSettings.prebidConfig;if(!window[h].libLoaded)return qe.warn("ayManagerEnv.getHighestQualifiedBid() was called but Prebid is not loaded."),{};if(null==e||!function(e){return null!=e&&"object"===B(e)&&Array.isArray(e)&&e.every(function(e){return"string"==typeof e})}(e))return qe.error("Invalid 'adUnitCodes' array provided to ayManagerEnv.getHighestQualifiedBid()"+JSON.stringify(e)),{};if(0===(e=e.filter(function(e){return tr(e)})).length)return{};if(t||n.useBidCache){var r=hr(e,!1).bids;return e.reduce(function(e,t){var n;return pr(pr({},e),{},pe({},t,null===(n=r.find(function(e){return e.adUnitCode===t}))||void 0===n?void 0:n.bid))},{})}return e.map(function(e){return window[h].getHighestUnusedBidResponseForAdUnitCode(e)}).filter(function(e){return null!=e&&"adId"in e}).reduce(function(e,t){return pr(pr({},e),{},pe({},t.adUnitCode,t))},{})}var Er=["slotID","size","mediaType"];function br(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 yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var wr={},Ir=[];function Sr(e){return"object"===B(e)&&null!=e}function Tr(e){return Sr(e)&&"amzniid"in e&&"string"==typeof e.amzniid&&"amznbid"in e&&"string"==typeof e.amznbid}function _r(e){return Sr(e)&&"targeting"in e&&Tr(e.targeting)}var Or=function(e){var t=e.filter(function(e){return function(e){return Sr(e)&&"slotID"in e&&"string"==typeof e.slotID&&"size"in e&&"string"==typeof e.size}(e)&&(_r(e)||function(e){return Sr(e)&&!("targeting"in e)&&Tr(e)}(e))}),n=t.filter(function(e){return!["","1","2"].includes(_r(e)?e.targeting.amzniid:e.amzniid)}).map(function(e){if(_r(e))return e;var t=e.slotID,n=e.size,r=e.mediaType,i=cr(e,Er);return{slotID:t,size:n,targeting:i,helpers:{targetingKeys:Object.keys(i)},mediaType:null!=r?r:"d"}});Ir.push.apply(Ir,ae(n)),e.filter(function(e){return!t.find(function(t){return t===e})}).forEach(function(e){et(new Error("Invalid bid format!"),{description:"format: ".concat(JSON.stringify(e).slice(0,300))})})},Ar=function(e){return null==e||null==e.targeting.amznbid?0:null!==(t=null===(n=wr[e.targeting.amznbid])||void 0===n?void 0:n[0])&&void 0!==t?t:999;var t,n},Ur=function(e){return{bids:Ir.filter(function(t){return t.slotID===e})}},Rr=function(e){var t=Ur(e).bids.filter(function(e){return"targetingSet"!==e.status&&"rendered"!==e.status});if(0===t.length)return{};for(var n=t.length-1,r=Ar(t[n]),i=n;i>=0;i--){var o=Ar(t[i]);o>r&&(n=i,r=o)}return t[n]};function Nr(e,t){return"video"!==e.mediaType&&(!t.includes(e)&&("rendered"!==e.status&&"targetingSet"!==e.status&&(0!==Ar(e)&&!e.pooled)))}function Cr(e){A&&(qe.group("ORIGINAL - Custom Bid Pool & Highest Bids from APS auctions: "),qe.log([]),e.forEach(function(e){var t=e.code,n=Rr(t);if("slotID"in n){var r=n.slotID,i=n.mediaType,o=n.targeting,a=o.amznbid,s=o.amzniid,c=o.amznp,u=o.amznsz;qe.log("Highest Bid (APS) for ".concat(t,": "),{slotID:r,mediaType:i,amznbid:a,amzniid:s,amznp:c,amznsz:u,bidObject:JSON.parse(JSON.stringify(n))})}else qe.log("No Bids     (APS) for ".concat(t,"."))}),qe.groupEnd()),qe.log("🔴 Skipping: Not enough APS bids."),qe.groupEnd()}function xr(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{qe.group(">>> APS Custom bid pool for code variations <<<");var n=[],r=_n.settings.adUnitInstances.filter(function(t){if(!e.includes(t.code)||!er(t))return!1;var r=Rr(t.code);return"slotID"in r&&n.push(r),!0}),i=r.reduce(function(e,t){var n;return yr(yr({},e),{},pe({},t.parentAdUnit._id,[].concat(ae(null!==(n=e[t.parentAdUnit._id])&&void 0!==n?n:[]),[t])))},{}),o=[];return qe.log("Auction ad unit instances:",r),Object.entries(i).forEach(function(e){var r=ue(e,2),i=r[0],a=r[1];qe.group("Parent ad unit id: ".concat(i,". Child instances:"),a);var s=Object.keys(_n.context.adUnitCodeVariations[i.slice(0,8)]);qe.log("Adding to the bid pool bids from the following ad unit code variations:",s);var c=s.reduce(function(e,t){var n=Ur(t).bids;return[].concat(ae(e),ae(n))},[]).filter(function(e){return Nr(e,n)}).sort(function(e,t){return Ar(t)-Ar(e)});if(0!==c.length){var u=Mr(c,a,n);t&&Dr(u),o.push.apply(o,u),qe.groupEnd()}else Cr(a)}),qe.groupEnd(),o}catch(t){return t instanceof Error&&et(t,{description:"Failed to run the APS Custom bid pool for code variations",adUnitCodes:e}),[]}}function Pr(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{qe.group(">>> APS customBidPool feature is enabled <<<");var n=[],r=_n.settings.adUnitInstances.filter(function(t){if(!e.includes(t.code)||!t.parentAdUnit)return!1;var r=Rr(t.code);return"slotID"in r&&n.push(r),!0}),i=Object.values(_n.context.adUnitCodeVariations).reduce(function(e,t){return[].concat(ae(e),ae(Object.keys(t)))},[]).reduce(function(e,t){var n=Ur(t).bids;return[].concat(ae(e),ae(n))},[]).filter(function(e){return Nr(e,n)}).sort(function(e,t){return Ar(t)-Ar(e)});if(0===i.length)return Cr(r),[];var o=Mr(i,r,n);return t&&Dr(o),qe.groupEnd(),o}catch(t){return t instanceof Error&&et(t,{description:"Failed to run the APS Custom Bid Pool",adUnitCodes:e}),[]}}function Lr(e){var t,n=null!==(t=_n.settings.yieldScriptSettings.apsBidPool)&&void 0!==t?t:{enabled:!1,mode:"full"},r=n.enabled,i=n.mode;if(!S||null==window.apstag)return qe.warn("ayManagerEnv.getHighestQualifiedAPSBids() was called but APS is not enabled (or apstag is not available)."),{};if(null==e||!function(e){return null!=e&&"object"===B(e)&&Array.isArray(e)&&e.every(function(e){return"string"==typeof e})}(e))return qe.error("Invalid 'adUnitCodes' array provided to ayManagerEnv.getHighestQualifiedAPSBids()"+JSON.stringify(e)),{};if(0===(e=e.filter(function(e){return tr(e)})).length)return{};if(r){var o="full"===i?Pr(e,!1):xr(e,!1);return e.reduce(function(e,t){var n;return yr(yr({},e),{},pe({},t,null===(n=o.find(function(e){return e.adUnitCode===t}))||void 0===n?void 0:n.bid))},{})}return e.map(function(e){return Rr(e)}).filter(function(e){return"targeting"in e}).reduce(function(e,t){return yr(yr({},e),{},pe({},t.slotID,t))},{})}function Dr(e){e.forEach(function(e){var t=e.bid;null!=e.originalAdUnitCode&&(t.slotID=e.adUnitCode,t.pooled=e.pooled,t.originalAdUnitCode=e.originalAdUnitCode,t.originalHighestBid=e.originalHighestBid)})}function Mr(e,t,n){var r,i=e.map(function(e){return{bid:e,adUnitCode:e.slotID,pooled:e.pooled,originalAdUnitCode:e.originalAdUnitCode,originalHighestBid:e.originalHighestBid}}),o=t.reduce(function(e,t){var r=n.find(function(e){return e.slotID===t.code});return yr(yr({},e),null!=r?pe({},t.code,{bid:r,adUnitCode:r.slotID,pooled:r.pooled,originalAdUnitCode:r.originalAdUnitCode,originalHighestBid:r.originalHighestBid}):{})},{});A&&(qe.group("ORIGINAL - Custom Bid Pool & Highest Bids from APS: "),qe.log(i.map(function(e){var t=e.bid,n=t.slotID,r=t.mediaType,i=t.targeting;return{slotID:n,mediaType:r,amznbid:i.amznbid,amzniid:i.amzniid,amznp:i.amznp,amznsz:i.amznsz,bidObject:JSON.parse(JSON.stringify(t))}})),t.forEach(function(e){var t=e.code,n=o[t];if(null!=n){var r=n.bid,i=r.slotID,a=r.mediaType,s=r.targeting,c=s.amznbid,u=s.amzniid,d=s.amznp,l=s.amznsz;qe.log("Highest Bid (APS) for ".concat(t,": "),{slotID:i,mediaType:a,amznbid:c,amzniid:u,amznp:d,amznsz:l,bidObject:JSON.parse(JSON.stringify(n.bid))})}else qe.log("No Bids     (APS) for ".concat(t,"."))}),qe.groupEnd());var a=0;do{r=!1,t.forEach(function(e){var t=o[e.code],n=i.find(function(t){var n=t.bid,r=e.sizes.includes("video"===n.mediaType?"v".concat(n.size):n.size),i="video"===n.mediaType?e.parentAdUnit.mediaTypes.some(function(e){return-1!==e.indexOf("video")}):e.parentAdUnit.mediaTypes.some(function(e){return-1!==e.indexOf("banner")});return r&&i});null!=n&&Ar(n.bid)>Ar(null==t?void 0:t.bid)&&(qe.group("🟢 Reassigning Bid"),qe.log("bidId: ",n.bid.targeting.amzniid),qe.log("From: ",n.adUnitCode,"To: ",e.code),qe.log("Uplift: ",Ar(n.bid)-Ar(null==t?void 0:t.bid)),qe.groupEnd(),n.pooled=!0,n.originalAdUnitCode=n.bid.slotID,n.originalHighestBid=Ar(null==t?void 0:t.bid),null!=t&&"video"!==t.bid.mediaType&&(t.pooled&&t.originalAdUnitCode&&(t.adUnitCode=t.originalAdUnitCode,delete t.pooled,delete t.originalAdUnitCode,delete t.originalHighestBid),i.push(t),i.sort(function(e,t){return Ar(t.bid)-Ar(e.bid)})),n.adUnitCode=e.code,i.splice(i.indexOf(n),1),o[e.code]=n,r=!0,a++)})}while(r);return 0===a?qe.log("🟡 No changes done: No higher bids availaible."):A&&(qe.group("UPDATED - Custom Bid Pool & Highest Updated Bids (".concat(a," changes): ")),qe.log(i.map(function(e){var t=e.bid,n=t.slotID,r=t.mediaType,i=t.targeting;return{slotID:n,mediaType:r,amznbid:i.amznbid,amzniid:i.amzniid,amznp:i.amznp,amznsz:i.amznsz,bidObject:JSON.parse(JSON.stringify(t))}})),t.forEach(function(e){var t=e.code,n=o[t];if(null!=n){var r=n.bid,i=r.slotID,a=r.mediaType,s=r.targeting,c=s.amznbid,u=s.amzniid,d=s.amznp,l=s.amznsz;qe.log("Highest Bid (Updated) for ".concat(t," ").concat(!0===n.pooled?"📈":"",": "),{slotID:i,mediaType:a,amznbid:c,amzniid:u,amznp:d,amznsz:l,bidObject:JSON.parse(JSON.stringify(n.bid))})}else qe.log("No Bids     (Updated) for ".concat(t,"."))}),qe.groupEnd()),i.unshift.apply(i,ae(Object.values(o).filter(function(e){return null!=e}))),i.sort(function(e,t){return Ar(t.bid)-Ar(e.bid)})}function jr(){var e,t,n,r,i=_n.context.timeouts,o=_n.settings.experiments,a=ur.prebidSettings.prebidConfig,s=null!==(e=a.bidderTimeout)&&void 0!==e?e:3e3,c=(null===(t=a.consentManagement)||void 0===t||null===(t=t.gdpr)||void 0===t?void 0:t.timeout)||0,u=(null===(n=a.consentManagement)||void 0===n||null===(n=n.usp)||void 0===n?void 0:n.timeout)||0;i.aps.bidderTimeout=s-100,i.aps.cmpTimeout=Math.max(c-100,50),i.aps.uspTimeout=Math.max(u,500),i.failsafeTimeout.default=Math.max(null!==(r=o.failsafetimeout)&&void 0!==r?r:0,s+2e3),i.failsafeTimeout.current=Math.max(i.failsafeTimeout.default,c+500),Nn(function(){return e=_n.context.timeouts.failsafeTimeout.default,_n.context.timeouts.failsafeTimeout.current=e,void Xe(j.FAILSAFE_TIMEOUT_CHANGED,e);var e})}function kr(e,t){var n=setTimeout(function(){Ke(j.FAILSAFE_TIMEOUT_CHANGED,r),e()},t);function r(t){Ke(j.FAILSAFE_TIMEOUT_CHANGED,r),clearTimeout(n),kr(e,t)}Ze(j.FAILSAFE_TIMEOUT_CHANGED,r)}var zr=[],Fr=window,Br=!1;function Hr(e){return"__gpp"===e}var Gr=function(){var e={gppVersion:"1.1",cmpStatus:"stub",cmpDisplayStatus:"hidden",supportedAPIs:["2:tcfeuv2","5:tcfcav1","6:uspv1","7:usnatv1","8:uscav1","9:usvav1","10:uscov1","11:usutv1","12:usctv1"],cmpId:0,sectionList:[],applicableSections:[],gppString:""},t=Fr.__gpp;t.queue=t.queue||[],t.events=t.events||[];for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];if(!r.length)return t.queue;var o=r[0];if("queue"===o)return t.queue;if("events"===o)return t.events;var a=r.length>1?r[1]:null,s=r.length>2?r[2]:null;if("ping"===o)return e;if("addEventListener"===o){"lastId"in t||(t.lastId=0),t.lastId++;var c=t.lastId;return t.events.push({id:c,callback:a,parameter:s}),{eventName:"listenerRegistered",listenerId:c,data:!0,pingData:e}}if("removeEventListener"===o){var u=!1;t.events=t.events||[];for(var d=0;d<t.events.length;d++)if(t.events[d].id==s){t.events.splice(d,1),u=!0;break}return{eventName:"listenerRemoved",listenerId:s,data:u,pingData:e}}if("hasSection"===o||"getSection"===o||"getField"===o)return null;t.queue.push([].slice.apply(r))},Vr=function(e){!function(){if(!Br){Br=!0,Fr.googlefc=Fr.googlefc||{};var e=Fr.googlefc;e.ccpa=e.ccpa||{},e.callbackQueue=e.callbackQueue||[];var t=e.controlledMessagingFunction;e.controlledMessagingFunction=function(n){zr.forEach(function(t){try{var n,r=t+"Locator",i=Fr[t];delete Fr[t],null!==(n=Fr.frames[r])&&void 0!==n&&n.frameElement&&Fr.frames[r].frameElement.remove(),e.callbackQueue.push({CONSENT_API_READY:function(){var e=Hr(t)?i.queue:i();if(e&&e.length&&(Fr[t]?e.forEach(function(e){try{Fr[t].apply(null,e)}catch(e){et(e,{description:"Exception in execution of CMP stub queue for googlefc ready state"})}}):et(new Error('CMP stub "'.concat(t,'" has not been defined by googlefc!')))),Hr(t)){var n=i.events,r=i.lastId;if(n){var o=function(e){Fr[t]("addEventListener",e.callback,e.parameter)},a=function(e){Fr[t]("removeEventListener",function(){},e.listenerId)};if(r!==n.length)for(var s=function(e){var t=n.find(function(t){return t.id===e});o(t||{callback:a})},c=1;c<=r;c++)s(c);else n.forEach(o)}}}})}catch(e){et(e,{description:"Exception in CMP stub googlefc handler"})}}),t?t(n):n.proceed(!0),e.controlledMessagingFunction=t}}}();var t,n=e+"Locator",r=Fr;for(;r;){try{if(r.frames[n]){t=r;break}}catch(e){}if(r===Fr.top)break;r=r.parent}t||r[e]||(!function e(){var t=Fr.document,r=!!Fr.frames[n];if(!r)if(t.body){var i=t.createElement("iframe");i.style.cssText="display:none",i.name=n,t.body.appendChild(i)}else setTimeout(e,5);return!r}(),Fr[e]=Hr(e)?Gr:function(){var e,t=[];return function(){var n=arguments;if(!n.length)return t;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):t.push(n)}}(),Fr.addEventListener("message",function(t){var n="string"==typeof t.data,r={};if(n)try{r=JSON.parse(t.data)}catch(e){}else r=t.data;var i=null!==r&&"object"===B(r)?r[e+"Call"]:null;if(i){var o=function(r,o){var a=pe({},e+"Return",{returnValue:r,success:o,callId:i.callId});t&&t.source&&t.source.postMessage&&t.source.postMessage(n?JSON.stringify(a):a,"*")};Hr(e)?window[e](i.command,o,"parameter"in i?i.parameter:null,"version"in i?i.version:"1.1"):window[e](i.command,i.version,o,i.parameter)}},!1),zr.push(e))};function Wr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=document.createElement("script"),o={name:rr(t.code),parentPlacement:t,parentHtmlUnit:e,placeholderRef:i,placementRef:n,state:"injected"};return _n.settings.htmlUnitInstances.push(o),i.id=o.name,i.type="yield-manager/html-unit-placeholder",r?n.appendChild(i):n.insertAdjacentElement(t.position,i),qe.logt("📑 HTML unit instance injected ".concat(r?"- manual":""),[o.name],"(HTML Unit: ".concat(e.name,")")),o}function qr(e,t){0!==e.length&&(qe.log("Removing the following HTML unit instances:",e.map(function(e){return e.name}),"Reason: ".concat(t)),e.forEach(function(e){try{e.state="injected";var t=document.getElementById(e.name);t&&t.parentNode&&t.parentNode.removeChild(t);var n=document.querySelectorAll("[data-ay-manager-placement-id='".concat(e.name,"']"));Array.prototype.slice.apply(n).forEach(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)})}catch(t){var r;if(t instanceof Error)et(t,{description:"Failed to remove HTML unit instance ".concat(e.name),htmlUnitName:null===(r=e.parentHtmlUnit)||void 0===r?void 0:r.name,htmlUnitInstanceName:e.name})}var i=_n.settings.htmlUnitInstances.findIndex(function(t){return t===e});_n.settings.htmlUnitInstances.splice(i,1)}))}function Yr(e,t){0!==(e=e.filter(function(e){return"injected"!==e.state})).length&&(qe.log("Reseting the following HTML unit instances:",e.map(function(e){return e.name}),"Reason: ".concat(t)),e.forEach(function(e){try{var t=document.querySelectorAll("[data-ay-manager-placement-id='".concat(e.name,"']"));Array.prototype.slice.apply(t).forEach(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}),e.state="injected"}catch(t){var n;if(t instanceof Error)et(t,{description:"Failed to reset HTML unit instance ".concat(e.name),htmlUnitInstanceName:e.name,htmlUnitName:null===(n=e.parentHtmlUnit)||void 0===n?void 0:n.name}),qr([e],"Failed to reset HTML Unit Instance")}}))}function Jr(e){e.forEach(function(e){try{e.state="rendered";var t=document.createElement("div"),n=e.parentPlacement,r=n.position,i=n.inject;t.innerHTML=Tn(e.parentHtmlUnit.htmlCode);var o=Array.from(t.children).slice(),a=[];(i&&("afterbegin"===r||"afterend"===r)?o.slice().reverse():o).forEach(function(t){t.setAttribute("data-ay-manager-placement-id",e.name),i?e.placementRef.insertAdjacentElement(r,t):e.placementRef.appendChild(t)}),o.forEach(function(e){"SCRIPT"===e.tagName&&a.push(e),Array.from(e.getElementsByTagName("SCRIPT")).slice().forEach(function(e){return a.push(e)})}),a.forEach(function(t){return function(e,t){try{var n=document.createElement("script"),r=!e.src,i=Array.prototype.slice.call(e.attributes);if(n.async=!1,i.forEach(function(e){return n.setAttribute(e.name,e.value)}),r){n.type="text/javascript";var o=e.innerHTML;if(A){var a=g+"/"+t.replace(/\s/g,"_");o+="\n//# sourceURL=".concat(a)}n.appendChild(document.createTextNode(o))}else n.addEventListener("error",function(e){var n=e.error;et(n instanceof Error?n:new Error(n),{type:"script.onerror",description:"Error while trying to trigger HTML unit instance: ".concat(t,". ")+"One of its external scripts failed to load!",htmlUnitName:t},!1)});e.parentElement&&e.parentElement.replaceChild(n,e)}catch(e){e instanceof Error&&et(e,{description:"Unable to execute script from HTMLUnit ".concat(t),htmlUnitInstanceName:t})}}(t,e.parentHtmlUnit.name)})}catch(t){var s;if(t instanceof Error)et(t,{description:"Failed to trigger HTML unit instance: ".concat(e.name),htmlUnitInstanceName:e.name,htmlUnitName:null===(s=e.parentHtmlUnit)||void 0===s?void 0:s.name}),Yr([e],"Failed to trigger HTML unit instance")}})}var Xr=[],Qr=!1,Zr=!1;function Kr(){return $r.apply(this,arguments)}function $r(){return($r=le(Ve.mark(function e(){var t;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!Qr&&!Zr&&0!==Xr.length){e.next=1;break}return e.abrupt("return");case 1:if(null==(t=Xr.shift())){e.next=3;break}return Zr=!0,e.next=2,t();case 2:Zr=!1,Kr();case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ei(){return ti.apply(this,arguments)}function ti(){return ti=le(Ve.mark(function e(){return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){var t=function(){Qr?setTimeout(t,5):(Qr=!0,e(function(){Qr=!1,Kr()}))};t()}));case 1:case"end":return e.stop()}},e)})),ti.apply(this,arguments)}var ni=["IFRAME","IMG","INPUT","svg","LINK","SCRIPT","FORM","STYLE"],ri={maxWait:1e3};function ii(e){var t=_n.settings.experiments.mutationObserverInject;if(t){var n=[],r=t&&t.ignoredElements||ni,i=t.observeTarget&&document.querySelector(t.observeTarget)||document.body,o=en(function(t){if(n.length>1){for(var r=!0,i=0,o=n;i<o.length;i++){if(o[i]!==t){r=!1;break}}r||(t=document.body),n=[]}t.isConnected&&t.childElementCount&&(qe.logt("📑 Running observer inject:",[t]),e(t))},500,ri);new MutationObserver(function(e,t){e.forEach(function(e){var t,i=Array.from(e.addedNodes).filter(function(e){if(1!==e.nodeType||r.includes(e.nodeName))return!1;var t=e;return"string"!=typeof t.id||!t.id.includes("__ayManagerEnv__")&&!t.id.includes("google_ads_iframe_/")});i.length&&(t=i[0].parentElement)&&(n.push(t),o(t))})}).observe(i,{childList:!0,subtree:!0})}}function oi(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 ai(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{var r=_n.settings.placements.filter(function(e){var t=e.inject,n=e.conditions;return t&&In(n)});for(var i in t||r.filter(function(e){return e.adUnits.length>0}).forEach(function(e){o(e).forEach(function(t){try{var n="true"===t.getAttribute("data-ay-manager-destroyed");_n.settings.adUnitInstances.some(function(n){var r=n.placementRef,i=n.parentPlacement;return r===t&&i===e})||n||so(e,t)}catch(t){t instanceof Error&&et(t,{description:"Failed to inject ad unit instance for placement ".concat(e.name,"; ")+"at location '".concat(e.placement,"'"),adUnitName:e.name})}})}),r.filter(function(e){return e.htmlUnits.length>0}).forEach(function(e){o(e).forEach(function(t,n){try{_n.settings.htmlUnitInstances.some(function(n){var r=n.placementRef,i=n.parentPlacement;return r===t&&i===e})||e.htmlUnits.map(function(e){return _n.settings.htmlUnits.find(function(t){return t._id===e})}).filter(function(e){return null!=e}).forEach(function(n){return Wr(n,e,t)})}catch(t){t instanceof Error&&et(t,{description:"Failed to inject HTML unit instances for placement ".concat(e.name,"; ")+"at location '".concat(e.placement,"' at index ").concat(n),htmlUnitName:e.name})}})}),_n.context.triggerEvents)_n.context.triggerEvents[i]&&ui(i,n,t)}catch(e){e instanceof Error&&et(e,{description:"Failed to inject placements"})}function o(t){var r=e.querySelectorAll(t.placement);return 0===r.length?(Xe(j.STATE_EXCEPTION,{type:"placements",items:[t],reason:k.PLACEMENT_QUERY_NO_ELEMENTS,action:z.IGNORE,ignoredStep:F.INJECT}),n&&qe.warn("📑 Could not inject units for placement:",[t.name],"The placement query string returned no elements."),[]):Array.prototype.slice.apply(r)}}function si(e){var t=null!=e?e:{},n=t.skipAdUnits,r=void 0!==n&&n,i=t.refresh,o=void 0!==i&&i,a=t.reset,s=void 0!==a&&a;(qe.log("🔁 Page change".concat(r?" - HTML units only":"")),Xe(j.BEFORE_PAGE_CHANGE,{}),s?function(){var e=_n.settings.adUnitInstances.filter(function(e){return e.parentPlacement.inject}),t=_n.settings.htmlUnitInstances.filter(function(e){return e.parentPlacement.inject});e.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:e,reason:k.PAGE_CHANGE_RESET_MODE,action:z.REMOVE}),co(e,"Page change - reset mode"));t.length>0&&(Xe(j.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t,reason:k.PAGE_CHANGE_RESET_MODE,action:z.REMOVE}),qr(t,"Page change - reset mode"));var n=_n.settings.adUnitInstances.filter(function(e){return!e.parentPlacement.inject}),r=_n.settings.htmlUnitInstances.filter(function(e){return!e.parentPlacement.inject});n.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:n,reason:k.PAGE_CHANGE_RESET_MODE,action:z.RESET}),uo(n,"Page change - reset mode"));r.length>0&&(Xe(j.STATE_EXCEPTION,{type:"htmlUnitInstances",items:r,reason:k.PAGE_CHANGE_RESET_MODE,action:z.RESET}),Yr(r,"Page change - reset mode"))}():(pi(),function(){try{var e=_n.settings.adUnitInstances.filter(function(e){return!In(e.parentPlacement.conditions)});e.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:e.slice(),reason:k.PLACEMENT_CONDITIONS_NOT_MET,action:z.REMOVE}),co(e,"Placement conditions are no longer valid"));var t=_n.settings.htmlUnitInstances.filter(function(e){return!In(e.parentPlacement.conditions)});t.length>0&&(Xe(j.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t.slice(),reason:k.PLACEMENT_CONDITIONS_NOT_MET,action:z.REMOVE}),qr(t,"Placement conditions are no longer valid")),or()}catch(e){et(e,{description:"Failed to cleanup instances with invalid Placements"})}}(),function(){try{var e=_n.settings.adUnitInstances.filter(function(e){return e.parentAdUnit&&!In(e.parentAdUnit.conditions)});e.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:e.slice(),reason:k.AD_UNIT_CONDITIONS_NOT_MET,action:z.RESET}),uo(e,"Ad Unit conditions are no longer valid"));var t=_n.settings.htmlUnitInstances.filter(function(e){return"injected"!==e.state&&!In(e.parentHtmlUnit.conditions)});t.length>0&&(Xe(j.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t.slice(),reason:k.AD_UNIT_CONDITIONS_NOT_MET,action:z.RESET}),Yr(t,"HTML Unit conditions are no longer valid")),function(){try{var e=_n.settings.adUnitInstances.filter(function(e){return e.state.triggerFetchStep&&!e.state.triggerRenderStep&&0===Dn([e],void 0,"fetch").length||e.state.triggerRenderStep&&0===Dn([e],void 0,"render").length});e.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:e.slice(),reason:k.PLACEMENT_TRIGGER_CONDITIONS_NOT_MET,action:z.RESET}),uo(e,"Placement trigger conditions are no longer valid"));var t=_n.settings.htmlUnitInstances.filter(function(e){return"injected"!==e.state&&0===Dn([e],void 0,"render").length});t.length>0&&(Xe(j.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t.slice(),reason:k.PLACEMENT_TRIGGER_CONDITIONS_NOT_MET,action:z.RESET}),Yr(t,"Placement trigger conditions are no longer valid"))}catch(e){et(e,{description:"Failed to cleanup instances with invalid triggers"})}}()}catch(e){et(e,{description:"Failed to cleanup instances with invalid Ad Units"})}}()),o)&&fo(_n.settings.adUnitInstances.filter(function(e){return e.state.rendered&&er(e)}),!1);ai(document,r),Xe(j.AFTER_PAGE_CHANGE,{})}function ci(e){pi(),ai(e||document,!1,!1)}function ui(e){var t,n,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];function i(){r&&qe.logt("⚡ ".concat(e)),_n.context.triggerEvents[e]=!0,Xe(j.TRIGGER_EVENT_FIRED,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oi(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},_n.context.triggerEvents))}arguments.length>2&&void 0!==arguments[2]&&arguments[2]?(i(),fi(e)):(t=le(Ve.mark(function t(){return Ve.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i(),t.next=1,di(e);case 1:fi(e);case 2:case"end":return t.stop()}},t)})),n=function(){var e=le(Ve.mark(function e(){var n,r;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,ei();case 1:return n=e.sent,e.prev=2,e.next=3,t();case 3:e.next=5;break;case 4:e.prev=4,(r=e.catch(2))instanceof Error&&et(r,{description:"Exception in sync queue task"});case 5:return e.prev=5,n(),e.finish(5);case 6:case"end":return e.stop()}},e,null,[[2,4,5,6]])}));return function(){return e.apply(this,arguments)}}(),Xr.push(n),Kr())}function di(e){return li.apply(this,arguments)}function li(){return li=le(Ve.mark(function e(t){var n,r,i,o,a,s,c,u,d=arguments;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d.length>1&&void 0!==d[1]?d[1]:_n.settings.adUnitInstances,r=n.filter(function(e){return!(e.state.triggerFetchStep||e.state.triggerRenderStep||e.state.rendered||e.state.suspended||e.state.waitingAuction||e.state.waitingGPTRender||e.state.waitingLazyLoad||e.state.waitingLazyRender)}),!((i=Dn(r,t,"any").filter(function(e){return e.parentPlacement.adUnits.map(function(e){return _n.settings.adUnits.find(function(t){return t._id===e})}).filter(function(e){return null!=e}).some(function(e){return In(e.conditions)})})).length>0)){e.next=1;break}return e.next=1,vo(i,function(e){po(Dn(e.filter(function(e){return!e.state.triggerRenderStep}),void 0,"render"))});case 1:if(o=n.filter(function(e){return e.state.triggerFetchStep&&!e.state.triggerRenderStep&&!e.state.rendered&&!e.state.suspended&&!e.state.waitingAuction&&!e.state.waitingGPTRender&&!e.state.waitingLazyLoad&&!e.state.waitingLazyRender&&er(e)}),a=Dn(o,t,"render"),s=xn(a),c=s.adUnitsWithBids,u=s.adUnitsWithoutBids,!(c.length>0)){e.next=2;break}return e.next=2,po(c);case 2:u.length>0&&(qe.log("🎯 Render trigger will fire after auction for these Ad Units (Fetch trigger done - but expired/no bids):",u.map(function(e){return e.code})),mo(u,!1,function(e){po(e)}));case 3:case"end":return e.stop()}},e)})),li.apply(this,arguments)}function fi(e){var t=Dn((arguments.length>1&&void 0!==arguments[1]?arguments[1]:_n.settings.htmlUnitInstances).filter(function(e){return"injected"===e.state}),e,"render").filter(function(e){return In(e.parentHtmlUnit.conditions)});t.length>0&&(qe.log("🎯 Render trigger fired for HTML Units:",t.map(function(e){return e.name})),Jr(t))}function pi(){try{var e=_n.settings.adUnitInstances.filter(function(e){var t=document.getElementById(e.code);return!t||t!==e.containerRef});e.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:e.slice(),reason:k.CONTAINER_NOT_IN_THE_DOM,action:z.REMOVE}),co(e,"Container is no longer in the DOM"));var t=_n.settings.htmlUnitInstances.filter(function(e){var t=document.getElementById(e.name);return!t||t!==e.placeholderRef});t.length>0&&(Xe(j.STATE_EXCEPTION,{type:"htmlUnitInstances",items:t.slice(),reason:k.PLACEHOLDER_NOT_IN_THE_DOM,action:z.REMOVE}),qr(t,"Placeholder is no longer in the DOM")),or()}catch(e){et(e,{description:"Failed to cleanup unmounted/disconnected instances"})}}function gi(){return _n.settings.placements.filter(function(e){return In(e.conditions)})}function vi(){return _n.settings.adUnits.filter(function(e){return In(e.conditions)})}function hi(){return _n.settings.htmlUnits.filter(function(e){return In(e.conditions)})}function mi(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Ei(e,t);var n={}.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)?Ei(e,t):void 0}}(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,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ei(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function bi(){window.googletag.cmd.push(function(){C&&new Promise(function(e,t){try{var n=_n.settings.yieldScriptSettings.trackerId,r=new XMLHttpRequest;r.open("GET","https://".concat(n,".ay.delivery/data/").concat(n,"/lineitems.json")),r.onload=function(){if(200===r.status)try{var n=JSON.parse(r.response);e(n)}catch(e){e.message&&(e.message="Failed to parse line item type map: "+e.message),t(e)}else 404===r.status?t("No line item type map available yet."):t("Request failed with status ".concat(r.status))},r.onerror=function(){t(new Error("Request failed"))},r.send()}catch(e){t(e)}}).then(function(e){return Object.assign(_n.context.lineItemTypeMap,e)}).catch(function(e){var t;return qe.warn(null!==(t=e.message)&&void 0!==t?t:"",e)}),window.googletag.pubads().addEventListener("impressionViewable",function(e){yi(e.slot)}),window.googletag.pubads().addEventListener("slotRenderEnded",function(e){var t=e.slot;e.isEmpty&&yi(t)}),window.googletag.pubads().addEventListener("slotRenderEnded",function(e){var t,n=e.slot,r=e.advertiserId,i=e.campaignId,o=e.lineItemId,a=e.isEmpty,s=n.getSlotElementId();if(tr(s)){var c=_n.settings.adUnitInstances.find(function(e){return e.code===s}),u=null==c||null===(t=c.parentAdUnit)||void 0===t?void 0:t.refresh.refreshControls;null!=c&&((u||N)&&(c.renderInfo[f.LINE_ITEM]=String(null!=o?o:""),c.renderInfo[f.ADVERTISER]=String(null!=r?r:""),c.renderInfo[f.ORDER]=String(null!=i?i:"")),u&&(c.renderInfo[f.SIZE]||function(e,t){var n=null;try{var r=Xn(e);if(!r)return void t(null);var i=function(){var e=r.width,n=r.height;"1"===e&&r.style.width&&(e=r.style.width),"1"===n&&r.style.height&&(n=r.style.height),t({width:qn(e||"0"),height:qn(n||"0")})};if("1"!==r.width||"1"!==r.height||r.style.width||r.style.height)i();else{var o={width:r.style.width,height:r.style.height},a=0,s=0;(n=new MutationObserver(function(e){try{var c;e.forEach(function(e){var t=e.attributeName;"width"===t||"height"===t?a++:"style"===t&&(r.style.width!==o.width&&s++,r.style.height!==o.height&&s++)}),(a>=2||s>=2)&&(null===(c=n)||void 0===c||c.disconnect(),i())}catch(e){var u;null===(u=n)||void 0===u||u.disconnect(),t(null)}})).observe(r,{attributes:!0,attributeFilter:["width","height","style"]}),e.renderInfo.obs=n}}catch(r){var c;r instanceof Error&&et(r,{description:"Unable to get ad creative size",adUnitInstanceCode:e.code}),null===(c=n)||void 0===c||c.disconnect(),t(null)}}(c,function(e){e&&e.height&&e.width&&(c.renderInfo[f.SIZE]=Object.values(e).join("x"))}))),a&&u&&(c.renderInfo[f.BIDDER]="",c.renderInfo[f.SIZE]="0x0")}}),window.googletag.pubads().addEventListener("slotRenderEnded",function(e){var t=e.slot,n=e.advertiserId,r=e.campaignId,i=e.lineItemId,o=e.isEmpty;tr(t.getSlotElementId())&&(!o&&N&&Si({lineItemId:String(null!=i?i:""),advertiserId:String(null!=n?n:""),campaignId:String(null!=r?r:"")})&&yi(t,null))}),setInterval(le(Ve.mark(function e(){var t;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=1,wi();case 1:e.next=3;break;case 2:e.prev=2,(t=e.catch(0))instanceof Error&&et(t,{description:"Failed to refresh viewable slots at setInterval"});case 3:case"end":return e.stop()}},e,null,[[0,2]])})),3e3)})}function yi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;try{var n=e.getSlotElementId(),r=_n.settings.adUnitInstances.find(function(e){return e.code===n});if(r&&r.parentAdUnit){var i,o=r.parentAdUnit.refresh,a=o.refreshBasic,s=null==o.refreshControls&&0===a,c=null===(null===(i=_n.context.viewableSlots[n])||void 0===i?void 0:i.viewedAt);s||c||(_n.context.viewableSlots[n]={slot:e,viewedAt:t,refreshControl:function(e){var t=e.refreshBasic,n=e.refreshControls;if(n){var r=n.find(function(e){var t,n;return In(null!==(t=null===(n=_n.settings.definitions.refreshControls[e])||void 0===n?void 0:n.conditions)&&void 0!==t?t:[])});return r?_n.settings.definitions.refreshControls[r]:(qe.warn("The conditions of all refresh controls associated with this Ad Unit evaluated to false. This will cause the Ad Unit not to refresh."),0)}return t}(r.parentAdUnit.refresh)})}}catch(t){t instanceof Error&&et(t,{description:"Failed to update viewedAt timestamp",adUnitInstanceCode:e.getSlotElementId()})}}function wi(){return Ii.apply(this,arguments)}function Ii(){return(Ii=le(Ve.mark(function e(){var t,n,r,i,o,a,s,c,u;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(c=function(e,t){var n;if("number"==typeof e)return e;var r=e.refreshCallsLimit;if(r>0&&t.renderInfo.count>=r)return 0;var i=null===(n=e.rules.find(function(e){if(!e.enabled)return!1;switch(e.type){case f.ADVERTISER:case f.ORDER:case f.LINE_ITEM:case f.SIZE:case f.BIDDER:return e.value.includes(t.renderInfo[e.type]);case f.LINE_ITEM_TYPE:var n,r=t.renderInfo[f.LINE_ITEM],i=null===(n=_n.context.lineItemTypeMap[r])||void 0===n?void 0:n[0];return null!=i&&e.value.includes(i);default:return!1}}))||void 0===n?void 0:n.seconds;return null!=i?i:e.defaultRefresh},t=[],n=Object.entries(_n.context.viewableSlots).filter(function(e){var t=ue(e,2);return t[0],null!==t[1].viewedAt}),!document.hidden){e.next=1;break}return e.abrupt("return");case 1:r=mi(n),e.prev=2,o=Ve.mark(function e(){var n,r,o,a,s,u,d,l,f,p,g,v;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=ue(i.value,2),r=n[0],o=n[1],a=o.slot,s=o.viewedAt,u=o.refreshControl,e.prev=1,(d=_n.settings.adUnitInstances.find(function(e){return e.code===r}))&&d.parentAdUnit&&d.state.rendered){e.next=2;break}return delete _n.context.viewableSlots[r],e.abrupt("return",{v:void 0});case 2:if(0!==(l=c(u,d))){e.next=3;break}yi(a,null),e.next=6;break;case 3:if(f=s.getTime()<=Date.now()-1e3*Math.max(1,l-3),g=_n.settings.experiments.refreshRegardlessOfView){e.next=5;break}return e.next=4,Cn(d.containerRef);case 4:g=e.sent;case 5:p=g,f&&p&&(delete _n.context.viewableSlots[r],t.push(r));case 6:e.next=8;break;case 7:e.prev=7,(v=e.catch(1))instanceof Error&&et(v,{description:"Error while deciding whether to refresh viewable slot",adUnitInstanceCode:r});case 8:case"end":return e.stop()}},e,null,[[1,7]])}),r.s();case 3:if((i=r.n()).done){e.next=6;break}return e.delegateYield(o(),"t0",4);case 4:if(!(a=e.t0)){e.next=5;break}return e.abrupt("return",a.v);case 5:e.next=3;break;case 6:e.next=8;break;case 7:e.prev=7,u=e.catch(2),r.e(u);case 8:return e.prev=8,r.f(),e.finish(8);case 9:(s=t.map(function(e){return _n.settings.adUnitInstances.find(function(t){return t.code===e})}).filter(function(e){return null!=e&&e.state.rendered&&er(e)})).length>0&&fo(s,!1);case 10:case"end":return e.stop()}},e,null,[[2,7,8,9]])}))).apply(this,arguments)}function Si(e){var t=e.advertiserId,n=e.campaignId,r=e.lineItemId;try{var i,o=_n.settings.yieldScriptSettings.refreshLimits,a=o.advertiserIds,s=o.orderIds,c=o.lineItemTypes,u=null===(i=_n.context.lineItemTypeMap[r])||void 0===i?void 0:i[0],d=""!==t&&!mn(a.include,a.exclude,t.toString()),l=""!==n&&!mn(s.include,s.exclude,n.toString()),f=null!=u&&!mn(c.include,c.exclude,u);return d||l||f}catch(e){return e instanceof Error&&et(e,{description:"Error while checking refresh limits"}),!1}}function Ti(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 _i(){window[g].onEvent=Ze,window[g].offEvent=Ke,window[g].onceEvent=Qe,window[g].tools={getCookie:ln,setCookie:fn,getEnabledAdUnits:vi,getEnabledPlacements:gi,getEnabledHTMLUnits:hi},window[g].debug=_n.debug,window[g].triggerEvents=_n.context.triggerEvents,window[g].viewableSlots=_n.context.viewableSlots,window[g].adUnitCodeVariations=_n.context.adUnitCodeVariations,window[g].settings.adUnitInstances=_n.settings.adUnitInstances,window[g].settings.htmlUnitInstances=_n.settings.htmlUnitInstances,window[g].getAdUnitAuctionInfo=Fi,window[g].getHighestQualifiedBids=mr,window[g].getHighestQualifiedAPSBids=Lr,window[g].refresh=Ai,window[g].fetch=Ri,window[g].render=Ci,window[g].reset=Pi,window[g].destroy=Di,window[g].restore=ji,window[g].trigger=ki,window[g].changePage=en(si,30),window[g].display=Oi,window[g].fakeTCLoad=Bi,window[g].dispatchManualEvent=Hi}function Oi(e){try{var t=function(e){return"string"==typeof e};if(t(e)&&_n.settings.placements.some(function(t){var n=t.code,r=t.inject;return n===e&&!r}))!function(e){try{var t,n=null!==(t=document.querySelector("[data-ay-manager-id='".concat(e,"']")))&&void 0!==t?t:document.querySelector("#".concat(e,":not([data-manual-placement-group])"));if(null==n)return void qe.warn("🚫 Manual placement container not found or display called twice for same placement container.","Make sure the whole manual placement snippet is being inserted on the page.");n.removeAttribute("data-ay-manager-id"),n.setAttribute("data-manual-placement-group",e),null!=n.children[0]&&n.removeChild(n.children[0]),_n.settings.placements.filter(function(t){var n=t.inject,r=t.code,i=t.conditions;return!n&&r===e&&In(i)}).forEach(function(e){try{if(e.adUnits.length>0){var t=so(e,n,!0);_n.settings.yieldScriptSettings.spa.mode!==p.MANUAL&&_n.context.isChangePagePending||di(void 0,[t])}e.htmlUnits.length>0&&fi(void 0,e.htmlUnits.map(function(e){return _n.settings.htmlUnits.find(function(t){return t._id===e})}).filter(function(e){return null!=e}).map(function(t){return Wr(t,e,n)}))}catch(t){t instanceof Error&&et(t,{description:"Failed to manually inject instances for placement ".concat(e.name),adUnitName:e.name})}})}catch(t){t instanceof Error&&et(t,{description:"Exception while manually injecting placements",adUnitCodes:[e]})}}(e);else{var n=e;window.googletag.cmd.push(function(){if(window.googletag._display(n),!window.googletag._wasInitialLoadDisabled){var e=null!=(r=n)&&"object"===B(r)&&"id"in r?window.googletag.pubads().getSlots().find(function(e){return e.getSlotElementId()===n.id}):t(n)?window.googletag.pubads().getSlots().find(function(e){return e.getSlotElementId()===n}):n;null!=e&&window.googletag.pubads().refresh([e])}var r})}}catch(t){t instanceof Error&&et(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ti(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ti(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({description:"Exception in display API call"},"string"==typeof e?{adUnitCodes:[e]}:{}))}}function Ai(e,t){return Ui.apply(this,arguments)}function Ui(){return(Ui=le(Ve.mark(function e(t,n){var r,i,o,a,s,c,u,d,l,p,g,v,h,m,E;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,s=void 0===a?400:a,c=r.useInstanceCodes,u=void 0!==c&&c,d=r.preFetch,l=void 0!==d&&d,p=r.onlyUpdateViewedAt,g=void 0!==p&&p,v=r.ignoreRefreshLimits,h=void 0!==v&&v,m=[],null!=t){e.next=1;break}m=_n.settings.adUnitInstances.slice(),e.next=3;break;case 1:if(!Array.isArray(t)||!t.every(function(e){return"string"==typeof e})){e.next=2;break}m=u?_n.settings.adUnitInstances.filter(function(e){return t.includes(e.code)}):_n.settings.adUnitInstances.filter(function(e){return t.includes(e.parentPlacement.code)}),e.next=3;break;case 2:return qe.error("Invalid 'placementCodes' provided to ayManagerEnv.refresh()"+JSON.stringify(t)),e.abrupt("return");case 3:return m=m.filter(function(e){return e.state.rendered&&er(e)}),e.next=4,Pn(m,o,s);case 4:m=e.sent,N&&!h&&(m=m.filter(function(e){return!Si({lineItemId:e.renderInfo[f.LINE_ITEM],advertiserId:e.renderInfo[f.ADVERTISER],campaignId:e.renderInfo[f.ORDER]})})),m.length>0&&(g?lo(m):fo(m,l)),e.next=6;break;case 5:e.prev=5,(E=e.catch(0))instanceof Error&&et(E,{description:"Exception in refresh API call"});case 6:case"end":return e.stop()}},e,null,[[0,5]])}))).apply(this,arguments)}function Ri(e,t){return Ni.apply(this,arguments)}function Ni(){return(Ni=le(Ve.mark(function e(t,n){var r,i,o,a,s,c,u,d,l;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,s=void 0===a?400:a,c=r.useInstanceCodes,u=void 0!==c&&c,d=[],null!=t){e.next=1;break}d=_n.settings.adUnitInstances.slice(),e.next=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.next=2;break}d=u?_n.settings.adUnitInstances.filter(function(e){return t.includes(e.code)}):Mn(t,_n.settings.adUnitInstances),e.next=3;break;case 2:return qe.error("Invalid 'placementCodes' provided to ayManagerEnv.fetch()"+JSON.stringify(t)),e.abrupt("return");case 3:return d=d.filter(function(e){return er(e)}),e.next=4,Pn(d,o,s);case 4:(d=e.sent).length>0&&(qe.log("📩 Fetching bids for the following Ad Unit Instances:",d.map(function(e){return e.code})),mo(d,!1,function(){})),e.next=6;break;case 5:e.prev=5,(l=e.catch(0))instanceof Error&&et(l,{description:"Exception in fetch API call"});case 6:case"end":return e.stop()}},e,null,[[0,5]])}))).apply(this,arguments)}function Ci(e,t){return xi.apply(this,arguments)}function xi(){return(xi=le(Ve.mark(function e(t,n){var r,i,o,a,s,c,u,d,l;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,s=void 0===a?400:a,c=r.useInstanceCodes,u=void 0!==c&&c,d=[],null!=t){e.next=1;break}d=_n.settings.adUnitInstances.slice(),e.next=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.next=2;break}d=u?_n.settings.adUnitInstances.filter(function(e){return t.includes(e.code)}):Mn(t,_n.settings.adUnitInstances),e.next=3;break;case 2:return qe.error("Invalid 'placementCodes' provided to ayManagerEnv.render()"+JSON.stringify(t)),e.abrupt("return");case 3:return d=d.filter(function(e){return er(e)}),e.next=4,Pn(d,o,s);case 4:(d=e.sent).length>0&&(qe.log("🎇 Rendering the following Ad Unit Instances:",d.map(function(e){return e.code})),Eo(d,!1)),e.next=6;break;case 5:e.prev=5,(l=e.catch(0))instanceof Error&&et(l,{description:"Exception in render API call"});case 6:case"end":return e.stop()}},e,null,[[0,5]])}))).apply(this,arguments)}function Pi(e,t){return Li.apply(this,arguments)}function Li(){return Li=le(Ve.mark(function e(t,n){var r,i,o,a,s,c,u,d,l;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,s=void 0===a?400:a,c=r.useInstanceCodes,u=void 0!==c&&c,d=[],null!=t){e.next=1;break}d=_n.settings.adUnitInstances.slice(),e.next=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.next=2;break}d=u?_n.settings.adUnitInstances.filter(function(e){return t.includes(e.code)}):Mn(t,_n.settings.adUnitInstances),e.next=3;break;case 2:return qe.error("Invalid 'placementCodes' provided to ayManagerEnv.reset()"+JSON.stringify(t)),e.abrupt("return");case 3:return d=d.filter(function(e){var t=e.state,n=t.suspended,r=t.triggerFetchStep,i=t.triggerRenderStep;return n||r||i}),e.next=4,Pn(d,o,s);case 4:uo(d=e.sent,"reset API call"),e.next=6;break;case 5:e.prev=5,(l=e.catch(0))instanceof Error&&et(l,{description:"Exception in reset API call"});case 6:case"end":return e.stop()}},e,null,[[0,5]])})),Li.apply(this,arguments)}function Di(e,t){return Mi.apply(this,arguments)}function Mi(){return(Mi=le(Ve.mark(function e(t,n){var r,i,o,a,s,c,u,d,l;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,s=void 0===a?400:a,c=r.useInstanceCodes,u=void 0!==c&&c,d=[],null!=t){e.next=1;break}d=_n.settings.adUnitInstances.slice(),e.next=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.next=2;break}d=u?_n.settings.adUnitInstances.filter(function(e){return t.includes(e.code)}):Mn(t,_n.settings.adUnitInstances),e.next=3;break;case 2:return qe.error("Invalid 'placementCodes' provided to ayManagerEnv.destroy()"+JSON.stringify(t)),e.abrupt("return");case 3:return e.next=4,Pn(d,o,s);case 4:(d=e.sent).forEach(function(e){e.placementRef&&e.placementRef.setAttribute("data-ay-manager-destroyed","true")}),co(d,"destroy API call"),e.next=6;break;case 5:e.prev=5,(l=e.catch(0))instanceof Error&&et(l,{description:"Exception in destroy API call"});case 6:case"end":return e.stop()}},e,null,[[0,5]])}))).apply(this,arguments)}function ji(e){try{var t=[];if(null==e)t=_n.settings.placements.slice();else{if(!(Array.isArray(e)&&e.length>0))return void qe.error("Invalid 'placementCodes' provided to ayManagerEnv.restore()"+JSON.stringify(e));t=_n.settings.placements.filter(function(t){return e.includes(t.code)})}t.length>0&&(qe.log("🔙 Restoring the following placements:",t.map(function(e){return e.name})),t.forEach(function(e){var t=document.querySelectorAll(e.placement);Array.prototype.slice.apply(t).forEach(function(e){return e.removeAttribute("data-ay-manager-destroyed")})}))}catch(e){e instanceof Error&&et(e,{description:"Exception in restore API call"})}}function ki(e,t){return zi.apply(this,arguments)}function zi(){return(zi=le(Ve.mark(function e(t,n){var r,i,o,a,s,c,u,d,l,f;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i=(r=null!=n?n:{}).mode,o=void 0===i?"page":i,a=r.offset,s=void 0===a?400:a,c=r.useInstanceCodes,u=void 0!==c&&c,d=[],null!=t){e.next=1;break}d=_n.settings.adUnitInstances.slice(),e.next=3;break;case 1:if(!(Array.isArray(t)&&t.length>0)){e.next=2;break}u?(l=t.map(function(e){return e.replace(/_[^_]+$/,"")}),d=_n.settings.adUnitInstances.filter(function(e){return l.includes(e.code)})):d=Mn(t,_n.settings.adUnitInstances),e.next=3;break;case 2:return qe.error("Invalid 'placementCodes' provided to ayManagerEnv.trigger()"+JSON.stringify(t)),e.abrupt("return");case 3:return e.next=4,Pn(d,o,s);case 4:(d=e.sent).length>0&&(qe.log("🎯 Trying to trigger the following Ad Unit Instances:",d.map(function(e){return e.code})),di(void 0,d)),e.next=6;break;case 5:e.prev=5,(f=e.catch(0))instanceof Error&&et(f,{description:"Exception in trigger API call"});case 6:case"end":return e.stop()}},e,null,[[0,5]])}))).apply(this,arguments)}function Fi(e){try{var t=_n.settings.adUnits.find(function(t){return t.name===e}),n=Bn();return null==t?void qe.error('Ad Unit with name "'.concat(e,'" not found.')):{path:dr(t.path),bids:Gn(Hn(t,n))}}catch(e){e instanceof Error&&et(e,{description:"Exception in getBidsAndPathForAdUnit API call"})}}function Bi(){try{ui(l.CONSENT_INITIALIZATION)}catch(e){e instanceof Error&&et(e,{description:"Exception in fakeTCLoad API call"})}}function Hi(){window[g].cmd.push(function(){ui(l.MANUAL_EVENT)})}function Gi(e){return-1252372727^(e=(e=(e=(e=-949894596^(e=(e|=0)+2127912214+(e<<12)|0)^e>>>19)+374761393+(e<<5)|0)+-744332180^e<<9)+-42973499+(e<<3)|0)^e>>>16}function Vi(e,t){var n=0;return n|=e[t++]|0,n|=e[t++]<<8,n|=e[t++]<<16,n|=e[t++]<<24}var Wi=15;function qi(e){try{return new Uint8Array(e)}catch(r){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t}}var Yi=65536;function Ji(e){var t,n=function(e){for(var t=qi(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(e),r=(t=n.length)+16+t/255|0,i=function(){try{return new Uint32Array(Yi)}catch(n){for(var e=new Array(Yi),t=0;t<Yi;t++)e[t]=0;return e}}(),o=qi(r+5),a=e.length;o[0]="|".charCodeAt(0),o[1]=(4278190080&a)>>24,o[2]=(16711680&a)>>16,o[3]=(65280&a)>>8,o[4]=255&a;var s=function(e,t,n,r,i,o){var a,s,c,u,d,l,f=n,p=i+r;if(s=r,i>=13)for(var g=67;r+4<p-5;){var v=Vi(e,r),h=Gi(v)>>>0;if(a=o[h=(h>>16^h)>>>0&65535]-1,o[h]=r+1,a<0||r-a>>>16>0||Vi(e,a)!==v)r+=g++>>6;else{for(g=67,d=r-s,u=r-a,a+=4,c=r+=4;r<p-5&&e[r]===e[a];)r++,a++;var m=(c=r-c)<15?c:15;if(d>=Wi){for(t[f++]=240+m,l=d-Wi;l>=255;l-=255)t[f++]=255;t[f++]=l}else t[f++]=(d<<4)+m;for(var E=0;E<d;E++)t[f++]=e[s+E];if(t[f++]=u,t[f++]=u>>8,c>=15){for(l=c-15;l>=255;l-=255)t[f++]=255;t[f++]=l}s=r}}if(0===s)return 0;if((d=p-s)>=Wi){for(t[f++]=240,l=d-Wi;l>=255;l-=255)t[f++]=255;t[f++]=l}else t[f++]=d<<4;for(r=s;r<p;)t[f++]=e[r++];return f}(n,o,5,0,n.length,i);if("function"==typeof o.slice)return o.slice(0,s);for(var c=qi(s),u=0;u<s;u++)c[u]=o[u];return c}function Xi(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 Qi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xi(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xi(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Zi=window[g].startTime,Ki={},$i=[];function eo(){!function(){var e;if(null!==(e=_n.settings.experiments.cmpStub)&&void 0!==e?e:_n.settings.yieldScriptSettings.enableCmpStub){var t=ur.prebidSettings.prebidConfig.consentManagement;null!=t&&t.gpp&&Vr("__gpp"),null!=t&&t.gdpr&&Vr("__tcfapi"),null!=t&&t.usp&&Vr("__uspapi")}}(),jr(),window.googletag.cmd.push(function(){window.googletag.display=Oi,window.googletag.pubads().disableInitialLoad(),window.googletag.pubads().enableSingleRequest(),window.googletag.pubads().setCentering(!0),window.googletag.enableServices()}),function(){var e=_n.settings.experiments,t=e.sandbox,n=e.sandboxObserve,r="allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation-by-user-activation";if(!1!==t){"string"==typeof t&&(r=t);var i=new MutationObserver(function(e){var t=e[0].target;t.getAttribute("sandbox")!==r&&a(t)}),o=Node.prototype.appendChild;Node.prototype.appendChild=function(e){return"IFRAME"===e.nodeName&&e.id&&e.id.startsWith("google_ads_iframe_")&&(a(e),n&&i.observe(e,{attributes:!0,attributeFilter:["sandbox"]})),o.apply(this,[e])}}function a(e){e.setAttribute("sandbox",r)}}(),S&&function(){try{var e;(null!==(e=_n.settings.yieldScriptSettings.apsBidPool)&&void 0!==e?e:{enabled:!1}).enabled&&(r="KYjhyGIHnjBUB+cBsT8tyg==62bSNrO3b3==YCt5D4F7q5GclDDPMr6KphYGcR1tPtirQ==",new Promise(function(e,t){try{if("crypto"in window&&"subtle"in window.crypto){var n=function(e){return String.fromCharCode.apply(null,e)},i=function(e){return Uint8Array.from(atob(e),function(e){return e.charCodeAt(0)})},o=function(){var e=le(Ve.mark(function e(t,r,o){var a,s,c,u,d,l;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,crypto.subtle.importKey("raw",i(r),{name:"AES-CTR"},!1,["encrypt","decrypt"]);case 1:return a=e.sent,c=n,u=Uint8Array,e.next=2,crypto.subtle.decrypt({name:"AES-CTR",counter:i(o),length:128},a,i(t));case 2:return d=e.sent,l=new u(d),s=c(l),e.abrupt("return",s);case 3:case"end":return e.stop()}},e)}));return function(t,n,r){return e.apply(this,arguments)}}(),a=_n.settings.yieldScriptSettings.trackerId,s=new XMLHttpRequest;s.open("GET","https://".concat(a,".ay.delivery/data/").concat(a,"/m.json")),s.onload=function(){200===s.status?o(s.responseText,r.slice(0,24),r.slice(47)).then(function(n){try{var r=JSON.parse(n);"object"===B(r)&&null!=r&&Object.keys(r).length>0?e(r):t("Data is empty or invalid")}catch(e){t(e)}}).catch(function(e){t(e)}):t(new Error("Request failed with status ".concat(s.status)))},s.onerror=function(){t(new Error("Request failed"))},s.send()}else t(new Error("'crypto' is not available in window"))}catch(e){t(e)}}).then(function(e){Object.assign(wr,e)}).catch(function(e){var t;qe.warn("Amazon setup is likely not synchronized yet (this can take up to 4h)! "+(null!==(t=e.message)&&void 0!==t?t:""),e)}));var t=!1,n=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,r=_n.settings.yieldScriptSettings.publisherId,i=ur.apsSettings.apsConfig;if(!t&&(t=!0,i.pubID=r,i.adServer="googletag",i.videoAdServer="DFP",null==i.bidTimeout&&(i.bidTimeout=_n.context.timeouts.aps.bidderTimeout),null==(null===(e=i.gdpr)||void 0===e?void 0:e.cmpTimeout)&&(i.gdpr=i.gdpr||{},i.gdpr.cmpTimeout=_n.context.timeouts.aps.cmpTimeout),null!=window.apstag)){var o=function(e){Xe(j.APS_BEFORE_INIT,e),e.deals=!0,window.apstag.init(e,function(){for(Xe(j.APS_AFTER_INIT,e);$i.length;){var t;null===(t=$i.pop())||void 0===t||t()}En($i,function(e){return e()})})};try{var a,s=Qi(Qi({},i),null!==(a=window[g].apsTagInit)&&void 0!==a?a:{});null!=n&&(s.params=s.params||{},s.params.us_privacy=n),o(s)}catch(e){e instanceof Error&&et(e,{description:"Unable to read apsTagInit data, falling back to default APS initialization"}),o(i)}}};"__uspapi"in window?(window.__uspapi("getUSPData",1,function(e,t){t?n(e.uspString):n()}),setTimeout(function(){n()},_n.context.timeouts.aps.uspTimeout)):n(),window.googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(e){var t=e.slot,n=e.isBackfill,r=e.isEmpty;try{var i=t.getSlotElementId();if(null==window.apstag||!tr(i))return;var o=!r&&!n?-1!==t.getHtml().lastIndexOf("apstag.renderImp(document,"):void 0,a=Ir.find(function(e){var t=e.slotID,n=e.status;return t===i&&"targetingSet"===n});if(!_n.settings.experiments.skipClearBidTargeting)Zn(null!=a&&a.helpers.targetingKeys.length>0?a.helpers.targetingKeys:["amzniid","amznp","amznsz","amznbid","amznactt"],t);null!=a&&(o?(a.status="rendered",Ir.splice(Ir.indexOf(a),1)):delete a.status)}catch(e){e instanceof Error&&et(e,{description:"Failed to detect if APS bid won"})}})}),Ze(j.URL_CHANGE,function(e,t){e!==t&&(Ir.length=0)})}catch(e){e instanceof Error&&et(e,{description:"Exception during APS initialization"})}var r}(),T&&window[h].que.push(function(){try{var e,t,n,r,i,a,s,c=window[g],u=c.settings.versionInfo,d=c.geoInfo.continent,l=_n.settings,p=l.prebidSettings,v=p.customBidPool.enabled,m=p.persistentBidCaching,E=l.bidderSettings.bidders,b=_n.context,y=ur.prebidSettings.prebidConfig;if(b.isPrebidServerEnabled=E.some(function(e){return e.bidSource!==o.CLIENT}),b.isPrebidServerEnabled){var w=["prebidServerBidAdapter","s2sTesting"].filter(function(e){return!window[h].installedModules.includes(e)});w.length>0&&(b.isPrebidServerEnabled=!1,et(new Error("Missing required Prebid Server modules: "+w.join(", ")),{description:"PBS Bidders configured, but no required modules installed. Disabling Prebid Server integration."}))}if(b.isPrebidServerEnabled){var I,S,T,_,O=["NA","SA"].includes(null!=d?d:"")?"pbs-us-east":"pbs-eu-central",U=E.filter(function(e){return e.bidSource!==o.CLIENT}).map(function(e){var t=e.alias,n=e.bidder;return null!=t?t:n});e=Qi(Qi({enabled:!0,testing:!0,accountId:u.organizationId,timeout:Math.round(.75*(null!==(I=y.bidderTimeout)&&void 0!==I?I:3e3)),endpoint:{p1Consent:"https://"+O+".ay.delivery/openrtb2/auction",noP1Consent:"https://"+O+".ay.delivery/openrtb2/auction"},syncEndpoint:{p1Consent:"https://"+O+".ay.delivery/cookie_sync",noP1Consent:"https://"+O+".ay.delivery/cookie_sync"}},y.s2sConfig),{},{extPrebid:Qi(Qi({rnd:Math.floor(10*Math.random())},null===(S=y.s2sConfig)||void 0===S?void 0:S.extPrebid),{},{targeting:Qi(Qi({},null===(T=y.s2sConfig)||void 0===T||null===(T=T.extPrebid)||void 0===T?void 0:T.targeting),void 0===(null===(_=y.s2sConfig)||void 0===_||null===(_=_.extPrebid)||void 0===_||null===(_=_.targeting)||void 0===_?void 0:_.includewinners)?{includewinners:!1}:{})}),bidders:U}),b.isPrebidServerEnabled&&(b.isPrebidServerEnabled=e.enabled)}!b.isPrebidServerEnabled||_n.settings.experiments.disablePBSRequestCompression||A||("string"==typeof(null===(t=e)||void 0===t?void 0:t.endpoint)?e.endpoint.indexOf("ay.delivery")>-1:(null!==(n=null===(r=e)||void 0===r||null===(r=r.endpoint)||void 0===r?void 0:r.p1Consent)&&void 0!==n?n:"").indexOf("ay.delivery")>-1&&(null!==(i=null===(a=e)||void 0===a||null===(a=a.endpoint)||void 0===a?void 0:a.noP1Consent)&&void 0!==i?i:"").indexOf("ay.delivery")>-1)&&function(e,t,n){try{var r={"-1":"<",0:"=",1:">"}[(e.startsWith(n+"-")?-1:n.startsWith(e+"-")?1:e.localeCompare(n,void 0,{numeric:!0,sensitivity:"case",caseFirst:"upper"})).toString()];return t.split("").includes(r)}catch(e){return null}}(window[h].version.replace("v",""),">=","9.37.0")&&window[h].onEvent("beforePBSHttp",function(e){var t=Ji(e.requestJson);if(t){var n=new URL(e.endpointUrl);n.searchParams.set("x-lz4","1"),e.endpointUrl=n.toString(),e.requestJson=t}}),void 0===y.disableAjaxTimeout&&(y.disableAjaxTimeout=!0),void 0===y.maxRequestsPerOrigin&&(y.maxRequestsPerOrigin=6),!1!==_n.settings.experiments.minBidCacheTTL&&(y.minBidCacheTTL=null!==(s=_n.settings.experiments.minBidCacheTTL)&&void 0!==s?s:60),v&&(y.useBidCache=!0),window[h].setConfig(Qi(Qi({},y),null!=e?{s2sConfig:e}:{})),_n.settings.bidderSettings.bidders.forEach(function(e){var t=e.alias,n=e.bidder,r=e.gvlid;if(t){var i=void 0===r?{useBaseGvlid:!0}:0!==r?{gvlid:r}:{};window[h].aliasBidder(n,t,i)}}),_n.settings.bidderSettings.bidders.forEach(function(e){var t=e.alias,n=e.bidder,r=e.cpmAdjustments,i=e.storageAllowed,o=null!=t?t:n,a=window[h].bidderSettings[o]=window[h].bidderSettings[o]||{};a.bidCpmAdjustment=function(e){return e*r},a.storageAllowed=i}),window[h].onEvent("bidResponse",function(e){var t;"teads"===((null===(t=window[h].aliasRegistry)||void 0===t?void 0:t[e.bidderCode])||e.bidderCode)&&(e.ttl=140)}),m&&sr(),_n.settings.experiments.disableBidLostCheck||window.googletag.cmd.push(function(){window.googletag.pubads().addEventListener("slotRenderEnded",function(e){var t,n=e.slot,r=e.isEmpty,i=e.isBackfill;try{var o=n.getSlotElementId();if(!tr(o))return;var a=window[h].getBidResponsesForAdUnitCode(o).bids.find(function(e){return"targetingSet"===e.status});if(null!=a){var s=window.googletag.pubads().getSlots().filter(function(e){return e.getTargetingKeys().some(function(t){return e.getTargeting(t).includes(a.adId)})}),c=se(t=s)||ie(t)||oe(t)||ce(),u=c[0],d=c.slice(1);if(null!=u&&u.getSlotElementId()!==o){var l=Object.entries(u.getTargetingMap()).find(function(e){var t=ue(e,2);return t[0],t[1].includes(a.adId)});et(new Error("Prebid possibly resized the wrong slot"),{description:"Ad ID: ".concat(a.adId," - (Slot id/Prebid target) - ")+"Original Ad Unit Code: ".concat(a.originalAdUnitCode," - Pooled: ").concat(a.pooled," - ")+"Matched Targetings: ".concat(JSON.stringify(l)),adUnitCodes:[o,u.getSlotElementId()]})}d.length>0&&et(new Error("Found multiple slots with the targeting set for the same bid"),{description:"Number of additional slots: ".concat(d.length),adUnitCodes:[o].concat(ae(d.map(function(e){return e.getSlotElementId()})))})}null!=a&&(r||i?p(a):_n.settings.experiments.disableBidLostCheckPartially||(n.getHtml().includes(a.adId)?f(n.getHtml(),a)||setTimeout(function(){"targetingSet"===a.status&&p(a)},1500):setTimeout(function(){"targetingSet"===a.status&&p(a)},500))),n.getTargeting("aym_refresh").length>0?n.clearTargeting("aym_refresh"):et(new Error("Setting and removing a refresh targeting!"),{adUnitCodes:[o]})}catch(e){e instanceof Error&&et(e,{description:"Failed to reset bid that lost to dfp"})}function f(e,t){var n;if(e.includes("ayTag.renderAd(")||e.includes('apstag.renderImp(document,"'))return!1;var r=null===(n=window.assertive)||void 0===n||null===(n=n.analytics)||void 0===n||null===(n=n.override)||void 0===n?void 0:n.creativeRegex,i="(?:(?:".concat(window[h],'\\.renderAd\\(document,|adId:*|hb_adid":\\[)|(?:pbadid=)|(?:adId=))[\'"](',"[0-9]{1,16}[0-9a-z]{8,14}",")[\"']"),o=(r?new RegExp(r):new RegExp(i,"i")).exec(e.replace(/ /g,""));return(null==o?void 0:o[1])===t.adId}function p(e){try{A&&qe.log("'slotRenderEnded' timer - Bid lost to dfp. Slot element ID: ".concat(e.adUnitCode,". Refreshing bid: ").concat(e.adId),JSON.parse(JSON.stringify(e))),e.pooled&&e.originalAdUnitCode&&(e.adUnitCode=e.originalAdUnitCode,delete e.pooled,delete e.originalAdUnitCode,delete e.originalHighestBid),delete e.status,e.reset=!0}catch(e){e instanceof Error&&et(e,{description:"Failed to reset bid that lost to dfp"})}}})}),window[h].onEvent("bidWon",function(e){e.reset&&(e.status="rendered")}),window[h].onEvent("bidWon",function(e){var t=_n.settings.adUnitInstances.find(function(t){return t.code===e.adUnitCode});t&&(t.renderInfo[f.BIDDER]=e.bidder)})}catch(e){e instanceof Error&&et(e,{description:"Exception during Prebid initialization"})}}),Xe(j.MODULE_INIT_AUCTIONS,{})}function to(e,t){if(0!==e.length){var n,r,i=new Date-Zi,o=(n=(new Date).getTime(),r="undefined"!=typeof performance&&performance.now&&1e3*performance.now()||0,"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random();return n>0?(t=(n+t)%16|0,n=Math.floor(n/16)):(t=(r+t)%16|0,r=Math.floor(r/16)),("x"===e?t:3&t|8).toString(16)})),s=!1;qe.logt("🕘 Request Bids -> YM     START  - ID: ".concat(o),e),Ki[o]={prebid:!1,aps:!1};var c=e.reduce(function(e,t){var n=t.code,r=t.parentAdUnit.sizes;return Qi(Qi({},e),{},pe({},n,r))},{});Xe(j.BEFORE_DEFINE_INSTANCE_SIZES,c),e.forEach(function(e){var t;e.sizes=null!==(t=c[e.code])&&void 0!==t?t:e.sizes}),T&&window[h].que.push(function(){if(Ki[o]){var t=function(e){var t=Bn();return e.map(function(e){return{code:e.code,mediaTypes:(n=e.parentAdUnit,r=e.sizes,i=jn(r.filter(function(e){return Fn(e)})),o=kn(r.filter(function(e){return zn(e)})),An(An({},n.mediaTypes.includes(a.BANNER)?{banner:{sizes:i}}:{}),n.mediaTypes.includes(a.VIDEO_OUTSTREAM)?{video:{context:"outstream",playerSize:o.length>0?o[0]:[640,480],mimes:["video/mp4","video/webm","application/javascript"],api:[1,2],protocols:[1,2,3,4,5,6,7,8],playbackmethod:[2],skip:0,placement:2,minduration:5,maxduration:30}}:{})),bids:Gn(Hn(e.parentAdUnit,t)),ortb2Imp:{ext:{gpid:e.path}}};var n,r,i,o})}(e),n={adUnits:t,bidsBackHandler:function(e){window.googletag.cmd.push(function(){qe.logt("📩 Request Bids -> PREBID FINISH - ID: ".concat(o," - ").concat(s?"(TIMEDOUT) - ":"","auction time:"),new Date-Zi-i),A&&(qe.log("Prebid auction bids:"),qe.table(Object.values(null!=e?e:{}).reduce(function(e,t){return[].concat(ae(e),ae(t.bids))},[]).sort(function(e,t){return t.cpm-e.cpm}).map(function(e){var t;return{bidder:e.bidderCode,cpm:e.cpm,size:e.size,mediaType:e.mediaType,currency:e.currency,source:e.source,floor:null===(t=e.floorData)||void 0===t?void 0:t.floorValue,adId:e.adId}}))),Ki[o]&&!Ki[o].prebid&&(Ki[o].prebid=!0,T&&!Ki[o].prebid||S&&!Ki[o].aps||(delete Ki[o],u()))})}};Xe(j.PREBID_BEFORE_FETCH_BIDS,n),qe.logt("🕘 Request Bids -> PREBID START  - ID: ".concat(o),"Ad Units:",t),window[h].requestBids(n)}}),S&&$i.push(function(){if(Ki[o]){var t=e.filter(function(e){var t=_n.settings.yieldScriptSettings.apsIgnoredAdUnits;return mn(t.include,t.exclude,ir(e.code).placementCode)}).map(function(e){var t,n,r,i,o=(t=e.parentAdUnit,n=e.sizes,r=jn(n.filter(function(e){return Fn(e)})),i=kn(n.filter(function(e){return zn(e)})),An(An({},t.mediaTypes.includes(a.BANNER)?{display:{sizes:r}}:{}),t.mediaTypes.includes(a.VIDEO_OUTSTREAM)?{video:{sizes:i}}:{})),s=o.display,c=o.video;return _n.settings.experiments.apsMultiFormat&&null!=s&&null!=c?{slotName:e.path,slotID:e.code,mediaType:"multi-format",multiFormatProperties:{display:s,video:c}}:null!=s?{slotName:e.path,slotID:e.code,sizes:s.sizes}:null!=c?{slotName:e.path,slotID:e.code,sizes:c.sizes,mediaType:"video"}:void 0});Xe(j.APS_BEFORE_FETCH_BIDS,{slots:t,bidTimeout:_n.context.timeouts.aps.bidderTimeout}),0===t.length?(qe.logt("🕘 Request Bids -> APS    SKIP!  - ID: ".concat(o),"Ad Units:",t),Ki[o]&&!Ki[o].aps&&(Ki[o].aps=!0,T&&!Ki[o].prebid||S&&!Ki[o].aps||(delete Ki[o],u()))):(qe.logt("🕘 Request Bids -> APS    START  - ID: ".concat(o),"Ad Units:",t),window.apstag.fetchBids({slots:t,bidTimeout:_n.context.timeouts.aps.bidderTimeout},function(e){Or(e),window.googletag.cmd.push(function(){qe.logt("📩 Request Bids -> APS    FINISH - ID: ".concat(o," - ").concat(s?"(TIMEDOUT) - ":""),"bids: ",e,"auction time:",new Date-Zi-i),Ki[o]&&!Ki[o].aps&&(Ki[o].aps=!0,T&&!Ki[o].prebid||S&&!Ki[o].aps||(delete Ki[o],u()))})}))}}),T||S||window.googletag.cmd.push(function(){delete Ki[o],u()}),kr(function(){window.googletag.cmd.push(function(){Ki[o]&&(S&&window.apstag&&"function"==typeof window.apstag._getSlotIdToNameMapping&&void 0===window.apstag._getSlotIdToNameMapping()||et(new Error("Auction timedout!"),{description:"The fail-safe timeout was hit! "+"failSafeTimeout: ".concat(_n.context.timeouts.failsafeTimeout.current,". finished: ").concat(JSON.stringify(Ki[o])),type:"yieldmanager"}),s=!0,qe.logt("⚠️ Request Bids -> YM   TIMEDOUT - ID: ".concat(o," - auction time: "),new Date-Zi-i),delete Ki[o],u())})},_n.context.timeouts.failsafeTimeout.current)}function u(){qe.logt("📩 Request Bids -> YM     FINISH - ID: ".concat(o," auction time:"),new Date-Zi-i),t&&t()}}function no(e,t,n){0!==e.length&&window.googletag.cmd.push(function(){try{var r,i,o=e.map(function(e){return e.code}),a=_n.settings.prebidSettings.customBidPool.enabled,s=null!==(r=_n.settings.yieldScriptSettings.apsBidPool)&&void 0!==r?r:{enabled:!1,mode:"full"},c=s.enabled,u=s.mode;if(qe.log("🎇 Render Ad Unit Instances".concat(t?" (refresh)":"",":"),o),T&&null!=(null===(i=window[h])||void 0===i?void 0:i.libLoaded)){var d=ur.prebidSettings.prebidConfig,l=[];if(a||d.useBidCache){var f=hr(o);l=f.reassignedCodes}"function"==typeof window[h].setTargetingForGPTAsync&&(_n.settings.experiments.wrapPBTargetingCallInsidePBQueue?window[h].que.push(function(){window[h].setTargetingForGPTAsync(o)}):window[h].setTargetingForGPTAsync(o),e.filter(function(e){return l.includes(e.code)}).forEach(function(e){var t=window[h].getHighestUnusedBidResponseForAdUnitCode(e.code);null!=t&&"adId"in t&&window.googletag.pubads().getSlots().forEach(function(n){n!==e.slot&&(n.getTargetingKeys().some(function(e){return n.getTargeting(e).includes(t.adId)})&&(Zn(Object.keys(t.adserverTargeting),n),!1!==d.enableSendAllBids&&Zn(Object.keys(t.adserverTargeting).map(function(e){return"".concat(e,"_").concat(t.bidderCode)}),n)))})}))}S&&null!=window.apstag&&(c&&("full"===u?Pr(o):xr(o)),function(e){e.forEach(function(e){var t,n=Rr(e.code),r=Ir.find(function(t){return"targetingSet"===t.status&&t.slotID===e.code});"targeting"in n&&null==r&&(n.status="targetingSet",e.slot.updateTargetingFromMap(n.targeting),null!==(t=_n.settings.yieldScriptSettings.apsBidPool)&&void 0!==t&&t.enabled&&999===Ar(n)&&et(new Error("Bid not mapped"),{adUnitCodes:[e.code],adUnitName:"[".concat(n.targeting.amzniid,", ").concat(n.targeting.amznbid,"]")}))})}(e));var p=e.map(function(e){return e.slot}).filter(function(e){return null!=e});if(p.length>0){p.forEach(function(e){return e.setTargeting("aym_refresh","true")}),window.googletag.pubads().refresh(p),t&&Xe(j.AFTER_REFRESH,o);var g=setTimeout(function(){var t=e.filter(function(e){var t=e.slot;return null!=t&&p.includes(t)});n(t),window.googletag.pubads().removeEventListener("slotResponseReceived",v)},6e3),v=function(e){var t=e.slot;p.includes(t)&&(clearTimeout(g),window.googletag.pubads().removeEventListener("slotResponseReceived",v))};window.googletag.pubads().addEventListener("slotResponseReceived",v)}}catch(t){t instanceof Error&&(et(t,{description:"Failed to execute bidsBackHandler",adUnitCodes:e.map(function(e){return e.code})}),n(e))}})}function ro(e){try{var t,n=_n.settings.yieldScriptSettings.destroyFarUnits.enabled,r=[].concat(ae(e.parentAdUnit.mediaTypes.includes(a.BANNER)?jn(e.sizes.filter(function(e){return Fn(e)})):[]),ae(e.parentAdUnit.mediaTypes.includes(a.VIDEO_OUTSTREAM)?kn(e.sizes.filter(function(e){return zn(e)})):[]),ae(e.sizes.some(function(e){return"fluid"===e})?["fluid"]:[])),i={adUnitPath:e.path,size:r.length>0?r:[1,1],div:e.code};Xe(j.BEFORE_DEFINE_SLOT,e.code,i);var o=null===(t=window.googletag.defineSlot(i.adUnitPath,i.size,i.div))||void 0===t?void 0:t.addService(window.googletag.pubads());Xe(j.AFTER_DEFINE_SLOT,e.code,o),null!=o&&(e.slot=o,S&&o.setTargeting("uam","true"),n&&(o.getCollapseEmptyDiv()||o.getDivStartsCollapsed())&&(_n.context.isGPTCollapseSlotEnabled=!0))}catch(t){var s;if(t instanceof Error)et(t,{description:"Unable to define slot for ad unit ".concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(s=e.parentAdUnit)||void 0===s?void 0:s.name})}}function io(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 oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?io(Object(n),!0).forEach(function(t){pe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):io(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ao(){document.head.appendChild(document.createElement("style")).innerHTML="\n            .".concat(g,"_slug:before {\n                content: 'Ad';\n                display: block;\n                width: 100%;\n                text-align: center;\n                font-size: 10px;\n                color: #6a737c;\n            }\n        "),window.googletag.cmd.push(function(){googletag.pubads().addEventListener("slotRenderEnded",function(e){var t,n=e.slot,r=_n.settings.yieldScriptSettings.destroyFarUnits.enabled,i=_n.settings.adUnitInstances.find(function(e){return e.slot===n});i&&(i.state.rendered=!0,i.state.waitingGPTRender=!1,r&&(null===(t=_n.context.observers.farUnitsDestroy)||void 0===t||t.observe(i.containerRef)))})})}function so(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={code:rr(e.code),parentPlacement:e,containerRef:document.createElement("div"),placementRef:n?void 0:t,state:{triggerFetchStep:!1,triggerRenderStep:!1,waitingAuction:!1,suspended:!1,rendered:!1,waitingLazyLoad:!1,waitingLazyRender:!1,waitingGPTRender:!1},renderInfo:pe(pe(pe(pe(pe({count:0},f.ADVERTISER,""),f.ORDER,""),f.LINE_ITEM,""),f.SIZE,""),f.BIDDER,""),sizes:[]};return A&&(r.state=new Proxy(r.state,{set:function(e,t,n){return e[t]!==n&&Xe(j.INSTANCE_STATE_CHANGED,{instance:r,prop:t,prevValue:e[t],newValue:n}),e[t]=n,!0}}),Xe(j.INSTANCE_STATE_CHANGED,{instance:r,prop:"rendered",prevValue:!1,newValue:!1})),r.containerRef.id=r.code,n?t.appendChild(r.containerRef):t.insertAdjacentElement(e.position,r.containerRef),_n.settings.adUnitInstances.push(r),qe.logt("📑 Ad unit instance injected ".concat(n?"- manual":""),[r.code]),r}function co(e,t){var n=_n.settings.yieldScriptSettings.destroyFarUnits.enabled;0!==e.length&&(qe.log("Removing the following ad unit instances:",e.map(function(e){return e.code}),"Reason: ".concat(t)),window.googletag.cmd.push(function(){window.googletag.destroySlots(e.map(function(e){return e.slot}).filter(function(e){return null!=e}))}),e.forEach(function(e){try{var t,r,i,o,a;if(e.state.triggerFetchStep=!1,e.state.triggerRenderStep=!1,e.state.waitingAuction=!1,e.state.suspended=!1,e.state.rendered=!1,e.state.waitingLazyLoad=!1,e.state.waitingLazyRender=!1,e.state.waitingGPTRender=!1,delete _n.context.viewableSlots[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),null===(r=_n.context.observers.lazyLoad)||void 0===r||r.unobserve(e.containerRef),null===(i=_n.context.observers.lazyRender)||void 0===i||i.unobserve(e.containerRef),n)null===(o=_n.context.observers.farUnitsDestroy)||void 0===o||o.unobserve(e.containerRef),null===(a=_n.context.observers.farUnitsRestore)||void 0===a||a.unobserve(e.containerRef);var s=e.containerRef;s&&s.parentNode&&(s.parentNode.removeAttribute("data-manual-placement-group"),s.parentNode.removeChild(s))}catch(t){var c;if(t instanceof Error)et(t,{description:"Failed to remove ad unit instance ".concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(c=e.parentAdUnit)||void 0===c?void 0:c.name})}var u=_n.settings.adUnitInstances.indexOf(e);_n.settings.adUnitInstances.splice(u,1)}))}function uo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_n.settings.yieldScriptSettings.destroyFarUnits.enabled;0!==e.length&&(qe.log("".concat(n?"Suspending":"Reseting"," the following ad unit instances:"),e.map(function(e){return e.code}),"Reason: ".concat(t)),n&&e.forEach(function(e){var t=function(e){try{var t=Xn(e);if(t){var n=t.parentElement;return(n&&n.childElementCount>1||e.containerRef.childElementCount>1)&&!Yn(t)?Jn(e.containerRef,!0):Jn(t,!1)}return null}catch(t){return t instanceof Error&&et(t,{description:"Unable to get ad element size",adUnitInstanceCode:e.code}),null}}(e);t&&(e.sizeBeforeSuspend=t)}),window.googletag.cmd.push(function(){window.googletag.destroySlots(e.map(function(e){return e.slot}).filter(function(e){return null!=e}))}),e.forEach(function(e){try{var t,i,o,a,s;if(e.state.triggerFetchStep=!1,e.state.triggerRenderStep=!1,e.state.waitingAuction=!1,e.state.suspended=n,e.state.rendered=!1,e.state.waitingLazyLoad=!1,e.state.waitingLazyRender=!1,e.state.waitingGPTRender=!1,delete e.slot,delete e.parentAdUnit,delete e.path,e.sizes=[],delete _n.context.viewableSlots[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),e.renderInfo=pe(pe(pe(pe(pe({count:0,obs:void 0},f.ADVERTISER,""),f.ORDER,""),f.LINE_ITEM,""),f.SIZE,""),f.BIDDER,""),null===(i=_n.context.observers.lazyLoad)||void 0===i||i.unobserve(e.containerRef),null===(o=_n.context.observers.lazyRender)||void 0===o||o.unobserve(e.containerRef),r)null===(a=_n.context.observers.farUnitsDestroy)||void 0===a||a.unobserve(e.containerRef),null===(s=_n.context.observers.farUnitsRestore)||void 0===s||s.unobserve(e.containerRef);var c=e.code;e.code=(v=e.code,h=ir(v),m=h.placementCode,E=h.instanceNumber,"".concat(m,"__").concat(g,"__").concat(E));var u=document.getElementById(c);if(u&&u.parentNode){var d,l=document.createElement("div");if(n&&Qn(l,e.sizeBeforeSuspend),u.parentNode.replaceChild(l,u),l.id=e.code,e.containerRef=l,n&&r)null===(d=_n.context.observers.farUnitsRestore)||void 0===d||d.observe(e.containerRef)}}catch(t){var p;if(t instanceof Error)et(t,{description:"Failed to ".concat(n?"suspend":"reset"," Ad Unit Instance ").concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(p=e.parentAdUnit)||void 0===p?void 0:p.name}),co([e],"Failed to ".concat(n?"suspend":"reset"," Instance"))}var v,h,m,E}))}function lo(e){var t=e.map(function(e){return e.code});0!==e.length&&(qe.log("🔄 Updating the viewedAt info for the following Ad Unit instances:",t),e.map(function(e){return e.slot}).filter(function(e){return null!=e}).forEach(function(e){yi(e)}))}function fo(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null===(t=window[g].checkIfAdUnitIsVisible)||void 0===t||t,i=e.map(function(e){return e.code});if(0!==e.length){if(Xe(j.BEFORE_REFRESH,i,e),r){var o=[];e=e.filter(function(e){return!!Un(e)||(o.push(e),!1)}),o.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:o,reason:k.VISIBILITY,action:z.IGNORE,ignoredStep:F.REFRESH}),uo(o,"Instances had no visibility when trying to refresh"))}if(e.forEach(function(e){var t;delete _n.context.viewableSlots[e.code],null===(t=e.renderInfo.obs)||void 0===t||t.disconnect(),e.renderInfo=pe(pe(pe(pe(pe({count:e.renderInfo.count+1,obs:void 0},f.ADVERTISER,""),f.ORDER,""),f.LINE_ITEM,""),f.SIZE,""),f.BIDDER,"")}),U)qe.warn("Refresh cancelled due to 'no_refresh' debug flag!",i);else if(e.length>0)if(n){var a=xn(e),s=a.adUnitsWithBids,c=a.adUnitsWithoutBids;qe.log("🔄 Refreshing the following Ad Unit Instances:",i,"\nThe following will be rendered right away (pre-fetch):",s.map(function(e){return e.code})),s.length>0&&(Eo(s,!0),mo(s,!0,function(){})),c.length>0&&mo(c,!0,function(e){Eo(e,!0),mo(c,!0,function(){})})}else qe.log("🔄 Refreshing the following Ad Unit Instances:",i),mo(e,!0)}}function po(e){return go.apply(this,arguments)}function go(){return go=le(Ve.mark(function e(t){var n,r,i,o,a,s,c,u,d,l;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r=_n.settings.yieldScriptSettings.destroyFarUnits,i=r.enabled,o=r.destructionOffset,a=r.destroyFarUnitsAboveSightOnly,s=null===(n=window[g].checkIfAdUnitIsVisible)||void 0===n||n,0!==t.length){e.next=1;break}return e.abrupt("return");case 1:if(qe.log("🎯 Trigger Render step for ad units:",t.map(function(e){return e.code})),t.forEach(function(e){e.state.triggerRenderStep=!0}),s&&(c=[],t=t.filter(function(e){return!!Un(e)||(c.push(e),!1)}),c.forEach(function(e){e.state.triggerRenderStep=!1}),c.length>0&&(u=c.map(function(e){return e.code}),Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:c,reason:k.VISIBILITY,action:z.IGNORE,ignoredStep:F.RENDER_TRIGGER}),qe.warn("🚫 Trigger ignored for:",u,"Reason: visibility"))),!i){e.next=3;break}return d=[],e.next=2,vn(t,function(){var e=le(Ve.mark(function e(t){var n,r;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=1,Cn(t.containerRef,{nearInSight:!0,pixelsOffset:o,aboveSight:null!==(n=_n.settings.experiments.destroyFarUnitsAboveSightOnly)&&void 0!==n?n:a});case 1:return(r=!e.sent)&&d.push(t),e.abrupt("return",!r);case 2:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:t=e.sent,d.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:d,reason:k.DESTROY_FAR_UNITS,action:z.SUSPEND}),qe.log("💤 Trigger Render step ignored for:",d,"Reason: Inside destroy far units offset"),d.forEach(function(e){e.state.triggerRenderStep=!1}),d.forEach(function(e){var t;e.state.suspended=!0,null===(t=_n.context.observers.farUnitsRestore)||void 0===t||t.observe(e.containerRef)}));case 3:return l=[],e.next=4,vn(t,function(){var e=le(Ve.mark(function e(t){var n,r;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.parentPlacement.lazyRender){e.next=1;break}return e.abrupt("return",!0);case 1:return n=ur.yieldScriptSettings.lazyTrigger.renderMargin,e.next=2,Cn(t.containerRef,{nearInSight:!0,pixelsOffset:n});case 2:if(!e.sent){e.next=3;break}return e.abrupt("return",!0);case 3:return t.state.triggerRenderStep=!1,t.state.waitingLazyRender=!0,null===(r=_n.context.observers.lazyRender)||void 0===r||r.observe(t.containerRef),l.push(t),e.abrupt("return",!1);case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 4:t=e.sent,l.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:l,reason:k.LAZY_RENDER,action:z.IGNORE,ignoredStep:F.RENDER_TRIGGER}),qe.func(function(){return qe.log("💤 Trigger Render step ignored for:",l.map(function(e){return e.code}),"Reason: Out of lazy render offset")})),t.length>0&&Eo(t,!1);case 5:case"end":return e.stop()}},e)})),go.apply(this,arguments)}function vo(e,t){return ho.apply(this,arguments)}function ho(){return ho=le(Ve.mark(function e(t,n){var r,i,o,a,s,c,u,d;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=null===(r=window[g].checkIfAdUnitIsVisible)||void 0===r||r,0!==t.length){e.next=1;break}return e.abrupt("return");case 1:return qe.log("🎯 Trigger Fetch step for ad units:",t.map(function(e){return e.code})),i&&(o=[],t=t.filter(function(e){return!!Un(e)||(o.push(e),!1)}),o.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:o,reason:k.VISIBILITY,action:z.IGNORE,ignoredStep:F.FETCH_TRIGGER}),qe.func(function(){qe.warn("🚫 Trigger ignored for:",o.map(function(e){return e.code}),"Reason: visibility")}))),a=[],e.next=2,vn(t,function(){var e=le(Ve.mark(function e(t){var n,r;return Ve.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.parentPlacement.lazyLoad){e.next=1;break}return e.abrupt("return",!0);case 1:return n=ur.yieldScriptSettings.lazyTrigger.fetchMargin,e.next=2,Cn(t.containerRef,{nearInSight:!0,pixelsOffset:n});case 2:if(!e.sent){e.next=3;break}return e.abrupt("return",!0);case 3:return t.state.waitingLazyLoad=!0,null===(r=_n.context.observers.lazyLoad)||void 0===r||r.observe(t.containerRef),a.push(t),e.abrupt("return",!1);case 4:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 2:t=e.sent,a.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:a,reason:k.LAZY_LOAD,action:z.IGNORE,ignoredStep:F.FETCH_TRIGGER}),qe.func(function(){qe.log("💤 Trigger Fetch step ignored for:",a.map(function(e){return e.code}),"Reason: Out of lazy load offset")})),s={},c={},u=t.reduce(function(e,t){return oo(oo({},e),{},pe({},t.code,t.parentPlacement.adUnits.map(function(e){return _n.settings.adUnits.find(function(t){return t._id===e})}).filter(function(e){return null!=e}).filter(function(e){var t,n;return null!==(n=s[t=e._id])&&void 0!==n?n:s[t]=In(e.conditions)}).map(function(e){var n,r,i=null!==(r=c[n=e._id])&&void 0!==r?r:c[n]=dr(e.path),o={code:rr(t.parentPlacement.code,e._id,ir(t.code).instanceNumber),parentAdUnit:e,path:i,parentPlacement:t.parentPlacement,sizes:[]};return Xe(j.BEFORE_DEFINE_AD_UNIT_PATH,o),o})))},{}),t=t.filter(function(e){return u[e.code].length>0}),u=Object.entries(u).filter(function(e){var t=ue(e,2);return t[0],t[1].length>0}).reduce(function(e,t){var n=ue(t,2),r=n[0],i=n[1];return oo(oo({},e),{},pe({},r,i))},{}),d=Object.values(u).reduce(function(e,t){return[].concat(ae(e),ae(t))},[]),t.forEach(function(e){e.state.suspended&&Qn(e.containerRef,e.sizeBeforeSuspend),e.state.waitingAuction=!0}),to(d,function(){var e=Object.entries(u).map(function(e){var n,r,i,o=ue(e,2),a=o[0],s=o[1],c=t.find(function(e){return e.code===a&&e.state.waitingAuction});if(!c)return null;if(null!==(n=window[h])&&void 0!==n&&n.libLoaded&&"function"==typeof(null===(r=window[h])||void 0===r?void 0:r.getHighestUnusedBidResponseForAdUnitCode)){var u=s.map(function(e){var t=window[h].getHighestUnusedBidResponseForAdUnitCode(e.code);return{code:e.code,cpm:null!=t&&"cpm"in t?t.cpm:-1,partialIntance:e}});i=u.reduce(function(e,t){return t.cpm>e.cpm?t:e},u[0]).partialIntance}else i=s[Math.floor(Math.random()*s.length)];return qe.log("✏️ Renaming instance from:",c.code,"to:",i.code),c.containerRef.id=i.code,c.code=i.code,c.path=i.path,c.parentAdUnit=i.parentAdUnit,c.sizes=i.sizes.slice(),c}).filter(function(e){return null!=e});or(),window.googletag.cmd.push(function(){var t=e.map(function(e){try{ro(e),r=e.code,window.googletag._display(r);var t=Wn(e.parentPlacement.style);try{e.containerRef.style.cssText=Tn(t),R&&e.containerRef.classList.add("".concat(g,"_highlight"))}catch(t){t instanceof Error&&et(t,{description:"Unable to parse ad unit ".concat(e.code," styles")})}return e.parentPlacement.slug&&e.containerRef&&e.containerRef.classList.add("".concat(g,"_slug")),e.state.waitingAuction=!1,e.state.triggerFetchStep=!0,e}catch(t){var n;if(t instanceof Error)et(t,{description:"Failed to trigger Ad Unit Instance ".concat(e.code),adUnitInstanceCode:e.code,adUnitName:null===(n=e.parentAdUnit)||void 0===n?void 0:n.name});return co([e],"Failed to trigger Instance"),null}var r}).filter(function(e){return null!=e&&er(e)});n(t)})});case 3:case"end":return e.stop()}},e)})),ho.apply(this,arguments)}function mo(e,t,n){var r=_n.settings.yieldScriptSettings.destroyFarUnits.enabled;e.forEach(function(e){var t;(e.state.waitingAuction=!0,r)&&(null===(t=_n.context.observers.farUnitsDestroy)||void 0===t||t.unobserve(e.containerRef))}),to(e,function(){var r=e.filter(function(e){return e.state.waitingAuction&&er(e)});r.forEach(function(e){e.state.waitingAuction=!1}),n?n(r):Eo(r,t)})}function Eo(e,t){(e=e.filter(function(e){return!e.state.waitingGPTRender})).forEach(function(e){var t;e.state.waitingGPTRender=!0,null===(t=_n.context.observers.lazyRender)||void 0===t||t.unobserve(e.containerRef)}),no(e,t,function(e){e.forEach(function(e){e.state.rendered=!0,e.state.waitingGPTRender=!1}),lo(e)})}function bo(){var e=window[g].settings.versionInfo,t=[];Object.entries(e.splitVarsEval).forEach(function(e){var n=ue(e,2),r=n[0],i=n[1];try{var o=_n.settings.definitions.variables[r];null!=o&&o.value.enableReporting&&o.value.includeInAYHash&&In(o.value.conditions)&&t.push("".concat(o.name,":").concat(o.value.splitValues[i].value))}catch(e){e instanceof Error&&et(e,{description:'Unable to evaluate split test variable "'.concat(r,'" for hash')})}}),window[g].versionInfo.splitVarsHash=t;var n=_n.settings.yieldScriptSettings,r=n.enableTracker,i=n.trackerId,o=ur.trackerSettings.trackerConfig;!r||window.assertive&&window.assertive.initialized||(window.assertive=Object.assign({},window.assertive,o),window.assertive.entityId=i,window.assertive.debug=A,function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.createElement("script");r.src=e,r.async=n;var i=null===(t=document.getElementsByTagName("script"))||void 0===t?void 0:t[0];i&&i.parentNode?i.parentNode.insertBefore(r,i):document.head.appendChild(r)}("https://".concat(i,".ay.delivery/client-v2.js"))),window.assertiveQueue.push(function(){var e;"function"==typeof window.assertive.setConfig&&(void 0===(null===(e=window.assertive.analytics)||void 0===e||null===(e=e.integrations)||void 0===e?void 0:e.fullErrorLogging)&&window.assertive.setConfig("analytics.integrations.fullErrorLogging",!0))}),window.assertiveQueue.push(function(){if("function"==typeof window.assertive.setConfig){var e=window[g].settings.versionInfo,t=[];Object.entries(e.splitVarsEval).forEach(function(e){var n=ue(e,2),r=n[0],i=n[1];try{var o=_n.settings.definitions.variables[r];null!=o&&o.value.enableReporting&&null!=o.value.customDimension&&In(o.value.conditions)&&(o.value.customDimension===s.EXPERIMENTS?t.push({name:o.name,group:o.value.splitValues[i].value}):window.assertive.setConfig("analytics.custom.".concat(o.value.customDimension),"".concat(o.name,"=").concat(o.value.splitValues[i].value)))}catch(e){e instanceof Error&&et(e,{description:'Unable to evaluate split test variable "'.concat(r,'" for analytics')})}}),window.assertive.setConfig("analytics.custom.experiments",t,!0)}})}function yo(){_n.debug.runDebugConditionsEvaluation=Io,Ze(j.BEFORE_PAGE_CHANGE,function(){Io()}),Qe(j.MODULE_INIT_AUCTIONS,function(){T&&window[h].que.push(function(){if(!window[h].getConfig("debug")){var e=function(e,t){return(e=Array.from(e)).unshift("%cPrebid","display: inline-block; color: #fff; background: #3b88c3; padding: 1px 4px; border-radius: 3px;",t),e};window[h].onEvent("auctionDebug",function(t){var n=t.type,r=t.arguments;try{"ERROR"===n?console.error.apply(console,e(r,"ERROR:")):"WARNING"===n&&console.warn.apply(console,e(r,"WARNING:"))}catch(e){qe.error(e)}})}})}),R&&window.googletag.cmd.push(function(){window.googletag.pubads().addEventListener("slotRenderEnded",function(e){var t=e.slot,n=e.isEmpty,r=t.getSlotElementId();if(n&&!document.querySelector("#".concat(r," > span, #").concat(r," > div > iframe"))){var i,o=_n.settings.adUnitInstances.find(function(e){return e.code===r&&e.parentAdUnit});if(o&&(o.sizes.forEach(function(e){var t=e.split("x");(!i||t[0]*t[1]>i[0]*i[1])&&(i=t)}),i)){var a=document.createElement("div");a.style.minWidth=i[0]+"px",a.style.minHeight=i[1]+"px",o.containerRef.appendChild(a);var s=document.createElement("span");s.innerText=i.join("x"),o.containerRef.appendChild(s)}}})}),function(){if(!R)return;var e="",t="".concat(g,"_highlight");e+=".".concat(t," { background-color: #eee; outline: solid 2px #0f0; outline-offset: -2px; }"),e+=".".concat(t," > span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 2vw; font-family: monospace; }");var n=document.head.appendChild(document.createElement("style"));n.id="".concat(g,"_debug_styles"),n.innerHTML=e}()}function wo(e,t){return t.map(function(t){var n=t.name,r=t.conditions,i=void 0===r?[]:r;try{var o=In(i),a=i.map(function(e){var t=_n.settings.definitions.conditions[e],n=t.name,r=t.group;return{name:n,evaluation:wn(e),conditions:function e(t){if(null!=t.conditions)return t.conditions.reduce(function(n,r,i){return"".concat(n," ").concat(i>0?t.operator+" ":"","( ").concat(e(r)," )")},"");try{var r=_n.settings.definitions.variables[t.variable],i=r.name,o=bn(r._id),a=yn(o,t.value,t.operation);return"<<var: ".concat(i,">> '").concat(o,"' ").concat(t.operation," '").concat(t.value,"' <<eval: ").concat(a,">>")}catch(e){return e instanceof Error&&et(e,{description:"Unable to evaluate condition for getConditionsEvaluation: var: ".concat(n,", op: ").concat(t.operation,", value: ").concat(t.value),adUnitName:n}),"<<var: ".concat(n,">> <<unable to evaluate>> ").concat(t.operation," '").concat(t.value,"' <<eval: ",!1,">>")}}(r)}});return{name:n,type:e,evaluation:o,conditionSets:a}}catch(t){return t instanceof Error&&et(t,{description:"Unable to get condition evaluation for ".concat(e,": ").concat(n),adUnitInstanceCode:n}),null}}).filter(function(e){return null!=e})}function Io(){var e=_n.debug.conditionsEvaluation,t=_n.settings;try{e.placements=wo("Placement",t.placements),e.adUnits=wo("Ad unit",t.adUnits),e.htmlUnits=wo("HTML unit",t.htmlUnits),e.bidders=wo("Bidder",t.bidderSettings.bidders),e.paramsGroups=wo("Params Group",t.bidderSettings.params),e.triggers=wo("Triggers",Object.values(t.definitions.triggers))}catch(e){e instanceof Error&&et(e,{description:"Exception in runDebugConditionsEvaluation API call"})}return e}var So,To,_o,Oo,Ao,Uo,Ro=function(e){try{var t=e.filter(function(e){return e.isIntersecting}).map(function(e){var t=e.target;_n.context.observers.lazyLoad.unobserve(t);var n=_n.settings.adUnitInstances.find(function(e){return e.containerRef===t});return null==n?(et(new Error("Lazy load observer detected an ad unit instance that is no longer in memory")),null):!n.state.waitingLazyLoad||n.state.triggerFetchStep||n.state.triggerRenderStep||n.state.waitingAuction||n.state.suspended||n.state.rendered?(et(new Error("Lazy load observer detected an ad unit instance that is not in the 'standby' state")),uo([n],"Non standby instance inside lazy load observer"),null):n}).filter(function(e){return null!=e});t.length>0&&(qe.log("💤 Firing lazy fetch ad units:",t),t.forEach(function(e){e.state.waitingLazyLoad=!1}),di(void 0,t))}catch(e){e instanceof Error&&et(e,{description:"Exception in Lazy Load Units observer"})}},No=function(e){try{var t=e.filter(function(e){return e.isIntersecting}).map(function(e){var t=e.target;_n.context.observers.lazyRender.unobserve(t);var n=_n.settings.adUnitInstances.find(function(e){return e.containerRef===t});return null==n?(et(new Error("Lazy render observer detected an ad unit instance that is no longer in memory")),null):!n.state.waitingLazyRender||!n.state.triggerFetchStep||n.state.triggerRenderStep||n.state.suspended||n.state.rendered?(et(new Error("Lazy render observer detected an ad unit instance that is not in the 'standby' state"),{adUnitInstanceCode:n.code}),uo([n],"Non standby instance inside lazy render observer"),null):n}).filter(function(e){return null!=e&&er(e)});t.length>0&&(qe.log("💤 Firing lazy render ad units:",t),t.forEach(function(e){e.state.waitingLazyRender=!1}),di(void 0,t))}catch(e){e instanceof Error&&et(e,{description:"Exception in Lazy Load Units observer"})}},Co=function(e){try{var t=e.filter(function(e){var t;return!e.isIntersecting&&(!(null!==(t=_n.settings.experiments.destroyFarUnitsAboveSightOnly)&&void 0!==t?t:_n.settings.yieldScriptSettings.destroyFarUnits.destroyFarUnitsAboveSightOnly)||e.boundingClientRect.bottom<=0)}).map(function(e){var t=e.target;_n.context.observers.farUnitsDestroy.unobserve(t);var n=_n.settings.adUnitInstances.find(function(e){return e.containerRef===t});if(null==n)throw new Error("farUnitsDestroy observer detected an ad unit instance that is no longer in memory");if(!n.state.rendered)throw new Error("farUnitsDestroy detected an ad unit instance that is not in the 'rendered' state");return n});t.length>0&&(Xe(j.STATE_EXCEPTION,{type:"adUnitInstances",items:t.slice(),reason:k.DESTROY_FAR_UNITS,action:z.SUSPEND}),uo(t,"Destroy far units feature",!0))}catch(e){e instanceof Error&&et(e,{description:"Exception in Far Units Destroy observer"})}},xo=function(e){try{var t=e.filter(function(e){return e.isIntersecting}).map(function(e){var t=e.target;_n.context.observers.farUnitsRestore.unobserve(t);var n=_n.settings.adUnitInstances.find(function(e){return e.containerRef===t});if(!n)throw new Error("farUnitsDestroy observer detected an ad unit instance that is no longer in memory");if(!n.state.suspended)throw new Error("farUnitsDestroy detected an ad unit instance that is not in the 'suspended' state");return n}).filter(function(e){return e.parentPlacement.adUnits.map(function(e){return _n.settings.adUnits.find(function(t){return t._id===e})}).filter(function(e){return null!=e}).some(function(e){return In(e.conditions)})});t.length>0&&(qe.log("🔙 Restoring the following ad units:",t),t.forEach(function(e){e.state.suspended=!1}),di(void 0,t))}catch(e){e instanceof Error&&et(e,{description:"Exception in Far Units Restore observer"})}};qe.group("Yield Manager - Initializing..."),qe.log("pbjs loaded:",null!==(So=null===(To=window[h])||void 0===To?void 0:To.libLoaded)&&void 0!==So&&So),qe.log("Ad units:",_n.settings.adUnits),qe.log("HTML units:",_n.settings.htmlUnits),qe.groupEnd(),A&&yo(),_i(),function(){var e;for(Qe(j.MODULE_INIT_ALL,function(){for(;window[g].cmd.length;)t(window[g].cmd.pop());En(window[g].cmd,function(e){return t(e)})}),window[g]._cmd=null!==(e=window[g]._cmd)&&void 0!==e?e:[];window[g]._cmd.length;)t(window[g]._cmd.pop());function t(e){try{"function"==typeof e&&e()}catch(e){e instanceof Error&&et(e,{description:"Exception in queued YM command"})}}En(window[g]._cmd,function(e){return t(e)})}(),bo(),eo(),function(){var e=history,t=e.pushState,n=e.replaceState,r=window.location.pathname;function i(){var e=window.location.pathname;Xe(j.URL_CHANGE,r,e),e!==r&&(r=e)}history.pushState=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(history,n),i()},history.replaceState=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n.apply(history,t),i()},window.addEventListener("popstate",function(){i()})}(),_o=_n.settings.yieldScriptSettings.destroyFarUnits,Oo=ur.yieldScriptSettings.lazyTrigger,Ao=Oo.fetchMargin,Uo=Oo.renderMargin,_n.context.observers.lazyLoad=new IntersectionObserver(Ro,{rootMargin:"".concat(Ao,"px")}),_n.context.observers.lazyRender=new IntersectionObserver(No,{rootMargin:"".concat(Uo,"px")}),_o.enabled&&(_n.context.observers.farUnitsDestroy=new IntersectionObserver(Co,{rootMargin:"".concat(_o.destructionOffset,"px")}),_o.restorationOffset>0&&(_n.context.observers.farUnitsRestore=new IntersectionObserver(xo,{rootMargin:"".concat(_o.restorationOffset,"px")}))),ao(),bi(),function(){si({skipAdUnits:!0}),ui(l.SCRIPT_LOADED,!0,!0),Rn("ready",function(){si(),ui(l.WINDOW_READY),Nn(function(e){e&&ui(l.CONSENT_INITIALIZATION)}),ii(ci)}),Rn("loaded",function(){ui(l.WINDOW_LOADED)}),Ze(j.URL_CHANGE,function(){_n.context.isChangePagePending=!0}),Ze(j.BEFORE_PAGE_CHANGE,function(){_n.context.isChangePagePending=!1});var e=_n.settings.yieldScriptSettings.spa,t=void 0===e?{mode:p.MANUAL}:e,n=en(si,50);t.mode!==p.MANUAL&&Ze(j.URL_CHANGE,function(){requestAnimationFrame(function(){n({refresh:t.mode===p.REFRESH,reset:t.mode===p.RESET})})}),Xe(j.MODULE_INIT_LIFE_CYCLE,{})}(),Xe(j.MODULE_INIT_ALL,{})}();
