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